Updated on 2022-08-08 GMT+08:00
Customized Fields
Data Type
The String, Integer, Float, Double, Boolean, and Long types are supported.
- external_image_id, bounding_box, similarity, face_id, create_time, vector, _id, _all, and _source are built-in fields that cannot be customized.
- The number of customized fields cannot exceed 10. The key value contains 1 to 36 characters, including digits, letters, underscores (_), and hyphens (-).
- The value of the String type contains 1 to 256 characters, including digits, letters, underscores (_), and hyphens (-).
- Duplicate fields will be overwritten.
- You are not allowed to add a suffix to a value of the numeral type. For example, 1.0f, 100L, and 1.0d are incorrect.
Syntax Logic
external_fields is defined in JSON format and the name corresponds to the data type.
Request Body: { "face_set_name": "test", "face_set_capacity": "100000", "external_fields": { "location": { "type": "long" }, "timestamp": { "type": "integer" }, "male": { "type": "boolean" }, "title": { "type": "string" }, "weight": { "type": "double" }, "score": { "type": "float" } } }
Parent topic: Public Data Structures
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot