Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Last active September 8, 2017 06:16
Show Gist options
  • Save kjunichi/511a65c04863b8fc8621dc0e83cc3682 to your computer and use it in GitHub Desktop.
Save kjunichi/511a65c04863b8fc8621dc0e83cc3682 to your computer and use it in GitHub Desktop.
2017/9/8

rbenv

/usr/local/Cellar/rbenv/1.1.0/libexec/rbenv: No such file or directory
rbenv rehash

OpenCV

CV_EXPORTS

cvQueryFrameはIplImage*を返す PNGデータを返す cvEncodeImageは CvMat型を返す 欲しいのサイズと先頭アドレス

imencode(type.c_str(), mat, buff, param);

CvMat* cvEncodeImage(const char* ext, const CvArr* image, const int* params=0 )

cvEncodeImage returns single-row matrix of type CV_8UC1 that contains encoded image as array of bytes.

Homebrewのopencvをpyenvで使う

opencvのオプションがごっそり消えてた。。

PYTHONPATH=/usr/local/opt/opencv/lib/python3.6/site-packages:/usr/local/lib/python3.6/site-packages/ python3

関連

アクセス解析タグ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment