Images associated with events — if recorded — can be retrieved from the object server using the event ID.
To retrieve a face image that triggered the event, use the following call:
For Local Host:
curl -v -X GET "http://localhost:8086/obj/<base64{event_id}>/face" -H "X-RPC-AUTHORIZATION: userId:pwd"
-H "X-RPC-DIRECTORY: main" > face.jpg
For SAFR Cloud:
curl -v -X GET "https://cvos.real.com/obj/<base64{event_id}>/face"
-H "X-RPC-AUTHORIZATION: userId:pwd=" -H "X-RPC-DIRECTORY: main" > face.jpg
Note: Always use https
when making requests over the internet.
In these calls, replace <base64{event_id}>
with a base64 form of the Event ID GUID for which the image is required.
For example, an Event ID GUID value of D4565B3D-D5C2-4F02-AD81-49DE55AAEFF1
, should be replaced with RDQ1NjVCM0QtRDVDMi00RjAyLUFEODEtNDlERTU1QUFFRkYx
.
echo -n D4565B3D-D5C2-4F02-AD81-49DE55AAEFF1 | base64 RDQ1NjVCM0QtRDVDMi00RjAyLUFEODEtNDlERTU1QUFFRkYx
To retrieve a scene thumbnail associated with the event, if recorded, issue the following request:
curl -v -X GET "http://localhost:8086/obj/<base64{event_id}>/sceneThumb"
-H "X-RPC-AUTHORIZATION: userId:pwd" -H "X-RPC-DIRECTORY: main" > scene.jpg