You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying for the first time on OSX, and getting an all-black image. Macbook M1 Pro, Sonoma (14.5)
// Mac OSXWebcam.setDriver(NativeDriver())
Webcam.getWebcams().forEach { webcam ->println(webcam)
println("${webcam.viewSizes.joinToString { "${it.size.width}x${it.size.height}" }}")
}
val webcam =Webcam.getDefault()
webcam.open()
repeat(20) {
// warm up, or allow auto-levels
webcam.image
}
val img = webcam.image
println("Image: ${img.width}x${img.height}")
ImageIO.write(img, "PNG", File("hello-world.png"))
webcam.close()
Build with
implementation("com.github.sarxos:webcam-capture:0.3.13-SNAPSHOT")
implementation("org.slf4j:slf4j-api:2.0.12")
implementation("org.slf4j:slf4j-simple:2.0.13")
// Getting it working on Mac OSX
implementation("io.github.eduramiba:webcam-capture-driver-native:1.0.0")
The text was updated successfully, but these errors were encountered:
I'm trying for the first time on OSX, and getting an all-black image. Macbook M1 Pro, Sonoma (14.5)
Build with
The text was updated successfully, but these errors were encountered: