• Products
    • Isadora
    • Get It
    • ADD-ONS
    • IzzyCast
    • Get It
  • Forum
  • Help
  • Werkstatt
  • Newsletter
  • Impressum
  • Dsgvo
  • Press
  • Isadora
  • Get It
  • ADD-ONS
  • IzzyCast
  • Get It
  • Press
  • Dsgvo
  • Impressum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    [ANSWERED] send trigger if no number change detected - if - else scenario

    How To... ?
    if-else openni trigger logic body tracking
    2
    11
    1957
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Michel
      Michel Izzy Guru @ari last edited by

      @ari

      actually you only need a trigger delay. The value of the torso x goes into the "trigger in" of the "trigger delay" actor and the output goes to the reset input of the OpenNI Tracker. If you set a delay of 3 seconds and the torso x value makes any changes in these 3 seconds the trigger will never reach the output because the 3 seconds restarts at every trigger. as soon as there is no change in the value for 3 seconds the trigger will go to the output.

      Best Michel

      Michel Weber | www.filmprojekt.ch | rMBP (2019) i9, 16gig, AMD 5500M 8 GB, OS X 10.15 | located in Winterthur Switzerland.

      1 Reply Last reply Reply Quote 1
      • A
        ari last edited by ari

        Hi, thanks for the fast reply!

        I tried that, unfortunatly it isn't the solution for all the scenario. What happens sometimes is that while walking out the kinect doesn't loose the body, but just applies it to a piece of the wall, here I observed two scenarios: 1. through, I believe light changes it believes to detects movements and sends the trigger, 2. even if no movement is detected and the numbers don't change it still sends out the trigger signal...

        A 1 Reply Last reply Reply Quote 0
        • A
          ari @ari last edited by

          the first scenario I actually now had for the first time.... the second happened a lot.

          Michel 1 Reply Last reply Reply Quote 0
          • Michel
            Michel Izzy Guru @ari last edited by

            @ari

            The attached patch should at least solve the second scenario. The first one is more difficult, maybe if you change the depth max value to a lower number so the camera doesn't see the wall and that way it cannot think the shadow on the wall is a person.

            Reset OpenNI.izz

            Best Michel

            Michel Weber | www.filmprojekt.ch | rMBP (2019) i9, 16gig, AMD 5500M 8 GB, OS X 10.15 | located in Winterthur Switzerland.

            1 Reply Last reply Reply Quote 0
            • A
              ari last edited by

              Thank you very much! I will try it out and let you know!

              1 Reply Last reply Reply Quote 0
              • A
                ari last edited by ari

                @michel said:

                maybe if you change the depth max value to a lower number so the camera doesn't see the wall and that way it cannot think the shadow on the wall is a person.

                 isn't the depth max only referring to the visual image of the depth image, I understood that it doesn't restrict the actual tracking area of the kinect, or am I wrong? (I am somehow having problem copy pasting your set-up in my patch, the copy pasted part, even when I myself rebuild it somehow gets inactive, lines stay red.... on it, but let you know when I have results there).

                Michel 1 Reply Last reply Reply Quote 0
                • Michel
                  Michel Izzy Guru @ari last edited by

                  @ari

                  you are totally right about the depth max referring to the visual image, forgot that. Would be very handy if this would be performed before the skeleton tracking. 

                  If you use my patch as sent without copy pasting it does it then work?

                  Best Michel

                  Michel Weber | www.filmprojekt.ch | rMBP (2019) i9, 16gig, AMD 5500M 8 GB, OS X 10.15 | located in Winterthur Switzerland.

                  1 Reply Last reply Reply Quote 0
                  • A
                    ari last edited by

                    Yes it does work, just not the copy pasting somehow, I did now also got the chance to try it. It does somehow less tend to make another object into a body, but I still did manage to recreate this problem also in your patch. Unfortunatly it doesn't solve it. There seems to be still a trigger send even if the numbers are visually not changing anymore. Your patch nicely and seemingly quite reliably restarts every time a body leave the tracking area, but if the tracking gets applied immediatly to another object (with or without a skeleton drawn on it) it doesn't restart... The space where my installation will be build will be less 'cluttered' then the room I am in now, but there is the chance of course of a wall or object in the back that might be tracked... Do you have any ideas on how to restrict tracking depth of the kinect, that could also be the solution..

                    Michel 1 Reply Last reply Reply Quote 0
                    • Michel
                      Michel Izzy Guru @ari last edited by

                      @ari

                      Well my patch does not solve the problem from thinking an object is a body, it resets if a body leaves the space. Also if a body enters the room before the 1 second is over it will not trigger the reset. You can try with lowering the 1 second time. 
                      I have no idea of lowering the tracking depth, but as you say if you are in the performance space that is not that cluttered this problem may go away.

                      Concerning triggering even though the visual number is not changing may be similar to this problem: https://community.troikatronix...

                      The values change in the after floating point area that is not shown at the output. Maybe you could put a "float to integer" actor in-between the torso-x output and the trigger delay actor, this way it will cut a way these small not visible changes.

                      Best Michel

                      Michel Weber | www.filmprojekt.ch | rMBP (2019) i9, 16gig, AMD 5500M 8 GB, OS X 10.15 | located in Winterthur Switzerland.

                      1 Reply Last reply Reply Quote 0
                      • A
                        ari last edited by

                        Thanks the floet to integer actor is a good idea, I will play with that1

                        To reset the actor in case it trackes the background I now decided to use this simple set-up with a comparator defining the max z distance.

                        Thanks

                        1 Reply Last reply Reply Quote 2
                        • First post
                          Last post