Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The way I would do it is 1) Build a database of HSV color ranges for each of the fluorescent markers 2) Loop over the video, convert each frame to HSV, then loop over each fluorescent color using cv2.inRange 3) The output of cv2.inRange is a binary image where white is a match and black is not - you can now use each of these images to find the center of the match. If there is noise, You may also need to dilate and erode to remove noise - look at cv2.dilate and cv2.erode. 4) repeat 2-3 until video is complete. Track centers of each color from frame to frame.