{"id":37708992,"url":"https://github.com/manuelaguadomtz/pythreshold","last_synced_at":"2026-01-16T13:13:41.096Z","repository":{"id":44454479,"uuid":"146455749","full_name":"manuelaguadomtz/pythreshold","owner":"manuelaguadomtz","description":"PyThreshold is a python package featuring Numpy/Scipy implementations of state-of-the-art image thresholding algorithms.","archived":false,"fork":false,"pushed_at":"2022-08-28T12:40:34.000Z","size":89,"stargazers_count":57,"open_issues_count":9,"forks_count":19,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-22T21:33:35.853Z","etag":null,"topics":["image-processing","image-th"],"latest_commit_sha":null,"homepage":"","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/manuelaguadomtz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-28T13:58:18.000Z","updated_at":"2025-09-14T12:30:23.000Z","dependencies_parsed_at":"2022-09-07T03:41:34.980Z","dependency_job_id":null,"html_url":"https://github.com/manuelaguadomtz/pythreshold","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/manuelaguadomtz/pythreshold","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelaguadomtz%2Fpythreshold","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelaguadomtz%2Fpythreshold/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelaguadomtz%2Fpythreshold/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelaguadomtz%2Fpythreshold/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manuelaguadomtz","download_url":"https://codeload.github.com/manuelaguadomtz/pythreshold/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelaguadomtz%2Fpythreshold/sbom","scorecard":{"id":615843,"data":{"date":"2025-08-11","repo":{"name":"github.com/manuelaguadomtz/pythreshold","commit":"135e42fb4be1ff4d4c52ea05daca84be1acaa0fc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"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":"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/30 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":"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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":"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":"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":"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-21T03:55:03.047Z","repository_id":44454479,"created_at":"2025-08-21T03:55:03.047Z","updated_at":"2025-08-21T03:55:03.047Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":["image-processing","image-th"],"created_at":"2026-01-16T13:13:40.476Z","updated_at":"2026-01-16T13:13:41.091Z","avatar_url":"https://github.com/manuelaguadomtz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyThreshold\n\n**PyThreshold** is a python package featuring Numpy/Scipy implementations of state-of-the-art image thresholding algorithms.\n\n## Installing\n\n**PyThreshold** can be easily installed by typing the following command\n\n    pip install pythreshold\n\n## Usage\n\n    from pythreshold.utils import test_thresholds\n    from scipy.misc import ascent\n\n    # Testing all the included thresholding algorithms\n    test_thresholds()\n\n    # Testing all the included thresholding algorithms using a custom image\n    img = ascent()\n    test_thresholds(img)\n\nOr just type in a terminal:\n\n    pythreshold -i /path/to/input/image -o /output/directory/for/thresholded/images\n\n## Included Algorithms\n\n* Global thresholding\n    * Parker, J. R. (2010). Algorithms for image processing and\n      computer vision. John Wiley \u0026 Sons. (**Two peaks**)\n    * Parker, J. R. (2010). Algorithms for image processing and\n      computer vision. John Wiley \u0026 Sons. (**p-tile**)\n    * Otsu, Nobuyuki. \"A threshold selection method from gray-level\n      histograms.\" IEEE transactions on systems, man, and cybernetics\n      9.1 (1979): 62-66.\n    * Kittler, J. and J. Illingworth. \"On Threshold Selection Using Clustering\n      Criteria,\"\" IEEE Transactions on Systems, Man, and Cybernetics 15, no. 5\n      (1985): 652–655.\n    * Entropy thresholding\n        * Johannsen, G., and J. Bille \"A Threshold Selection Method Using\n          Information Measures,\"\" Proceedings of the Sixth International Conference\n          on Pattern Recognition, Munich, Germany (1982): 140–143.\n        * Kapur, J. N., P. K. Sahoo, and A. K. C.Wong. \"A New Method for Gray-Level\n          Picture Thresholding Using the Entropy of the Histogram,\"\" Computer Vision,\n          Graphics, and Image Processing 29, no. 3 (1985): 273–285.\n        * Pun, T. \"A New Method for Grey-Level Picture Thresholding Using the\n          Entropy of the Histogram,\"\" Signal Processing 2, no. 3 (1980): 223–237.\n* Global thresholding (Multi-threshold)\n    * Liao, Ping-Sung, Tse-Sheng Chen, and Pau-Choo Chung. \"A fast algorithm\n      for multilevel thresholding.\" J. Inf. Sci. Eng. 17.5 (2001): 713-727.\n    * Entropy thresholding\n        * Kapur, J. N., P. K. Sahoo, and A. K. C.Wong. \"A New Method for Gray-Level\n          Picture Thresholding Using the Entropy of the Histogram,\"\" Computer Vision,\n          Graphics, and Image Processing 29, no. 3 (1985): 273–285.\n* Local thresholding\n    * Bernsen, J (1986), \"Dynamic Thresholding of Grey-Level Images\",\n      Proc. of the 8th Int. Conf. on Pattern Recognition\n    * Bradley, D., \u0026 Roth, G. (2007). Adaptive thresholding\n      using the integral image. Journal of Graphics Tools, 12(2), 13-21.\n    * Parker, J. R. (2010). Algorithms for image processing and\n      computer vision. John Wiley \u0026 Sons. (**Contrast thresholding**)\n    * Meng-Ling Feng and Yap-Peng Tan, \"Contrast adaptive thresholding of\n      low quality document images\", IEICE Electron. Express, Vol. 1, No.\n      16, pp.501-506, (2004).\n    * Parker, J. R. (2010). Algorithms for image processing and\n      computer vision. John Wiley \u0026 Sons. (**Local mean thresholding**)\n    * Niblack, W.: \"An introduction to digital image\n      processing\" (Prentice- Hall, Englewood Cliffs, NJ, 1986), pp. 115–116\n    * Sauvola, J., Seppanen, T., Haapakoski, S., and Pietikainen, M.:\n      \"Adaptive document thresholding\". Proc. 4th Int. Conf. on Document\n      Analysis and Recognition, Ulm Germany, 1997, pp. 147–152.\n    * Singh, O. I., Sinam, T., James, O., \u0026 Singh, T. R. (2012). Local contrast\n      and mean based thresholding technique in image binarization. International\n      Journal of Computer Applications, 51, 5-10.\n    * C. Wolf, J-M. Jolion, \"Extraction and Recognition of Artificial Text in\n      Multimedia Documents\", Pattern Analysis and Applications, 6(4):309-326, (2003).\n\n\n## Additional Information\n\nDo you find **PyThreshold** useful? You can collaborate with us:\n\n[GitHub](https://github.com/manuelaguadomtz/pythreshold)\n\nAdditional materials and information can be found at:\n\n[ResearchGate](https://www.researchgate.net/project/Numpy-Scipy-implementations-of-image-thresholding-algorithms\u003e)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuelaguadomtz%2Fpythreshold","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanuelaguadomtz%2Fpythreshold","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuelaguadomtz%2Fpythreshold/lists"}