davisking / dlib

A toolkit for making real world machine learning and data analysis applications in C++

Home Page:http://dlib.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to get RGB image fater from camera

fatalfeel opened this issue · comments

~/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

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