opencv show webcam image

1  install motion
2 install FFMPEG 
3 make sample code



1
from https://linoxide.com/linux-how-to/install-ffmpeg-centos-7/

Installation Steps for FFMPEG

We need to install a suitable repofile which includes this FFMPEG package which is the most important step of this installation.
I've tried various repos like RPMforge, EPEL and Webtatic repos in CentOS 7, but these repos lacked FFMPEG packages. Hence, I tried a new repo which is called Nux Dextop. Let's walk through the installation steps.

1. Enable Nux Dextop repo on CentOS 7

It is a third-party RPM repository that contains many popular multimedia related packages for CentOS releases. This repo work only if EPEL repo is enabled in the server. So you need to first make sure that you've enabled EPEL repo.
This is how we install EPEL repo on a CentOS 7 server.
#Install EPEL repo
yum -y install epel-release
After enabling epel repo, go ahead and install Nux Dextop repository.
root@server1 [~]# rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
root@server1 [~]# rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
Retrieving http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
Preparing... ################################# [100%] Updating / installing...
1:nux-dextop-release-0-1.el7.nux ################################# [100%] root@server1 [~]#
***IMPORTANT ***
Nux Dextop repository is an architecture independent RPM, so you can install the same RPM on both 32-bit and 64-bit.
We can now verify that the Nux Dextop repository is installed successfully.
nux1

2. Install FFMPEG and FFMPEG devel packages

By installing these packages, all the libraries will be installed in parallel.
root@server1 [~]# yum -y install ffmpeg ffmpeg-devel


2
ref https://centos.pkgs.org/7/nux-dextop-x86_64/motion-3.3.0.trunkREV557-11.el7.nux.x86_64.rpm.html

3


from http://wikiwiki.jp/akamonzaka/?cv%2Fsamples%2Flibwebcam

code




from https://github.com/neutmute/PiCamCV


#PiCamCV# Playing with OpenCV and the Raspberry Pi using EmguCV and C#.

Compatible with USB cameras (Windows and Raspberry Pi) as well as the Raspberry Pi Camera Module.












留言

熱門文章