mirror of
https://github.com/gen2brain/cam2ip.git
synced 2025-12-16 04:18:39 +00:00
Move options to file
This commit is contained in:
9
camera/camera.go
Normal file
9
camera/camera.go
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
package camera
|
||||||
|
|
||||||
|
// Options.
|
||||||
|
type Options struct {
|
||||||
|
Index int
|
||||||
|
Rotate int
|
||||||
|
Width float64
|
||||||
|
Height float64
|
||||||
|
}
|
||||||
@@ -11,14 +11,6 @@ import (
|
|||||||
"github.com/gen2brain/go-opencv/opencv"
|
"github.com/gen2brain/go-opencv/opencv"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Options.
|
|
||||||
type Options struct {
|
|
||||||
Index int
|
|
||||||
Rotate int
|
|
||||||
Width float64
|
|
||||||
Height float64
|
|
||||||
}
|
|
||||||
|
|
||||||
// Camera represents camera.
|
// Camera represents camera.
|
||||||
type Camera struct {
|
type Camera struct {
|
||||||
opts Options
|
opts Options
|
||||||
|
|||||||
@@ -11,14 +11,6 @@ import (
|
|||||||
"gocv.io/x/gocv"
|
"gocv.io/x/gocv"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Options.
|
|
||||||
type Options struct {
|
|
||||||
Index int
|
|
||||||
Rotate int
|
|
||||||
Width float64
|
|
||||||
Height float64
|
|
||||||
}
|
|
||||||
|
|
||||||
// Camera represents camera.
|
// Camera represents camera.
|
||||||
type Camera struct {
|
type Camera struct {
|
||||||
opts Options
|
opts Options
|
||||||
|
|||||||
@@ -14,14 +14,6 @@ import (
|
|||||||
im "github.com/gen2brain/cam2ip/image"
|
im "github.com/gen2brain/cam2ip/image"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Options.
|
|
||||||
type Options struct {
|
|
||||||
Index int
|
|
||||||
Rotate int
|
|
||||||
Width float64
|
|
||||||
Height float64
|
|
||||||
}
|
|
||||||
|
|
||||||
// Camera represents camera.
|
// Camera represents camera.
|
||||||
type Camera struct {
|
type Camera struct {
|
||||||
opts Options
|
opts Options
|
||||||
|
|||||||
@@ -13,14 +13,6 @@ import (
|
|||||||
"github.com/disintegration/imaging"
|
"github.com/disintegration/imaging"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Options.
|
|
||||||
type Options struct {
|
|
||||||
Index int
|
|
||||||
Rotate int
|
|
||||||
Width float64
|
|
||||||
Height float64
|
|
||||||
}
|
|
||||||
|
|
||||||
// Camera represents camera.
|
// Camera represents camera.
|
||||||
type Camera struct {
|
type Camera struct {
|
||||||
opts Options
|
opts Options
|
||||||
|
|||||||
Reference in New Issue
Block a user