Table of Contents
Mouse cursor position prediction.
.
├── CMakeLists.txt
├── README.md
├── resource
│ └── image
│ ├── augmented-reality-example.jpg
│ ├── me.jpg
│ ├── new_scenery.jpg
│ ├── test_ar_out_cpp.jpg
│ └── test.jpg
└── src
└── demo.cpp
This is a sample code of how you may use the opencv aruco for augmented reality. To get a local copy up and running follow these simple steps.
This is an example of how to list things you need to use the software and how to install them.
-
cmake
sudo apt-get install cmake
-
opencv4
sudo su
git clone https://github.com/zoumson/OpencvInstall.git \
&& cd OpencvInstall && chmod +x install.sh && ./install.sh
- Clone the repo
git clone https://github.com/zoumson/AugmentedReality.git
- Go to the project directory source
cd AugmentedReality
- Create empty directories
mkdir build && mkdir bin && mkdir result && cd result && mkdir image && cd ..
- Generate the exectutable and move it to
bin
cd build && cmake .. && make -j4 && cd ..
- Run the executable
./bin/demo -o=1 -i=./resource/image/test.pg -n=./resource/image/me.jpg
- Original Image
- Image used to replace the existing landscape in the square
- Output image
- Back to the initial file structure configuration
rm -r bin build result
All the headers files are well docummented, read through the comments
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Adama Zouma - - [email protected]
Project Link: https://github.com/zoumson/AugmentedReality