SingleMarkerDetector.plugin not detecting

TimL's picture

Hi All, I'm tring to get a bit of AR working within my Quartz Compositions however things are not going as they should... I have downloaded the AR.zip from http://kineme.net/Applications/Interactive/SingleMarkerDetectorimageinputAR

I've copied the two plugin files to Graphics>Quartz Composer Patches

When I open the patch "m_AR_kz" and place the marker image in front of the camera, I get nothing.

What have I missed? Is there some other plugin that needs to be installed, maybe something to do with the ARtoolkit?

Any clues would be appreciated!

Tim

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

adamfenn28's picture
Re: SingleMarkerDetector.plugin not detecting

Move the plugins to Graphics/Quartz Composer Plug-ins. They should be picked up there.

TimL's picture
Re: SingleMarkerDetector.plugin not detecting

Thanks for the tip, I have already tried moving the plug ins between directories but this didn't work. KinemeCore plugin management pointed this out and fixed the location, so I'm pretty sure this is right as I don't get any error logs when I start up the patch. Please see attached screen grab. I think I am using the correct marker image, just not getting any floating seagull as I'd expect from this patch... Any other ideas? Cheers

PreviewAttachmentSize
Picture 1.png
Picture 1.png369.61 KB

gtoledo3's picture
Re: SingleMarkerDetector.plugin not detecting

It looks like the black outline didn't print right...

Of all things, that black outline is super important - try to reprint the paper or darken it. If that's not right, nothing will work.

TimL's picture
Re: SingleMarkerDetector.plugin not detecting

Just tried darkening the outline- no joy, didn't work.

Are there any ARToolkit plugins or applications that are also meant to be installed in addtion to SingleMarkerDetector and Matrix to Param?

Thanks again!

gtoledo3's picture
Re: SingleMarkerDetector.plugin not detecting

Ok... this is the actual developer's site for the plugin:

https://sites.google.com/site/pgtwitter/qc_patch

I would recommend using that just in case anything is awry.

No, no other applications need to be installed.

I really recommend attempting to reprint that paper and have it all be the same level of blackness. In my experience, it probably will not work otherwise. Also, that black outline can't be covered in any way.

What the algorithm appears to do is to look for that black outline, and then thickness of that is used to determine what the area of the inner marker image must be. The inner stuff is then broken down into blocks of info that mark what the greyscale intensity for each downsampled block is. So, if it's not happening on the bottom (eg, the algorithm can't detect that all of the border is definitely darker than the inner portion), it will never work.

TimL's picture
Re: SingleMarkerDetector.plugin not detecting

I downloaded the xcode proj for singlemaker, followed instructions for building, copied the released plugin to the QC plugin directory. Reprinted the tracker (%50 smaller) but still failing... Moved the QC plugin directory to my local account Another screen grab attached... Alternatively, Id like to achieve something similar to this, Dynamic Surface Projection. http://www.thefelicelab.com/ed/index.php?option=com_content&task=view&id... When I open the composition I get an error message as I am missing some of the patches... Would you know where to find them? Thanks again!

PreviewAttachmentSize
Picture 1.png
Picture 1.png325.53 KB

gtoledo3's picture
Re: SingleMarkerDetector.plugin not detecting

Take that one hook that disables the the renderer if the tracker is/isn't detected.

Also, start messing around with the threshold... and make sure your marker selection is the same as the one you're looking for.

I really have no clue why you're having restoration errors. I remember that one of the guy's examples also used an MQO object loader. Maybe you can just place a teapot in there for the time being.

The basic project definitely works, and I've done my own tweaks and fleshed it out a bit... it's OK. I think it's better than that dynamic surface thing, which, to me, isn't as usable because the warping is incorrect, one has to manually place points, and it's working in 2D - though I'm sure it could be useful for a specific context (just like AR I guess... both have pros and cons, just best to be aware of both.)

TimL's picture
Re: SingleMarkerDetector.plugin not detecting

Thanks for persisting with this for me! Not sure I understand what you mean by the following. "Take that one hook that disables the the renderer if the tracker is/isn't detected." Do you mean disconnect the patch cable from SingleMarkerDetect 'OutputFound' to 3D Transdormation 'Enable'? Doing this did not change anything

I do have the MQO plugin installed and I am also trying out the ARToolKit Coordinate Correction Composition as this should place a red cube over the marker.

Played with the Threshold, still nothing...

How do I know if my marker selection is the same as the one I'm looking for? I noticed there are 2 variations... I'll try the other. Thanks again for your help, I really plan on getting this done, so your help is valuable! Cheers Tim

dust's picture
Re: SingleMarkerDetector.plugin not detecting

not sure what the problem is. here is some recompiled 64 bi't plugins that might help....

i just tried the file and it works with fine vuzix ar. actually tracks much better when you use a print out. in the video i'm using the ipad to display the marker pattern. make sure you have a big enough white border. im actually moving my head in the video but try and be as still as possible and let the camera focus on the pattern. ; )

PreviewAttachmentSize
ar_plugs.zip73.32 KB

TimL's picture
Re: SingleMarkerDetector.plugin not detecting

Unfortunately, it didn't like that patch- wrong architecture. I'm running 10.5.8 and QC 3.1 Will keep on trying...

TimL's picture
Re: SingleMarkerDetector.plugin not detecting

Not sure if it is causing the problem, but when I build the plugin in xcode I get 16 warnings. Is this normal for this plugin? See attached

PreviewAttachmentSize
Picture 2.png
Picture 2.png146.23 KB

TimL's picture
Re: SingleMarkerDetector.plugin not detecting

Well, whatever I just did, it has started working. Rebuilt the plugin and used the second image. Thanks all for your help!

jrs's picture
Re: SingleMarkerDetector.plugin not detecting

From memory only one of the two markers that came with the plugin worked

gtoledo3's picture
Re: SingleMarkerDetector.plugin not detecting

That is true...

Looking at that, I do remember that there were conversion issues, but it was nothing that was a showstopper.

Somewhere I have a build where I fixed all of the little bugs and added a bunch of markers in. The real key on making the markers from scratch was to make sure to get the right grid resolution...and I can't remember what that is offhand! Then of course, they need to be added into the project, and the project modified to load those paths.

dust's picture
Re: SingleMarkerDetector.plugin not detecting

dynamic surface mapping with checker board...

to get the og dynamic surface projection running....

http://www.thefelicelab.com/ed/index.php?option=com_content&task=view&id...

i think you would need to download the first release of kineme cv tools ?. this is what qc is asking me for. "OpenCVFindCornerSubPix_1".

you can try this way alternatively as i think some of the oq cv tools have been deprecated.....

the latest release of cv tools has this nice patch called find chessboard corners. you can use it for the same thing. don't get confused projection mapping and augmented reality are totally different dimensionally. ar being 3d and surface projection being 2d.

the title "dynamic surface projection" is a little miss leading. to me using a mouse to define your corner structure isn't really dynamic. with this example it is a bit more true to the dynamic context meaning you do not have to define any points to track with the mouse.

there are two examples "dynamic surface live" this is set up to track corners with the live camera feed. in my case vuzix 920 ar. notice the use of adaptive thresholding for live input and adaptive negation on the test file. "dynamic surface test"

just a note the quad structure indexing is different for both examples and you may have to fiddle around with them to get a map you want with live input.

PreviewAttachmentSize
dynamicSurfaceLive.qtz61.54 KB
dynamicSurfaceTester.qtz61.19 KB
checkerz.png
checkerz.png18.63 KB

pixelnoizz's picture
Re: SingleMarkerDetector.plugin not detecting

hi,

George do you have still the modified SMD with more patterns? Would be helpful!

thanks,

d.