0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Raspberry Pi でカメラ利用 初期設定

Posted at

Raspberry Pi でカメラ利用

Spec

アイテム 詳細
Raspberry Pi Raspberry Pi 3 Model B+
カメラモジュール OV5647センサー 500万画素

カメラ接続確認

カメラ背面にテープの青い面
image.png
LANケーブル側にテープの青い面
image.png

カメラ設定

Start > 「設定」>「Raspberry Piの設定」 > インターフェース > カメラ:有効

コマンドで接続確認

vcgencmd get_camera

image.png
「supported=1 detected=1」 だと正常にカメラ認識。
違う場合は、接続確認及び

sudo apt-get update
sudo apt-get upgrade

でドライバなどアップデート。

画像撮影

sudo raspistill -o image.jpg

「/home/pi」に imege.jpg が出来ているので確認。

カメラコマンド

コマンド 詳細
-? --help ヘルプの表示
-w --width 画像の幅の指定 (サイズ)
-h --height 画像の高さの指定 (サイズ)
-q --quality jpeg 品質を設定 (0 - 100)
-r --raw jpeg メタデータに Bayer 配列データを追加する
-o --output 出力ファイル名 (標準出力の場合は '-o -'). 指定しなければ何も保存されない
-v --verbose 詳細情報の表示
-t --timeout 撮影までの時間をミリ秒単位で指定。指定しない場合は5秒
-th --thumb サムネイルパラメータを設定 (x:y:quality)
-d --demo デモモードを実行、撮影しない
-e --encoding 出力ファイルのエンコード方法の指定 (jpg, bmp, gif, png)
-x --exif EXIFタグの指定 ('key=value'の形式)
-tl --timelapse こま撮りモード(ミリ秒で指定した間隔で連続撮影)
-fp --fullpreview 撮影する写真とモニターに映るプレビュー画面を同じサイズ(最大解像度 2592x1944)にする(画面更新が最大15fpsまで遅くなる)

(参考:Jun's Homepageさん)

(備考) VNC Viewer でのファイル転送

Raspberry Pi → PC

1. 右上の VNC アイコンを右クリック > 「File Transfer」

2. 「Fetch files to」でフォルダ選択 > 「Send files」でファイル選択。

3. ファイル送信。デフォルトだとデスクトップに行く模様。

PC → Raspberry Pi

1. VNCの画面の上側のツールボックスで「File Transfersアイコン」選択。

2. 「Fetch files to」で「Downloads」(ファイル読み込み先)を選択し、「Send files」。

3. 転送するファイルを選択。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?