{"id":13641959,"url":"https://github.com/masc-it/yolov5-api-rust","last_synced_at":"2026-01-21T04:30:30.663Z","repository":{"id":46144119,"uuid":"514613406","full_name":"masc-it/yolov5-api-rust","owner":"masc-it","description":"Rust API to run predictions with YoloV5 models.","archived":false,"fork":false,"pushed_at":"2022-08-04T20:51:09.000Z","size":27,"stargazers_count":28,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-20T12:40:51.548Z","etag":null,"topics":["actix-web","onnx","rust","yolov5"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/masc-it.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}},"created_at":"2022-07-16T15:20:21.000Z","updated_at":"2024-09-07T07:37:24.000Z","dependencies_parsed_at":"2022-08-23T16:10:36.812Z","dependency_job_id":null,"html_url":"https://github.com/masc-it/yolov5-api-rust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/masc-it/yolov5-api-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masc-it%2Fyolov5-api-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masc-it%2Fyolov5-api-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masc-it%2Fyolov5-api-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masc-it%2Fyolov5-api-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masc-it","download_url":"https://codeload.github.com/masc-it/yolov5-api-rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masc-it%2Fyolov5-api-rust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28626186,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T02:47:06.670Z","status":"ssl_error","status_checked_at":"2026-01-21T02:45:44.886Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["actix-web","onnx","rust","yolov5"],"created_at":"2024-08-02T01:01:26.037Z","updated_at":"2026-01-21T04:30:30.658Z","avatar_url":"https://github.com/masc-it.png","language":"Rust","funding_links":[],"categories":["Other Versions of YOLO","Machine Learning"],"sub_categories":[],"readme":"# YoloV5-API [WIP]\n\nAPI to run inferences with YoloV5 models. Written in Rust, based on OpenCV 4.5.5\n\nIf you need a C++ version, check my [C++ Yolov5-API](https://github.com/masc-it/yolov5-api-cpp)\n\n## Requirements\n\n- [OpenCV 4.5.5](https://github.com/opencv/opencv/releases/tag/4.5.5) installed on your system\n  - Follow [Rust opencv README](https://github.com/twistedfall/opencv-rust)\n\n## Model config\n\n**Data** directory must contain your config.json\n\n**config.json** defines:\n- ONNX absolute model path\n- input size (640 default)\n- array of class names\n\nA dummy example is available in the _data/_ folder\n\n\n## Docker\n\n    docker run --name rust-yolov5-api -v \u003cmodel data dir\u003e:/app/data -p 5000:5000 mascit/rust-yolov5-api:latest\n\n## Build\n\nDevelopment:\n\n    cargo build\n\nRelease:\n\n    cargo build --release\n\n## Run\n\n    cargo run\n\nFor Windows users: Assure to have _opencv_world455.dll_ in your exe directory.\n\n# Endpoints\n\n## /predict [POST]\n\n### Body\n- Image bytes (binary in Postman)\n\n### Headers\n- X-Confidence-Thresh\n  - default 0.5\n- X-NMS-Thresh\n  - default 0.45\n- X-Return\n  - image_with_boxes\n    - A JPEG image with drawn predictions\n  - json (default)\n    - A json array containing predictions. Each object defines: xmin, ymin, xmax, ymax, conf, class_name","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasc-it%2Fyolov5-api-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasc-it%2Fyolov5-api-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasc-it%2Fyolov5-api-rust/lists"}