mirror of
https://github.com/kerberos-io/agent.git
synced 2026-10-19 17:38:25 +00:00
disable window
This commit is contained in:
+3
-3
@@ -59,7 +59,7 @@ func main() {
|
||||
}
|
||||
defer writer.Close()
|
||||
|
||||
window := gocv.NewWindow("Hello")
|
||||
//window := gocv.NewWindow("Hello")
|
||||
fmt.Printf("Start reading device: %v\n", deviceID)
|
||||
for i := 0; i < 100; i++ {
|
||||
if ok := webcam.Read(&buf); !ok {
|
||||
@@ -71,8 +71,8 @@ func main() {
|
||||
}
|
||||
|
||||
writer.Write(buf)
|
||||
window.IMShow(buf)
|
||||
window.WaitKey(1)
|
||||
//window.IMShow(buf)
|
||||
//window.WaitKey(1)
|
||||
|
||||
fmt.Printf("Read frame %d\n", i+1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user