charmedlabs / pixy

pixy CMUcam5
Other
338 stars 242 forks source link

Give PixyMon a graphical editor for color signatures. #24

Open jessecrossen opened 8 years ago

jessecrossen commented 8 years ago

This PR adds a dialog to PixyMon which maps colors from the incoming raw video onto the UV plane and allows drag and drop editing of color signatures as rectangles in UV space. This allows for more precise visualization and editing of signatures. I'm happy to make adjustments or correct any areas where I haven't properly understood the "pixy way".

The UI is fairly straightforward, recognizing the following gestures:

To simplify control of the signature area, when a signature is edited in this dialog its range is set to 1.0 and its (u,v) mean is placed at the center of the box. The range can later be adjusted as normal, but there's less need to do this when you can precisely place the signature area itself.

Changes are previewed in real time, and the dialog buttons have the same meanings as the ones on the config dialog. I've included a screenshot below:

sigedit-1

richlegrand commented 8 years ago

nice --- thanks so much Jesse! We'll take a look....

Are you working on anything else? (just curious...)

thanks! --rich

jessecrossen commented 8 years ago

@richlegrand I'm looking into some small spatial accuracy improvements, but that might reach into the firmware, which I'm unlikely to compile until it's possible with gcc. I have only a vague understanding of the blob algorithm so far, so I'll need to do a bit of reading before finding a direction to go in. Honestly, I'm just trying to make pixy work better for my application, which is a MIDI drum sequencer controlled by colored ball-bearings on a turntable.

richlegrand commented 8 years ago

Hi Jesse, note, we have a gcc version of the firmware here: https://groups.google.com/forum/#!forum/pixy_firmware_sdk (you can request a membership).

Happy to help -- let me know if you need anything.

thanks, --rich

On Tue, Jan 19, 2016 at 8:25 PM, Jesse Crossen notifications@github.com wrote:

@richlegrand https://github.com/richlegrand I'm looking into some small spatial accuracy improvements, but that might reach into the firmware, which I'm unlikely to compile until it's possible with gcc. I have only a vague understanding of the blob algorithm so far, so I'll need to do a bit of reading before finding a direction to go in. Honestly, I'm just trying to make pixy work better for my application, which is a MIDI drum sequencer controlled by colored ball-bearings on a turntable.

— Reply to this email directly or view it on GitHub https://github.com/charmedlabs/pixy/pull/24#issuecomment-173063278.

Charmed Labs www.charmedlabs.com

jessecrossen commented 8 years ago

@richlegrand Awesome, thanks!