how to get RGB image fater from camera
fatalfeel opened this issue · comments
Jesse Stone commented
~/dlib/examples/webcam_face_pose_ex.cpp
cv::VideoCapture cap(0);
if (!cap.isOpened())
{
cerr << "Unable to connect to camera" << endl;
return 1;
}
cv_image<bgr_pixel> cimg(temp);
~~~but this way is slower
I want to camera get RGB how to do
Jesse Stone commented
I found this forum. Got answer---using YUYV and no gstreamer
https://forum.opencv.org/t/capture-rgb-frame-directly-using-open-cv-apis/4197/11