Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 19-May-2011 15:46:46

brucelim
Member
Registered: 19-May-2011
Posts: 17

Ar Piano not showing on the markers position.

When i make an app like arpiano or by using the arpiano example, models appear off marker. they are supposed to be right in the middle of the markers. i tried my 2 webcam's, a creative webcam vista and my nokia 5800 with smartcam app. both show's the same problem. Am i doing something wrong here? Or the cameras are not suitable for this? I just installed, connected camera, and opened the example arpiano.

I'm using Windows vista home premium + dualcore E6500 + GF Gt240 + 2gb ram + DVI lcd.

Any help would be very appreciated.

big_smile

Offline

#2 19-May-2011 17:43:46

Nodrev
Scol Language & OS3D developer
From: Nantes, France
Registered: 29-Dec-2009
Posts: 197

Re: Ar Piano not showing on the markers position.

Hi, and welcome onboard smile

I did not work directly on this part, but there is two factors that may produce this issue:
1) your 3d window ratio (width/height) is not the same as the one produced by your camera.
2) a matrix projection issue due to the focal lenght of your webcam. I eard Arkeon and Tenshikris talk about a "camera configuration file" in which they have setted the focal lenght (or maybe this file was for Kinect AR only, not sure about that), they will know better than me...

Last edited by Nodrev (19-May-2011 17:44:09)

Offline

#3 19-May-2011 18:12:27

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,081
Website

Re: Ar Piano not showing on the markers position.

Hi !

could you show us a screenshot of what you see ?

we made a generic camera profile but you can also provide your own camera definition, but making this file is a bit complicated ^^
generally the default profile should work hmm

however calibration method is explain here : "camera caliration" http://www.uco.es/investiga/grupos/ava/node/26

Offline

#4 19-May-2011 20:09:51

brucelim
Member
Registered: 19-May-2011
Posts: 17

Re: Ar Piano not showing on the markers position.

Hi, thanks for the reply, i see this on screen: problemsd.jpg

Uploaded with ImageShack.us

The object gets near the marker but not completely on it when i get the camera close to the marker.

On the editor if i move the model to the left it does nothing, stays the same.(Model is on the screen but is off the marker).

I tried to print a marker and inserted the measurements(19.5cm) and its the same problem.(I'm using lcd screen in the picture to show marker).

is there a yaml generator available? wink

Maybe a calibration PlugIt would be great, so it works with all cameras.

Offline

#5 19-May-2011 20:34:03

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,081
Website

Re: Ar Piano not showing on the markers position.

can you send me your XOS file
I really don't understand what happen ^^, I tried the same test and it works find for me.
is your camera mirrored in your webcam control pannel ?

Offline

#6 19-May-2011 20:59:00

brucelim
Member
Registered: 19-May-2011
Posts: 17

Re: Ar Piano not showing on the markers position.

Artest.xos

The video is not mirrored.

This happens too on the exe version of arpiano that comes with openspace3d, the problem could be my pc. I'm going to try on windows xp to see if it is really my pc or the cameras.

Offline

#7 19-May-2011 21:18:10

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,081
Website

Re: Ar Piano not showing on the markers position.

Ok everything is normal smile

you add a dummy but your cube is not centered on it

1 - select the cube
2 - right click on the move object icon in the toolbar
3 - set local position to 0 0 0
4 - prefer to scale the marker (in plugIT) against the 3d object to make it appear at a good size

Offline

#8 19-May-2011 21:34:23

brucelim
Member
Registered: 19-May-2011
Posts: 17

Re: Ar Piano not showing on the markers position.

Sorry but its giving me the same. prefer to scale the marker? what do you mean?

Offline

#9 19-May-2011 21:37:40

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,081
Website

Re: Ar Piano not showing on the markers position.

change the size parameter in the armarker plugit to change the scale of the object corresponding to the marker size

Offline

#10 19-May-2011 21:44:29

brucelim
Member
Registered: 19-May-2011
Posts: 17

Re: Ar Piano not showing on the markers position.

i changed it and its the same. as i get far from the marker with the  camera, the cube moves away from the marker. but if i didnt make the arpiano example why it does the same? im confused here.

If the marker is in the right spot, why the cube doesnt go there? or in the arpiano both the orc and the cubes are offset.

cube position local and global: x=0 y=0 z=0

Last edited by brucelim (19-May-2011 21:51:06)

Offline

#11 19-May-2011 22:32:01

Tenshikris
Scol Language & OS3D developer
Registered: 11-Apr-2011
Posts: 20

Re: Ar Piano not showing on the markers position.

Hi Brucelim cool,

if i understand, when you start arpiano, cubes are not well on markers.
So i think it's a problem of camera calibration.
You should try to make yaml file with the program "calibration". Arkeon gave you the link that explain how to calibrate your camera smile
You can find the program at this link : http://sourceforge.net/projects/aruco/files/1.0.0/
That program will generate an yaml file.

It's a good idea to make a PlugIt specialized in calibration. smile I'll see that ^^

Offline

#12 19-May-2011 23:10:08

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,081
Website

Re: Ar Piano not showing on the markers position.

can you send a screenshot of the arpiano demo maybe we could see the difference better

Offline

#13 20-May-2011 00:21:14

brucelim
Member
Registered: 19-May-2011
Posts: 17

Re: Ar Piano not showing on the markers position.

arproblm.th.jpg

Uploaded with ImageShack.us

Could it be of the bad picture quality? I think that at the time the markers are placed it is working.
I adjusted the orc's scale to 0.03000 so you can see were it is located.
Some of the cubes are there but out of line of sight.

Last edited by brucelim (20-May-2011 00:21:31)

Offline

#14 20-May-2011 00:23:04

brucelim
Member
Registered: 19-May-2011
Posts: 17

Re: Ar Piano not showing on the markers position.

Tenshikris wrote:

Hi Brucelim cool,

if i understand, when you start arpiano, cubes are not well on markers.
So i think it's a problem of camera calibration.
You should try to make yaml file with the program "calibration". Arkeon gave you the link that explain how to calibrate your camera smile
You can find the program at this link : http://sourceforge.net/projects/aruco/files/1.0.0/
That program will generate an yaml file.

It's a good idea to make a PlugIt specialized in calibration. smile I'll see that ^^


thanks for the info. big_smile

Do i have to compile the program? I going to do it on linux because its faster.

Last edited by brucelim (20-May-2011 00:28:33)

Offline

#15 20-May-2011 00:42:59

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,081
Website

Re: Ar Piano not showing on the markers position.

very strange ^^
maybe that your camera is a little too old, and based on a different focal length
you wiil definitely need to generate an yaml calibration file hmm

so ..
1 - download opencv 2.2 zip file http://sourceforge.net/projects/opencvl … p/download
2 - unzip in c:\
3 - print the C:\OpenCV2.2\doc\pattern.pdf without the fit to page setting
4 - measure a black square
5 - open a windows consol (cmd command)
6 - type "C:\OpenCV2.2\samples\cpp\calibration.exe -w 8 -h 6 -s 0.025 -o camera.yml -op" without the quotes
7 - -s 0.025 is the size in meter of a black square
8 - follow the instruction (move the camera around the pattern like showed here : http://www.uco.es/investiga/grupos/ava/node/26
9 - copy the yml file in your scol partition (my documents\Scol Voyager\Partition_LocalUsr\..)
10 - yeah you can try it in the capture plugIT !!

if it's not better try to make the yml file again ^^

good luck smile

Offline

#16 20-May-2011 00:50:27

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,081
Website

Re: Ar Piano not showing on the markers position.

arg .. calibration.exe is not compiled in the zip file ^^

retry smile
1 - download opencv 2.2 calibration : http://www.arkeon.dyndns.org/scol/openc … ration.rar
2 - unzip in C:\opencv_calibration
3 - print the C:\opencv_calibration\pattern.pdf without the fit to page setting
4 - measure a black square
5 - open a windows consol (cmd command)
6 - type "C:\opencv_calibration\calibration.exe -w 8 -h 6 -s 0.025 -o camera.yml -op" without the quotes
7 - -s 0.025 is the size in meter of a black square
8 - follow the instruction (move the camera around the pattern like showed here : http://www.uco.es/investiga/grupos/ava/node/26
9 - copy the yml file in your scol partition (my documents\Scol Voyager\Partition_LocalUsr\..)
10 - yeah you can try it in the capture plugIT !!

Offline

#17 20-May-2011 01:17:39

brucelim
Member
Registered: 19-May-2011
Posts: 17

Re: Ar Piano not showing on the markers position.

It gives me an error, no mater i angle the camera, maybe it is its quality that is bad.

RMS error reported by calibrateCamera: 0.451272
Calibration succeeded. avg reprojection error = 0.45


Would this one solve my problem?: LifeCam HD-3000MICROSOFT 720p video


lol, finaly i got a file by using my lcd to show the pattern. lets test it. wink

Last edited by brucelim (20-May-2011 01:25:47)

Offline

#18 20-May-2011 01:35:01

brucelim
Member
Registered: 19-May-2011
Posts: 17

Re: Ar Piano not showing on the markers position.

Getting better...

arproblm.th.jpg

Uploaded with ImageShack.us

My camera is not good for this, a new one would be certain to work.



problemsm.th.jpg
reprojection error = 0.19

Uploaded with ImageShack.us

Not Perfect, but it worked. A bit more fps and a bit more pixels the calibration should make with no errors.

Thanks for the help. wink

My idea is to make an AR Mechanical Manual, like for example disassembling a laptop, using stickers with markers pointing what screws are removed and what parts come first, using models made in Google sketchup(very easy export).

Last edited by brucelim (20-May-2011 02:06:00)

Offline

#19 20-May-2011 08:41:00

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,081
Website

Re: Ar Piano not showing on the markers position.

good smile

Offline

#20 26-May-2011 00:06:46

brucelim
Member
Registered: 19-May-2011
Posts: 17

Re: Ar Piano not showing on the markers position.

Well i guess you guys were right. I got a new camera and it worked very nice in low light conditions. No need for calibration, but it seems that old or bad image quality webcams need calibration and it never gets near this results.

Webcam: Logitech HD Webcam C310 - 720P HD 30 fps video and 5Mp photos. wink wink wink


Here is a counterstrike map (de_dust) imported from Google sketchup to openspace 3d and then to arPlugIt:
arproblm.th.jpg


A test program to show were are the calculator bolts, and the tool needed.
arproblm.th.jpg


Thank you all for your support.

Last edited by brucelim (26-May-2011 01:01:35)

Offline

#21 26-May-2011 01:49:17

Nodrev
Scol Language & OS3D developer
From: Nantes, France
Registered: 29-Dec-2009
Posts: 197

Re: Ar Piano not showing on the markers position.

Nice, congrats ^^.
Camera quality is indeed a requirement to have good tracking.

Offline

#22 26-May-2011 10:24:36

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: Ar Piano not showing on the markers position.

Good smile

Offline

#23 1-Oct-2011 05:44:52

addriangembel
Member
Registered: 1-Oct-2011
Posts: 46

Re: Ar Piano not showing on the markers position.

btw where i can find the marker.... i want to make a new marker....

Offline

#24 1-Oct-2011 12:05:00

Tenshikris
Scol Language & OS3D developer
Registered: 11-Apr-2011
Posts: 20

Re: Ar Piano not showing on the markers position.

In fact, markers are generated by the PlugIt ArMarker.
In ArMarker PlugIt, you can select marker by using the marker's id.
To save the marker in a picture file (bmp), you can click on the "Save" Button. wink And you'll have your marker in a picture file . smile

Offline

#25 1-Oct-2011 12:24:40

addriangembel
Member
Registered: 1-Oct-2011
Posts: 46

Re: Ar Piano not showing on the markers position.

if i want to make periodic tables(chemistry) as my marker.... how to do it???

Offline

Board footer

Powered by FluxBB