Skip to content

Commit 067d146

Browse files
authored
Merge pull request #271 from inventive-seven/opencv-example-fix
Fixed usage of old-version webrtc::VideoFrame
2 parents 411005b + 21a1d30 commit 067d146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webrtc/samples/opencvanalyzer/objectdetector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ namespace scy {
9292
Rect crop(Point((width - cropSize.width) / 2, (height - cropSize.height) / 2), cropSize);
9393

9494
// get gray frame
95-
uint8_t* brightnessData = (uint8_t*)yuvframe.video_frame_buffer()->DataY();
95+
uint8_t* brightnessData = (uint8_t*)yuvframe.video_frame_buffer()->GetI420()->DataY();
9696

9797
Mat frame;
9898
frame.create(height, width, CV_8UC1);

0 commit comments

Comments
 (0)