automatic range color detection using sukah to jit.findbounds


    Jun 12 2007 | 4:49 pm
    this will be an easy question
    i'm using jit.findbounds for live color tracking
    and i'm using sukah to read the color of the image that i want to track however i can't make a proper way to have an automatic color range that jit.findbounds understand, i look into the tutorials however there is not examples of this issue only manual configuration of the color rage
    any help?

    • Jun 12 2007 | 5:08 pm
      >i look into the tutorials however there is not examples of this
      >issue only manual configuration of the color rage
      Look at the help files again - suckah outputs 3 values in RGB format,
      and the jit.findbounds object is looking for 4 values [since there's an
      alpha channel in an ARGB video. You'll need to modify the output of
      the suckah so that you're putting out a list of four floating point values
      in the range 0.-1.0, and the first one will be 1.0. It's basic data scaling
      and list packing.
      --
      on the floor there's a long wooden table/on the table there's an open book/
      on the page there's a detailed drawing/and on the drawing is the name I took
      Gregory Taylor http://www.rtqe.net
    • Jun 12 2007 | 7:14 pm
      thanks for the response however i think that i didn't explain well my issue, the maping and packing it's not my problem, the problem was that if i want to track a color i have to give the max color and the min color atributes to jit.findbounds
      and i want it to do that automatically, although i think that its more effective if i first choose using sukah the maximal color then charge that to the atribute max 1. and then to choose the minimal in sukah and then charge that to min. 0.
      thanks
    • Jun 19 2007 | 11:06 pm
      Do you mean something like that?
    • Feb 15 2010 | 9:42 pm
      Any idea how to connect the suckah object color detection results to a jit.lcd 2D object?
      I have a jit.lcd rectangle i want to move with my hand.
      I used jit.findbounds and a suckah choose a desired color to detect.
      Please lend me your help if you know!
    • Feb 16 2010 | 9:13 pm
      have you looked at the jit.findbounds tutorial? (Tutorial 25: Tracking the Position of a Color in a Movie).
      if so, please post your patch showing your attempt to get this working, and you will more than likely get some help.