News for hackers. Stuff that matters.

taiters_

Re:Ask HN: What are you working on (August 2024)? on Saturday August 24, 2024 @06:52PM (#41342473)
I dusted off an old project today. It's a browser based CHIP-8 emulator with a built in editor.

https://chip8.dotslashdan.com/

I added the ability to import/export ROMs and finally added some of documentation.

...Plenty bugs left to fix

Thanks for the feedback!

I've recently made a change to try to improve results (Specifically the thresholding step when it's processing the image).

For me it's now finding the grid a bit more consistently, though your mileage may vary.

I've noticed the digit recognition still struggles a bit when looking at a screen though. Perhaps I need to get a bit more data for training the model.

I tried the blur threshold approach you mention in your post, and it's giving much better results!

Great post btw, very detailed.

Nice! Yeah the puzzle detection works really well in your one. I'll need to have a read through your write up to get some pointers.
I've uploaded a quick recording here (Seems Youtube forced it to be a "Short"): https://www.youtube.com/shorts/rdZ25pyqqmA

So ideally it should "solve" a sudoku puzzle when there's one in the frame. Then you can use the snapshot button (taking you to /image) to save and download the solution.

Though if it's not solving it (Which is definitely not uncommon in less than perfect lighting etc), I can see the workflow being unclear.

Yeah that's good idea, thanks for the suggestion. I even went out and bought a puzzle book while building this, so it's definitely not something most people have around.

Show HN: Visual Sudoku Solver in the Browser (With OpenCV and TensorFlow)

https://sudoku.dotslashdan.com/

Hello!I recently wanted to learn a bit about computer vision. Initially, I wanted to build something which could solve a jigsaw puzzle, but figured I should start with something (much) simpler, so I've built this instead.This is a visual Sudoku solver which runs in the browser. It works by using OpenCV to identify and process the Sudoku grid, passing this to a simple ML model to identify the...

( Read More... | 16 comments | 23 points | on HN )

Show HN: Interactive TSP Solver with Genetic Algorithms in Rust and WASM

https://salesman.dotslashdan.com/

I've recently started playing with genetic algorithms, aiming to eventually apply the NEAT algorithm to train some virtual race cars.Before jumping blindly into NEAT, I first tried out the Knapsack problem to learn the basics. After this, I discovered that the TSP is another interesting application. I've also been using this project as a chance to finally explore Rust, and as someone who...

( Read More... | no comments | on HN )