How to (imwrite) multiple images from a live Camera [closed]

asked 2019-02-21 12:41:46 -0500

babajj gravatar image

updated 2019-02-21 12:46:51 -0500

Hello everyone,

I successfully use this code to capture and imwrite a single image into a folder, so now I want to imwrite/save multiple captured frames. Below is the code:

for (unsigned i = 0; i < faces.size() ; i++)

    rectangle(img,faces[i], Scalar(255, 0, 0), 2, 1);

    imwrite("C:\\Users\\rula\\Desktop\\captured images\\images.jpg", img);

    imshow("wooohooo", img);

    int key2 = waitKey(20);
edit retag flag offensive reopen merge delete

Closed for the following reason not a real question by berak
close date 2019-02-21 13:25:01.399483


not an opencv problem at all,please learn basic programming first

berak gravatar imageberak ( 2019-02-21 13:26:37 -0500 )edit

It is definitely a question. Please re-open.

babajj gravatar imagebabajj ( 2019-02-21 13:27:30 -0500 )edit