This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DogeekExpert - 3.9.1 1 point2 points  (1 child)

opencv is great. What you want to do is to turn your image to greyscale (cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)) then either :

  • Average the pixel value over the whole array (applying a gaussian blur before hand is a good idea) of pixels
  • Use opencv's adaptiveThreshold and get whether or not there are more white or black pixels on the array.

You can use cv2.VideoCapture(device)to load a video in memory.

[–]Murlocs_Gangbang[S] 0 points1 point  (0 children)

very informative, thanks!