Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

316 B
Raw Blame
// docs: test="kotlin"
import ai.cua.sdk.Cua
import ai.cua.sdk.CuaConfig

val guest = Cua.embedded(CuaConfig()).spacesd("http://10.0.0.5:3211", "TOKEN")
val shot = guest.screenshot(null) // PNG by default
guest.click(shot.width.toDouble() / 2, shot.height.toDouble() / 2)
println("${shot.width} ${shot.image.size}")