Find the face in the image Version 1 (Python)

Action group: Robin OCR


Description

The action allows you to find out if the image has a person's face in a strict format (full-face, face only, clear photo).

Action icon

Parameters and their settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
File pathThe path to the image file where you want to check for the presence of a person’s face. Supported formats: jpg, jpeg, bmp, dib, rle, jpe, jfif, tif, tiff, png.Robin.FilePath
Yes
Results
ResultIf the value is «true», then a face is found in the image. If «false», the face is not found.Robin.Booleantrue

Special conditions of use

The company has a procedure with job applications where the job seeker fills in a questionnaire. All submitted questionnaires need to be filtered by the primary parameters of correctness of filling in the fields. With this action, you can check whether the person has attached a suitable image. Requirements for business style photo: 

  • a man's face in full-face,
  • the face is clearly visible,
  • one person in the frame,
  • not a full- size man.

For example, if there is a photo of a cat and a group of people in the questionnaire, then such a questionnaire will not pass the check. 

The result of the action is "false" if:

  • a full- size man,
  • several people in the photo,
  • a man in a mask,
  • a man with dark glasses,
  • the person's head is tilted,
  • part of the face is hidden,
  • dark photo,
  • man's head is turned, 
  • part of the face is cropped off,
  • no person,
  • person turned away,
  • the photo is of poor quality, fuzzy, pixelated.

The result of the action is "true" if the mandatory conditions are met:

  • a man's face in full-face,
  • the face is clearly visible,
  • one person in the frame,
  • not a full-size man.

If the prerequisites are met, "true" will also be if:

  • selfie,
  • the man is made up,
  • there is a child in the photo.

For multi-page files, the action will only check the first page of the document.

Example of use 

Task 1

Check to see if the photo has the person's face on it and the photo is taken in business style.

Solution

Use the "Find the face in the image" action. 

Implementation

  1. Assemble a robot scheme consisting of an action.


  2. Customize the "Find the face in the image" action option. 


  3. Click on the "Start" button in the top panel. 

Result

The program robot completed successfully. 

The result is True. The photo passed the test.


Task 2

Check to see if the photo has the person's face on it and the photo is taken in business style.

Solution

Use the "Find the face in the image" action. 

Implementation

  1. Assemble a robot scheme consisting of an action:


  2. Set the "Find the face in the image" action option. 


  3. Click on the "Start" button in the top panel. 

Result

The program robot completed successfully. 

The result is False. The photo failed because it shows 2 people in full-size.

  • Нет меток