EnoxSoftware / OpenCVForUnity

OpenCV for Unity (Untiy Asset Plugin)
https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088
550 stars 172 forks source link

Whether "Imgproc.getAffineTransform" method cannot be used #185

Open VictorQiuYY opened 2 months ago

VictorQiuYY commented 2 months ago

An error occurs when you use the Imgproc.getAffineTransform method . image

always: Native object address is NULL

VictorQiuYY commented 2 months ago

image

EnoxSoftware commented 2 months ago

This error is probably due to some arguments not being initialized.

In order to display the native opencv's error code, please enclose the code in Utils.setDebugMode(true) and Utils.setDebugMode(false). You may see some error in the UnityEditor console.

Utils.setDebugMode(true);

Imgproc.getAffineTransform( src, dst);

Utils.setDebugMode(false);