Wes xx mediapipe integration
This commit is contained in:
@@ -0,0 +1,550 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/annotation_overlay_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/annotation_overlay_calculator.proto</summary>
|
||||
public static partial class AnnotationOverlayCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/annotation_overlay_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static AnnotationOverlayCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Cj5tZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9hbm5vdGF0aW9uX292ZXJs",
|
||||
"YXlfY2FsY3VsYXRvci5wcm90bxIJbWVkaWFwaXBlGiRtZWRpYXBpcGUvZnJh",
|
||||
"bWV3b3JrL2NhbGN1bGF0b3IucHJvdG8aGm1lZGlhcGlwZS91dGlsL2NvbG9y",
|
||||
"LnByb3RvItICCiJBbm5vdGF0aW9uT3ZlcmxheUNhbGN1bGF0b3JPcHRpb25z",
|
||||
"Eh0KD2NhbnZhc193aWR0aF9weBgCIAEoBToEMTkyMBIeChBjYW52YXNfaGVp",
|
||||
"Z2h0X3B4GAMgASgFOgQxMDgwEiYKDGNhbnZhc19jb2xvchgEIAEoCzIQLm1l",
|
||||
"ZGlhcGlwZS5Db2xvchIjChRmbGlwX3RleHRfdmVydGljYWxseRgFIAEoCDoF",
|
||||
"ZmFsc2USJgoYZ3B1X3VzZXNfdG9wX2xlZnRfb3JpZ2luGAYgASgIOgR0cnVl",
|
||||
"EhsKEGdwdV9zY2FsZV9mYWN0b3IYByABKAI6ATEyWwoDZXh0EhwubWVkaWFw",
|
||||
"aXBlLkNhbGN1bGF0b3JPcHRpb25zGIfwv3cgASgLMi0ubWVkaWFwaXBlLkFu",
|
||||
"bm90YXRpb25PdmVybGF5Q2FsY3VsYXRvck9wdGlvbnM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, global::Mediapipe.ColorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.AnnotationOverlayCalculatorOptions), global::Mediapipe.AnnotationOverlayCalculatorOptions.Parser, new[]{ "CanvasWidthPx", "CanvasHeightPx", "CanvasColor", "FlipTextVertically", "GpuUsesTopLeftOrigin", "GpuScaleFactor" }, null, null, new pb::Extension[] { global::Mediapipe.AnnotationOverlayCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
/// <summary>
|
||||
/// Options for the AnnotationOverlayCalculator.
|
||||
/// </summary>
|
||||
public sealed partial class AnnotationOverlayCalculatorOptions : pb::IMessage<AnnotationOverlayCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<AnnotationOverlayCalculatorOptions> _parser = new pb::MessageParser<AnnotationOverlayCalculatorOptions>(() => new AnnotationOverlayCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<AnnotationOverlayCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.AnnotationOverlayCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public AnnotationOverlayCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public AnnotationOverlayCalculatorOptions(AnnotationOverlayCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
canvasWidthPx_ = other.canvasWidthPx_;
|
||||
canvasHeightPx_ = other.canvasHeightPx_;
|
||||
canvasColor_ = other.canvasColor_ != null ? other.canvasColor_.Clone() : null;
|
||||
flipTextVertically_ = other.flipTextVertically_;
|
||||
gpuUsesTopLeftOrigin_ = other.gpuUsesTopLeftOrigin_;
|
||||
gpuScaleFactor_ = other.gpuScaleFactor_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public AnnotationOverlayCalculatorOptions Clone() {
|
||||
return new AnnotationOverlayCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "canvas_width_px" field.</summary>
|
||||
public const int CanvasWidthPxFieldNumber = 2;
|
||||
private readonly static int CanvasWidthPxDefaultValue = 1920;
|
||||
|
||||
private int canvasWidthPx_;
|
||||
/// <summary>
|
||||
/// The canvas width and height in pixels, and the background color. These
|
||||
/// options are used only if an input stream of ImageFrame isn't provided to
|
||||
/// the renderer calculator. If an input stream of ImageFrame is provided, then
|
||||
/// the calculator renders the annotations on top of the provided image, else a
|
||||
/// canvas is created with the dimensions and background color specified in
|
||||
/// these options and the annotations are rendered on top of this canvas.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CanvasWidthPx {
|
||||
get { if ((_hasBits0 & 1) != 0) { return canvasWidthPx_; } else { return CanvasWidthPxDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
canvasWidthPx_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "canvas_width_px" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasCanvasWidthPx {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "canvas_width_px" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearCanvasWidthPx() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "canvas_height_px" field.</summary>
|
||||
public const int CanvasHeightPxFieldNumber = 3;
|
||||
private readonly static int CanvasHeightPxDefaultValue = 1080;
|
||||
|
||||
private int canvasHeightPx_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CanvasHeightPx {
|
||||
get { if ((_hasBits0 & 2) != 0) { return canvasHeightPx_; } else { return CanvasHeightPxDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
canvasHeightPx_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "canvas_height_px" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasCanvasHeightPx {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "canvas_height_px" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearCanvasHeightPx() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "canvas_color" field.</summary>
|
||||
public const int CanvasColorFieldNumber = 4;
|
||||
private global::Mediapipe.Color canvasColor_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.Color CanvasColor {
|
||||
get { return canvasColor_; }
|
||||
set {
|
||||
canvasColor_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "flip_text_vertically" field.</summary>
|
||||
public const int FlipTextVerticallyFieldNumber = 5;
|
||||
private readonly static bool FlipTextVerticallyDefaultValue = false;
|
||||
|
||||
private bool flipTextVertically_;
|
||||
/// <summary>
|
||||
/// Whether text should be rendered upside down. When it's set to false, text
|
||||
/// is rendered normally assuming the underlying image has its origin at the
|
||||
/// top-left corner. Therefore, for images with the origin at the bottom-left
|
||||
/// corner this should be set to true.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool FlipTextVertically {
|
||||
get { if ((_hasBits0 & 4) != 0) { return flipTextVertically_; } else { return FlipTextVerticallyDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
flipTextVertically_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "flip_text_vertically" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasFlipTextVertically {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "flip_text_vertically" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearFlipTextVertically() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "gpu_uses_top_left_origin" field.</summary>
|
||||
public const int GpuUsesTopLeftOriginFieldNumber = 6;
|
||||
private readonly static bool GpuUsesTopLeftOriginDefaultValue = true;
|
||||
|
||||
private bool gpuUsesTopLeftOrigin_;
|
||||
/// <summary>
|
||||
/// Whether input stream IMAGE_GPU (OpenGL texture) has bottom-left or top-left
|
||||
/// origin. (Historically, OpenGL uses bottom left origin, but most MediaPipe
|
||||
/// examples expect textures to have top-left origin.)
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool GpuUsesTopLeftOrigin {
|
||||
get { if ((_hasBits0 & 8) != 0) { return gpuUsesTopLeftOrigin_; } else { return GpuUsesTopLeftOriginDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
gpuUsesTopLeftOrigin_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "gpu_uses_top_left_origin" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasGpuUsesTopLeftOrigin {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "gpu_uses_top_left_origin" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearGpuUsesTopLeftOrigin() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "gpu_scale_factor" field.</summary>
|
||||
public const int GpuScaleFactorFieldNumber = 7;
|
||||
private readonly static float GpuScaleFactorDefaultValue = 1F;
|
||||
|
||||
private float gpuScaleFactor_;
|
||||
/// <summary>
|
||||
/// Scale factor for intermediate image for GPU rendering.
|
||||
/// This can be used to speed up annotation by drawing the annotation on an
|
||||
/// intermediate image with a reduced scale, e.g. 0.5 (of the input image width
|
||||
/// and height), before resizing and overlaying it on top of the input image.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float GpuScaleFactor {
|
||||
get { if ((_hasBits0 & 16) != 0) { return gpuScaleFactor_; } else { return GpuScaleFactorDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
gpuScaleFactor_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "gpu_scale_factor" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasGpuScaleFactor {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "gpu_scale_factor" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearGpuScaleFactor() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as AnnotationOverlayCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(AnnotationOverlayCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (CanvasWidthPx != other.CanvasWidthPx) return false;
|
||||
if (CanvasHeightPx != other.CanvasHeightPx) return false;
|
||||
if (!object.Equals(CanvasColor, other.CanvasColor)) return false;
|
||||
if (FlipTextVertically != other.FlipTextVertically) return false;
|
||||
if (GpuUsesTopLeftOrigin != other.GpuUsesTopLeftOrigin) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(GpuScaleFactor, other.GpuScaleFactor)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasCanvasWidthPx) hash ^= CanvasWidthPx.GetHashCode();
|
||||
if (HasCanvasHeightPx) hash ^= CanvasHeightPx.GetHashCode();
|
||||
if (canvasColor_ != null) hash ^= CanvasColor.GetHashCode();
|
||||
if (HasFlipTextVertically) hash ^= FlipTextVertically.GetHashCode();
|
||||
if (HasGpuUsesTopLeftOrigin) hash ^= GpuUsesTopLeftOrigin.GetHashCode();
|
||||
if (HasGpuScaleFactor) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(GpuScaleFactor);
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasCanvasWidthPx) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(CanvasWidthPx);
|
||||
}
|
||||
if (HasCanvasHeightPx) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(CanvasHeightPx);
|
||||
}
|
||||
if (canvasColor_ != null) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteMessage(CanvasColor);
|
||||
}
|
||||
if (HasFlipTextVertically) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(FlipTextVertically);
|
||||
}
|
||||
if (HasGpuUsesTopLeftOrigin) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteBool(GpuUsesTopLeftOrigin);
|
||||
}
|
||||
if (HasGpuScaleFactor) {
|
||||
output.WriteRawTag(61);
|
||||
output.WriteFloat(GpuScaleFactor);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasCanvasWidthPx) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(CanvasWidthPx);
|
||||
}
|
||||
if (HasCanvasHeightPx) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(CanvasHeightPx);
|
||||
}
|
||||
if (canvasColor_ != null) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteMessage(CanvasColor);
|
||||
}
|
||||
if (HasFlipTextVertically) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(FlipTextVertically);
|
||||
}
|
||||
if (HasGpuUsesTopLeftOrigin) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteBool(GpuUsesTopLeftOrigin);
|
||||
}
|
||||
if (HasGpuScaleFactor) {
|
||||
output.WriteRawTag(61);
|
||||
output.WriteFloat(GpuScaleFactor);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasCanvasWidthPx) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(CanvasWidthPx);
|
||||
}
|
||||
if (HasCanvasHeightPx) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(CanvasHeightPx);
|
||||
}
|
||||
if (canvasColor_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CanvasColor);
|
||||
}
|
||||
if (HasFlipTextVertically) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasGpuUsesTopLeftOrigin) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasGpuScaleFactor) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(AnnotationOverlayCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasCanvasWidthPx) {
|
||||
CanvasWidthPx = other.CanvasWidthPx;
|
||||
}
|
||||
if (other.HasCanvasHeightPx) {
|
||||
CanvasHeightPx = other.CanvasHeightPx;
|
||||
}
|
||||
if (other.canvasColor_ != null) {
|
||||
if (canvasColor_ == null) {
|
||||
CanvasColor = new global::Mediapipe.Color();
|
||||
}
|
||||
CanvasColor.MergeFrom(other.CanvasColor);
|
||||
}
|
||||
if (other.HasFlipTextVertically) {
|
||||
FlipTextVertically = other.FlipTextVertically;
|
||||
}
|
||||
if (other.HasGpuUsesTopLeftOrigin) {
|
||||
GpuUsesTopLeftOrigin = other.GpuUsesTopLeftOrigin;
|
||||
}
|
||||
if (other.HasGpuScaleFactor) {
|
||||
GpuScaleFactor = other.GpuScaleFactor;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 16: {
|
||||
CanvasWidthPx = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
CanvasHeightPx = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
if (canvasColor_ == null) {
|
||||
CanvasColor = new global::Mediapipe.Color();
|
||||
}
|
||||
input.ReadMessage(CanvasColor);
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
FlipTextVertically = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
GpuUsesTopLeftOrigin = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 61: {
|
||||
GpuScaleFactor = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 16: {
|
||||
CanvasWidthPx = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
CanvasHeightPx = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
if (canvasColor_ == null) {
|
||||
CanvasColor = new global::Mediapipe.Color();
|
||||
}
|
||||
input.ReadMessage(CanvasColor);
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
FlipTextVertically = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
GpuUsesTopLeftOrigin = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 61: {
|
||||
GpuScaleFactor = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the AnnotationOverlayCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.AnnotationOverlayCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.AnnotationOverlayCalculatorOptions>(250607623, pb::FieldCodec.ForMessage(2004860986, global::Mediapipe.AnnotationOverlayCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fff2f7b8f06e229a4aa450a9b6b74c8b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,263 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/association_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/association_calculator.proto</summary>
|
||||
public static partial class AssociationCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/association_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static AssociationCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjdtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9hc3NvY2lhdGlvbl9jYWxj",
|
||||
"dWxhdG9yLnByb3RvEgltZWRpYXBpcGUaJG1lZGlhcGlwZS9mcmFtZXdvcmsv",
|
||||
"Y2FsY3VsYXRvci5wcm90byKbAQocQXNzb2NpYXRpb25DYWxjdWxhdG9yT3B0",
|
||||
"aW9ucxIjChhtaW5fc2ltaWxhcml0eV90aHJlc2hvbGQYASABKAI6ATEyVgoD",
|
||||
"ZXh0EhwubWVkaWFwaXBlLkNhbGN1bGF0b3JPcHRpb25zGO+kmIMBIAEoCzIn",
|
||||
"Lm1lZGlhcGlwZS5Bc3NvY2lhdGlvbkNhbGN1bGF0b3JPcHRpb25z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.AssociationCalculatorOptions), global::Mediapipe.AssociationCalculatorOptions.Parser, new[]{ "MinSimilarityThreshold" }, null, null, new pb::Extension[] { global::Mediapipe.AssociationCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class AssociationCalculatorOptions : pb::IMessage<AssociationCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<AssociationCalculatorOptions> _parser = new pb::MessageParser<AssociationCalculatorOptions>(() => new AssociationCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<AssociationCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.AssociationCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public AssociationCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public AssociationCalculatorOptions(AssociationCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
minSimilarityThreshold_ = other.minSimilarityThreshold_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public AssociationCalculatorOptions Clone() {
|
||||
return new AssociationCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "min_similarity_threshold" field.</summary>
|
||||
public const int MinSimilarityThresholdFieldNumber = 1;
|
||||
private readonly static float MinSimilarityThresholdDefaultValue = 1F;
|
||||
|
||||
private float minSimilarityThreshold_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float MinSimilarityThreshold {
|
||||
get { if ((_hasBits0 & 1) != 0) { return minSimilarityThreshold_; } else { return MinSimilarityThresholdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
minSimilarityThreshold_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "min_similarity_threshold" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasMinSimilarityThreshold {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "min_similarity_threshold" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearMinSimilarityThreshold() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as AssociationCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(AssociationCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MinSimilarityThreshold, other.MinSimilarityThreshold)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasMinSimilarityThreshold) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MinSimilarityThreshold);
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasMinSimilarityThreshold) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(MinSimilarityThreshold);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasMinSimilarityThreshold) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(MinSimilarityThreshold);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasMinSimilarityThreshold) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(AssociationCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasMinSimilarityThreshold) {
|
||||
MinSimilarityThreshold = other.MinSimilarityThreshold;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 13: {
|
||||
MinSimilarityThreshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 13: {
|
||||
MinSimilarityThreshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the AssociationCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.AssociationCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.AssociationCalculatorOptions>(275124847, pb::FieldCodec.ForMessage(2200998778, global::Mediapipe.AssociationCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b5bb6bacc9e2a14719818f4c64c3c7f5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,389 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/detection_label_id_to_text_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/detection_label_id_to_text_calculator.proto</summary>
|
||||
public static partial class DetectionLabelIdToTextCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/detection_label_id_to_text_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static DetectionLabelIdToTextCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkZtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9kZXRlY3Rpb25fbGFiZWxf",
|
||||
"aWRfdG9fdGV4dF9jYWxjdWxhdG9yLnByb3RvEgltZWRpYXBpcGUaJG1lZGlh",
|
||||
"cGlwZS9mcmFtZXdvcmsvY2FsY3VsYXRvci5wcm90bxoebWVkaWFwaXBlL3V0",
|
||||
"aWwvbGFiZWxfbWFwLnByb3RvIu4CCidEZXRlY3Rpb25MYWJlbElkVG9UZXh0",
|
||||
"Q2FsY3VsYXRvck9wdGlvbnMSFgoObGFiZWxfbWFwX3BhdGgYASABKAkSDQoF",
|
||||
"bGFiZWwYAiADKAkSFQoNa2VlcF9sYWJlbF9pZBgDIAEoCBJXCgtsYWJlbF9p",
|
||||
"dGVtcxgEIAMoCzJCLm1lZGlhcGlwZS5EZXRlY3Rpb25MYWJlbElkVG9UZXh0",
|
||||
"Q2FsY3VsYXRvck9wdGlvbnMuTGFiZWxJdGVtc0VudHJ5GkoKD0xhYmVsSXRl",
|
||||
"bXNFbnRyeRILCgNrZXkYASABKAMSJgoFdmFsdWUYAiABKAsyFy5tZWRpYXBp",
|
||||
"cGUuTGFiZWxNYXBJdGVtOgI4ATJgCgNleHQSHC5tZWRpYXBpcGUuQ2FsY3Vs",
|
||||
"YXRvck9wdGlvbnMYsIuOeCABKAsyMi5tZWRpYXBpcGUuRGV0ZWN0aW9uTGFi",
|
||||
"ZWxJZFRvVGV4dENhbGN1bGF0b3JPcHRpb25z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, global::Mediapipe.LabelMapReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.DetectionLabelIdToTextCalculatorOptions), global::Mediapipe.DetectionLabelIdToTextCalculatorOptions.Parser, new[]{ "LabelMapPath", "Label", "KeepLabelId", "LabelItems" }, null, null, new pb::Extension[] { global::Mediapipe.DetectionLabelIdToTextCalculatorOptions.Extensions.Ext }, new pbr::GeneratedClrTypeInfo[] { null, })
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class DetectionLabelIdToTextCalculatorOptions : pb::IMessage<DetectionLabelIdToTextCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<DetectionLabelIdToTextCalculatorOptions> _parser = new pb::MessageParser<DetectionLabelIdToTextCalculatorOptions>(() => new DetectionLabelIdToTextCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<DetectionLabelIdToTextCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.DetectionLabelIdToTextCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public DetectionLabelIdToTextCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public DetectionLabelIdToTextCalculatorOptions(DetectionLabelIdToTextCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
labelMapPath_ = other.labelMapPath_;
|
||||
label_ = other.label_.Clone();
|
||||
keepLabelId_ = other.keepLabelId_;
|
||||
labelItems_ = other.labelItems_.Clone();
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public DetectionLabelIdToTextCalculatorOptions Clone() {
|
||||
return new DetectionLabelIdToTextCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "label_map_path" field.</summary>
|
||||
public const int LabelMapPathFieldNumber = 1;
|
||||
private readonly static string LabelMapPathDefaultValue = "";
|
||||
|
||||
private string labelMapPath_;
|
||||
/// <summary>
|
||||
/// Path to a label map file for getting the actual name of detected classes.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string LabelMapPath {
|
||||
get { return labelMapPath_ ?? LabelMapPathDefaultValue; }
|
||||
set {
|
||||
labelMapPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "label_map_path" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasLabelMapPath {
|
||||
get { return labelMapPath_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "label_map_path" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearLabelMapPath() {
|
||||
labelMapPath_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "label" field.</summary>
|
||||
public const int LabelFieldNumber = 2;
|
||||
private static readonly pb::FieldCodec<string> _repeated_label_codec
|
||||
= pb::FieldCodec.ForString(18);
|
||||
private readonly pbc::RepeatedField<string> label_ = new pbc::RepeatedField<string>();
|
||||
/// <summary>
|
||||
/// Alternative way to specify label map.
|
||||
/// label: "label for id 0"
|
||||
/// label: "label for id 1"
|
||||
/// ...
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<string> Label {
|
||||
get { return label_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "keep_label_id" field.</summary>
|
||||
public const int KeepLabelIdFieldNumber = 3;
|
||||
private readonly static bool KeepLabelIdDefaultValue = false;
|
||||
|
||||
private bool keepLabelId_;
|
||||
/// <summary>
|
||||
/// By default, the `label_id` field from the input is stripped if a text label
|
||||
/// could be found. By setting this field to true, it is always copied to the
|
||||
/// output detections.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool KeepLabelId {
|
||||
get { if ((_hasBits0 & 1) != 0) { return keepLabelId_; } else { return KeepLabelIdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
keepLabelId_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "keep_label_id" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasKeepLabelId {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "keep_label_id" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearKeepLabelId() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "label_items" field.</summary>
|
||||
public const int LabelItemsFieldNumber = 4;
|
||||
private static readonly pbc::MapField<long, global::Mediapipe.LabelMapItem>.Codec _map_labelItems_codec
|
||||
= new pbc::MapField<long, global::Mediapipe.LabelMapItem>.Codec(pb::FieldCodec.ForInt64(8, 0L), pb::FieldCodec.ForMessage(18, global::Mediapipe.LabelMapItem.Parser), 34);
|
||||
private readonly pbc::MapField<long, global::Mediapipe.LabelMapItem> labelItems_ = new pbc::MapField<long, global::Mediapipe.LabelMapItem>();
|
||||
/// <summary>
|
||||
/// Identifying information for each classification label.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::MapField<long, global::Mediapipe.LabelMapItem> LabelItems {
|
||||
get { return labelItems_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as DetectionLabelIdToTextCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(DetectionLabelIdToTextCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (LabelMapPath != other.LabelMapPath) return false;
|
||||
if(!label_.Equals(other.label_)) return false;
|
||||
if (KeepLabelId != other.KeepLabelId) return false;
|
||||
if (!LabelItems.Equals(other.LabelItems)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasLabelMapPath) hash ^= LabelMapPath.GetHashCode();
|
||||
hash ^= label_.GetHashCode();
|
||||
if (HasKeepLabelId) hash ^= KeepLabelId.GetHashCode();
|
||||
hash ^= LabelItems.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasLabelMapPath) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(LabelMapPath);
|
||||
}
|
||||
label_.WriteTo(output, _repeated_label_codec);
|
||||
if (HasKeepLabelId) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(KeepLabelId);
|
||||
}
|
||||
labelItems_.WriteTo(output, _map_labelItems_codec);
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasLabelMapPath) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(LabelMapPath);
|
||||
}
|
||||
label_.WriteTo(ref output, _repeated_label_codec);
|
||||
if (HasKeepLabelId) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(KeepLabelId);
|
||||
}
|
||||
labelItems_.WriteTo(ref output, _map_labelItems_codec);
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasLabelMapPath) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(LabelMapPath);
|
||||
}
|
||||
size += label_.CalculateSize(_repeated_label_codec);
|
||||
if (HasKeepLabelId) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
size += labelItems_.CalculateSize(_map_labelItems_codec);
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(DetectionLabelIdToTextCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasLabelMapPath) {
|
||||
LabelMapPath = other.LabelMapPath;
|
||||
}
|
||||
label_.Add(other.label_);
|
||||
if (other.HasKeepLabelId) {
|
||||
KeepLabelId = other.KeepLabelId;
|
||||
}
|
||||
labelItems_.Add(other.labelItems_);
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 10: {
|
||||
LabelMapPath = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
label_.AddEntriesFrom(input, _repeated_label_codec);
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
KeepLabelId = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
labelItems_.AddEntriesFrom(input, _map_labelItems_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 10: {
|
||||
LabelMapPath = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
label_.AddEntriesFrom(ref input, _repeated_label_codec);
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
KeepLabelId = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
labelItems_.AddEntriesFrom(ref input, _map_labelItems_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the DetectionLabelIdToTextCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.DetectionLabelIdToTextCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.DetectionLabelIdToTextCalculatorOptions>(251889072, pb::FieldCodec.ForMessage(2015112578, global::Mediapipe.DetectionLabelIdToTextCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1983f602ecc94a58bb02c918202acbf3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,561 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/detections_to_rects_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/detections_to_rects_calculator.proto</summary>
|
||||
public static partial class DetectionsToRectsCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/detections_to_rects_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static DetectionsToRectsCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Cj9tZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9kZXRlY3Rpb25zX3RvX3Jl",
|
||||
"Y3RzX2NhbGN1bGF0b3IucHJvdG8SCW1lZGlhcGlwZRokbWVkaWFwaXBlL2Zy",
|
||||
"YW1ld29yay9jYWxjdWxhdG9yLnByb3RvIv0DCiJEZXRlY3Rpb25zVG9SZWN0",
|
||||
"c0NhbGN1bGF0b3JPcHRpb25zEiwKJHJvdGF0aW9uX3ZlY3Rvcl9zdGFydF9r",
|
||||
"ZXlwb2ludF9pbmRleBgBIAEoBRIqCiJyb3RhdGlvbl92ZWN0b3JfZW5kX2tl",
|
||||
"eXBvaW50X2luZGV4GAIgASgFEiQKHHJvdGF0aW9uX3ZlY3Rvcl90YXJnZXRf",
|
||||
"YW5nbGUYAyABKAISLAokcm90YXRpb25fdmVjdG9yX3RhcmdldF9hbmdsZV9k",
|
||||
"ZWdyZWVzGAQgASgCEi0KJW91dHB1dF96ZXJvX3JlY3RfZm9yX2VtcHR5X2Rl",
|
||||
"dGVjdGlvbnMYBSABKAgSVQoPY29udmVyc2lvbl9tb2RlGAYgASgOMjwubWVk",
|
||||
"aWFwaXBlLkRldGVjdGlvbnNUb1JlY3RzQ2FsY3VsYXRvck9wdGlvbnMuQ29u",
|
||||
"dmVyc2lvbk1vZGUiRgoOQ29udmVyc2lvbk1vZGUSCwoHREVGQVVMVBAAEhQK",
|
||||
"EFVTRV9CT1VORElOR19CT1gQARIRCg1VU0VfS0VZUE9JTlRTEAIyWwoDZXh0",
|
||||
"EhwubWVkaWFwaXBlLkNhbGN1bGF0b3JPcHRpb25zGN+3oX0gASgLMi0ubWVk",
|
||||
"aWFwaXBlLkRldGVjdGlvbnNUb1JlY3RzQ2FsY3VsYXRvck9wdGlvbnM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.DetectionsToRectsCalculatorOptions), global::Mediapipe.DetectionsToRectsCalculatorOptions.Parser, new[]{ "RotationVectorStartKeypointIndex", "RotationVectorEndKeypointIndex", "RotationVectorTargetAngle", "RotationVectorTargetAngleDegrees", "OutputZeroRectForEmptyDetections", "ConversionMode" }, null, new[]{ typeof(global::Mediapipe.DetectionsToRectsCalculatorOptions.Types.ConversionMode) }, new pb::Extension[] { global::Mediapipe.DetectionsToRectsCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class DetectionsToRectsCalculatorOptions : pb::IMessage<DetectionsToRectsCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<DetectionsToRectsCalculatorOptions> _parser = new pb::MessageParser<DetectionsToRectsCalculatorOptions>(() => new DetectionsToRectsCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<DetectionsToRectsCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.DetectionsToRectsCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public DetectionsToRectsCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public DetectionsToRectsCalculatorOptions(DetectionsToRectsCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
rotationVectorStartKeypointIndex_ = other.rotationVectorStartKeypointIndex_;
|
||||
rotationVectorEndKeypointIndex_ = other.rotationVectorEndKeypointIndex_;
|
||||
rotationVectorTargetAngle_ = other.rotationVectorTargetAngle_;
|
||||
rotationVectorTargetAngleDegrees_ = other.rotationVectorTargetAngleDegrees_;
|
||||
outputZeroRectForEmptyDetections_ = other.outputZeroRectForEmptyDetections_;
|
||||
conversionMode_ = other.conversionMode_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public DetectionsToRectsCalculatorOptions Clone() {
|
||||
return new DetectionsToRectsCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "rotation_vector_start_keypoint_index" field.</summary>
|
||||
public const int RotationVectorStartKeypointIndexFieldNumber = 1;
|
||||
private readonly static int RotationVectorStartKeypointIndexDefaultValue = 0;
|
||||
|
||||
private int rotationVectorStartKeypointIndex_;
|
||||
/// <summary>
|
||||
/// Specify the rotation angle of the output rect with a vector formed by
|
||||
/// connecting two keypoints in the detection, together with the target angle
|
||||
/// (can be in radians or in degrees) of that vector after rotation. The target
|
||||
/// angle is counter-clockwise starting from the positive x-axis.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int RotationVectorStartKeypointIndex {
|
||||
get { if ((_hasBits0 & 1) != 0) { return rotationVectorStartKeypointIndex_; } else { return RotationVectorStartKeypointIndexDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
rotationVectorStartKeypointIndex_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "rotation_vector_start_keypoint_index" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasRotationVectorStartKeypointIndex {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "rotation_vector_start_keypoint_index" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearRotationVectorStartKeypointIndex() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "rotation_vector_end_keypoint_index" field.</summary>
|
||||
public const int RotationVectorEndKeypointIndexFieldNumber = 2;
|
||||
private readonly static int RotationVectorEndKeypointIndexDefaultValue = 0;
|
||||
|
||||
private int rotationVectorEndKeypointIndex_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int RotationVectorEndKeypointIndex {
|
||||
get { if ((_hasBits0 & 2) != 0) { return rotationVectorEndKeypointIndex_; } else { return RotationVectorEndKeypointIndexDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
rotationVectorEndKeypointIndex_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "rotation_vector_end_keypoint_index" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasRotationVectorEndKeypointIndex {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "rotation_vector_end_keypoint_index" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearRotationVectorEndKeypointIndex() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "rotation_vector_target_angle" field.</summary>
|
||||
public const int RotationVectorTargetAngleFieldNumber = 3;
|
||||
private readonly static float RotationVectorTargetAngleDefaultValue = 0F;
|
||||
|
||||
private float rotationVectorTargetAngle_;
|
||||
/// <summary>
|
||||
/// In radians.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float RotationVectorTargetAngle {
|
||||
get { if ((_hasBits0 & 4) != 0) { return rotationVectorTargetAngle_; } else { return RotationVectorTargetAngleDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
rotationVectorTargetAngle_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "rotation_vector_target_angle" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasRotationVectorTargetAngle {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "rotation_vector_target_angle" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearRotationVectorTargetAngle() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "rotation_vector_target_angle_degrees" field.</summary>
|
||||
public const int RotationVectorTargetAngleDegreesFieldNumber = 4;
|
||||
private readonly static float RotationVectorTargetAngleDegreesDefaultValue = 0F;
|
||||
|
||||
private float rotationVectorTargetAngleDegrees_;
|
||||
/// <summary>
|
||||
/// In degrees.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float RotationVectorTargetAngleDegrees {
|
||||
get { if ((_hasBits0 & 8) != 0) { return rotationVectorTargetAngleDegrees_; } else { return RotationVectorTargetAngleDegreesDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
rotationVectorTargetAngleDegrees_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "rotation_vector_target_angle_degrees" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasRotationVectorTargetAngleDegrees {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "rotation_vector_target_angle_degrees" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearRotationVectorTargetAngleDegrees() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "output_zero_rect_for_empty_detections" field.</summary>
|
||||
public const int OutputZeroRectForEmptyDetectionsFieldNumber = 5;
|
||||
private readonly static bool OutputZeroRectForEmptyDetectionsDefaultValue = false;
|
||||
|
||||
private bool outputZeroRectForEmptyDetections_;
|
||||
/// <summary>
|
||||
/// Whether to output a zero-rect (with origin and size both zero) when the
|
||||
/// input detection vector is empty.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool OutputZeroRectForEmptyDetections {
|
||||
get { if ((_hasBits0 & 16) != 0) { return outputZeroRectForEmptyDetections_; } else { return OutputZeroRectForEmptyDetectionsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
outputZeroRectForEmptyDetections_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "output_zero_rect_for_empty_detections" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasOutputZeroRectForEmptyDetections {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "output_zero_rect_for_empty_detections" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearOutputZeroRectForEmptyDetections() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "conversion_mode" field.</summary>
|
||||
public const int ConversionModeFieldNumber = 6;
|
||||
private readonly static global::Mediapipe.DetectionsToRectsCalculatorOptions.Types.ConversionMode ConversionModeDefaultValue = global::Mediapipe.DetectionsToRectsCalculatorOptions.Types.ConversionMode.Default;
|
||||
|
||||
private global::Mediapipe.DetectionsToRectsCalculatorOptions.Types.ConversionMode conversionMode_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.DetectionsToRectsCalculatorOptions.Types.ConversionMode ConversionMode {
|
||||
get { if ((_hasBits0 & 32) != 0) { return conversionMode_; } else { return ConversionModeDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 32;
|
||||
conversionMode_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "conversion_mode" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasConversionMode {
|
||||
get { return (_hasBits0 & 32) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "conversion_mode" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearConversionMode() {
|
||||
_hasBits0 &= ~32;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as DetectionsToRectsCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(DetectionsToRectsCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (RotationVectorStartKeypointIndex != other.RotationVectorStartKeypointIndex) return false;
|
||||
if (RotationVectorEndKeypointIndex != other.RotationVectorEndKeypointIndex) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RotationVectorTargetAngle, other.RotationVectorTargetAngle)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RotationVectorTargetAngleDegrees, other.RotationVectorTargetAngleDegrees)) return false;
|
||||
if (OutputZeroRectForEmptyDetections != other.OutputZeroRectForEmptyDetections) return false;
|
||||
if (ConversionMode != other.ConversionMode) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasRotationVectorStartKeypointIndex) hash ^= RotationVectorStartKeypointIndex.GetHashCode();
|
||||
if (HasRotationVectorEndKeypointIndex) hash ^= RotationVectorEndKeypointIndex.GetHashCode();
|
||||
if (HasRotationVectorTargetAngle) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RotationVectorTargetAngle);
|
||||
if (HasRotationVectorTargetAngleDegrees) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RotationVectorTargetAngleDegrees);
|
||||
if (HasOutputZeroRectForEmptyDetections) hash ^= OutputZeroRectForEmptyDetections.GetHashCode();
|
||||
if (HasConversionMode) hash ^= ConversionMode.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasRotationVectorStartKeypointIndex) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(RotationVectorStartKeypointIndex);
|
||||
}
|
||||
if (HasRotationVectorEndKeypointIndex) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(RotationVectorEndKeypointIndex);
|
||||
}
|
||||
if (HasRotationVectorTargetAngle) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(RotationVectorTargetAngle);
|
||||
}
|
||||
if (HasRotationVectorTargetAngleDegrees) {
|
||||
output.WriteRawTag(37);
|
||||
output.WriteFloat(RotationVectorTargetAngleDegrees);
|
||||
}
|
||||
if (HasOutputZeroRectForEmptyDetections) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(OutputZeroRectForEmptyDetections);
|
||||
}
|
||||
if (HasConversionMode) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteEnum((int) ConversionMode);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasRotationVectorStartKeypointIndex) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(RotationVectorStartKeypointIndex);
|
||||
}
|
||||
if (HasRotationVectorEndKeypointIndex) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(RotationVectorEndKeypointIndex);
|
||||
}
|
||||
if (HasRotationVectorTargetAngle) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(RotationVectorTargetAngle);
|
||||
}
|
||||
if (HasRotationVectorTargetAngleDegrees) {
|
||||
output.WriteRawTag(37);
|
||||
output.WriteFloat(RotationVectorTargetAngleDegrees);
|
||||
}
|
||||
if (HasOutputZeroRectForEmptyDetections) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(OutputZeroRectForEmptyDetections);
|
||||
}
|
||||
if (HasConversionMode) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteEnum((int) ConversionMode);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasRotationVectorStartKeypointIndex) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RotationVectorStartKeypointIndex);
|
||||
}
|
||||
if (HasRotationVectorEndKeypointIndex) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RotationVectorEndKeypointIndex);
|
||||
}
|
||||
if (HasRotationVectorTargetAngle) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasRotationVectorTargetAngleDegrees) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasOutputZeroRectForEmptyDetections) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasConversionMode) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ConversionMode);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(DetectionsToRectsCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasRotationVectorStartKeypointIndex) {
|
||||
RotationVectorStartKeypointIndex = other.RotationVectorStartKeypointIndex;
|
||||
}
|
||||
if (other.HasRotationVectorEndKeypointIndex) {
|
||||
RotationVectorEndKeypointIndex = other.RotationVectorEndKeypointIndex;
|
||||
}
|
||||
if (other.HasRotationVectorTargetAngle) {
|
||||
RotationVectorTargetAngle = other.RotationVectorTargetAngle;
|
||||
}
|
||||
if (other.HasRotationVectorTargetAngleDegrees) {
|
||||
RotationVectorTargetAngleDegrees = other.RotationVectorTargetAngleDegrees;
|
||||
}
|
||||
if (other.HasOutputZeroRectForEmptyDetections) {
|
||||
OutputZeroRectForEmptyDetections = other.OutputZeroRectForEmptyDetections;
|
||||
}
|
||||
if (other.HasConversionMode) {
|
||||
ConversionMode = other.ConversionMode;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
RotationVectorStartKeypointIndex = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
RotationVectorEndKeypointIndex = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
RotationVectorTargetAngle = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 37: {
|
||||
RotationVectorTargetAngleDegrees = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
OutputZeroRectForEmptyDetections = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
ConversionMode = (global::Mediapipe.DetectionsToRectsCalculatorOptions.Types.ConversionMode) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
RotationVectorStartKeypointIndex = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
RotationVectorEndKeypointIndex = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
RotationVectorTargetAngle = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 37: {
|
||||
RotationVectorTargetAngleDegrees = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
OutputZeroRectForEmptyDetections = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
ConversionMode = (global::Mediapipe.DetectionsToRectsCalculatorOptions.Types.ConversionMode) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Nested types
|
||||
/// <summary>Container for nested types declared in the DetectionsToRectsCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Types {
|
||||
public enum ConversionMode {
|
||||
[pbr::OriginalName("DEFAULT")] Default = 0,
|
||||
[pbr::OriginalName("USE_BOUNDING_BOX")] UseBoundingBox = 1,
|
||||
[pbr::OriginalName("USE_KEYPOINTS")] UseKeypoints = 2,
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the DetectionsToRectsCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.DetectionsToRectsCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.DetectionsToRectsCalculatorOptions>(262691807, pb::FieldCodec.ForMessage(2101534458, global::Mediapipe.DetectionsToRectsCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4debe466f3c1da7c9836257a319642d7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,653 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/detections_to_render_data_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/detections_to_render_data_calculator.proto</summary>
|
||||
public static partial class DetectionsToRenderDataCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/detections_to_render_data_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static DetectionsToRenderDataCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkVtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9kZXRlY3Rpb25zX3RvX3Jl",
|
||||
"bmRlcl9kYXRhX2NhbGN1bGF0b3IucHJvdG8SCW1lZGlhcGlwZRokbWVkaWFw",
|
||||
"aXBlL2ZyYW1ld29yay9jYWxjdWxhdG9yLnByb3RvGhptZWRpYXBpcGUvdXRp",
|
||||
"bC9jb2xvci5wcm90bxogbWVkaWFwaXBlL3V0aWwvcmVuZGVyX2RhdGEucHJv",
|
||||
"dG8imAMKJ0RldGVjdGlvbnNUb1JlbmRlckRhdGFDYWxjdWxhdG9yT3B0aW9u",
|
||||
"cxIiChRwcm9kdWNlX2VtcHR5X3BhY2tldBgBIAEoCDoEdHJ1ZRIZCg50ZXh0",
|
||||
"X2RlbGltaXRlchgCIAEoCToBLBIhChJvbmVfbGFiZWxfcGVyX2xpbmUYAyAB",
|
||||
"KAg6BWZhbHNlEi4KBHRleHQYBCABKAsyIC5tZWRpYXBpcGUuUmVuZGVyQW5u",
|
||||
"b3RhdGlvbi5UZXh0EhQKCXRoaWNrbmVzcxgFIAEoAToBMRIfCgVjb2xvchgG",
|
||||
"IAEoCzIQLm1lZGlhcGlwZS5Db2xvchIeCgtzY2VuZV9jbGFzcxgHIAEoCToJ",
|
||||
"REVURUNUSU9OEiIKE3JlbmRlcl9kZXRlY3Rpb25faWQYCCABKAg6BWZhbHNl",
|
||||
"MmAKA2V4dBIcLm1lZGlhcGlwZS5DYWxjdWxhdG9yT3B0aW9ucxjm3rZ2IAEo",
|
||||
"CzIyLm1lZGlhcGlwZS5EZXRlY3Rpb25zVG9SZW5kZXJEYXRhQ2FsY3VsYXRv",
|
||||
"ck9wdGlvbnM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, global::Mediapipe.ColorReflection.Descriptor, global::Mediapipe.RenderDataReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.DetectionsToRenderDataCalculatorOptions), global::Mediapipe.DetectionsToRenderDataCalculatorOptions.Parser, new[]{ "ProduceEmptyPacket", "TextDelimiter", "OneLabelPerLine", "Text", "Thickness", "Color", "SceneClass", "RenderDetectionId" }, null, null, new pb::Extension[] { global::Mediapipe.DetectionsToRenderDataCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class DetectionsToRenderDataCalculatorOptions : pb::IMessage<DetectionsToRenderDataCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<DetectionsToRenderDataCalculatorOptions> _parser = new pb::MessageParser<DetectionsToRenderDataCalculatorOptions>(() => new DetectionsToRenderDataCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<DetectionsToRenderDataCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.DetectionsToRenderDataCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public DetectionsToRenderDataCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public DetectionsToRenderDataCalculatorOptions(DetectionsToRenderDataCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
produceEmptyPacket_ = other.produceEmptyPacket_;
|
||||
textDelimiter_ = other.textDelimiter_;
|
||||
oneLabelPerLine_ = other.oneLabelPerLine_;
|
||||
text_ = other.text_ != null ? other.text_.Clone() : null;
|
||||
thickness_ = other.thickness_;
|
||||
color_ = other.color_ != null ? other.color_.Clone() : null;
|
||||
sceneClass_ = other.sceneClass_;
|
||||
renderDetectionId_ = other.renderDetectionId_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public DetectionsToRenderDataCalculatorOptions Clone() {
|
||||
return new DetectionsToRenderDataCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "produce_empty_packet" field.</summary>
|
||||
public const int ProduceEmptyPacketFieldNumber = 1;
|
||||
private readonly static bool ProduceEmptyPacketDefaultValue = true;
|
||||
|
||||
private bool produceEmptyPacket_;
|
||||
/// <summary>
|
||||
/// If true, produces a RenderData packet with no annotation when the input
|
||||
/// packet has no detection. Otherwise, it won't produce any packet.
|
||||
/// Please note, regardless of this flag nothing will be produce if there is
|
||||
/// no input packet for a timestamp.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool ProduceEmptyPacket {
|
||||
get { if ((_hasBits0 & 1) != 0) { return produceEmptyPacket_; } else { return ProduceEmptyPacketDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
produceEmptyPacket_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "produce_empty_packet" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasProduceEmptyPacket {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "produce_empty_packet" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearProduceEmptyPacket() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "text_delimiter" field.</summary>
|
||||
public const int TextDelimiterFieldNumber = 2;
|
||||
private readonly static string TextDelimiterDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("LA=="), 0, 1);
|
||||
|
||||
private string textDelimiter_;
|
||||
/// <summary>
|
||||
/// The delimiter to separate label(_id) and score.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string TextDelimiter {
|
||||
get { return textDelimiter_ ?? TextDelimiterDefaultValue; }
|
||||
set {
|
||||
textDelimiter_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "text_delimiter" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasTextDelimiter {
|
||||
get { return textDelimiter_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "text_delimiter" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearTextDelimiter() {
|
||||
textDelimiter_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "one_label_per_line" field.</summary>
|
||||
public const int OneLabelPerLineFieldNumber = 3;
|
||||
private readonly static bool OneLabelPerLineDefaultValue = false;
|
||||
|
||||
private bool oneLabelPerLine_;
|
||||
/// <summary>
|
||||
/// If true, each "label(_id),score" will be on a separate line.
|
||||
/// Otherwise, all "label(_id),score" will be concatenated when the detection
|
||||
/// has more than one label.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool OneLabelPerLine {
|
||||
get { if ((_hasBits0 & 2) != 0) { return oneLabelPerLine_; } else { return OneLabelPerLineDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
oneLabelPerLine_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "one_label_per_line" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasOneLabelPerLine {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "one_label_per_line" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearOneLabelPerLine() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "text" field.</summary>
|
||||
public const int TextFieldNumber = 4;
|
||||
private global::Mediapipe.RenderAnnotation.Types.Text text_;
|
||||
/// <summary>
|
||||
/// Rendering options for the label.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.RenderAnnotation.Types.Text Text {
|
||||
get { return text_; }
|
||||
set {
|
||||
text_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "thickness" field.</summary>
|
||||
public const int ThicknessFieldNumber = 5;
|
||||
private readonly static double ThicknessDefaultValue = 1D;
|
||||
|
||||
private double thickness_;
|
||||
/// <summary>
|
||||
/// Thickness for drawing the label(s) and the location_data(box).
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double Thickness {
|
||||
get { if ((_hasBits0 & 4) != 0) { return thickness_; } else { return ThicknessDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
thickness_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "thickness" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasThickness {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "thickness" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearThickness() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "color" field.</summary>
|
||||
public const int ColorFieldNumber = 6;
|
||||
private global::Mediapipe.Color color_;
|
||||
/// <summary>
|
||||
/// Color for drawing the label(s), feature_tag, and the location_data(box).
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.Color Color {
|
||||
get { return color_; }
|
||||
set {
|
||||
color_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "scene_class" field.</summary>
|
||||
public const int SceneClassFieldNumber = 7;
|
||||
private readonly static string SceneClassDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("REVURUNUSU9O"), 0, 9);
|
||||
|
||||
private string sceneClass_;
|
||||
/// <summary>
|
||||
/// An optional string that identifies this class of annotations
|
||||
/// for the render data output this calculator produces. If multiple
|
||||
/// instances of this calculator are present in the graph, this value
|
||||
/// should be unique among them.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string SceneClass {
|
||||
get { return sceneClass_ ?? SceneClassDefaultValue; }
|
||||
set {
|
||||
sceneClass_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "scene_class" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasSceneClass {
|
||||
get { return sceneClass_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "scene_class" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearSceneClass() {
|
||||
sceneClass_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "render_detection_id" field.</summary>
|
||||
public const int RenderDetectionIdFieldNumber = 8;
|
||||
private readonly static bool RenderDetectionIdDefaultValue = false;
|
||||
|
||||
private bool renderDetectionId_;
|
||||
/// <summary>
|
||||
/// If true, renders the detection id in the first line before the labels.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool RenderDetectionId {
|
||||
get { if ((_hasBits0 & 8) != 0) { return renderDetectionId_; } else { return RenderDetectionIdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
renderDetectionId_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "render_detection_id" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasRenderDetectionId {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "render_detection_id" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearRenderDetectionId() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as DetectionsToRenderDataCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(DetectionsToRenderDataCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (ProduceEmptyPacket != other.ProduceEmptyPacket) return false;
|
||||
if (TextDelimiter != other.TextDelimiter) return false;
|
||||
if (OneLabelPerLine != other.OneLabelPerLine) return false;
|
||||
if (!object.Equals(Text, other.Text)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Thickness, other.Thickness)) return false;
|
||||
if (!object.Equals(Color, other.Color)) return false;
|
||||
if (SceneClass != other.SceneClass) return false;
|
||||
if (RenderDetectionId != other.RenderDetectionId) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasProduceEmptyPacket) hash ^= ProduceEmptyPacket.GetHashCode();
|
||||
if (HasTextDelimiter) hash ^= TextDelimiter.GetHashCode();
|
||||
if (HasOneLabelPerLine) hash ^= OneLabelPerLine.GetHashCode();
|
||||
if (text_ != null) hash ^= Text.GetHashCode();
|
||||
if (HasThickness) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Thickness);
|
||||
if (color_ != null) hash ^= Color.GetHashCode();
|
||||
if (HasSceneClass) hash ^= SceneClass.GetHashCode();
|
||||
if (HasRenderDetectionId) hash ^= RenderDetectionId.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasProduceEmptyPacket) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(ProduceEmptyPacket);
|
||||
}
|
||||
if (HasTextDelimiter) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(TextDelimiter);
|
||||
}
|
||||
if (HasOneLabelPerLine) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(OneLabelPerLine);
|
||||
}
|
||||
if (text_ != null) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteMessage(Text);
|
||||
}
|
||||
if (HasThickness) {
|
||||
output.WriteRawTag(41);
|
||||
output.WriteDouble(Thickness);
|
||||
}
|
||||
if (color_ != null) {
|
||||
output.WriteRawTag(50);
|
||||
output.WriteMessage(Color);
|
||||
}
|
||||
if (HasSceneClass) {
|
||||
output.WriteRawTag(58);
|
||||
output.WriteString(SceneClass);
|
||||
}
|
||||
if (HasRenderDetectionId) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteBool(RenderDetectionId);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasProduceEmptyPacket) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(ProduceEmptyPacket);
|
||||
}
|
||||
if (HasTextDelimiter) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(TextDelimiter);
|
||||
}
|
||||
if (HasOneLabelPerLine) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(OneLabelPerLine);
|
||||
}
|
||||
if (text_ != null) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteMessage(Text);
|
||||
}
|
||||
if (HasThickness) {
|
||||
output.WriteRawTag(41);
|
||||
output.WriteDouble(Thickness);
|
||||
}
|
||||
if (color_ != null) {
|
||||
output.WriteRawTag(50);
|
||||
output.WriteMessage(Color);
|
||||
}
|
||||
if (HasSceneClass) {
|
||||
output.WriteRawTag(58);
|
||||
output.WriteString(SceneClass);
|
||||
}
|
||||
if (HasRenderDetectionId) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteBool(RenderDetectionId);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasProduceEmptyPacket) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasTextDelimiter) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TextDelimiter);
|
||||
}
|
||||
if (HasOneLabelPerLine) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (text_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Text);
|
||||
}
|
||||
if (HasThickness) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (color_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color);
|
||||
}
|
||||
if (HasSceneClass) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(SceneClass);
|
||||
}
|
||||
if (HasRenderDetectionId) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(DetectionsToRenderDataCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasProduceEmptyPacket) {
|
||||
ProduceEmptyPacket = other.ProduceEmptyPacket;
|
||||
}
|
||||
if (other.HasTextDelimiter) {
|
||||
TextDelimiter = other.TextDelimiter;
|
||||
}
|
||||
if (other.HasOneLabelPerLine) {
|
||||
OneLabelPerLine = other.OneLabelPerLine;
|
||||
}
|
||||
if (other.text_ != null) {
|
||||
if (text_ == null) {
|
||||
Text = new global::Mediapipe.RenderAnnotation.Types.Text();
|
||||
}
|
||||
Text.MergeFrom(other.Text);
|
||||
}
|
||||
if (other.HasThickness) {
|
||||
Thickness = other.Thickness;
|
||||
}
|
||||
if (other.color_ != null) {
|
||||
if (color_ == null) {
|
||||
Color = new global::Mediapipe.Color();
|
||||
}
|
||||
Color.MergeFrom(other.Color);
|
||||
}
|
||||
if (other.HasSceneClass) {
|
||||
SceneClass = other.SceneClass;
|
||||
}
|
||||
if (other.HasRenderDetectionId) {
|
||||
RenderDetectionId = other.RenderDetectionId;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
ProduceEmptyPacket = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
TextDelimiter = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
OneLabelPerLine = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
if (text_ == null) {
|
||||
Text = new global::Mediapipe.RenderAnnotation.Types.Text();
|
||||
}
|
||||
input.ReadMessage(Text);
|
||||
break;
|
||||
}
|
||||
case 41: {
|
||||
Thickness = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 50: {
|
||||
if (color_ == null) {
|
||||
Color = new global::Mediapipe.Color();
|
||||
}
|
||||
input.ReadMessage(Color);
|
||||
break;
|
||||
}
|
||||
case 58: {
|
||||
SceneClass = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
RenderDetectionId = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
ProduceEmptyPacket = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
TextDelimiter = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
OneLabelPerLine = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
if (text_ == null) {
|
||||
Text = new global::Mediapipe.RenderAnnotation.Types.Text();
|
||||
}
|
||||
input.ReadMessage(Text);
|
||||
break;
|
||||
}
|
||||
case 41: {
|
||||
Thickness = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 50: {
|
||||
if (color_ == null) {
|
||||
Color = new global::Mediapipe.Color();
|
||||
}
|
||||
input.ReadMessage(Color);
|
||||
break;
|
||||
}
|
||||
case 58: {
|
||||
SceneClass = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
RenderDetectionId = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the DetectionsToRenderDataCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.DetectionsToRenderDataCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.DetectionsToRenderDataCalculatorOptions>(248360806, pb::FieldCodec.ForMessage(1986886450, global::Mediapipe.DetectionsToRenderDataCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d70cf8e67756c61c8be1015f87d922ba
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,266 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/filter_detections_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/filter_detections_calculator.proto</summary>
|
||||
public static partial class FilterDetectionsCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/filter_detections_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static FilterDetectionsCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Cj1tZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9maWx0ZXJfZGV0ZWN0aW9u",
|
||||
"c19jYWxjdWxhdG9yLnByb3RvEgltZWRpYXBpcGUaJG1lZGlhcGlwZS9mcmFt",
|
||||
"ZXdvcmsvY2FsY3VsYXRvci5wcm90byKTAQohRmlsdGVyRGV0ZWN0aW9uc0Nh",
|
||||
"bGN1bGF0b3JPcHRpb25zEhEKCW1pbl9zY29yZRgBIAEoAjJbCgNleHQSHC5t",
|
||||
"ZWRpYXBpcGUuQ2FsY3VsYXRvck9wdGlvbnMY9IjKvAEgASgLMiwubWVkaWFw",
|
||||
"aXBlLkZpbHRlckRldGVjdGlvbnNDYWxjdWxhdG9yT3B0aW9ucw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.FilterDetectionsCalculatorOptions), global::Mediapipe.FilterDetectionsCalculatorOptions.Parser, new[]{ "MinScore" }, null, null, new pb::Extension[] { global::Mediapipe.FilterDetectionsCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class FilterDetectionsCalculatorOptions : pb::IMessage<FilterDetectionsCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<FilterDetectionsCalculatorOptions> _parser = new pb::MessageParser<FilterDetectionsCalculatorOptions>(() => new FilterDetectionsCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<FilterDetectionsCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.FilterDetectionsCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FilterDetectionsCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FilterDetectionsCalculatorOptions(FilterDetectionsCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
minScore_ = other.minScore_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FilterDetectionsCalculatorOptions Clone() {
|
||||
return new FilterDetectionsCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "min_score" field.</summary>
|
||||
public const int MinScoreFieldNumber = 1;
|
||||
private readonly static float MinScoreDefaultValue = 0F;
|
||||
|
||||
private float minScore_;
|
||||
/// <summary>
|
||||
/// Detections lower than this score get filtered out.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float MinScore {
|
||||
get { if ((_hasBits0 & 1) != 0) { return minScore_; } else { return MinScoreDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
minScore_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "min_score" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasMinScore {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "min_score" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearMinScore() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as FilterDetectionsCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(FilterDetectionsCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MinScore, other.MinScore)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasMinScore) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MinScore);
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasMinScore) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(MinScore);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasMinScore) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(MinScore);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasMinScore) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(FilterDetectionsCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasMinScore) {
|
||||
MinScore = other.MinScore;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 13: {
|
||||
MinScore = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 13: {
|
||||
MinScore = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the FilterDetectionsCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.FilterDetectionsCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.FilterDetectionsCalculatorOptions>(395478132, pb::FieldCodec.ForMessage(3163825058, global::Mediapipe.FilterDetectionsCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 94c2ebbb491ab59199d9fcc65e409b3d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,853 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/labels_to_render_data_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/labels_to_render_data_calculator.proto</summary>
|
||||
public static partial class LabelsToRenderDataCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/labels_to_render_data_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static LabelsToRenderDataCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkFtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9sYWJlbHNfdG9fcmVuZGVy",
|
||||
"X2RhdGFfY2FsY3VsYXRvci5wcm90bxIJbWVkaWFwaXBlGiRtZWRpYXBpcGUv",
|
||||
"ZnJhbWV3b3JrL2NhbGN1bGF0b3IucHJvdG8aGm1lZGlhcGlwZS91dGlsL2Nv",
|
||||
"bG9yLnByb3RvItoECiNMYWJlbHNUb1JlbmRlckRhdGFDYWxjdWxhdG9yT3B0",
|
||||
"aW9ucxIfCgVjb2xvchgBIAMoCzIQLm1lZGlhcGlwZS5Db2xvchIUCgl0aGlj",
|
||||
"a25lc3MYAiABKAE6ATISJwoNb3V0bGluZV9jb2xvchgMIAMoCzIQLm1lZGlh",
|
||||
"cGlwZS5Db2xvchIZChFvdXRsaW5lX3RoaWNrbmVzcxgLIAEoARIaCg5mb250",
|
||||
"X2hlaWdodF9weBgDIAEoBToCNTASHwoUaG9yaXpvbnRhbF9vZmZzZXRfcHgY",
|
||||
"ByABKAU6ATASHQoSdmVydGljYWxfb2Zmc2V0X3B4GAggASgFOgEwEhkKDm1h",
|
||||
"eF9udW1fbGFiZWxzGAQgASgFOgExEhQKCWZvbnRfZmFjZRgFIAEoBToBMBJT",
|
||||
"Cghsb2NhdGlvbhgGIAEoDjI3Lm1lZGlhcGlwZS5MYWJlbHNUb1JlbmRlckRh",
|
||||
"dGFDYWxjdWxhdG9yT3B0aW9ucy5Mb2NhdGlvbjoIVE9QX0xFRlQSHwoQdXNl",
|
||||
"X2Rpc3BsYXlfbmFtZRgJIAEoCDoFZmFsc2USKwocZGlzcGxheV9jbGFzc2lm",
|
||||
"aWNhdGlvbl9zY29yZRgKIAEoCDoFZmFsc2UiKQoITG9jYXRpb24SDAoIVE9Q",
|
||||
"X0xFRlQQABIPCgtCT1RUT01fTEVGVBABMl0KA2V4dBIcLm1lZGlhcGlwZS5D",
|
||||
"YWxjdWxhdG9yT3B0aW9ucxjM6sSBASABKAsyLi5tZWRpYXBpcGUuTGFiZWxz",
|
||||
"VG9SZW5kZXJEYXRhQ2FsY3VsYXRvck9wdGlvbnM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, global::Mediapipe.ColorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.LabelsToRenderDataCalculatorOptions), global::Mediapipe.LabelsToRenderDataCalculatorOptions.Parser, new[]{ "Color", "Thickness", "OutlineColor", "OutlineThickness", "FontHeightPx", "HorizontalOffsetPx", "VerticalOffsetPx", "MaxNumLabels", "FontFace", "Location", "UseDisplayName", "DisplayClassificationScore" }, null, new[]{ typeof(global::Mediapipe.LabelsToRenderDataCalculatorOptions.Types.Location) }, new pb::Extension[] { global::Mediapipe.LabelsToRenderDataCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class LabelsToRenderDataCalculatorOptions : pb::IMessage<LabelsToRenderDataCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<LabelsToRenderDataCalculatorOptions> _parser = new pb::MessageParser<LabelsToRenderDataCalculatorOptions>(() => new LabelsToRenderDataCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<LabelsToRenderDataCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.LabelsToRenderDataCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LabelsToRenderDataCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LabelsToRenderDataCalculatorOptions(LabelsToRenderDataCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
color_ = other.color_.Clone();
|
||||
thickness_ = other.thickness_;
|
||||
outlineColor_ = other.outlineColor_.Clone();
|
||||
outlineThickness_ = other.outlineThickness_;
|
||||
fontHeightPx_ = other.fontHeightPx_;
|
||||
horizontalOffsetPx_ = other.horizontalOffsetPx_;
|
||||
verticalOffsetPx_ = other.verticalOffsetPx_;
|
||||
maxNumLabels_ = other.maxNumLabels_;
|
||||
fontFace_ = other.fontFace_;
|
||||
location_ = other.location_;
|
||||
useDisplayName_ = other.useDisplayName_;
|
||||
displayClassificationScore_ = other.displayClassificationScore_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LabelsToRenderDataCalculatorOptions Clone() {
|
||||
return new LabelsToRenderDataCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "color" field.</summary>
|
||||
public const int ColorFieldNumber = 1;
|
||||
private static readonly pb::FieldCodec<global::Mediapipe.Color> _repeated_color_codec
|
||||
= pb::FieldCodec.ForMessage(10, global::Mediapipe.Color.Parser);
|
||||
private readonly pbc::RepeatedField<global::Mediapipe.Color> color_ = new pbc::RepeatedField<global::Mediapipe.Color>();
|
||||
/// <summary>
|
||||
/// Colors for drawing the label(s).
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<global::Mediapipe.Color> Color {
|
||||
get { return color_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "thickness" field.</summary>
|
||||
public const int ThicknessFieldNumber = 2;
|
||||
private readonly static double ThicknessDefaultValue = 2D;
|
||||
|
||||
private double thickness_;
|
||||
/// <summary>
|
||||
/// Thickness for drawing the label(s).
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double Thickness {
|
||||
get { if ((_hasBits0 & 1) != 0) { return thickness_; } else { return ThicknessDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
thickness_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "thickness" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasThickness {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "thickness" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearThickness() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "outline_color" field.</summary>
|
||||
public const int OutlineColorFieldNumber = 12;
|
||||
private static readonly pb::FieldCodec<global::Mediapipe.Color> _repeated_outlineColor_codec
|
||||
= pb::FieldCodec.ForMessage(98, global::Mediapipe.Color.Parser);
|
||||
private readonly pbc::RepeatedField<global::Mediapipe.Color> outlineColor_ = new pbc::RepeatedField<global::Mediapipe.Color>();
|
||||
/// <summary>
|
||||
/// Color of outline around each character, if any. One per label, as with
|
||||
/// color attribute.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<global::Mediapipe.Color> OutlineColor {
|
||||
get { return outlineColor_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "outline_thickness" field.</summary>
|
||||
public const int OutlineThicknessFieldNumber = 11;
|
||||
private readonly static double OutlineThicknessDefaultValue = 0D;
|
||||
|
||||
private double outlineThickness_;
|
||||
/// <summary>
|
||||
/// Thickness of outline around each character.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double OutlineThickness {
|
||||
get { if ((_hasBits0 & 512) != 0) { return outlineThickness_; } else { return OutlineThicknessDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 512;
|
||||
outlineThickness_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "outline_thickness" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasOutlineThickness {
|
||||
get { return (_hasBits0 & 512) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "outline_thickness" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearOutlineThickness() {
|
||||
_hasBits0 &= ~512;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "font_height_px" field.</summary>
|
||||
public const int FontHeightPxFieldNumber = 3;
|
||||
private readonly static int FontHeightPxDefaultValue = 50;
|
||||
|
||||
private int fontHeightPx_;
|
||||
/// <summary>
|
||||
/// The font height in absolute pixels.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int FontHeightPx {
|
||||
get { if ((_hasBits0 & 2) != 0) { return fontHeightPx_; } else { return FontHeightPxDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
fontHeightPx_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "font_height_px" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasFontHeightPx {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "font_height_px" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearFontHeightPx() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "horizontal_offset_px" field.</summary>
|
||||
public const int HorizontalOffsetPxFieldNumber = 7;
|
||||
private readonly static int HorizontalOffsetPxDefaultValue = 0;
|
||||
|
||||
private int horizontalOffsetPx_;
|
||||
/// <summary>
|
||||
/// The offset of the starting text in horizontal direction in absolute pixels.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int HorizontalOffsetPx {
|
||||
get { if ((_hasBits0 & 32) != 0) { return horizontalOffsetPx_; } else { return HorizontalOffsetPxDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 32;
|
||||
horizontalOffsetPx_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "horizontal_offset_px" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasHorizontalOffsetPx {
|
||||
get { return (_hasBits0 & 32) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "horizontal_offset_px" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearHorizontalOffsetPx() {
|
||||
_hasBits0 &= ~32;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "vertical_offset_px" field.</summary>
|
||||
public const int VerticalOffsetPxFieldNumber = 8;
|
||||
private readonly static int VerticalOffsetPxDefaultValue = 0;
|
||||
|
||||
private int verticalOffsetPx_;
|
||||
/// <summary>
|
||||
/// The offset of the starting text in vertical direction in absolute pixels.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int VerticalOffsetPx {
|
||||
get { if ((_hasBits0 & 64) != 0) { return verticalOffsetPx_; } else { return VerticalOffsetPxDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 64;
|
||||
verticalOffsetPx_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "vertical_offset_px" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasVerticalOffsetPx {
|
||||
get { return (_hasBits0 & 64) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "vertical_offset_px" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearVerticalOffsetPx() {
|
||||
_hasBits0 &= ~64;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "max_num_labels" field.</summary>
|
||||
public const int MaxNumLabelsFieldNumber = 4;
|
||||
private readonly static int MaxNumLabelsDefaultValue = 1;
|
||||
|
||||
private int maxNumLabels_;
|
||||
/// <summary>
|
||||
/// The maximum number of labels to display.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int MaxNumLabels {
|
||||
get { if ((_hasBits0 & 4) != 0) { return maxNumLabels_; } else { return MaxNumLabelsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
maxNumLabels_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "max_num_labels" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasMaxNumLabels {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "max_num_labels" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearMaxNumLabels() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "font_face" field.</summary>
|
||||
public const int FontFaceFieldNumber = 5;
|
||||
private readonly static int FontFaceDefaultValue = 0;
|
||||
|
||||
private int fontFace_;
|
||||
/// <summary>
|
||||
/// Specifies the font for the text. Font must be one of the following from
|
||||
/// OpenCV:
|
||||
/// cv::FONT_HERSHEY_SIMPLEX (0)
|
||||
/// cv::FONT_HERSHEY_PLAIN (1)
|
||||
/// cv::FONT_HERSHEY_DUPLEX (2)
|
||||
/// cv::FONT_HERSHEY_COMPLEX (3)
|
||||
/// cv::FONT_HERSHEY_TRIPLEX (4)
|
||||
/// cv::FONT_HERSHEY_COMPLEX_SMALL (5)
|
||||
/// cv::FONT_HERSHEY_SCRIPT_SIMPLEX (6)
|
||||
/// cv::FONT_HERSHEY_SCRIPT_COMPLEX (7)
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int FontFace {
|
||||
get { if ((_hasBits0 & 8) != 0) { return fontFace_; } else { return FontFaceDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
fontFace_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "font_face" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasFontFace {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "font_face" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearFontFace() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "location" field.</summary>
|
||||
public const int LocationFieldNumber = 6;
|
||||
private readonly static global::Mediapipe.LabelsToRenderDataCalculatorOptions.Types.Location LocationDefaultValue = global::Mediapipe.LabelsToRenderDataCalculatorOptions.Types.Location.TopLeft;
|
||||
|
||||
private global::Mediapipe.LabelsToRenderDataCalculatorOptions.Types.Location location_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.LabelsToRenderDataCalculatorOptions.Types.Location Location {
|
||||
get { if ((_hasBits0 & 16) != 0) { return location_; } else { return LocationDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
location_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "location" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasLocation {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "location" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearLocation() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "use_display_name" field.</summary>
|
||||
public const int UseDisplayNameFieldNumber = 9;
|
||||
private readonly static bool UseDisplayNameDefaultValue = false;
|
||||
|
||||
private bool useDisplayName_;
|
||||
/// <summary>
|
||||
/// Uses Classification.display_name field instead of Classification.label.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool UseDisplayName {
|
||||
get { if ((_hasBits0 & 128) != 0) { return useDisplayName_; } else { return UseDisplayNameDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 128;
|
||||
useDisplayName_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "use_display_name" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasUseDisplayName {
|
||||
get { return (_hasBits0 & 128) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "use_display_name" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearUseDisplayName() {
|
||||
_hasBits0 &= ~128;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "display_classification_score" field.</summary>
|
||||
public const int DisplayClassificationScoreFieldNumber = 10;
|
||||
private readonly static bool DisplayClassificationScoreDefaultValue = false;
|
||||
|
||||
private bool displayClassificationScore_;
|
||||
/// <summary>
|
||||
/// Displays Classification score if enabled.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool DisplayClassificationScore {
|
||||
get { if ((_hasBits0 & 256) != 0) { return displayClassificationScore_; } else { return DisplayClassificationScoreDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 256;
|
||||
displayClassificationScore_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "display_classification_score" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasDisplayClassificationScore {
|
||||
get { return (_hasBits0 & 256) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "display_classification_score" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearDisplayClassificationScore() {
|
||||
_hasBits0 &= ~256;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as LabelsToRenderDataCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(LabelsToRenderDataCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if(!color_.Equals(other.color_)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Thickness, other.Thickness)) return false;
|
||||
if(!outlineColor_.Equals(other.outlineColor_)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OutlineThickness, other.OutlineThickness)) return false;
|
||||
if (FontHeightPx != other.FontHeightPx) return false;
|
||||
if (HorizontalOffsetPx != other.HorizontalOffsetPx) return false;
|
||||
if (VerticalOffsetPx != other.VerticalOffsetPx) return false;
|
||||
if (MaxNumLabels != other.MaxNumLabels) return false;
|
||||
if (FontFace != other.FontFace) return false;
|
||||
if (Location != other.Location) return false;
|
||||
if (UseDisplayName != other.UseDisplayName) return false;
|
||||
if (DisplayClassificationScore != other.DisplayClassificationScore) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
hash ^= color_.GetHashCode();
|
||||
if (HasThickness) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Thickness);
|
||||
hash ^= outlineColor_.GetHashCode();
|
||||
if (HasOutlineThickness) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OutlineThickness);
|
||||
if (HasFontHeightPx) hash ^= FontHeightPx.GetHashCode();
|
||||
if (HasHorizontalOffsetPx) hash ^= HorizontalOffsetPx.GetHashCode();
|
||||
if (HasVerticalOffsetPx) hash ^= VerticalOffsetPx.GetHashCode();
|
||||
if (HasMaxNumLabels) hash ^= MaxNumLabels.GetHashCode();
|
||||
if (HasFontFace) hash ^= FontFace.GetHashCode();
|
||||
if (HasLocation) hash ^= Location.GetHashCode();
|
||||
if (HasUseDisplayName) hash ^= UseDisplayName.GetHashCode();
|
||||
if (HasDisplayClassificationScore) hash ^= DisplayClassificationScore.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
color_.WriteTo(output, _repeated_color_codec);
|
||||
if (HasThickness) {
|
||||
output.WriteRawTag(17);
|
||||
output.WriteDouble(Thickness);
|
||||
}
|
||||
if (HasFontHeightPx) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(FontHeightPx);
|
||||
}
|
||||
if (HasMaxNumLabels) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteInt32(MaxNumLabels);
|
||||
}
|
||||
if (HasFontFace) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteInt32(FontFace);
|
||||
}
|
||||
if (HasLocation) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteEnum((int) Location);
|
||||
}
|
||||
if (HasHorizontalOffsetPx) {
|
||||
output.WriteRawTag(56);
|
||||
output.WriteInt32(HorizontalOffsetPx);
|
||||
}
|
||||
if (HasVerticalOffsetPx) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteInt32(VerticalOffsetPx);
|
||||
}
|
||||
if (HasUseDisplayName) {
|
||||
output.WriteRawTag(72);
|
||||
output.WriteBool(UseDisplayName);
|
||||
}
|
||||
if (HasDisplayClassificationScore) {
|
||||
output.WriteRawTag(80);
|
||||
output.WriteBool(DisplayClassificationScore);
|
||||
}
|
||||
if (HasOutlineThickness) {
|
||||
output.WriteRawTag(89);
|
||||
output.WriteDouble(OutlineThickness);
|
||||
}
|
||||
outlineColor_.WriteTo(output, _repeated_outlineColor_codec);
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
color_.WriteTo(ref output, _repeated_color_codec);
|
||||
if (HasThickness) {
|
||||
output.WriteRawTag(17);
|
||||
output.WriteDouble(Thickness);
|
||||
}
|
||||
if (HasFontHeightPx) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(FontHeightPx);
|
||||
}
|
||||
if (HasMaxNumLabels) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteInt32(MaxNumLabels);
|
||||
}
|
||||
if (HasFontFace) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteInt32(FontFace);
|
||||
}
|
||||
if (HasLocation) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteEnum((int) Location);
|
||||
}
|
||||
if (HasHorizontalOffsetPx) {
|
||||
output.WriteRawTag(56);
|
||||
output.WriteInt32(HorizontalOffsetPx);
|
||||
}
|
||||
if (HasVerticalOffsetPx) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteInt32(VerticalOffsetPx);
|
||||
}
|
||||
if (HasUseDisplayName) {
|
||||
output.WriteRawTag(72);
|
||||
output.WriteBool(UseDisplayName);
|
||||
}
|
||||
if (HasDisplayClassificationScore) {
|
||||
output.WriteRawTag(80);
|
||||
output.WriteBool(DisplayClassificationScore);
|
||||
}
|
||||
if (HasOutlineThickness) {
|
||||
output.WriteRawTag(89);
|
||||
output.WriteDouble(OutlineThickness);
|
||||
}
|
||||
outlineColor_.WriteTo(ref output, _repeated_outlineColor_codec);
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
size += color_.CalculateSize(_repeated_color_codec);
|
||||
if (HasThickness) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
size += outlineColor_.CalculateSize(_repeated_outlineColor_codec);
|
||||
if (HasOutlineThickness) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasFontHeightPx) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(FontHeightPx);
|
||||
}
|
||||
if (HasHorizontalOffsetPx) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(HorizontalOffsetPx);
|
||||
}
|
||||
if (HasVerticalOffsetPx) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(VerticalOffsetPx);
|
||||
}
|
||||
if (HasMaxNumLabels) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxNumLabels);
|
||||
}
|
||||
if (HasFontFace) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(FontFace);
|
||||
}
|
||||
if (HasLocation) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Location);
|
||||
}
|
||||
if (HasUseDisplayName) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasDisplayClassificationScore) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(LabelsToRenderDataCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
color_.Add(other.color_);
|
||||
if (other.HasThickness) {
|
||||
Thickness = other.Thickness;
|
||||
}
|
||||
outlineColor_.Add(other.outlineColor_);
|
||||
if (other.HasOutlineThickness) {
|
||||
OutlineThickness = other.OutlineThickness;
|
||||
}
|
||||
if (other.HasFontHeightPx) {
|
||||
FontHeightPx = other.FontHeightPx;
|
||||
}
|
||||
if (other.HasHorizontalOffsetPx) {
|
||||
HorizontalOffsetPx = other.HorizontalOffsetPx;
|
||||
}
|
||||
if (other.HasVerticalOffsetPx) {
|
||||
VerticalOffsetPx = other.VerticalOffsetPx;
|
||||
}
|
||||
if (other.HasMaxNumLabels) {
|
||||
MaxNumLabels = other.MaxNumLabels;
|
||||
}
|
||||
if (other.HasFontFace) {
|
||||
FontFace = other.FontFace;
|
||||
}
|
||||
if (other.HasLocation) {
|
||||
Location = other.Location;
|
||||
}
|
||||
if (other.HasUseDisplayName) {
|
||||
UseDisplayName = other.UseDisplayName;
|
||||
}
|
||||
if (other.HasDisplayClassificationScore) {
|
||||
DisplayClassificationScore = other.DisplayClassificationScore;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 10: {
|
||||
color_.AddEntriesFrom(input, _repeated_color_codec);
|
||||
break;
|
||||
}
|
||||
case 17: {
|
||||
Thickness = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
FontHeightPx = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
MaxNumLabels = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
FontFace = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
Location = (global::Mediapipe.LabelsToRenderDataCalculatorOptions.Types.Location) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 56: {
|
||||
HorizontalOffsetPx = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
VerticalOffsetPx = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 72: {
|
||||
UseDisplayName = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 80: {
|
||||
DisplayClassificationScore = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 89: {
|
||||
OutlineThickness = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 98: {
|
||||
outlineColor_.AddEntriesFrom(input, _repeated_outlineColor_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 10: {
|
||||
color_.AddEntriesFrom(ref input, _repeated_color_codec);
|
||||
break;
|
||||
}
|
||||
case 17: {
|
||||
Thickness = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
FontHeightPx = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
MaxNumLabels = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
FontFace = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
Location = (global::Mediapipe.LabelsToRenderDataCalculatorOptions.Types.Location) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 56: {
|
||||
HorizontalOffsetPx = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
VerticalOffsetPx = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 72: {
|
||||
UseDisplayName = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 80: {
|
||||
DisplayClassificationScore = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 89: {
|
||||
OutlineThickness = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 98: {
|
||||
outlineColor_.AddEntriesFrom(ref input, _repeated_outlineColor_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Nested types
|
||||
/// <summary>Container for nested types declared in the LabelsToRenderDataCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Types {
|
||||
/// <summary>
|
||||
/// Label location.
|
||||
/// </summary>
|
||||
public enum Location {
|
||||
[pbr::OriginalName("TOP_LEFT")] TopLeft = 0,
|
||||
[pbr::OriginalName("BOTTOM_LEFT")] BottomLeft = 1,
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the LabelsToRenderDataCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.LabelsToRenderDataCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.LabelsToRenderDataCalculatorOptions>(271660364, pb::FieldCodec.ForMessage(2173282914, global::Mediapipe.LabelsToRenderDataCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fb6af299f03ecbd54b8998d4cc32c065
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,267 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/landmark_projection_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/landmark_projection_calculator.proto</summary>
|
||||
public static partial class LandmarkProjectionCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/landmark_projection_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static LandmarkProjectionCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Cj9tZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9sYW5kbWFya19wcm9qZWN0",
|
||||
"aW9uX2NhbGN1bGF0b3IucHJvdG8SCW1lZGlhcGlwZRokbWVkaWFwaXBlL2Zy",
|
||||
"YW1ld29yay9jYWxjdWxhdG9yLnByb3RvIqMBCiNMYW5kbWFya1Byb2plY3Rp",
|
||||
"b25DYWxjdWxhdG9yT3B0aW9ucxIeCg9pZ25vcmVfcm90YXRpb24YASABKAg6",
|
||||
"BWZhbHNlMlwKA2V4dBIcLm1lZGlhcGlwZS5DYWxjdWxhdG9yT3B0aW9ucxj0",
|
||||
"+Mp9IAEoCzIuLm1lZGlhcGlwZS5MYW5kbWFya1Byb2plY3Rpb25DYWxjdWxh",
|
||||
"dG9yT3B0aW9ucw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.LandmarkProjectionCalculatorOptions), global::Mediapipe.LandmarkProjectionCalculatorOptions.Parser, new[]{ "IgnoreRotation" }, null, null, new pb::Extension[] { global::Mediapipe.LandmarkProjectionCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class LandmarkProjectionCalculatorOptions : pb::IMessage<LandmarkProjectionCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<LandmarkProjectionCalculatorOptions> _parser = new pb::MessageParser<LandmarkProjectionCalculatorOptions>(() => new LandmarkProjectionCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<LandmarkProjectionCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.LandmarkProjectionCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LandmarkProjectionCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LandmarkProjectionCalculatorOptions(LandmarkProjectionCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
ignoreRotation_ = other.ignoreRotation_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LandmarkProjectionCalculatorOptions Clone() {
|
||||
return new LandmarkProjectionCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "ignore_rotation" field.</summary>
|
||||
public const int IgnoreRotationFieldNumber = 1;
|
||||
private readonly static bool IgnoreRotationDefaultValue = false;
|
||||
|
||||
private bool ignoreRotation_;
|
||||
/// <summary>
|
||||
/// Ignore the rotation field of rect proto for projection.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool IgnoreRotation {
|
||||
get { if ((_hasBits0 & 1) != 0) { return ignoreRotation_; } else { return IgnoreRotationDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
ignoreRotation_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "ignore_rotation" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasIgnoreRotation {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "ignore_rotation" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearIgnoreRotation() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as LandmarkProjectionCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(LandmarkProjectionCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (IgnoreRotation != other.IgnoreRotation) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasIgnoreRotation) hash ^= IgnoreRotation.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasIgnoreRotation) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(IgnoreRotation);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasIgnoreRotation) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(IgnoreRotation);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasIgnoreRotation) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(LandmarkProjectionCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasIgnoreRotation) {
|
||||
IgnoreRotation = other.IgnoreRotation;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
IgnoreRotation = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
IgnoreRotation = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the LandmarkProjectionCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.LandmarkProjectionCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.LandmarkProjectionCalculatorOptions>(263371892, pb::FieldCodec.ForMessage(2106975138, global::Mediapipe.LandmarkProjectionCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ced62f2b6244ce807b131a90c01648e3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 99ef370b31f170f39bc5665dfb5da1ea
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,241 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/landmarks_to_detection_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/landmarks_to_detection_calculator.proto</summary>
|
||||
public static partial class LandmarksToDetectionCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/landmarks_to_detection_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static LandmarksToDetectionCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkJtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9sYW5kbWFya3NfdG9fZGV0",
|
||||
"ZWN0aW9uX2NhbGN1bGF0b3IucHJvdG8SCW1lZGlhcGlwZRokbWVkaWFwaXBl",
|
||||
"L2ZyYW1ld29yay9jYWxjdWxhdG9yLnByb3RvIqoBCiVMYW5kbWFya3NUb0Rl",
|
||||
"dGVjdGlvbkNhbGN1bGF0b3JPcHRpb25zEiEKGXNlbGVjdGVkX2xhbmRtYXJr",
|
||||
"X2luZGljZXMYASADKAUyXgoDZXh0EhwubWVkaWFwaXBlLkNhbGN1bGF0b3JP",
|
||||
"cHRpb25zGPWpiXwgASgLMjAubWVkaWFwaXBlLkxhbmRtYXJrc1RvRGV0ZWN0",
|
||||
"aW9uQ2FsY3VsYXRvck9wdGlvbnM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.LandmarksToDetectionCalculatorOptions), global::Mediapipe.LandmarksToDetectionCalculatorOptions.Parser, new[]{ "SelectedLandmarkIndices" }, null, null, new pb::Extension[] { global::Mediapipe.LandmarksToDetectionCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class LandmarksToDetectionCalculatorOptions : pb::IMessage<LandmarksToDetectionCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<LandmarksToDetectionCalculatorOptions> _parser = new pb::MessageParser<LandmarksToDetectionCalculatorOptions>(() => new LandmarksToDetectionCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<LandmarksToDetectionCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.LandmarksToDetectionCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LandmarksToDetectionCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LandmarksToDetectionCalculatorOptions(LandmarksToDetectionCalculatorOptions other) : this() {
|
||||
selectedLandmarkIndices_ = other.selectedLandmarkIndices_.Clone();
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LandmarksToDetectionCalculatorOptions Clone() {
|
||||
return new LandmarksToDetectionCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "selected_landmark_indices" field.</summary>
|
||||
public const int SelectedLandmarkIndicesFieldNumber = 1;
|
||||
private static readonly pb::FieldCodec<int> _repeated_selectedLandmarkIndices_codec
|
||||
= pb::FieldCodec.ForInt32(8);
|
||||
private readonly pbc::RepeatedField<int> selectedLandmarkIndices_ = new pbc::RepeatedField<int>();
|
||||
/// <summary>
|
||||
/// A subset of indices to be included when creating the detection.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<int> SelectedLandmarkIndices {
|
||||
get { return selectedLandmarkIndices_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as LandmarksToDetectionCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(LandmarksToDetectionCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if(!selectedLandmarkIndices_.Equals(other.selectedLandmarkIndices_)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
hash ^= selectedLandmarkIndices_.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
selectedLandmarkIndices_.WriteTo(output, _repeated_selectedLandmarkIndices_codec);
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
selectedLandmarkIndices_.WriteTo(ref output, _repeated_selectedLandmarkIndices_codec);
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
size += selectedLandmarkIndices_.CalculateSize(_repeated_selectedLandmarkIndices_codec);
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(LandmarksToDetectionCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
selectedLandmarkIndices_.Add(other.selectedLandmarkIndices_);
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 10:
|
||||
case 8: {
|
||||
selectedLandmarkIndices_.AddEntriesFrom(input, _repeated_selectedLandmarkIndices_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 10:
|
||||
case 8: {
|
||||
selectedLandmarkIndices_.AddEntriesFrom(ref input, _repeated_selectedLandmarkIndices_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the LandmarksToDetectionCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.LandmarksToDetectionCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.LandmarksToDetectionCalculatorOptions>(260199669, pb::FieldCodec.ForMessage(2081597354, global::Mediapipe.LandmarksToDetectionCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3d172b181791a46859a1a2162ac85e91
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,267 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/landmarks_to_floats_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/landmarks_to_floats_calculator.proto</summary>
|
||||
public static partial class LandmarksToFloatsCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/landmarks_to_floats_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static LandmarksToFloatsCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Cj9tZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9sYW5kbWFya3NfdG9fZmxv",
|
||||
"YXRzX2NhbGN1bGF0b3IucHJvdG8SCW1lZGlhcGlwZRokbWVkaWFwaXBlL2Zy",
|
||||
"YW1ld29yay9jYWxjdWxhdG9yLnByb3RvIp0BCiJMYW5kbWFya3NUb0Zsb2F0",
|
||||
"c0NhbGN1bGF0b3JPcHRpb25zEhkKDm51bV9kaW1lbnNpb25zGAEgASgFOgEy",
|
||||
"MlwKA2V4dBIcLm1lZGlhcGlwZS5DYWxjdWxhdG9yT3B0aW9ucxjM59WCASAB",
|
||||
"KAsyLS5tZWRpYXBpcGUuTGFuZG1hcmtzVG9GbG9hdHNDYWxjdWxhdG9yT3B0",
|
||||
"aW9ucw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.LandmarksToFloatsCalculatorOptions), global::Mediapipe.LandmarksToFloatsCalculatorOptions.Parser, new[]{ "NumDimensions" }, null, null, new pb::Extension[] { global::Mediapipe.LandmarksToFloatsCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class LandmarksToFloatsCalculatorOptions : pb::IMessage<LandmarksToFloatsCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<LandmarksToFloatsCalculatorOptions> _parser = new pb::MessageParser<LandmarksToFloatsCalculatorOptions>(() => new LandmarksToFloatsCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<LandmarksToFloatsCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.LandmarksToFloatsCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LandmarksToFloatsCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LandmarksToFloatsCalculatorOptions(LandmarksToFloatsCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
numDimensions_ = other.numDimensions_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LandmarksToFloatsCalculatorOptions Clone() {
|
||||
return new LandmarksToFloatsCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "num_dimensions" field.</summary>
|
||||
public const int NumDimensionsFieldNumber = 1;
|
||||
private readonly static int NumDimensionsDefaultValue = 2;
|
||||
|
||||
private int numDimensions_;
|
||||
/// <summary>
|
||||
/// Number of dimensions to convert. Must within [1, 3].
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int NumDimensions {
|
||||
get { if ((_hasBits0 & 1) != 0) { return numDimensions_; } else { return NumDimensionsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
numDimensions_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "num_dimensions" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNumDimensions {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "num_dimensions" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNumDimensions() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as LandmarksToFloatsCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(LandmarksToFloatsCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (NumDimensions != other.NumDimensions) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasNumDimensions) hash ^= NumDimensions.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasNumDimensions) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(NumDimensions);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasNumDimensions) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(NumDimensions);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasNumDimensions) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumDimensions);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(LandmarksToFloatsCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasNumDimensions) {
|
||||
NumDimensions = other.NumDimensions;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
NumDimensions = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
NumDimensions = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the LandmarksToFloatsCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.LandmarksToFloatsCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.LandmarksToFloatsCalculatorOptions>(274035660, pb::FieldCodec.ForMessage(2192285282, global::Mediapipe.LandmarksToFloatsCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4aa5bcb0d3b4c9dd9a8175ced9912e9d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,899 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/landmarks_to_render_data_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/landmarks_to_render_data_calculator.proto</summary>
|
||||
public static partial class LandmarksToRenderDataCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/landmarks_to_render_data_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static LandmarksToRenderDataCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkRtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9sYW5kbWFya3NfdG9fcmVu",
|
||||
"ZGVyX2RhdGFfY2FsY3VsYXRvci5wcm90bxIJbWVkaWFwaXBlGiRtZWRpYXBp",
|
||||
"cGUvZnJhbWV3b3JrL2NhbGN1bGF0b3IucHJvdG8aGm1lZGlhcGlwZS91dGls",
|
||||
"L2NvbG9yLnByb3RvIu4ECiZMYW5kbWFya3NUb1JlbmRlckRhdGFDYWxjdWxh",
|
||||
"dG9yT3B0aW9ucxIcChRsYW5kbWFya19jb25uZWN0aW9ucxgBIAMoBRIoCg5s",
|
||||
"YW5kbWFya19jb2xvchgCIAEoCzIQLm1lZGlhcGlwZS5Db2xvchIqChBjb25u",
|
||||
"ZWN0aW9uX2NvbG9yGAMgASgLMhAubWVkaWFwaXBlLkNvbG9yEhQKCXRoaWNr",
|
||||
"bmVzcxgEIAEoAToBMRImChh2aXN1YWxpemVfbGFuZG1hcmtfZGVwdGgYBSAB",
|
||||
"KAg6BHRydWUSIQoSdXRpbGl6ZV92aXNpYmlsaXR5GAYgASgIOgVmYWxzZRIf",
|
||||
"ChR2aXNpYmlsaXR5X3RocmVzaG9sZBgHIAEoAToBMBIfChB1dGlsaXplX3By",
|
||||
"ZXNlbmNlGAggASgIOgVmYWxzZRIdChJwcmVzZW5jZV90aHJlc2hvbGQYCSAB",
|
||||
"KAE6ATASJQoabWluX2RlcHRoX2NpcmNsZV90aGlja25lc3MYCiABKAE6ATAS",
|
||||
"JgoabWF4X2RlcHRoX2NpcmNsZV90aGlja25lc3MYCyABKAE6AjE4Ei4KFG1p",
|
||||
"bl9kZXB0aF9saW5lX2NvbG9yGAwgASgLMhAubWVkaWFwaXBlLkNvbG9yEi4K",
|
||||
"FG1heF9kZXB0aF9saW5lX2NvbG9yGA0gASgLMhAubWVkaWFwaXBlLkNvbG9y",
|
||||
"Ml8KA2V4dBIcLm1lZGlhcGlwZS5DYWxjdWxhdG9yT3B0aW9ucxi90p17IAEo",
|
||||
"CzIxLm1lZGlhcGlwZS5MYW5kbWFya3NUb1JlbmRlckRhdGFDYWxjdWxhdG9y",
|
||||
"T3B0aW9ucw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, global::Mediapipe.ColorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.LandmarksToRenderDataCalculatorOptions), global::Mediapipe.LandmarksToRenderDataCalculatorOptions.Parser, new[]{ "LandmarkConnections", "LandmarkColor", "ConnectionColor", "Thickness", "VisualizeLandmarkDepth", "UtilizeVisibility", "VisibilityThreshold", "UtilizePresence", "PresenceThreshold", "MinDepthCircleThickness", "MaxDepthCircleThickness", "MinDepthLineColor", "MaxDepthLineColor" }, null, null, new pb::Extension[] { global::Mediapipe.LandmarksToRenderDataCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class LandmarksToRenderDataCalculatorOptions : pb::IMessage<LandmarksToRenderDataCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<LandmarksToRenderDataCalculatorOptions> _parser = new pb::MessageParser<LandmarksToRenderDataCalculatorOptions>(() => new LandmarksToRenderDataCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<LandmarksToRenderDataCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.LandmarksToRenderDataCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LandmarksToRenderDataCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LandmarksToRenderDataCalculatorOptions(LandmarksToRenderDataCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
landmarkConnections_ = other.landmarkConnections_.Clone();
|
||||
landmarkColor_ = other.landmarkColor_ != null ? other.landmarkColor_.Clone() : null;
|
||||
connectionColor_ = other.connectionColor_ != null ? other.connectionColor_.Clone() : null;
|
||||
thickness_ = other.thickness_;
|
||||
visualizeLandmarkDepth_ = other.visualizeLandmarkDepth_;
|
||||
utilizeVisibility_ = other.utilizeVisibility_;
|
||||
visibilityThreshold_ = other.visibilityThreshold_;
|
||||
utilizePresence_ = other.utilizePresence_;
|
||||
presenceThreshold_ = other.presenceThreshold_;
|
||||
minDepthCircleThickness_ = other.minDepthCircleThickness_;
|
||||
maxDepthCircleThickness_ = other.maxDepthCircleThickness_;
|
||||
minDepthLineColor_ = other.minDepthLineColor_ != null ? other.minDepthLineColor_.Clone() : null;
|
||||
maxDepthLineColor_ = other.maxDepthLineColor_ != null ? other.maxDepthLineColor_.Clone() : null;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LandmarksToRenderDataCalculatorOptions Clone() {
|
||||
return new LandmarksToRenderDataCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "landmark_connections" field.</summary>
|
||||
public const int LandmarkConnectionsFieldNumber = 1;
|
||||
private static readonly pb::FieldCodec<int> _repeated_landmarkConnections_codec
|
||||
= pb::FieldCodec.ForInt32(8);
|
||||
private readonly pbc::RepeatedField<int> landmarkConnections_ = new pbc::RepeatedField<int>();
|
||||
/// <summary>
|
||||
/// Specifies the landmarks to be connected in the drawing. For example, the
|
||||
/// landmark_connections value of [0, 1, 1, 2] specifies two connections: one
|
||||
/// that connects landmarks with index 0 and 1, and another that connects
|
||||
/// landmarks with index 1 and 2.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<int> LandmarkConnections {
|
||||
get { return landmarkConnections_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "landmark_color" field.</summary>
|
||||
public const int LandmarkColorFieldNumber = 2;
|
||||
private global::Mediapipe.Color landmarkColor_;
|
||||
/// <summary>
|
||||
/// Color of the landmarks.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.Color LandmarkColor {
|
||||
get { return landmarkColor_; }
|
||||
set {
|
||||
landmarkColor_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "connection_color" field.</summary>
|
||||
public const int ConnectionColorFieldNumber = 3;
|
||||
private global::Mediapipe.Color connectionColor_;
|
||||
/// <summary>
|
||||
/// Color of the connections.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.Color ConnectionColor {
|
||||
get { return connectionColor_; }
|
||||
set {
|
||||
connectionColor_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "thickness" field.</summary>
|
||||
public const int ThicknessFieldNumber = 4;
|
||||
private readonly static double ThicknessDefaultValue = 1D;
|
||||
|
||||
private double thickness_;
|
||||
/// <summary>
|
||||
/// Thickness of the drawing of landmarks and connections.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double Thickness {
|
||||
get { if ((_hasBits0 & 1) != 0) { return thickness_; } else { return ThicknessDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
thickness_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "thickness" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasThickness {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "thickness" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearThickness() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "visualize_landmark_depth" field.</summary>
|
||||
public const int VisualizeLandmarkDepthFieldNumber = 5;
|
||||
private readonly static bool VisualizeLandmarkDepthDefaultValue = true;
|
||||
|
||||
private bool visualizeLandmarkDepth_;
|
||||
/// <summary>
|
||||
/// Change color and size of rendered landmarks based on its z value.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool VisualizeLandmarkDepth {
|
||||
get { if ((_hasBits0 & 2) != 0) { return visualizeLandmarkDepth_; } else { return VisualizeLandmarkDepthDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
visualizeLandmarkDepth_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "visualize_landmark_depth" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasVisualizeLandmarkDepth {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "visualize_landmark_depth" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearVisualizeLandmarkDepth() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "utilize_visibility" field.</summary>
|
||||
public const int UtilizeVisibilityFieldNumber = 6;
|
||||
private readonly static bool UtilizeVisibilityDefaultValue = false;
|
||||
|
||||
private bool utilizeVisibility_;
|
||||
/// <summary>
|
||||
/// Use landmarks visibility while rendering landmarks and connections. If
|
||||
/// landmark is not visible, neither it nor adjacent connections will be
|
||||
/// rendered.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool UtilizeVisibility {
|
||||
get { if ((_hasBits0 & 4) != 0) { return utilizeVisibility_; } else { return UtilizeVisibilityDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
utilizeVisibility_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "utilize_visibility" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasUtilizeVisibility {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "utilize_visibility" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearUtilizeVisibility() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "visibility_threshold" field.</summary>
|
||||
public const int VisibilityThresholdFieldNumber = 7;
|
||||
private readonly static double VisibilityThresholdDefaultValue = 0D;
|
||||
|
||||
private double visibilityThreshold_;
|
||||
/// <summary>
|
||||
/// Threshold to determine visibility of the landmark. Landmark with visibility
|
||||
/// greater or equal than threshold is considered visible.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double VisibilityThreshold {
|
||||
get { if ((_hasBits0 & 8) != 0) { return visibilityThreshold_; } else { return VisibilityThresholdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
visibilityThreshold_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "visibility_threshold" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasVisibilityThreshold {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "visibility_threshold" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearVisibilityThreshold() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "utilize_presence" field.</summary>
|
||||
public const int UtilizePresenceFieldNumber = 8;
|
||||
private readonly static bool UtilizePresenceDefaultValue = false;
|
||||
|
||||
private bool utilizePresence_;
|
||||
/// <summary>
|
||||
/// Use landmarks presence while rendering landmarks and connections. If
|
||||
/// landmark is not present, neither it nor adjacent connections will be
|
||||
/// rendered.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool UtilizePresence {
|
||||
get { if ((_hasBits0 & 16) != 0) { return utilizePresence_; } else { return UtilizePresenceDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
utilizePresence_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "utilize_presence" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasUtilizePresence {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "utilize_presence" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearUtilizePresence() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "presence_threshold" field.</summary>
|
||||
public const int PresenceThresholdFieldNumber = 9;
|
||||
private readonly static double PresenceThresholdDefaultValue = 0D;
|
||||
|
||||
private double presenceThreshold_;
|
||||
/// <summary>
|
||||
/// Threshold to determine presence of the landmark. Landmark with presence
|
||||
/// greater or equal than threshold is considered present.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double PresenceThreshold {
|
||||
get { if ((_hasBits0 & 32) != 0) { return presenceThreshold_; } else { return PresenceThresholdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 32;
|
||||
presenceThreshold_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "presence_threshold" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasPresenceThreshold {
|
||||
get { return (_hasBits0 & 32) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "presence_threshold" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearPresenceThreshold() {
|
||||
_hasBits0 &= ~32;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "min_depth_circle_thickness" field.</summary>
|
||||
public const int MinDepthCircleThicknessFieldNumber = 10;
|
||||
private readonly static double MinDepthCircleThicknessDefaultValue = 0D;
|
||||
|
||||
private double minDepthCircleThickness_;
|
||||
/// <summary>
|
||||
/// Min thickness of the drawing for landmark circle.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double MinDepthCircleThickness {
|
||||
get { if ((_hasBits0 & 64) != 0) { return minDepthCircleThickness_; } else { return MinDepthCircleThicknessDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 64;
|
||||
minDepthCircleThickness_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "min_depth_circle_thickness" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasMinDepthCircleThickness {
|
||||
get { return (_hasBits0 & 64) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "min_depth_circle_thickness" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearMinDepthCircleThickness() {
|
||||
_hasBits0 &= ~64;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "max_depth_circle_thickness" field.</summary>
|
||||
public const int MaxDepthCircleThicknessFieldNumber = 11;
|
||||
private readonly static double MaxDepthCircleThicknessDefaultValue = 18D;
|
||||
|
||||
private double maxDepthCircleThickness_;
|
||||
/// <summary>
|
||||
/// Max thickness of the drawing for landmark circle.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double MaxDepthCircleThickness {
|
||||
get { if ((_hasBits0 & 128) != 0) { return maxDepthCircleThickness_; } else { return MaxDepthCircleThicknessDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 128;
|
||||
maxDepthCircleThickness_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "max_depth_circle_thickness" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasMaxDepthCircleThickness {
|
||||
get { return (_hasBits0 & 128) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "max_depth_circle_thickness" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearMaxDepthCircleThickness() {
|
||||
_hasBits0 &= ~128;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "min_depth_line_color" field.</summary>
|
||||
public const int MinDepthLineColorFieldNumber = 12;
|
||||
private global::Mediapipe.Color minDepthLineColor_;
|
||||
/// <summary>
|
||||
/// Gradient color for the lines connecting landmarks at the minimum depth.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.Color MinDepthLineColor {
|
||||
get { return minDepthLineColor_; }
|
||||
set {
|
||||
minDepthLineColor_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "max_depth_line_color" field.</summary>
|
||||
public const int MaxDepthLineColorFieldNumber = 13;
|
||||
private global::Mediapipe.Color maxDepthLineColor_;
|
||||
/// <summary>
|
||||
/// Gradient color for the lines connecting landmarks at the maximum depth.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.Color MaxDepthLineColor {
|
||||
get { return maxDepthLineColor_; }
|
||||
set {
|
||||
maxDepthLineColor_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as LandmarksToRenderDataCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(LandmarksToRenderDataCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if(!landmarkConnections_.Equals(other.landmarkConnections_)) return false;
|
||||
if (!object.Equals(LandmarkColor, other.LandmarkColor)) return false;
|
||||
if (!object.Equals(ConnectionColor, other.ConnectionColor)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Thickness, other.Thickness)) return false;
|
||||
if (VisualizeLandmarkDepth != other.VisualizeLandmarkDepth) return false;
|
||||
if (UtilizeVisibility != other.UtilizeVisibility) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(VisibilityThreshold, other.VisibilityThreshold)) return false;
|
||||
if (UtilizePresence != other.UtilizePresence) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(PresenceThreshold, other.PresenceThreshold)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MinDepthCircleThickness, other.MinDepthCircleThickness)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MaxDepthCircleThickness, other.MaxDepthCircleThickness)) return false;
|
||||
if (!object.Equals(MinDepthLineColor, other.MinDepthLineColor)) return false;
|
||||
if (!object.Equals(MaxDepthLineColor, other.MaxDepthLineColor)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
hash ^= landmarkConnections_.GetHashCode();
|
||||
if (landmarkColor_ != null) hash ^= LandmarkColor.GetHashCode();
|
||||
if (connectionColor_ != null) hash ^= ConnectionColor.GetHashCode();
|
||||
if (HasThickness) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Thickness);
|
||||
if (HasVisualizeLandmarkDepth) hash ^= VisualizeLandmarkDepth.GetHashCode();
|
||||
if (HasUtilizeVisibility) hash ^= UtilizeVisibility.GetHashCode();
|
||||
if (HasVisibilityThreshold) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(VisibilityThreshold);
|
||||
if (HasUtilizePresence) hash ^= UtilizePresence.GetHashCode();
|
||||
if (HasPresenceThreshold) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PresenceThreshold);
|
||||
if (HasMinDepthCircleThickness) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MinDepthCircleThickness);
|
||||
if (HasMaxDepthCircleThickness) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MaxDepthCircleThickness);
|
||||
if (minDepthLineColor_ != null) hash ^= MinDepthLineColor.GetHashCode();
|
||||
if (maxDepthLineColor_ != null) hash ^= MaxDepthLineColor.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
landmarkConnections_.WriteTo(output, _repeated_landmarkConnections_codec);
|
||||
if (landmarkColor_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(LandmarkColor);
|
||||
}
|
||||
if (connectionColor_ != null) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteMessage(ConnectionColor);
|
||||
}
|
||||
if (HasThickness) {
|
||||
output.WriteRawTag(33);
|
||||
output.WriteDouble(Thickness);
|
||||
}
|
||||
if (HasVisualizeLandmarkDepth) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(VisualizeLandmarkDepth);
|
||||
}
|
||||
if (HasUtilizeVisibility) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteBool(UtilizeVisibility);
|
||||
}
|
||||
if (HasVisibilityThreshold) {
|
||||
output.WriteRawTag(57);
|
||||
output.WriteDouble(VisibilityThreshold);
|
||||
}
|
||||
if (HasUtilizePresence) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteBool(UtilizePresence);
|
||||
}
|
||||
if (HasPresenceThreshold) {
|
||||
output.WriteRawTag(73);
|
||||
output.WriteDouble(PresenceThreshold);
|
||||
}
|
||||
if (HasMinDepthCircleThickness) {
|
||||
output.WriteRawTag(81);
|
||||
output.WriteDouble(MinDepthCircleThickness);
|
||||
}
|
||||
if (HasMaxDepthCircleThickness) {
|
||||
output.WriteRawTag(89);
|
||||
output.WriteDouble(MaxDepthCircleThickness);
|
||||
}
|
||||
if (minDepthLineColor_ != null) {
|
||||
output.WriteRawTag(98);
|
||||
output.WriteMessage(MinDepthLineColor);
|
||||
}
|
||||
if (maxDepthLineColor_ != null) {
|
||||
output.WriteRawTag(106);
|
||||
output.WriteMessage(MaxDepthLineColor);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
landmarkConnections_.WriteTo(ref output, _repeated_landmarkConnections_codec);
|
||||
if (landmarkColor_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(LandmarkColor);
|
||||
}
|
||||
if (connectionColor_ != null) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteMessage(ConnectionColor);
|
||||
}
|
||||
if (HasThickness) {
|
||||
output.WriteRawTag(33);
|
||||
output.WriteDouble(Thickness);
|
||||
}
|
||||
if (HasVisualizeLandmarkDepth) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(VisualizeLandmarkDepth);
|
||||
}
|
||||
if (HasUtilizeVisibility) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteBool(UtilizeVisibility);
|
||||
}
|
||||
if (HasVisibilityThreshold) {
|
||||
output.WriteRawTag(57);
|
||||
output.WriteDouble(VisibilityThreshold);
|
||||
}
|
||||
if (HasUtilizePresence) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteBool(UtilizePresence);
|
||||
}
|
||||
if (HasPresenceThreshold) {
|
||||
output.WriteRawTag(73);
|
||||
output.WriteDouble(PresenceThreshold);
|
||||
}
|
||||
if (HasMinDepthCircleThickness) {
|
||||
output.WriteRawTag(81);
|
||||
output.WriteDouble(MinDepthCircleThickness);
|
||||
}
|
||||
if (HasMaxDepthCircleThickness) {
|
||||
output.WriteRawTag(89);
|
||||
output.WriteDouble(MaxDepthCircleThickness);
|
||||
}
|
||||
if (minDepthLineColor_ != null) {
|
||||
output.WriteRawTag(98);
|
||||
output.WriteMessage(MinDepthLineColor);
|
||||
}
|
||||
if (maxDepthLineColor_ != null) {
|
||||
output.WriteRawTag(106);
|
||||
output.WriteMessage(MaxDepthLineColor);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
size += landmarkConnections_.CalculateSize(_repeated_landmarkConnections_codec);
|
||||
if (landmarkColor_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(LandmarkColor);
|
||||
}
|
||||
if (connectionColor_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConnectionColor);
|
||||
}
|
||||
if (HasThickness) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasVisualizeLandmarkDepth) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasUtilizeVisibility) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasVisibilityThreshold) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasUtilizePresence) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasPresenceThreshold) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasMinDepthCircleThickness) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasMaxDepthCircleThickness) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (minDepthLineColor_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinDepthLineColor);
|
||||
}
|
||||
if (maxDepthLineColor_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxDepthLineColor);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(LandmarksToRenderDataCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
landmarkConnections_.Add(other.landmarkConnections_);
|
||||
if (other.landmarkColor_ != null) {
|
||||
if (landmarkColor_ == null) {
|
||||
LandmarkColor = new global::Mediapipe.Color();
|
||||
}
|
||||
LandmarkColor.MergeFrom(other.LandmarkColor);
|
||||
}
|
||||
if (other.connectionColor_ != null) {
|
||||
if (connectionColor_ == null) {
|
||||
ConnectionColor = new global::Mediapipe.Color();
|
||||
}
|
||||
ConnectionColor.MergeFrom(other.ConnectionColor);
|
||||
}
|
||||
if (other.HasThickness) {
|
||||
Thickness = other.Thickness;
|
||||
}
|
||||
if (other.HasVisualizeLandmarkDepth) {
|
||||
VisualizeLandmarkDepth = other.VisualizeLandmarkDepth;
|
||||
}
|
||||
if (other.HasUtilizeVisibility) {
|
||||
UtilizeVisibility = other.UtilizeVisibility;
|
||||
}
|
||||
if (other.HasVisibilityThreshold) {
|
||||
VisibilityThreshold = other.VisibilityThreshold;
|
||||
}
|
||||
if (other.HasUtilizePresence) {
|
||||
UtilizePresence = other.UtilizePresence;
|
||||
}
|
||||
if (other.HasPresenceThreshold) {
|
||||
PresenceThreshold = other.PresenceThreshold;
|
||||
}
|
||||
if (other.HasMinDepthCircleThickness) {
|
||||
MinDepthCircleThickness = other.MinDepthCircleThickness;
|
||||
}
|
||||
if (other.HasMaxDepthCircleThickness) {
|
||||
MaxDepthCircleThickness = other.MaxDepthCircleThickness;
|
||||
}
|
||||
if (other.minDepthLineColor_ != null) {
|
||||
if (minDepthLineColor_ == null) {
|
||||
MinDepthLineColor = new global::Mediapipe.Color();
|
||||
}
|
||||
MinDepthLineColor.MergeFrom(other.MinDepthLineColor);
|
||||
}
|
||||
if (other.maxDepthLineColor_ != null) {
|
||||
if (maxDepthLineColor_ == null) {
|
||||
MaxDepthLineColor = new global::Mediapipe.Color();
|
||||
}
|
||||
MaxDepthLineColor.MergeFrom(other.MaxDepthLineColor);
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 10:
|
||||
case 8: {
|
||||
landmarkConnections_.AddEntriesFrom(input, _repeated_landmarkConnections_codec);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (landmarkColor_ == null) {
|
||||
LandmarkColor = new global::Mediapipe.Color();
|
||||
}
|
||||
input.ReadMessage(LandmarkColor);
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
if (connectionColor_ == null) {
|
||||
ConnectionColor = new global::Mediapipe.Color();
|
||||
}
|
||||
input.ReadMessage(ConnectionColor);
|
||||
break;
|
||||
}
|
||||
case 33: {
|
||||
Thickness = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
VisualizeLandmarkDepth = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
UtilizeVisibility = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 57: {
|
||||
VisibilityThreshold = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
UtilizePresence = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 73: {
|
||||
PresenceThreshold = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 81: {
|
||||
MinDepthCircleThickness = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 89: {
|
||||
MaxDepthCircleThickness = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 98: {
|
||||
if (minDepthLineColor_ == null) {
|
||||
MinDepthLineColor = new global::Mediapipe.Color();
|
||||
}
|
||||
input.ReadMessage(MinDepthLineColor);
|
||||
break;
|
||||
}
|
||||
case 106: {
|
||||
if (maxDepthLineColor_ == null) {
|
||||
MaxDepthLineColor = new global::Mediapipe.Color();
|
||||
}
|
||||
input.ReadMessage(MaxDepthLineColor);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 10:
|
||||
case 8: {
|
||||
landmarkConnections_.AddEntriesFrom(ref input, _repeated_landmarkConnections_codec);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (landmarkColor_ == null) {
|
||||
LandmarkColor = new global::Mediapipe.Color();
|
||||
}
|
||||
input.ReadMessage(LandmarkColor);
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
if (connectionColor_ == null) {
|
||||
ConnectionColor = new global::Mediapipe.Color();
|
||||
}
|
||||
input.ReadMessage(ConnectionColor);
|
||||
break;
|
||||
}
|
||||
case 33: {
|
||||
Thickness = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
VisualizeLandmarkDepth = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
UtilizeVisibility = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 57: {
|
||||
VisibilityThreshold = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
UtilizePresence = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 73: {
|
||||
PresenceThreshold = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 81: {
|
||||
MinDepthCircleThickness = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 89: {
|
||||
MaxDepthCircleThickness = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 98: {
|
||||
if (minDepthLineColor_ == null) {
|
||||
MinDepthLineColor = new global::Mediapipe.Color();
|
||||
}
|
||||
input.ReadMessage(MinDepthLineColor);
|
||||
break;
|
||||
}
|
||||
case 106: {
|
||||
if (maxDepthLineColor_ == null) {
|
||||
MaxDepthLineColor = new global::Mediapipe.Color();
|
||||
}
|
||||
input.ReadMessage(MaxDepthLineColor);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the LandmarksToRenderDataCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.LandmarksToRenderDataCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.LandmarksToRenderDataCalculatorOptions>(258435389, pb::FieldCodec.ForMessage(2067483114, global::Mediapipe.LandmarksToRenderDataCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f766da884f11757b7a1c593e972027a2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,573 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/latency.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/latency.proto</summary>
|
||||
public static partial class LatencyReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/latency.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static LatencyReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CihtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9sYXRlbmN5LnByb3RvEglt",
|
||||
"ZWRpYXBpcGUiygEKDVBhY2tldExhdGVuY3kSHAoUY3VycmVudF9sYXRlbmN5",
|
||||
"X3VzZWMYCCABKAMSDgoGY291bnRzGAkgAygDEhkKDW51bV9pbnRlcnZhbHMY",
|
||||
"CiABKAM6AjEwEiEKEmludGVydmFsX3NpemVfdXNlYxgLIAEoAzoFMTAwMDAS",
|
||||
"GAoQYXZnX2xhdGVuY3lfdXNlYxgCIAEoAxINCgVsYWJlbBgHIAEoCRIYChBz",
|
||||
"dW1fbGF0ZW5jeV91c2VjGAwgASgDSgQIARACSgQIAxAH"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.PacketLatency), global::Mediapipe.PacketLatency.Parser, new[]{ "CurrentLatencyUsec", "Counts", "NumIntervals", "IntervalSizeUsec", "AvgLatencyUsec", "Label", "SumLatencyUsec" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
/// <summary>
|
||||
/// Contains the latency information for a packet stream in mediapipe. The
|
||||
/// following are provided
|
||||
/// 1. current latency
|
||||
/// 2. running average
|
||||
/// 3. histogram of latencies observed
|
||||
/// 4. cumulative sum of latencies observed
|
||||
/// NextId: 13
|
||||
/// </summary>
|
||||
public sealed partial class PacketLatency : pb::IMessage<PacketLatency>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<PacketLatency> _parser = new pb::MessageParser<PacketLatency>(() => new PacketLatency());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<PacketLatency> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.LatencyReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public PacketLatency() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public PacketLatency(PacketLatency other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
currentLatencyUsec_ = other.currentLatencyUsec_;
|
||||
counts_ = other.counts_.Clone();
|
||||
numIntervals_ = other.numIntervals_;
|
||||
intervalSizeUsec_ = other.intervalSizeUsec_;
|
||||
avgLatencyUsec_ = other.avgLatencyUsec_;
|
||||
label_ = other.label_;
|
||||
sumLatencyUsec_ = other.sumLatencyUsec_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public PacketLatency Clone() {
|
||||
return new PacketLatency(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "current_latency_usec" field.</summary>
|
||||
public const int CurrentLatencyUsecFieldNumber = 8;
|
||||
private readonly static long CurrentLatencyUsecDefaultValue = 0L;
|
||||
|
||||
private long currentLatencyUsec_;
|
||||
/// <summary>
|
||||
/// Current latency (delay in microseconds wrt a reference packet).
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public long CurrentLatencyUsec {
|
||||
get { if ((_hasBits0 & 2) != 0) { return currentLatencyUsec_; } else { return CurrentLatencyUsecDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
currentLatencyUsec_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "current_latency_usec" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasCurrentLatencyUsec {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "current_latency_usec" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearCurrentLatencyUsec() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "counts" field.</summary>
|
||||
public const int CountsFieldNumber = 9;
|
||||
private static readonly pb::FieldCodec<long> _repeated_counts_codec
|
||||
= pb::FieldCodec.ForInt64(72);
|
||||
private readonly pbc::RepeatedField<long> counts_ = new pbc::RepeatedField<long>();
|
||||
/// <summary>
|
||||
/// The latency histogram which stores the count recorded for each specified
|
||||
/// interval.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<long> Counts {
|
||||
get { return counts_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "num_intervals" field.</summary>
|
||||
public const int NumIntervalsFieldNumber = 10;
|
||||
private readonly static long NumIntervalsDefaultValue = 10L;
|
||||
|
||||
private long numIntervals_;
|
||||
/// <summary>
|
||||
/// Number of intervals for the latency histogram output.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public long NumIntervals {
|
||||
get { if ((_hasBits0 & 4) != 0) { return numIntervals_; } else { return NumIntervalsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
numIntervals_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "num_intervals" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNumIntervals {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "num_intervals" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNumIntervals() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "interval_size_usec" field.</summary>
|
||||
public const int IntervalSizeUsecFieldNumber = 11;
|
||||
private readonly static long IntervalSizeUsecDefaultValue = 10000L;
|
||||
|
||||
private long intervalSizeUsec_;
|
||||
/// <summary>
|
||||
/// Size of the histogram intervals (in microseconds). The first interval is
|
||||
/// [0, interval_size_usec). The last interval extends to +inf.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public long IntervalSizeUsec {
|
||||
get { if ((_hasBits0 & 8) != 0) { return intervalSizeUsec_; } else { return IntervalSizeUsecDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
intervalSizeUsec_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "interval_size_usec" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasIntervalSizeUsec {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "interval_size_usec" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearIntervalSizeUsec() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "avg_latency_usec" field.</summary>
|
||||
public const int AvgLatencyUsecFieldNumber = 2;
|
||||
private readonly static long AvgLatencyUsecDefaultValue = 0L;
|
||||
|
||||
private long avgLatencyUsec_;
|
||||
/// <summary>
|
||||
/// Running average of latencies observed so far.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public long AvgLatencyUsec {
|
||||
get { if ((_hasBits0 & 1) != 0) { return avgLatencyUsec_; } else { return AvgLatencyUsecDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
avgLatencyUsec_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "avg_latency_usec" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasAvgLatencyUsec {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "avg_latency_usec" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearAvgLatencyUsec() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "label" field.</summary>
|
||||
public const int LabelFieldNumber = 7;
|
||||
private readonly static string LabelDefaultValue = "";
|
||||
|
||||
private string label_;
|
||||
/// <summary>
|
||||
/// An identifier label for the packet.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string Label {
|
||||
get { return label_ ?? LabelDefaultValue; }
|
||||
set {
|
||||
label_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "label" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasLabel {
|
||||
get { return label_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "label" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearLabel() {
|
||||
label_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "sum_latency_usec" field.</summary>
|
||||
public const int SumLatencyUsecFieldNumber = 12;
|
||||
private readonly static long SumLatencyUsecDefaultValue = 0L;
|
||||
|
||||
private long sumLatencyUsec_;
|
||||
/// <summary>
|
||||
/// Cumulative sum of individual packet latencies of all the packets output so
|
||||
/// far.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public long SumLatencyUsec {
|
||||
get { if ((_hasBits0 & 16) != 0) { return sumLatencyUsec_; } else { return SumLatencyUsecDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
sumLatencyUsec_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "sum_latency_usec" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasSumLatencyUsec {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "sum_latency_usec" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearSumLatencyUsec() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as PacketLatency);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(PacketLatency other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (CurrentLatencyUsec != other.CurrentLatencyUsec) return false;
|
||||
if(!counts_.Equals(other.counts_)) return false;
|
||||
if (NumIntervals != other.NumIntervals) return false;
|
||||
if (IntervalSizeUsec != other.IntervalSizeUsec) return false;
|
||||
if (AvgLatencyUsec != other.AvgLatencyUsec) return false;
|
||||
if (Label != other.Label) return false;
|
||||
if (SumLatencyUsec != other.SumLatencyUsec) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasCurrentLatencyUsec) hash ^= CurrentLatencyUsec.GetHashCode();
|
||||
hash ^= counts_.GetHashCode();
|
||||
if (HasNumIntervals) hash ^= NumIntervals.GetHashCode();
|
||||
if (HasIntervalSizeUsec) hash ^= IntervalSizeUsec.GetHashCode();
|
||||
if (HasAvgLatencyUsec) hash ^= AvgLatencyUsec.GetHashCode();
|
||||
if (HasLabel) hash ^= Label.GetHashCode();
|
||||
if (HasSumLatencyUsec) hash ^= SumLatencyUsec.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasAvgLatencyUsec) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt64(AvgLatencyUsec);
|
||||
}
|
||||
if (HasLabel) {
|
||||
output.WriteRawTag(58);
|
||||
output.WriteString(Label);
|
||||
}
|
||||
if (HasCurrentLatencyUsec) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteInt64(CurrentLatencyUsec);
|
||||
}
|
||||
counts_.WriteTo(output, _repeated_counts_codec);
|
||||
if (HasNumIntervals) {
|
||||
output.WriteRawTag(80);
|
||||
output.WriteInt64(NumIntervals);
|
||||
}
|
||||
if (HasIntervalSizeUsec) {
|
||||
output.WriteRawTag(88);
|
||||
output.WriteInt64(IntervalSizeUsec);
|
||||
}
|
||||
if (HasSumLatencyUsec) {
|
||||
output.WriteRawTag(96);
|
||||
output.WriteInt64(SumLatencyUsec);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasAvgLatencyUsec) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt64(AvgLatencyUsec);
|
||||
}
|
||||
if (HasLabel) {
|
||||
output.WriteRawTag(58);
|
||||
output.WriteString(Label);
|
||||
}
|
||||
if (HasCurrentLatencyUsec) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteInt64(CurrentLatencyUsec);
|
||||
}
|
||||
counts_.WriteTo(ref output, _repeated_counts_codec);
|
||||
if (HasNumIntervals) {
|
||||
output.WriteRawTag(80);
|
||||
output.WriteInt64(NumIntervals);
|
||||
}
|
||||
if (HasIntervalSizeUsec) {
|
||||
output.WriteRawTag(88);
|
||||
output.WriteInt64(IntervalSizeUsec);
|
||||
}
|
||||
if (HasSumLatencyUsec) {
|
||||
output.WriteRawTag(96);
|
||||
output.WriteInt64(SumLatencyUsec);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasCurrentLatencyUsec) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(CurrentLatencyUsec);
|
||||
}
|
||||
size += counts_.CalculateSize(_repeated_counts_codec);
|
||||
if (HasNumIntervals) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumIntervals);
|
||||
}
|
||||
if (HasIntervalSizeUsec) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(IntervalSizeUsec);
|
||||
}
|
||||
if (HasAvgLatencyUsec) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(AvgLatencyUsec);
|
||||
}
|
||||
if (HasLabel) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Label);
|
||||
}
|
||||
if (HasSumLatencyUsec) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(SumLatencyUsec);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(PacketLatency other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasCurrentLatencyUsec) {
|
||||
CurrentLatencyUsec = other.CurrentLatencyUsec;
|
||||
}
|
||||
counts_.Add(other.counts_);
|
||||
if (other.HasNumIntervals) {
|
||||
NumIntervals = other.NumIntervals;
|
||||
}
|
||||
if (other.HasIntervalSizeUsec) {
|
||||
IntervalSizeUsec = other.IntervalSizeUsec;
|
||||
}
|
||||
if (other.HasAvgLatencyUsec) {
|
||||
AvgLatencyUsec = other.AvgLatencyUsec;
|
||||
}
|
||||
if (other.HasLabel) {
|
||||
Label = other.Label;
|
||||
}
|
||||
if (other.HasSumLatencyUsec) {
|
||||
SumLatencyUsec = other.SumLatencyUsec;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 16: {
|
||||
AvgLatencyUsec = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 58: {
|
||||
Label = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
CurrentLatencyUsec = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 74:
|
||||
case 72: {
|
||||
counts_.AddEntriesFrom(input, _repeated_counts_codec);
|
||||
break;
|
||||
}
|
||||
case 80: {
|
||||
NumIntervals = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 88: {
|
||||
IntervalSizeUsec = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 96: {
|
||||
SumLatencyUsec = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 16: {
|
||||
AvgLatencyUsec = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 58: {
|
||||
Label = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
CurrentLatencyUsec = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 74:
|
||||
case 72: {
|
||||
counts_.AddEntriesFrom(ref input, _repeated_counts_codec);
|
||||
break;
|
||||
}
|
||||
case 80: {
|
||||
NumIntervals = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 88: {
|
||||
IntervalSizeUsec = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 96: {
|
||||
SumLatencyUsec = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6d70f09c2b778d6c7b80b0b8522b0d13
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,266 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/local_file_contents_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/local_file_contents_calculator.proto</summary>
|
||||
public static partial class LocalFileContentsCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/local_file_contents_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static LocalFileContentsCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Cj9tZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9sb2NhbF9maWxlX2NvbnRl",
|
||||
"bnRzX2NhbGN1bGF0b3IucHJvdG8SCW1lZGlhcGlwZRokbWVkaWFwaXBlL2Zy",
|
||||
"YW1ld29yay9jYWxjdWxhdG9yLnByb3RvIpUBCiJMb2NhbEZpbGVDb250ZW50",
|
||||
"c0NhbGN1bGF0b3JPcHRpb25zEhEKCXRleHRfbW9kZRgBIAEoCDJcCgNleHQS",
|
||||
"HC5tZWRpYXBpcGUuQ2FsY3VsYXRvck9wdGlvbnMYvICypQEgASgLMi0ubWVk",
|
||||
"aWFwaXBlLkxvY2FsRmlsZUNvbnRlbnRzQ2FsY3VsYXRvck9wdGlvbnM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.LocalFileContentsCalculatorOptions), global::Mediapipe.LocalFileContentsCalculatorOptions.Parser, new[]{ "TextMode" }, null, null, new pb::Extension[] { global::Mediapipe.LocalFileContentsCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class LocalFileContentsCalculatorOptions : pb::IMessage<LocalFileContentsCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<LocalFileContentsCalculatorOptions> _parser = new pb::MessageParser<LocalFileContentsCalculatorOptions>(() => new LocalFileContentsCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<LocalFileContentsCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.LocalFileContentsCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LocalFileContentsCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LocalFileContentsCalculatorOptions(LocalFileContentsCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
textMode_ = other.textMode_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LocalFileContentsCalculatorOptions Clone() {
|
||||
return new LocalFileContentsCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "text_mode" field.</summary>
|
||||
public const int TextModeFieldNumber = 1;
|
||||
private readonly static bool TextModeDefaultValue = false;
|
||||
|
||||
private bool textMode_;
|
||||
/// <summary>
|
||||
/// By default, set the file open mode to 'rb'. Otherwise, set the mode to 'r'.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool TextMode {
|
||||
get { if ((_hasBits0 & 1) != 0) { return textMode_; } else { return TextModeDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
textMode_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "text_mode" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasTextMode {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "text_mode" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearTextMode() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as LocalFileContentsCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(LocalFileContentsCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (TextMode != other.TextMode) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasTextMode) hash ^= TextMode.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasTextMode) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(TextMode);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasTextMode) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(TextMode);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasTextMode) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(LocalFileContentsCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasTextMode) {
|
||||
TextMode = other.TextMode;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
TextMode = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
TextMode = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the LocalFileContentsCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.LocalFileContentsCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.LocalFileContentsCalculatorOptions>(346849340, pb::FieldCodec.ForMessage(2774794722, global::Mediapipe.LocalFileContentsCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e7230508120a035808c4fa65aad9a52e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,368 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/logic_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/logic_calculator.proto</summary>
|
||||
public static partial class LogicCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/logic_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static LogicCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjFtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9sb2dpY19jYWxjdWxhdG9y",
|
||||
"LnByb3RvEgltZWRpYXBpcGUaJG1lZGlhcGlwZS9mcmFtZXdvcmsvY2FsY3Vs",
|
||||
"YXRvci5wcm90byLvAQoWTG9naWNDYWxjdWxhdG9yT3B0aW9ucxI3CgJvcBgB",
|
||||
"IAEoDjIrLm1lZGlhcGlwZS5Mb2dpY0NhbGN1bGF0b3JPcHRpb25zLk9wZXJh",
|
||||
"dGlvbhIOCgZuZWdhdGUYAiABKAgSEwoLaW5wdXRfdmFsdWUYAyADKAgiJQoJ",
|
||||
"T3BlcmF0aW9uEgcKA0FORBAAEgYKAk9SEAESBwoDWE9SEAIyUAoDZXh0Ehwu",
|
||||
"bWVkaWFwaXBlLkNhbGN1bGF0b3JPcHRpb25zGO7BwqEBIAEoCzIhLm1lZGlh",
|
||||
"cGlwZS5Mb2dpY0NhbGN1bGF0b3JPcHRpb25z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.LogicCalculatorOptions), global::Mediapipe.LogicCalculatorOptions.Parser, new[]{ "Op", "Negate", "InputValue" }, null, new[]{ typeof(global::Mediapipe.LogicCalculatorOptions.Types.Operation) }, new pb::Extension[] { global::Mediapipe.LogicCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class LogicCalculatorOptions : pb::IMessage<LogicCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<LogicCalculatorOptions> _parser = new pb::MessageParser<LogicCalculatorOptions>(() => new LogicCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<LogicCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.LogicCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LogicCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LogicCalculatorOptions(LogicCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
op_ = other.op_;
|
||||
negate_ = other.negate_;
|
||||
inputValue_ = other.inputValue_.Clone();
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LogicCalculatorOptions Clone() {
|
||||
return new LogicCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "op" field.</summary>
|
||||
public const int OpFieldNumber = 1;
|
||||
private readonly static global::Mediapipe.LogicCalculatorOptions.Types.Operation OpDefaultValue = global::Mediapipe.LogicCalculatorOptions.Types.Operation.And;
|
||||
|
||||
private global::Mediapipe.LogicCalculatorOptions.Types.Operation op_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.LogicCalculatorOptions.Types.Operation Op {
|
||||
get { if ((_hasBits0 & 1) != 0) { return op_; } else { return OpDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
op_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "op" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasOp {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "op" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearOp() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "negate" field.</summary>
|
||||
public const int NegateFieldNumber = 2;
|
||||
private readonly static bool NegateDefaultValue = false;
|
||||
|
||||
private bool negate_;
|
||||
/// <summary>
|
||||
/// Whether to negate the result.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Negate {
|
||||
get { if ((_hasBits0 & 2) != 0) { return negate_; } else { return NegateDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
negate_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "negate" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNegate {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "negate" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNegate() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "input_value" field.</summary>
|
||||
public const int InputValueFieldNumber = 3;
|
||||
private static readonly pb::FieldCodec<bool> _repeated_inputValue_codec
|
||||
= pb::FieldCodec.ForBool(24);
|
||||
private readonly pbc::RepeatedField<bool> inputValue_ = new pbc::RepeatedField<bool>();
|
||||
/// <summary>
|
||||
/// Optional bool input values.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<bool> InputValue {
|
||||
get { return inputValue_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as LogicCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(LogicCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Op != other.Op) return false;
|
||||
if (Negate != other.Negate) return false;
|
||||
if(!inputValue_.Equals(other.inputValue_)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasOp) hash ^= Op.GetHashCode();
|
||||
if (HasNegate) hash ^= Negate.GetHashCode();
|
||||
hash ^= inputValue_.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasOp) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteEnum((int) Op);
|
||||
}
|
||||
if (HasNegate) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteBool(Negate);
|
||||
}
|
||||
inputValue_.WriteTo(output, _repeated_inputValue_codec);
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasOp) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteEnum((int) Op);
|
||||
}
|
||||
if (HasNegate) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteBool(Negate);
|
||||
}
|
||||
inputValue_.WriteTo(ref output, _repeated_inputValue_codec);
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasOp) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Op);
|
||||
}
|
||||
if (HasNegate) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
size += inputValue_.CalculateSize(_repeated_inputValue_codec);
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(LogicCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasOp) {
|
||||
Op = other.Op;
|
||||
}
|
||||
if (other.HasNegate) {
|
||||
Negate = other.Negate;
|
||||
}
|
||||
inputValue_.Add(other.inputValue_);
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
Op = (global::Mediapipe.LogicCalculatorOptions.Types.Operation) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
Negate = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 26:
|
||||
case 24: {
|
||||
inputValue_.AddEntriesFrom(input, _repeated_inputValue_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
Op = (global::Mediapipe.LogicCalculatorOptions.Types.Operation) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
Negate = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 26:
|
||||
case 24: {
|
||||
inputValue_.AddEntriesFrom(ref input, _repeated_inputValue_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Nested types
|
||||
/// <summary>Container for nested types declared in the LogicCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Types {
|
||||
/// <summary>
|
||||
/// The logical operation to apply.
|
||||
/// </summary>
|
||||
public enum Operation {
|
||||
[pbr::OriginalName("AND")] And = 0,
|
||||
[pbr::OriginalName("OR")] Or = 1,
|
||||
[pbr::OriginalName("XOR")] Xor = 2,
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the LogicCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.LogicCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.LogicCalculatorOptions>(338731246, pb::FieldCodec.ForMessage(2709849970, global::Mediapipe.LogicCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d508893e7a509a3ee9c9c4fc0dffdc9f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,643 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/non_max_suppression_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/non_max_suppression_calculator.proto</summary>
|
||||
public static partial class NonMaxSuppressionCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/non_max_suppression_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static NonMaxSuppressionCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Cj9tZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9ub25fbWF4X3N1cHByZXNz",
|
||||
"aW9uX2NhbGN1bGF0b3IucHJvdG8SCW1lZGlhcGlwZRokbWVkaWFwaXBlL2Zy",
|
||||
"YW1ld29yay9jYWxjdWxhdG9yLnByb3RvIvUECiJOb25NYXhTdXBwcmVzc2lv",
|
||||
"bkNhbGN1bGF0b3JPcHRpb25zEiAKFW51bV9kZXRlY3Rpb25fc3RyZWFtcxgB",
|
||||
"IAEoBToBMRIeChJtYXhfbnVtX2RldGVjdGlvbnMYAiABKAU6Ai0xEh8KE21p",
|
||||
"bl9zY29yZV90aHJlc2hvbGQYBiABKAI6Ai0xEiQKGW1pbl9zdXBwcmVzc2lv",
|
||||
"bl90aHJlc2hvbGQYAyABKAI6ATESWAoMb3ZlcmxhcF90eXBlGAQgASgOMjku",
|
||||
"bWVkaWFwaXBlLk5vbk1heFN1cHByZXNzaW9uQ2FsY3VsYXRvck9wdGlvbnMu",
|
||||
"T3ZlcmxhcFR5cGU6B0pBQ0NBUkQSHwoXcmV0dXJuX2VtcHR5X2RldGVjdGlv",
|
||||
"bnMYBSABKAgSVgoJYWxnb3JpdGhtGAcgASgOMjoubWVkaWFwaXBlLk5vbk1h",
|
||||
"eFN1cHByZXNzaW9uQ2FsY3VsYXRvck9wdGlvbnMuTm1zQWxnb3JpdGhtOgdE",
|
||||
"RUZBVUxUImsKC092ZXJsYXBUeXBlEhwKGFVOU1BFQ0lGSUVEX09WRVJMQVBf",
|
||||
"VFlQRRAAEgsKB0pBQ0NBUkQQARIUChBNT0RJRklFRF9KQUNDQVJEEAISGwoX",
|
||||
"SU5URVJTRUNUSU9OX09WRVJfVU5JT04QAyIpCgxObXNBbGdvcml0aG0SCwoH",
|
||||
"REVGQVVMVBAAEgwKCFdFSUdIVEVEEAEyWwoDZXh0EhwubWVkaWFwaXBlLkNh",
|
||||
"bGN1bGF0b3JPcHRpb25zGLyotBogASgLMi0ubWVkaWFwaXBlLk5vbk1heFN1",
|
||||
"cHByZXNzaW9uQ2FsY3VsYXRvck9wdGlvbnM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.NonMaxSuppressionCalculatorOptions), global::Mediapipe.NonMaxSuppressionCalculatorOptions.Parser, new[]{ "NumDetectionStreams", "MaxNumDetections", "MinScoreThreshold", "MinSuppressionThreshold", "OverlapType", "ReturnEmptyDetections", "Algorithm" }, null, new[]{ typeof(global::Mediapipe.NonMaxSuppressionCalculatorOptions.Types.OverlapType), typeof(global::Mediapipe.NonMaxSuppressionCalculatorOptions.Types.NmsAlgorithm) }, new pb::Extension[] { global::Mediapipe.NonMaxSuppressionCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
/// <summary>
|
||||
/// Options to NonMaxSuppression calculator, which performs non-maximum
|
||||
/// suppression on a set of detections.
|
||||
/// </summary>
|
||||
public sealed partial class NonMaxSuppressionCalculatorOptions : pb::IMessage<NonMaxSuppressionCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<NonMaxSuppressionCalculatorOptions> _parser = new pb::MessageParser<NonMaxSuppressionCalculatorOptions>(() => new NonMaxSuppressionCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<NonMaxSuppressionCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.NonMaxSuppressionCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public NonMaxSuppressionCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public NonMaxSuppressionCalculatorOptions(NonMaxSuppressionCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
numDetectionStreams_ = other.numDetectionStreams_;
|
||||
maxNumDetections_ = other.maxNumDetections_;
|
||||
minScoreThreshold_ = other.minScoreThreshold_;
|
||||
minSuppressionThreshold_ = other.minSuppressionThreshold_;
|
||||
overlapType_ = other.overlapType_;
|
||||
returnEmptyDetections_ = other.returnEmptyDetections_;
|
||||
algorithm_ = other.algorithm_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public NonMaxSuppressionCalculatorOptions Clone() {
|
||||
return new NonMaxSuppressionCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "num_detection_streams" field.</summary>
|
||||
public const int NumDetectionStreamsFieldNumber = 1;
|
||||
private readonly static int NumDetectionStreamsDefaultValue = 1;
|
||||
|
||||
private int numDetectionStreams_;
|
||||
/// <summary>
|
||||
/// Number of input streams. Each input stream should contain a vector of
|
||||
/// detections.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int NumDetectionStreams {
|
||||
get { if ((_hasBits0 & 1) != 0) { return numDetectionStreams_; } else { return NumDetectionStreamsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
numDetectionStreams_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "num_detection_streams" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNumDetectionStreams {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "num_detection_streams" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNumDetectionStreams() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "max_num_detections" field.</summary>
|
||||
public const int MaxNumDetectionsFieldNumber = 2;
|
||||
private readonly static int MaxNumDetectionsDefaultValue = -1;
|
||||
|
||||
private int maxNumDetections_;
|
||||
/// <summary>
|
||||
/// Maximum number of detections to be returned. If -1, then all detections are
|
||||
/// returned.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int MaxNumDetections {
|
||||
get { if ((_hasBits0 & 2) != 0) { return maxNumDetections_; } else { return MaxNumDetectionsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
maxNumDetections_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "max_num_detections" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasMaxNumDetections {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "max_num_detections" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearMaxNumDetections() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "min_score_threshold" field.</summary>
|
||||
public const int MinScoreThresholdFieldNumber = 6;
|
||||
private readonly static float MinScoreThresholdDefaultValue = -1F;
|
||||
|
||||
private float minScoreThreshold_;
|
||||
/// <summary>
|
||||
/// Minimum score of detections to be returned.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float MinScoreThreshold {
|
||||
get { if ((_hasBits0 & 32) != 0) { return minScoreThreshold_; } else { return MinScoreThresholdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 32;
|
||||
minScoreThreshold_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "min_score_threshold" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasMinScoreThreshold {
|
||||
get { return (_hasBits0 & 32) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "min_score_threshold" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearMinScoreThreshold() {
|
||||
_hasBits0 &= ~32;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "min_suppression_threshold" field.</summary>
|
||||
public const int MinSuppressionThresholdFieldNumber = 3;
|
||||
private readonly static float MinSuppressionThresholdDefaultValue = 1F;
|
||||
|
||||
private float minSuppressionThreshold_;
|
||||
/// <summary>
|
||||
/// Jaccard similarity threshold for suppression -- a detection would suppress
|
||||
/// all other detections whose scores are lower and overlap by at least the
|
||||
/// specified threshold.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float MinSuppressionThreshold {
|
||||
get { if ((_hasBits0 & 4) != 0) { return minSuppressionThreshold_; } else { return MinSuppressionThresholdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
minSuppressionThreshold_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "min_suppression_threshold" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasMinSuppressionThreshold {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "min_suppression_threshold" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearMinSuppressionThreshold() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "overlap_type" field.</summary>
|
||||
public const int OverlapTypeFieldNumber = 4;
|
||||
private readonly static global::Mediapipe.NonMaxSuppressionCalculatorOptions.Types.OverlapType OverlapTypeDefaultValue = global::Mediapipe.NonMaxSuppressionCalculatorOptions.Types.OverlapType.Jaccard;
|
||||
|
||||
private global::Mediapipe.NonMaxSuppressionCalculatorOptions.Types.OverlapType overlapType_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.NonMaxSuppressionCalculatorOptions.Types.OverlapType OverlapType {
|
||||
get { if ((_hasBits0 & 8) != 0) { return overlapType_; } else { return OverlapTypeDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
overlapType_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "overlap_type" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasOverlapType {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "overlap_type" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearOverlapType() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "return_empty_detections" field.</summary>
|
||||
public const int ReturnEmptyDetectionsFieldNumber = 5;
|
||||
private readonly static bool ReturnEmptyDetectionsDefaultValue = false;
|
||||
|
||||
private bool returnEmptyDetections_;
|
||||
/// <summary>
|
||||
/// Whether to put empty detection vector in output stream.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool ReturnEmptyDetections {
|
||||
get { if ((_hasBits0 & 16) != 0) { return returnEmptyDetections_; } else { return ReturnEmptyDetectionsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
returnEmptyDetections_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "return_empty_detections" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasReturnEmptyDetections {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "return_empty_detections" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearReturnEmptyDetections() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "algorithm" field.</summary>
|
||||
public const int AlgorithmFieldNumber = 7;
|
||||
private readonly static global::Mediapipe.NonMaxSuppressionCalculatorOptions.Types.NmsAlgorithm AlgorithmDefaultValue = global::Mediapipe.NonMaxSuppressionCalculatorOptions.Types.NmsAlgorithm.Default;
|
||||
|
||||
private global::Mediapipe.NonMaxSuppressionCalculatorOptions.Types.NmsAlgorithm algorithm_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.NonMaxSuppressionCalculatorOptions.Types.NmsAlgorithm Algorithm {
|
||||
get { if ((_hasBits0 & 64) != 0) { return algorithm_; } else { return AlgorithmDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 64;
|
||||
algorithm_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "algorithm" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasAlgorithm {
|
||||
get { return (_hasBits0 & 64) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "algorithm" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearAlgorithm() {
|
||||
_hasBits0 &= ~64;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as NonMaxSuppressionCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(NonMaxSuppressionCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (NumDetectionStreams != other.NumDetectionStreams) return false;
|
||||
if (MaxNumDetections != other.MaxNumDetections) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MinScoreThreshold, other.MinScoreThreshold)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MinSuppressionThreshold, other.MinSuppressionThreshold)) return false;
|
||||
if (OverlapType != other.OverlapType) return false;
|
||||
if (ReturnEmptyDetections != other.ReturnEmptyDetections) return false;
|
||||
if (Algorithm != other.Algorithm) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasNumDetectionStreams) hash ^= NumDetectionStreams.GetHashCode();
|
||||
if (HasMaxNumDetections) hash ^= MaxNumDetections.GetHashCode();
|
||||
if (HasMinScoreThreshold) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MinScoreThreshold);
|
||||
if (HasMinSuppressionThreshold) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MinSuppressionThreshold);
|
||||
if (HasOverlapType) hash ^= OverlapType.GetHashCode();
|
||||
if (HasReturnEmptyDetections) hash ^= ReturnEmptyDetections.GetHashCode();
|
||||
if (HasAlgorithm) hash ^= Algorithm.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasNumDetectionStreams) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(NumDetectionStreams);
|
||||
}
|
||||
if (HasMaxNumDetections) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(MaxNumDetections);
|
||||
}
|
||||
if (HasMinSuppressionThreshold) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(MinSuppressionThreshold);
|
||||
}
|
||||
if (HasOverlapType) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteEnum((int) OverlapType);
|
||||
}
|
||||
if (HasReturnEmptyDetections) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(ReturnEmptyDetections);
|
||||
}
|
||||
if (HasMinScoreThreshold) {
|
||||
output.WriteRawTag(53);
|
||||
output.WriteFloat(MinScoreThreshold);
|
||||
}
|
||||
if (HasAlgorithm) {
|
||||
output.WriteRawTag(56);
|
||||
output.WriteEnum((int) Algorithm);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasNumDetectionStreams) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(NumDetectionStreams);
|
||||
}
|
||||
if (HasMaxNumDetections) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(MaxNumDetections);
|
||||
}
|
||||
if (HasMinSuppressionThreshold) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(MinSuppressionThreshold);
|
||||
}
|
||||
if (HasOverlapType) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteEnum((int) OverlapType);
|
||||
}
|
||||
if (HasReturnEmptyDetections) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(ReturnEmptyDetections);
|
||||
}
|
||||
if (HasMinScoreThreshold) {
|
||||
output.WriteRawTag(53);
|
||||
output.WriteFloat(MinScoreThreshold);
|
||||
}
|
||||
if (HasAlgorithm) {
|
||||
output.WriteRawTag(56);
|
||||
output.WriteEnum((int) Algorithm);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasNumDetectionStreams) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumDetectionStreams);
|
||||
}
|
||||
if (HasMaxNumDetections) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxNumDetections);
|
||||
}
|
||||
if (HasMinScoreThreshold) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasMinSuppressionThreshold) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasOverlapType) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OverlapType);
|
||||
}
|
||||
if (HasReturnEmptyDetections) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasAlgorithm) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Algorithm);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(NonMaxSuppressionCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasNumDetectionStreams) {
|
||||
NumDetectionStreams = other.NumDetectionStreams;
|
||||
}
|
||||
if (other.HasMaxNumDetections) {
|
||||
MaxNumDetections = other.MaxNumDetections;
|
||||
}
|
||||
if (other.HasMinScoreThreshold) {
|
||||
MinScoreThreshold = other.MinScoreThreshold;
|
||||
}
|
||||
if (other.HasMinSuppressionThreshold) {
|
||||
MinSuppressionThreshold = other.MinSuppressionThreshold;
|
||||
}
|
||||
if (other.HasOverlapType) {
|
||||
OverlapType = other.OverlapType;
|
||||
}
|
||||
if (other.HasReturnEmptyDetections) {
|
||||
ReturnEmptyDetections = other.ReturnEmptyDetections;
|
||||
}
|
||||
if (other.HasAlgorithm) {
|
||||
Algorithm = other.Algorithm;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
NumDetectionStreams = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
MaxNumDetections = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
MinSuppressionThreshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
OverlapType = (global::Mediapipe.NonMaxSuppressionCalculatorOptions.Types.OverlapType) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
ReturnEmptyDetections = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 53: {
|
||||
MinScoreThreshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 56: {
|
||||
Algorithm = (global::Mediapipe.NonMaxSuppressionCalculatorOptions.Types.NmsAlgorithm) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
NumDetectionStreams = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
MaxNumDetections = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
MinSuppressionThreshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
OverlapType = (global::Mediapipe.NonMaxSuppressionCalculatorOptions.Types.OverlapType) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
ReturnEmptyDetections = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 53: {
|
||||
MinScoreThreshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 56: {
|
||||
Algorithm = (global::Mediapipe.NonMaxSuppressionCalculatorOptions.Types.NmsAlgorithm) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Nested types
|
||||
/// <summary>Container for nested types declared in the NonMaxSuppressionCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Types {
|
||||
/// <summary>
|
||||
/// During the overlap computation, which is used to determine whether a
|
||||
/// rectangle suppresses another rectangle, one can use the Jaccard similarity,
|
||||
/// defined as the ration of the intersection over union of the two rectangles.
|
||||
/// Alternatively a modified version of Jaccard can be used, where the
|
||||
/// normalization is done by the area of the rectangle being checked for
|
||||
/// suppression.
|
||||
/// </summary>
|
||||
public enum OverlapType {
|
||||
[pbr::OriginalName("UNSPECIFIED_OVERLAP_TYPE")] UnspecifiedOverlapType = 0,
|
||||
[pbr::OriginalName("JACCARD")] Jaccard = 1,
|
||||
[pbr::OriginalName("MODIFIED_JACCARD")] ModifiedJaccard = 2,
|
||||
[pbr::OriginalName("INTERSECTION_OVER_UNION")] IntersectionOverUnion = 3,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Algorithms that can be used to apply non-maximum suppression.
|
||||
/// </summary>
|
||||
public enum NmsAlgorithm {
|
||||
[pbr::OriginalName("DEFAULT")] Default = 0,
|
||||
/// <summary>
|
||||
/// Only supports relative bounding box for weighted NMS.
|
||||
/// </summary>
|
||||
[pbr::OriginalName("WEIGHTED")] Weighted = 1,
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the NonMaxSuppressionCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.NonMaxSuppressionCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.NonMaxSuppressionCalculatorOptions>(55383100, pb::FieldCodec.ForMessage(443064802, global::Mediapipe.NonMaxSuppressionCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cd2107ed880bf55719c7a5ed57b2ff84
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,311 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/packet_frequency.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/packet_frequency.proto</summary>
|
||||
public static partial class PacketFrequencyReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/packet_frequency.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static PacketFrequencyReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjFtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9wYWNrZXRfZnJlcXVlbmN5",
|
||||
"LnByb3RvEgltZWRpYXBpcGUiPQoPUGFja2V0RnJlcXVlbmN5EhsKE3BhY2tl",
|
||||
"dF9mcmVxdWVuY3lfaHoYASABKAESDQoFbGFiZWwYAiABKAk="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.PacketFrequency), global::Mediapipe.PacketFrequency.Parser, new[]{ "PacketFrequencyHz", "Label" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
/// <summary>
|
||||
/// Contains the packet frequency information.
|
||||
/// </summary>
|
||||
public sealed partial class PacketFrequency : pb::IMessage<PacketFrequency>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<PacketFrequency> _parser = new pb::MessageParser<PacketFrequency>(() => new PacketFrequency());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<PacketFrequency> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.PacketFrequencyReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public PacketFrequency() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public PacketFrequency(PacketFrequency other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
packetFrequencyHz_ = other.packetFrequencyHz_;
|
||||
label_ = other.label_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public PacketFrequency Clone() {
|
||||
return new PacketFrequency(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "packet_frequency_hz" field.</summary>
|
||||
public const int PacketFrequencyHzFieldNumber = 1;
|
||||
private readonly static double PacketFrequencyHzDefaultValue = 0D;
|
||||
|
||||
private double packetFrequencyHz_;
|
||||
/// <summary>
|
||||
/// Packet frequency (packets per second).
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double PacketFrequencyHz {
|
||||
get { if ((_hasBits0 & 1) != 0) { return packetFrequencyHz_; } else { return PacketFrequencyHzDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
packetFrequencyHz_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "packet_frequency_hz" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasPacketFrequencyHz {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "packet_frequency_hz" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearPacketFrequencyHz() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "label" field.</summary>
|
||||
public const int LabelFieldNumber = 2;
|
||||
private readonly static string LabelDefaultValue = "";
|
||||
|
||||
private string label_;
|
||||
/// <summary>
|
||||
/// A label that identifies what this packet frequency is for. Eg. "Gaze",
|
||||
/// "Gesture", etc.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string Label {
|
||||
get { return label_ ?? LabelDefaultValue; }
|
||||
set {
|
||||
label_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "label" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasLabel {
|
||||
get { return label_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "label" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearLabel() {
|
||||
label_ = null;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as PacketFrequency);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(PacketFrequency other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(PacketFrequencyHz, other.PacketFrequencyHz)) return false;
|
||||
if (Label != other.Label) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasPacketFrequencyHz) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PacketFrequencyHz);
|
||||
if (HasLabel) hash ^= Label.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasPacketFrequencyHz) {
|
||||
output.WriteRawTag(9);
|
||||
output.WriteDouble(PacketFrequencyHz);
|
||||
}
|
||||
if (HasLabel) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(Label);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasPacketFrequencyHz) {
|
||||
output.WriteRawTag(9);
|
||||
output.WriteDouble(PacketFrequencyHz);
|
||||
}
|
||||
if (HasLabel) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(Label);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasPacketFrequencyHz) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasLabel) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Label);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(PacketFrequency other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasPacketFrequencyHz) {
|
||||
PacketFrequencyHz = other.PacketFrequencyHz;
|
||||
}
|
||||
if (other.HasLabel) {
|
||||
Label = other.Label;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 9: {
|
||||
PacketFrequencyHz = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
Label = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 9: {
|
||||
PacketFrequencyHz = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
Label = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 446374614ff141e939243a3915776b22
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,301 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/packet_frequency_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/packet_frequency_calculator.proto</summary>
|
||||
public static partial class PacketFrequencyCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/packet_frequency_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static PacketFrequencyCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjxtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9wYWNrZXRfZnJlcXVlbmN5",
|
||||
"X2NhbGN1bGF0b3IucHJvdG8SCW1lZGlhcGlwZRokbWVkaWFwaXBlL2ZyYW1l",
|
||||
"d29yay9jYWxjdWxhdG9yLnByb3RvIqgBCiBQYWNrZXRGcmVxdWVuY3lDYWxj",
|
||||
"dWxhdG9yT3B0aW9ucxIaCg90aW1lX3dpbmRvd19zZWMYASABKAE6ATMSDQoF",
|
||||
"bGFiZWwYAiADKAkyWQoDZXh0EhwubWVkaWFwaXBlLkNhbGN1bGF0b3JPcHRp",
|
||||
"b25zGLbDqlAgASgLMisubWVkaWFwaXBlLlBhY2tldEZyZXF1ZW5jeUNhbGN1",
|
||||
"bGF0b3JPcHRpb25z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.PacketFrequencyCalculatorOptions), global::Mediapipe.PacketFrequencyCalculatorOptions.Parser, new[]{ "TimeWindowSec", "Label" }, null, null, new pb::Extension[] { global::Mediapipe.PacketFrequencyCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
/// <summary>
|
||||
/// Options for PacketFrequencyCalculator.
|
||||
/// </summary>
|
||||
public sealed partial class PacketFrequencyCalculatorOptions : pb::IMessage<PacketFrequencyCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<PacketFrequencyCalculatorOptions> _parser = new pb::MessageParser<PacketFrequencyCalculatorOptions>(() => new PacketFrequencyCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<PacketFrequencyCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.PacketFrequencyCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public PacketFrequencyCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public PacketFrequencyCalculatorOptions(PacketFrequencyCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
timeWindowSec_ = other.timeWindowSec_;
|
||||
label_ = other.label_.Clone();
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public PacketFrequencyCalculatorOptions Clone() {
|
||||
return new PacketFrequencyCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "time_window_sec" field.</summary>
|
||||
public const int TimeWindowSecFieldNumber = 1;
|
||||
private readonly static double TimeWindowSecDefaultValue = 3D;
|
||||
|
||||
private double timeWindowSec_;
|
||||
/// <summary>
|
||||
/// Time window (in seconds) over which the packet frequency is computed. Must
|
||||
/// be greater than 0 and less than 100 seconds (in order to limit memory
|
||||
/// usage).
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double TimeWindowSec {
|
||||
get { if ((_hasBits0 & 1) != 0) { return timeWindowSec_; } else { return TimeWindowSecDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
timeWindowSec_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "time_window_sec" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasTimeWindowSec {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "time_window_sec" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearTimeWindowSec() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "label" field.</summary>
|
||||
public const int LabelFieldNumber = 2;
|
||||
private static readonly pb::FieldCodec<string> _repeated_label_codec
|
||||
= pb::FieldCodec.ForString(18);
|
||||
private readonly pbc::RepeatedField<string> label_ = new pbc::RepeatedField<string>();
|
||||
/// <summary>
|
||||
/// Text identifiers for the input streams.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<string> Label {
|
||||
get { return label_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as PacketFrequencyCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(PacketFrequencyCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TimeWindowSec, other.TimeWindowSec)) return false;
|
||||
if(!label_.Equals(other.label_)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasTimeWindowSec) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TimeWindowSec);
|
||||
hash ^= label_.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasTimeWindowSec) {
|
||||
output.WriteRawTag(9);
|
||||
output.WriteDouble(TimeWindowSec);
|
||||
}
|
||||
label_.WriteTo(output, _repeated_label_codec);
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasTimeWindowSec) {
|
||||
output.WriteRawTag(9);
|
||||
output.WriteDouble(TimeWindowSec);
|
||||
}
|
||||
label_.WriteTo(ref output, _repeated_label_codec);
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasTimeWindowSec) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
size += label_.CalculateSize(_repeated_label_codec);
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(PacketFrequencyCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasTimeWindowSec) {
|
||||
TimeWindowSec = other.TimeWindowSec;
|
||||
}
|
||||
label_.Add(other.label_);
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 9: {
|
||||
TimeWindowSec = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
label_.AddEntriesFrom(input, _repeated_label_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 9: {
|
||||
TimeWindowSec = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
label_.AddEntriesFrom(ref input, _repeated_label_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the PacketFrequencyCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.PacketFrequencyCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.PacketFrequencyCalculatorOptions>(168468918, pb::FieldCodec.ForMessage(1347751346, global::Mediapipe.PacketFrequencyCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5509c6d03b5c9b33d8ca58ab338481b2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,411 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/packet_latency_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/packet_latency_calculator.proto</summary>
|
||||
public static partial class PacketLatencyCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/packet_latency_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static PacketLatencyCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjptZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9wYWNrZXRfbGF0ZW5jeV9j",
|
||||
"YWxjdWxhdG9yLnByb3RvEgltZWRpYXBpcGUaJG1lZGlhcGlwZS9mcmFtZXdv",
|
||||
"cmsvY2FsY3VsYXRvci5wcm90byLvAQoeUGFja2V0TGF0ZW5jeUNhbGN1bGF0",
|
||||
"b3JPcHRpb25zEhkKDW51bV9pbnRlcnZhbHMYASABKAM6AjEwEiEKEmludGVy",
|
||||
"dmFsX3NpemVfdXNlYxgCIAEoAzoFMTAwMDASHwoTcmVzZXRfZHVyYXRpb25f",
|
||||
"dXNlYxgDIAEoAzoCLTESFQoNcGFja2V0X2xhYmVscxgEIAMoCTJXCgNleHQS",
|
||||
"HC5tZWRpYXBpcGUuQ2FsY3VsYXRvck9wdGlvbnMYzdGrUiABKAsyKS5tZWRp",
|
||||
"YXBpcGUuUGFja2V0TGF0ZW5jeUNhbGN1bGF0b3JPcHRpb25z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.PacketLatencyCalculatorOptions), global::Mediapipe.PacketLatencyCalculatorOptions.Parser, new[]{ "NumIntervals", "IntervalSizeUsec", "ResetDurationUsec", "PacketLabels" }, null, null, new pb::Extension[] { global::Mediapipe.PacketLatencyCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class PacketLatencyCalculatorOptions : pb::IMessage<PacketLatencyCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<PacketLatencyCalculatorOptions> _parser = new pb::MessageParser<PacketLatencyCalculatorOptions>(() => new PacketLatencyCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<PacketLatencyCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.PacketLatencyCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public PacketLatencyCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public PacketLatencyCalculatorOptions(PacketLatencyCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
numIntervals_ = other.numIntervals_;
|
||||
intervalSizeUsec_ = other.intervalSizeUsec_;
|
||||
resetDurationUsec_ = other.resetDurationUsec_;
|
||||
packetLabels_ = other.packetLabels_.Clone();
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public PacketLatencyCalculatorOptions Clone() {
|
||||
return new PacketLatencyCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "num_intervals" field.</summary>
|
||||
public const int NumIntervalsFieldNumber = 1;
|
||||
private readonly static long NumIntervalsDefaultValue = 10L;
|
||||
|
||||
private long numIntervals_;
|
||||
/// <summary>
|
||||
/// Number of intervals for the latency histogram output.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public long NumIntervals {
|
||||
get { if ((_hasBits0 & 1) != 0) { return numIntervals_; } else { return NumIntervalsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
numIntervals_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "num_intervals" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNumIntervals {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "num_intervals" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNumIntervals() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "interval_size_usec" field.</summary>
|
||||
public const int IntervalSizeUsecFieldNumber = 2;
|
||||
private readonly static long IntervalSizeUsecDefaultValue = 10000L;
|
||||
|
||||
private long intervalSizeUsec_;
|
||||
/// <summary>
|
||||
/// Interval size (in microseconds) for the histogram.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public long IntervalSizeUsec {
|
||||
get { if ((_hasBits0 & 2) != 0) { return intervalSizeUsec_; } else { return IntervalSizeUsecDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
intervalSizeUsec_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "interval_size_usec" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasIntervalSizeUsec {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "interval_size_usec" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearIntervalSizeUsec() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "reset_duration_usec" field.</summary>
|
||||
public const int ResetDurationUsecFieldNumber = 3;
|
||||
private readonly static long ResetDurationUsecDefaultValue = -1L;
|
||||
|
||||
private long resetDurationUsec_;
|
||||
/// <summary>
|
||||
/// Reset time (in microseconds) for histogram and average. The histogram and
|
||||
/// running average are initialized to zero periodically based on the specified
|
||||
/// duration. Negative value implies never resetting the statistics.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public long ResetDurationUsec {
|
||||
get { if ((_hasBits0 & 4) != 0) { return resetDurationUsec_; } else { return ResetDurationUsecDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
resetDurationUsec_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "reset_duration_usec" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasResetDurationUsec {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "reset_duration_usec" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearResetDurationUsec() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "packet_labels" field.</summary>
|
||||
public const int PacketLabelsFieldNumber = 4;
|
||||
private static readonly pb::FieldCodec<string> _repeated_packetLabels_codec
|
||||
= pb::FieldCodec.ForString(34);
|
||||
private readonly pbc::RepeatedField<string> packetLabels_ = new pbc::RepeatedField<string>();
|
||||
/// <summary>
|
||||
/// Identifier labels for each input packet stream. The order of labels must
|
||||
/// correspond 1:1 with the input streams order. The labels are copied to the
|
||||
/// latency information output by the calculator.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<string> PacketLabels {
|
||||
get { return packetLabels_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as PacketLatencyCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(PacketLatencyCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (NumIntervals != other.NumIntervals) return false;
|
||||
if (IntervalSizeUsec != other.IntervalSizeUsec) return false;
|
||||
if (ResetDurationUsec != other.ResetDurationUsec) return false;
|
||||
if(!packetLabels_.Equals(other.packetLabels_)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasNumIntervals) hash ^= NumIntervals.GetHashCode();
|
||||
if (HasIntervalSizeUsec) hash ^= IntervalSizeUsec.GetHashCode();
|
||||
if (HasResetDurationUsec) hash ^= ResetDurationUsec.GetHashCode();
|
||||
hash ^= packetLabels_.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasNumIntervals) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt64(NumIntervals);
|
||||
}
|
||||
if (HasIntervalSizeUsec) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt64(IntervalSizeUsec);
|
||||
}
|
||||
if (HasResetDurationUsec) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt64(ResetDurationUsec);
|
||||
}
|
||||
packetLabels_.WriteTo(output, _repeated_packetLabels_codec);
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasNumIntervals) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt64(NumIntervals);
|
||||
}
|
||||
if (HasIntervalSizeUsec) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt64(IntervalSizeUsec);
|
||||
}
|
||||
if (HasResetDurationUsec) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt64(ResetDurationUsec);
|
||||
}
|
||||
packetLabels_.WriteTo(ref output, _repeated_packetLabels_codec);
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasNumIntervals) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumIntervals);
|
||||
}
|
||||
if (HasIntervalSizeUsec) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(IntervalSizeUsec);
|
||||
}
|
||||
if (HasResetDurationUsec) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(ResetDurationUsec);
|
||||
}
|
||||
size += packetLabels_.CalculateSize(_repeated_packetLabels_codec);
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(PacketLatencyCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasNumIntervals) {
|
||||
NumIntervals = other.NumIntervals;
|
||||
}
|
||||
if (other.HasIntervalSizeUsec) {
|
||||
IntervalSizeUsec = other.IntervalSizeUsec;
|
||||
}
|
||||
if (other.HasResetDurationUsec) {
|
||||
ResetDurationUsec = other.ResetDurationUsec;
|
||||
}
|
||||
packetLabels_.Add(other.packetLabels_);
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
NumIntervals = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
IntervalSizeUsec = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
ResetDurationUsec = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
packetLabels_.AddEntriesFrom(input, _repeated_packetLabels_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
NumIntervals = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
IntervalSizeUsec = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
ResetDurationUsec = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
packetLabels_.AddEntriesFrom(ref input, _repeated_packetLabels_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the PacketLatencyCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.PacketLatencyCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.PacketLatencyCalculatorOptions>(172681421, pb::FieldCodec.ForMessage(1381451370, global::Mediapipe.PacketLatencyCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d3b9f92408a56ffb7ba62882486e231c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,484 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/rect_to_render_data_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/rect_to_render_data_calculator.proto</summary>
|
||||
public static partial class RectToRenderDataCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/rect_to_render_data_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static RectToRenderDataCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Cj9tZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9yZWN0X3RvX3JlbmRlcl9k",
|
||||
"YXRhX2NhbGN1bGF0b3IucHJvdG8SCW1lZGlhcGlwZRokbWVkaWFwaXBlL2Zy",
|
||||
"YW1ld29yay9jYWxjdWxhdG9yLnByb3RvGhptZWRpYXBpcGUvdXRpbC9jb2xv",
|
||||
"ci5wcm90byL3AQohUmVjdFRvUmVuZGVyRGF0YUNhbGN1bGF0b3JPcHRpb25z",
|
||||
"Eg4KBmZpbGxlZBgBIAEoCBIfCgVjb2xvchgCIAEoCzIQLm1lZGlhcGlwZS5D",
|
||||
"b2xvchIUCgl0aGlja25lc3MYAyABKAE6ATESEwoEb3ZhbBgEIAEoCDoFZmFs",
|
||||
"c2USGgoSdG9wX2xlZnRfdGhpY2tuZXNzGAUgASgBMloKA2V4dBIcLm1lZGlh",
|
||||
"cGlwZS5DYWxjdWxhdG9yT3B0aW9ucxis24d9IAEoCzIsLm1lZGlhcGlwZS5S",
|
||||
"ZWN0VG9SZW5kZXJEYXRhQ2FsY3VsYXRvck9wdGlvbnM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, global::Mediapipe.ColorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.RectToRenderDataCalculatorOptions), global::Mediapipe.RectToRenderDataCalculatorOptions.Parser, new[]{ "Filled", "Color", "Thickness", "Oval", "TopLeftThickness" }, null, null, new pb::Extension[] { global::Mediapipe.RectToRenderDataCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class RectToRenderDataCalculatorOptions : pb::IMessage<RectToRenderDataCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<RectToRenderDataCalculatorOptions> _parser = new pb::MessageParser<RectToRenderDataCalculatorOptions>(() => new RectToRenderDataCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<RectToRenderDataCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.RectToRenderDataCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public RectToRenderDataCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public RectToRenderDataCalculatorOptions(RectToRenderDataCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
filled_ = other.filled_;
|
||||
color_ = other.color_ != null ? other.color_.Clone() : null;
|
||||
thickness_ = other.thickness_;
|
||||
oval_ = other.oval_;
|
||||
topLeftThickness_ = other.topLeftThickness_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public RectToRenderDataCalculatorOptions Clone() {
|
||||
return new RectToRenderDataCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "filled" field.</summary>
|
||||
public const int FilledFieldNumber = 1;
|
||||
private readonly static bool FilledDefaultValue = false;
|
||||
|
||||
private bool filled_;
|
||||
/// <summary>
|
||||
/// Whether the rendered rectangle should be filled.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Filled {
|
||||
get { if ((_hasBits0 & 1) != 0) { return filled_; } else { return FilledDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
filled_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "filled" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasFilled {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "filled" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearFilled() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "color" field.</summary>
|
||||
public const int ColorFieldNumber = 2;
|
||||
private global::Mediapipe.Color color_;
|
||||
/// <summary>
|
||||
/// Line color or filled color of the rectangle.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.Color Color {
|
||||
get { return color_; }
|
||||
set {
|
||||
color_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "thickness" field.</summary>
|
||||
public const int ThicknessFieldNumber = 3;
|
||||
private readonly static double ThicknessDefaultValue = 1D;
|
||||
|
||||
private double thickness_;
|
||||
/// <summary>
|
||||
/// Thickness of the line (applicable when the rectangle is not filled).
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double Thickness {
|
||||
get { if ((_hasBits0 & 2) != 0) { return thickness_; } else { return ThicknessDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
thickness_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "thickness" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasThickness {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "thickness" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearThickness() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "oval" field.</summary>
|
||||
public const int OvalFieldNumber = 4;
|
||||
private readonly static bool OvalDefaultValue = false;
|
||||
|
||||
private bool oval_;
|
||||
/// <summary>
|
||||
/// Whether the rendered rectangle should be an oval.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Oval {
|
||||
get { if ((_hasBits0 & 4) != 0) { return oval_; } else { return OvalDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
oval_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "oval" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasOval {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "oval" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearOval() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "top_left_thickness" field.</summary>
|
||||
public const int TopLeftThicknessFieldNumber = 5;
|
||||
private readonly static double TopLeftThicknessDefaultValue = 0D;
|
||||
|
||||
private double topLeftThickness_;
|
||||
/// <summary>
|
||||
/// Radius of top left corner circle. Only supported for oval=false,
|
||||
/// filled=false.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double TopLeftThickness {
|
||||
get { if ((_hasBits0 & 8) != 0) { return topLeftThickness_; } else { return TopLeftThicknessDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
topLeftThickness_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "top_left_thickness" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasTopLeftThickness {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "top_left_thickness" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearTopLeftThickness() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as RectToRenderDataCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(RectToRenderDataCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Filled != other.Filled) return false;
|
||||
if (!object.Equals(Color, other.Color)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Thickness, other.Thickness)) return false;
|
||||
if (Oval != other.Oval) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TopLeftThickness, other.TopLeftThickness)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasFilled) hash ^= Filled.GetHashCode();
|
||||
if (color_ != null) hash ^= Color.GetHashCode();
|
||||
if (HasThickness) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Thickness);
|
||||
if (HasOval) hash ^= Oval.GetHashCode();
|
||||
if (HasTopLeftThickness) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TopLeftThickness);
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasFilled) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(Filled);
|
||||
}
|
||||
if (color_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(Color);
|
||||
}
|
||||
if (HasThickness) {
|
||||
output.WriteRawTag(25);
|
||||
output.WriteDouble(Thickness);
|
||||
}
|
||||
if (HasOval) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteBool(Oval);
|
||||
}
|
||||
if (HasTopLeftThickness) {
|
||||
output.WriteRawTag(41);
|
||||
output.WriteDouble(TopLeftThickness);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasFilled) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(Filled);
|
||||
}
|
||||
if (color_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(Color);
|
||||
}
|
||||
if (HasThickness) {
|
||||
output.WriteRawTag(25);
|
||||
output.WriteDouble(Thickness);
|
||||
}
|
||||
if (HasOval) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteBool(Oval);
|
||||
}
|
||||
if (HasTopLeftThickness) {
|
||||
output.WriteRawTag(41);
|
||||
output.WriteDouble(TopLeftThickness);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasFilled) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (color_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color);
|
||||
}
|
||||
if (HasThickness) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasOval) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasTopLeftThickness) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(RectToRenderDataCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasFilled) {
|
||||
Filled = other.Filled;
|
||||
}
|
||||
if (other.color_ != null) {
|
||||
if (color_ == null) {
|
||||
Color = new global::Mediapipe.Color();
|
||||
}
|
||||
Color.MergeFrom(other.Color);
|
||||
}
|
||||
if (other.HasThickness) {
|
||||
Thickness = other.Thickness;
|
||||
}
|
||||
if (other.HasOval) {
|
||||
Oval = other.Oval;
|
||||
}
|
||||
if (other.HasTopLeftThickness) {
|
||||
TopLeftThickness = other.TopLeftThickness;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
Filled = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (color_ == null) {
|
||||
Color = new global::Mediapipe.Color();
|
||||
}
|
||||
input.ReadMessage(Color);
|
||||
break;
|
||||
}
|
||||
case 25: {
|
||||
Thickness = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
Oval = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 41: {
|
||||
TopLeftThickness = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
Filled = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (color_ == null) {
|
||||
Color = new global::Mediapipe.Color();
|
||||
}
|
||||
input.ReadMessage(Color);
|
||||
break;
|
||||
}
|
||||
case 25: {
|
||||
Thickness = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
Oval = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 41: {
|
||||
TopLeftThickness = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the RectToRenderDataCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.RectToRenderDataCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.RectToRenderDataCalculatorOptions>(262270380, pb::FieldCodec.ForMessage(2098163042, global::Mediapipe.RectToRenderDataCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cebcacf7fccb5e276b1bf0945587f5f1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,327 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/rect_to_render_scale_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/rect_to_render_scale_calculator.proto</summary>
|
||||
public static partial class RectToRenderScaleCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/rect_to_render_scale_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static RectToRenderScaleCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkBtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9yZWN0X3RvX3JlbmRlcl9z",
|
||||
"Y2FsZV9jYWxjdWxhdG9yLnByb3RvEgltZWRpYXBpcGUaJG1lZGlhcGlwZS9m",
|
||||
"cmFtZXdvcmsvY2FsY3VsYXRvci5wcm90byLFAQoiUmVjdFRvUmVuZGVyU2Nh",
|
||||
"bGVDYWxjdWxhdG9yT3B0aW9ucxIYCgptdWx0aXBsaWVyGAEgASgCOgQwLjAx",
|
||||
"EicKGHByb2Nlc3NfdGltZXN0YW1wX2JvdW5kcxgCIAEoCDoFZmFsc2UyXAoD",
|
||||
"ZXh0EhwubWVkaWFwaXBlLkNhbGN1bGF0b3JPcHRpb25zGPHl5Y4BIAEoCzIt",
|
||||
"Lm1lZGlhcGlwZS5SZWN0VG9SZW5kZXJTY2FsZUNhbGN1bGF0b3JPcHRpb25z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.RectToRenderScaleCalculatorOptions), global::Mediapipe.RectToRenderScaleCalculatorOptions.Parser, new[]{ "Multiplier", "ProcessTimestampBounds" }, null, null, new pb::Extension[] { global::Mediapipe.RectToRenderScaleCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class RectToRenderScaleCalculatorOptions : pb::IMessage<RectToRenderScaleCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<RectToRenderScaleCalculatorOptions> _parser = new pb::MessageParser<RectToRenderScaleCalculatorOptions>(() => new RectToRenderScaleCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<RectToRenderScaleCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.RectToRenderScaleCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public RectToRenderScaleCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public RectToRenderScaleCalculatorOptions(RectToRenderScaleCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
multiplier_ = other.multiplier_;
|
||||
processTimestampBounds_ = other.processTimestampBounds_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public RectToRenderScaleCalculatorOptions Clone() {
|
||||
return new RectToRenderScaleCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "multiplier" field.</summary>
|
||||
public const int MultiplierFieldNumber = 1;
|
||||
private readonly static float MultiplierDefaultValue = 0.01F;
|
||||
|
||||
private float multiplier_;
|
||||
/// <summary>
|
||||
/// Multiplier to apply to the rect size.
|
||||
/// If one defined `thickness` for RenderData primitives for object (e.g. pose,
|
||||
/// hand or face) of size `A` then multiplier should be `1/A`. It means that
|
||||
/// when actual object size on the image will be `B`, than all RenderData
|
||||
/// primitives will be scaled with factor `B/A`.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float Multiplier {
|
||||
get { if ((_hasBits0 & 1) != 0) { return multiplier_; } else { return MultiplierDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
multiplier_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "multiplier" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasMultiplier {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "multiplier" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearMultiplier() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "process_timestamp_bounds" field.</summary>
|
||||
public const int ProcessTimestampBoundsFieldNumber = 2;
|
||||
private readonly static bool ProcessTimestampBoundsDefaultValue = false;
|
||||
|
||||
private bool processTimestampBounds_;
|
||||
/// <summary>
|
||||
/// When true, Process is called for every new timestamp bound, with or without
|
||||
/// new packets.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool ProcessTimestampBounds {
|
||||
get { if ((_hasBits0 & 2) != 0) { return processTimestampBounds_; } else { return ProcessTimestampBoundsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
processTimestampBounds_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "process_timestamp_bounds" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasProcessTimestampBounds {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "process_timestamp_bounds" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearProcessTimestampBounds() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as RectToRenderScaleCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(RectToRenderScaleCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Multiplier, other.Multiplier)) return false;
|
||||
if (ProcessTimestampBounds != other.ProcessTimestampBounds) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasMultiplier) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Multiplier);
|
||||
if (HasProcessTimestampBounds) hash ^= ProcessTimestampBounds.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasMultiplier) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(Multiplier);
|
||||
}
|
||||
if (HasProcessTimestampBounds) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteBool(ProcessTimestampBounds);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasMultiplier) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(Multiplier);
|
||||
}
|
||||
if (HasProcessTimestampBounds) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteBool(ProcessTimestampBounds);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasMultiplier) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasProcessTimestampBounds) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(RectToRenderScaleCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasMultiplier) {
|
||||
Multiplier = other.Multiplier;
|
||||
}
|
||||
if (other.HasProcessTimestampBounds) {
|
||||
ProcessTimestampBounds = other.ProcessTimestampBounds;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 13: {
|
||||
Multiplier = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
ProcessTimestampBounds = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 13: {
|
||||
Multiplier = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
ProcessTimestampBounds = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the RectToRenderScaleCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.RectToRenderScaleCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.RectToRenderScaleCalculatorOptions>(299463409, pb::FieldCodec.ForMessage(2395707274, global::Mediapipe.RectToRenderScaleCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9f543e63e248fb96eae0d0d5a084479b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,651 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/rect_transformation_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/rect_transformation_calculator.proto</summary>
|
||||
public static partial class RectTransformationCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/rect_transformation_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static RectTransformationCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Cj9tZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9yZWN0X3RyYW5zZm9ybWF0",
|
||||
"aW9uX2NhbGN1bGF0b3IucHJvdG8SCW1lZGlhcGlwZRokbWVkaWFwaXBlL2Zy",
|
||||
"YW1ld29yay9jYWxjdWxhdG9yLnByb3RvIqQCCiNSZWN0VHJhbnNmb3JtYXRp",
|
||||
"b25DYWxjdWxhdG9yT3B0aW9ucxISCgdzY2FsZV94GAEgASgCOgExEhIKB3Nj",
|
||||
"YWxlX3kYAiABKAI6ATESEAoIcm90YXRpb24YAyABKAISGAoQcm90YXRpb25f",
|
||||
"ZGVncmVlcxgEIAEoBRIPCgdzaGlmdF94GAUgASgCEg8KB3NoaWZ0X3kYBiAB",
|
||||
"KAISEwoLc3F1YXJlX2xvbmcYByABKAgSFAoMc3F1YXJlX3Nob3J0GAggASgI",
|
||||
"MlwKA2V4dBIcLm1lZGlhcGlwZS5DYWxjdWxhdG9yT3B0aW9ucxiIg4V9IAEo",
|
||||
"CzIuLm1lZGlhcGlwZS5SZWN0VHJhbnNmb3JtYXRpb25DYWxjdWxhdG9yT3B0",
|
||||
"aW9ucw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.RectTransformationCalculatorOptions), global::Mediapipe.RectTransformationCalculatorOptions.Parser, new[]{ "ScaleX", "ScaleY", "Rotation", "RotationDegrees", "ShiftX", "ShiftY", "SquareLong", "SquareShort" }, null, null, new pb::Extension[] { global::Mediapipe.RectTransformationCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class RectTransformationCalculatorOptions : pb::IMessage<RectTransformationCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<RectTransformationCalculatorOptions> _parser = new pb::MessageParser<RectTransformationCalculatorOptions>(() => new RectTransformationCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<RectTransformationCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.RectTransformationCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public RectTransformationCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public RectTransformationCalculatorOptions(RectTransformationCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
scaleX_ = other.scaleX_;
|
||||
scaleY_ = other.scaleY_;
|
||||
rotation_ = other.rotation_;
|
||||
rotationDegrees_ = other.rotationDegrees_;
|
||||
shiftX_ = other.shiftX_;
|
||||
shiftY_ = other.shiftY_;
|
||||
squareLong_ = other.squareLong_;
|
||||
squareShort_ = other.squareShort_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public RectTransformationCalculatorOptions Clone() {
|
||||
return new RectTransformationCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "scale_x" field.</summary>
|
||||
public const int ScaleXFieldNumber = 1;
|
||||
private readonly static float ScaleXDefaultValue = 1F;
|
||||
|
||||
private float scaleX_;
|
||||
/// <summary>
|
||||
/// Scaling factor along the side of a rotated rect that was aligned with the
|
||||
/// X and Y axis before rotation respectively.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float ScaleX {
|
||||
get { if ((_hasBits0 & 1) != 0) { return scaleX_; } else { return ScaleXDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
scaleX_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "scale_x" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasScaleX {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "scale_x" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearScaleX() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "scale_y" field.</summary>
|
||||
public const int ScaleYFieldNumber = 2;
|
||||
private readonly static float ScaleYDefaultValue = 1F;
|
||||
|
||||
private float scaleY_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float ScaleY {
|
||||
get { if ((_hasBits0 & 2) != 0) { return scaleY_; } else { return ScaleYDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
scaleY_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "scale_y" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasScaleY {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "scale_y" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearScaleY() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "rotation" field.</summary>
|
||||
public const int RotationFieldNumber = 3;
|
||||
private readonly static float RotationDefaultValue = 0F;
|
||||
|
||||
private float rotation_;
|
||||
/// <summary>
|
||||
/// Additional rotation (counter-clockwise) around the rect center either in
|
||||
/// radians or in degrees.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float Rotation {
|
||||
get { if ((_hasBits0 & 4) != 0) { return rotation_; } else { return RotationDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
rotation_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "rotation" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasRotation {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "rotation" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearRotation() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "rotation_degrees" field.</summary>
|
||||
public const int RotationDegreesFieldNumber = 4;
|
||||
private readonly static int RotationDegreesDefaultValue = 0;
|
||||
|
||||
private int rotationDegrees_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int RotationDegrees {
|
||||
get { if ((_hasBits0 & 8) != 0) { return rotationDegrees_; } else { return RotationDegreesDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
rotationDegrees_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "rotation_degrees" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasRotationDegrees {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "rotation_degrees" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearRotationDegrees() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "shift_x" field.</summary>
|
||||
public const int ShiftXFieldNumber = 5;
|
||||
private readonly static float ShiftXDefaultValue = 0F;
|
||||
|
||||
private float shiftX_;
|
||||
/// <summary>
|
||||
/// Shift along the side of a rotated rect that was aligned with the X and Y
|
||||
/// axis before rotation respectively. The shift is relative to the length of
|
||||
/// corresponding side. For example, for a rect with size (0.4, 0.6), with
|
||||
/// shift_x = 0.5 and shift_y = -0.5 the rect is shifted along the two sides
|
||||
/// by 0.2 and -0.3 respectively.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float ShiftX {
|
||||
get { if ((_hasBits0 & 16) != 0) { return shiftX_; } else { return ShiftXDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
shiftX_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "shift_x" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasShiftX {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "shift_x" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearShiftX() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "shift_y" field.</summary>
|
||||
public const int ShiftYFieldNumber = 6;
|
||||
private readonly static float ShiftYDefaultValue = 0F;
|
||||
|
||||
private float shiftY_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float ShiftY {
|
||||
get { if ((_hasBits0 & 32) != 0) { return shiftY_; } else { return ShiftYDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 32;
|
||||
shiftY_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "shift_y" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasShiftY {
|
||||
get { return (_hasBits0 & 32) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "shift_y" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearShiftY() {
|
||||
_hasBits0 &= ~32;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "square_long" field.</summary>
|
||||
public const int SquareLongFieldNumber = 7;
|
||||
private readonly static bool SquareLongDefaultValue = false;
|
||||
|
||||
private bool squareLong_;
|
||||
/// <summary>
|
||||
/// Change the final transformed rect into a square that shares the same center
|
||||
/// and rotation with the rect, and with the side of the square equal to either
|
||||
/// the long or short side of the rect respectively.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool SquareLong {
|
||||
get { if ((_hasBits0 & 64) != 0) { return squareLong_; } else { return SquareLongDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 64;
|
||||
squareLong_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "square_long" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasSquareLong {
|
||||
get { return (_hasBits0 & 64) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "square_long" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearSquareLong() {
|
||||
_hasBits0 &= ~64;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "square_short" field.</summary>
|
||||
public const int SquareShortFieldNumber = 8;
|
||||
private readonly static bool SquareShortDefaultValue = false;
|
||||
|
||||
private bool squareShort_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool SquareShort {
|
||||
get { if ((_hasBits0 & 128) != 0) { return squareShort_; } else { return SquareShortDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 128;
|
||||
squareShort_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "square_short" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasSquareShort {
|
||||
get { return (_hasBits0 & 128) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "square_short" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearSquareShort() {
|
||||
_hasBits0 &= ~128;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as RectTransformationCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(RectTransformationCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ScaleX, other.ScaleX)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ScaleY, other.ScaleY)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Rotation, other.Rotation)) return false;
|
||||
if (RotationDegrees != other.RotationDegrees) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShiftX, other.ShiftX)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ShiftY, other.ShiftY)) return false;
|
||||
if (SquareLong != other.SquareLong) return false;
|
||||
if (SquareShort != other.SquareShort) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasScaleX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ScaleX);
|
||||
if (HasScaleY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ScaleY);
|
||||
if (HasRotation) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Rotation);
|
||||
if (HasRotationDegrees) hash ^= RotationDegrees.GetHashCode();
|
||||
if (HasShiftX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShiftX);
|
||||
if (HasShiftY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ShiftY);
|
||||
if (HasSquareLong) hash ^= SquareLong.GetHashCode();
|
||||
if (HasSquareShort) hash ^= SquareShort.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasScaleX) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(ScaleX);
|
||||
}
|
||||
if (HasScaleY) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(ScaleY);
|
||||
}
|
||||
if (HasRotation) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(Rotation);
|
||||
}
|
||||
if (HasRotationDegrees) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteInt32(RotationDegrees);
|
||||
}
|
||||
if (HasShiftX) {
|
||||
output.WriteRawTag(45);
|
||||
output.WriteFloat(ShiftX);
|
||||
}
|
||||
if (HasShiftY) {
|
||||
output.WriteRawTag(53);
|
||||
output.WriteFloat(ShiftY);
|
||||
}
|
||||
if (HasSquareLong) {
|
||||
output.WriteRawTag(56);
|
||||
output.WriteBool(SquareLong);
|
||||
}
|
||||
if (HasSquareShort) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteBool(SquareShort);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasScaleX) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(ScaleX);
|
||||
}
|
||||
if (HasScaleY) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(ScaleY);
|
||||
}
|
||||
if (HasRotation) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(Rotation);
|
||||
}
|
||||
if (HasRotationDegrees) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteInt32(RotationDegrees);
|
||||
}
|
||||
if (HasShiftX) {
|
||||
output.WriteRawTag(45);
|
||||
output.WriteFloat(ShiftX);
|
||||
}
|
||||
if (HasShiftY) {
|
||||
output.WriteRawTag(53);
|
||||
output.WriteFloat(ShiftY);
|
||||
}
|
||||
if (HasSquareLong) {
|
||||
output.WriteRawTag(56);
|
||||
output.WriteBool(SquareLong);
|
||||
}
|
||||
if (HasSquareShort) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteBool(SquareShort);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasScaleX) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasScaleY) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasRotation) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasRotationDegrees) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RotationDegrees);
|
||||
}
|
||||
if (HasShiftX) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasShiftY) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasSquareLong) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasSquareShort) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(RectTransformationCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasScaleX) {
|
||||
ScaleX = other.ScaleX;
|
||||
}
|
||||
if (other.HasScaleY) {
|
||||
ScaleY = other.ScaleY;
|
||||
}
|
||||
if (other.HasRotation) {
|
||||
Rotation = other.Rotation;
|
||||
}
|
||||
if (other.HasRotationDegrees) {
|
||||
RotationDegrees = other.RotationDegrees;
|
||||
}
|
||||
if (other.HasShiftX) {
|
||||
ShiftX = other.ShiftX;
|
||||
}
|
||||
if (other.HasShiftY) {
|
||||
ShiftY = other.ShiftY;
|
||||
}
|
||||
if (other.HasSquareLong) {
|
||||
SquareLong = other.SquareLong;
|
||||
}
|
||||
if (other.HasSquareShort) {
|
||||
SquareShort = other.SquareShort;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 13: {
|
||||
ScaleX = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
ScaleY = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
Rotation = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
RotationDegrees = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 45: {
|
||||
ShiftX = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 53: {
|
||||
ShiftY = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 56: {
|
||||
SquareLong = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
SquareShort = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 13: {
|
||||
ScaleX = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
ScaleY = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
Rotation = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
RotationDegrees = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 45: {
|
||||
ShiftX = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 53: {
|
||||
ShiftY = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 56: {
|
||||
SquareLong = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
SquareShort = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the RectTransformationCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.RectTransformationCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.RectTransformationCalculatorOptions>(262226312, pb::FieldCodec.ForMessage(2097810498, global::Mediapipe.RectTransformationCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 05e149598366f900bb466d533de49fe2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,422 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/refine_landmarks_from_heatmap_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/refine_landmarks_from_heatmap_calculator.proto</summary>
|
||||
public static partial class RefineLandmarksFromHeatmapCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/refine_landmarks_from_heatmap_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static RefineLandmarksFromHeatmapCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkltZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9yZWZpbmVfbGFuZG1hcmtz",
|
||||
"X2Zyb21faGVhdG1hcF9jYWxjdWxhdG9yLnByb3RvEgltZWRpYXBpcGUaJG1l",
|
||||
"ZGlhcGlwZS9mcmFtZXdvcmsvY2FsY3VsYXRvci5wcm90byKVAgorUmVmaW5l",
|
||||
"TGFuZG1hcmtzRnJvbUhlYXRtYXBDYWxjdWxhdG9yT3B0aW9ucxIWCgtrZXJu",
|
||||
"ZWxfc2l6ZRgBIAEoBToBORIlChhtaW5fY29uZmlkZW5jZV90b19yZWZpbmUY",
|
||||
"AiABKAI6AzAuNRIeCg9yZWZpbmVfcHJlc2VuY2UYAyABKAg6BWZhbHNlEiAK",
|
||||
"EXJlZmluZV92aXNpYmlsaXR5GAQgASgIOgVmYWxzZTJlCgNleHQSHC5tZWRp",
|
||||
"YXBpcGUuQ2FsY3VsYXRvck9wdGlvbnMYtfXfrAEgASgLMjYubWVkaWFwaXBl",
|
||||
"LlJlZmluZUxhbmRtYXJrc0Zyb21IZWF0bWFwQ2FsY3VsYXRvck9wdGlvbnM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.RefineLandmarksFromHeatmapCalculatorOptions), global::Mediapipe.RefineLandmarksFromHeatmapCalculatorOptions.Parser, new[]{ "KernelSize", "MinConfidenceToRefine", "RefinePresence", "RefineVisibility" }, null, null, new pb::Extension[] { global::Mediapipe.RefineLandmarksFromHeatmapCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class RefineLandmarksFromHeatmapCalculatorOptions : pb::IMessage<RefineLandmarksFromHeatmapCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<RefineLandmarksFromHeatmapCalculatorOptions> _parser = new pb::MessageParser<RefineLandmarksFromHeatmapCalculatorOptions>(() => new RefineLandmarksFromHeatmapCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<RefineLandmarksFromHeatmapCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.RefineLandmarksFromHeatmapCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public RefineLandmarksFromHeatmapCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public RefineLandmarksFromHeatmapCalculatorOptions(RefineLandmarksFromHeatmapCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
kernelSize_ = other.kernelSize_;
|
||||
minConfidenceToRefine_ = other.minConfidenceToRefine_;
|
||||
refinePresence_ = other.refinePresence_;
|
||||
refineVisibility_ = other.refineVisibility_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public RefineLandmarksFromHeatmapCalculatorOptions Clone() {
|
||||
return new RefineLandmarksFromHeatmapCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "kernel_size" field.</summary>
|
||||
public const int KernelSizeFieldNumber = 1;
|
||||
private readonly static int KernelSizeDefaultValue = 9;
|
||||
|
||||
private int kernelSize_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int KernelSize {
|
||||
get { if ((_hasBits0 & 1) != 0) { return kernelSize_; } else { return KernelSizeDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
kernelSize_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "kernel_size" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasKernelSize {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "kernel_size" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearKernelSize() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "min_confidence_to_refine" field.</summary>
|
||||
public const int MinConfidenceToRefineFieldNumber = 2;
|
||||
private readonly static float MinConfidenceToRefineDefaultValue = 0.5F;
|
||||
|
||||
private float minConfidenceToRefine_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float MinConfidenceToRefine {
|
||||
get { if ((_hasBits0 & 2) != 0) { return minConfidenceToRefine_; } else { return MinConfidenceToRefineDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
minConfidenceToRefine_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "min_confidence_to_refine" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasMinConfidenceToRefine {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "min_confidence_to_refine" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearMinConfidenceToRefine() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "refine_presence" field.</summary>
|
||||
public const int RefinePresenceFieldNumber = 3;
|
||||
private readonly static bool RefinePresenceDefaultValue = false;
|
||||
|
||||
private bool refinePresence_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool RefinePresence {
|
||||
get { if ((_hasBits0 & 4) != 0) { return refinePresence_; } else { return RefinePresenceDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
refinePresence_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "refine_presence" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasRefinePresence {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "refine_presence" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearRefinePresence() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "refine_visibility" field.</summary>
|
||||
public const int RefineVisibilityFieldNumber = 4;
|
||||
private readonly static bool RefineVisibilityDefaultValue = false;
|
||||
|
||||
private bool refineVisibility_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool RefineVisibility {
|
||||
get { if ((_hasBits0 & 8) != 0) { return refineVisibility_; } else { return RefineVisibilityDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
refineVisibility_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "refine_visibility" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasRefineVisibility {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "refine_visibility" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearRefineVisibility() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as RefineLandmarksFromHeatmapCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(RefineLandmarksFromHeatmapCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (KernelSize != other.KernelSize) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MinConfidenceToRefine, other.MinConfidenceToRefine)) return false;
|
||||
if (RefinePresence != other.RefinePresence) return false;
|
||||
if (RefineVisibility != other.RefineVisibility) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasKernelSize) hash ^= KernelSize.GetHashCode();
|
||||
if (HasMinConfidenceToRefine) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MinConfidenceToRefine);
|
||||
if (HasRefinePresence) hash ^= RefinePresence.GetHashCode();
|
||||
if (HasRefineVisibility) hash ^= RefineVisibility.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasKernelSize) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(KernelSize);
|
||||
}
|
||||
if (HasMinConfidenceToRefine) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(MinConfidenceToRefine);
|
||||
}
|
||||
if (HasRefinePresence) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(RefinePresence);
|
||||
}
|
||||
if (HasRefineVisibility) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteBool(RefineVisibility);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasKernelSize) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(KernelSize);
|
||||
}
|
||||
if (HasMinConfidenceToRefine) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(MinConfidenceToRefine);
|
||||
}
|
||||
if (HasRefinePresence) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(RefinePresence);
|
||||
}
|
||||
if (HasRefineVisibility) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteBool(RefineVisibility);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasKernelSize) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(KernelSize);
|
||||
}
|
||||
if (HasMinConfidenceToRefine) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasRefinePresence) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasRefineVisibility) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(RefineLandmarksFromHeatmapCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasKernelSize) {
|
||||
KernelSize = other.KernelSize;
|
||||
}
|
||||
if (other.HasMinConfidenceToRefine) {
|
||||
MinConfidenceToRefine = other.MinConfidenceToRefine;
|
||||
}
|
||||
if (other.HasRefinePresence) {
|
||||
RefinePresence = other.RefinePresence;
|
||||
}
|
||||
if (other.HasRefineVisibility) {
|
||||
RefineVisibility = other.RefineVisibility;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
KernelSize = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
MinConfidenceToRefine = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
RefinePresence = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
RefineVisibility = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
KernelSize = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
MinConfidenceToRefine = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
RefinePresence = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
RefineVisibility = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the RefineLandmarksFromHeatmapCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.RefineLandmarksFromHeatmapCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.RefineLandmarksFromHeatmapCalculatorOptions>(362281653, pb::FieldCodec.ForMessage(2898253226, global::Mediapipe.RefineLandmarksFromHeatmapCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2c3baab1928bff0e1bdec866528b7e28
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,263 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/thresholding_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/thresholding_calculator.proto</summary>
|
||||
public static partial class ThresholdingCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/thresholding_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static ThresholdingCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjhtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC90aHJlc2hvbGRpbmdfY2Fs",
|
||||
"Y3VsYXRvci5wcm90bxIJbWVkaWFwaXBlGiRtZWRpYXBpcGUvZnJhbWV3b3Jr",
|
||||
"L2NhbGN1bGF0b3IucHJvdG8iigEKHVRocmVzaG9sZGluZ0NhbGN1bGF0b3JP",
|
||||
"cHRpb25zEhEKCXRocmVzaG9sZBgBIAEoATJWCgNleHQSHC5tZWRpYXBpcGUu",
|
||||
"Q2FsY3VsYXRvck9wdGlvbnMY4sf8eyABKAsyKC5tZWRpYXBpcGUuVGhyZXNo",
|
||||
"b2xkaW5nQ2FsY3VsYXRvck9wdGlvbnM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.ThresholdingCalculatorOptions), global::Mediapipe.ThresholdingCalculatorOptions.Parser, new[]{ "Threshold" }, null, null, new pb::Extension[] { global::Mediapipe.ThresholdingCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class ThresholdingCalculatorOptions : pb::IMessage<ThresholdingCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<ThresholdingCalculatorOptions> _parser = new pb::MessageParser<ThresholdingCalculatorOptions>(() => new ThresholdingCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<ThresholdingCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.ThresholdingCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public ThresholdingCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public ThresholdingCalculatorOptions(ThresholdingCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
threshold_ = other.threshold_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public ThresholdingCalculatorOptions Clone() {
|
||||
return new ThresholdingCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "threshold" field.</summary>
|
||||
public const int ThresholdFieldNumber = 1;
|
||||
private readonly static double ThresholdDefaultValue = 0D;
|
||||
|
||||
private double threshold_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double Threshold {
|
||||
get { if ((_hasBits0 & 1) != 0) { return threshold_; } else { return ThresholdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
threshold_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "threshold" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasThreshold {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "threshold" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearThreshold() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as ThresholdingCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(ThresholdingCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Threshold, other.Threshold)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasThreshold) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Threshold);
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasThreshold) {
|
||||
output.WriteRawTag(9);
|
||||
output.WriteDouble(Threshold);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasThreshold) {
|
||||
output.WriteRawTag(9);
|
||||
output.WriteDouble(Threshold);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasThreshold) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(ThresholdingCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasThreshold) {
|
||||
Threshold = other.Threshold;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 9: {
|
||||
Threshold = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 9: {
|
||||
Threshold = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the ThresholdingCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.ThresholdingCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.ThresholdingCalculatorOptions>(259990498, pb::FieldCodec.ForMessage(2079923986, global::Mediapipe.ThresholdingCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 81f3d9cc258eeb1d1b47c50df48d5cf6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,264 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/timed_box_list_id_to_label_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/timed_box_list_id_to_label_calculator.proto</summary>
|
||||
public static partial class TimedBoxListIdToLabelCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/timed_box_list_id_to_label_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static TimedBoxListIdToLabelCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkZtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC90aW1lZF9ib3hfbGlzdF9p",
|
||||
"ZF90b19sYWJlbF9jYWxjdWxhdG9yLnByb3RvEgltZWRpYXBpcGUaJG1lZGlh",
|
||||
"cGlwZS9mcmFtZXdvcmsvY2FsY3VsYXRvci5wcm90byKiAQomVGltZWRCb3hM",
|
||||
"aXN0SWRUb0xhYmVsQ2FsY3VsYXRvck9wdGlvbnMSFgoObGFiZWxfbWFwX3Bh",
|
||||
"dGgYASABKAkyYAoDZXh0EhwubWVkaWFwaXBlLkNhbGN1bGF0b3JPcHRpb25z",
|
||||
"GOah+o0BIAEoCzIxLm1lZGlhcGlwZS5UaW1lZEJveExpc3RJZFRvTGFiZWxD",
|
||||
"YWxjdWxhdG9yT3B0aW9ucw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.TimedBoxListIdToLabelCalculatorOptions), global::Mediapipe.TimedBoxListIdToLabelCalculatorOptions.Parser, new[]{ "LabelMapPath" }, null, null, new pb::Extension[] { global::Mediapipe.TimedBoxListIdToLabelCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class TimedBoxListIdToLabelCalculatorOptions : pb::IMessage<TimedBoxListIdToLabelCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<TimedBoxListIdToLabelCalculatorOptions> _parser = new pb::MessageParser<TimedBoxListIdToLabelCalculatorOptions>(() => new TimedBoxListIdToLabelCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<TimedBoxListIdToLabelCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.TimedBoxListIdToLabelCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TimedBoxListIdToLabelCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TimedBoxListIdToLabelCalculatorOptions(TimedBoxListIdToLabelCalculatorOptions other) : this() {
|
||||
labelMapPath_ = other.labelMapPath_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TimedBoxListIdToLabelCalculatorOptions Clone() {
|
||||
return new TimedBoxListIdToLabelCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "label_map_path" field.</summary>
|
||||
public const int LabelMapPathFieldNumber = 1;
|
||||
private readonly static string LabelMapPathDefaultValue = "";
|
||||
|
||||
private string labelMapPath_;
|
||||
/// <summary>
|
||||
/// Path to a label map file for getting the actual name of detected classes.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string LabelMapPath {
|
||||
get { return labelMapPath_ ?? LabelMapPathDefaultValue; }
|
||||
set {
|
||||
labelMapPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "label_map_path" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasLabelMapPath {
|
||||
get { return labelMapPath_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "label_map_path" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearLabelMapPath() {
|
||||
labelMapPath_ = null;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as TimedBoxListIdToLabelCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(TimedBoxListIdToLabelCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (LabelMapPath != other.LabelMapPath) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasLabelMapPath) hash ^= LabelMapPath.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasLabelMapPath) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(LabelMapPath);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasLabelMapPath) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(LabelMapPath);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasLabelMapPath) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(LabelMapPath);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(TimedBoxListIdToLabelCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasLabelMapPath) {
|
||||
LabelMapPath = other.LabelMapPath;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 10: {
|
||||
LabelMapPath = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 10: {
|
||||
LabelMapPath = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the TimedBoxListIdToLabelCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.TimedBoxListIdToLabelCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.TimedBoxListIdToLabelCalculatorOptions>(297701606, pb::FieldCodec.ForMessage(2381612850, global::Mediapipe.TimedBoxListIdToLabelCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 05f458a4a22cf5c6ca8c79f51b461de1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,317 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/timed_box_list_to_render_data_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/timed_box_list_to_render_data_calculator.proto</summary>
|
||||
public static partial class TimedBoxListToRenderDataCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/timed_box_list_to_render_data_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static TimedBoxListToRenderDataCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkltZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC90aW1lZF9ib3hfbGlzdF90",
|
||||
"b19yZW5kZXJfZGF0YV9jYWxjdWxhdG9yLnByb3RvEgltZWRpYXBpcGUaJG1l",
|
||||
"ZGlhcGlwZS9mcmFtZXdvcmsvY2FsY3VsYXRvci5wcm90bxoabWVkaWFwaXBl",
|
||||
"L3V0aWwvY29sb3IucHJvdG8iywEKKVRpbWVkQm94TGlzdFRvUmVuZGVyRGF0",
|
||||
"YUNhbGN1bGF0b3JPcHRpb25zEiMKCWJveF9jb2xvchgBIAEoCzIQLm1lZGlh",
|
||||
"cGlwZS5Db2xvchIUCgl0aGlja25lc3MYAiABKAE6ATEyYwoDZXh0EhwubWVk",
|
||||
"aWFwaXBlLkNhbGN1bGF0b3JPcHRpb25zGM6KnooBIAEoCzI0Lm1lZGlhcGlw",
|
||||
"ZS5UaW1lZEJveExpc3RUb1JlbmRlckRhdGFDYWxjdWxhdG9yT3B0aW9ucw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, global::Mediapipe.ColorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.TimedBoxListToRenderDataCalculatorOptions), global::Mediapipe.TimedBoxListToRenderDataCalculatorOptions.Parser, new[]{ "BoxColor", "Thickness" }, null, null, new pb::Extension[] { global::Mediapipe.TimedBoxListToRenderDataCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class TimedBoxListToRenderDataCalculatorOptions : pb::IMessage<TimedBoxListToRenderDataCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<TimedBoxListToRenderDataCalculatorOptions> _parser = new pb::MessageParser<TimedBoxListToRenderDataCalculatorOptions>(() => new TimedBoxListToRenderDataCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<TimedBoxListToRenderDataCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.TimedBoxListToRenderDataCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TimedBoxListToRenderDataCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TimedBoxListToRenderDataCalculatorOptions(TimedBoxListToRenderDataCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
boxColor_ = other.boxColor_ != null ? other.boxColor_.Clone() : null;
|
||||
thickness_ = other.thickness_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TimedBoxListToRenderDataCalculatorOptions Clone() {
|
||||
return new TimedBoxListToRenderDataCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "box_color" field.</summary>
|
||||
public const int BoxColorFieldNumber = 1;
|
||||
private global::Mediapipe.Color boxColor_;
|
||||
/// <summary>
|
||||
/// Color of boxes.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.Color BoxColor {
|
||||
get { return boxColor_; }
|
||||
set {
|
||||
boxColor_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "thickness" field.</summary>
|
||||
public const int ThicknessFieldNumber = 2;
|
||||
private readonly static double ThicknessDefaultValue = 1D;
|
||||
|
||||
private double thickness_;
|
||||
/// <summary>
|
||||
/// Thickness of the drawing of boxes.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double Thickness {
|
||||
get { if ((_hasBits0 & 1) != 0) { return thickness_; } else { return ThicknessDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
thickness_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "thickness" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasThickness {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "thickness" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearThickness() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as TimedBoxListToRenderDataCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(TimedBoxListToRenderDataCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(BoxColor, other.BoxColor)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Thickness, other.Thickness)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (boxColor_ != null) hash ^= BoxColor.GetHashCode();
|
||||
if (HasThickness) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Thickness);
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (boxColor_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(BoxColor);
|
||||
}
|
||||
if (HasThickness) {
|
||||
output.WriteRawTag(17);
|
||||
output.WriteDouble(Thickness);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (boxColor_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(BoxColor);
|
||||
}
|
||||
if (HasThickness) {
|
||||
output.WriteRawTag(17);
|
||||
output.WriteDouble(Thickness);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (boxColor_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(BoxColor);
|
||||
}
|
||||
if (HasThickness) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(TimedBoxListToRenderDataCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.boxColor_ != null) {
|
||||
if (boxColor_ == null) {
|
||||
BoxColor = new global::Mediapipe.Color();
|
||||
}
|
||||
BoxColor.MergeFrom(other.BoxColor);
|
||||
}
|
||||
if (other.HasThickness) {
|
||||
Thickness = other.Thickness;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 10: {
|
||||
if (boxColor_ == null) {
|
||||
BoxColor = new global::Mediapipe.Color();
|
||||
}
|
||||
input.ReadMessage(BoxColor);
|
||||
break;
|
||||
}
|
||||
case 17: {
|
||||
Thickness = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 10: {
|
||||
if (boxColor_ == null) {
|
||||
BoxColor = new global::Mediapipe.Color();
|
||||
}
|
||||
input.ReadMessage(BoxColor);
|
||||
break;
|
||||
}
|
||||
case 17: {
|
||||
Thickness = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the TimedBoxListToRenderDataCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.TimedBoxListToRenderDataCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.TimedBoxListToRenderDataCalculatorOptions>(289899854, pb::FieldCodec.ForMessage(2319198834, global::Mediapipe.TimedBoxListToRenderDataCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4f75e4e7584829ce393e1ad0afaf0c89
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,376 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/top_k_scores_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/top_k_scores_calculator.proto</summary>
|
||||
public static partial class TopKScoresCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/top_k_scores_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static TopKScoresCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjhtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC90b3Bfa19zY29yZXNfY2Fs",
|
||||
"Y3VsYXRvci5wcm90bxIJbWVkaWFwaXBlGiRtZWRpYXBpcGUvZnJhbWV3b3Jr",
|
||||
"L2NhbGN1bGF0b3IucHJvdG8irgEKG1RvcEtTY29yZXNDYWxjdWxhdG9yT3B0",
|
||||
"aW9ucxINCgV0b3BfaxgBIAEoBRIRCgl0aHJlc2hvbGQYAiABKAISFgoObGFi",
|
||||
"ZWxfbWFwX3BhdGgYAyABKAkyVQoDZXh0EhwubWVkaWFwaXBlLkNhbGN1bGF0",
|
||||
"b3JPcHRpb25zGIy6qYEBIAEoCzImLm1lZGlhcGlwZS5Ub3BLU2NvcmVzQ2Fs",
|
||||
"Y3VsYXRvck9wdGlvbnM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.TopKScoresCalculatorOptions), global::Mediapipe.TopKScoresCalculatorOptions.Parser, new[]{ "TopK", "Threshold", "LabelMapPath" }, null, null, new pb::Extension[] { global::Mediapipe.TopKScoresCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class TopKScoresCalculatorOptions : pb::IMessage<TopKScoresCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<TopKScoresCalculatorOptions> _parser = new pb::MessageParser<TopKScoresCalculatorOptions>(() => new TopKScoresCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<TopKScoresCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.TopKScoresCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TopKScoresCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TopKScoresCalculatorOptions(TopKScoresCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
topK_ = other.topK_;
|
||||
threshold_ = other.threshold_;
|
||||
labelMapPath_ = other.labelMapPath_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TopKScoresCalculatorOptions Clone() {
|
||||
return new TopKScoresCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "top_k" field.</summary>
|
||||
public const int TopKFieldNumber = 1;
|
||||
private readonly static int TopKDefaultValue = 0;
|
||||
|
||||
private int topK_;
|
||||
/// <summary>
|
||||
/// How many highest scoring packets to output.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int TopK {
|
||||
get { if ((_hasBits0 & 1) != 0) { return topK_; } else { return TopKDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
topK_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "top_k" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasTopK {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "top_k" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearTopK() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "threshold" field.</summary>
|
||||
public const int ThresholdFieldNumber = 2;
|
||||
private readonly static float ThresholdDefaultValue = 0F;
|
||||
|
||||
private float threshold_;
|
||||
/// <summary>
|
||||
/// If set, only keep the scores that are greater than the threshold.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float Threshold {
|
||||
get { if ((_hasBits0 & 2) != 0) { return threshold_; } else { return ThresholdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
threshold_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "threshold" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasThreshold {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "threshold" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearThreshold() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "label_map_path" field.</summary>
|
||||
public const int LabelMapPathFieldNumber = 3;
|
||||
private readonly static string LabelMapPathDefaultValue = "";
|
||||
|
||||
private string labelMapPath_;
|
||||
/// <summary>
|
||||
/// Path to a label map file for getting the actual name of classes.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string LabelMapPath {
|
||||
get { return labelMapPath_ ?? LabelMapPathDefaultValue; }
|
||||
set {
|
||||
labelMapPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "label_map_path" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasLabelMapPath {
|
||||
get { return labelMapPath_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "label_map_path" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearLabelMapPath() {
|
||||
labelMapPath_ = null;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as TopKScoresCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(TopKScoresCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (TopK != other.TopK) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Threshold, other.Threshold)) return false;
|
||||
if (LabelMapPath != other.LabelMapPath) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasTopK) hash ^= TopK.GetHashCode();
|
||||
if (HasThreshold) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Threshold);
|
||||
if (HasLabelMapPath) hash ^= LabelMapPath.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasTopK) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(TopK);
|
||||
}
|
||||
if (HasThreshold) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(Threshold);
|
||||
}
|
||||
if (HasLabelMapPath) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteString(LabelMapPath);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasTopK) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(TopK);
|
||||
}
|
||||
if (HasThreshold) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(Threshold);
|
||||
}
|
||||
if (HasLabelMapPath) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteString(LabelMapPath);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasTopK) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(TopK);
|
||||
}
|
||||
if (HasThreshold) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasLabelMapPath) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(LabelMapPath);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(TopKScoresCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasTopK) {
|
||||
TopK = other.TopK;
|
||||
}
|
||||
if (other.HasThreshold) {
|
||||
Threshold = other.Threshold;
|
||||
}
|
||||
if (other.HasLabelMapPath) {
|
||||
LabelMapPath = other.LabelMapPath;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
TopK = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
Threshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
LabelMapPath = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
TopK = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
Threshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
LabelMapPath = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the TopKScoresCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.TopKScoresCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.TopKScoresCalculatorOptions>(271211788, pb::FieldCodec.ForMessage(2169694306, global::Mediapipe.TopKScoresCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1efed349f47e3fce9b8384ee0a810c17
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,316 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/visibility_copy_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/visibility_copy_calculator.proto</summary>
|
||||
public static partial class VisibilityCopyCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/visibility_copy_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static VisibilityCopyCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjttZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC92aXNpYmlsaXR5X2NvcHlf",
|
||||
"Y2FsY3VsYXRvci5wcm90bxIJbWVkaWFwaXBlGixtZWRpYXBpcGUvZnJhbWV3",
|
||||
"b3JrL2NhbGN1bGF0b3Jfb3B0aW9ucy5wcm90byK4AQofVmlzaWJpbGl0eUNv",
|
||||
"cHlDYWxjdWxhdG9yT3B0aW9ucxIdCg9jb3B5X3Zpc2liaWxpdHkYASABKAg6",
|
||||
"BHRydWUSGwoNY29weV9wcmVzZW5jZRgCIAEoCDoEdHJ1ZTJZCgNleHQSHC5t",
|
||||
"ZWRpYXBpcGUuQ2FsY3VsYXRvck9wdGlvbnMYpZy4rQEgASgLMioubWVkaWFw",
|
||||
"aXBlLlZpc2liaWxpdHlDb3B5Q2FsY3VsYXRvck9wdGlvbnM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorOptionsReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.VisibilityCopyCalculatorOptions), global::Mediapipe.VisibilityCopyCalculatorOptions.Parser, new[]{ "CopyVisibility", "CopyPresence" }, null, null, new pb::Extension[] { global::Mediapipe.VisibilityCopyCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class VisibilityCopyCalculatorOptions : pb::IMessage<VisibilityCopyCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<VisibilityCopyCalculatorOptions> _parser = new pb::MessageParser<VisibilityCopyCalculatorOptions>(() => new VisibilityCopyCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<VisibilityCopyCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.VisibilityCopyCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public VisibilityCopyCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public VisibilityCopyCalculatorOptions(VisibilityCopyCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
copyVisibility_ = other.copyVisibility_;
|
||||
copyPresence_ = other.copyPresence_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public VisibilityCopyCalculatorOptions Clone() {
|
||||
return new VisibilityCopyCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "copy_visibility" field.</summary>
|
||||
public const int CopyVisibilityFieldNumber = 1;
|
||||
private readonly static bool CopyVisibilityDefaultValue = true;
|
||||
|
||||
private bool copyVisibility_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool CopyVisibility {
|
||||
get { if ((_hasBits0 & 1) != 0) { return copyVisibility_; } else { return CopyVisibilityDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
copyVisibility_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "copy_visibility" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasCopyVisibility {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "copy_visibility" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearCopyVisibility() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "copy_presence" field.</summary>
|
||||
public const int CopyPresenceFieldNumber = 2;
|
||||
private readonly static bool CopyPresenceDefaultValue = true;
|
||||
|
||||
private bool copyPresence_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool CopyPresence {
|
||||
get { if ((_hasBits0 & 2) != 0) { return copyPresence_; } else { return CopyPresenceDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
copyPresence_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "copy_presence" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasCopyPresence {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "copy_presence" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearCopyPresence() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as VisibilityCopyCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(VisibilityCopyCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (CopyVisibility != other.CopyVisibility) return false;
|
||||
if (CopyPresence != other.CopyPresence) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasCopyVisibility) hash ^= CopyVisibility.GetHashCode();
|
||||
if (HasCopyPresence) hash ^= CopyPresence.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasCopyVisibility) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(CopyVisibility);
|
||||
}
|
||||
if (HasCopyPresence) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteBool(CopyPresence);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasCopyVisibility) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(CopyVisibility);
|
||||
}
|
||||
if (HasCopyPresence) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteBool(CopyPresence);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasCopyVisibility) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasCopyPresence) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(VisibilityCopyCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasCopyVisibility) {
|
||||
CopyVisibility = other.CopyVisibility;
|
||||
}
|
||||
if (other.HasCopyPresence) {
|
||||
CopyPresence = other.CopyPresence;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
CopyVisibility = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
CopyPresence = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
CopyVisibility = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
CopyPresence = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the VisibilityCopyCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.VisibilityCopyCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.VisibilityCopyCalculatorOptions>(363728421, pb::FieldCodec.ForMessage(2909827370, global::Mediapipe.VisibilityCopyCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e93b9fa0114e34970b69166d4019517a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,723 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/util/visibility_smoothing_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/util/visibility_smoothing_calculator.proto</summary>
|
||||
public static partial class VisibilitySmoothingCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/util/visibility_smoothing_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static VisibilitySmoothingCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkBtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC92aXNpYmlsaXR5X3Ntb290",
|
||||
"aGluZ19jYWxjdWxhdG9yLnByb3RvEgltZWRpYXBpcGUaLG1lZGlhcGlwZS9m",
|
||||
"cmFtZXdvcmsvY2FsY3VsYXRvcl9vcHRpb25zLnByb3RvIvICCiRWaXNpYmls",
|
||||
"aXR5U21vb3RoaW5nQ2FsY3VsYXRvck9wdGlvbnMSTQoJbm9fZmlsdGVyGAEg",
|
||||
"ASgLMjgubWVkaWFwaXBlLlZpc2liaWxpdHlTbW9vdGhpbmdDYWxjdWxhdG9y",
|
||||
"T3B0aW9ucy5Ob0ZpbHRlckgAElgKD2xvd19wYXNzX2ZpbHRlchgCIAEoCzI9",
|
||||
"Lm1lZGlhcGlwZS5WaXNpYmlsaXR5U21vb3RoaW5nQ2FsY3VsYXRvck9wdGlv",
|
||||
"bnMuTG93UGFzc0ZpbHRlckgAGgoKCE5vRmlsdGVyGiMKDUxvd1Bhc3NGaWx0",
|
||||
"ZXISEgoFYWxwaGEYASABKAI6AzAuMTJeCgNleHQSHC5tZWRpYXBpcGUuQ2Fs",
|
||||
"Y3VsYXRvck9wdGlvbnMY9qfhqwEgASgLMi8ubWVkaWFwaXBlLlZpc2liaWxp",
|
||||
"dHlTbW9vdGhpbmdDYWxjdWxhdG9yT3B0aW9uc0IQCg5maWx0ZXJfb3B0aW9u",
|
||||
"cw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorOptionsReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.VisibilitySmoothingCalculatorOptions), global::Mediapipe.VisibilitySmoothingCalculatorOptions.Parser, new[]{ "NoFilter", "LowPassFilter" }, new[]{ "FilterOptions" }, null, new pb::Extension[] { global::Mediapipe.VisibilitySmoothingCalculatorOptions.Extensions.Ext }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.VisibilitySmoothingCalculatorOptions.Types.NoFilter), global::Mediapipe.VisibilitySmoothingCalculatorOptions.Types.NoFilter.Parser, null, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.VisibilitySmoothingCalculatorOptions.Types.LowPassFilter), global::Mediapipe.VisibilitySmoothingCalculatorOptions.Types.LowPassFilter.Parser, new[]{ "Alpha" }, null, null, null, null)})
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class VisibilitySmoothingCalculatorOptions : pb::IMessage<VisibilitySmoothingCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<VisibilitySmoothingCalculatorOptions> _parser = new pb::MessageParser<VisibilitySmoothingCalculatorOptions>(() => new VisibilitySmoothingCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<VisibilitySmoothingCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.VisibilitySmoothingCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public VisibilitySmoothingCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public VisibilitySmoothingCalculatorOptions(VisibilitySmoothingCalculatorOptions other) : this() {
|
||||
switch (other.FilterOptionsCase) {
|
||||
case FilterOptionsOneofCase.NoFilter:
|
||||
NoFilter = other.NoFilter.Clone();
|
||||
break;
|
||||
case FilterOptionsOneofCase.LowPassFilter:
|
||||
LowPassFilter = other.LowPassFilter.Clone();
|
||||
break;
|
||||
}
|
||||
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public VisibilitySmoothingCalculatorOptions Clone() {
|
||||
return new VisibilitySmoothingCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "no_filter" field.</summary>
|
||||
public const int NoFilterFieldNumber = 1;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.VisibilitySmoothingCalculatorOptions.Types.NoFilter NoFilter {
|
||||
get { return filterOptionsCase_ == FilterOptionsOneofCase.NoFilter ? (global::Mediapipe.VisibilitySmoothingCalculatorOptions.Types.NoFilter) filterOptions_ : null; }
|
||||
set {
|
||||
filterOptions_ = value;
|
||||
filterOptionsCase_ = value == null ? FilterOptionsOneofCase.None : FilterOptionsOneofCase.NoFilter;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "low_pass_filter" field.</summary>
|
||||
public const int LowPassFilterFieldNumber = 2;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.VisibilitySmoothingCalculatorOptions.Types.LowPassFilter LowPassFilter {
|
||||
get { return filterOptionsCase_ == FilterOptionsOneofCase.LowPassFilter ? (global::Mediapipe.VisibilitySmoothingCalculatorOptions.Types.LowPassFilter) filterOptions_ : null; }
|
||||
set {
|
||||
filterOptions_ = value;
|
||||
filterOptionsCase_ = value == null ? FilterOptionsOneofCase.None : FilterOptionsOneofCase.LowPassFilter;
|
||||
}
|
||||
}
|
||||
|
||||
private object filterOptions_;
|
||||
/// <summary>Enum of possible cases for the "filter_options" oneof.</summary>
|
||||
public enum FilterOptionsOneofCase {
|
||||
None = 0,
|
||||
NoFilter = 1,
|
||||
LowPassFilter = 2,
|
||||
}
|
||||
private FilterOptionsOneofCase filterOptionsCase_ = FilterOptionsOneofCase.None;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FilterOptionsOneofCase FilterOptionsCase {
|
||||
get { return filterOptionsCase_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearFilterOptions() {
|
||||
filterOptionsCase_ = FilterOptionsOneofCase.None;
|
||||
filterOptions_ = null;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as VisibilitySmoothingCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(VisibilitySmoothingCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(NoFilter, other.NoFilter)) return false;
|
||||
if (!object.Equals(LowPassFilter, other.LowPassFilter)) return false;
|
||||
if (FilterOptionsCase != other.FilterOptionsCase) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (filterOptionsCase_ == FilterOptionsOneofCase.NoFilter) hash ^= NoFilter.GetHashCode();
|
||||
if (filterOptionsCase_ == FilterOptionsOneofCase.LowPassFilter) hash ^= LowPassFilter.GetHashCode();
|
||||
hash ^= (int) filterOptionsCase_;
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (filterOptionsCase_ == FilterOptionsOneofCase.NoFilter) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(NoFilter);
|
||||
}
|
||||
if (filterOptionsCase_ == FilterOptionsOneofCase.LowPassFilter) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(LowPassFilter);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (filterOptionsCase_ == FilterOptionsOneofCase.NoFilter) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(NoFilter);
|
||||
}
|
||||
if (filterOptionsCase_ == FilterOptionsOneofCase.LowPassFilter) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(LowPassFilter);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (filterOptionsCase_ == FilterOptionsOneofCase.NoFilter) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(NoFilter);
|
||||
}
|
||||
if (filterOptionsCase_ == FilterOptionsOneofCase.LowPassFilter) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(LowPassFilter);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(VisibilitySmoothingCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
switch (other.FilterOptionsCase) {
|
||||
case FilterOptionsOneofCase.NoFilter:
|
||||
if (NoFilter == null) {
|
||||
NoFilter = new global::Mediapipe.VisibilitySmoothingCalculatorOptions.Types.NoFilter();
|
||||
}
|
||||
NoFilter.MergeFrom(other.NoFilter);
|
||||
break;
|
||||
case FilterOptionsOneofCase.LowPassFilter:
|
||||
if (LowPassFilter == null) {
|
||||
LowPassFilter = new global::Mediapipe.VisibilitySmoothingCalculatorOptions.Types.LowPassFilter();
|
||||
}
|
||||
LowPassFilter.MergeFrom(other.LowPassFilter);
|
||||
break;
|
||||
}
|
||||
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 10: {
|
||||
global::Mediapipe.VisibilitySmoothingCalculatorOptions.Types.NoFilter subBuilder = new global::Mediapipe.VisibilitySmoothingCalculatorOptions.Types.NoFilter();
|
||||
if (filterOptionsCase_ == FilterOptionsOneofCase.NoFilter) {
|
||||
subBuilder.MergeFrom(NoFilter);
|
||||
}
|
||||
input.ReadMessage(subBuilder);
|
||||
NoFilter = subBuilder;
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
global::Mediapipe.VisibilitySmoothingCalculatorOptions.Types.LowPassFilter subBuilder = new global::Mediapipe.VisibilitySmoothingCalculatorOptions.Types.LowPassFilter();
|
||||
if (filterOptionsCase_ == FilterOptionsOneofCase.LowPassFilter) {
|
||||
subBuilder.MergeFrom(LowPassFilter);
|
||||
}
|
||||
input.ReadMessage(subBuilder);
|
||||
LowPassFilter = subBuilder;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 10: {
|
||||
global::Mediapipe.VisibilitySmoothingCalculatorOptions.Types.NoFilter subBuilder = new global::Mediapipe.VisibilitySmoothingCalculatorOptions.Types.NoFilter();
|
||||
if (filterOptionsCase_ == FilterOptionsOneofCase.NoFilter) {
|
||||
subBuilder.MergeFrom(NoFilter);
|
||||
}
|
||||
input.ReadMessage(subBuilder);
|
||||
NoFilter = subBuilder;
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
global::Mediapipe.VisibilitySmoothingCalculatorOptions.Types.LowPassFilter subBuilder = new global::Mediapipe.VisibilitySmoothingCalculatorOptions.Types.LowPassFilter();
|
||||
if (filterOptionsCase_ == FilterOptionsOneofCase.LowPassFilter) {
|
||||
subBuilder.MergeFrom(LowPassFilter);
|
||||
}
|
||||
input.ReadMessage(subBuilder);
|
||||
LowPassFilter = subBuilder;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Nested types
|
||||
/// <summary>Container for nested types declared in the VisibilitySmoothingCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Types {
|
||||
/// <summary>
|
||||
/// Default behaviour and fast way to disable smoothing.
|
||||
/// </summary>
|
||||
public sealed partial class NoFilter : pb::IMessage<NoFilter>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<NoFilter> _parser = new pb::MessageParser<NoFilter>(() => new NoFilter());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<NoFilter> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.VisibilitySmoothingCalculatorOptions.Descriptor.NestedTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public NoFilter() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public NoFilter(NoFilter other) : this() {
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public NoFilter Clone() {
|
||||
return new NoFilter(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as NoFilter);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(NoFilter other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(NoFilter other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
public sealed partial class LowPassFilter : pb::IMessage<LowPassFilter>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<LowPassFilter> _parser = new pb::MessageParser<LowPassFilter>(() => new LowPassFilter());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<LowPassFilter> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.VisibilitySmoothingCalculatorOptions.Descriptor.NestedTypes[1]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LowPassFilter() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LowPassFilter(LowPassFilter other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
alpha_ = other.alpha_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public LowPassFilter Clone() {
|
||||
return new LowPassFilter(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "alpha" field.</summary>
|
||||
public const int AlphaFieldNumber = 1;
|
||||
private readonly static float AlphaDefaultValue = 0.1F;
|
||||
|
||||
private float alpha_;
|
||||
/// <summary>
|
||||
/// Coefficient applied to a new value, whilte `1 - alpha` is applied to a
|
||||
/// stored value. Should be in [0, 1] range. The smaller the value - the
|
||||
/// smoother result and the bigger lag.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float Alpha {
|
||||
get { if ((_hasBits0 & 1) != 0) { return alpha_; } else { return AlphaDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
alpha_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "alpha" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasAlpha {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "alpha" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearAlpha() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as LowPassFilter);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(LowPassFilter other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Alpha, other.Alpha)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasAlpha) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Alpha);
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasAlpha) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(Alpha);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasAlpha) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(Alpha);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasAlpha) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(LowPassFilter other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasAlpha) {
|
||||
Alpha = other.Alpha;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 13: {
|
||||
Alpha = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 13: {
|
||||
Alpha = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the VisibilitySmoothingCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.VisibilitySmoothingCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.VisibilitySmoothingCalculatorOptions>(360207350, pb::FieldCodec.ForMessage(2881658802, global::Mediapipe.VisibilitySmoothingCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b33a7b06050a2b600a46abcd2c35c27d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user