You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What should I write for the webcam video file? Usually it is zero in opencv
Accepts rtsp URL.
using var yolo = new Yolo(new YoloOptions
{
OnnxModel = @"models\besto.onnx", // Path to the YOLO model in ONNX format
ModelType = ModelType.ObjectDetection, // Model type: Object Detection
Cuda = true, // Enable CUDA for GPU inference
GpuId = 0, // Use the first GPU (ID = 0)
PrimeGpu = true // Preallocate GPU resources
});
// Configure video options for webcam
var options = new VideoOptions
{
VideoFile = "",
OutputDir = @"output\webcam_results", // Path to save the output frames and/or processed video
GenerateVideo = false, // Do not save an output video; just process live frames
DrawLabels = true, // Draw detected object labels
FPS = 30, // Target FPS for the display
Width = 1280, // Resize the webcam feed width
Height = 720, // Resize the webcam feed height (maintaining proportions if -2)
Quality = 28, // (Unused for webcam; for completeness)
DrawConfidence = true, // Show confidence scores in the output
KeepAudio = false, // Not applicable for webcam
KeepFrames = false, // Do not save individual processed frames
};
var results = yolo.RunObjectDetection(options, 0.25, 0.
The text was updated successfully, but these errors were encountered:
What should I write for the webcam video file? Usually it is zero in opencv
Accepts rtsp URL.
using var yolo = new Yolo(new YoloOptions
{
OnnxModel = @"models\besto.onnx", // Path to the YOLO model in ONNX format
ModelType = ModelType.ObjectDetection, // Model type: Object Detection
Cuda = true, // Enable CUDA for GPU inference
GpuId = 0, // Use the first GPU (ID = 0)
PrimeGpu = true // Preallocate GPU resources
});
The text was updated successfully, but these errors were encountered: