engine

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileWriter added in v0.4.0

type FileWriter interface {
	Close()
	Write(*cv.Frame) error
	Start(capture.Capture) error
}

type ImageWriter added in v0.4.0

type ImageWriter struct {
	Filename string
	// contains filtered or unexported fields
}

ImageWriter represents a file writer used for saving image frames

func NewImageWriter added in v0.4.0

func NewImageWriter(refs *runtime.MapRefs, dest string) *ImageWriter

func (*ImageWriter) Close added in v0.4.0

func (iw *ImageWriter) Close()

func (*ImageWriter) Start added in v0.4.0

func (iw *ImageWriter) Start(source capture.Capture) error

func (*ImageWriter) Write added in v0.4.0

func (iw *ImageWriter) Write(img *cv.Frame) error

type MCPServer added in v0.3.0

type MCPServer struct {
	Port string
	// contains filtered or unexported fields
}

MCPServer represents a MCP server currently providing a resource of the frames being processed by wasmVision.

func NewMCPServer added in v0.3.0

func NewMCPServer(port string) *MCPServer

NewMCPServer creates a new MCPServer instance with the given port.

func (*MCPServer) Close added in v0.3.0

func (s *MCPServer) Close()

Close closes the MCPServer server.

func (*MCPServer) PublishInput added in v0.3.0

func (s *MCPServer) PublishInput(frm *cv.Frame) error

Publish publishes an input frame to the MCP server.

func (*MCPServer) PublishOutput added in v0.3.0

func (s *MCPServer) PublishOutput(frm *cv.Frame) error

Publish publishes an output frame to the MCP server.

func (*MCPServer) Start added in v0.3.0

func (s *MCPServer) Start() error

Start starts the NewMCPServer server.

type MJPEGStream

type MJPEGStream struct {
	Port string
	// contains filtered or unexported fields
}

MJPEGStream represents a Motion JPEG stream used for video streaming display of whatever frames are being processed by wasmVision.

func NewMJPEGStream

func NewMJPEGStream(refs *runtime.MapRefs, port string) *MJPEGStream

NewMJPEGStream creates a new MJPEGStream instance with the given port.

func (*MJPEGStream) Close

func (s *MJPEGStream) Close()

Close closes the MJPEG stream.

func (*MJPEGStream) Publish

func (s *MJPEGStream) Publish(frm *cv.Frame) error

Publish publishes a frame to the MJPEG stream.

func (*MJPEGStream) Start

func (s *MJPEGStream) Start() error

Start starts the MJPEG stream server.

type VideoWriter

type VideoWriter struct {
	Filename string
	// contains filtered or unexported fields
}

VideoWriter represents a file writer used for saving video frames

func NewVideoWriter

func NewVideoWriter(refs *runtime.MapRefs, dest string) *VideoWriter

func (*VideoWriter) Close

func (vw *VideoWriter) Close()

func (*VideoWriter) Start

func (vw *VideoWriter) Start(source capture.Capture) error

func (*VideoWriter) Write

func (vw *VideoWriter) Write(img *cv.Frame) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL