v.0.0.3¶
Improvements:¶
The handler_id, face_id, event_id, and other identifiers can be of any UUID now (previously were UUID4 only).
Mask estimations were updated, see sdk.
Event could be created without attributes now.
Limitation for input policies array length (30) was added.
Datetime fields in the database are stored in UTC format now. The service response format depends on the storage_time setting as follows:
LOCAL is the time offset from UTC according to the time zone (In ISO 8601, the associated time would be written as 2020-01-01T23:28:34+01:00);
UTC is Coordinated Universal Time without timezone offset (In ISO 8601, the associated time would be written as 2020-01-01T08:15:00+00:00).
Multuple policy filters with identical matching labels are now allowed. Now users can create A and B labels and use A in several policies, not only in a single policy. E.g: conditional_tags_policy conditions may contain different filters with similar labels.
SDK (4.2.0) and settings were updated. Breaking changes, update settings in Configurator.
The “estimate_mask” was added to the detector resource, detect policy and filters for matching policies (see detect)
Human body detection and human body descriptor extraction options were added to handler image processing policies, see createHandler resource. The warped_image query parameter was replaced by image_type parameter, which may take the following values: 0 — raw image, 1 — face warped image, 2 — body warped image.
The receiveEvents response format was updated:
face attributes were put into the face_attributes field;
body attributes were put into the body_attributes field;
face & body detection results were put into the detections field.
Default behavior of images processing specified by sample IDs was changed. (see method POST on /detector, /sdk, /handler/{handler_id}/events with application/json content type). Now the type of samples is determined by image_type or warped_image parameter. The detector stage of image processing pipeline is now triggered for non-warped images and is skipped for warps.
A new body_bounding_boxes parameter was added to “/emit events” request, see generate events resource.
SDK (4.3.0) was updated.
Information about query parameters restrictions was added.
The ability to generate events with utf-8 strings in location fields was added, tags, source.
The USE_ORIENTATION_MODE setting of FACE_DETECTOR_V3 is now supported, see config.
The alembic migration version is used for a database state check now. If an expected migration version does not match the actual migration version, the service will not start.
A migration that renames the migration table from ‘luna-api_migrations’ to ‘luna-handlers_migrations’ was added.
The raw descriptor content types in POST “/handler/{handler_id}/events” request are now supported: application/x-sdk-descriptor, application/x-vl-xpk (and base64 ones).
Bugs fixed:¶
“OpenAPI” documentation for “extract_exif” query parameter on “/detector” resource was fixed.
The account_id for GET on /handlers and /handlers/{handler_id} is now returned.
EXIF meta-information extraction for non-jpg files was fixed. Now extract_exif is available for JPEG, BMP, PNG images (see the parameter usage in detect_policy at create handler).
How to update from previous version:¶
To update from previous version, replace luna_handlers, tests, docs, deploy folders and update dependencies from requirements.txt. Then run the commands:
alembic upgrade head