-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Solve the "Unrecognized selector" issue in Objective-C/Swift binding #23512
Copy link
Copy link
Closed
Description
System Information
OpenCV version: 4.x latest
Operating System / Platform: MacOS any
Detailed description
As originally reported in #17532 there is a frequently occurring problem when trying to use the -[Mat toUIImage] method and other similar methods.
The "unrecognized selector sent to instance" error can be worked round by modifying the "Other Linker Flags" but its a pain to always have to do this. Other functionality like debug Quicklook (#20457) also requires these flags to be set in order to work correctly and there is no hint in the UI to indicate that this is the case.
To solve the problem we need to move the functionality added to Mat using categories in Mat+Converters and Mat+Quicklook directly into the Mat implemenation
Steps to reproduce
Refer to #17532
Issue submission checklist
- I report the issue, it's not a question
- I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- I updated to the latest OpenCV version and the issue is still there
- There is reproducer code and related data files (videos, images, onnx, etc)
Reactions are currently unavailable