Answer the question
In order to leave comments, you need to log in
How to get the color of a pixel?
Hello. I am doing machine learning based on the brain.js library. This library is only able to detect 0,1,-1 and words.
My goal is to teach the neural network to play Minesweeper online browser game. As an option, I can copy the game itself and write a neuron for it. But it’s also not interesting because I want to try it out in some real project. And here is the crux of the matter.
1. I need to get a picture from the screen
2. Make it black and white
Get a block conditionally 5 * 5
3. Determine whether it is more black or white
4. If black then 1 if white 0
And so on until we get the whole picture.
If it's not difficult for you, then attach a site with instructions on a similar topic.
Thanks in advance
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question