Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
21
Help us understand the problem. What is going on with this article?
@mt08

ラズパイ: Buster向け OpenCV4

More than 1 year has passed since last update.

概要

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
    
21
Help us understand the problem. What is going on with this article?
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
mt08
2000 Contrib! [2021-04-09]

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
21
Help us understand the problem. What is going on with this article?