GithubHelp home page GithubHelp logo

raspberry_tensorflow's Introduction

Software installing for Raspberry 4B

(Version:Raspbian Buster with desktop 2019-09-26)

一、OpenCV 4.1.0 安装

1. 安装软件包

$sudo pip3 install numpy
$sudo apt-get install build-essential git cmake pkg-config -y
$sudo apt-get install libjpeg8-dev -y
$sudo apt-get install libtiff5-dev -y
$sudo apt-get install libjasper-dev -y
$sudo apt-get install libpng12-dev -y

$sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev -y

$sudo apt-get install libgtk2.0-dev -y
$sudo apt-get install libatlas-base-dev gfortran -y

2. 下载OpenCV

$cd Downloads
$git clone -b 4.1.0 --recursive https://github.com/opencv/opencv.git
$git clone -b 4.1.0 --recursive https://github.com/opencv/opencv_contrib.git

3. 配置CMake

创建build目录

$cd /home/pi/Downloads/opencv
$mkdir build
$cd build

配置Cmake,执行以下命令:

$cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_C_EXAMPLES=ON \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D OPENCV_EXTRA_MODULES_PATH=/home/pi/Downloads/opencv_contrib/modules \
-D BUILD_EXAMPLES=ON \
-D WITH_LIBV4L=ON \
-D PYTHON3_EXECUTABLE=/usr/bin/python3.7 \
-D PYTHON_INCLUDE_DIR=/usr/include/python3.7 \
-D PYTHON_LIBRARY=/usr/lib/arm-linux-gnueabihf/libpython3.7m.so \
-D PYTHON3_NUMPY_INCLUDE_DIRS=/usr/lib/python3/dist-packages/numpy/core/include \
..

4. 编译安装

在Cmake生成Makefile之后,便可进行编译安装:

$ make -j4
$ sudo make install
$ sudo ldconfig

二、Tensorflow 安装

1. 安装软件包

$pip3 install tensorflow

服务器自动安装,版本为: tensorflow 1.13.1
tensorflow-estimator 1.14.0

$sudo pip3 install pillow lxml jupyter matplotlib cython

三、Keras 安装

#sudo pip3 install keras

$sudo pip3 install scikit-learn
$pip3 install h5py
$sudo apt-get install libhdf5-dev -y

raspberry_tensorflow's People

Contributors

linkmeta avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

mx1014 marscom88

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.