Appendix D
FaceSnap
D.1 Introduction
The FaceSnap automates the pre-processing and production of portrait photos for passports, identification cards, etc.
An input image can be acquired (e.g., from a standard TWAIN device or from a file) and then be checked for an available face with the FaceSnap. If a face has been detected successfully, the module generates an output image that is standardized in size and luminance.
P1029261-001 Rev A Zebra CardStudio Reference Manual 163
FaceSnap
D.2 FaceSnap Setup
Note •
The following points or quality characteristics for the acquisition of images should be taken into consideration in order to succeed in the face detection and to achieve a high quality output image:
• There is sufficient margin to crop the face from the input image.
• The image is focused and not blurred.
• The frontal face is 15 % turned (maximum) or both eyes are visible.
• The face is not rotated.
1.
Click on the
Options
icon on the toolbar, then select
Imager Settings
.
2.
View the
Imager settings
window.
164
Step 3 :
Auto Crop
Step 10 :
OK
Step 4 :
Properties Button
3.
Select the
Auto Face Recognition and Crop
checkbox.
FaceSnap
will always be called for Image Acquisition.
4.
Click on the
Properties
button.
Zebra CardStudio Reference Manual P1029261-001 Rev A
FaceSnap
5.
View the
Properties
window.
6.
Make desired brightness, contrast, and color adjustments (circled above):
•
Brightness and Contrast
sliders changes the luminance of the output image.
•
Automatic Pre-Normalization
checkbox:
If not checked, the brightness and contrast of the image can be increased or decreased by the slider controls. If brightness and contrast are both set to zero, the output image has the same illumination as the input image.
If checked, the output image will be normalized to a standard illumination (prenormalized). By changing the values for brightness and contrast the standard values, the pre-normalization will be increased or decreased.
Furthermore, it is possible to change contrast and brightness for a single image without saving the values as permanent settings.
•
Auto Correction of Face Color
checkbox:
If not checked, the color of the output image (the color of the face) will not be corrected automatically.
If checked, the color of the output image (the color of the face) will be corrected automatically. Thus, a slightly color-distorted face can be restored to the original color. If the color of the face is natural, the color will not be adjusted.
P1029261-001 Rev A Zebra CardStudio Reference Manual 165
FaceSnap
7.
Make desired image margins and positioning adjustments (circled below):
166
•
Zoom
determines the size of the region that is cropped from the source image relative to the size of the found face (face box). Thus, faces with different sizes or resolutions have a constant size and margin in the resulting image.
The slider provides a range of values for the actual image. If the face is situated near the border of the input image and the scaled and cropped image region exceeds the border of the input image, the result image will be padded (filled with white) automatically.
• A value of 0 provides the face region that includes eyes, nose, and mouth.
• A value of 200 means that the left and right margins in the result image have the same dimensions as the face region.
•
Vertical Offset
moves the image in the window up or down. Moving the slider to the right (positive offset) moves the image up. Moving the slider to the left (negative offset) moves the image down.
•
Horizontal Offset
moves the image in the window left or right. Moving the slider to the right (positive offset) moves the image to the right. Moving the slider to the left
(negative offset) moves the image to the left.
•
Auto Offset
checkbox
:
If checked and the crop region exceeds the border of the input image, so that the image has to be padded, the cropped face image will be moved automatically by the amount of the inserted space.
Additionally, the
Auto Offset
function slightly corrects the horizontal offset of the face within the output image. A slightly rotated face is better centered in the output image.
Zebra CardStudio Reference Manual P1029261-001 Rev A
8.
Make desired face detection adjustment (circled below):
FaceSnap
• Camera Rotation normally finds faces only if they appear in an approximately upright
position in an image. In some applications it may be useful to rotate the camera so that the original camera image is always in portrait format.
With the icon buttons under “
Camera Rotations
” the standard rotational orientation of a face in the image can be set other than upright.
Note •
By pressing the
Properties
OK
button, the settings will only be accepted for the actual loaded image. The properties will not be saved permanently for further image acquisition sessions. By pressing the
Properties
Cancel
button, the window will be closed without accepting changed values.
9.
Click on the Properties
OK
button. The
Properties
window will close.
Note •
By pressing the
Imager settings
OK
button, the changed settings take effect permanently. The result image will be updated if settings for cropping the face or normalizing the image are edited. If the parameters for face detection are changed, it is required to repeat the face detection to see the effects.
10.
Click on the
OK
icon. The
Imager settings
window will close.
P1029261-001 Rev A Zebra CardStudio Reference Manual 167
FaceSnap
D.3 Using FaceSnap
1.
Click on the
Live Image
button.
2.
Move the pointer to the location on the card where you want to place the the upper lefthand corner of the image.
3.
Press and hold the left mouse button, and drag from left to right. As you drag, an image frame forms. Continue dragging until the frame is the desired size, then release the mouse button.
Step 1
:
Live Image
Step 7
:
Preview
Step c :
Live Image
Step 6
:
FaceSnap
Step 7b
:
Imager settings
168
Step 4
:
Take Picture
Step 8 :
OK
4.
Preview the image in the Imager.
5.
Click on the
Take Picture
button.
6.
Activate FaceSnap by clicking on the
FaceSnap
button.
7.
Preview the FaceSnap image.
a.
If the image in the preview window is OK, go to
Step 8
.
b.
If the image needs adjusting, click in the
Imager settings
button, make the necessary adjustments (see
Section D.2
), exit the
Imager settings
window, click on the
Live
Image
button, and go to
Step 4
.
c.
Otherwise, click on the
Live Image
button, and go to Step 4 .
8.
Click on the
OK
button.
Zebra CardStudio Reference Manual P1029261-001 Rev A