Relative Content

Tag Archive for pythonopencv

How can I detect the light with two images using cv2?

I am creating a pixel mapping software to make pixel animations.
I want to add an Automapping function, where you plug a webcam, give the software control of your pixels, and it turn every pixel on one by one, detect it with the webcam and add it to the mapping.
I planned to use cv2 to do it (the software is in python). I searched the web for this, found this, but the problem is that if any light (e.g city lighting) is on when you map your pixels, it will be counted as a pixel (and I don’t want it to happen). So, I think a good idea is to take one photo with the pixels off, and one with a pixel on, compare both and find the pixel x and y. I have a minimal experience with opencv, but I know it is very powerful, and it could do it.

Python OpenCV animation

I am working on a project where i am asked to use python to convert uploaded video to animation but the sample i was given i haven’t archived it over time working on on the project:
this is the code i am using: