{"id":21983063,"url":"https://github.com/arsho/local_binary_patterns","last_synced_at":"2025-10-04T22:39:22.569Z","repository":{"id":79174257,"uuid":"83581378","full_name":"arsho/local_binary_patterns","owner":"arsho","description":"Local Binary Patterns implementation using Python3 and OpenCV","archived":false,"fork":false,"pushed_at":"2017-03-03T13:53:35.000Z","size":1390,"stargazers_count":90,"open_issues_count":0,"forks_count":35,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-30T05:48:00.327Z","etag":null,"topics":["lbp","localbinarypatterns","opencv-python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arsho.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-03-01T17:22:24.000Z","updated_at":"2025-03-19T10:18:34.000Z","dependencies_parsed_at":"2023-05-04T10:48:06.521Z","dependency_job_id":null,"html_url":"https://github.com/arsho/local_binary_patterns","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arsho/local_binary_patterns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsho%2Flocal_binary_patterns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsho%2Flocal_binary_patterns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsho%2Flocal_binary_patterns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsho%2Flocal_binary_patterns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arsho","download_url":"https://codeload.github.com/arsho/local_binary_patterns/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsho%2Flocal_binary_patterns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278386122,"owners_count":25978109,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"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":["lbp","localbinarypatterns","opencv-python"],"created_at":"2024-11-29T17:34:19.204Z","updated_at":"2025-10-04T22:39:22.541Z","avatar_url":"https://github.com/arsho.png","language":"Python","readme":"# Local Binary Patterns implementation using Python 3\n\n`Local Binary Pattern (LBP)` is a simple yet very efficient texture operator which labels the pixels of an image by thresholding the neighborhood of each pixel and considers the result as a binary number. \n[Click here to learn more.](http://www.scholarpedia.org/article/Local_Binary_Patterns \"Local Binary Pattern (LBP)\")\n\nMoreover, I also added a pattern code for two bins only to compare the result of LBP and two bin pattern.\n\n## Packages Used\nThe program is coded using Windows 10 (64 bit) operating system with Python version 3.5.2.\n\nThe following packages are necessary to run the program:\n\nPackage | Version | Installation\n--- | --- | ---\n**OpenCV** | 3.2.0 | `pip install opencv-python`\n**Numpy** | 1.11.3 | `pip install numpy`\n**Matplotlib** | 1.5.3 | `pip install matplotlib`\n\n## Image Used\n![alt Lena Söderberg](https://raw.githubusercontent.com/arsho/local_binary_patterns/master/lenna.jpg)\n* [Click to download original image of Lena Söderberg](https://raw.githubusercontent.com/arsho/local_binary_patterns/master/lenna.jpg \"Lena Söderberg\")\n\n### Output of `lbp.py`\nThe output consists of the gray scale image, LBP representation image and LBP histogram.\n![alt output of lbp](https://raw.githubusercontent.com/arsho/local_binary_patterns/master/screenshot/lbp_output.png)\n\n### Output of `two_bin.py`\nThe output consists of the gray scale image, Two Bin representation image and Two Bin histogram.\n![alt output of lbp](https://raw.githubusercontent.com/arsho/local_binary_patterns/master/screenshot/two_bin_output.png)\n\n### References\n* [Local Binary Patterns with Python \u0026 OpenCV](http://www.pyimagesearch.com/2015/12/07/local-binary-patterns-with-python-opencv/ \"Local Binary Patterns with Python \u0026 OpenCV\")\n* [Local Binary Patterns Wiki](https://en.wikipedia.org/wiki/Local_binary_patterns \"Local Binary Patterns Wiki\")\n\n***\n\n### Feel free to contribute for improvement.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farsho%2Flocal_binary_patterns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farsho%2Flocal_binary_patterns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farsho%2Flocal_binary_patterns/lists"}