Panasonic AW-SF100/SF200 AW-SF100 API Documentation - Page 23

Clip Face Image

Page 23 highlights

Auto Tracking System Web API Specifications Version 1.6 3.14 Clip Face Image The Clip Face Image command is used for extraction of face image data from a JPEG-format input image. This command can be executed by posting the input image to the URL specified below. http://[IP Address]:[portNo]/cgi-bin/auto_tracking?cmd=ClipFaceImage Therefore, the input image must be transmitted as multi-part data such as that illustrated below. 8d3439d84d3f4b0 Content-Disposition: form-data; name="file"; filename="input.jpg" Content-Type: application/octet-stream (File content) 8d3439d84d3f4b0-- Note that the reception response is saved as either "ack", which indicates a positive acknowledgment, or "nack", which indicates a negative acknowledgment. The reception response parameters are specified as below. face_contents:[1] The extracted face image data is saved in the below-mentioned format at the locations corresponding to the numbers enclosed within "[ ]". Note that when the input image data is invalid, or it is not possible to extract the face image, "nack", which indicates a negative acknowledgment, is saved, and the response parameter described above is not saved. Table 3.14-1 Reception Response Data Configuration No. Name Type Description 1 face_contents String The information obtained by converting JPEG binary of the face image data into a BASE 64 string is saved. Confidential © 2014-2015 Panasonic. All Rights Reserved. 23 of 24

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24

Auto Tracking System Web API Specifications
Version 1.6
Confidential
© 2014-2015 Panasonic. All Rights Reserved.
23 of 24
3.14 Clip Face Image
The Clip Face Image command is used for extraction of face image data from a JPEG-format input
image.
This command can be executed by posting the input image to the URL specified below.
http://[IP Address]:[portNo]/cgi-bin/auto_tracking?cmd=ClipFaceImage
Therefore, the input image must be transmitted as multi-part data such as that illustrated below.
-----------------------8d3439d84d3f4b0
Content-Disposition: form-
data; name="file"; filename="input.jpg"
Content-Type: application/octet-stream
(File content)
-----------------------8d3439d84d3f4b0--
Note that the reception response is saved as either "ack", which indicates a positive acknowledgment,
or "nack", which indicates a negative acknowledgment.
The reception response parameters are specified as below.
face_contents:[1]
The extracted face image data is saved in the below-mentioned format at the locations corresponding to
the numbers enclosed within "[ ]". Note that when the input image data is invalid, or it is not possible to
extract the face image, "nack", which indicates a negative acknowledgment, is saved, and the response
parameter described above is not saved.
Table 3.14-1 Reception Response Data Configuration
No.
Name
Type
Description
1
face_contents
String
The information obtained by converting JPEG binary of the
face image data into a BASE 64 string is saved.