Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6433 Discussions

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

Ray_Lo_Intel
Employee
724 Views

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
702 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


0 Kudos
Rizal_Intel
Moderator
672 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


0 Kudos
Reply