cvtools

CVTools plugin won't load in screensaver on 10.6.7

Peter's picture

Hi Kineme Community,

I stumbled accross the VCTools plugin and fell in love with it but unfortunately when I copy the example compositions from the CVTools into my screensaver directory, the CVTools plugin won't load.

Including the .qtx into an XCode sceensaver project reveals the following in the NSLogs during startup:

6/5/11 3:28:03 AM   System Preferences[853]   *** <QCNodeManager | namespace = "com.apple.QuartzComposer" | 349 nodes>: Could not load bundle at path "/Library/Graphics/Quartz Composer Patches/CVTools.plugin" (Error Domain=NSCocoaErrorDomain Code=3586 UserInfo=0x200858dc0 "The bundle “CVTools” couldn’t be loaded because it isn’t compatible with the current application." (dlopen_preflight(/Library/Graphics/Quartz Composer Patches/CVTools.plugin/Contents/MacOS/CVTools): no suitable image found.  Did find:
   /Library/Graphics/Quartz Composer Patches/CVTools.plugin/Contents/MacOS/CVTools: GC capability mismatch))

Maybe I am completely wrong but I think the VCTools plugin has been compiled without support for garbage collection and Snow Leopard doesn't like that when running a screensaver. (Running the .qtx files on the desktop works without issues...)

Is it possible to get the VCTools compiled with support for garbage collection based on the new OpenVC sources? If the source code for this plugin is available, I would love to give it a try too.

Any comments, help, tricks & special moves to get this to work is much appreciated.

Thanks for you help!

Opencv

henryj's picture

Hi guys,

I'm having a problem when i'm running a QC composition. I'm using the CVTools.plugin and placed it in the correct QC Patches folder. When is run my QC composition is giving me errors like described underneath. The plugin is working cause it's making use of some nodes within the plugin like OpenCVBGR2Gray patch. I'm surfing the web for a few hours now and I can't seem to fix it. Has anyone got an idea or a post for me with a solution. I'd tried running QC in 32-bit mode already an moving around the plugins.

these are my specs. MacBook MacBook5,2 Intel Core 2 Duo 2 GHz Mem: 2 GB Currently I'm running SL 10.6.2

these are the errors

(null) : Patch with name "OpenCVFindCornerSubPix" is missing

Macro Patch Cannot create node of class "OpenCVFindCornerSubPix" and identifier "(null)"

(null) : Patch with name "StructureMaker:KinemeNamedStructureMaker" is missing

Macro Patch Cannot create node of class "StructureMaker" and identifier "KinemeNamedStructureMaker"

(null) : Patch with name "StructureMaker:KinemeNamedStructureMaker" is missing

Macro Patch Cannot create node of class "StructureMaker" and identifier "KinemeNamedStructureMaker"

Macro Patch Cannot create connection from ["outputPoints" @ "OpenCVFindCornerSubPix_1"] to ["source_1" @ "Multiplexer_1"]

Macro Patch Cannot create connection from ["outputStructure" @ "StructureMaker_KinemeNamedStructureMaker_1"] to ["Input 1" @ "StructureMaker_KinemeNamedStructureMaker_2"]

Macro Patch Cannot create connection from ["outputPoints" @ "OpenCVGoodFeaturesToTrack_1"] to ["inputPoints" @ "OpenCVFindCornerSubPix_1"]

Macro Patch Cannot create connection from ["outputX" @ "Mouse_1"] to ["Input 1" @ "StructureMaker_KinemeNamedStructureMaker_1"]

Macro Patch Cannot create connection from ["outputButton2" @ "Mouse_1"] to ["inputFindSignal" @ "OpenCVFindCornerSubPix_1"]

Macro Patch Cannot create connection from ["outputImage" @ "OpenCVBGR2Gray_1"] to ["inputImage" @ "OpenCVFindCornerSubPix_1"]

Macro Patch Cannot create connection from ["outputStructure" @ "StructureMaker_KinemeNamedStructureMaker_2"] to ["source_0" @ "Multiplexer_1"]

Macro Patch Cannot create connection from ["outputY" @ "Mouse_1"] to ["Input 2" @ "StructureMaker_KinemeNamedStructureMaker_1"]

(null) State restoration failed on

New CVTools and Optical Flow Points problem

okbye's picture

Hi everyone, I'm pretty new at QC and trying to do a tracking composition for my new touch table.

My question is, how can I detect the movement is on or off?

I mean, at the older version of CVTools, I can detect the movement with the structure count of Optical Flow Points node but at the new version of OpenCV, the structure count is always bigger than 0 =/

I'll rewrite my problem becouse my english is poor,

I want to detect to movement. Is it 1 or 0. Then I'll add and reload the optical flow points to catch the move.

Thanks!!

CV tools head tracking and rotations.

dust's picture

so here is a snow leopard composition where im using my trackball to infer rotation based on the haar classification system. im glad the haar patch is working woot woot.

if you align your head to be in the middle of the camera frame you will be able to control the 3d model much better with facial recognition. if you want the model to follow you around hook up the xy to the models position and offset the origins so the rotations don't get messed up. you can infer a pseudo z depth by interpolating the product of the width and height as well. its a bit jumpy so i tried to smooth things out.

actually this got me all excited that cv tools is working with snow leopard in 64. i'm actually re-building a haar kit for snow leopard. i guess open cv is still using carbon based methods which took a bit to figure out, i need to be using gcc+4.0 compiler not 4.2. so i got that sorted now i need to figure out how to get open mp running so i can compile a multi thread haar kit to take advantage of the core2duo+. maybe there is a way i can use open CL and the LLVM compiler to make a haar kit. i think that would be much faster.

anyways when i get a working kit finished or compiled for SL. i will share it so you can do rapid object detection and other recognition stuff other than just facial, maybe gender recognition, hand recognition. could be cool to take photos of everything in my house and build a iphone cv program to guide me through my house blindfolded, i guess i would need an iphone for that though.

anyways here is how you can use facial tracking to do rotations etc... there are other methods for doing this like using the distance between the eyes to calculate rotation as well.

cvtools - point - flow clear points (Composition by gtoledo3)

Author: gtoledo3
License: (unknown)
Date: 2009.10.09
Compatibility: 10.5, 10.6
Categories:
Required plugins:
(none)

This is an example of a way to clear points easily using CVTools. This is one of Kineme's CVTools examples with an added point clear function.

Hold delete and right click (eg., "one finger click") to clear points.

Please note licensing for clear function, cough cough. This is a MUST. :)

*Also, many thanks to Kris Harris for his useful alternative clear points setup, posted when discussing OpenCV some time ago. He inspired me to find a different way to achieve the same function, so that I could ultimately induce people into buying me coffee in a subversive way, through my use of an idiosyncratic licensing agreement. Thanks, Kris. *