2018-07-01から1ヶ月間の記事一覧

OpenCV USBカメラをキャプチャして動画を作成する(C++)

C++でUSBカラメをキャプチャしてAVIを作成する。 OpenCV 3.4.1 #include <opencv2/opencv.hpp> int main() { using std::cout; using std::endl; int camera_id = 0; double fps = 30.0; double width = 640.0; double height = 480.0; // DirectShowでキャプチャ cv::VideoCaptu</opencv2/opencv.hpp>…

C++/CLIでString^(UTF-16)とchar*(UTF-8)の相互変換を調べたのでメモ。

久し振りに仕事でちょっとしたフレームワーク作ってます。 昔を思い出すこの感じ。嫌いじゃないです。 ※Shift-JISは一切考慮してません #include "msclr/marshal.h" #include "msclr/marshal_windows.h" #include "msclr/marshal_cppstd.h" #include "msclr/…