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

when and where is the function processImage of ViewController.mm called? #133

Open
PapaMadeleine2022 opened this issue Sep 17, 2019 · 2 comments

Comments

@PapaMadeleine2022
Copy link

Hello, I am a novice and do not know when and where the function processImage of ViewController.mm is called.
Can you give some advises ? Thanks.

@PapaMadeleine2022
Copy link
Author

need help..

@m3nsr3a
Copy link

m3nsr3a commented May 30, 2020

@IvyGongoogle
It's a callback from OpenCV camera module.
Basically, as soon, as you declare a camera delegate

self.videoCamera.delegate = self;

and start capturing

[videoCamera start];

instead of default AV output style, you are going to receive images in OpenCV format(i.e. cv::Mat with 4 Chanels(BGRA)).

However one detail here, is that in current work it appears a patched version of OpenCV seems to be used.

float lowPart = image.at<float>(0,0);
float highPart = image.at<float>(0,1);

Original function, doesn't store timestamps on the borders of images(and all code further seems to take that in account).

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