{"id":17722757,"url":"https://github.com/bramp/connected-component-labelling","last_synced_at":"2025-05-13T01:32:38.165Z","repository":{"id":1638232,"uuid":"2362824","full_name":"bramp/Connected-component-labelling","owner":"bramp","description":"A javascript library for connected-component labelling (aka blob extraction)","archived":false,"fork":false,"pushed_at":"2021-11-16T03:40:06.000Z","size":10,"stargazers_count":24,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T18:44:42.820Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bramp.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":"2011-09-10T22:05:43.000Z","updated_at":"2024-09-13T05:07:34.000Z","dependencies_parsed_at":"2022-09-11T08:11:30.544Z","dependency_job_id":null,"html_url":"https://github.com/bramp/Connected-component-labelling","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2FConnected-component-labelling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2FConnected-component-labelling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2FConnected-component-labelling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2FConnected-component-labelling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bramp","download_url":"https://codeload.github.com/bramp/Connected-component-labelling/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253854057,"owners_count":21974217,"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":[],"created_at":"2024-10-25T15:39:17.835Z","updated_at":"2025-05-13T01:32:38.142Z","avatar_url":"https://github.com/bramp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Connected-component labelling (aka blob extraction)\n### by Andrew Brampton 2011\n\nSimple javascript library that does connected-component labelling (aka blob\nextraction). It uses the Algorithm described in the paper \"A linear-time \ncomponent labeling algorithm using contour tracing technique\".\n\nThis is useful for Computer Vision problems, such as identifying objects in\na photo.\n\n## Usage:\n\n    \u003cscript type=\"text/javascript\" src=\"connected-component-labelling.js\"\u003e\u003c/script\u003e\n\n    \u003cscript\u003e\n        matrix = BlobExtraction(matrix, rect);\n    \u003c/script\u003e\n\n## API:\n    function BlobExtraction(matrix, width, height)\n\nPerforms blob extraction on a matrix of zeros and ones. The matrix must be a\none dimensional array, which represents a image with dimisions width x height.\n\nA array the same size as matrix is returned, containing numbered labels.\n\n    function BlobBounds(labels, width, height)\n\nUses the labels returned by  BlobExtraction, works out the bounds of each labelled blob.\n\n    function BlobColouring(dest, width, height, labels)\n\nCreates a coloured image, containing all the blobs identified in labels.\n\n# Licence (Apache 2)\n\n```\nCopyright 2021 Andrew Brampton All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramp%2Fconnected-component-labelling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbramp%2Fconnected-component-labelling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramp%2Fconnected-component-labelling/lists"}