mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

Fix #5876: Windows build fails with OpenCV 3.4.10

Open definability opened this issue 9 months ago • 0 comments

Update the required OpenCV version to 3.4.12. The project uses the CAP_PROP_ORIENTATION_AUTO constant that was introduced in OpenCV 3.4.12. Thus, is not accessible in OpenCV 3.4.10 https://github.com/opencv/opencv/commit/f0271e54d90b3af62301f531f5f00995b00d7cd6

Using of OpenCV 3.4.10 leads to a build error

mediapipe/calculators/video/opencv_video_decoder_calculator.cc(116): error C2039: 'CAP_PROP_ORIENTATION_AUTO': is not a member of 'cv'
external/windows_opencv/include\opencv2/videoio.hpp(71): note: see declaration of 'cv'
mediapipe/calculators/video/opencv_video_decoder_calculator.cc(116): error C2065: 'CAP_PROP_ORIENTATION_AUTO': undeclared identifier
Target //mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu failed to build

definability avatar Mar 02 '25 10:03 definability