Python Forum
Loop face landmarking in all folder using dlib
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loop face landmarking in all folder using dlib
#2
Step 1 is write your program like this:
def find_faces(filename):
    """Function that does everything you are doing right now for 1 file"""

find_faces("image_file_name.jpg")
find_faces("another_image_filename.jpg")
Once you get that working you will replace the two function calls with a loop that iterates over filenames in a folder. There are may ways to iterate though files in a folder and several tutorials on the web.
Reply


Messages In This Thread
RE: Loop face landmarking in all folder using dlib - by deanhystad - Apr-16-2020, 05:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Compare folder A and subfolder B and display files that are in folder A but not in su Melcu54 3 636 Jan-05-2024, 05:16 PM
Last Post: Pedroski55
  How to loop through all excel files and sheets in folder jadelola 1 4,612 Dec-01-2022, 06:12 PM
Last Post: deanhystad
  How to zoom on/follow MOUTH in FACE? (OPENCV Face Detection) buzzdarkyear 2 1,839 Jan-12-2022, 12:31 AM
Last Post: buzzdarkyear
  How to crop eyes/nose/mouth in the face only? [OpenCV] buzzdarkyear 0 2,202 Jan-11-2022, 01:41 PM
Last Post: buzzdarkyear
  Compare filename with folder name and copy matching files into a particular folder shantanu97 2 4,592 Dec-18-2021, 09:32 PM
Last Post: Larz60+
  pip install dlib packge issue MahendraYadav 1 7,020 Aug-31-2021, 07:06 PM
Last Post: snippsat
  Face detector project? korenron 2 2,162 Mar-24-2021, 03:43 PM
Last Post: korenron
  Move file from one folder to another folder with timestamp added end of file shantanu97 0 2,522 Mar-22-2021, 10:59 AM
Last Post: shantanu97
  How to skip a folder directory in a loop mfkzolo 2 12,724 Nov-18-2020, 07:56 AM
Last Post: mfkzolo
  Python Cut/Copy paste file from folder to another folder rdDrp 4 5,171 Aug-19-2020, 12:40 PM
Last Post: rdDrp

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020