Difference outputs when resize image by OpenCV in languages and platform (with same images)

asked 2018-12-20 05:59:16 -0500

I use functions:

Python:

resized_image = cv2.resize(crop_image, (160, 160))

Java:

Size sz = new Size(160, 160);

Mat resizeMat = new Mat();

Imgproc.resize(cropImage, resizeMat, sz);

Android:

// Crop image is a Bitmap

Size sz = new Size(160, 160);

Mat resizeMat = new Mat();

Imgproc.resize(cropImage, resizeMat, sz);

Outputs are different from each other.

Please help me.

Thank you.

edit retag flag offensive close merge delete