Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aakashjhawar/SolveSudoku
/ functions
Functions
38 in github.com/aakashjhawar/SolveSudoku
⨍
Functions
38
◇
Types & classes
0
↳
Endpoints
1
↓ 6 callers
Function
output
(a)
sudoku.py:9
↓ 4 callers
Function
distance_between
Returns the scalar distance between two points
SudokuExtractor.py:132
↓ 4 callers
Function
scale
(r, x)
SudokuExtractor.py:200
↓ 4 callers
Function
show_image
Shows an image until any key is pressed
SudokuExtractor.py:18
↓ 2 callers
Function
centre_pad
Handles centering for a given length that may be odd or even.
SudokuExtractor.py:190
↓ 2 callers
Function
convert_when_colour
Dynamically converts an image to colour if the input colour is a tuple and the image is grayscale.
SudokuExtractor.py:40
↓ 2 callers
Function
cut_from_rect
Cuts a rectangle from an image using the top left and bottom right points.
SudokuExtractor.py:181
↓ 2 callers
Function
display_sudoku
(sudoku)
sudoku.py:12
↓ 2 callers
Function
pre_process_image
Uses a blurring function, adaptive thresholding and dilation to expose the main features of an image.
SudokuExtractor.py:83
↓ 1 callers
Function
allowed_file
(filename)
app.py:14
↓ 1 callers
Function
check_location_is_safe
(arr,row,col,num)
SolveSudoku.py:55
↓ 1 callers
Function
crop_and_warp
Crops and warps a rectangular section from an image into a square of similar size.
SudokuExtractor.py:139
↓ 1 callers
Function
extract_digit
Extracts a digit (if one exists) from a Sudoku square.
SudokuExtractor.py:278
↓ 1 callers
Function
extract_number
(sudoku)
NumberExtractor.py:25
↓ 1 callers
Function
extract_sudoku
(image_path)
SudokuExtractor.py:333
↓ 1 callers
Function
find_corners_of_largest_polygon
Finds the 4 extreme corners of the largest contour in the image.
SudokuExtractor.py:105
↓ 1 callers
Function
find_empty_location
(arr,l)
SolveSudoku.py:18
↓ 1 callers
Function
find_largest_feature
Uses the fact the `floodFill` function returns a bounding box of the area it filled to find the biggest connected pixel structure in the image. Fil
SudokuExtractor.py:221
↓ 1 callers
Function
get_digits
Extracts digits from their cells and builds an array
SudokuExtractor.py:301
↓ 1 callers
Function
identify_number
(image)
NumberExtractor.py:17
↓ 1 callers
Function
infer_grid
Infers 81 cell grid from a square image.
SudokuExtractor.py:166
↓ 1 callers
Function
main
(image_path)
sudoku.py:34
↓ 1 callers
Function
parse_grid
(path)
SudokuExtractor.py:311
↓ 1 callers
Function
scale_and_centre
Scales and centres an image onto a new background square.
SudokuExtractor.py:186
↓ 1 callers
Function
show_digits
Shows list of 81 extracted digits in a grid format
SudokuExtractor.py:29
↓ 1 callers
Function
solve_sudoku
(arr)
SolveSudoku.py:64
↓ 1 callers
Function
sudoku_solver
(grid)
SolveSudoku.py:99
↓ 1 callers
Function
used_in_box
(arr,row,col,num)
SolveSudoku.py:45
↓ 1 callers
Function
used_in_col
(arr,col,num)
SolveSudoku.py:37
↓ 1 callers
Function
used_in_row
(arr,row,num)
SolveSudoku.py:29
Function
convert_sec_to_hms
(seconds)
sudoku.py:45
Function
display_contours
Displays contours on the image.
SudokuExtractor.py:76
Function
display_points
Draws circular points on an image.
SudokuExtractor.py:50
Function
display_rects
Displays rectangles on the image.
SudokuExtractor.py:67
Function
plot_many_images
Plots each image in a given list as a grid structure. using Matplotlib.
SudokuExtractor.py:8
Function
print_grid
(arr)
SolveSudoku.py:5
Function
show_image
(image)
sudoku.py:29
Function
upload_file
()
app.py:18