Giter VIP home page Giter VIP logo

dapenglan / preparation-of-augmented-reality-with-opencv-and-aruco Goto Github PK

View Code? Open in Web Editor NEW

This project forked from puconghan/preparation-of-augmented-reality-with-opencv-and-aruco

0.0 2.0 0.0 117.74 MB

Tutorials for compiling OpenCV and Aruco + compiled libraries

CMake 3.37% Makefile 3.28% Shell 0.02% C 5.06% C++ 67.31% Python 3.02% Java 13.15% Cuda 4.14% HTML 0.09% TeX 0.12% Objective-C 0.01% Objective-C++ 0.40% Batchfile 0.01% Clojure 0.01% Scala 0.01%

preparation-of-augmented-reality-with-opencv-and-aruco's Introduction

Tutorials for compiling OpenCV

1. Download a Package Manager.
        I used Macports. Download the .dmg file and install it. You can check if it installed successfully by typing port in your terminal.
2. Install Cmake
        In your terminal, type in the following: sudo port install cmake
        This will go fetch cmake and its dependencies and install them onto your system. You can check to see that cmake is installed by typing cmake in a new terminal window.
3. Download OpenCV source file from http://opencv.org/
        Download the Linux or Mac version. Unzip the downloaded file to a folder.
4. Build OpenCV
        In terminal, navigate to the folder where OpenCV was extracted to. Type in the following:

        //make a separate directory for building
        mkdir build
        cd build
        cmake -G "Unix Makefiles" ..

        //Now, we can make OpenCV. Type the following in:
        make -j8
        sudo make install

        //This should now build OpenCV and opencv2 into your /usr/local/ and /usr/include directories. A copy of these files will be saved in the build directory.

	Notice that if your /usr/local/ directory and /usr/include directory still does not have these opencv and opencv2 folders and files, you should 'sudo make install' under the 'build' folder again. It happens sometimes if you failed to sudo into your system with administrator credidential

Tutorials for compiling Aruco using Mac Terminal (Unix)

1. Download Aruco
        Main site: http://www.uco.es/investiga/grupos/ava/node/26
        Project url: http://sourceforge.net/projects/aruco/files/
        (I downloaded version 1.2.4)

2. Compile and Build Aruco
        In terminal, navigate to the folder where Aruco was extracted to.
        Open CMakeLists.txt file (sudo vim into this file under aruco folder)
        Search for FIND_PACKAGE (/FIND_PACKAGE in vim)
        Making sure this line of code is -> FIND_PACKAGE(OpenCV)
        Before this line of code, add -> set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ../opencv-2.4.8/cmake)

        In terminal, navigate to the folder where Aruco was extracted to.
        Type in the following:

        //make a separate directory for building
        mkdir build
        cd build
        cmake ..
	
	//Now, we can make Aruco and install it to your machine
	sudo make install

	Notice: If your system library does not include the <gl.h> file from the OpenGL library, the make install process will be failed. You need to download my attached gl.h file and save it under /usr/include directory. Don't forget to run 'cmake ..' command and  'sudo make install' command again. This should now build Aruco into your build directory and /usr/include directory
	

Work consulted: http://tilomitra.com/opencv-on-mac-osx/
Attached aruco-1.2.4 and opencv-2.4.8 have been compiled. You can get all needed library files from their build folder.

preparation-of-augmented-reality-with-opencv-and-aruco's People

Contributors

puconghan avatar

Watchers

James Cloos avatar Dapeng Lan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.