This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string strRECName = "Z:\\temp\\video.avi"; | |
CvSize sz = new CvSize(640, 480); // 動画のサイズ | |
int codec = 0; // コーデック(AVI) | |
CvVideoWriter vw = new CvVideoWriter(strRECName, codec, 30, sz, true); | |
//bitmapをIPLImageへ変換する | |
OpenCvSharp.IplImage ipl2 = (OpenCvSharp.IplImage)BitmapConverter.ToIplImage(bmpVideo); | |
//ビデオ保存 | |
vw.WriteFrame(ipl2); | |
vw.Dispose(); |
0 件のコメント:
コメントを投稿