refactor: mv camera package to pkg dir
This commit is contained in:
parent
ddb8aaba28
commit
ca5070ed8b
@ -3,7 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"github.com/cyrilix/robocar-base/cli"
|
"github.com/cyrilix/robocar-base/cli"
|
||||||
"github.com/cyrilix/robocar-camera/camera"
|
"github.com/cyrilix/robocar-camera/pkg/camera"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"gocv.io/x/gocv"
|
"gocv.io/x/gocv"
|
||||||
"log"
|
"log"
|
||||||
|
@ -19,9 +19,9 @@ type VideoSource interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type OpencvCameraPart struct {
|
type OpencvCameraPart struct {
|
||||||
client mqtt.Client
|
client mqtt.Client
|
||||||
vc VideoSource
|
vc VideoSource
|
||||||
topic string
|
topic string
|
||||||
publishFrequency int
|
publishFrequency int
|
||||||
muImgBuffered sync.Mutex
|
muImgBuffered sync.Mutex
|
||||||
imgBuffered *gocv.Mat
|
imgBuffered *gocv.Mat
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Loading…
Reference in New Issue
Block a user