0

I try this in CameraFrame

// TODO Auto-generated method stub
mRgba = inputFrame.rgba();
Imgproc.rectangle(mRgba, new Point(10, 10), new Point(20, 20),new Scalar(0, 255, 0));
Imgproc.putText(mRgba, "====", new Point(10,10), 3, 1, new Scalar(255, 0, 0, 255), 2);
return mRgba;

The application compiles but it stops working on the device. I think there is a problem with new Point (,), but I am unsure if that really is the cause.

1
  • 1
    Your code is working fine for me. I hope you are using org.opencv.core.Point. Also make sure you are using this code in onCameraFrame callback method. Commented Jul 27, 2016 at 7:08

1 Answer 1

1

I tried your codes, seems no problem. Open "Android Monitor" for debugging.

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.