yeatse / opencv-spm

Integrate OpenCV into your project using Swift Package Manager.
Apache License 2.0
75 stars 23 forks source link

Ambiguous use of 'solvePnP(objectPoints:imagePoints:cameraMatrix:distCoeffs:rvec:tvec:)' #24

Open hartwoolery opened 3 months ago

hartwoolery commented 3 months ago

It appears that both the regular and fisheye solvepnp use the same NS_SWIFT_NAME resulting in an error when attempting to use

The latter function should use something like NS_SWIFT_NAME(solvePnPFisheye...)

yeatse commented 3 months ago

This seems to be a bug in the upstream OpenCV repository. I have submitted a pull request to fix this: https://github.com/opencv/opencv/pull/25927

Until this PR is merged, you can stick to version 4.9.0 (or commit 380ffe99a92b3984585515d6b5692e100e4b6221) to use it normally.