how to crop image using opencv

Is there an option to crop the image using OpencvUnity package.I can resize but not crop.Kindly help

Shouldn’t be too hard. The OpenCVUnity package is essentially bindings to the Java OpenCV library, so what works in the Java library should work in the Unity one.

Rect rectCrop = new Rect(cropCenterX, cropCenterY, cropWidth, cropHeight);
Mat croppedImage = new Mat(originalImage, rectCrop);

Let me know if that worked or not!