How to get roi and line point value?

Answered

Comments

4 comments

  • Avatar
    Ichiro

    Hi Wenbin,

     

    Please refer to the post here https://support.networkoptix.com/hc/en-us/community/posts/26579004240663-How-to-get-roi-and-line-value and the SDK settings.md.

     

    Thanks.

    0
    Comment actions Permalink
  • Avatar
    wenbin

    Hi Ichiro,

    Thank you for your help.Now I can get the point information of NX client, but the method

    m_secondPolygonStr = settingValue("polygon 2. Figure") 

    returns a string by name "polygon 2. Figure".

    If I want to get the information of points, I need to intercept the string.I want to ask if there is a more convenient way to get the information of the value corresponding to each key.

    0
    Comment actions Permalink
  • Avatar
    Ichiro

    Hi Wenbin,

    In fact, you can access the plugin settings easily by creating a function that parses the JSON string from the settingValue() method. This will allow you to retrieve both the value and status (activated or not) directly, along with the coordinates of the points.

    This is the most effective and recommended approach, with no need for any type of interception. You can use any JSON parser to access the required nodes.

    Thanks.

    0
    Comment actions Permalink
  • Avatar
    wenbin

    Hi Ichiro,

    Thank you for your help. I have solved this problem. I referred to nx::kit::Json and used the method of this file.

    I have another question. If I want to implement this plug-in drop-down box, which cpp file should I implement this function? I haven't seen a similar example. What can I refer to.

    Thanks.

    0
    Comment actions Permalink

Please sign in to leave a comment.