Giter Site home page Giter Site logo

davelindell / opencv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opencv/opencv

0.0 1.0 0.0 435.08 MB

Open Source Computer Vision Library

Home Page: https://opencv.org

License: Other

CMake 2.35% C++ 83.48% Cuda 5.30% Shell 0.05% C 3.92% TeX 0.01% Java 2.12% Python 1.68% Perl 0.05% Batchfile 0.01% Objective-C++ 0.66% Objective-C 0.02% Makefile 0.01% JavaScript 0.29% HTML 0.01% PowerShell 0.05%

opencv's Introduction

OpenCV modified for cross-compilation on the Raspberry Pi 3

A few files have been modified to facilitate cross compilation.

./CMakeLists.txt ./platforms/linux/arm.toolchain.cmake

Before compiling, copy the root folders of your raspberry pi to a location on the machine that's doing the compiling. In my case I copied the following from the pi to /opt/arm/raspi/sysroot/

  • /usr/include/python2.7
  • /usr/bin
  • /usr/lib

If you change the path to which these directories are copied, you'll also need to adjust the cmake_cmd.txt configuration script accordingly.

To compile, run the following from the root of the repo

mkdir build
cd build
cp ../cmake_cmd.txt .
./cmake_cmd.txt # this will do the configuration
make

Then you can run make install to install the files to CMAKE_INSTALL_PREFIX. From there, copy them to the pi and double check to make sure your python path is set to the correct directory. You may also need to be sure that the /usr/lib/python2.7/dist-packages directory was copied correctly (sometimes this gets named to site-packages instead of dist-packages depending on the distro).

opencv's People

Contributors

a-wi avatar abak avatar akarsakov avatar alalek avatar albenoit avatar asmorkalov avatar berak avatar bitwangyaoyao avatar bloodaxe avatar catree avatar dkurt avatar edgarriba avatar erikrk avatar exocoder avatar f-morozov avatar ilya-lavrenov avatar laurentberger avatar mshabunin avatar nghiaho12 avatar obilaniu avatar ozantonkal avatar paroj avatar phillab avatar savuor avatar siddharthk avatar sovrasov avatar sturkmen72 avatar terfendail avatar tomoaki0705 avatar vpisarev avatar

Watchers

 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.