{"id":19722023,"url":"https://github.com/sensoranalyticsaus/hu-invars","last_synced_at":"2026-06-12T11:31:30.392Z","repository":{"id":255007303,"uuid":"848242018","full_name":"SensorAnalyticsAus/hu-invars","owner":"SensorAnalyticsAus","description":"Python implementations of Hu's moment invariants for images","archived":false,"fork":false,"pushed_at":"2024-08-28T12:01:20.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T00:31:57.549Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/SensorAnalyticsAus.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-27T12:00:54.000Z","updated_at":"2024-08-28T12:01:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"f623e4b1-f28d-4a7a-97a8-02539c0574fd","html_url":"https://github.com/SensorAnalyticsAus/hu-invars","commit_stats":null,"previous_names":["sensoranalyticsaus/hu-invars"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SensorAnalyticsAus/hu-invars","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SensorAnalyticsAus%2Fhu-invars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SensorAnalyticsAus%2Fhu-invars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SensorAnalyticsAus%2Fhu-invars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SensorAnalyticsAus%2Fhu-invars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SensorAnalyticsAus","download_url":"https://codeload.github.com/SensorAnalyticsAus/hu-invars/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SensorAnalyticsAus%2Fhu-invars/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34243051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":[],"created_at":"2024-11-11T23:16:14.939Z","updated_at":"2026-06-12T11:31:30.371Z","avatar_url":"https://github.com/SensorAnalyticsAus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Hu Invariant Moments\n\nImplementations of Hu's invariants with respect to translation, scale, and rotation using `skimage` and `opencv` APIs.\n\n### Usage\n```\ngit clone https://github.com/SensorAnalyticsAus/hu-invars.git\ncd cd hu-invars/\n```\n\nWith `skimage`\n``` \npython hu.py img/shapes-01.jpg\n```\nOutput:\n```\n[ 3.0877   6.74289 14.92162 14.59358 29.37642 18.02443 29.83101]\n```\nWith `opencv`\n```\npython hu-cv2.py img/shapes-01.jpg\n```\nOutput\n```\n[  3.0877    6.74289  14.92162  14.59358  29.37642  18.02443 -29.83101]\n```\n\n### Refs\n* M. K. Hu, \"Visual Pattern Recognition by Moment Invariants\", IRE Trans. Info. Theory, vol. IT-8, pp.179–187, 1962\n* [scikit-image](https://scikit-image.org/docs/stable/api/skimage.measure.html#skimage.measure.moments)\n* [opencv image moments](https://docs.opencv.org/3.4/d0/d49/tutorial_moments.html) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensoranalyticsaus%2Fhu-invars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsensoranalyticsaus%2Fhu-invars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensoranalyticsaus%2Fhu-invars/lists"}