{"id":16353448,"url":"https://github.com/veritasv/python-mosaic","last_synced_at":"2025-11-25T04:30:39.519Z","repository":{"id":167945653,"uuid":"643567111","full_name":"VeritasV/python-mosaic","owner":"VeritasV","description":"Python implementation of a mosaic generator. A photomosaic is a large image composed of smaller tile images","archived":false,"fork":false,"pushed_at":"2023-05-21T15:38:41.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-20T09:38:01.891Z","etag":null,"topics":["image-processing","image-segmentation","mosaic","mosaic-images","photomosaic","photomosaic-generator","python","python3"],"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/VeritasV.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":"2023-05-21T15:16:13.000Z","updated_at":"2023-12-26T10:45:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"48b78033-936f-4acb-9194-5c48e91c0d81","html_url":"https://github.com/VeritasV/python-mosaic","commit_stats":null,"previous_names":["veritasv/python-mosaic"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VeritasV/python-mosaic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeritasV%2Fpython-mosaic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeritasV%2Fpython-mosaic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeritasV%2Fpython-mosaic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeritasV%2Fpython-mosaic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VeritasV","download_url":"https://codeload.github.com/VeritasV/python-mosaic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeritasV%2Fpython-mosaic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"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-11-25T02:00:05.816Z","response_time":54,"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":["image-processing","image-segmentation","mosaic","mosaic-images","photomosaic","photomosaic-generator","python","python3"],"created_at":"2024-10-11T01:29:37.593Z","updated_at":"2025-11-25T04:30:39.496Z","avatar_url":"https://github.com/VeritasV.png","language":"Python","funding_links":["https://www.buymeacoffee.com/UH0mejbw8U"],"categories":[],"sub_categories":[],"readme":"# Photomosaic Generator\n\nThis repository contains a Python implementation of a photomosaic generator. A photomosaic is a large image composed of smaller tile images. This project allows you to create your own photomosaic using a base image and a directory of tile images.\n\n## How it Works\n\nThe photomosaic generator works by first calculating the average color of each tile image and the corresponding region in the base image. It then uses a K-D tree, an efficient data structure for nearest-neighbor searches, to find the tile image that most closely matches the color of each region in the base image. The result is a mosaic image that closely resembles the original base image.\n\n## Requirements\n\n- Python 3.7 or above\n- NumPy\n- OpenCV\n- scikit-learn\n- colorspacious\n\nTo install these packages, run:\n\n```sh\npip install numpy opencv-python scikit-learn colorspacious\n```\n\n## Usage\n\n1. Clone the repository:\n\n```sh\ngit clone https://github.com/VeritasV/python-mosaic.git\n```\n\n2. Navigate to the repository directory:\n\n```sh\ncd python-mosaic\n```\n\n3. Place your base image in the repository directory and name it target.png\n4. Create a tiles directory in the repository and place your tile images inside it.\n5. Run the script:\n\n```sh\npython main.py\n```\n\n5. The resulting mosaic image will be saved in the current directory.\n\n## Contributing\n\nYour contributions are always welcome! Please create a pull request to add new algorithms, improve the current implementation, or fix bugs.\n\n## Support\n\nIf you find this project helpful or interesting, please consider supporting me on [BuyMeACoffee](https://www.buymeacoffee.com/UH0mejbw8U).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveritasv%2Fpython-mosaic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveritasv%2Fpython-mosaic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveritasv%2Fpython-mosaic/lists"}