mirror of https://bitbucket.org/ausocean/av.git
22 lines
248 B
Go
22 lines
248 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"gocv.io/x/gocv"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
var flag gocv.IMReadFlag = 0
|
||
|
|
||
|
window := gocv.NewWindow("Test")
|
||
|
img := gocv.IMRead("secci.jpg", flag)
|
||
|
|
||
|
fmt.Print(img.Size())
|
||
|
|
||
|
for {
|
||
|
window.IMShow(img)
|
||
|
window.WaitKey(0)
|
||
|
}
|
||
|
}
|