Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
/* | |
This functions opens a video file and extracts the frames and put them into a vector of Mat(its the class for representing an img) | |
*/ | |
void extract_frames(const string &videoFilePath,vector<Mat>& frames){ | |
try{ | |
//open the video file | |
VideoCapture cap(videoFilePath); // open the video file | |
if(!cap.isOpened()) // check if we succeeded | |
CV_Error(CV_StsError, "Can not open Video file"); |