Skip to content

feat: Camera Passthrough #8

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

Conversation

thomas-coldwell
Copy link
Contributor

Hi Lukasz 🙌 Thanks for creating such a useful library!

I've reached for this as I needed to apply some affine transforms to an frame from Vision Camera and OpenCV has fantastic utilities for this. As I was getting setup through I noticed that the resulting frame data would be empty. I realised its because we just pass a pointer to the vector's data but once this vector goes out of scope it gets deallocated so we need to memcpy the data into the OpenCV Mat instead.

I've also included a few other handy changes here like some logging to report any errors when invoking the OpenCV functions and spruced up the example app so this can be extended with lots of lovely examples in the future!

@lukaszkurantdev
Copy link
Owner

@thomas-coldwell Wow, thanks for your great work! All changes will be includes in the next version :)

@lukaszkurantdev lukaszkurantdev merged commit d45d4bf into lukaszkurantdev:main Sep 14, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants