stub Buffer Sync with face
Answeredany idea how to sync video image sync with edge camera coordinate
-
Sorry Lechee,
But I did not understand the question. Could you please describe the following in details:
- What are you trying to achieve;
- How are you trying to do that;
- What exactly the problem is;
- What is the result you are expecting.
Thank you.
0 -
the problem is the AI meta data compute by edge camera which only take 33ms and send the result to stub plugin, but RTSP stream is slow then those meta data, so how to sync with video for example at screenshot I've stand at the position and trigger the meta event but your stub need take 2 second to sync the video person already gone
0 -
In this case you need to make sure that timestamps coming from the camera in the rtsp are the same timestamps you use for metadata.
Also, you need to enable 'Trust camera timstamp' in Camera settings dialog -> Expert tab
0 -
That's right timestamps can solve the problem, by the way do you have the stub overview or SDK workflow when is the pullMetadataPackets(...) how to trust camera timestamp with/without NTP, when metaData got the timestamp which code is time sync in stub example
0 -
>> how to trust camera timestamp with/without NTP
Can you please clarify the question?
>> when metaData got the timestamp which code is time sync in stub example
Synchronisation doesn't happen in the stub, it happens in the client when it receives video and metadata. Only timestamp is used to synchronise
0 -
since timestamp at camera will always slow if only apply NTP in once, in system wide all other metaData won't sync.
if sync doesn't happen in the stub, how Can I send the rtps timestamp processVideoFrame(...) with cookSomeObjects() metaData
0 -
does it means send correct timestamp in red arrow system will sync the timestamp correctly?
0 -
If metadata is going from the camera - this metadata should go with the timestamp associated with it.
In this case, when creating metadata object - use this timestamp received from camera
0 -
after timestamp associated with meta data still have some offset
0 -
Did you set 'trust camera timestamp' in the expert tab of camera settings dialog?
Also: does your camera has an accurate clock setting?
0 -
SURE 'trust camera timestamp" is set, by the way how to check clock is accurate, does it means metadata same as RTSP timestamp is fine?
0 -
Probably camera's time should be visible somewhere in the camera's web interface.
Camera's time and server's time should be accurate.
0 -
yes but it's correct in second NTP server share the same server for NXMeta
0 -
when events coming from pullMetadataPackets(...) how to set pre-recording and post-recording
0 -
To be able to set up rules for events - you need to declare custom analytics events in the plugin manifest and send those events when needed.
Once it is happening - it will be possible to configure actions like camera recording using event rules dialog.
About timestamps and synchronization: we are looking into the problem. Probably we will come up with some guidance about debugging them
0 -
do you have any reference sample for those plugin manifest
0 -
Sure thing.
As an example, you can check out our stub plugin's sources:
In device_agent.cpp you can find the DeviceAgent::manifest(). It contains the "eventTypes" list.
0 -
with R11 sdk how to pass our own timestamp instead m_lastVideoFrameTimestampUs
0 -
You actually need to pass your timestamp there instead of m_lastVideoFrameTimestampUs.
In STUB plugin we user last video frame timestamp just for reference, because the objects we generate are not real and can be attached to any frame.
In your plugin - you need to keep the timestamp associated to specific detected object and pass that value to objectMetadataPacket.
0 -
sure need to using my timestamp instead as yours see there have 2 lines comment out but the point is my timestamp is event happen on the camera site which have delta with your frame is buffering how to adjust this, in pervuius R5 there will have continue thumb popup but this version only got one thumb update continues
the problem is I got the timestamp on camera, but the precessVideoFrame is late video which can not match.
0
Please sign in to leave a comment.
Comments
20 comments