Code: Select all
int w = userdata->video_width, h = userdata->video_height char * pointer = (char *) (buffer -> data); cv::Mat y = cv::Mat(w, h, CV_8UC1, pointer); pointer += w*h; cv::Mat u = cv::Mat(w/2, h/2, CV_8UC1, pointer); pointer += w*h/4; cv::Mat v = cv::Mat(w/2, h/2, CV_UC1, pointer);
peepo wrote:thanks for your prompt response,
afaict 'works for me' using:
mmal_video_record > test2.h264
looking forward to your further comments and patches
how to set length of time to record?
Hello,highway900 wrote:So I have been doing some Augmented reality on the Pi with opencv and aruco.
Playing with the res gets me about 20fps marker detection.
Will post some code really soon.