Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 425 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 425 Bytes

YUV-Reader

This repository aims to read YUV frame from a file. I use the newest OpenCV 3.0(above). Feel free to post issues or pull request.

*Usage:

Init YuvReader object:

YuvReader yuvReader(VIDEO_PATH, VIDEO_WIDTH, VIDEO_HEIGHT, DEBUG = true);

Read each frame by while loop:

Mat frame;
while (true) {
	  if (!yuvReader.read(frame)) {
		  return 0;
	  }
	  imshow("Video", frame);
	}