react-native-opencv3
react-native-opencv3 copied to clipboard
Recognition is much better when further away?
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?
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.
Hi axcasella, It sounds like an underlying opencv issue I have not really worked with live recognition. But react-native-opencv3 is really just a wrapper around OpenCV. Best regards, Adam
On Thu, May 21, 2020 at 2:25 PM axcasella [email protected] wrote:
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?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/adamgf/react-native-opencv3/issues/24, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ6V3ZW5R6ZK4QHUXIJA7DRSWL2ZANCNFSM4NHF4MPQ .
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