Documentation
¶
Index ¶
Constants ¶
View Source
const ( InputTypeFile = "file" // 文件输入 InputTypeVideo = "video" // 视频文件输入 InputTypeCamera = "camera" // 摄像头输入 InputTypeCam = "cam" // 摄像头输入(简写) InputTypeRTSP = "rtsp" // RTSP流输入 InputTypeRTMP = "rtmp" // RTMP流输入 InputTypeScreen = "screen" // 屏幕录制输入 InputTypeDesktop = "desktop" // 桌面录制输入 )
输入源类型常量
Variables ¶
This section is empty.
Functions ¶
func LaunchFyneLiveWindow ¶
func LaunchFyneLiveWindow(detector *yolo.YOLO, videoPath string, options *yolo.DetectionOptions) error
LaunchFyneLiveWindow 启动Fyne实时窗口
Types ¶
type YOLOLiveWindow ¶
type YOLOLiveWindow struct {
// contains filtered or unexported fields
}
YOLOLiveWindow 实时视频播放窗口
func NewYOLOLiveWindow ¶
func NewYOLOLiveWindow(detector *yolo.YOLO, inputType string, inputPath string, options *yolo.DetectionOptions) *YOLOLiveWindow
NewYOLOLiveWindow 创建实时视频播放窗口
func (*YOLOLiveWindow) GetPerformanceMode ¶
func (live *YOLOLiveWindow) GetPerformanceMode() string
GetPerformanceMode 获取当前性能模式
func (*YOLOLiveWindow) Run ¶
func (live *YOLOLiveWindow) Run()
func (*YOLOLiveWindow) SetPerformanceMode ¶
func (live *YOLOLiveWindow) SetPerformanceMode(mode string)
Run 运行窗口 SetPerformanceMode 设置性能模式
Click to show internal directories.
Click to hide internal directories.