{"id":13645721,"url":"https://github.com/blackjack/webcam","last_synced_at":"2026-01-11T23:03:15.187Z","repository":{"id":10913684,"uuid":"13212280","full_name":"blackjack/webcam","owner":"blackjack","description":"Golang webcam library for Linux","archived":false,"fork":false,"pushed_at":"2024-04-30T21:17:20.000Z","size":64,"stargazers_count":432,"open_issues_count":27,"forks_count":91,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-07-08T13:14:34.907Z","etag":null,"topics":["go","v4l2","webcam"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blackjack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-09-30T10:26:41.000Z","updated_at":"2025-07-06T16:13:07.000Z","dependencies_parsed_at":"2024-01-14T09:57:23.396Z","dependency_job_id":"7452e1ee-19fc-4e20-ba29-2a48fa5a39f9","html_url":"https://github.com/blackjack/webcam","commit_stats":null,"previous_names":["blackjack/go-webcam"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/blackjack/webcam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackjack%2Fwebcam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackjack%2Fwebcam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackjack%2Fwebcam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackjack%2Fwebcam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blackjack","download_url":"https://codeload.github.com/blackjack/webcam/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackjack%2Fwebcam/sbom","scorecard":{"id":242169,"data":{"date":"2025-08-11","repo":{"name":"github.com/blackjack/webcam","commit":"15347780752e4f6e9767d4e8b15a60038dc27f85"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":5,"reason":"Found 17/29 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 19 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T06:52:12.842Z","repository_id":10913684,"created_at":"2025-08-17T06:52:12.842Z","updated_at":"2025-08-17T06:52:12.842Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28326166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T22:11:01.104Z","status":"ssl_error","status_checked_at":"2026-01-11T22:10:58.990Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["go","v4l2","webcam"],"created_at":"2024-08-02T01:02:40.546Z","updated_at":"2026-01-11T23:03:15.165Z","avatar_url":"https://github.com/blackjack.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# go-webcam\n\n[![Build Status](https://travis-ci.org/blackjack/webcam.png?branch=master)](https://travis-ci.org/blackjack/webcam) [![GoDoc](https://godoc.org/github.com/google/go-github/github?status.svg)](https://godoc.org/github.com/blackjack/webcam)\n\nThis is a **go** library for working with webcams and other video capturing devices.\nIt depends entirely on [V4L2](http://linuxtv.org/downloads/v4l-dvb-apis/) framework, thus will compile and work only on **Linux** machine.\n\n## Installation\n\n```console\n$ go get github.com/blackjack/webcam\n```\n\n## Usage\n\n```go\nimport \"github.com/blackjack/webcam\"\n// ...\ncam, err := webcam.Open(\"/dev/video0\") // Open webcam\nif err != nil { panic(err.Error()) }\ndefer cam.Close()\n// ...\n// Setup webcam image format and frame size here (see examples or documentation)\n// ...\nerr = cam.StartStreaming()\nif err != nil { panic(err.Error()) }\nfor {\n  err = cam.WaitForFrame(timeout)\n\n  switch err.(type) {\n  case nil:\n  case *webcam.Timeout:\n    fmt.Fprint(os.Stderr, err.Error())\n    continue\n  default:\n    panic(err.Error())\n  }\n\n  frame, err := cam.ReadFrame()\n  if len(frame) != 0 {\n   // Process frame\n  } else if err != nil {\n    panic(err.Error())\n  }\n}\n```\nFor more detailed example see [examples folder](https://github.com/blackjack/webcam/tree/master/examples)\nThe number of frame buffers used may be set as:\n```go\n// If already streaming, stop streaming.\nif streaming_on {\n  cam.StopStreaming()\n}\nerr = cam.SetBufferCount(64)\n```\n\n## Roadmap\n\nThe library is still under development so API changes can happen. Currently library supports streaming\nusing only MMAP method, which should be sufficient for most of devices available on the market.\nOther streaming methods can be added in future (please create issue if you need this).\n\nAlso currently image format is defined by 4-byte code received from V4L2, which is good in terms of\ncompatibility with different versions of Linux kernel, but not very handy if you want to do some image manipulations.\nPlans are to aligh V4L2 image format codes with [Image](https://golang.org/pkg/image/) package from Go library.\n\n## License\n\nSee LICENSE file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackjack%2Fwebcam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackjack%2Fwebcam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackjack%2Fwebcam/lists"}