OpenCVForUnity icon indicating copy to clipboard operation
OpenCVForUnity copied to clipboard

Whether "Imgproc.getAffineTransform" method cannot be used

Open VictorQiuYY opened this issue 1 year ago • 2 comments

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

always: Native object address is NULL

VictorQiuYY avatar Apr 23 '24 04:04 VictorQiuYY

image

VictorQiuYY avatar Apr 23 '24 04:04 VictorQiuYY

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);

EnoxSoftware avatar Apr 23 '24 09:04 EnoxSoftware