[Nx plugin integration] Thumbnail showed the wrong image for the Object event.
AnsweredThe result:
- Case1: the thumbnail showed the wrong image (bounding box info and video playback are correct) for the Object event.

- Case 2: Show the wrong thumbnail from wrong camera.

- Case 3: Show no data for thumbnail.

Below is our flow and relative API on Object.
Flow:
- NX Plugin receives info from FaceMe Security Central.
- Parse http response from FaceMe Security Central.
- Create MetaDataPacket with MetaData
- Push MetaDataPacket to DeviceAgent.
API:
Create Object and DeviceAgnet.
- Step 1:
Create ObjectMetadataPacket and setup info to MetaDataPacket
void ObjectMetadataPacket::setTimestampUs(int64_t timestampUs)
void ObjectMetadataPacket::setDurationUs(int64_t durationUs)
- Step 2:
Create ObjectMetadata and setup info to MetaData
void ObjectMetadata::setTypeId(std::string typeId)
void ObjectMetadata::setTrackId(const Uuid& value)
void ObjectMetadata::setBoundingBox(const Rect& rect) // Relative X/Y and Frame width/height
void ObjectMetadata::addAttribute(nx::sdk::Ptr<Attribute> attribute) // All attributes from FaceMe Security Central
- Step 3:
Add MetaData to MetaDataPacket
void ObjectMetadataPacket::addItem(const IObjectMetadata* objectMetadata)
- Step 4:
Push MetaDataPacket to ConsumingDeviceAgent
void ConsumingDeviceAgent::pushMetadataPacket
-
Hi Bobby,
have you checked our troubleshooting article https://support.networkoptix.com/hc/en-us/articles/1500006332441-Troubleshooting-Analytics-Issues-for-Cameras-and-Plugins? It includes instruction on how to enable analytic logging and provides troubleshooting steps for some of your cases.
Case1: the thumbnail showed the wrong image (bounding box info and video playback are correct) for the Object event.
Case 2: Show the wrong thumbnail from wrong camera
Case 3: Show no data for thumbnail.
How do you generate trackId for your object? Such behaviour can occur if generated tackId isn't unique for each object.
1 -
Hi Anton,
We use NX SDK randomUuid API to set track id
track_id_ = nx::sdk::UuidHelper::randomUuid();
0 -
Hi Bobby,
sorry for the delayed response. Without samples of your code or detailed logs there is not much we can troubleshoot. Have you tried following our troubleshooting guide to investigate the issue?
0 -
Hello,
The troubleshooting of similar issues is covered in this guide.
0 -
Hello,
The issue was caused by track id duplication and has been resolved by using up-to-date version 5.0 of the Metadata SDK.
0
Please sign in to leave a comment.
Comments
5 comments