Documentation ¶
Overview ¶
MIT License -----------
Copyright (c) 2020 Steve McDaniel ¶
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
MIT License -----------
Copyright (c) 2020 Steve McDaniel ¶
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Index ¶
- func Transcode(input string, output string) error
- type Dnn
- type Frame
- type MotionDetector
- func (v *MotionDetector) Close()
- func (v *MotionDetector) EnableBoxing(enableBoxing bool)
- func (v *MotionDetector) EnableContours(enableCountours bool)
- func (v *MotionDetector) EnableWindow(enableWindow bool)
- func (v *MotionDetector) Init()
- func (v *MotionDetector) Name() string
- func (v *MotionDetector) Run(img gocv.Mat)
- func (v *MotionDetector) SetMinimumArea(minimumArea float64)
- func (v *MotionDetector) SetState(state *event.State)
- type Video
- func (v *Video) Free()
- func (v *Video) GetIsRecording() bool
- func (v *Video) GetSinkFrame() Frame
- func (v *Video) IsSinkPlaying() bool
- func (v *Video) Open(src *VideoSource) bool
- func (v *Video) RegisterVideoChannel(ch chan VideoRecording)
- func (v *Video) RegisterVideoOutput(proc VideoProcessor)
- func (v *Video) ReleaseFrame(frame *Frame)
- func (v *Video) SetState(state *event.State)
- func (v *Video) Start() bool
- func (v *Video) StartProcessors()
- func (v *Video) StartRecording(EventUuid string) bool
- func (v *Video) Stop() bool
- func (v *Video) StopRecording() VideoRecording
- func (v *Video) Transcode(input string, output string) bool
- type VideoProcessor
- type VideoRecording
- type VideoSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dnn ¶
type Dnn struct { DrawBoxes bool // contains filtered or unexported fields }
func (*Dnn) EnableBoxing ¶
func (*Dnn) SetModelPath ¶
type MotionDetector ¶
type MotionDetector struct { MinimumArea float64 DrawBoxes bool DrawContours bool ShowWindow bool // contains filtered or unexported fields }
func NewMotionDetector ¶
func NewMotionDetector() *MotionDetector
func (*MotionDetector) Close ¶
func (v *MotionDetector) Close()
func (*MotionDetector) EnableBoxing ¶
func (v *MotionDetector) EnableBoxing(enableBoxing bool)
func (*MotionDetector) EnableContours ¶
func (v *MotionDetector) EnableContours(enableCountours bool)
func (*MotionDetector) EnableWindow ¶
func (v *MotionDetector) EnableWindow(enableWindow bool)
func (*MotionDetector) Init ¶
func (v *MotionDetector) Init()
func (*MotionDetector) Name ¶
func (v *MotionDetector) Name() string
func (*MotionDetector) Run ¶
func (v *MotionDetector) Run(img gocv.Mat)
func (*MotionDetector) SetMinimumArea ¶
func (v *MotionDetector) SetMinimumArea(minimumArea float64)
func (*MotionDetector) SetState ¶
func (v *MotionDetector) SetState(state *event.State)
type Video ¶
type Video struct { VideoOutput []VideoProcessor RecordingOutput []chan VideoRecording // contains filtered or unexported fields }
func (*Video) GetIsRecording ¶
func (*Video) GetSinkFrame ¶
func (*Video) IsSinkPlaying ¶
func (*Video) Open ¶
func (v *Video) Open(src *VideoSource) bool
func (*Video) RegisterVideoChannel ¶
func (v *Video) RegisterVideoChannel(ch chan VideoRecording)
func (*Video) RegisterVideoOutput ¶
func (v *Video) RegisterVideoOutput(proc VideoProcessor)
func (*Video) ReleaseFrame ¶
func (*Video) StartProcessors ¶
func (v *Video) StartProcessors()
func (*Video) StartRecording ¶
func (*Video) StopRecording ¶
func (v *Video) StopRecording() VideoRecording