Cant save image using OpenCV

前端 未结 2 1337
谎友^
谎友^ 2021-01-29 09:36

I was trying to save images from a video file but It couldn\'t save any image in my hard drive. I compiled following program without errors.

#include 

        
2条回答
  •  误落风尘
    2021-01-29 10:06

    You forgot to actually save the image:

    cvSaveImage(buffer ,img);
    

    Also, the following is redundant:

    IplImage* small; // <-- you don't need this
    IplImage* small=new IplImage(inputArray);
    

提交回复
热议问题