11/20/2023 0 Comments Sudoku checker![]() OpenCV is written in C++, with bindings for Python and Java. It also has various add-on modules for a range of machine learning techniques, including neural networks. OpenCV was launched in 1999 and has grown to become a popular computer vision toolkit thanks to its extensive set of features. This sudoku solver makes use of various computer vision techniques, all of which rely on the OpenCV library. We’ll look at each of these steps in turn. The solution is merged back into the original image.The perspective transform from (3) is applied to project the solution back onto the image.The populated grid is solved via a Rust-based module.A convolution neural network is used to identify the digits in the 9x9 grid.A (reversed) perspective transform is applied in order to render the grid as a square image.The edges are approximated as contours the sudoku grid should be the largest four-sided contour.Adaptive thresholding is used to locate edges, resulting in a black and white image.In brief, the steps applied to each video frame are as follows: The diagram below neatly illustrates the steps involved in locating a sudoku puzzle in an image, solving the puzzle then rendering the solution back onto the original image: If you’re new to WebAssembly and want to know more about the problem it solves, how it works or what it is, I’d thoroughly recommend Lin Clark’s cartoon guide. This blog post gives a brief overview of the code for this application, which can be found on GitHub. It neatly demonstrates how WebAssembly allows you to write performance-critical web-based applications in a wide range of languages. This project makes use of the WebAssembly build of OpenCV (a C++ computer vision library), Tensorflow (a machine learning library) and a solver written in Rust. Over the past couple of weeks I created an Augmented Reality Suduko solver: This past year I’ve been watching WebAssembly evolve and wanted to create a fun project that allowed me to put it to good use. The Christmas holidays are a great time for pursuing ‘pet’ projects and trying out new things.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |