playMaker

Author Topic: Get Pixel Color from webcam [SOLVED]  (Read 1005 times)

dariusp

  • Playmaker Newbie
  • *
  • Posts: 6
Get Pixel Color from webcam [SOLVED]
« on: July 22, 2019, 02:49:00 PM »
Hello.
I'm developing a colour recognition piece using the GetPixelColor action to recognise blocks of colour and play sounds.

I can get it working with a texture set to readable but trying to see how to work with a camera feed. I can feed the webcam image in but no colour detected. I am guessing webcam image need to be saved as an image and set to readable?

Any advice would be appreciated.

Darius
« Last Edit: July 31, 2019, 04:40:25 AM by jeanfabre »

dariusp

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Get Pixel Color from webcam
« Reply #1 on: July 23, 2019, 08:17:55 AM »
Update. I was able to solve this by using the Take Snapshot action to creature new texture and feed it into Get Pixel.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get Pixel Color from webcam [SOLVED]
« Reply #2 on: July 31, 2019, 04:41:17 AM »
Hi,

 thanks for letting us know!

Bye,

 Jean