LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-21-2018, 12:06 AM   #1
Venus Bansal
LQ Newbie
 
Registered: Feb 2018
Posts: 1

Rep: Reputation: Disabled
how to get the accuracy rate of an face recognition algorithm in python


I am working on a face recognition project. Everything is working fine, except I want to display recognition accuracy rate and total number of recognized face images and unrecognized face images from database during training phase.
I am using my own created grayscale face images database and I have 4000 face images stored in a database. This training file train the stored images for recognition.
 
Old 02-21-2018, 01:09 AM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
Welcome to LQ!

You have not actually asked a question that can be answered specifically by anyone not familiar with your software or image data. The basic problem as you have described it is purely mathematical, being the total number of accurate recognitions divided by the total number of recognition attempts. As such it is really just a simple division of one number by another. So, your problem is one of obtaining the numbers and performing the division.

As you have said it is all working fine, presumably you can keep an internal count of attempts and successes easily enough to produce those numbers.

If you need help with the code to do that, you will need to provide much more detail about your own project's code and identify the point at which it knows whether a recognition was successful or not. At that point you simply need to keep two variables updated then divide one by the other to produce the basic success rate, trivial in python.

In general when asking for such help it is best to show what you have done so far, to provide a useful context for those offering help, and the demonstrate your own level of knowledge. While others here are willing to help, most are not interested in writing a complete solution for you without effort demonstrated on your part.

Please also review the Site FAQ for guidance in asking complete and well formed questions. The link at bottom of that page, How To Ask Questions The Smart Way is a very good guide!

Good luck!
 
Old 02-21-2018, 11:42 AM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,249

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
Quote:
Everything is working fine, except I want to display recognition accuracy rate and total number of recognized face images and unrecognized face images from database during training phase.
I'm confused. Why isn't this the easiest part?

I'd think it would be just adding print statements to the source code.

Last edited by dugan; 02-21-2018 at 11:47 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
image based face recognition sachinmm Linux - Newbie 8 05-24-2016 07:34 AM
face recognition software ? tonj Linux - Software 1 02-10-2014 12:20 AM
face recognition software for logging into fedora ?? dEnDrOn Linux - Software 7 12-26-2011 11:14 AM
Face Recognition and Thumbnail Creation WeNdeL Linux - Software 0 01-10-2006 12:36 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration