We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 411005b + 21a1d30 commit 067d146Copy full SHA for 067d146
src/webrtc/samples/opencvanalyzer/objectdetector.cpp
@@ -92,7 +92,7 @@ namespace scy {
92
Rect crop(Point((width - cropSize.width) / 2, (height - cropSize.height) / 2), cropSize);
93
94
// get gray frame
95
- uint8_t* brightnessData = (uint8_t*)yuvframe.video_frame_buffer()->DataY();
+ uint8_t* brightnessData = (uint8_t*)yuvframe.video_frame_buffer()->GetI420()->DataY();
96
97
Mat frame;
98
frame.create(height, width, CV_8UC1);
0 commit comments