GithubHelp home page GithubHelp logo

ethanliew / opencv-webcam Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yushulx/opencv-webcam

0.0 0.0 0.0 11 KB

License: MIT License

JavaScript 13.36% HTML 12.68% C# 38.13% Python 21.92% Go 13.91%

opencv-webcam's Introduction

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

  1. Run:

    node web.js
    
  2. Open double-click.htm directly or visit locahost: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

  1. Run:

    dotnet restore
    dotnet run
    
  2. Visit locahost:2020 in any web browser.

Python

Install OpenCV Python:

pip install opencv-python

Desktop

Run:

python desktop.py

Web

  1. Run:

    python web.py
    
  2. Visit locahost:2020 in any web browser.

Golang

Install gocv:

go get -u -d gocv.io/x/gocv

For Windows

  1. Install MinGW-W64 x86_64-7.3.0-posix-seh-rt_v5-rev2

  2. Install CMake

  3. Build the OpenCV module:

    chdir %GOPATH%\src\gocv.io\x\gocv
    win_build_opencv.cmd
    
  4. Add C:\opencv\build\install\x64\mingw\bin to your system path.

Desktop

Run:

go run desktop.go

Web

  1. Run:

    go run web.go
    
  2. Visit locahost:2020 in any web browser.

Blog

How to Use OpenCV to Build Simple Webcam Apps for Desktop and Web

opencv-webcam's People

Contributors

yushulx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.