From 8618ee2a4464382a240618023b4991c096aeeadc Mon Sep 17 00:00:00 2001 From: Russell Stanley Date: Wed, 15 Dec 2021 14:25:14 +1030 Subject: [PATCH] Initial turbidity implementation --- turbidity/turbidity.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 turbidity/turbidity.go diff --git a/turbidity/turbidity.go b/turbidity/turbidity.go new file mode 100644 index 00000000..f7e754fa --- /dev/null +++ b/turbidity/turbidity.go @@ -0,0 +1,21 @@ +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) + } +}