Click here to Skip to main content
15,914,780 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I would like to ask what is the difference between face_recognition.api.batch_face_locations and
face_recognition.face_locations

The official document here explains the use of the first one, but I've seen others using the second one. So, what is the difference between the two? face_recognition package — Face Recognition 1.4.0 documentation[^]

I'm a beginner in Python. Would appreciate any help!

What I have tried:

I've personally tried using the second one, and it works.
Posted
Updated 11-Jan-21 21:33pm

1 solution

face_recognition.api.batch_face_locations
Deals with batch processing. (you can define number of images to include in each GPU processing batch)

face_recognition.face_locations
Deals with one at a time.

You can use one or the other based on your need. I would take batch using the one underlying.
 
Share this answer
 
Comments
[no name] 12-Jan-21 3:37am    
I understand now. Thank you!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900