{"id":18168580,"url":"https://github.com/ryoppippi/zigcv","last_synced_at":"2025-04-05T17:05:17.975Z","repository":{"id":58040308,"uuid":"527144234","full_name":"ryoppippi/zigcv","owner":"ryoppippi","description":"zig bindings for OpenCV4","archived":false,"fork":false,"pushed_at":"2025-03-27T17:41:13.000Z","size":855,"stargazers_count":115,"open_issues_count":25,"forks_count":16,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-29T16:04:21.369Z","etag":null,"topics":["opencv","zig","ziglang"],"latest_commit_sha":null,"homepage":"https://ryoppippi.github.io/zigcv","language":"Zig","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/ryoppippi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yaml","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},"funding":{"github":"ryoppippi"}},"created_at":"2022-08-21T08:11:05.000Z","updated_at":"2025-03-29T02:27:47.000Z","dependencies_parsed_at":"2024-05-03T03:02:49.205Z","dependency_job_id":"12da7b19-2b45-40c2-ad58-c6a595daf422","html_url":"https://github.com/ryoppippi/zigcv","commit_stats":null,"previous_names":["zigcv/zigcv","ryoppippi/zigcv"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryoppippi%2Fzigcv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryoppippi%2Fzigcv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryoppippi%2Fzigcv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryoppippi%2Fzigcv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryoppippi","download_url":"https://codeload.github.com/ryoppippi/zigcv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247369953,"owners_count":20927928,"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":["opencv","zig","ziglang"],"created_at":"2024-11-02T14:01:08.150Z","updated_at":"2025-04-05T17:05:17.956Z","avatar_url":"https://github.com/ryoppippi.png","language":"Zig","readme":"# ZIGCV\n\n[![ci](https://github.com/ryoppippi/zigcv/actions/workflows/ci.yml/badge.svg)](https://github.com/ryoppippi/zigcv/actions/workflows/ci.yml)\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"./logo/zigcv.png\" width=\"50%\" /\u003e\n\u003c/div\u003e\n\nThe ZIGCV library provides Zig language bindings for the [OpenCV 4](http://opencv.org/) computer vision library.\n\nThe ZIGCV library supports the head/master of zig and OpenCV (v4.6.0) on Linux, macOS, and Windows.\n\n## Caution\n\nStill under development, so the zig APIs will be dynamically changed.\n\nYou can use `const c_api = @import(\"zigcv\").c_api;` to call c bindings directly.  \nThis C-API is currently fixed.\n\n## How to execute\n\n### Use your own package manager\nAt first, install openCV 4.6. (maybe you can read how to install from [here](https://github.com/hybridgroup/gocv#how-to-install)).  \nThen:\n\n```sh\ngit clone --recursive https://github.com/ryoppippi/zigcv\ncd zigcv\nzig build\n```\n\nCurrently this repo works with zig 0.11.0, so make sure you have it installed.\nWe are working on updating to zig 0.12.0.\n\n\n### Use devbox\nWe also provide a devbox config to manage dependencies and build environments.\n\n```sh\ngit clone --recursive https://github.com/zigcv\ncd zigcv\ndevbox init\n\n```\n\nCheckout [devbox.json](./devbox.json) for more details.\n\n## Demos\n\nyou can build some demos.\nFor example:\n\n```sh\nzig build examples\n./zig-out/bin/face_detection 0\n```\n\nOr you can run the demo with the following command:\n\n```sh\ndevbox run build examples\n./zig-out/bin/face_detection 0\n```\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"400\" alt=\"face detection\" src=\"https://user-images.githubusercontent.com/1560508/188515175-4d344660-5680-43e7-9b74-3bad92507430.gif\"\u003e\n\u003c/div\u003e\n\nYou can see the full demo list by `zig build --help`.\n\n## Technical restrictions\n\nDue to zig being a relatively new language it does [not have full C ABI support](https://github.com/ziglang/zig/issues/1481) at the moment.  \nFor use that mainly means we can't use any functions that return structs that are less than 16 bytes large on x86, and passing structs to any functions may cause memory error on arm.\n\n## License\n\nMIT\n\n## Author\n\nRyotaro \"Justin\" Kimura (a.k.a. ryoppippi)\n","funding_links":["https://github.com/sponsors/ryoppippi"],"categories":["Libraries","Multimedia \u0026 Graphics"],"sub_categories":["Image and Video Processing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryoppippi%2Fzigcv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryoppippi%2Fzigcv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryoppippi%2Fzigcv/lists"}