Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6644

General discussion • Re: Is there a way for the Camera Module 3 to run a script when it senses a color?

$
0
0
Unfortunately the docs are in one big pdf and I hate them, so can't link to anything for ideas (read the doc and picamera was so much better for users).

So back in picamera (original) you could grab a numpy array of the image then do some maths and figure out the colour in the picture.

Hopefully there is something like that in picamera2.

But it is probably done via openCV now and you get it to identify and tell you the colour.


I'm assuming it's Python and Minecraft and not some other language?

Statistics: Posted by bensimmo — Tue Jul 16, 2024 1:04 pm



Viewing all articles
Browse latest Browse all 6644

Trending Articles