numberImgRecognition/goVersion/main.go
goVersion/main.goRaw
1package main
2
3import "fmt"
4
5func main() {
6 //first, read the example images
7 examplesImg := readExamples()
8 //fmt.Println(examplesImg)
9
10 //now, read the target image
11 timg := readImage("images/test.png")
12 //fmt.Println(timg)
13
14 numCoincidences := analyzeImg(examplesImg, timg)
15 _, result := printSortedMapStringInt(numCoincidences, 0)
16 fmt.Print("The image contains the number: ")
17 c.Green(result)
18 //runServer()
19}