Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mix ObjC and Swift #6

Open
FreakTheMighty opened this issue Oct 9, 2024 · 1 comment
Open

Mix ObjC and Swift #6

FreakTheMighty opened this issue Oct 9, 2024 · 1 comment

Comments

@FreakTheMighty
Copy link

Thanks for setting this up. It has made getting started with OpenCV in swift incredibly easy.

I'd like to utilize the FileStorage for persisting feature descriptors and key points, but it seems like the API isn't exposed via Swift. Assuming I'm not missing something, I'd like to utilize objC with a bridging header. Unfortunately, it seems that I can't locate the appropriate opencv headers.

Any direction would be much appreciated.

@r0ml
Copy link
Owner

r0ml commented Oct 16, 2024

Not sure what the sticking point is.

In my project on XCode, I

import OpenCV

and then write a function like:

  func trySomething() {
    let j = OpenCV.cv.FileStorage()
    j.getFirstTopLevelNode()
  }

which compiles.

Can you give me more detail about what you are trying to do; pointer to some example code; etc.?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants