-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add image processing feature to the web app
This commit adds the image processing feature to the web app.The parsing utilize tessaract.js to extract the puzzle from the image. The extracted puzzle is then displayed on the screen and the user can solve it using the app's solver.
- Loading branch information
1 parent
040b956
commit 7818b0f
Showing
10 changed files
with
1,202 additions
and
905 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
body { | ||
font-family: Arial, sans-serif; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
height: 100vh; | ||
margin: 0; | ||
background-color: #f0f0f0; | ||
} | ||
#sudoku-board { | ||
display: grid; | ||
grid-template-columns: repeat(9, 1fr); | ||
grid-template-rows: repeat(9, 1fr); | ||
gap: 1px; | ||
background-color: #333; | ||
margin-top: 20px; | ||
} | ||
.cell { | ||
width: 40px; | ||
height: 40px; | ||
text-align: center; | ||
font-size: 20px; | ||
line-height: 40px; | ||
border: 1px solid #ddd; | ||
background-color: #fff; | ||
} | ||
.actions { | ||
margin-top: 20px; | ||
} | ||
button { | ||
padding: 10px 20px; | ||
font-size: 16px; | ||
} | ||
canvas { | ||
display: none; /* Hidden canvas element for image processing */ | ||
} | ||
img { | ||
max-width: 100%; | ||
height: auto; | ||
margin-top: 20px; | ||
} |
Oops, something went wrong.