Files
openvino/inference-engine/ie_bridges/python
Alexey Suhov 3600f36d7b updated install_dependencies.sh and readme for python api (#43)
* use absolute path in readme for python api
* Update install_dependencies.sh
2018-11-29 21:04:21 +03:00
..
2018-10-16 13:45:03 +03:00
2018-11-23 16:19:43 +03:00
2018-11-23 16:19:43 +03:00
2018-11-23 16:19:43 +03:00
2018-10-16 13:45:03 +03:00
2018-10-16 13:45:03 +03:00
2018-10-16 13:45:03 +03:00

Software Requirements

  • CMake* 3.9 or later
  • Microsoft* Visual Studio 2015 or later on Windows*
  • gcc 4.8 or later on Linux
  • Python 2.7 or higher on Linux*
  • Python 3.4 or higher on Windows*

Prerequisites

Install the following Python modules:

  • opencv-python
  • numpy
  • cython

Building on Windows

	mkdir build
	cd build
	set PATH=C:\Program Files\Python36\Scripts;%PATH%
	cmake -G "Visual Studio 14 2015 Win64" -DInferenceEngine_DIR=..\..\..\build ^
		-DPYTHON_EXECUTABLE="C:\Program Files\Python36\python.exe" ^
		-DPYTHON_INCLUDE_DIR="C:\Program Files\Python36\include" ^
		-DPYTHON_LIBRARY="C:\Program Files\Python36\libs\python36.lib" ..

Then build generated solution INFERENCE_ENGINE_DRIVER.sln using Microsoft* Visual Studio.

Building on Linux

  mkdir -p build
  cd build
  cmake -DInferenceEngine_DIR=`realpath ../../../build` -DPYTHON_EXECUTABLE=`which python3.6` \
  	-DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.6m.so \
  	-DPYTHON_INCLUDE_DIR=/usr/include/python3.6 ..
  make -j16

Note: -DInferenceEngine_DIR parameter is needed to specify the folder with generated make files or Visual Studio solution used to build Inference Engine (see readme file in the inference-engine root folder).