The SolAR Natural Image Marker sample show a SolAR pipeline for augmented reality based on a natural image.
This pipeline loads a reference image marker, then tries to detect it on real-time camera images and to estimate the pose of the camera in relation to the coordinate system of the image marker. If the marker is detected, the pipeline over the current camera image renders a 3D cube from a virtual camera which pose corresponds to the one estimated by the pipeline.
SolARPipelineTest_NaturalImageMarker | SolARPipeline_NaturalImageMarker |
-
To run it, first print the marker graf1.png.
-
If you want to change your natural image, you can edit the grafMarker.yml.
-
If you want to change the calibration parameters of the camera, edit the camera_calibration.json.
-
To change properties of the components of the natural pipeline, edit the conf_NaturalImageMarker.xml file.
If you want to run your Natural image samples after having built them, do not forget to install the required dependencies if not already done:
remaken install packagedependencies.txt
and for debug mode:
remaken install packagedependencies.txt -c debug
For more information about how to install remaken on your machine, visit the install page on the SolAR website.
Open a terminal in the bin/Release
or bin/Debug
folder and execute :
SolARPipelineTest_NaturalImageMarker.exe
./run.sh ./SolARPipelineTest_NaturalImageMarker
- When the application is started, point the camera to the natural image marker (you can see a virtual cube on the marker).
- Press
escape
to quit the application.
You should have bundle every required library in your Unity project (./Assets/Plugins
). Then from Unity Gameobject PipelineLoader you can load your configuration file for the natural image pipeline. You can directly edit parameters from Unity Editor's inspector.
Website https://solarframework.github.io/
Contact [email protected]