Skip to content

Instantly share code, notes, and snippets.

View pre2.sh
sudo modprobe bcm2835-v4l2; ./ras_camera;
View pre.sh
sudo apt-get update ;sudo apt-get -y install motion ;sudo modprobe bcm2835-v4l2 ;sudo apt-get -y install libopencv-dev ;git clone https://gist.github.com/b9939e7b8494d500642b45195b9a96e1.git ;cd ./b9939e7b8494d500642b45195b9a96e1 ;g++ rasbpi_opencv.cpp -o ~/ras_camera -lopencv_core -lopencv_highgui `pkg-config --libs opencv`; reboot;
View rasp_opencv.sh
sudo raspi-config # 5 Interfacing Options > 1 camera でカメラを使用可能にしておく
sudo reboot
# openCV用
sudo apt-get update
sudo apt-get install motion
sudo modprobe bcm2835-v4l2
sudo apt-get -y install libopencv-dev
View 180925_cv_picamera_memo.md
  • ラズパイでまずはじめに以下をやる
    • openCV, python, picameraのインストール、カメラの有効化、設定の反映のための再起動
# 参考: https://uepon.hatenadiary.com/entry/2018/02/12/113432
wget https://github.com/mt08xx/files/raw/master/opencv-rpi/libopencv3_3.4.0-20180115.1_armhf.deb
sudo apt install -y ./libopencv3_3.4.0-20180115.1_armhf.deb
sudo ldconfig
# 参考: https://qiita.com/mt08/items/e8e8e728cf106ac83218
pip3 install picamera
sudo raspi-config # 5 Interfacing Options > 1 camera でカメラを使用可能にしておく