Testcamera event thumbnail shows wrong scene

Answered

Comments

8 comments

  • Avatar
    Andrey Terentyev

    Hello  SangHyeukYoon,

    I make a plugin which is get events from external server and shows them.

    Could you please elaborate on your scenario? What kind of events does the external server send to your plugin? Who/What triggers events? How do the events correlate to the video stream of the camera your plugin is activated on?

    0
    Comment actions Permalink
  • Avatar
    SangHyeukYoon

    External server analyzes video from NX camera using RTSP. If a event occurred, like person detection, external server sends message to my plugin. Then plugin make event packet with current time and finally at NX client event alarmed with thumbnail.

    But, my problem is, the event thumbnail is not matched with current scene when i use testcamera. It works perfectly with live camera and external rtsp source.

    0
    Comment actions Permalink
  • Avatar
    SangHyeukYoon

    If you want i can send you a capture image.

    0
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    Hello,

    Thanks for the explanation.

    Then plugin make event packet with current time and finally at NX client event alarmed with thumbnail.

    But, my problem is, the event thumbnail is not matched with current scene when i use testcamera. It works perfectly with live camera and external rtsp source.

    I guess, the answer is in here.

    In the plugin, you should not put the timestamps of the current time to the event packet, rather you should put the timestamp of the frame your external server has extracted from the RTSP stream for the analysis.

    0
    Comment actions Permalink
  • Avatar
    SangHyeukYoon

    I tried it but same. Additionally object tab shows detected object very well.

     

    Object

     

    Event

    0
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    Hi,

    Looks like you have track id duplication.

    Please, read this article for details https://support.networkoptix.com/hc/en-us/articles/1500006332441-Troubleshooting-Analytics-Issues-for-Cameras-and-Plugins

    The "Object Preview Image Is Wrong" section.

    The most common root cause of an incorrect object preview image is track id duplication. The fastest way to prove it is to search through the analytics database for duplicated records containing the same track id.

    The analytics DB is stored in the object_detection.sqlite file in the video archive folder.

    Use this command to get a table with duplicated track ids:

    sqlite3 -readonly object_detection.sqlite "select quote(guid), count(1)
    from track
    group by guid
    having count(1) > 1"

     

    0
    Comment actions Permalink
  • Avatar
    SangHyeukYoon

    Hi,

    We had wrong object preview image problem earlier, and solved thanks to the above article.

    So we have solved wrong object preview image problem.

    Our final problem is wrong event preview image with testcamera.

    We want to solve this problem, because yours testcamera is better than any other rtsp streaming servers.

    0
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    Hi,

    In the client application, the thumbnail for an event is requested via the /ec2/cameraThumbnail function. The function has two parameters, being misused, could cause the issue in question:

    • time
    • objectTrackId

    So make sure you have set the correct timestamp in your plugin.

    I pushed current time to event packets

    You should not do that. You should set the timestamp of the frame received.

    0
    Comment actions Permalink

Please sign in to leave a comment.