{"id":15196999,"url":"https://github.com/hansalemaos/npchessimage","last_synced_at":"2026-03-05T16:04:35.457Z","repository":{"id":182177993,"uuid":"668077998","full_name":"hansalemaos/npchessimage","owner":"hansalemaos","description":"Creates a chessboard pattern as an image.","archived":false,"fork":false,"pushed_at":"2023-07-19T01:30:14.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-30T11:15:04.698Z","etag":null,"topics":["chessboard","cv2","image","numpy"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/npchessimage/","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/hansalemaos.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}},"created_at":"2023-07-19T01:29:35.000Z","updated_at":"2023-07-19T01:30:46.000Z","dependencies_parsed_at":"2023-07-19T02:03:21.407Z","dependency_job_id":null,"html_url":"https://github.com/hansalemaos/npchessimage","commit_stats":null,"previous_names":["hansalemaos/npchessimage"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hansalemaos/npchessimage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fnpchessimage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fnpchessimage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fnpchessimage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fnpchessimage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hansalemaos","download_url":"https://codeload.github.com/hansalemaos/npchessimage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fnpchessimage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30134591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T15:35:27.018Z","status":"ssl_error","status_checked_at":"2026-03-05T15:35:23.768Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["chessboard","cv2","image","numpy"],"created_at":"2024-09-28T00:22:46.164Z","updated_at":"2026-03-05T16:04:35.421Z","avatar_url":"https://github.com/hansalemaos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Creates a chessboard pattern as an image.\r\n\r\n## pip install npchessimage \r\n\r\n#### Tested against Windows 10 / Python 3.10 / Anaconda \r\n\r\n![](https://github.com/hansalemaos/screenshots/blob/main/testimage.png?raw=true)\r\n\r\n```python\r\n        \r\n\r\n        Args:\r\n            block_size (int, optional): The size of each square block on the chessboard. Defaults to 10.\r\n            width (int, optional): The total width of the chessboard image. Defaults to 1000.\r\n            height (int, optional): The total height of the chessboard image. Defaults to 1000.\r\n            colors (tuple or list, optional): The RGB color values for the chessboard. Defaults to ((0, 0, 0), (255, 0, 0), (255, 255, 0)).\r\n\r\n        Returns:\r\n            numpy.ndarray: The generated chessboard image as a NumPy array.\r\n\r\n        Example:\r\n            from npchessimage import create_chessboard\r\n\r\n            chessboard = create_chessboard(block_size=20, width=800, height=600, colors=((255, 255, 255), (0, 0, 0)))\r\n            print(chessboard.shape)\r\n\r\n            # Output:\r\n            # (600, 800, 3)\r\n\r\n            img = create_chessboard(\r\n                block_size=10,\r\n                width=200,\r\n                height=300,\r\n                colors=((0, 0, 0), (255, 0, 0), (255, 255, 0)),\r\n            )\r\n            import cv2\r\n            cv2.imwrite('c:\\\\testimage.png',img)\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Fnpchessimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansalemaos%2Fnpchessimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Fnpchessimage/lists"}