{"id":15043621,"url":"https://github.com/gusenov/max-empty-rect-py","last_synced_at":"2026-02-06T04:31:52.252Z","repository":{"id":57440157,"uuid":"101261581","full_name":"gusenov/max-empty-rect-py","owner":"gusenov","description":":black_square_button: Реализация на Питоне алгоритма поиска на изображении пустого прямоугольника максимальной площади.","archived":false,"fork":false,"pushed_at":"2017-08-26T11:45:30.000Z","size":74,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-25T02:44:07.475Z","etag":null,"topics":["algorithm","empty-spot","graphics","numpy","python","python-image-library","python-library","rectangle-detection"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/max-empty-rect-py","language":"Python","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/gusenov.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":"2017-08-24T06:27:53.000Z","updated_at":"2019-02-15T08:54:35.000Z","dependencies_parsed_at":"2022-09-19T14:41:46.368Z","dependency_job_id":null,"html_url":"https://github.com/gusenov/max-empty-rect-py","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gusenov/max-empty-rect-py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusenov%2Fmax-empty-rect-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusenov%2Fmax-empty-rect-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusenov%2Fmax-empty-rect-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusenov%2Fmax-empty-rect-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gusenov","download_url":"https://codeload.github.com/gusenov/max-empty-rect-py/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusenov%2Fmax-empty-rect-py/sbom","scorecard":{"id":449939,"data":{"date":"2025-08-11","repo":{"name":"github.com/gusenov/max-empty-rect-py","commit":"9eab11865130bf68320ae50449a8311be06ba3df"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: pipCommand not pinned by hash: publish.sh:36","Warn: pipCommand not pinned by hash: publish.sh:39","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-19T07:57:28.292Z","repository_id":57440157,"created_at":"2025-08-19T07:57:28.292Z","updated_at":"2025-08-19T07:57:28.292Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29150631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T02:39:25.012Z","status":"ssl_error","status_checked_at":"2026-02-06T02:37:22.784Z","response_time":59,"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":["algorithm","empty-spot","graphics","numpy","python","python-image-library","python-library","rectangle-detection"],"created_at":"2024-09-24T20:49:20.982Z","updated_at":"2026-02-06T04:31:52.236Z","avatar_url":"https://github.com/gusenov.png","language":"Python","readme":"# Примеры:\n\n## Пример 1\n\n\u003ckbd\u003e![](tests/input-figure-1.jpg)\u003c/kbd\u003e\n\n```bash\n$ python maxempty/rect.py -i tests/input-figure-1.jpg -o tests/output-figure-1.jpg -f 255,0,0 -e 255,255,255\n(9240, [(1, 40, 55, 207)])\n```\n\n\u003ckbd\u003e![](tests/output-figure-1.jpg)\u003c/kbd\u003e\n\n## Пример 2\n\n\u003ckbd\u003e![](tests/input-figure-2.jpg)\u003c/kbd\u003e\n\n```bash\n$ python maxempty/rect.py --input tests/input-figure-2.jpg --output tests/output-figure-2.jpg --fill 0,255,0 --empty 255,255,255\n(22200, [(23, 208, 207, 327)])\n```\n\n\u003ckbd\u003e![](tests/output-figure-2.jpg)\u003c/kbd\u003e\n\n## Пример 3\n\n\u003ckbd\u003e![](tests/input-figure-3.jpg)\u003c/kbd\u003e\n\n```bash\n$ python maxempty/rect.py -i tests/input-figure-3.jpg -o tests/output-figure-3.jpg -f 0,0,255 -e 255,255,255\n(4032, [(0, 136, 63, 198)])\n```\n\n\u003ckbd\u003e![](tests/output-figure-3.jpg)\u003c/kbd\u003e\n\n## Пример 4\n\n\u003ckbd\u003e![](tests/input-figure-4.jpg)\u003c/kbd\u003e\n\n```bash\n$ python maxempty/rect.py --input tests/input-figure-4.jpg --output tests/output-figure-4.jpg --fill 255,255,0 --busy 0,0,0\n(11236, [(35, 113, 140, 218)])\n```\n\n\u003ckbd\u003e![](tests/output-figure-4.jpg)\u003c/kbd\u003e\n\n## Пример 5\n\n\u003ckbd\u003e![](tests/input-figure-5.png)\u003c/kbd\u003e\n\n```bash\n$ python maxempty/rect.py -i tests/input-figure-5.png -o tests/output-figure-5.png -f 255,0,255 -e 255,255,255\n(81081, [(50, 53, 478, 241)])\n```\n\n\u003ckbd\u003e![](tests/output-figure-5.png)\u003c/kbd\u003e\n\n# Ссылки\n\nLargest empty rectangle:\n\n- [en.wikipedia.org/wiki/Largest_empty_rectangle](https://en.wikipedia.org/wiki/Largest_empty_rectangle)\n- [stackoverflow.com/questions/2478447/find-largest-rectangle-containing-only-zeros-in-an-n×n-binary-matrix](http://stackoverflow.com/a/30418912/2289640)\n\nPython:\n\n- [docs.python.org/3.3/library/stdtypes.html#printf-style-string-formatting](https://docs.python.org/3.3/library/stdtypes.html#printf-style-string-formatting)\n- [stackoverflow.com/questions/6393861/how-python-deals-with-module-and-package-having-the-same-name](https://stackoverflow.com/questions/6393861/how-python-deals-with-module-and-package-having-the-same-name)\n\nPIL:\n\n- [en.wikibooks.org/wiki/Python_Imaging_Library/Editing_Pixels](https://en.wikibooks.org/wiki/Python_Imaging_Library/Editing_Pixels)\n- [stackoverflow.com/questions/8032642/how-to-obtain-image-size-using-standard-python-class-without-using-external-lib](http://stackoverflow.com/a/8033053/2289640)\n- [pillow.readthedocs.io/en/3.4.x/reference/Image.html#PIL.Image.Image.convert](http://pillow.readthedocs.io/en/3.4.x/reference/Image.html#PIL.Image.Image.convert)\n- [stackoverflow.com/questions/12201577/how-can-i-convert-an-rgb-image-into-grayscale-in-python](https://stackoverflow.com/a/12201744/2289640)\n\nNumPy:\n\n- [docs.scipy.org/doc/numpy/reference/generated/numpy.zeros.html](https://docs.scipy.org/doc/numpy/reference/generated/numpy.zeros.html)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgusenov%2Fmax-empty-rect-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgusenov%2Fmax-empty-rect-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgusenov%2Fmax-empty-rect-py/lists"}