{"id":13826436,"url":"https://github.com/J-Rios/multicolorcaptcha","last_synced_at":"2025-07-09T00:33:47.757Z","repository":{"id":46106972,"uuid":"147964469","full_name":"J-Rios/multicolorcaptcha","owner":"J-Rios","description":"Python random image-captcha generator library.","archived":false,"fork":false,"pushed_at":"2022-12-30T20:17:52.000Z","size":10599,"stargazers_count":76,"open_issues_count":3,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-12T22:49:18.717Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/J-Rios.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":"2018-09-08T19:40:57.000Z","updated_at":"2024-09-22T09:34:30.000Z","dependencies_parsed_at":"2023-01-31T15:45:35.991Z","dependency_job_id":null,"html_url":"https://github.com/J-Rios/multicolorcaptcha","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J-Rios%2Fmulticolorcaptcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J-Rios%2Fmulticolorcaptcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J-Rios%2Fmulticolorcaptcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J-Rios%2Fmulticolorcaptcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/J-Rios","download_url":"https://codeload.github.com/J-Rios/multicolorcaptcha/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225046673,"owners_count":17412499,"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","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":[],"created_at":"2024-08-04T09:01:37.594Z","updated_at":"2024-11-20T05:30:49.186Z","avatar_url":"https://github.com/J-Rios.png","language":"Python","readme":"# multicolorcaptcha\nPython random image-captcha generator library.\n\n## Installation\nTo generate the images of the Captchas, the library uses Pillow module.\n- For Linux systems, it is necessary to install Pillow prerequisites (also, Pillow and PIL cannot co-exist in the same environment. Before installing Pillow, please uninstall PIL):\n```bash\nsudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk\n```\n\n- Install the module\n```bash\npip3 install multicolorcaptcha\n```\n\n## API Usage\n```py\nfrom multicolorcaptcha import CaptchaGenerator\n\n# Captcha image size number (2 -\u003e 640x360)\nCAPCTHA_SIZE_NUM = 2\n\n# Create Captcha Generator object of specified size\ngenerator = CaptchaGenerator(CAPCTHA_SIZE_NUM)\n\n# Generate a captcha image\ncaptcha = generator.gen_captcha_image(difficult_level=3)\nmath_captcha = generator.gen_math_captcha_image(difficult_level=2)\n\n# Get information of standard captcha\nimage = captcha.image\ncharacters = captcha.characters\n\n# Get information of math captcha\nmath_image = math_captcha.image\nmath_equation_string = math_captcha.equation_str\nmath_equation_result = math_captcha.equation_result\n\n# Save the images to files\nimage.save(\"captcha.png\", \"png\")\nmath_image.save(\"captcha.png\", \"png\")\n```\n\n## Generated Captchas Examples\n\n### Monocolor Background Captchas\n![Monocolor Captcha](https://github.com/J-Rios/multicolorcaptcha/raw/master/images/Monocolor_Background.png)\n\n### Multicolor Background Captchas\n![Multicolor Captcha](https://github.com/J-Rios/multicolorcaptcha/raw/master/images/Multicolor_Background.png)\n\n### ASCII Captchas\n![Multicolor Captcha](https://github.com/J-Rios/multicolorcaptcha/raw/master/images/Ascii.png)\n\n### Modificable Difficult Level Captchas\n![Multicolor Captcha](https://github.com/J-Rios/multicolorcaptcha/raw/master/images/Max_Complex.png)\n\n### Math Equation Captchas\n![Math Captcha](https://github.com/J-Rios/multicolorcaptcha/raw/master/images/Math.png)\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJ-Rios%2Fmulticolorcaptcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJ-Rios%2Fmulticolorcaptcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJ-Rios%2Fmulticolorcaptcha/lists"}