MCPcopy Create free account

hub / github.com/aakashjhawar/SolveSudoku / functions

Functions38 in github.com/aakashjhawar/SolveSudoku

↓ 6 callersFunctionoutput
(a)
sudoku.py:9
↓ 4 callersFunctiondistance_between
Returns the scalar distance between two points
SudokuExtractor.py:132
↓ 4 callersFunctionscale
(r, x)
SudokuExtractor.py:200
↓ 4 callersFunctionshow_image
Shows an image until any key is pressed
SudokuExtractor.py:18
↓ 2 callersFunctioncentre_pad
Handles centering for a given length that may be odd or even.
SudokuExtractor.py:190
↓ 2 callersFunctionconvert_when_colour
Dynamically converts an image to colour if the input colour is a tuple and the image is grayscale.
SudokuExtractor.py:40
↓ 2 callersFunctioncut_from_rect
Cuts a rectangle from an image using the top left and bottom right points.
SudokuExtractor.py:181
↓ 2 callersFunctiondisplay_sudoku
(sudoku)
sudoku.py:12
↓ 2 callersFunctionpre_process_image
Uses a blurring function, adaptive thresholding and dilation to expose the main features of an image.
SudokuExtractor.py:83
↓ 1 callersFunctionallowed_file
(filename)
app.py:14
↓ 1 callersFunctioncheck_location_is_safe
(arr,row,col,num)
SolveSudoku.py:55
↓ 1 callersFunctioncrop_and_warp
Crops and warps a rectangular section from an image into a square of similar size.
SudokuExtractor.py:139
↓ 1 callersFunctionextract_digit
Extracts a digit (if one exists) from a Sudoku square.
SudokuExtractor.py:278
↓ 1 callersFunctionextract_number
(sudoku)
NumberExtractor.py:25
↓ 1 callersFunctionextract_sudoku
(image_path)
SudokuExtractor.py:333
↓ 1 callersFunctionfind_corners_of_largest_polygon
Finds the 4 extreme corners of the largest contour in the image.
SudokuExtractor.py:105
↓ 1 callersFunctionfind_empty_location
(arr,l)
SolveSudoku.py:18
↓ 1 callersFunctionfind_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 callersFunctionget_digits
Extracts digits from their cells and builds an array
SudokuExtractor.py:301
↓ 1 callersFunctionidentify_number
(image)
NumberExtractor.py:17
↓ 1 callersFunctioninfer_grid
Infers 81 cell grid from a square image.
SudokuExtractor.py:166
↓ 1 callersFunctionmain
(image_path)
sudoku.py:34
↓ 1 callersFunctionparse_grid
(path)
SudokuExtractor.py:311
↓ 1 callersFunctionscale_and_centre
Scales and centres an image onto a new background square.
SudokuExtractor.py:186
↓ 1 callersFunctionshow_digits
Shows list of 81 extracted digits in a grid format
SudokuExtractor.py:29
↓ 1 callersFunctionsolve_sudoku
(arr)
SolveSudoku.py:64
↓ 1 callersFunctionsudoku_solver
(grid)
SolveSudoku.py:99
↓ 1 callersFunctionused_in_box
(arr,row,col,num)
SolveSudoku.py:45
↓ 1 callersFunctionused_in_col
(arr,col,num)
SolveSudoku.py:37
↓ 1 callersFunctionused_in_row
(arr,row,num)
SolveSudoku.py:29
Functionconvert_sec_to_hms
(seconds)
sudoku.py:45
Functiondisplay_contours
Displays contours on the image.
SudokuExtractor.py:76
Functiondisplay_points
Draws circular points on an image.
SudokuExtractor.py:50
Functiondisplay_rects
Displays rectangles on the image.
SudokuExtractor.py:67
Functionplot_many_images
Plots each image in a given list as a grid structure. using Matplotlib.
SudokuExtractor.py:8
Functionprint_grid
(arr)
SolveSudoku.py:5
Functionshow_image
(image)
sudoku.py:29
Functionupload_file
()
app.py:18