2021-10-01から1ヶ月間の記事一覧

CLionでビルド済み配布OpenCVを利用する

・CMakeLists.txt include_directories( C:/opencv/build/include )link_directories( C:/opencv/build/x64/vc15/lib )add_executable( test opencv_test.cpp )target_link_libraries( test opencv_world420d.lib) ・CLion設定 File->Settings->Build, Execu…

Kotlin OpenCVのMat操作

val buffer = mat.createBuffer<IntBuffer>()でBufferを取得して一次元配列としてアクセス(IntBuffer部分は元のmatの型に合わせる)</intbuffer>

Kotlin(Gradle)でOpenCV

implementation "org.bytedeco:javacv-platform:VERSION"org.bytedeco:opencv単体では使えない。javacv-platformをbuildすると、opencvも自動でbuildされる