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

i am not able to get confidence value through log.i #39

Open
ojhagopal98 opened this issue Apr 14, 2020 · 3 comments
Open

i am not able to get confidence value through log.i #39

ojhagopal98 opened this issue Apr 14, 2020 · 3 comments

Comments

@ojhagopal98
Copy link

in recognizer.java how can i use or see the confidence value, if I'm not wrong the confidence value is the float value which is displayed under frame in the output screen.
I just want to add that if confidence is greater than 0.6 than email notification should trigger.please help

@deepsingh132
Copy link

Yes, same question. I'm also not able to fetch the confidence and other values such as string title for person name. Did you find any solution ? I want to display a cardview as soon as the person is recognized, with the person's info and image on the card. but for this i need confidence and other values in my main activity. Any help would be much appreciated !

@ojhagopal98
Copy link
Author

I used log to display the confidence under multiboxTracker.java file -- >below labelString variable I made a change as Log.i("Tagname", String.valueOf(recognition.detectionConfidence)); through this line, I can see the confidence after running in logcat via Android studio here you can use the confidence value for your application I hope it helps also go through recognizer.java it would help. ATB for your project

@deepsingh132
Copy link

@ojhagopal98 Thank you for your wishes, but i have some questions, like i want to save the recognized faces in the phone itself and whenever a face is recognized, i want to display it on a cardview as a type of list. Like after 1st person is recognized, display their name and photo on the cardview and add them to the list then same with second and so on. Can you help with that ?
Currently I'm not able to save the recognized images and using preview image for the same.

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