Documentation ¶
Index ¶
- Variables
- func Create(w http.ResponseWriter, r *http.Request)
- func CreateDefault(userId int)
- func Delete(w http.ResponseWriter, r *http.Request)
- func Init()
- func InitProcessorsMap()
- func List(w http.ResponseWriter, r *http.Request)
- func ListChoices(w http.ResponseWriter, r *http.Request)
- func Retrieve(w http.ResponseWriter, r *http.Request)
- func Run(w http.ResponseWriter, r *http.Request)
- func Update(w http.ResponseWriter, r *http.Request)
- type Closer
- type ContextInitializer
- type Defaulter
- type FrameProcessor
- type FrameReader
- type Initializer
- type ListEntry
- type MapEntry
- type ProcessingChain
- type ProcessingNode
- type Processor
Constants ¶
This section is empty.
Variables ¶
View Source
var ProcessorsList = []ListEntry{ {Key: "stats_fps", Name: "FPS counter", Processor: new(stats.Fps)}, {Key: "input_rtmp", Name: "Read from channel", Processor: new(input.Rtmp)}, {Key: "input_cam", Name: "Read from camera", Processor: new(input.Camera)}, {Key: "output_imshow", Name: "Output to window", Processor: new(output.IMShow)}, {Key: "face_recogniser", Name: "Recognise faces", Processor: new(feature.RecogniseFaces)}, {Key: "label_faces", Name: "Label faces", Processor: new(draw.LabeledBoxes)}, {Key: "rgba_to_bgr", Name: "Color RGBA to BGR", Processor: new(color.RGBAToBGR)}, {Key: "resize", Name: "Resize", Processor: new(transform.Resizer)}, {Key: "cpy_to_ctx", Name: "Copy to context", Processor: new(context.FrameCpyToCtx)}, {Key: "load_from_ctx", Name: "Load from context", Processor: new(context.FrameLoadFromCtx)}, }
Register your processor here
View Source
var ProcessorsMap map[string]MapEntry
Functions ¶
func CreateDefault ¶
func CreateDefault(userId int)
func InitProcessorsMap ¶
func InitProcessorsMap()
func ListChoices ¶
func ListChoices(w http.ResponseWriter, r *http.Request)
Types ¶
type ContextInitializer ¶
type FrameProcessor ¶
type FrameReader ¶
type Initializer ¶
type ProcessingChain ¶
type ProcessingChain struct { UserId int ProcessingNodes []FrameProcessor ChainContext map[string]interface{} }
func (*ProcessingChain) Close ¶
func (o *ProcessingChain) Close() (err error)
func (*ProcessingChain) Init ¶
func (o *ProcessingChain) Init(p *Processor) (err error)
func (*ProcessingChain) Run ¶
func (o *ProcessingChain) Run() (err error)
type ProcessingNode ¶
type Processor ¶
type Processor struct { Id string `json:"id"` OwnerId int `json:"-"` Name string `json:"name"` Nodes []ProcessingNode `json:"nodes"` }
func (*Processor) BeforeInsert ¶
BeforeInsert hook executed before database insert operation.
func (*Processor) BeforeUpdate ¶
BeforeUpdate hook executed before database update operation.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.