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.
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.
Offline
Hi, and welcome onboard
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
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
however calibration method is explain here : "camera caliration" http://www.uco.es/investiga/grupos/ava/node/26
Offline
Hi, thanks for the reply, i see this on screen:
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?
Maybe a calibration PlugIt would be great, so it works with all cameras.
Offline
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
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
Ok everything is normal
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
Sorry but its giving me the same. prefer to scale the marker? what do you mean?
Offline
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
Hi Brucelim ,
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
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. I'll see that ^^
Offline
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
Hi Brucelim ,
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
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. I'll see that ^^
thanks for the info.
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
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
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
Offline
arg .. calibration.exe is not compiled in the zip file ^^
retry
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
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.
Last edited by brucelim (20-May-2011 01:25:47)
Offline
Getting better...
Uploaded with ImageShack.us
My camera is not good for this, a new one would be certain to work.
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.
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
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.
Here is a counterstrike map (de_dust) imported from Google sketchup to openspace 3d and then to arPlugIt:
A test program to show were are the calculator bolts, and the tool needed.
Thank you all for your support.
Last edited by brucelim (26-May-2011 01:01:35)
Offline
Nice, congrats ^^.
Camera quality is indeed a requirement to have good tracking.
Offline
btw where i can find the marker.... i want to make a new marker....
Offline
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. And you'll have your marker in a picture file .
Offline
if i want to make periodic tables(chemistry) as my marker.... how to do it???
Offline