Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Raymond
Employee
214 Views

images_capture.cpp in demo code = not compatible with Macbook 16"

Apparently the hard coding in the "common/src/images_capture.cpp" broke the video capturing on the Macbook 16". I have to taken out the cap.set flags manually or I will get an input error. FYI for the team, and also why are we hard coding these at all? 

public:
    VideoCapWrapper(const std::string &input, bool loop, size_t initialImageId, size_t readLengthLimit,
                cv::Size cameraResolution)
            : ImagesCapture{loop}, nextImgId{0}, initialImageId{static_cast<double>(initialImageId)} {
        try {
            cap.open(std::stoi(input));
            this->readLengthLimit = loop ? std::numeric_limits<size_t>::max() : readLengthLimit;
            //cap.set(cv::CAP_PROP_BUFFERSIZE, 1);
            //cap.set(cv::CAP_PROP_FRAME_WIDTH, cameraResolution.width);
            //cap.set(cv::CAP_PROP_FRAME_HEIGHT, cameraResolution.height);
            //cap.set(cv::CAP_PROP_AUTOFOCUS, true);
            //cap.set(cv::CAP_PROP_FOURCC, cv::VideoWriter::fourcc('M', 'J', 'P', 'G'));

0 Kudos
2 Replies
Rizal_Intel
Moderator
192 Views

Hi Raymond,


Would you mind sharing details such as your OS and which demo you ran?

Furthermore, please share your OpenVINO version and any error message you encountered.


Regards,

Rizal


Rizal_Intel
Moderator
162 Views

Hi Raymond,


Thank you for your question. If you need any additional information from Intel, please submit a new question as Intel is no longer monitoring this thread.


Regards,

Rizal


Reply