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

question: get faces count on image? #246

Open
Hakentha opened this issue Feb 26, 2021 · 4 comments
Open

question: get faces count on image? #246

Hakentha opened this issue Feb 26, 2021 · 4 comments
Assignees
Labels

Comments

@Hakentha
Copy link

Hi!
Is to fast load image and then get the locations. but if i use count on ienumerable of locations is too slow.
Is any way to do faster?

Im using c#.

Thank you!!

@takuya-takeuchi
Copy link
Owner

if i use count on ienumerable of locations is too slow.

IEnumerable does what like delayed evaluation.
When you call FaceLocation method, FRDN does not do FaceLocation.
You retrieve face location data at the precise moment FaceLocation will be executed.

@Hakentha
Copy link
Author

Hakentha commented Feb 27, 2021

i use loadimagefile to get imagedata.
Then i use FaceLocations( <imagedata from loadimagefile> )
I get an ienumerable which is a enum with the locations of faces from the image.
If i use count or lenght i can get the number of faces.
But when a use it, the process is very slow.
500 images, i can get imageData and locations in 2 or 3 seconds. but when i use the count is 56 seconds.

Thankyou for ur response.

@takuya-takeuchi
Copy link
Owner

@Hakentha
Sorry. I don't mean what you say.
What do you think problems?

  • FaceLocations method takes too long time for per image
    • FaceLocation (Hog) does not use GPU so you may improve performance by using Cnn and GPU.
    • Or make small image before do FaceLocation
  • IEnumerables .Count takes too long time
    • Delayed evaluation and it is specification of CLI.

@Hakentha
Copy link
Author

Hakentha commented Mar 1, 2021

Thank you for ur response, i apreciate it.
I use Paralell.
I can get 500 image class with LoadImageFile function, in less than 3 seconds.
I can get 500 images Locations with FaceLocations function and cnn, in less than 1 second.
But i cant get the number of faces of that 500 images; in less than 1 minute...

Its dificult to explain, but the quick question: ¿its a way to get the number of faces, in a image file quickly?

Thank you so much!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants