Webcam Video Display for Desktop and Web
The repository contains some simple webcam display programs implemented by using different programming languages and OpenCV. The web camera apps are available for both local and remote access via any web browser.
Programming Language List
JavaScript
Install opencv4nodejs:
```
npm i opencv4nodejs
```
Desktop
Run:
node desktop.js
Web
-
Run:
node web.js
-
Open
double-click.htm
directly or visitlocahost:2020
in any web browser.
CSharp
Install OpenCvSharp:
For Windows
dotnet add package OpenCvSharp4
dotnet add package OpenCvSharp4.runtime.win
Desktop
Run:
dotnet restore
dotnet run
Web
-
Run:
dotnet restore dotnet run
-
Visit
locahost:2020
in any web browser.
Python
Install OpenCV Python:
pip install opencv-python
Desktop
Run:
python desktop.py
Web
-
Run:
python web.py
-
Visit
locahost:2020
in any web browser.
Golang
Install gocv:
go get -u -d gocv.io/x/gocv
For Windows
-
Install MinGW-W64 x86_64-7.3.0-posix-seh-rt_v5-rev2
-
Install CMake
-
Build the OpenCV module:
chdir %GOPATH%\src\gocv.io\x\gocv win_build_opencv.cmd
-
Add
C:\opencv\build\install\x64\mingw\bin
to your system path.
Desktop
Run:
go run desktop.go
Web
-
Run:
go run web.go
-
Visit
locahost:2020
in any web browser.
Blog
How to Use OpenCV to Build Simple Webcam Apps for Desktop and Web