Event ingestion

Event ingestion

You must have the camera configured in Data Factory to receive events.
The camera’s MAC address in Data Factory must match the "SerialNumber " field in the incoming JSON.

Below is a minimal example of a valid JSON payload:

{
    "capture_timestamp": 1740485465448,  
    "plateASCII": "FF1234",
    "plateCoordinates": [0, 0, 0, 0],
    "camera_info": {"SerialNumber": "B8A44FD42191"},
    "imageType": "frame",
    "sensorProviderID": "SomeUniqueCameraID"
}


You can test ingestion with curl (or any HTTP client). For example:
  1. curl -X POST "http://192.0.2.1:5001/api/camera/events/upload" -F "event=@data.json;type=application/json" -F "image=@photo.jpg ;type=image/jpeg"
Form-data field names, event and image are mandatory.
Filenames can be arbitrary, but they must be included in the multipart request.

This will send the event metadata (data.json) along with an associated image (photo.jpg) to the DataFactory endpoint.

Details about the JSON fields can be found in the documentation

https://docs.google.com/document/d/1NbUrK_j34WqtozimofT2AzxCI-kv3g7wxP1V3K0xOoY/edit?tab=t.0