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 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()
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
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
Publish publishes an input frame to the MCP server.
func (*MCPServer) PublishOutput ¶ added in v0.3.0
Publish publishes an output frame to the MCP 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) 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()