Opencv android, capture image

后端 未结 2 1986
执笔经年
执笔经年 2021-02-06 18:49

I will try to simplify my problem. Lets say i just want to see grayscale images using camera, i do it this way:

public Mat onCameraFrame(CvCameraViewFrame inputF         


        
2条回答
  •  春和景丽
    2021-02-06 19:43

    This is super duper old but I saw it so many times while searching. I solved my issue by using

    Imgcodecs.imwrite(fileName,mRgba);
    

    instead of

    javaCameraView.takePicture(fileName);
    

    in my onTouch method.

提交回复
热议问题