LoginSignup
1
2

More than 5 years have passed since last update.

【OpenCV】仮想環境(ubuntu)でWebカメラ撮影

Last updated at Posted at 2018-05-08

はじめに

■目的
仮想環境(virtualbox)上のUbuntuにOpenCVを入れて、Webカメラで動画撮影をする

環境

今回使用した環境

■ソフトウェア
仮想環境:VirtualBox(ubuntu16.04)
画像処理ライブラリ:OpenCV(バージョン3.2.0)

■ハードウェア
Webカメラ:UVC対応のもの今回は『ロジクールC310』を使用

手順

OpenCVのインストール

以下を参考にインストール
https://github.com/atinfinity/lab/wiki/Linux%E7%92%B0%E5%A2%83%E3%81%A7%E3%81%AEOpenCV%E3%83%93%E3%83%AB%E3%83%89#ubuntu16.04

※注意点
『CMakeの実行』の実行の際に以下のオプションを変更する。これがないとOpenCVがV4Lに対応してくれない。
-D WITH_V4L=ON

ソース

こちらの記事を参考にさせて頂きました。
https://qiita.com/vs4sh/items/4a9ce178f1b2fd26ea30

1
2
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
1
2