Skip to content

Modify code to process video from camera #6

@lanyusea

Description

@lanyusea

Hi, I'm trying to modify the code in order to process with my camera.

But I got a segmentation fault (core damped) after compile.

I use the cv::VideoCapture cap(1) to read my camera, then put cv::Mat img and cv::Mat im_gray out of the for loop then cap>>img; inside the loop. Also comment the num2str and sprintf.

But it doesn't work,
Can anyone tell me what else should I modify?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions