jsartoolkit5 icon indicating copy to clipboard operation
jsartoolkit5 copied to clipboard

HOWTO Recognize 4x4 markers

Open mrcesc0 opened this issue 4 years ago • 8 comments

Hello, I'd like to build a react native app able to read 4x4 markers, so a number of 8191 markers. Which way should i follow to achieve that?

I took a look at this example https://github.com/artoolkitx/jsartoolkit5/blob/master/examples/multimarker_barcode_threejs.html but have some doubts on how to generate a *.dat file (as in the example: arController.loadMultiMarker('Data/multi-barcode-4x3.dat') that contains all the markers I need and if that's the proper way to the reach the goal or i should consider another method.

Thank you so much Francesco

mrcesc0 avatar Apr 20 '21 08:04 mrcesc0

Hi, what you want is basically these pattern markers: https://github.com/artoolkit/ARToolKit5/tree/master/doc/patterns which are already preconfigured inside artoolkit so you don't need to create the patt files. However, the 4x4 markers are not really documented only the 3x3. Have a look at the artoolkit5 examples how the 3x3 are loaded. that should give you an idea how you can use them. And maybe give a clue how to use the 4x4. They may be in a Unity3D plugin somewhere, I'm not sure.

ThorstenBux avatar Apr 20 '21 08:04 ThorstenBux

Thank you for your answer. Since you wrote "which are already preconfigured inside artoolkit", I'm wondering if there is a way to recognize a marker's code without load/declare them all.

mrcesc0 avatar Apr 20 '21 09:04 mrcesc0

They are pre-configured in a way that you don't need to create the patt files. You still need to tell the tracker which markers you are looking for. Meaning you need to 'load' (I guess instantiate is the better word) them.

ThorstenBux avatar Apr 20 '21 09:04 ThorstenBux

Everything's clear. That's the answer i was looking for... Anyway I'm a bit concerned about the performance issues for instantiating 8191 markers.

Thank you!!!

mrcesc0 avatar Apr 20 '21 09:04 mrcesc0

Yeah, that I can't say. And honestly, I'm wondering why you would want that many markers at once.

ThorstenBux avatar Apr 20 '21 09:04 ThorstenBux

Every marker would be associated to a specific customer, so I need them all in order to have as many "available slots" as possible.

mrcesc0 avatar Apr 20 '21 09:04 mrcesc0

Hm, I guess I would need to understand your complete app to get what you are aiming for :).

ThorstenBux avatar Apr 20 '21 09:04 ThorstenBux

Hi @mrcesc0 the multi marker feature Is intended to be used ti improve the detection and tracking, in the sense more markers acting like only one. I can point you to the docs, i have a repo in my profile, but searching on my smartphone Is not easy...🙂

kalwalt avatar Apr 20 '21 10:04 kalwalt