mirror of
https://github.com/cosyneco/MediaPipe.NET.git
synced 2025-05-17 23:47:16 +08:00

* fix examples (or at least try to) * stuff * Better dispose that * Add video input options because I'm selfish * THIS ONE MOTHERFUCKING FOR LOOP * Remove unnecessary using * Fix osu framework example * Use stable `Google.Protobuf` package * Add options to osu framework example * Use same options on all examples * Add framerate option * Use framerate option Co-authored-by: Speykious <speykious@gmail.com>
27 lines
962 B
C#
27 lines
962 B
C#
// Copyright (c) homuler and The Vignette Authors
|
|
// This file is part of MediaPipe.NET.
|
|
// MediaPipe.NET is licensed under the MIT License. See LICENSE for details.
|
|
|
|
using CommandLine;
|
|
|
|
namespace Mediapipe.Net.Examples.FaceMeshGpu
|
|
{
|
|
public class Options
|
|
{
|
|
[Option('c', "camera", Default = 0, HelpText = "The index of the camera to use")]
|
|
public int CameraIndex { get; set; }
|
|
|
|
[Option('f', "input-format", Default = null, HelpText = "The format of the camera input")]
|
|
public string? InputFormat { get; set; }
|
|
|
|
[Option('r', "fps", Default = null, HelpText = "The framerate of the camera input")]
|
|
public int? Framerate { get; set; }
|
|
|
|
[Option('w', "width", Default = null, HelpText = "The width of the camera input")]
|
|
public int? Width { get; set; }
|
|
|
|
[Option('h', "height", Default = null, HelpText = "The height of the camera input")]
|
|
public int? Height { get; set; }
|
|
}
|
|
}
|