mirror of
https://github.com/gen2brain/cam2ip.git
synced 2026-01-08 23:58:35 +00:00
58 lines
1.4 KiB
Markdown
58 lines
1.4 KiB
Markdown
## cam2ip
|
|
|
|
Turn any webcam into an IP camera.
|
|
|
|
Example (in web browser):
|
|
|
|
http://localhost:56000/mjpeg
|
|
or
|
|
|
|
http://localhost:56000/html
|
|
|
|
### Requirements
|
|
|
|
* [OpenCV 2.x](http://opencv.org/)
|
|
|
|
|
|
### Download
|
|
|
|
Binaries are compiled with static OpenCV library:
|
|
|
|
- [Android 32bit](https://github.com/gen2brain/cam2ip/releases/download/1.2/cam2ip-1.2-android.tar.gz)
|
|
- [Linux 64bit](https://github.com/gen2brain/cam2ip/releases/download/1.2/cam2ip-1.2-64bit.tar.gz)
|
|
- [RPi 32bit](https://github.com/gen2brain/cam2ip/releases/download/1.2/cam2ip-1.2-RPi.tar.gz)
|
|
- [Windows 32bit](https://github.com/gen2brain/cam2ip/releases/download/1.2/cam2ip-1.2.zip)
|
|
|
|
|
|
### Installation
|
|
|
|
go get -v github.com/gen2brain/cam2ip
|
|
|
|
This will install app in `$GOPATH/bin/cam2ip`.
|
|
|
|
### Usage
|
|
|
|
```
|
|
Usage of ./cam2ip:
|
|
-bind-addr string
|
|
Bind address (default ":56000")
|
|
-delay int
|
|
Delay between frames, in milliseconds (default 10)
|
|
-frame-height float
|
|
Frame height (default 480)
|
|
-frame-width float
|
|
Frame width (default 640)
|
|
-htpasswd-file string
|
|
Path to htpasswd file, if empty auth is disabled
|
|
-index int
|
|
Camera index
|
|
-webgl
|
|
Use WebGL to draw images
|
|
```
|
|
|
|
### Handlers
|
|
|
|
* `/html`: HTML handler, frames are pushed to canvas over websocket
|
|
* `/jpeg`: Static JPEG handler
|
|
* `/mjpeg`: Motion JPEG, supported natively in major web browsers
|