FigureRecognistionBySimpleMask
Recognizes the shapes in the picture by the mask 🎨 -> 🔣
🚀How to launch
- Download this project and launch in IDE, kotlin jvm
- Configure files in recognistionFigure.local.adapters package for your platform, Java/Android/Native/Korge/...
- Configure file in recognistionFigure.local.figures package for your resources
📱 Image
🔨 Code
fun main() {
println("Enter input file path:")
val inputPath = readLine()!!
val pic = ImageIO.read(File(inputPath))
// .figure starts recognizing and returns enum object
println("This is ${pic.figure.name}")
}
- Samples: https://github.com/yoloroy/FigureRecognistionBySimpleMask/tree/master/src/main/resources/samples
- Masks: https://github.com/yoloroy/FigureRecognistionBySimpleMask/tree/master/src/main/resources/figures
✅TODO
- unite compression and fitting for better work
- move Color to core
- add adapters for different platforms in platform-specific branches