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

Recognition is much better when further away? #24

Open
axcasella opened this issue May 21, 2020 · 3 comments
Open

Recognition is much better when further away? #24

axcasella opened this issue May 21, 2020 · 3 comments

Comments

@axcasella
Copy link

I made an interesting discovery when experimenting with live recognition.

The recognition is much better and has much less flickering when I am further away from the camera (one arm length). It even recognizes the face when my head is tilted. If I am closer to the camera (8 inches away from camera), then recognition barely works. Why is that? Could it be an underlying opencv issue?

@axcasella
Copy link
Author

To make sure it's not an issue with the bridge or my phone's performance, I tried running a simple opencv face recognition in python on my computer. I got similar results.

@adamgf
Copy link
Owner

adamgf commented May 27, 2020 via email

@adamgf
Copy link
Owner

adamgf commented Jul 22, 2020

Hi @axcasella,
I just realized in going through this there is a parameter that is used for the relative size of the face that is sent to the face detection it is a floating point number like 0.2 or something like that I do not remember the specifics. But you could change react-native-opencv3 to make that configurable and change it in the tag. It is some minor changes to the CvCamera tag and then the corresponding native code. If you want to do that go for it I believe I made you a contributor.
Best regards,
Adam

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