我做了一个 uni 项目,我需要在其中为我的程序创建一个模块,它将执行以下操作:
data class ImageBoard(val cells: List<List<Cell>>)
data class Cell(var isPainted: Boolean) {
fun reverseState() {
this.isPainted = !isPainted
}
}
ImageBoard 对象中的每个 Cell 应该有 isPainted = true 如果绘图上的类似单元格是黑色(涂漆)和 isPainted = false - 如果没有涂漆。
什么库最适合我的任务?如果您能向我提供如何将所需库安装到我的项目中的说明,我将不胜感激。我正在为我的项目使用 Maven。
我试过使用 OpenCV 库,但我不确定它是否符合我的目的。