Documentation ¶
Index ¶
Constants ¶
View Source
const ( StreamRegion string = "region" StreamThresholded string = "thresholded" StreamOriginal string = "original" )
These constants define what streams are supported on this Processor.
StreamRegion - matched region frame StreamThresholded - full frame that is thresholded StreamOriginal - original frame, as it came from device
View Source
const ( SettingAutonomicRun string = "auto" SettingRegionIsSet string = "regionSet" SettingDangerScore string = "dangerScore" )
There are the settings that are settable for this Processor
SettingAutonomicRun - enables the auto-coating feature
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FrameProcessor ¶
type FrameProcessor struct { Processor // contains filtered or unexported fields }
FrameProcessor Defines a processor for incoming frames of the stream
func NewFrameProcessor ¶
func NewFrameProcessor() *FrameProcessor
NewFrameProcessor Creates a frame processor with given settings
func (*FrameProcessor) Get ¶
func (fp *FrameProcessor) Get(id string) int32
func (*FrameProcessor) Launch ¶
func (fp *FrameProcessor) Launch(frames <-chan device.Frame, streamHandlers map[string]func(image.Image))
Launch starts a processing goroutine for the stream of frames coming from a device
func (*FrameProcessor) Set ¶
func (fp *FrameProcessor) Set(id string, value interface{})
Set the configurables on this Processor
type Processor ¶
type Processor interface { // Launch starts an asynchronious processing goroutine and returns all requested frames of processing Launch(<-chan struct{}, map[string]func(image.Image)) // Set certain parameters about the Processor Set(string, interface{}) error }
Processor is a channel (in this case - frame) processing struct and collection of functions
Click to show internal directories.
Click to hide internal directories.