목록영상 잘라내기 (2)
DY의 세상구경
opencv를 이용하여 영상 부분 잘라내기 원하는 구간을 잘라낼 때 사용한다. opencv 3.1 기준. 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657#include #include using namespace std;using namespace cv; #define input "input.avi"#define output "output.avi"#define startFrame 500#define endFrame 1000 int main(){ int iCurrentFrame = 0; VideoCapture vc = VideoCapture(input); if (!v..
open cv를 이용하여 영상 잘라내기 2.4.11버전을 사용하였다. 1234567891011121314151617181920212223242526272829303132#include "opencv.hpp"using namespace cv; int main(){ const string path = "C:/xxx/xxxx.../input.avi"; VideoCapture videoCapture(path); if (!videoCapture.isOpened()) return EXIT_FAILURE; double fps = videoCapture.get(CV_CAP_PROP_FPS); int width = (int)videoCapture.get(CV_CAP_PROP_FRAME_WIDTH); int height ..