{"id":15565379,"url":"https://github.com/dkurt/hair_segmentation","last_synced_at":"2025-09-17T23:49:03.861Z","repository":{"id":153569376,"uuid":"628925467","full_name":"dkurt/hair_segmentation","owner":"dkurt","description":"Hair recoloring on RISC-V with OpenCV","archived":false,"fork":false,"pushed_at":"2023-04-19T19:03:28.000Z","size":96,"stargazers_count":11,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-15T14:45:11.710Z","etag":null,"topics":["deep-learning","licheepi","mangopi-mq-pro","mediapipe","opencv","risc-v","riscv64","rvv","tflite"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dkurt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-04-17T09:07:43.000Z","updated_at":"2024-09-26T02:18:03.000Z","dependencies_parsed_at":"2023-05-19T18:30:40.677Z","dependency_job_id":null,"html_url":"https://github.com/dkurt/hair_segmentation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dkurt/hair_segmentation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkurt%2Fhair_segmentation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkurt%2Fhair_segmentation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkurt%2Fhair_segmentation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkurt%2Fhair_segmentation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkurt","download_url":"https://codeload.github.com/dkurt/hair_segmentation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkurt%2Fhair_segmentation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275685473,"owners_count":25509530,"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","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["deep-learning","licheepi","mangopi-mq-pro","mediapipe","opencv","risc-v","riscv64","rvv","tflite"],"created_at":"2024-10-02T16:55:24.122Z","updated_at":"2025-09-17T23:49:03.822Z","avatar_url":"https://github.com/dkurt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repository contains a simple Python script which runs Mediapipe's hair segmentation model using OpenCV on RISC-V CPU.\n\n### How to start\n\n1. Download a compiler: [Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1-20220906.tar.gz](https://occ.t-head.cn/community/download?id=4090445921563774976) and put to `opencv_riscv64` folder without unpacking.\n\n2. Build OpenCV:\n    ```bash\n    docker build -t opencv opencv_riscv64\n    docker run -v $(pwd):/mnt opencv sh -c \"cp *.tar.gz /mnt\"\n    ```\n\n3. Download deep learning [model](https://storage.googleapis.com/mediapipe-assets/hair_segmentation.tflite?generation=1661875756623461)\n\n4. Start a telegram bot:\n\n    ```bash\n    python bot.py --token=xxx\n    ```\n\n### Performance\n\nHW: Sipeed Lichee RV Dock (Allwinner D1 aka XuanTie C906 CPU)\n\nOS: [20211230_LicheeRV_debian_d1_hdmi_8723ds](https://mega.nz/folder/lx4CyZBA#PiFhY7oSVQ3gp2ZZ_AnwYA/folder/xtxkABIB)\n\n| input | no RVV | RVV |\n|---|---|---|\n| 512x512 | 3.5 seconds | 2.35 seconds (x1.48) |\n\n\u003cimg src=\"./images/example.jpg\" height=\"512\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkurt%2Fhair_segmentation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkurt%2Fhair_segmentation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkurt%2Fhair_segmentation/lists"}