anajovanoviic / gesture-recognition

master-thesis
0 stars 0 forks source link

Reading frame directly in greyscale with opencv? #4

Open anajovanoviic opened 1 month ago

anajovanoviic commented 1 month ago

After testing if it is available on my system with test-mode.py got:

  File "c:\Users\anadjj\programs_ana\master\gesture-recognition\gesture-recognition\test-mode.py", line 5, in <module>
    bool_value = capture.set(cv2.CAP_PROP_MODE, cv2.CAP_MODE_GRAY)
                                                ^^^^^^^^^^^^^^^^^
AttributeError: module 'cv2' has no attribute 'CAP_MODE_GRAY'

so this is probably not supported.

anajovanoviic commented 1 month ago

Based on the official documentation, different camera output modes (izlazni rezimi kamere) are supported only through libv4l backend which is collection of libraries used on Linux systems. Next step: capture frame and then convert to grayscale