I have a project where we deploy the "Vertex AI Vision SDK" into a container in Docker…
- User
I have a project where we deploy the "Vertex AI Vision SDK" into a container in Docker Desktop on the client computer on the edge and the sdk pushes the camera feed from the rtsp to Google Cloud's Vertex AI Vision and it goes through pre-trained human/vehicle model to find out count and that information is written into BigQuery in json format. This information will be queried and provided back to the customer in json response.
I would like to identify the roundtrip time from the start of the stream to the json response. However the timestamp on the camera is off. It's hard to evaluate the roundtrip time.
Provide me methodologies/ideas on how to accurately calculate the roundtrip time.
Assistant
You have a few options here. One way is to synchronize your system time with an external time source using a utility like ntp. Another is to use a time stamping service, which can provide you with a high-precision time stamp for each video frame, that you can use to calculate the round trip time. Finally, you could also add a time stamp to each json response, and compare that with the video frames to estimate the round trip time.
- User
ntp is not an option. which of these remaining options is the best?
Assistant
The time stamping service option would give you the most accurate result, since it is an independent time source. You could also add a time stamp to the JSON responses, but there is a chance of error there since the request for the JSON response could be made at any time during the video stream.
- User
Assume the request for the json can be arbitrary. We want to focus on the stream itself. Re-evaluate.
Assistant
In that case, using a time stamping service would be the best option. This service can provide you with a high-precision time stamp for each video frame, that you can use to calculate the round trip time. This way you can have an accurate and consistent time reference to calculate the time it takes for the video stream to be processed and the results to be returned. This will give you the most accurate measurement of the round trip time for the stream.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.