Convert Android Bitmap to OpenCV Mat and backwards

后端 未结 2 1305
庸人自扰
庸人自扰 2021-02-05 22:50

I wanted to simply convert a bitmap from Android to a Mat object for OpenCV. This topic is often adressed on Stack Overflow. For example:

convert Mat to Bitmap Opencv fo

2条回答
  •  名媛妹妹
    2021-02-05 23:14

    you should add OpenCV lib dependecy to your android prj config(properties->Android->Library ->add [opencv andrid prg])

提交回复
热议问题