{"id":13393761,"url":"https://github.com/gen2brain/cam2ip","last_synced_at":"2025-05-16T06:06:41.187Z","repository":{"id":45066723,"uuid":"105690073","full_name":"gen2brain/cam2ip","owner":"gen2brain","description":"Turn any webcam into an IP camera","archived":false,"fork":false,"pushed_at":"2024-01-30T15:33:13.000Z","size":134,"stargazers_count":922,"open_issues_count":21,"forks_count":99,"subscribers_count":34,"default_branch":"master","last_synced_at":"2025-04-08T16:04:23.679Z","etag":null,"topics":["camera","mjpeg","webcam"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gen2brain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-03T18:49:23.000Z","updated_at":"2025-03-26T23:34:18.000Z","dependencies_parsed_at":"2024-01-14T09:57:30.272Z","dependency_job_id":"46cf6744-bb7c-415d-9627-b9d512eb99aa","html_url":"https://github.com/gen2brain/cam2ip","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen2brain%2Fcam2ip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen2brain%2Fcam2ip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen2brain%2Fcam2ip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen2brain%2Fcam2ip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gen2brain","download_url":"https://codeload.github.com/gen2brain/cam2ip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254478190,"owners_count":22077676,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["camera","mjpeg","webcam"],"created_at":"2024-07-30T17:00:59.921Z","updated_at":"2025-05-16T06:06:36.173Z","avatar_url":"https://github.com/gen2brain.png","language":"Go","funding_links":[],"categories":["\u003ca id=\"9eee96404f868f372a6cbc6769ccb7f8\"\u003e\u003c/a\u003e新添加的","Go","\u003ca id=\"9eee96404f868f372a6cbc6769ccb7f8\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"31185b925d5152c7469b963809ceb22d\"\u003e\u003c/a\u003e新添加的"],"readme":"## cam2ip\n\nTurn any webcam into an IP camera.\n\nExample (in web browser):\n\n    http://localhost:56000/html\n\nor\n\n    http://localhost:56000/mjpeg\n\nYou can also use apps like `ffplay` or `vlc`:\n\n    ffplay -i http://localhost:56000/mjpeg\n\n### Requirements\n\n* On Linux/RPi native Go [V4L](https://github.com/korandiz/v4l) implementation is used to capture images.\n* On Windows [Video for Windows (VfW)](https://en.wikipedia.org/wiki/Video_for_Windows) framework is used over win32 API.\n\n### Build tags\n\n* `cv2` - build with `OpenCV` 2.x ([go-opencv](https://github.com/lazywei/go-opencv))\n* `cv4` - build with `OpenCV` 4.x ([gocv](https://github.com/hybridgroup/gocv))\n* `turbo` - build with `libjpeg-turbo` ([libjpeg-turbo](https://www.libjpeg-turbo.org/)) instead of native Go `image/jpeg`\n\n### Download\n\nBinaries are compiled with static OpenCV/libjpeg-turbo libraries, they should just work:\n\n - [Linux 64bit](https://github.com/gen2brain/cam2ip/releases/download/1.6/cam2ip-1.6-64bit.tar.gz)\n - [Linux 64bit OpenCV](https://github.com/gen2brain/cam2ip/releases/download/1.6/cam2ip-1.6-64bit-cv2.tar.gz)\n - [macOS 64bit OpenCV](https://github.com/gen2brain/cam2ip/releases/download/1.6/cam2ip-1.6-darwin-cv2.zip)\n - [RPi 32bit](https://github.com/gen2brain/cam2ip/releases/download/1.6/cam2ip-1.6-RPi.tar.gz)\n - [RPi 32bit OpenCV](https://github.com/gen2brain/cam2ip/releases/download/1.6/cam2ip-1.6-RPi-cv2.tar.gz)\n - [RPi 32bit Static](https://github.com/gen2brain/cam2ip/releases/download/1.6/cam2ip-1.6-RPi-nocgo.tar.gz)\n - [RPi3 32bit](https://github.com/gen2brain/cam2ip/releases/download/1.6/cam2ip-1.6-RPi3.tar.gz)\n - [RPi3 32bit OpenCV](https://github.com/gen2brain/cam2ip/releases/download/1.6/cam2ip-1.6-RPi3-cv2.tar.gz)\n - [Windows 32bit](https://github.com/gen2brain/cam2ip/releases/download/1.6/cam2ip-1.6-32bit.zip)\n - [Windows 32bit OpenCV](https://github.com/gen2brain/cam2ip/releases/download/1.6/cam2ip-1.6-32bit-cv2.zip)\n - [Windows 64bit](https://github.com/gen2brain/cam2ip/releases/download/1.6/cam2ip-1.6-64bit.zip)\n - [Windows 64bit OpenCV](https://github.com/gen2brain/cam2ip/releases/download/1.6/cam2ip-1.6-64bit-cv2.zip)\n\n\n### Installation\n\n    go get -v github.com/gen2brain/cam2ip/cmd/cam2ip\n\nThis will install app in `$GOPATH/bin/cam2ip`.\n\n### Run in Docker container\n\n    docker run --device=/dev/video0:/dev/video0 -p56000:56000 -it gen2brain/cam2ip # on RPi use gen2brain/cam2ip:arm\n\n### Usage\n\n```\nUsage of cam2ip:\n  -bind-addr string\n\tBind address [CAM2IP_BIND_ADDR] (default \":56000\")\n  -delay int\n\tDelay between frames, in milliseconds [CAM2IP_DELAY] (default 10)\n  -height float\n\tFrame height [CAM2IP_HEIGHT] (default 480)\n  -htpasswd-file string\n\tPath to htpasswd file, if empty auth is disabled [CAM2IP_HTPASSWD_FILE]\n  -index int\n\tCamera index [CAM2IP_INDEX]\n  -nowebgl\n\tDisable WebGL drawing of images (html handler) [CAM2IP_NOWEBGL]\n  -rotate int\n\tRotate image, valid values are 90, 180, 270 [CAM2IP_ROTATE]\n  -timestamp\n\tDraws timestamp on images [CAM2IP_TIMESTAMP]\n  -width float\n\tFrame width [CAM2IP_WIDTH] (default 640)\n```\n\n### Handlers\n\n  * `/html`: HTML handler, frames are pushed to canvas over websocket\n  * `/jpeg`: Static JPEG handler\n  * `/mjpeg`: Motion JPEG, supported natively in major web browsers\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgen2brain%2Fcam2ip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgen2brain%2Fcam2ip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgen2brain%2Fcam2ip/lists"}