Help us understand the problem. What is going on with this article?

ラズパイ: Buster向け OpenCV4

概要

Buster向けに、OpenCV 4.1.0 をビルドしてみました。
(いつもの)顔検出(test-face_detect.py)しか、テストしてません..
busterで、python3は、3.7.3になりました。

TL;DR

curl -SLO  https://raw.githubusercontent.com/mt08xx/files/master/libopencv4-buster_4.1.0-20190625.1_armhf.deb
sudo apt install -y ./libopencv4-buster_4.1.0-20190625.1_armhf.deb

環境

  • Raspberry Pi 3B
  • microSD 16GB
  • Raspbian: 2019-06-20-raspbian-buster.img

実行例

pi@raspberrypi:~ $ python2 --version
Python 2.7.16
pi@raspberrypi:~ $ python2 -c 'import cv2; print(cv2.__version__)'
4.1.0
pi@raspberrypi:~ $ python3 --version
Python 3.7.3
pi@raspberrypi:~ $ python3 -c 'import cv2; print(cv2.__version__)'
4.1.0
pi@raspberrypi:~ $ 

その他

  • うごかない場合、以下を実行すれば、必要なライブラリはインストールされると思います。

    sudo apt-get install -y \
        build-essential cmake pkg-config \
        libjpeg-dev libtiff5-dev libpng-dev \
        libavcodec-dev libavformat-dev libswscale-dev libv4l-dev \
        libxvidcore-dev libx264-dev \
        libgtk2.0-dev libgtk-3-dev \
        libcanberra-gtk* \
        gfortran \
        python2.7-dev python3-dev \
        libavresample-dev libtesseract-dev libleptonica-dev \
        libgstreamer1.0-dev  libgstreamer-plugins-base1.0-dev libhdf5-dev \
        libatlas-base-dev liblapacke-dev \
        python3-numpy python-numpy libjasper-dev
    
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした