{"id":20072446,"url":"https://github.com/yashindane/web-sudoku","last_synced_at":"2025-05-05T20:33:23.276Z","repository":{"id":53254486,"uuid":"370316906","full_name":"YashIndane/web-sudoku","owner":"YashIndane","description":":white_square_button: A flask webapp to solve sudoku from image input","archived":false,"fork":false,"pushed_at":"2022-12-12T09:46:05.000Z","size":836,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-03-05T07:43:14.717Z","etag":null,"topics":["aws-textract","flask"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/YashIndane.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":"2021-05-24T10:42:50.000Z","updated_at":"2023-01-28T11:19:15.000Z","dependencies_parsed_at":"2023-01-27T17:31:12.842Z","dependency_job_id":null,"html_url":"https://github.com/YashIndane/web-sudoku","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YashIndane%2Fweb-sudoku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YashIndane%2Fweb-sudoku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YashIndane%2Fweb-sudoku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YashIndane%2Fweb-sudoku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YashIndane","download_url":"https://codeload.github.com/YashIndane/web-sudoku/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224468387,"owners_count":17316368,"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":["aws-textract","flask"],"created_at":"2024-11-13T14:40:09.416Z","updated_at":"2024-11-13T14:40:10.112Z","avatar_url":"https://github.com/YashIndane.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://img.shields.io/badge/python-3-orange?style=flat-square)\n\n# web-sudoku\nA flask webapp to solve sudoku from image input\n\n![solved1](https://user-images.githubusercontent.com/53041219/207013634-3a80d9ab-0e3d-43d5-a4da-628be5626c9a.png)\n\n[Demo link](https://www.linkedin.com/posts/yash-indane-aa6534179_aws-flask-python-activity-6803238011279548416-jjeQ)\n\n## AWS CLI configuration\n\nHave user ready in AWS with admin and power user access. This user will be used to call the AWS Textract service.\nCreate a S3 bucket in this users account.\n\n# Usage\n\n```\n$ sudo docker run -dit -p \u003cPORT-NO\u003e:1453  --name \u003cNAME\u003e yashindane/websudoku:v1 --aak=\"\u003cAWS_ACCESS_KEY\u003e\" --ask=\"\u003cAWS_SECRET_KEY\u003e\" --region=\"\u003cREGION\u003e\" --bucketname=\"\u003cBUCKET_NAME\u003e\"\n```\n\n# On arm64 v8 machines\n\n```\n$ sudo docker run --platform linux/arm64/v8 -dit -p \u003cPORT-NO\u003e:1453  --name \u003cNAME\u003e yashindane/websudoku:arm64v8 --aak=\"\u003cAWS_ACCESS_KEY\u003e\" --ask=\"\u003cAWS_SECRET_KEY\u003e\" --region=\"\u003cREGION\u003e\" --bucketname=\"\u003cBUCKET_NAME\u003e\"\n```\n\n# On arm64 v8 machines using podman\n\n```\n$ sudo podman run --platform linux/arm64/v8 -dit -p \u003cPORT-NO\u003e:1453  --name \u003cNAME\u003e docker.io/yashindane/websudoku:arm64v8 --aak=\"\u003cAWS_ACCESS_KEY\u003e\" --ask=\"\u003cAWS_SECRET_KEY\u003e\" --region=\"\u003cREGION\u003e\" --bucketname=\"\u003cBUCKET_NAME\u003e\"\n```\n\n## How it works\n\nThe user first clicks a pic of there sudoku board and submits it. The `data_uri` of the image goes to backend `app2.py` script through the form on user click.\nUsing `base64`, `ìo` and `PIL` libraries, the image is saved in the server and then uploaded to `S3` bucket. Now using `AWS Textract`, the digits from the image in bucket are extracted and send back to the `app2.py`. This digits in a double array are fed to the function `sudoku3.solve()`, which returns the solution to the problem. This diits are then rendered on the `output.html` page.\n\nPull requests and new Ideas are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashindane%2Fweb-sudoku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyashindane%2Fweb-sudoku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashindane%2Fweb-sudoku/lists"}