Friday, January 22, 2016

HOW TO COMPILE OPENCV FOR RASPBERRY PI2 (Windows 10 IoT)

It is manual about OpenCV compilation for Raspberry Pi2  with Windows10 IoT


for thous who tried to follow this manual but for some reason still do not have compiled OpenCV.

For the building process you will need to:
  1. Install Windows 10 on your PC;
  2. Install Visual Studio Community 2015 with Update 1;
  3. Install Windows 10 IoT for RPI2. 
If you will have problems with installation RPI WIN10 IoT (HOW TO).When you install everything go to the next step.

Fast and simple building of the OpenCV Libraries for ARM in details.

You have to follow this steps for it:
  1. Download  MS Open Tech GitHub repo and extra.
  2. Copy this files to the root directory (I mean C:\)
  3.  Extract them
     
  4. Rename received folders:
    • opencv-vs2015-samples ->  opencv
    • opencv_extra-master -> opencv_extra
  5.  Create folder opencv_validation
  6. Result should be like this:
  7. Create three system variables (OCV2015_ROOT, OPENCV_TEST_DATA_PATH, OPENCV_PERF_VALIDATION_DIR) as described below:





     
  8.  Open OpenCV Visual Studio project:
  9.  Compile debug and release versions:

  10.  Lets it! Now you can start developing with OpenC:
  11.  For checking you can open this example:
  12.  Do not forget to set ip adress:
  13.  Just run the application and enjoy:

Thank you for attention!
Sincerely your,
Ing. Dmitry Kochubey.

2 comments:

  1. P.S. Installing Win 10 on the PC is not necessary

    ReplyDelete
  2. Hi,
    Does provided OpenCV library support video capturing from web camera connected on RPi2 + Win 10 iot?

    Best regrads,
    Mirko

    ReplyDelete