{"id":17309814,"url":"https://github.com/bobld/pcontournet","last_synced_at":"2026-02-21T11:00:54.075Z","repository":{"id":251163630,"uuid":"834742560","full_name":"BobLd/PContourNet","owner":"BobLd","description":"C# library for finding contours in binary images. Ported from https://github.com/LingDong-/PContour","archived":false,"fork":false,"pushed_at":"2024-08-10T12:08:35.000Z","size":24,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-03T22:25:24.453Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","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/BobLd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-07-28T08:12:46.000Z","updated_at":"2025-10-08T15:06:15.000Z","dependencies_parsed_at":"2024-12-11T19:31:33.009Z","dependency_job_id":null,"html_url":"https://github.com/BobLd/PContourNet","commit_stats":null,"previous_names":["bobld/pcontournet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BobLd/PContourNet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BobLd%2FPContourNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BobLd%2FPContourNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BobLd%2FPContourNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BobLd%2FPContourNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BobLd","download_url":"https://codeload.github.com/BobLd/PContourNet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BobLd%2FPContourNet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29679049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T09:33:50.764Z","status":"ssl_error","status_checked_at":"2026-02-21T09:33:19.949Z","response_time":107,"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":[],"created_at":"2024-10-15T12:32:50.593Z","updated_at":"2026-02-21T11:00:54.058Z","avatar_url":"https://github.com/BobLd.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PContourNet\nC# library for finding contours in binary images. Ported from java to C# from https://github.com/LingDong-/PContour\n\n### From original README:\nSimilar to OpenCV's `cv::findContours` and `cv::approxPolyDP`, the algorithms implement the following papers:\n- Suzuki, S. and Abe, K., Topological Structural Analysis of Digitized Binary Images by Border Following\n- David Douglas and Thomas Peucker, Algorithms for the reduction of the number of points required to represent a digitized line or its caricature\n\n## Usage\n```csharp\nint[] bitmap = new int[]\n{\n    0, 0, 0, 0, 0, 0, 0, 0,\n    0, 0, 0, 0, 1, 1, 0, 0,\n    0, 1, 1, 1, 1, 1, 0, 0,\n    0, 1, 1, 0, 0, 1, 1, 0,\n    0, 1, 1, 0, 0, 1, 1, 0,\n    0, 1, 1, 1, 1, 1, 0, 0,\n    0, 0, 0, 1, 1, 0, 0, 0,\n    0, 0, 0, 0, 0, 0, 0, 0,\n};\n\nint width = 8;\nint height = 8;\n\n// find contours\nvar contours = PContour.FindContours(bitmap, width, height);\n\n// simplify the polyline\nfor (int i = 0; i \u003c contours.Count; i++)\n{\n    contours[i].points = PContour.ApproxPolyDP(contours[i].GetPointsSpan(), 1).ToArray().ToList();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobld%2Fpcontournet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbobld%2Fpcontournet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobld%2Fpcontournet/lists"}