Move options to file

This commit is contained in:
Milan Nikolic
2019-10-06 03:14:07 +02:00
parent 2628bbefbf
commit 3844a46486
5 changed files with 9 additions and 32 deletions

9
camera/camera.go Normal file
View File

@@ -0,0 +1,9 @@
package camera
// Options.
type Options struct {
Index int
Rotate int
Width float64
Height float64
}

View File

@@ -11,14 +11,6 @@ import (
"github.com/gen2brain/go-opencv/opencv"
)
// Options.
type Options struct {
Index int
Rotate int
Width float64
Height float64
}
// Camera represents camera.
type Camera struct {
opts Options

View File

@@ -11,14 +11,6 @@ import (
"gocv.io/x/gocv"
)
// Options.
type Options struct {
Index int
Rotate int
Width float64
Height float64
}
// Camera represents camera.
type Camera struct {
opts Options

View File

@@ -14,14 +14,6 @@ import (
im "github.com/gen2brain/cam2ip/image"
)
// Options.
type Options struct {
Index int
Rotate int
Width float64
Height float64
}
// Camera represents camera.
type Camera struct {
opts Options

View File

@@ -13,14 +13,6 @@ import (
"github.com/disintegration/imaging"
)
// Options.
type Options struct {
Index int
Rotate int
Width float64
Height float64
}
// Camera represents camera.
type Camera struct {
opts Options