how to crop custom rectangle shap from image using opencv android

asked 2019-02-22 05:09:43 -0500

i have an app and want to crop a custom rectangle from that shap. have any one solution how to crop. my code is

Rect rect=new Rect(1000,1000, mat.size().width, mat.size().height); Mat output=new Mat(mat, rect); Bitmap b=converMat2Bitmat(output);

edit retag flag offensive close merge delete