Wes xx mediapipe integration
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 69a17f5b080c84345ac876605aa32966
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,952 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/modules/face_detection/face_detection.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/modules/face_detection/face_detection.proto</summary>
|
||||
public static partial class FaceDetectionReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/modules/face_detection/face_detection.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static FaceDetectionReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjVtZWRpYXBpcGUvbW9kdWxlcy9mYWNlX2RldGVjdGlvbi9mYWNlX2RldGVj",
|
||||
"dGlvbi5wcm90bxIJbWVkaWFwaXBlGjdtZWRpYXBpcGUvY2FsY3VsYXRvcnMv",
|
||||
"dGVuc29yL2luZmVyZW5jZV9jYWxjdWxhdG9yLnByb3RvGixtZWRpYXBpcGUv",
|
||||
"ZnJhbWV3b3JrL2NhbGN1bGF0b3Jfb3B0aW9ucy5wcm90bxoebWVkaWFwaXBl",
|
||||
"L2dwdS9ncHVfb3JpZ2luLnByb3RvIuYDChRGYWNlRGV0ZWN0aW9uT3B0aW9u",
|
||||
"cxISCgptb2RlbF9wYXRoGAEgASgJEi0KCmdwdV9vcmlnaW4YCyABKA4yGS5t",
|
||||
"ZWRpYXBpcGUuR3B1T3JpZ2luLk1vZGUSFAoMdGVuc29yX3dpZHRoGBUgASgF",
|
||||
"EhUKDXRlbnNvcl9oZWlnaHQYFiABKAUSEgoKbnVtX2xheWVycxgXIAEoBRIP",
|
||||
"CgdzdHJpZGVzGBggAygFEioKH2ludGVycG9sYXRlZF9zY2FsZV9hc3BlY3Rf",
|
||||
"cmF0aW8YGSABKAI6ATESEQoJbnVtX2JveGVzGB8gASgFEhIKB3hfc2NhbGUY",
|
||||
"ICABKAI6ATASEgoHeV9zY2FsZRghIAEoAjoBMBISCgd3X3NjYWxlGCIgASgC",
|
||||
"OgEwEhIKB2hfc2NhbGUYIyABKAI6ATASGAoQbWluX3Njb3JlX3RocmVzaBgk",
|
||||
"IAEoAhJACghkZWxlZ2F0ZRgGIAEoCzIuLm1lZGlhcGlwZS5JbmZlcmVuY2VD",
|
||||
"YWxjdWxhdG9yT3B0aW9ucy5EZWxlZ2F0ZTJOCgNleHQSHC5tZWRpYXBpcGUu",
|
||||
"Q2FsY3VsYXRvck9wdGlvbnMY7vO8sgEgASgLMh8ubWVkaWFwaXBlLkZhY2VE",
|
||||
"ZXRlY3Rpb25PcHRpb25zQkUKKmNvbS5nb29nbGUubWVkaWFwaXBlLm1vZHVs",
|
||||
"ZXMuZmFjZWRldGVjdGlvbkIXRmFjZURldGVjdGlvbkZyb250UHJvdG8="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.InferenceCalculatorReflection.Descriptor, global::Mediapipe.CalculatorOptionsReflection.Descriptor, global::Mediapipe.GpuOriginReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.FaceDetectionOptions), global::Mediapipe.FaceDetectionOptions.Parser, new[]{ "ModelPath", "GpuOrigin", "TensorWidth", "TensorHeight", "NumLayers", "Strides", "InterpolatedScaleAspectRatio", "NumBoxes", "XScale", "YScale", "WScale", "HScale", "MinScoreThresh", "Delegate" }, null, null, new pb::Extension[] { global::Mediapipe.FaceDetectionOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
/// <summary>
|
||||
/// Defines the face geometry pipeline estimation result format.
|
||||
/// </summary>
|
||||
public sealed partial class FaceDetectionOptions : pb::IMessage<FaceDetectionOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<FaceDetectionOptions> _parser = new pb::MessageParser<FaceDetectionOptions>(() => new FaceDetectionOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<FaceDetectionOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.FaceDetectionReflection.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 FaceDetectionOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FaceDetectionOptions(FaceDetectionOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
modelPath_ = other.modelPath_;
|
||||
gpuOrigin_ = other.gpuOrigin_;
|
||||
tensorWidth_ = other.tensorWidth_;
|
||||
tensorHeight_ = other.tensorHeight_;
|
||||
numLayers_ = other.numLayers_;
|
||||
strides_ = other.strides_.Clone();
|
||||
interpolatedScaleAspectRatio_ = other.interpolatedScaleAspectRatio_;
|
||||
numBoxes_ = other.numBoxes_;
|
||||
xScale_ = other.xScale_;
|
||||
yScale_ = other.yScale_;
|
||||
wScale_ = other.wScale_;
|
||||
hScale_ = other.hScale_;
|
||||
minScoreThresh_ = other.minScoreThresh_;
|
||||
delegate_ = other.delegate_ != null ? other.delegate_.Clone() : null;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FaceDetectionOptions Clone() {
|
||||
return new FaceDetectionOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "model_path" field.</summary>
|
||||
public const int ModelPathFieldNumber = 1;
|
||||
private readonly static string ModelPathDefaultValue = "";
|
||||
|
||||
private string modelPath_;
|
||||
/// <summary>
|
||||
/// Path to the TF Lite model (ex: /path/to/modelname.tflite).
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string ModelPath {
|
||||
get { return modelPath_ ?? ModelPathDefaultValue; }
|
||||
set {
|
||||
modelPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "model_path" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasModelPath {
|
||||
get { return modelPath_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "model_path" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearModelPath() {
|
||||
modelPath_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "gpu_origin" field.</summary>
|
||||
public const int GpuOriginFieldNumber = 11;
|
||||
private readonly static global::Mediapipe.GpuOrigin.Types.Mode GpuOriginDefaultValue = global::Mediapipe.GpuOrigin.Types.Mode.Default;
|
||||
|
||||
private global::Mediapipe.GpuOrigin.Types.Mode gpuOrigin_;
|
||||
/// <summary>
|
||||
/// The coordinate origin corner, either CONVENTIONAL or TOP_LEFT.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.GpuOrigin.Types.Mode GpuOrigin {
|
||||
get { if ((_hasBits0 & 1) != 0) { return gpuOrigin_; } else { return GpuOriginDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
gpuOrigin_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "gpu_origin" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasGpuOrigin {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "gpu_origin" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearGpuOrigin() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "tensor_width" field.</summary>
|
||||
public const int TensorWidthFieldNumber = 21;
|
||||
private readonly static int TensorWidthDefaultValue = 0;
|
||||
|
||||
private int tensorWidth_;
|
||||
/// <summary>
|
||||
/// Size of the tensor provided to the face-detection model.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int TensorWidth {
|
||||
get { if ((_hasBits0 & 2) != 0) { return tensorWidth_; } else { return TensorWidthDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
tensorWidth_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "tensor_width" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasTensorWidth {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "tensor_width" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearTensorWidth() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "tensor_height" field.</summary>
|
||||
public const int TensorHeightFieldNumber = 22;
|
||||
private readonly static int TensorHeightDefaultValue = 0;
|
||||
|
||||
private int tensorHeight_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int TensorHeight {
|
||||
get { if ((_hasBits0 & 4) != 0) { return tensorHeight_; } else { return TensorHeightDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
tensorHeight_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "tensor_height" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasTensorHeight {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "tensor_height" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearTensorHeight() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "num_layers" field.</summary>
|
||||
public const int NumLayersFieldNumber = 23;
|
||||
private readonly static int NumLayersDefaultValue = 0;
|
||||
|
||||
private int numLayers_;
|
||||
/// <summary>
|
||||
/// Number of output feature maps to generate the anchors on.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int NumLayers {
|
||||
get { if ((_hasBits0 & 8) != 0) { return numLayers_; } else { return NumLayersDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
numLayers_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "num_layers" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNumLayers {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "num_layers" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNumLayers() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "strides" field.</summary>
|
||||
public const int StridesFieldNumber = 24;
|
||||
private static readonly pb::FieldCodec<int> _repeated_strides_codec
|
||||
= pb::FieldCodec.ForInt32(192);
|
||||
private readonly pbc::RepeatedField<int> strides_ = new pbc::RepeatedField<int>();
|
||||
/// <summary>
|
||||
/// Strides of each output feature maps.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<int> Strides {
|
||||
get { return strides_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "interpolated_scale_aspect_ratio" field.</summary>
|
||||
public const int InterpolatedScaleAspectRatioFieldNumber = 25;
|
||||
private readonly static float InterpolatedScaleAspectRatioDefaultValue = 1F;
|
||||
|
||||
private float interpolatedScaleAspectRatio_;
|
||||
/// <summary>
|
||||
/// The aspect ratio of the interpolated anchor from the SsdAnchorsCalculator.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float InterpolatedScaleAspectRatio {
|
||||
get { if ((_hasBits0 & 16) != 0) { return interpolatedScaleAspectRatio_; } else { return InterpolatedScaleAspectRatioDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
interpolatedScaleAspectRatio_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "interpolated_scale_aspect_ratio" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasInterpolatedScaleAspectRatio {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "interpolated_scale_aspect_ratio" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearInterpolatedScaleAspectRatio() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "num_boxes" field.</summary>
|
||||
public const int NumBoxesFieldNumber = 31;
|
||||
private readonly static int NumBoxesDefaultValue = 0;
|
||||
|
||||
private int numBoxes_;
|
||||
/// <summary>
|
||||
/// The number of output boxes predicted by the detection model.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int NumBoxes {
|
||||
get { if ((_hasBits0 & 32) != 0) { return numBoxes_; } else { return NumBoxesDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 32;
|
||||
numBoxes_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "num_boxes" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNumBoxes {
|
||||
get { return (_hasBits0 & 32) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "num_boxes" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNumBoxes() {
|
||||
_hasBits0 &= ~32;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "x_scale" field.</summary>
|
||||
public const int XScaleFieldNumber = 32;
|
||||
private readonly static float XScaleDefaultValue = 0F;
|
||||
|
||||
private float xScale_;
|
||||
/// <summary>
|
||||
/// Parameters for decoding SSD detection model.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float XScale {
|
||||
get { if ((_hasBits0 & 64) != 0) { return xScale_; } else { return XScaleDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 64;
|
||||
xScale_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "x_scale" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasXScale {
|
||||
get { return (_hasBits0 & 64) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "x_scale" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearXScale() {
|
||||
_hasBits0 &= ~64;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "y_scale" field.</summary>
|
||||
public const int YScaleFieldNumber = 33;
|
||||
private readonly static float YScaleDefaultValue = 0F;
|
||||
|
||||
private float yScale_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float YScale {
|
||||
get { if ((_hasBits0 & 128) != 0) { return yScale_; } else { return YScaleDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 128;
|
||||
yScale_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "y_scale" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasYScale {
|
||||
get { return (_hasBits0 & 128) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "y_scale" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearYScale() {
|
||||
_hasBits0 &= ~128;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "w_scale" field.</summary>
|
||||
public const int WScaleFieldNumber = 34;
|
||||
private readonly static float WScaleDefaultValue = 0F;
|
||||
|
||||
private float wScale_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float WScale {
|
||||
get { if ((_hasBits0 & 256) != 0) { return wScale_; } else { return WScaleDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 256;
|
||||
wScale_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "w_scale" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasWScale {
|
||||
get { return (_hasBits0 & 256) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "w_scale" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearWScale() {
|
||||
_hasBits0 &= ~256;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "h_scale" field.</summary>
|
||||
public const int HScaleFieldNumber = 35;
|
||||
private readonly static float HScaleDefaultValue = 0F;
|
||||
|
||||
private float hScale_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float HScale {
|
||||
get { if ((_hasBits0 & 512) != 0) { return hScale_; } else { return HScaleDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 512;
|
||||
hScale_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "h_scale" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasHScale {
|
||||
get { return (_hasBits0 & 512) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "h_scale" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearHScale() {
|
||||
_hasBits0 &= ~512;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "min_score_thresh" field.</summary>
|
||||
public const int MinScoreThreshFieldNumber = 36;
|
||||
private readonly static float MinScoreThreshDefaultValue = 0F;
|
||||
|
||||
private float minScoreThresh_;
|
||||
/// <summary>
|
||||
/// Score threshold for perserving from the SSD detections.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float MinScoreThresh {
|
||||
get { if ((_hasBits0 & 1024) != 0) { return minScoreThresh_; } else { return MinScoreThreshDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1024;
|
||||
minScoreThresh_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "min_score_thresh" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasMinScoreThresh {
|
||||
get { return (_hasBits0 & 1024) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "min_score_thresh" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearMinScoreThresh() {
|
||||
_hasBits0 &= ~1024;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "delegate" field.</summary>
|
||||
public const int DelegateFieldNumber = 6;
|
||||
private global::Mediapipe.InferenceCalculatorOptions.Types.Delegate delegate_;
|
||||
/// <summary>
|
||||
/// TfLite delegate to run inference.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.InferenceCalculatorOptions.Types.Delegate Delegate {
|
||||
get { return delegate_; }
|
||||
set {
|
||||
delegate_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as FaceDetectionOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(FaceDetectionOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (ModelPath != other.ModelPath) return false;
|
||||
if (GpuOrigin != other.GpuOrigin) return false;
|
||||
if (TensorWidth != other.TensorWidth) return false;
|
||||
if (TensorHeight != other.TensorHeight) return false;
|
||||
if (NumLayers != other.NumLayers) return false;
|
||||
if(!strides_.Equals(other.strides_)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(InterpolatedScaleAspectRatio, other.InterpolatedScaleAspectRatio)) return false;
|
||||
if (NumBoxes != other.NumBoxes) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(XScale, other.XScale)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(YScale, other.YScale)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(WScale, other.WScale)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(HScale, other.HScale)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MinScoreThresh, other.MinScoreThresh)) return false;
|
||||
if (!object.Equals(Delegate, other.Delegate)) 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 (HasModelPath) hash ^= ModelPath.GetHashCode();
|
||||
if (HasGpuOrigin) hash ^= GpuOrigin.GetHashCode();
|
||||
if (HasTensorWidth) hash ^= TensorWidth.GetHashCode();
|
||||
if (HasTensorHeight) hash ^= TensorHeight.GetHashCode();
|
||||
if (HasNumLayers) hash ^= NumLayers.GetHashCode();
|
||||
hash ^= strides_.GetHashCode();
|
||||
if (HasInterpolatedScaleAspectRatio) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(InterpolatedScaleAspectRatio);
|
||||
if (HasNumBoxes) hash ^= NumBoxes.GetHashCode();
|
||||
if (HasXScale) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(XScale);
|
||||
if (HasYScale) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(YScale);
|
||||
if (HasWScale) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(WScale);
|
||||
if (HasHScale) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(HScale);
|
||||
if (HasMinScoreThresh) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MinScoreThresh);
|
||||
if (delegate_ != null) hash ^= Delegate.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 (HasModelPath) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(ModelPath);
|
||||
}
|
||||
if (delegate_ != null) {
|
||||
output.WriteRawTag(50);
|
||||
output.WriteMessage(Delegate);
|
||||
}
|
||||
if (HasGpuOrigin) {
|
||||
output.WriteRawTag(88);
|
||||
output.WriteEnum((int) GpuOrigin);
|
||||
}
|
||||
if (HasTensorWidth) {
|
||||
output.WriteRawTag(168, 1);
|
||||
output.WriteInt32(TensorWidth);
|
||||
}
|
||||
if (HasTensorHeight) {
|
||||
output.WriteRawTag(176, 1);
|
||||
output.WriteInt32(TensorHeight);
|
||||
}
|
||||
if (HasNumLayers) {
|
||||
output.WriteRawTag(184, 1);
|
||||
output.WriteInt32(NumLayers);
|
||||
}
|
||||
strides_.WriteTo(output, _repeated_strides_codec);
|
||||
if (HasInterpolatedScaleAspectRatio) {
|
||||
output.WriteRawTag(205, 1);
|
||||
output.WriteFloat(InterpolatedScaleAspectRatio);
|
||||
}
|
||||
if (HasNumBoxes) {
|
||||
output.WriteRawTag(248, 1);
|
||||
output.WriteInt32(NumBoxes);
|
||||
}
|
||||
if (HasXScale) {
|
||||
output.WriteRawTag(133, 2);
|
||||
output.WriteFloat(XScale);
|
||||
}
|
||||
if (HasYScale) {
|
||||
output.WriteRawTag(141, 2);
|
||||
output.WriteFloat(YScale);
|
||||
}
|
||||
if (HasWScale) {
|
||||
output.WriteRawTag(149, 2);
|
||||
output.WriteFloat(WScale);
|
||||
}
|
||||
if (HasHScale) {
|
||||
output.WriteRawTag(157, 2);
|
||||
output.WriteFloat(HScale);
|
||||
}
|
||||
if (HasMinScoreThresh) {
|
||||
output.WriteRawTag(165, 2);
|
||||
output.WriteFloat(MinScoreThresh);
|
||||
}
|
||||
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 (HasModelPath) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(ModelPath);
|
||||
}
|
||||
if (delegate_ != null) {
|
||||
output.WriteRawTag(50);
|
||||
output.WriteMessage(Delegate);
|
||||
}
|
||||
if (HasGpuOrigin) {
|
||||
output.WriteRawTag(88);
|
||||
output.WriteEnum((int) GpuOrigin);
|
||||
}
|
||||
if (HasTensorWidth) {
|
||||
output.WriteRawTag(168, 1);
|
||||
output.WriteInt32(TensorWidth);
|
||||
}
|
||||
if (HasTensorHeight) {
|
||||
output.WriteRawTag(176, 1);
|
||||
output.WriteInt32(TensorHeight);
|
||||
}
|
||||
if (HasNumLayers) {
|
||||
output.WriteRawTag(184, 1);
|
||||
output.WriteInt32(NumLayers);
|
||||
}
|
||||
strides_.WriteTo(ref output, _repeated_strides_codec);
|
||||
if (HasInterpolatedScaleAspectRatio) {
|
||||
output.WriteRawTag(205, 1);
|
||||
output.WriteFloat(InterpolatedScaleAspectRatio);
|
||||
}
|
||||
if (HasNumBoxes) {
|
||||
output.WriteRawTag(248, 1);
|
||||
output.WriteInt32(NumBoxes);
|
||||
}
|
||||
if (HasXScale) {
|
||||
output.WriteRawTag(133, 2);
|
||||
output.WriteFloat(XScale);
|
||||
}
|
||||
if (HasYScale) {
|
||||
output.WriteRawTag(141, 2);
|
||||
output.WriteFloat(YScale);
|
||||
}
|
||||
if (HasWScale) {
|
||||
output.WriteRawTag(149, 2);
|
||||
output.WriteFloat(WScale);
|
||||
}
|
||||
if (HasHScale) {
|
||||
output.WriteRawTag(157, 2);
|
||||
output.WriteFloat(HScale);
|
||||
}
|
||||
if (HasMinScoreThresh) {
|
||||
output.WriteRawTag(165, 2);
|
||||
output.WriteFloat(MinScoreThresh);
|
||||
}
|
||||
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 (HasModelPath) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(ModelPath);
|
||||
}
|
||||
if (HasGpuOrigin) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GpuOrigin);
|
||||
}
|
||||
if (HasTensorWidth) {
|
||||
size += 2 + pb::CodedOutputStream.ComputeInt32Size(TensorWidth);
|
||||
}
|
||||
if (HasTensorHeight) {
|
||||
size += 2 + pb::CodedOutputStream.ComputeInt32Size(TensorHeight);
|
||||
}
|
||||
if (HasNumLayers) {
|
||||
size += 2 + pb::CodedOutputStream.ComputeInt32Size(NumLayers);
|
||||
}
|
||||
size += strides_.CalculateSize(_repeated_strides_codec);
|
||||
if (HasInterpolatedScaleAspectRatio) {
|
||||
size += 2 + 4;
|
||||
}
|
||||
if (HasNumBoxes) {
|
||||
size += 2 + pb::CodedOutputStream.ComputeInt32Size(NumBoxes);
|
||||
}
|
||||
if (HasXScale) {
|
||||
size += 2 + 4;
|
||||
}
|
||||
if (HasYScale) {
|
||||
size += 2 + 4;
|
||||
}
|
||||
if (HasWScale) {
|
||||
size += 2 + 4;
|
||||
}
|
||||
if (HasHScale) {
|
||||
size += 2 + 4;
|
||||
}
|
||||
if (HasMinScoreThresh) {
|
||||
size += 2 + 4;
|
||||
}
|
||||
if (delegate_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegate);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(FaceDetectionOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasModelPath) {
|
||||
ModelPath = other.ModelPath;
|
||||
}
|
||||
if (other.HasGpuOrigin) {
|
||||
GpuOrigin = other.GpuOrigin;
|
||||
}
|
||||
if (other.HasTensorWidth) {
|
||||
TensorWidth = other.TensorWidth;
|
||||
}
|
||||
if (other.HasTensorHeight) {
|
||||
TensorHeight = other.TensorHeight;
|
||||
}
|
||||
if (other.HasNumLayers) {
|
||||
NumLayers = other.NumLayers;
|
||||
}
|
||||
strides_.Add(other.strides_);
|
||||
if (other.HasInterpolatedScaleAspectRatio) {
|
||||
InterpolatedScaleAspectRatio = other.InterpolatedScaleAspectRatio;
|
||||
}
|
||||
if (other.HasNumBoxes) {
|
||||
NumBoxes = other.NumBoxes;
|
||||
}
|
||||
if (other.HasXScale) {
|
||||
XScale = other.XScale;
|
||||
}
|
||||
if (other.HasYScale) {
|
||||
YScale = other.YScale;
|
||||
}
|
||||
if (other.HasWScale) {
|
||||
WScale = other.WScale;
|
||||
}
|
||||
if (other.HasHScale) {
|
||||
HScale = other.HScale;
|
||||
}
|
||||
if (other.HasMinScoreThresh) {
|
||||
MinScoreThresh = other.MinScoreThresh;
|
||||
}
|
||||
if (other.delegate_ != null) {
|
||||
if (delegate_ == null) {
|
||||
Delegate = new global::Mediapipe.InferenceCalculatorOptions.Types.Delegate();
|
||||
}
|
||||
Delegate.MergeFrom(other.Delegate);
|
||||
}
|
||||
_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: {
|
||||
ModelPath = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 50: {
|
||||
if (delegate_ == null) {
|
||||
Delegate = new global::Mediapipe.InferenceCalculatorOptions.Types.Delegate();
|
||||
}
|
||||
input.ReadMessage(Delegate);
|
||||
break;
|
||||
}
|
||||
case 88: {
|
||||
GpuOrigin = (global::Mediapipe.GpuOrigin.Types.Mode) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 168: {
|
||||
TensorWidth = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 176: {
|
||||
TensorHeight = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 184: {
|
||||
NumLayers = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 194:
|
||||
case 192: {
|
||||
strides_.AddEntriesFrom(input, _repeated_strides_codec);
|
||||
break;
|
||||
}
|
||||
case 205: {
|
||||
InterpolatedScaleAspectRatio = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 248: {
|
||||
NumBoxes = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 261: {
|
||||
XScale = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 269: {
|
||||
YScale = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 277: {
|
||||
WScale = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 285: {
|
||||
HScale = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 293: {
|
||||
MinScoreThresh = 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 10: {
|
||||
ModelPath = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 50: {
|
||||
if (delegate_ == null) {
|
||||
Delegate = new global::Mediapipe.InferenceCalculatorOptions.Types.Delegate();
|
||||
}
|
||||
input.ReadMessage(Delegate);
|
||||
break;
|
||||
}
|
||||
case 88: {
|
||||
GpuOrigin = (global::Mediapipe.GpuOrigin.Types.Mode) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 168: {
|
||||
TensorWidth = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 176: {
|
||||
TensorHeight = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 184: {
|
||||
NumLayers = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 194:
|
||||
case 192: {
|
||||
strides_.AddEntriesFrom(ref input, _repeated_strides_codec);
|
||||
break;
|
||||
}
|
||||
case 205: {
|
||||
InterpolatedScaleAspectRatio = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 248: {
|
||||
NumBoxes = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 261: {
|
||||
XScale = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 269: {
|
||||
YScale = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 277: {
|
||||
WScale = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 285: {
|
||||
HScale = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 293: {
|
||||
MinScoreThresh = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the FaceDetectionOptions 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.FaceDetectionOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.FaceDetectionOptions>(374290926, pb::FieldCodec.ForMessage(2994327410, global::Mediapipe.FaceDetectionOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8397728c6e167cbd98856f7baf51be1d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8ac7f5a471b772e4d869fdc5eeefccef
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,334 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/modules/face_geometry/effect_renderer_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/modules/face_geometry/effect_renderer_calculator.proto</summary>
|
||||
public static partial class EffectRendererCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/modules/face_geometry/effect_renderer_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static EffectRendererCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkBtZWRpYXBpcGUvbW9kdWxlcy9mYWNlX2dlb21ldHJ5L2VmZmVjdF9yZW5k",
|
||||
"ZXJlcl9jYWxjdWxhdG9yLnByb3RvEgltZWRpYXBpcGUaLG1lZGlhcGlwZS9m",
|
||||
"cmFtZXdvcmsvY2FsY3VsYXRvcl9vcHRpb25zLnByb3RvIs4BCitGYWNlR2Vv",
|
||||
"bWV0cnlFZmZlY3RSZW5kZXJlckNhbGN1bGF0b3JPcHRpb25zEhsKE2VmZmVj",
|
||||
"dF90ZXh0dXJlX3BhdGgYASABKAkSGwoTZWZmZWN0X21lc2hfM2RfcGF0aBgC",
|
||||
"IAEoCTJlCgNleHQSHC5tZWRpYXBpcGUuQ2FsY3VsYXRvck9wdGlvbnMY8Nms",
|
||||
"mgEgASgLMjYubWVkaWFwaXBlLkZhY2VHZW9tZXRyeUVmZmVjdFJlbmRlcmVy",
|
||||
"Q2FsY3VsYXRvck9wdGlvbnM="));
|
||||
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.FaceGeometryEffectRendererCalculatorOptions), global::Mediapipe.FaceGeometryEffectRendererCalculatorOptions.Parser, new[]{ "EffectTexturePath", "EffectMesh3DPath" }, null, null, new pb::Extension[] { global::Mediapipe.FaceGeometryEffectRendererCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class FaceGeometryEffectRendererCalculatorOptions : pb::IMessage<FaceGeometryEffectRendererCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<FaceGeometryEffectRendererCalculatorOptions> _parser = new pb::MessageParser<FaceGeometryEffectRendererCalculatorOptions>(() => new FaceGeometryEffectRendererCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<FaceGeometryEffectRendererCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.EffectRendererCalculatorReflection.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 FaceGeometryEffectRendererCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FaceGeometryEffectRendererCalculatorOptions(FaceGeometryEffectRendererCalculatorOptions other) : this() {
|
||||
effectTexturePath_ = other.effectTexturePath_;
|
||||
effectMesh3DPath_ = other.effectMesh3DPath_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FaceGeometryEffectRendererCalculatorOptions Clone() {
|
||||
return new FaceGeometryEffectRendererCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "effect_texture_path" field.</summary>
|
||||
public const int EffectTexturePathFieldNumber = 1;
|
||||
private readonly static string EffectTexturePathDefaultValue = "";
|
||||
|
||||
private string effectTexturePath_;
|
||||
/// <summary>
|
||||
/// Defines a path for the visual effect texture file. The effect texture is
|
||||
/// later rendered on top of the effect mesh.
|
||||
///
|
||||
/// Please be aware about the difference between the CPU texture memory layout
|
||||
/// and the GPU texture sampler coordinate space. This renderer follows
|
||||
/// conventions discussed here: https://open.gl/textures
|
||||
///
|
||||
/// The texture file format must be supported by the OpenCV image decoder. It
|
||||
/// must also define either an RGB or an RGBA texture.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string EffectTexturePath {
|
||||
get { return effectTexturePath_ ?? EffectTexturePathDefaultValue; }
|
||||
set {
|
||||
effectTexturePath_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "effect_texture_path" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasEffectTexturePath {
|
||||
get { return effectTexturePath_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "effect_texture_path" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearEffectTexturePath() {
|
||||
effectTexturePath_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "effect_mesh_3d_path" field.</summary>
|
||||
public const int EffectMesh3DPathFieldNumber = 2;
|
||||
private readonly static string EffectMesh3DPathDefaultValue = "";
|
||||
|
||||
private string effectMesh3DPath_;
|
||||
/// <summary>
|
||||
/// Defines a path for the visual effect mesh 3D file. The effect mesh is later
|
||||
/// "attached" to the face and is driven by the face pose transformation
|
||||
/// matrix.
|
||||
///
|
||||
/// The mesh 3D file format must be the binary `face_system.Mesh3d` proto.
|
||||
///
|
||||
/// If is not present, the runtime face mesh will be used as the effect mesh
|
||||
/// - this mode is handy for facepaint effects.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string EffectMesh3DPath {
|
||||
get { return effectMesh3DPath_ ?? EffectMesh3DPathDefaultValue; }
|
||||
set {
|
||||
effectMesh3DPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "effect_mesh_3d_path" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasEffectMesh3DPath {
|
||||
get { return effectMesh3DPath_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "effect_mesh_3d_path" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearEffectMesh3DPath() {
|
||||
effectMesh3DPath_ = null;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as FaceGeometryEffectRendererCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(FaceGeometryEffectRendererCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (EffectTexturePath != other.EffectTexturePath) return false;
|
||||
if (EffectMesh3DPath != other.EffectMesh3DPath) 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 (HasEffectTexturePath) hash ^= EffectTexturePath.GetHashCode();
|
||||
if (HasEffectMesh3DPath) hash ^= EffectMesh3DPath.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 (HasEffectTexturePath) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(EffectTexturePath);
|
||||
}
|
||||
if (HasEffectMesh3DPath) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(EffectMesh3DPath);
|
||||
}
|
||||
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 (HasEffectTexturePath) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(EffectTexturePath);
|
||||
}
|
||||
if (HasEffectMesh3DPath) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(EffectMesh3DPath);
|
||||
}
|
||||
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 (HasEffectTexturePath) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(EffectTexturePath);
|
||||
}
|
||||
if (HasEffectMesh3DPath) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(EffectMesh3DPath);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(FaceGeometryEffectRendererCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasEffectTexturePath) {
|
||||
EffectTexturePath = other.EffectTexturePath;
|
||||
}
|
||||
if (other.HasEffectMesh3DPath) {
|
||||
EffectMesh3DPath = other.EffectMesh3DPath;
|
||||
}
|
||||
_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: {
|
||||
EffectTexturePath = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
EffectMesh3DPath = 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: {
|
||||
EffectTexturePath = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
EffectMesh3DPath = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the FaceGeometryEffectRendererCalculatorOptions 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.FaceGeometryEffectRendererCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.FaceGeometryEffectRendererCalculatorOptions>(323693808, pb::FieldCodec.ForMessage(2589550466, global::Mediapipe.FaceGeometryEffectRendererCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 64856f22fa5ced2cdabfde7cf22602e4
|
||||
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/modules/face_geometry/env_generator_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/modules/face_geometry/env_generator_calculator.proto</summary>
|
||||
public static partial class EnvGeneratorCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/modules/face_geometry/env_generator_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static EnvGeneratorCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Cj5tZWRpYXBpcGUvbW9kdWxlcy9mYWNlX2dlb21ldHJ5L2Vudl9nZW5lcmF0",
|
||||
"b3JfY2FsY3VsYXRvci5wcm90bxIJbWVkaWFwaXBlGixtZWRpYXBpcGUvZnJh",
|
||||
"bWV3b3JrL2NhbGN1bGF0b3Jfb3B0aW9ucy5wcm90bxo4bWVkaWFwaXBlL21v",
|
||||
"ZHVsZXMvZmFjZV9nZW9tZXRyeS9wcm90b3MvZW52aXJvbm1lbnQucHJvdG8i",
|
||||
"ywEKKUZhY2VHZW9tZXRyeUVudkdlbmVyYXRvckNhbGN1bGF0b3JPcHRpb25z",
|
||||
"EjkKC2Vudmlyb25tZW50GAEgASgLMiQubWVkaWFwaXBlLmZhY2VfZ2VvbWV0",
|
||||
"cnkuRW52aXJvbm1lbnQyYwoDZXh0EhwubWVkaWFwaXBlLkNhbGN1bGF0b3JP",
|
||||
"cHRpb25zGPLZrJoBIAEoCzI0Lm1lZGlhcGlwZS5GYWNlR2VvbWV0cnlFbnZH",
|
||||
"ZW5lcmF0b3JDYWxjdWxhdG9yT3B0aW9ucw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorOptionsReflection.Descriptor, global::Mediapipe.FaceGeometry.EnvironmentReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.FaceGeometryEnvGeneratorCalculatorOptions), global::Mediapipe.FaceGeometryEnvGeneratorCalculatorOptions.Parser, new[]{ "Environment" }, null, null, new pb::Extension[] { global::Mediapipe.FaceGeometryEnvGeneratorCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class FaceGeometryEnvGeneratorCalculatorOptions : pb::IMessage<FaceGeometryEnvGeneratorCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<FaceGeometryEnvGeneratorCalculatorOptions> _parser = new pb::MessageParser<FaceGeometryEnvGeneratorCalculatorOptions>(() => new FaceGeometryEnvGeneratorCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<FaceGeometryEnvGeneratorCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.EnvGeneratorCalculatorReflection.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 FaceGeometryEnvGeneratorCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FaceGeometryEnvGeneratorCalculatorOptions(FaceGeometryEnvGeneratorCalculatorOptions other) : this() {
|
||||
environment_ = other.environment_ != null ? other.environment_.Clone() : null;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FaceGeometryEnvGeneratorCalculatorOptions Clone() {
|
||||
return new FaceGeometryEnvGeneratorCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "environment" field.</summary>
|
||||
public const int EnvironmentFieldNumber = 1;
|
||||
private global::Mediapipe.FaceGeometry.Environment environment_;
|
||||
/// <summary>
|
||||
/// Defines an environment to be packed as the output side packet.
|
||||
///
|
||||
/// Must be valid (for details, please refer to the proto message definition
|
||||
/// comments and/or `modules/face_geometry/libs/validation_utils.h/cc`)
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.FaceGeometry.Environment Environment {
|
||||
get { return environment_; }
|
||||
set {
|
||||
environment_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as FaceGeometryEnvGeneratorCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(FaceGeometryEnvGeneratorCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(Environment, other.Environment)) 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 (environment_ != null) hash ^= Environment.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 (environment_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(Environment);
|
||||
}
|
||||
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 (environment_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(Environment);
|
||||
}
|
||||
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 (environment_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Environment);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(FaceGeometryEnvGeneratorCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.environment_ != null) {
|
||||
if (environment_ == null) {
|
||||
Environment = new global::Mediapipe.FaceGeometry.Environment();
|
||||
}
|
||||
Environment.MergeFrom(other.Environment);
|
||||
}
|
||||
_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 (environment_ == null) {
|
||||
Environment = new global::Mediapipe.FaceGeometry.Environment();
|
||||
}
|
||||
input.ReadMessage(Environment);
|
||||
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 (environment_ == null) {
|
||||
Environment = new global::Mediapipe.FaceGeometry.Environment();
|
||||
}
|
||||
input.ReadMessage(Environment);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the FaceGeometryEnvGeneratorCalculatorOptions 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.FaceGeometryEnvGeneratorCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.FaceGeometryEnvGeneratorCalculatorOptions>(323693810, pb::FieldCodec.ForMessage(2589550482, global::Mediapipe.FaceGeometryEnvGeneratorCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5c7348ed702634ae1bed9d24f5df5af0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,261 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/modules/face_geometry/geometry_pipeline_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/modules/face_geometry/geometry_pipeline_calculator.proto</summary>
|
||||
public static partial class GeometryPipelineCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/modules/face_geometry/geometry_pipeline_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static GeometryPipelineCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkJtZWRpYXBpcGUvbW9kdWxlcy9mYWNlX2dlb21ldHJ5L2dlb21ldHJ5X3Bp",
|
||||
"cGVsaW5lX2NhbGN1bGF0b3IucHJvdG8SCW1lZGlhcGlwZRosbWVkaWFwaXBl",
|
||||
"L2ZyYW1ld29yay9jYWxjdWxhdG9yX29wdGlvbnMucHJvdG8inwEKJUZhY2VH",
|
||||
"ZW9tZXRyeVBpcGVsaW5lQ2FsY3VsYXRvck9wdGlvbnMSFQoNbWV0YWRhdGFf",
|
||||
"cGF0aBgBIAEoCTJfCgNleHQSHC5tZWRpYXBpcGUuQ2FsY3VsYXRvck9wdGlv",
|
||||
"bnMY9NmsmgEgASgLMjAubWVkaWFwaXBlLkZhY2VHZW9tZXRyeVBpcGVsaW5l",
|
||||
"Q2FsY3VsYXRvck9wdGlvbnM="));
|
||||
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.FaceGeometryPipelineCalculatorOptions), global::Mediapipe.FaceGeometryPipelineCalculatorOptions.Parser, new[]{ "MetadataPath" }, null, null, new pb::Extension[] { global::Mediapipe.FaceGeometryPipelineCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class FaceGeometryPipelineCalculatorOptions : pb::IMessage<FaceGeometryPipelineCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<FaceGeometryPipelineCalculatorOptions> _parser = new pb::MessageParser<FaceGeometryPipelineCalculatorOptions>(() => new FaceGeometryPipelineCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<FaceGeometryPipelineCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.GeometryPipelineCalculatorReflection.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 FaceGeometryPipelineCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FaceGeometryPipelineCalculatorOptions(FaceGeometryPipelineCalculatorOptions other) : this() {
|
||||
metadataPath_ = other.metadataPath_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FaceGeometryPipelineCalculatorOptions Clone() {
|
||||
return new FaceGeometryPipelineCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "metadata_path" field.</summary>
|
||||
public const int MetadataPathFieldNumber = 1;
|
||||
private readonly static string MetadataPathDefaultValue = "";
|
||||
|
||||
private string metadataPath_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string MetadataPath {
|
||||
get { return metadataPath_ ?? MetadataPathDefaultValue; }
|
||||
set {
|
||||
metadataPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "metadata_path" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasMetadataPath {
|
||||
get { return metadataPath_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "metadata_path" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearMetadataPath() {
|
||||
metadataPath_ = null;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as FaceGeometryPipelineCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(FaceGeometryPipelineCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (MetadataPath != other.MetadataPath) 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 (HasMetadataPath) hash ^= MetadataPath.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 (HasMetadataPath) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(MetadataPath);
|
||||
}
|
||||
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 (HasMetadataPath) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(MetadataPath);
|
||||
}
|
||||
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 (HasMetadataPath) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(MetadataPath);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(FaceGeometryPipelineCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasMetadataPath) {
|
||||
MetadataPath = other.MetadataPath;
|
||||
}
|
||||
_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: {
|
||||
MetadataPath = 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: {
|
||||
MetadataPath = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the FaceGeometryPipelineCalculatorOptions 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.FaceGeometryPipelineCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.FaceGeometryPipelineCalculatorOptions>(323693812, pb::FieldCodec.ForMessage(2589550498, global::Mediapipe.FaceGeometryPipelineCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 179d060f02ec2c10fb0b66d898be90da
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f4cffdef1a215b146a16fad7b68bc342
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,679 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/modules/face_geometry/protos/environment.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.FaceGeometry {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/modules/face_geometry/protos/environment.proto</summary>
|
||||
public static partial class EnvironmentReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/modules/face_geometry/protos/environment.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static EnvironmentReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjhtZWRpYXBpcGUvbW9kdWxlcy9mYWNlX2dlb21ldHJ5L3Byb3Rvcy9lbnZp",
|
||||
"cm9ubWVudC5wcm90bxIXbWVkaWFwaXBlLmZhY2VfZ2VvbWV0cnkiTAoRUGVy",
|
||||
"c3BlY3RpdmVDYW1lcmESHAoUdmVydGljYWxfZm92X2RlZ3JlZXMYASABKAIS",
|
||||
"DAoEbmVhchgCIAEoAhILCgNmYXIYAyABKAIiogEKC0Vudmlyb25tZW50EksK",
|
||||
"FW9yaWdpbl9wb2ludF9sb2NhdGlvbhgBIAEoDjIsLm1lZGlhcGlwZS5mYWNl",
|
||||
"X2dlb21ldHJ5Lk9yaWdpblBvaW50TG9jYXRpb24SRgoScGVyc3BlY3RpdmVf",
|
||||
"Y2FtZXJhGAIgASgLMioubWVkaWFwaXBlLmZhY2VfZ2VvbWV0cnkuUGVyc3Bl",
|
||||
"Y3RpdmVDYW1lcmEqQgoTT3JpZ2luUG9pbnRMb2NhdGlvbhIWChJCT1RUT01f",
|
||||
"TEVGVF9DT1JORVIQARITCg9UT1BfTEVGVF9DT1JORVIQAkI9Ciljb20uZ29v",
|
||||
"Z2xlLm1lZGlhcGlwZS5tb2R1bGVzLmZhY2VnZW9tZXRyeUIQRW52aXJvbm1l",
|
||||
"bnRQcm90bw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Mediapipe.FaceGeometry.OriginPointLocation), }, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.FaceGeometry.PerspectiveCamera), global::Mediapipe.FaceGeometry.PerspectiveCamera.Parser, new[]{ "VerticalFovDegrees", "Near", "Far" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.FaceGeometry.Environment), global::Mediapipe.FaceGeometry.Environment.Parser, new[]{ "OriginPointLocation", "PerspectiveCamera" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Enums
|
||||
/// <summary>
|
||||
/// Defines the (0, 0) origin point location of the environment.
|
||||
///
|
||||
/// The variation in the origin point location can be traced back to the memory
|
||||
/// layout of the camera video frame buffers.
|
||||
///
|
||||
/// Usually, the memory layout for most CPU (and also some GPU) camera video
|
||||
/// frame buffers results in having the (0, 0) origin point located in the
|
||||
/// Top Left corner.
|
||||
///
|
||||
/// On the contrary, the memory layout for most GPU camera video frame buffers
|
||||
/// results in having the (0, 0) origin point located in the Bottom Left corner.
|
||||
///
|
||||
/// Let's consider the following example:
|
||||
///
|
||||
/// (A) ---------------+
|
||||
/// ___ |
|
||||
/// | (1) | | |
|
||||
/// | / \ | | |
|
||||
/// | |---|===|-| |
|
||||
/// | |---| | | |
|
||||
/// | / \ | | |
|
||||
/// | | | | | |
|
||||
/// | | (2) |=| | |
|
||||
/// | | | | | |
|
||||
/// | |_______| |_| |
|
||||
/// | |@| |@| | | |
|
||||
/// | ___________|_|_ |
|
||||
/// |
|
||||
/// (B) ---------------+
|
||||
///
|
||||
/// On this example, (1) and (2) have the same X coordinate regardless of the
|
||||
/// origin point location. However, having the origin point located at (A)
|
||||
/// (Top Left corner) results in (1) having a smaller Y coordinate if compared to
|
||||
/// (2). Similarly, having the origin point located at (B) (Bottom Left corner)
|
||||
/// results in (1) having a greater Y coordinate if compared to (2).
|
||||
///
|
||||
/// Providing the correct origin point location for your environment and making
|
||||
/// sure all the input landmarks are in-sync with this location is crucial
|
||||
/// for receiving the correct output face geometry and visual renders.
|
||||
/// </summary>
|
||||
public enum OriginPointLocation {
|
||||
[pbr::OriginalName("BOTTOM_LEFT_CORNER")] BottomLeftCorner = 1,
|
||||
[pbr::OriginalName("TOP_LEFT_CORNER")] TopLeftCorner = 2,
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Messages
|
||||
/// <summary>
|
||||
/// The perspective camera is defined through its vertical FOV angle and the
|
||||
/// Z-clipping planes. The aspect ratio is a runtime variable for the face
|
||||
/// geometry module and should be provided alongside the face landmarks in order
|
||||
/// to estimate the face geometry on a given frame.
|
||||
///
|
||||
/// More info on Perspective Cameras:
|
||||
/// http://www.songho.ca/opengl/gl_projectionmatrix.html#perspective
|
||||
/// </summary>
|
||||
public sealed partial class PerspectiveCamera : pb::IMessage<PerspectiveCamera>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<PerspectiveCamera> _parser = new pb::MessageParser<PerspectiveCamera>(() => new PerspectiveCamera());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<PerspectiveCamera> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.FaceGeometry.EnvironmentReflection.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 PerspectiveCamera() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public PerspectiveCamera(PerspectiveCamera other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
verticalFovDegrees_ = other.verticalFovDegrees_;
|
||||
near_ = other.near_;
|
||||
far_ = other.far_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public PerspectiveCamera Clone() {
|
||||
return new PerspectiveCamera(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "vertical_fov_degrees" field.</summary>
|
||||
public const int VerticalFovDegreesFieldNumber = 1;
|
||||
private readonly static float VerticalFovDegreesDefaultValue = 0F;
|
||||
|
||||
private float verticalFovDegrees_;
|
||||
/// <summary>
|
||||
/// `0 < vertical_fov_degrees < 180`.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float VerticalFovDegrees {
|
||||
get { if ((_hasBits0 & 1) != 0) { return verticalFovDegrees_; } else { return VerticalFovDegreesDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
verticalFovDegrees_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "vertical_fov_degrees" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasVerticalFovDegrees {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "vertical_fov_degrees" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearVerticalFovDegrees() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "near" field.</summary>
|
||||
public const int NearFieldNumber = 2;
|
||||
private readonly static float NearDefaultValue = 0F;
|
||||
|
||||
private float near_;
|
||||
/// <summary>
|
||||
/// `0 < near < far`.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float Near {
|
||||
get { if ((_hasBits0 & 2) != 0) { return near_; } else { return NearDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
near_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "near" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNear {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "near" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNear() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "far" field.</summary>
|
||||
public const int FarFieldNumber = 3;
|
||||
private readonly static float FarDefaultValue = 0F;
|
||||
|
||||
private float far_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float Far {
|
||||
get { if ((_hasBits0 & 4) != 0) { return far_; } else { return FarDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
far_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "far" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasFar {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "far" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearFar() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as PerspectiveCamera);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(PerspectiveCamera other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(VerticalFovDegrees, other.VerticalFovDegrees)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Near, other.Near)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Far, other.Far)) 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 (HasVerticalFovDegrees) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(VerticalFovDegrees);
|
||||
if (HasNear) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Near);
|
||||
if (HasFar) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Far);
|
||||
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 (HasVerticalFovDegrees) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(VerticalFovDegrees);
|
||||
}
|
||||
if (HasNear) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(Near);
|
||||
}
|
||||
if (HasFar) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(Far);
|
||||
}
|
||||
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 (HasVerticalFovDegrees) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(VerticalFovDegrees);
|
||||
}
|
||||
if (HasNear) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(Near);
|
||||
}
|
||||
if (HasFar) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(Far);
|
||||
}
|
||||
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 (HasVerticalFovDegrees) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasNear) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasFar) {
|
||||
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(PerspectiveCamera other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasVerticalFovDegrees) {
|
||||
VerticalFovDegrees = other.VerticalFovDegrees;
|
||||
}
|
||||
if (other.HasNear) {
|
||||
Near = other.Near;
|
||||
}
|
||||
if (other.HasFar) {
|
||||
Far = other.Far;
|
||||
}
|
||||
_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: {
|
||||
VerticalFovDegrees = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
Near = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
Far = 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: {
|
||||
VerticalFovDegrees = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
Near = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
Far = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
public sealed partial class Environment : pb::IMessage<Environment>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<Environment> _parser = new pb::MessageParser<Environment>(() => new Environment());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<Environment> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.FaceGeometry.EnvironmentReflection.Descriptor.MessageTypes[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 Environment() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Environment(Environment other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
originPointLocation_ = other.originPointLocation_;
|
||||
perspectiveCamera_ = other.perspectiveCamera_ != null ? other.perspectiveCamera_.Clone() : null;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Environment Clone() {
|
||||
return new Environment(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "origin_point_location" field.</summary>
|
||||
public const int OriginPointLocationFieldNumber = 1;
|
||||
private readonly static global::Mediapipe.FaceGeometry.OriginPointLocation OriginPointLocationDefaultValue = global::Mediapipe.FaceGeometry.OriginPointLocation.BottomLeftCorner;
|
||||
|
||||
private global::Mediapipe.FaceGeometry.OriginPointLocation originPointLocation_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.FaceGeometry.OriginPointLocation OriginPointLocation {
|
||||
get { if ((_hasBits0 & 1) != 0) { return originPointLocation_; } else { return OriginPointLocationDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
originPointLocation_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "origin_point_location" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasOriginPointLocation {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "origin_point_location" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearOriginPointLocation() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "perspective_camera" field.</summary>
|
||||
public const int PerspectiveCameraFieldNumber = 2;
|
||||
private global::Mediapipe.FaceGeometry.PerspectiveCamera perspectiveCamera_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.FaceGeometry.PerspectiveCamera PerspectiveCamera {
|
||||
get { return perspectiveCamera_; }
|
||||
set {
|
||||
perspectiveCamera_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Environment);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(Environment other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (OriginPointLocation != other.OriginPointLocation) return false;
|
||||
if (!object.Equals(PerspectiveCamera, other.PerspectiveCamera)) 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 (HasOriginPointLocation) hash ^= OriginPointLocation.GetHashCode();
|
||||
if (perspectiveCamera_ != null) hash ^= PerspectiveCamera.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 (HasOriginPointLocation) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteEnum((int) OriginPointLocation);
|
||||
}
|
||||
if (perspectiveCamera_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(PerspectiveCamera);
|
||||
}
|
||||
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 (HasOriginPointLocation) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteEnum((int) OriginPointLocation);
|
||||
}
|
||||
if (perspectiveCamera_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(PerspectiveCamera);
|
||||
}
|
||||
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 (HasOriginPointLocation) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OriginPointLocation);
|
||||
}
|
||||
if (perspectiveCamera_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PerspectiveCamera);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(Environment other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasOriginPointLocation) {
|
||||
OriginPointLocation = other.OriginPointLocation;
|
||||
}
|
||||
if (other.perspectiveCamera_ != null) {
|
||||
if (perspectiveCamera_ == null) {
|
||||
PerspectiveCamera = new global::Mediapipe.FaceGeometry.PerspectiveCamera();
|
||||
}
|
||||
PerspectiveCamera.MergeFrom(other.PerspectiveCamera);
|
||||
}
|
||||
_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: {
|
||||
OriginPointLocation = (global::Mediapipe.FaceGeometry.OriginPointLocation) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (perspectiveCamera_ == null) {
|
||||
PerspectiveCamera = new global::Mediapipe.FaceGeometry.PerspectiveCamera();
|
||||
}
|
||||
input.ReadMessage(PerspectiveCamera);
|
||||
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: {
|
||||
OriginPointLocation = (global::Mediapipe.FaceGeometry.OriginPointLocation) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (perspectiveCamera_ == null) {
|
||||
PerspectiveCamera = new global::Mediapipe.FaceGeometry.PerspectiveCamera();
|
||||
}
|
||||
input.ReadMessage(PerspectiveCamera);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 27261b8f2120b83ca871805186fc2688
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,331 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/modules/face_geometry/protos/face_geometry.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.FaceGeometry {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/modules/face_geometry/protos/face_geometry.proto</summary>
|
||||
public static partial class FaceGeometryReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/modules/face_geometry/protos/face_geometry.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static FaceGeometryReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjptZWRpYXBpcGUvbW9kdWxlcy9mYWNlX2dlb21ldHJ5L3Byb3Rvcy9mYWNl",
|
||||
"X2dlb21ldHJ5LnByb3RvEhdtZWRpYXBpcGUuZmFjZV9nZW9tZXRyeRotbWVk",
|
||||
"aWFwaXBlL2ZyYW1ld29yay9mb3JtYXRzL21hdHJpeF9kYXRhLnByb3RvGjRt",
|
||||
"ZWRpYXBpcGUvbW9kdWxlcy9mYWNlX2dlb21ldHJ5L3Byb3Rvcy9tZXNoXzNk",
|
||||
"LnByb3RvInMKDEZhY2VHZW9tZXRyeRItCgRtZXNoGAEgASgLMh8ubWVkaWFw",
|
||||
"aXBlLmZhY2VfZ2VvbWV0cnkuTWVzaDNkEjQKFXBvc2VfdHJhbnNmb3JtX21h",
|
||||
"dHJpeBgCIAEoCzIVLm1lZGlhcGlwZS5NYXRyaXhEYXRhQj4KKWNvbS5nb29n",
|
||||
"bGUubWVkaWFwaXBlLm1vZHVsZXMuZmFjZWdlb21ldHJ5QhFGYWNlR2VvbWV0",
|
||||
"cnlQcm90bw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.MatrixDataReflection.Descriptor, global::Mediapipe.FaceGeometry.Mesh3DReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.FaceGeometry.FaceGeometry), global::Mediapipe.FaceGeometry.FaceGeometry.Parser, new[]{ "Mesh", "PoseTransformMatrix" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
/// <summary>
|
||||
/// Defines the face geometry pipeline estimation result format.
|
||||
/// </summary>
|
||||
public sealed partial class FaceGeometry : pb::IMessage<FaceGeometry>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<FaceGeometry> _parser = new pb::MessageParser<FaceGeometry>(() => new FaceGeometry());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<FaceGeometry> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.FaceGeometry.FaceGeometryReflection.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 FaceGeometry() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FaceGeometry(FaceGeometry other) : this() {
|
||||
mesh_ = other.mesh_ != null ? other.mesh_.Clone() : null;
|
||||
poseTransformMatrix_ = other.poseTransformMatrix_ != null ? other.poseTransformMatrix_.Clone() : null;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FaceGeometry Clone() {
|
||||
return new FaceGeometry(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "mesh" field.</summary>
|
||||
public const int MeshFieldNumber = 1;
|
||||
private global::Mediapipe.FaceGeometry.Mesh3d mesh_;
|
||||
/// <summary>
|
||||
/// Defines a mesh surface for a face. The face mesh vertex IDs are the same as
|
||||
/// the face landmark IDs.
|
||||
///
|
||||
/// XYZ coordinates exist in the right-handed Metric 3D space configured by an
|
||||
/// environment. UV coodinates are taken from the canonical face mesh model.
|
||||
///
|
||||
/// XY coordinates are guaranteed to match the screen positions of
|
||||
/// the input face landmarks after (1) being multiplied by the face pose
|
||||
/// transformation matrix and then (2) being projected with a perspective
|
||||
/// camera matrix of the same environment.
|
||||
///
|
||||
/// NOTE: the triangular topology of the face mesh is only useful when derived
|
||||
/// from the 468 face landmarks, not from the 6 face detection landmarks
|
||||
/// (keypoints). The former don't cover the entire face and this mesh is
|
||||
/// defined here only to comply with the API. It should be considered as
|
||||
/// a placeholder and/or for debugging purposes.
|
||||
///
|
||||
/// Use the face geometry derived from the face detection landmarks
|
||||
/// (keypoints) for the face pose transformation matrix, not the mesh.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.FaceGeometry.Mesh3d Mesh {
|
||||
get { return mesh_; }
|
||||
set {
|
||||
mesh_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "pose_transform_matrix" field.</summary>
|
||||
public const int PoseTransformMatrixFieldNumber = 2;
|
||||
private global::Mediapipe.MatrixData poseTransformMatrix_;
|
||||
/// <summary>
|
||||
/// Defines a face pose transformation matrix, which provides mapping from
|
||||
/// the static canonical face model to the runtime face. Tries to distinguish
|
||||
/// a head pose change from a facial expression change and to only reflect the
|
||||
/// former.
|
||||
///
|
||||
/// Is a 4x4 matrix and contains only the following components:
|
||||
/// * Uniform scale
|
||||
/// * Rotation
|
||||
/// * Translation
|
||||
///
|
||||
/// The last row is guaranteed to be `[0 0 0 1]`.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.MatrixData PoseTransformMatrix {
|
||||
get { return poseTransformMatrix_; }
|
||||
set {
|
||||
poseTransformMatrix_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as FaceGeometry);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(FaceGeometry other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(Mesh, other.Mesh)) return false;
|
||||
if (!object.Equals(PoseTransformMatrix, other.PoseTransformMatrix)) 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 (mesh_ != null) hash ^= Mesh.GetHashCode();
|
||||
if (poseTransformMatrix_ != null) hash ^= PoseTransformMatrix.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 (mesh_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(Mesh);
|
||||
}
|
||||
if (poseTransformMatrix_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(PoseTransformMatrix);
|
||||
}
|
||||
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 (mesh_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(Mesh);
|
||||
}
|
||||
if (poseTransformMatrix_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(PoseTransformMatrix);
|
||||
}
|
||||
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 (mesh_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Mesh);
|
||||
}
|
||||
if (poseTransformMatrix_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PoseTransformMatrix);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(FaceGeometry other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.mesh_ != null) {
|
||||
if (mesh_ == null) {
|
||||
Mesh = new global::Mediapipe.FaceGeometry.Mesh3d();
|
||||
}
|
||||
Mesh.MergeFrom(other.Mesh);
|
||||
}
|
||||
if (other.poseTransformMatrix_ != null) {
|
||||
if (poseTransformMatrix_ == null) {
|
||||
PoseTransformMatrix = new global::Mediapipe.MatrixData();
|
||||
}
|
||||
PoseTransformMatrix.MergeFrom(other.PoseTransformMatrix);
|
||||
}
|
||||
_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 (mesh_ == null) {
|
||||
Mesh = new global::Mediapipe.FaceGeometry.Mesh3d();
|
||||
}
|
||||
input.ReadMessage(Mesh);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (poseTransformMatrix_ == null) {
|
||||
PoseTransformMatrix = new global::Mediapipe.MatrixData();
|
||||
}
|
||||
input.ReadMessage(PoseTransformMatrix);
|
||||
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 (mesh_ == null) {
|
||||
Mesh = new global::Mediapipe.FaceGeometry.Mesh3d();
|
||||
}
|
||||
input.ReadMessage(Mesh);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (poseTransformMatrix_ == null) {
|
||||
PoseTransformMatrix = new global::Mediapipe.MatrixData();
|
||||
}
|
||||
input.ReadMessage(PoseTransformMatrix);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f95c0ec47a36687ba8e49a70c3261e78
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,640 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/modules/face_geometry/protos/geometry_pipeline_metadata.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.FaceGeometry {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/modules/face_geometry/protos/geometry_pipeline_metadata.proto</summary>
|
||||
public static partial class GeometryPipelineMetadataReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/modules/face_geometry/protos/geometry_pipeline_metadata.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static GeometryPipelineMetadataReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkdtZWRpYXBpcGUvbW9kdWxlcy9mYWNlX2dlb21ldHJ5L3Byb3Rvcy9nZW9t",
|
||||
"ZXRyeV9waXBlbGluZV9tZXRhZGF0YS5wcm90bxIXbWVkaWFwaXBlLmZhY2Vf",
|
||||
"Z2VvbWV0cnkaNG1lZGlhcGlwZS9tb2R1bGVzL2ZhY2VfZ2VvbWV0cnkvcHJv",
|
||||
"dG9zL21lc2hfM2QucHJvdG8iOgoTV2VpZ2h0ZWRMYW5kbWFya1JlZhITCgts",
|
||||
"YW5kbWFya19pZBgBIAEoDRIOCgZ3ZWlnaHQYAiABKAIi4AEKGEdlb21ldHJ5",
|
||||
"UGlwZWxpbmVNZXRhZGF0YRI6CgxpbnB1dF9zb3VyY2UYAyABKA4yJC5tZWRp",
|
||||
"YXBpcGUuZmFjZV9nZW9tZXRyeS5JbnB1dFNvdXJjZRI3Cg5jYW5vbmljYWxf",
|
||||
"bWVzaBgBIAEoCzIfLm1lZGlhcGlwZS5mYWNlX2dlb21ldHJ5Lk1lc2gzZBJP",
|
||||
"Chlwcm9jcnVzdGVzX2xhbmRtYXJrX2Jhc2lzGAIgAygLMiwubWVkaWFwaXBl",
|
||||
"LmZhY2VfZ2VvbWV0cnkuV2VpZ2h0ZWRMYW5kbWFya1JlZipTCgtJbnB1dFNv",
|
||||
"dXJjZRILCgdERUZBVUxUEAASGgoWRkFDRV9MQU5ETUFSS19QSVBFTElORRAB",
|
||||
"EhsKF0ZBQ0VfREVURUNUSU9OX1BJUEVMSU5FEAJCSgopY29tLmdvb2dsZS5t",
|
||||
"ZWRpYXBpcGUubW9kdWxlcy5mYWNlZ2VvbWV0cnlCHUdlb21ldHJ5UGlwZWxp",
|
||||
"bmVNZXRhZGF0YVByb3Rv"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.FaceGeometry.Mesh3DReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Mediapipe.FaceGeometry.InputSource), }, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.FaceGeometry.WeightedLandmarkRef), global::Mediapipe.FaceGeometry.WeightedLandmarkRef.Parser, new[]{ "LandmarkId", "Weight" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.FaceGeometry.GeometryPipelineMetadata), global::Mediapipe.FaceGeometry.GeometryPipelineMetadata.Parser, new[]{ "InputSource", "CanonicalMesh", "ProcrustesLandmarkBasis" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Enums
|
||||
public enum InputSource {
|
||||
/// <summary>
|
||||
/// FACE_LANDMARK_PIPELINE
|
||||
/// </summary>
|
||||
[pbr::OriginalName("DEFAULT")] Default = 0,
|
||||
[pbr::OriginalName("FACE_LANDMARK_PIPELINE")] FaceLandmarkPipeline = 1,
|
||||
[pbr::OriginalName("FACE_DETECTION_PIPELINE")] FaceDetectionPipeline = 2,
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Messages
|
||||
public sealed partial class WeightedLandmarkRef : pb::IMessage<WeightedLandmarkRef>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<WeightedLandmarkRef> _parser = new pb::MessageParser<WeightedLandmarkRef>(() => new WeightedLandmarkRef());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<WeightedLandmarkRef> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.FaceGeometry.GeometryPipelineMetadataReflection.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 WeightedLandmarkRef() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public WeightedLandmarkRef(WeightedLandmarkRef other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
landmarkId_ = other.landmarkId_;
|
||||
weight_ = other.weight_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public WeightedLandmarkRef Clone() {
|
||||
return new WeightedLandmarkRef(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "landmark_id" field.</summary>
|
||||
public const int LandmarkIdFieldNumber = 1;
|
||||
private readonly static uint LandmarkIdDefaultValue = 0;
|
||||
|
||||
private uint landmarkId_;
|
||||
/// <summary>
|
||||
/// Defines the landmark ID. References an existing face landmark ID.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public uint LandmarkId {
|
||||
get { if ((_hasBits0 & 1) != 0) { return landmarkId_; } else { return LandmarkIdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
landmarkId_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "landmark_id" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasLandmarkId {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "landmark_id" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearLandmarkId() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "weight" field.</summary>
|
||||
public const int WeightFieldNumber = 2;
|
||||
private readonly static float WeightDefaultValue = 0F;
|
||||
|
||||
private float weight_;
|
||||
/// <summary>
|
||||
/// Defines the landmark weight. The larger the weight the more influence this
|
||||
/// landmark has in the basis.
|
||||
///
|
||||
/// Is positive.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float Weight {
|
||||
get { if ((_hasBits0 & 2) != 0) { return weight_; } else { return WeightDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
weight_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "weight" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasWeight {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "weight" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearWeight() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as WeightedLandmarkRef);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(WeightedLandmarkRef other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (LandmarkId != other.LandmarkId) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Weight, other.Weight)) 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 (HasLandmarkId) hash ^= LandmarkId.GetHashCode();
|
||||
if (HasWeight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Weight);
|
||||
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 (HasLandmarkId) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(LandmarkId);
|
||||
}
|
||||
if (HasWeight) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(Weight);
|
||||
}
|
||||
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 (HasLandmarkId) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(LandmarkId);
|
||||
}
|
||||
if (HasWeight) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(Weight);
|
||||
}
|
||||
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 (HasLandmarkId) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LandmarkId);
|
||||
}
|
||||
if (HasWeight) {
|
||||
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(WeightedLandmarkRef other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasLandmarkId) {
|
||||
LandmarkId = other.LandmarkId;
|
||||
}
|
||||
if (other.HasWeight) {
|
||||
Weight = other.Weight;
|
||||
}
|
||||
_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: {
|
||||
LandmarkId = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
Weight = 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 8: {
|
||||
LandmarkId = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
Weight = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Next field ID: 4
|
||||
/// </summary>
|
||||
public sealed partial class GeometryPipelineMetadata : pb::IMessage<GeometryPipelineMetadata>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<GeometryPipelineMetadata> _parser = new pb::MessageParser<GeometryPipelineMetadata>(() => new GeometryPipelineMetadata());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<GeometryPipelineMetadata> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.FaceGeometry.GeometryPipelineMetadataReflection.Descriptor.MessageTypes[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 GeometryPipelineMetadata() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public GeometryPipelineMetadata(GeometryPipelineMetadata other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
inputSource_ = other.inputSource_;
|
||||
canonicalMesh_ = other.canonicalMesh_ != null ? other.canonicalMesh_.Clone() : null;
|
||||
procrustesLandmarkBasis_ = other.procrustesLandmarkBasis_.Clone();
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public GeometryPipelineMetadata Clone() {
|
||||
return new GeometryPipelineMetadata(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "input_source" field.</summary>
|
||||
public const int InputSourceFieldNumber = 3;
|
||||
private readonly static global::Mediapipe.FaceGeometry.InputSource InputSourceDefaultValue = global::Mediapipe.FaceGeometry.InputSource.Default;
|
||||
|
||||
private global::Mediapipe.FaceGeometry.InputSource inputSource_;
|
||||
/// <summary>
|
||||
/// Defines the source of the input landmarks to let the underlying geometry
|
||||
/// pipeline to adjust in order to produce the best results.
|
||||
///
|
||||
/// Face landmark pipeline is expected to produce 3D landmarks with relative Z
|
||||
/// coordinate, which is scaled as the X coordinate assuming the weak
|
||||
/// perspective projection camera model.
|
||||
///
|
||||
/// Face landmark pipeline is expected to produce 2D landmarks with Z
|
||||
/// coordinate being equal to 0.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.FaceGeometry.InputSource InputSource {
|
||||
get { if ((_hasBits0 & 1) != 0) { return inputSource_; } else { return InputSourceDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
inputSource_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "input_source" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasInputSource {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "input_source" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearInputSource() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "canonical_mesh" field.</summary>
|
||||
public const int CanonicalMeshFieldNumber = 1;
|
||||
private global::Mediapipe.FaceGeometry.Mesh3d canonicalMesh_;
|
||||
/// <summary>
|
||||
/// Defines a mesh surface for a canonical face. The canonical face mesh vertex
|
||||
/// IDs are the same as the face landmark IDs.
|
||||
///
|
||||
/// XYZ coordinates are defined in centimeter units.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.FaceGeometry.Mesh3d CanonicalMesh {
|
||||
get { return canonicalMesh_; }
|
||||
set {
|
||||
canonicalMesh_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "procrustes_landmark_basis" field.</summary>
|
||||
public const int ProcrustesLandmarkBasisFieldNumber = 2;
|
||||
private static readonly pb::FieldCodec<global::Mediapipe.FaceGeometry.WeightedLandmarkRef> _repeated_procrustesLandmarkBasis_codec
|
||||
= pb::FieldCodec.ForMessage(18, global::Mediapipe.FaceGeometry.WeightedLandmarkRef.Parser);
|
||||
private readonly pbc::RepeatedField<global::Mediapipe.FaceGeometry.WeightedLandmarkRef> procrustesLandmarkBasis_ = new pbc::RepeatedField<global::Mediapipe.FaceGeometry.WeightedLandmarkRef>();
|
||||
/// <summary>
|
||||
/// Defines a weighted landmark basis for running the Procrustes solver
|
||||
/// algorithm inside the geometry pipeline.
|
||||
///
|
||||
/// A good basis sets face landmark weights in way to distinguish a head pose
|
||||
/// change from a facial expression change and to only respond to the former.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<global::Mediapipe.FaceGeometry.WeightedLandmarkRef> ProcrustesLandmarkBasis {
|
||||
get { return procrustesLandmarkBasis_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as GeometryPipelineMetadata);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(GeometryPipelineMetadata other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (InputSource != other.InputSource) return false;
|
||||
if (!object.Equals(CanonicalMesh, other.CanonicalMesh)) return false;
|
||||
if(!procrustesLandmarkBasis_.Equals(other.procrustesLandmarkBasis_)) 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 (HasInputSource) hash ^= InputSource.GetHashCode();
|
||||
if (canonicalMesh_ != null) hash ^= CanonicalMesh.GetHashCode();
|
||||
hash ^= procrustesLandmarkBasis_.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 (canonicalMesh_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(CanonicalMesh);
|
||||
}
|
||||
procrustesLandmarkBasis_.WriteTo(output, _repeated_procrustesLandmarkBasis_codec);
|
||||
if (HasInputSource) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteEnum((int) InputSource);
|
||||
}
|
||||
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 (canonicalMesh_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(CanonicalMesh);
|
||||
}
|
||||
procrustesLandmarkBasis_.WriteTo(ref output, _repeated_procrustesLandmarkBasis_codec);
|
||||
if (HasInputSource) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteEnum((int) InputSource);
|
||||
}
|
||||
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 (HasInputSource) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) InputSource);
|
||||
}
|
||||
if (canonicalMesh_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CanonicalMesh);
|
||||
}
|
||||
size += procrustesLandmarkBasis_.CalculateSize(_repeated_procrustesLandmarkBasis_codec);
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(GeometryPipelineMetadata other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasInputSource) {
|
||||
InputSource = other.InputSource;
|
||||
}
|
||||
if (other.canonicalMesh_ != null) {
|
||||
if (canonicalMesh_ == null) {
|
||||
CanonicalMesh = new global::Mediapipe.FaceGeometry.Mesh3d();
|
||||
}
|
||||
CanonicalMesh.MergeFrom(other.CanonicalMesh);
|
||||
}
|
||||
procrustesLandmarkBasis_.Add(other.procrustesLandmarkBasis_);
|
||||
_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 (canonicalMesh_ == null) {
|
||||
CanonicalMesh = new global::Mediapipe.FaceGeometry.Mesh3d();
|
||||
}
|
||||
input.ReadMessage(CanonicalMesh);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
procrustesLandmarkBasis_.AddEntriesFrom(input, _repeated_procrustesLandmarkBasis_codec);
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
InputSource = (global::Mediapipe.FaceGeometry.InputSource) 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 10: {
|
||||
if (canonicalMesh_ == null) {
|
||||
CanonicalMesh = new global::Mediapipe.FaceGeometry.Mesh3d();
|
||||
}
|
||||
input.ReadMessage(CanonicalMesh);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
procrustesLandmarkBasis_.AddEntriesFrom(ref input, _repeated_procrustesLandmarkBasis_codec);
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
InputSource = (global::Mediapipe.FaceGeometry.InputSource) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4ee83bbf21893b0698762553487f5dba
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,394 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/modules/face_geometry/protos/mesh_3d.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.FaceGeometry {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/modules/face_geometry/protos/mesh_3d.proto</summary>
|
||||
public static partial class Mesh3DReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/modules/face_geometry/protos/mesh_3d.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static Mesh3DReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjRtZWRpYXBpcGUvbW9kdWxlcy9mYWNlX2dlb21ldHJ5L3Byb3Rvcy9tZXNo",
|
||||
"XzNkLnByb3RvEhdtZWRpYXBpcGUuZmFjZV9nZW9tZXRyeSL5AQoGTWVzaDNk",
|
||||
"Ej8KC3ZlcnRleF90eXBlGAEgASgOMioubWVkaWFwaXBlLmZhY2VfZ2VvbWV0",
|
||||
"cnkuTWVzaDNkLlZlcnRleFR5cGUSRQoOcHJpbWl0aXZlX3R5cGUYAiABKA4y",
|
||||
"LS5tZWRpYXBpcGUuZmFjZV9nZW9tZXRyeS5NZXNoM2QuUHJpbWl0aXZlVHlw",
|
||||
"ZRIVCg12ZXJ0ZXhfYnVmZmVyGAMgAygCEhQKDGluZGV4X2J1ZmZlchgEIAMo",
|
||||
"DSIbCgpWZXJ0ZXhUeXBlEg0KCVZFUlRFWF9QVBAAIh0KDVByaW1pdGl2ZVR5",
|
||||
"cGUSDAoIVFJJQU5HTEUQAEI4Ciljb20uZ29vZ2xlLm1lZGlhcGlwZS5tb2R1",
|
||||
"bGVzLmZhY2VnZW9tZXRyeUILTWVzaDNkUHJvdG8="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.FaceGeometry.Mesh3d), global::Mediapipe.FaceGeometry.Mesh3d.Parser, new[]{ "VertexType", "PrimitiveType", "VertexBuffer", "IndexBuffer" }, null, new[]{ typeof(global::Mediapipe.FaceGeometry.Mesh3d.Types.VertexType), typeof(global::Mediapipe.FaceGeometry.Mesh3d.Types.PrimitiveType) }, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class Mesh3d : pb::IMessage<Mesh3d>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<Mesh3d> _parser = new pb::MessageParser<Mesh3d>(() => new Mesh3d());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<Mesh3d> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.FaceGeometry.Mesh3DReflection.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 Mesh3d() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Mesh3d(Mesh3d other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
vertexType_ = other.vertexType_;
|
||||
primitiveType_ = other.primitiveType_;
|
||||
vertexBuffer_ = other.vertexBuffer_.Clone();
|
||||
indexBuffer_ = other.indexBuffer_.Clone();
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Mesh3d Clone() {
|
||||
return new Mesh3d(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "vertex_type" field.</summary>
|
||||
public const int VertexTypeFieldNumber = 1;
|
||||
private readonly static global::Mediapipe.FaceGeometry.Mesh3d.Types.VertexType VertexTypeDefaultValue = global::Mediapipe.FaceGeometry.Mesh3d.Types.VertexType.VertexPt;
|
||||
|
||||
private global::Mediapipe.FaceGeometry.Mesh3d.Types.VertexType vertexType_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.FaceGeometry.Mesh3d.Types.VertexType VertexType {
|
||||
get { if ((_hasBits0 & 1) != 0) { return vertexType_; } else { return VertexTypeDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
vertexType_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "vertex_type" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasVertexType {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "vertex_type" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearVertexType() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "primitive_type" field.</summary>
|
||||
public const int PrimitiveTypeFieldNumber = 2;
|
||||
private readonly static global::Mediapipe.FaceGeometry.Mesh3d.Types.PrimitiveType PrimitiveTypeDefaultValue = global::Mediapipe.FaceGeometry.Mesh3d.Types.PrimitiveType.Triangle;
|
||||
|
||||
private global::Mediapipe.FaceGeometry.Mesh3d.Types.PrimitiveType primitiveType_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.FaceGeometry.Mesh3d.Types.PrimitiveType PrimitiveType {
|
||||
get { if ((_hasBits0 & 2) != 0) { return primitiveType_; } else { return PrimitiveTypeDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
primitiveType_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "primitive_type" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasPrimitiveType {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "primitive_type" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearPrimitiveType() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "vertex_buffer" field.</summary>
|
||||
public const int VertexBufferFieldNumber = 3;
|
||||
private static readonly pb::FieldCodec<float> _repeated_vertexBuffer_codec
|
||||
= pb::FieldCodec.ForFloat(29);
|
||||
private readonly pbc::RepeatedField<float> vertexBuffer_ = new pbc::RepeatedField<float>();
|
||||
/// <summary>
|
||||
/// Vertex buffer size is a multiple of the vertex size (e.g., 5 for
|
||||
/// VERTEX_PT).
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<float> VertexBuffer {
|
||||
get { return vertexBuffer_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "index_buffer" field.</summary>
|
||||
public const int IndexBufferFieldNumber = 4;
|
||||
private static readonly pb::FieldCodec<uint> _repeated_indexBuffer_codec
|
||||
= pb::FieldCodec.ForUInt32(32);
|
||||
private readonly pbc::RepeatedField<uint> indexBuffer_ = new pbc::RepeatedField<uint>();
|
||||
/// <summary>
|
||||
/// Index buffer size is a multiple of the primitive size (e.g., 3 for
|
||||
/// TRIANGLE).
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<uint> IndexBuffer {
|
||||
get { return indexBuffer_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Mesh3d);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(Mesh3d other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (VertexType != other.VertexType) return false;
|
||||
if (PrimitiveType != other.PrimitiveType) return false;
|
||||
if(!vertexBuffer_.Equals(other.vertexBuffer_)) return false;
|
||||
if(!indexBuffer_.Equals(other.indexBuffer_)) 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 (HasVertexType) hash ^= VertexType.GetHashCode();
|
||||
if (HasPrimitiveType) hash ^= PrimitiveType.GetHashCode();
|
||||
hash ^= vertexBuffer_.GetHashCode();
|
||||
hash ^= indexBuffer_.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 (HasVertexType) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteEnum((int) VertexType);
|
||||
}
|
||||
if (HasPrimitiveType) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteEnum((int) PrimitiveType);
|
||||
}
|
||||
vertexBuffer_.WriteTo(output, _repeated_vertexBuffer_codec);
|
||||
indexBuffer_.WriteTo(output, _repeated_indexBuffer_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 (HasVertexType) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteEnum((int) VertexType);
|
||||
}
|
||||
if (HasPrimitiveType) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteEnum((int) PrimitiveType);
|
||||
}
|
||||
vertexBuffer_.WriteTo(ref output, _repeated_vertexBuffer_codec);
|
||||
indexBuffer_.WriteTo(ref output, _repeated_indexBuffer_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 (HasVertexType) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VertexType);
|
||||
}
|
||||
if (HasPrimitiveType) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PrimitiveType);
|
||||
}
|
||||
size += vertexBuffer_.CalculateSize(_repeated_vertexBuffer_codec);
|
||||
size += indexBuffer_.CalculateSize(_repeated_indexBuffer_codec);
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(Mesh3d other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasVertexType) {
|
||||
VertexType = other.VertexType;
|
||||
}
|
||||
if (other.HasPrimitiveType) {
|
||||
PrimitiveType = other.PrimitiveType;
|
||||
}
|
||||
vertexBuffer_.Add(other.vertexBuffer_);
|
||||
indexBuffer_.Add(other.indexBuffer_);
|
||||
_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: {
|
||||
VertexType = (global::Mediapipe.FaceGeometry.Mesh3d.Types.VertexType) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
PrimitiveType = (global::Mediapipe.FaceGeometry.Mesh3d.Types.PrimitiveType) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 26:
|
||||
case 29: {
|
||||
vertexBuffer_.AddEntriesFrom(input, _repeated_vertexBuffer_codec);
|
||||
break;
|
||||
}
|
||||
case 34:
|
||||
case 32: {
|
||||
indexBuffer_.AddEntriesFrom(input, _repeated_indexBuffer_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: {
|
||||
VertexType = (global::Mediapipe.FaceGeometry.Mesh3d.Types.VertexType) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
PrimitiveType = (global::Mediapipe.FaceGeometry.Mesh3d.Types.PrimitiveType) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 26:
|
||||
case 29: {
|
||||
vertexBuffer_.AddEntriesFrom(ref input, _repeated_vertexBuffer_codec);
|
||||
break;
|
||||
}
|
||||
case 34:
|
||||
case 32: {
|
||||
indexBuffer_.AddEntriesFrom(ref input, _repeated_indexBuffer_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Nested types
|
||||
/// <summary>Container for nested types declared in the Mesh3d message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Types {
|
||||
public enum VertexType {
|
||||
/// <summary>
|
||||
/// Is defined by 5 coordinates: Position (XYZ) + Texture coordinate (UV).
|
||||
/// </summary>
|
||||
[pbr::OriginalName("VERTEX_PT")] VertexPt = 0,
|
||||
}
|
||||
|
||||
public enum PrimitiveType {
|
||||
/// <summary>
|
||||
/// Is defined by 3 indices: triangle vertex IDs.
|
||||
/// </summary>
|
||||
[pbr::OriginalName("TRIANGLE")] Triangle = 0,
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 263876dc23a587949869ee40a64e2988
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 70a1861119876fb489670207ec611137
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c065a06a9970f95448988ea7599fb8bc
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 725c12e3d35ecc9349b5d14043fbe9a6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ca1559f36eb12e849ae14f324c7fbec5
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2f0eac5ef5fa2a24698ac8d2ef43ee70
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e4facbf66687417bca38efde0cd05615
|
||||
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: e4f57edd5720360c5b5f915972c86488
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,536 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/modules/objectron/calculators/belief_decoder_config.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/modules/objectron/calculators/belief_decoder_config.proto</summary>
|
||||
public static partial class BeliefDecoderConfigReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/modules/objectron/calculators/belief_decoder_config.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static BeliefDecoderConfigReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkNtZWRpYXBpcGUvbW9kdWxlcy9vYmplY3Ryb24vY2FsY3VsYXRvcnMvYmVs",
|
||||
"aWVmX2RlY29kZXJfY29uZmlnLnByb3RvEgltZWRpYXBpcGUixAEKE0JlbGll",
|
||||
"ZkRlY29kZXJDb25maWcSHgoRaGVhdG1hcF90aHJlc2hvbGQYASABKAI6AzAu",
|
||||
"ORIeChJsb2NhbF9tYXhfZGlzdGFuY2UYAiABKAI6AjEwEiIKEW9mZnNldF9z",
|
||||
"Y2FsZV9jb2VmGAMgASgCOgMwLjVCAhgBEhUKDXZvdGluZ19yYWRpdXMYBCAB",
|
||||
"KAUSGAoQdm90aW5nX2FsbG93YW5jZRgFIAEoBRIYChB2b3RpbmdfdGhyZXNo",
|
||||
"b2xkGAYgASgC"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.BeliefDecoderConfig), global::Mediapipe.BeliefDecoderConfig.Parser, new[]{ "HeatmapThreshold", "LocalMaxDistance", "OffsetScaleCoef", "VotingRadius", "VotingAllowance", "VotingThreshold" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class BeliefDecoderConfig : pb::IMessage<BeliefDecoderConfig>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<BeliefDecoderConfig> _parser = new pb::MessageParser<BeliefDecoderConfig>(() => new BeliefDecoderConfig());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<BeliefDecoderConfig> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.BeliefDecoderConfigReflection.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 BeliefDecoderConfig() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public BeliefDecoderConfig(BeliefDecoderConfig other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
heatmapThreshold_ = other.heatmapThreshold_;
|
||||
localMaxDistance_ = other.localMaxDistance_;
|
||||
offsetScaleCoef_ = other.offsetScaleCoef_;
|
||||
votingRadius_ = other.votingRadius_;
|
||||
votingAllowance_ = other.votingAllowance_;
|
||||
votingThreshold_ = other.votingThreshold_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public BeliefDecoderConfig Clone() {
|
||||
return new BeliefDecoderConfig(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "heatmap_threshold" field.</summary>
|
||||
public const int HeatmapThresholdFieldNumber = 1;
|
||||
private readonly static float HeatmapThresholdDefaultValue = 0.9F;
|
||||
|
||||
private float heatmapThreshold_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float HeatmapThreshold {
|
||||
get { if ((_hasBits0 & 1) != 0) { return heatmapThreshold_; } else { return HeatmapThresholdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
heatmapThreshold_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "heatmap_threshold" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasHeatmapThreshold {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "heatmap_threshold" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearHeatmapThreshold() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "local_max_distance" field.</summary>
|
||||
public const int LocalMaxDistanceFieldNumber = 2;
|
||||
private readonly static float LocalMaxDistanceDefaultValue = 10F;
|
||||
|
||||
private float localMaxDistance_;
|
||||
/// <summary>
|
||||
/// Maximum distance in pixels between two local max heatmap values.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float LocalMaxDistance {
|
||||
get { if ((_hasBits0 & 2) != 0) { return localMaxDistance_; } else { return LocalMaxDistanceDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
localMaxDistance_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "local_max_distance" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasLocalMaxDistance {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "local_max_distance" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearLocalMaxDistance() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "offset_scale_coef" field.</summary>
|
||||
public const int OffsetScaleCoefFieldNumber = 3;
|
||||
private readonly static float OffsetScaleCoefDefaultValue = 0.5F;
|
||||
|
||||
private float offsetScaleCoef_;
|
||||
/// <summary>
|
||||
/// Coefficient of offset_scale.
|
||||
/// offset_scale = offset_scale_coef * min(rows, cols).
|
||||
/// offset_scale is used to multiply the offset predictions from the network.
|
||||
/// </summary>
|
||||
[global::System.ObsoleteAttribute]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float OffsetScaleCoef {
|
||||
get { if ((_hasBits0 & 4) != 0) { return offsetScaleCoef_; } else { return OffsetScaleCoefDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
offsetScaleCoef_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "offset_scale_coef" field is set</summary>
|
||||
[global::System.ObsoleteAttribute]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasOffsetScaleCoef {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "offset_scale_coef" field</summary>
|
||||
[global::System.ObsoleteAttribute]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearOffsetScaleCoef() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "voting_radius" field.</summary>
|
||||
public const int VotingRadiusFieldNumber = 4;
|
||||
private readonly static int VotingRadiusDefaultValue = 0;
|
||||
|
||||
private int votingRadius_;
|
||||
/// <summary>
|
||||
/// The radius for vertex voting. Use no voting if the radius is less than or
|
||||
/// euqal to 1. Example: 10.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int VotingRadius {
|
||||
get { if ((_hasBits0 & 8) != 0) { return votingRadius_; } else { return VotingRadiusDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
votingRadius_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "voting_radius" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasVotingRadius {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "voting_radius" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearVotingRadius() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "voting_allowance" field.</summary>
|
||||
public const int VotingAllowanceFieldNumber = 5;
|
||||
private readonly static int VotingAllowanceDefaultValue = 0;
|
||||
|
||||
private int votingAllowance_;
|
||||
/// <summary>
|
||||
/// The number of pixels to determine whether two points are the same.
|
||||
/// Example: 5 (voting_radius / 2).
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int VotingAllowance {
|
||||
get { if ((_hasBits0 & 16) != 0) { return votingAllowance_; } else { return VotingAllowanceDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
votingAllowance_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "voting_allowance" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasVotingAllowance {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "voting_allowance" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearVotingAllowance() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "voting_threshold" field.</summary>
|
||||
public const int VotingThresholdFieldNumber = 6;
|
||||
private readonly static float VotingThresholdDefaultValue = 0F;
|
||||
|
||||
private float votingThreshold_;
|
||||
/// <summary>
|
||||
/// The threshold of beliefs, with which the points can vote. Example: 0.2.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float VotingThreshold {
|
||||
get { if ((_hasBits0 & 32) != 0) { return votingThreshold_; } else { return VotingThresholdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 32;
|
||||
votingThreshold_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "voting_threshold" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasVotingThreshold {
|
||||
get { return (_hasBits0 & 32) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "voting_threshold" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearVotingThreshold() {
|
||||
_hasBits0 &= ~32;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as BeliefDecoderConfig);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(BeliefDecoderConfig other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(HeatmapThreshold, other.HeatmapThreshold)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LocalMaxDistance, other.LocalMaxDistance)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OffsetScaleCoef, other.OffsetScaleCoef)) return false;
|
||||
if (VotingRadius != other.VotingRadius) return false;
|
||||
if (VotingAllowance != other.VotingAllowance) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(VotingThreshold, other.VotingThreshold)) 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 (HasHeatmapThreshold) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(HeatmapThreshold);
|
||||
if (HasLocalMaxDistance) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LocalMaxDistance);
|
||||
if (HasOffsetScaleCoef) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OffsetScaleCoef);
|
||||
if (HasVotingRadius) hash ^= VotingRadius.GetHashCode();
|
||||
if (HasVotingAllowance) hash ^= VotingAllowance.GetHashCode();
|
||||
if (HasVotingThreshold) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(VotingThreshold);
|
||||
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 (HasHeatmapThreshold) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(HeatmapThreshold);
|
||||
}
|
||||
if (HasLocalMaxDistance) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(LocalMaxDistance);
|
||||
}
|
||||
if (HasOffsetScaleCoef) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(OffsetScaleCoef);
|
||||
}
|
||||
if (HasVotingRadius) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteInt32(VotingRadius);
|
||||
}
|
||||
if (HasVotingAllowance) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteInt32(VotingAllowance);
|
||||
}
|
||||
if (HasVotingThreshold) {
|
||||
output.WriteRawTag(53);
|
||||
output.WriteFloat(VotingThreshold);
|
||||
}
|
||||
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 (HasHeatmapThreshold) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(HeatmapThreshold);
|
||||
}
|
||||
if (HasLocalMaxDistance) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(LocalMaxDistance);
|
||||
}
|
||||
if (HasOffsetScaleCoef) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(OffsetScaleCoef);
|
||||
}
|
||||
if (HasVotingRadius) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteInt32(VotingRadius);
|
||||
}
|
||||
if (HasVotingAllowance) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteInt32(VotingAllowance);
|
||||
}
|
||||
if (HasVotingThreshold) {
|
||||
output.WriteRawTag(53);
|
||||
output.WriteFloat(VotingThreshold);
|
||||
}
|
||||
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 (HasHeatmapThreshold) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasLocalMaxDistance) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasOffsetScaleCoef) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasVotingRadius) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(VotingRadius);
|
||||
}
|
||||
if (HasVotingAllowance) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(VotingAllowance);
|
||||
}
|
||||
if (HasVotingThreshold) {
|
||||
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(BeliefDecoderConfig other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasHeatmapThreshold) {
|
||||
HeatmapThreshold = other.HeatmapThreshold;
|
||||
}
|
||||
if (other.HasLocalMaxDistance) {
|
||||
LocalMaxDistance = other.LocalMaxDistance;
|
||||
}
|
||||
if (other.HasOffsetScaleCoef) {
|
||||
OffsetScaleCoef = other.OffsetScaleCoef;
|
||||
}
|
||||
if (other.HasVotingRadius) {
|
||||
VotingRadius = other.VotingRadius;
|
||||
}
|
||||
if (other.HasVotingAllowance) {
|
||||
VotingAllowance = other.VotingAllowance;
|
||||
}
|
||||
if (other.HasVotingThreshold) {
|
||||
VotingThreshold = other.VotingThreshold;
|
||||
}
|
||||
_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: {
|
||||
HeatmapThreshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
LocalMaxDistance = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
OffsetScaleCoef = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
VotingRadius = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
VotingAllowance = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 53: {
|
||||
VotingThreshold = 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: {
|
||||
HeatmapThreshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
LocalMaxDistance = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
OffsetScaleCoef = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
VotingRadius = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
VotingAllowance = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 53: {
|
||||
VotingThreshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c57c54bc05f78c9f790236220a85e6c8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,565 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/modules/objectron/calculators/camera_parameters.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/modules/objectron/calculators/camera_parameters.proto</summary>
|
||||
public static partial class CameraParametersReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/modules/objectron/calculators/camera_parameters.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static CameraParametersReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Cj9tZWRpYXBpcGUvbW9kdWxlcy9vYmplY3Ryb24vY2FsY3VsYXRvcnMvY2Ft",
|
||||
"ZXJhX3BhcmFtZXRlcnMucHJvdG8SCW1lZGlhcGlwZSLnAwoVQ2FtZXJhUGFy",
|
||||
"YW1ldGVyc1Byb3RvEiAKE2hlaWdodF9hYm92ZV9ncm91bmQYASABKAI6AzEw",
|
||||
"MBIeCg5wb3J0cmFpdF93aWR0aBgCIAEoAjoGMS4wMTAzEh8KD3BvcnRyYWl0",
|
||||
"X2hlaWdodBgDIAEoAjoGMS4zNDM1EmIKEWltYWdlX29yaWVudGF0aW9uGAQg",
|
||||
"ASgOMjEubWVkaWFwaXBlLkNhbWVyYVBhcmFtZXRlcnNQcm90by5JbWFnZU9y",
|
||||
"aWVudGF0aW9uOhRQT1JUUkFJVF9PUklFTlRBVElPThJWCg9wcm9qZWN0aW9u",
|
||||
"X21vZGUYBSABKA4yLy5tZWRpYXBpcGUuQ2FtZXJhUGFyYW1ldGVyc1Byb3Rv",
|
||||
"LlByb2plY3Rpb25Nb2RlOgxHUk9VTkRfUExBTkUSJQoYcHJvamVjdGlvbl9z",
|
||||
"cGhlcmVfcmFkaXVzGAYgASgCOgMxMDAiRwoQSW1hZ2VPcmllbnRhdGlvbhIY",
|
||||
"ChRQT1JUUkFJVF9PUklFTlRBVElPThAAEhkKFUxBTkRTQ0FQRV9PUklFTlRB",
|
||||
"VElPThABIj8KDlByb2plY3Rpb25Nb2RlEg8KC1VOU1BFQ0lGSUVEEAASEAoM",
|
||||
"R1JPVU5EX1BMQU5FEAESCgoGU1BIRVJFEAI="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.CameraParametersProto), global::Mediapipe.CameraParametersProto.Parser, new[]{ "HeightAboveGround", "PortraitWidth", "PortraitHeight", "ImageOrientation", "ProjectionMode", "ProjectionSphereRadius" }, null, new[]{ typeof(global::Mediapipe.CameraParametersProto.Types.ImageOrientation), typeof(global::Mediapipe.CameraParametersProto.Types.ProjectionMode) }, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class CameraParametersProto : pb::IMessage<CameraParametersProto>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<CameraParametersProto> _parser = new pb::MessageParser<CameraParametersProto>(() => new CameraParametersProto());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<CameraParametersProto> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.CameraParametersReflection.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 CameraParametersProto() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CameraParametersProto(CameraParametersProto other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
heightAboveGround_ = other.heightAboveGround_;
|
||||
portraitWidth_ = other.portraitWidth_;
|
||||
portraitHeight_ = other.portraitHeight_;
|
||||
imageOrientation_ = other.imageOrientation_;
|
||||
projectionMode_ = other.projectionMode_;
|
||||
projectionSphereRadius_ = other.projectionSphereRadius_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CameraParametersProto Clone() {
|
||||
return new CameraParametersProto(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "height_above_ground" field.</summary>
|
||||
public const int HeightAboveGroundFieldNumber = 1;
|
||||
private readonly static float HeightAboveGroundDefaultValue = 100F;
|
||||
|
||||
private float heightAboveGround_;
|
||||
/// <summary>
|
||||
/// This number is non-negative, it represents camera height above ground
|
||||
/// normalized by focal length.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float HeightAboveGround {
|
||||
get { if ((_hasBits0 & 1) != 0) { return heightAboveGround_; } else { return HeightAboveGroundDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
heightAboveGround_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "height_above_ground" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasHeightAboveGround {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "height_above_ground" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearHeightAboveGround() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "portrait_width" field.</summary>
|
||||
public const int PortraitWidthFieldNumber = 2;
|
||||
private readonly static float PortraitWidthDefaultValue = 1.0103F;
|
||||
|
||||
private float portraitWidth_;
|
||||
/// <summary>
|
||||
/// Width of image in portrait orientation normalized by focal length
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float PortraitWidth {
|
||||
get { if ((_hasBits0 & 2) != 0) { return portraitWidth_; } else { return PortraitWidthDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
portraitWidth_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "portrait_width" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasPortraitWidth {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "portrait_width" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearPortraitWidth() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "portrait_height" field.</summary>
|
||||
public const int PortraitHeightFieldNumber = 3;
|
||||
private readonly static float PortraitHeightDefaultValue = 1.3435F;
|
||||
|
||||
private float portraitHeight_;
|
||||
/// <summary>
|
||||
/// Height of image in portrait orientation normalized by focal length
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float PortraitHeight {
|
||||
get { if ((_hasBits0 & 4) != 0) { return portraitHeight_; } else { return PortraitHeightDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
portraitHeight_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "portrait_height" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasPortraitHeight {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "portrait_height" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearPortraitHeight() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "image_orientation" field.</summary>
|
||||
public const int ImageOrientationFieldNumber = 4;
|
||||
private readonly static global::Mediapipe.CameraParametersProto.Types.ImageOrientation ImageOrientationDefaultValue = global::Mediapipe.CameraParametersProto.Types.ImageOrientation.PortraitOrientation;
|
||||
|
||||
private global::Mediapipe.CameraParametersProto.Types.ImageOrientation imageOrientation_;
|
||||
/// <summary>
|
||||
/// The input image orientation
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.CameraParametersProto.Types.ImageOrientation ImageOrientation {
|
||||
get { if ((_hasBits0 & 8) != 0) { return imageOrientation_; } else { return ImageOrientationDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
imageOrientation_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "image_orientation" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasImageOrientation {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "image_orientation" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearImageOrientation() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "projection_mode" field.</summary>
|
||||
public const int ProjectionModeFieldNumber = 5;
|
||||
private readonly static global::Mediapipe.CameraParametersProto.Types.ProjectionMode ProjectionModeDefaultValue = global::Mediapipe.CameraParametersProto.Types.ProjectionMode.GroundPlane;
|
||||
|
||||
private global::Mediapipe.CameraParametersProto.Types.ProjectionMode projectionMode_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.CameraParametersProto.Types.ProjectionMode ProjectionMode {
|
||||
get { if ((_hasBits0 & 16) != 0) { return projectionMode_; } else { return ProjectionModeDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
projectionMode_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "projection_mode" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasProjectionMode {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "projection_mode" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearProjectionMode() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "projection_sphere_radius" field.</summary>
|
||||
public const int ProjectionSphereRadiusFieldNumber = 6;
|
||||
private readonly static float ProjectionSphereRadiusDefaultValue = 100F;
|
||||
|
||||
private float projectionSphereRadius_;
|
||||
/// <summary>
|
||||
/// Radius of sphere when using the SPHERE projection mode above.
|
||||
/// The value is normalized by focal length.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float ProjectionSphereRadius {
|
||||
get { if ((_hasBits0 & 32) != 0) { return projectionSphereRadius_; } else { return ProjectionSphereRadiusDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 32;
|
||||
projectionSphereRadius_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "projection_sphere_radius" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasProjectionSphereRadius {
|
||||
get { return (_hasBits0 & 32) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "projection_sphere_radius" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearProjectionSphereRadius() {
|
||||
_hasBits0 &= ~32;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as CameraParametersProto);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(CameraParametersProto other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(HeightAboveGround, other.HeightAboveGround)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PortraitWidth, other.PortraitWidth)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PortraitHeight, other.PortraitHeight)) return false;
|
||||
if (ImageOrientation != other.ImageOrientation) return false;
|
||||
if (ProjectionMode != other.ProjectionMode) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ProjectionSphereRadius, other.ProjectionSphereRadius)) 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 (HasHeightAboveGround) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(HeightAboveGround);
|
||||
if (HasPortraitWidth) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PortraitWidth);
|
||||
if (HasPortraitHeight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PortraitHeight);
|
||||
if (HasImageOrientation) hash ^= ImageOrientation.GetHashCode();
|
||||
if (HasProjectionMode) hash ^= ProjectionMode.GetHashCode();
|
||||
if (HasProjectionSphereRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ProjectionSphereRadius);
|
||||
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 (HasHeightAboveGround) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(HeightAboveGround);
|
||||
}
|
||||
if (HasPortraitWidth) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(PortraitWidth);
|
||||
}
|
||||
if (HasPortraitHeight) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(PortraitHeight);
|
||||
}
|
||||
if (HasImageOrientation) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteEnum((int) ImageOrientation);
|
||||
}
|
||||
if (HasProjectionMode) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteEnum((int) ProjectionMode);
|
||||
}
|
||||
if (HasProjectionSphereRadius) {
|
||||
output.WriteRawTag(53);
|
||||
output.WriteFloat(ProjectionSphereRadius);
|
||||
}
|
||||
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 (HasHeightAboveGround) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(HeightAboveGround);
|
||||
}
|
||||
if (HasPortraitWidth) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(PortraitWidth);
|
||||
}
|
||||
if (HasPortraitHeight) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(PortraitHeight);
|
||||
}
|
||||
if (HasImageOrientation) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteEnum((int) ImageOrientation);
|
||||
}
|
||||
if (HasProjectionMode) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteEnum((int) ProjectionMode);
|
||||
}
|
||||
if (HasProjectionSphereRadius) {
|
||||
output.WriteRawTag(53);
|
||||
output.WriteFloat(ProjectionSphereRadius);
|
||||
}
|
||||
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 (HasHeightAboveGround) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasPortraitWidth) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasPortraitHeight) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasImageOrientation) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ImageOrientation);
|
||||
}
|
||||
if (HasProjectionMode) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProjectionMode);
|
||||
}
|
||||
if (HasProjectionSphereRadius) {
|
||||
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(CameraParametersProto other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasHeightAboveGround) {
|
||||
HeightAboveGround = other.HeightAboveGround;
|
||||
}
|
||||
if (other.HasPortraitWidth) {
|
||||
PortraitWidth = other.PortraitWidth;
|
||||
}
|
||||
if (other.HasPortraitHeight) {
|
||||
PortraitHeight = other.PortraitHeight;
|
||||
}
|
||||
if (other.HasImageOrientation) {
|
||||
ImageOrientation = other.ImageOrientation;
|
||||
}
|
||||
if (other.HasProjectionMode) {
|
||||
ProjectionMode = other.ProjectionMode;
|
||||
}
|
||||
if (other.HasProjectionSphereRadius) {
|
||||
ProjectionSphereRadius = other.ProjectionSphereRadius;
|
||||
}
|
||||
_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: {
|
||||
HeightAboveGround = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
PortraitWidth = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
PortraitHeight = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
ImageOrientation = (global::Mediapipe.CameraParametersProto.Types.ImageOrientation) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
ProjectionMode = (global::Mediapipe.CameraParametersProto.Types.ProjectionMode) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 53: {
|
||||
ProjectionSphereRadius = 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: {
|
||||
HeightAboveGround = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
PortraitWidth = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
PortraitHeight = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
ImageOrientation = (global::Mediapipe.CameraParametersProto.Types.ImageOrientation) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
ProjectionMode = (global::Mediapipe.CameraParametersProto.Types.ProjectionMode) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 53: {
|
||||
ProjectionSphereRadius = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Nested types
|
||||
/// <summary>Container for nested types declared in the CameraParametersProto message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Types {
|
||||
public enum ImageOrientation {
|
||||
[pbr::OriginalName("PORTRAIT_ORIENTATION")] PortraitOrientation = 0,
|
||||
[pbr::OriginalName("LANDSCAPE_ORIENTATION")] LandscapeOrientation = 1,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This defines the projection method from 2D screen to 3D.
|
||||
/// </summary>
|
||||
public enum ProjectionMode {
|
||||
[pbr::OriginalName("UNSPECIFIED")] Unspecified = 0,
|
||||
/// <summary>
|
||||
/// Projects 2D point to ground plane (horizontal plane).
|
||||
/// </summary>
|
||||
[pbr::OriginalName("GROUND_PLANE")] GroundPlane = 1,
|
||||
/// <summary>
|
||||
/// Projects 2D point to sphere.
|
||||
/// </summary>
|
||||
[pbr::OriginalName("SPHERE")] Sphere = 2,
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 65114f967c1dc73d7a03428ebded1761
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,555 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/modules/objectron/calculators/filter_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/modules/objectron/calculators/filter_detection_calculator.proto</summary>
|
||||
public static partial class FilterDetectionCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/modules/objectron/calculators/filter_detection_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static FilterDetectionCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkltZWRpYXBpcGUvbW9kdWxlcy9vYmplY3Ryb24vY2FsY3VsYXRvcnMvZmls",
|
||||
"dGVyX2RldGVjdGlvbl9jYWxjdWxhdG9yLnByb3RvEgltZWRpYXBpcGUaJG1l",
|
||||
"ZGlhcGlwZS9mcmFtZXdvcmsvY2FsY3VsYXRvci5wcm90byLLAgogRmlsdGVy",
|
||||
"RGV0ZWN0aW9uQ2FsY3VsYXRvck9wdGlvbnMSEQoJbWluX3Njb3JlGAEgASgC",
|
||||
"EhEKCW1heF9zY29yZRgCIAEoAhIjChRmYWlsX29uX2VtcHR5X2xhYmVscxgD",
|
||||
"IAEoCDoFZmFsc2USOgorZW1wdHlfYWxsb3dlZF9sYWJlbHNfbWVhbnNfYWxs",
|
||||
"b3dfZXZlcnl0aGluZxgGIAEoCDoFZmFsc2USIAoUdXNlX2RldGVjdGlvbl92",
|
||||
"ZWN0b3IYBCABKAhCAhgBEiIKFnVzZV9hbGxvd2VkX2xhYmVsc19jc3YYBSAB",
|
||||
"KAhCAhgBMloKA2V4dBIcLm1lZGlhcGlwZS5DYWxjdWxhdG9yT3B0aW9ucxiL",
|
||||
"wPahASABKAsyKy5tZWRpYXBpcGUuRmlsdGVyRGV0ZWN0aW9uQ2FsY3VsYXRv",
|
||||
"ck9wdGlvbnM="));
|
||||
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.FilterDetectionCalculatorOptions), global::Mediapipe.FilterDetectionCalculatorOptions.Parser, new[]{ "MinScore", "MaxScore", "FailOnEmptyLabels", "EmptyAllowedLabelsMeansAllowEverything", "UseDetectionVector", "UseAllowedLabelsCsv" }, null, null, new pb::Extension[] { global::Mediapipe.FilterDetectionCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class FilterDetectionCalculatorOptions : pb::IMessage<FilterDetectionCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<FilterDetectionCalculatorOptions> _parser = new pb::MessageParser<FilterDetectionCalculatorOptions>(() => new FilterDetectionCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<FilterDetectionCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.FilterDetectionCalculatorReflection.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 FilterDetectionCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FilterDetectionCalculatorOptions(FilterDetectionCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
minScore_ = other.minScore_;
|
||||
maxScore_ = other.maxScore_;
|
||||
failOnEmptyLabels_ = other.failOnEmptyLabels_;
|
||||
emptyAllowedLabelsMeansAllowEverything_ = other.emptyAllowedLabelsMeansAllowEverything_;
|
||||
useDetectionVector_ = other.useDetectionVector_;
|
||||
useAllowedLabelsCsv_ = other.useAllowedLabelsCsv_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FilterDetectionCalculatorOptions Clone() {
|
||||
return new FilterDetectionCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "min_score" field.</summary>
|
||||
public const int MinScoreFieldNumber = 1;
|
||||
private readonly static float MinScoreDefaultValue = 0F;
|
||||
|
||||
private float minScore_;
|
||||
[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;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "max_score" field.</summary>
|
||||
public const int MaxScoreFieldNumber = 2;
|
||||
private readonly static float MaxScoreDefaultValue = 0F;
|
||||
|
||||
private float maxScore_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float MaxScore {
|
||||
get { if ((_hasBits0 & 2) != 0) { return maxScore_; } else { return MaxScoreDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
maxScore_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "max_score" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasMaxScore {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "max_score" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearMaxScore() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "fail_on_empty_labels" field.</summary>
|
||||
public const int FailOnEmptyLabelsFieldNumber = 3;
|
||||
private readonly static bool FailOnEmptyLabelsDefaultValue = false;
|
||||
|
||||
private bool failOnEmptyLabels_;
|
||||
/// <summary>
|
||||
/// Setting fail_on_empty_labels to true will cause the calculator to return a
|
||||
/// failure status on Open() if an empty list is provided on the external
|
||||
/// input, immediately terminating the graph run.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool FailOnEmptyLabels {
|
||||
get { if ((_hasBits0 & 4) != 0) { return failOnEmptyLabels_; } else { return FailOnEmptyLabelsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
failOnEmptyLabels_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "fail_on_empty_labels" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasFailOnEmptyLabels {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "fail_on_empty_labels" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearFailOnEmptyLabels() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "empty_allowed_labels_means_allow_everything" field.</summary>
|
||||
public const int EmptyAllowedLabelsMeansAllowEverythingFieldNumber = 6;
|
||||
private readonly static bool EmptyAllowedLabelsMeansAllowEverythingDefaultValue = false;
|
||||
|
||||
private bool emptyAllowedLabelsMeansAllowEverything_;
|
||||
/// <summary>
|
||||
/// If fail_on_empty_labels is set to false setting
|
||||
/// empty_allowed_labels_means_allow_everything to
|
||||
/// false will cause the calculator to close output stream and ignore remaining
|
||||
/// inputs if an empty list is provided. If
|
||||
/// empty_allowed_labels_means_allow_everything is set to true this will force
|
||||
/// calculator to pass all labels.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool EmptyAllowedLabelsMeansAllowEverything {
|
||||
get { if ((_hasBits0 & 32) != 0) { return emptyAllowedLabelsMeansAllowEverything_; } else { return EmptyAllowedLabelsMeansAllowEverythingDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 32;
|
||||
emptyAllowedLabelsMeansAllowEverything_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "empty_allowed_labels_means_allow_everything" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasEmptyAllowedLabelsMeansAllowEverything {
|
||||
get { return (_hasBits0 & 32) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "empty_allowed_labels_means_allow_everything" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearEmptyAllowedLabelsMeansAllowEverything() {
|
||||
_hasBits0 &= ~32;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "use_detection_vector" field.</summary>
|
||||
public const int UseDetectionVectorFieldNumber = 4;
|
||||
private readonly static bool UseDetectionVectorDefaultValue = false;
|
||||
|
||||
private bool useDetectionVector_;
|
||||
/// <summary>
|
||||
/// Determines whether the input format is a vector<Detection> (use-case object
|
||||
/// detectors) or Detection (use-case classifiers).
|
||||
/// </summary>
|
||||
[global::System.ObsoleteAttribute]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool UseDetectionVector {
|
||||
get { if ((_hasBits0 & 8) != 0) { return useDetectionVector_; } else { return UseDetectionVectorDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
useDetectionVector_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "use_detection_vector" field is set</summary>
|
||||
[global::System.ObsoleteAttribute]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasUseDetectionVector {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "use_detection_vector" field</summary>
|
||||
[global::System.ObsoleteAttribute]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearUseDetectionVector() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "use_allowed_labels_csv" field.</summary>
|
||||
public const int UseAllowedLabelsCsvFieldNumber = 5;
|
||||
private readonly static bool UseAllowedLabelsCsvDefaultValue = false;
|
||||
|
||||
private bool useAllowedLabelsCsv_;
|
||||
/// <summary>
|
||||
/// Determines whether the input side packet format is a vector of labels, or
|
||||
/// a string with comma separated labels.
|
||||
/// </summary>
|
||||
[global::System.ObsoleteAttribute]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool UseAllowedLabelsCsv {
|
||||
get { if ((_hasBits0 & 16) != 0) { return useAllowedLabelsCsv_; } else { return UseAllowedLabelsCsvDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
useAllowedLabelsCsv_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "use_allowed_labels_csv" field is set</summary>
|
||||
[global::System.ObsoleteAttribute]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasUseAllowedLabelsCsv {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "use_allowed_labels_csv" field</summary>
|
||||
[global::System.ObsoleteAttribute]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearUseAllowedLabelsCsv() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as FilterDetectionCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(FilterDetectionCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MinScore, other.MinScore)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MaxScore, other.MaxScore)) return false;
|
||||
if (FailOnEmptyLabels != other.FailOnEmptyLabels) return false;
|
||||
if (EmptyAllowedLabelsMeansAllowEverything != other.EmptyAllowedLabelsMeansAllowEverything) return false;
|
||||
if (UseDetectionVector != other.UseDetectionVector) return false;
|
||||
if (UseAllowedLabelsCsv != other.UseAllowedLabelsCsv) 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 (HasMaxScore) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MaxScore);
|
||||
if (HasFailOnEmptyLabels) hash ^= FailOnEmptyLabels.GetHashCode();
|
||||
if (HasEmptyAllowedLabelsMeansAllowEverything) hash ^= EmptyAllowedLabelsMeansAllowEverything.GetHashCode();
|
||||
if (HasUseDetectionVector) hash ^= UseDetectionVector.GetHashCode();
|
||||
if (HasUseAllowedLabelsCsv) hash ^= UseAllowedLabelsCsv.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 (HasMinScore) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(MinScore);
|
||||
}
|
||||
if (HasMaxScore) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(MaxScore);
|
||||
}
|
||||
if (HasFailOnEmptyLabels) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(FailOnEmptyLabels);
|
||||
}
|
||||
if (HasUseDetectionVector) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteBool(UseDetectionVector);
|
||||
}
|
||||
if (HasUseAllowedLabelsCsv) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(UseAllowedLabelsCsv);
|
||||
}
|
||||
if (HasEmptyAllowedLabelsMeansAllowEverything) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteBool(EmptyAllowedLabelsMeansAllowEverything);
|
||||
}
|
||||
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 (HasMaxScore) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(MaxScore);
|
||||
}
|
||||
if (HasFailOnEmptyLabels) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(FailOnEmptyLabels);
|
||||
}
|
||||
if (HasUseDetectionVector) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteBool(UseDetectionVector);
|
||||
}
|
||||
if (HasUseAllowedLabelsCsv) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(UseAllowedLabelsCsv);
|
||||
}
|
||||
if (HasEmptyAllowedLabelsMeansAllowEverything) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteBool(EmptyAllowedLabelsMeansAllowEverything);
|
||||
}
|
||||
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 (HasMaxScore) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasFailOnEmptyLabels) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasEmptyAllowedLabelsMeansAllowEverything) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasUseDetectionVector) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasUseAllowedLabelsCsv) {
|
||||
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(FilterDetectionCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasMinScore) {
|
||||
MinScore = other.MinScore;
|
||||
}
|
||||
if (other.HasMaxScore) {
|
||||
MaxScore = other.MaxScore;
|
||||
}
|
||||
if (other.HasFailOnEmptyLabels) {
|
||||
FailOnEmptyLabels = other.FailOnEmptyLabels;
|
||||
}
|
||||
if (other.HasEmptyAllowedLabelsMeansAllowEverything) {
|
||||
EmptyAllowedLabelsMeansAllowEverything = other.EmptyAllowedLabelsMeansAllowEverything;
|
||||
}
|
||||
if (other.HasUseDetectionVector) {
|
||||
UseDetectionVector = other.UseDetectionVector;
|
||||
}
|
||||
if (other.HasUseAllowedLabelsCsv) {
|
||||
UseAllowedLabelsCsv = other.UseAllowedLabelsCsv;
|
||||
}
|
||||
_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;
|
||||
}
|
||||
case 21: {
|
||||
MaxScore = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
FailOnEmptyLabels = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
UseDetectionVector = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
UseAllowedLabelsCsv = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
EmptyAllowedLabelsMeansAllowEverything = 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: {
|
||||
MinScore = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
MaxScore = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
FailOnEmptyLabels = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
UseDetectionVector = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
UseAllowedLabelsCsv = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
EmptyAllowedLabelsMeansAllowEverything = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the FilterDetectionCalculatorOptions 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.FilterDetectionCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.FilterDetectionCalculatorOptions>(339582987, pb::FieldCodec.ForMessage(2716663898, global::Mediapipe.FilterDetectionCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2e306cfd433010aeb93bd632be6327bb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,324 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/modules/objectron/calculators/frame_annotation_to_rect_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/modules/objectron/calculators/frame_annotation_to_rect_calculator.proto</summary>
|
||||
public static partial class FrameAnnotationToRectCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/modules/objectron/calculators/frame_annotation_to_rect_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static FrameAnnotationToRectCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"ClFtZWRpYXBpcGUvbW9kdWxlcy9vYmplY3Ryb24vY2FsY3VsYXRvcnMvZnJh",
|
||||
"bWVfYW5ub3RhdGlvbl90b19yZWN0X2NhbGN1bGF0b3IucHJvdG8SCW1lZGlh",
|
||||
"cGlwZRokbWVkaWFwaXBlL2ZyYW1ld29yay9jYWxjdWxhdG9yLnByb3RvIr8B",
|
||||
"CiZGcmFtZUFubm90YXRpb25Ub1JlY3RDYWxjdWxhdG9yT3B0aW9ucxIZCg1v",
|
||||
"ZmZfdGhyZXNob2xkGAEgASgCOgI0MBIYCgxvbl90aHJlc2hvbGQYAiABKAI6",
|
||||
"AjQxMmAKA2V4dBIcLm1lZGlhcGlwZS5DYWxjdWxhdG9yT3B0aW9ucxibk52h",
|
||||
"ASABKAsyMS5tZWRpYXBpcGUuRnJhbWVBbm5vdGF0aW9uVG9SZWN0Q2FsY3Vs",
|
||||
"YXRvck9wdGlvbnM="));
|
||||
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.FrameAnnotationToRectCalculatorOptions), global::Mediapipe.FrameAnnotationToRectCalculatorOptions.Parser, new[]{ "OffThreshold", "OnThreshold" }, null, null, new pb::Extension[] { global::Mediapipe.FrameAnnotationToRectCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class FrameAnnotationToRectCalculatorOptions : pb::IMessage<FrameAnnotationToRectCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<FrameAnnotationToRectCalculatorOptions> _parser = new pb::MessageParser<FrameAnnotationToRectCalculatorOptions>(() => new FrameAnnotationToRectCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<FrameAnnotationToRectCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.FrameAnnotationToRectCalculatorReflection.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 FrameAnnotationToRectCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FrameAnnotationToRectCalculatorOptions(FrameAnnotationToRectCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
offThreshold_ = other.offThreshold_;
|
||||
onThreshold_ = other.onThreshold_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FrameAnnotationToRectCalculatorOptions Clone() {
|
||||
return new FrameAnnotationToRectCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "off_threshold" field.</summary>
|
||||
public const int OffThresholdFieldNumber = 1;
|
||||
private readonly static float OffThresholdDefaultValue = 40F;
|
||||
|
||||
private float offThreshold_;
|
||||
/// <summary>
|
||||
/// The threshold to use when top-view is off,to enable hysteresis,
|
||||
/// It's required that off_threshold <= on_threshold.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float OffThreshold {
|
||||
get { if ((_hasBits0 & 1) != 0) { return offThreshold_; } else { return OffThresholdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
offThreshold_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "off_threshold" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasOffThreshold {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "off_threshold" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearOffThreshold() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "on_threshold" field.</summary>
|
||||
public const int OnThresholdFieldNumber = 2;
|
||||
private readonly static float OnThresholdDefaultValue = 41F;
|
||||
|
||||
private float onThreshold_;
|
||||
/// <summary>
|
||||
/// The threshold to use when top-view is on.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float OnThreshold {
|
||||
get { if ((_hasBits0 & 2) != 0) { return onThreshold_; } else { return OnThresholdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
onThreshold_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "on_threshold" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasOnThreshold {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "on_threshold" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearOnThreshold() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as FrameAnnotationToRectCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(FrameAnnotationToRectCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OffThreshold, other.OffThreshold)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OnThreshold, other.OnThreshold)) 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 (HasOffThreshold) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OffThreshold);
|
||||
if (HasOnThreshold) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OnThreshold);
|
||||
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 (HasOffThreshold) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(OffThreshold);
|
||||
}
|
||||
if (HasOnThreshold) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(OnThreshold);
|
||||
}
|
||||
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 (HasOffThreshold) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(OffThreshold);
|
||||
}
|
||||
if (HasOnThreshold) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(OnThreshold);
|
||||
}
|
||||
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 (HasOffThreshold) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasOnThreshold) {
|
||||
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(FrameAnnotationToRectCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasOffThreshold) {
|
||||
OffThreshold = other.OffThreshold;
|
||||
}
|
||||
if (other.HasOnThreshold) {
|
||||
OnThreshold = other.OnThreshold;
|
||||
}
|
||||
_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: {
|
||||
OffThreshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
OnThreshold = 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: {
|
||||
OffThreshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
OnThreshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the FrameAnnotationToRectCalculatorOptions 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.FrameAnnotationToRectCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.FrameAnnotationToRectCalculatorOptions>(338119067, pb::FieldCodec.ForMessage(2704952538, global::Mediapipe.FrameAnnotationToRectCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 47be4445b6a5eb6bc80d708f90468e2d
|
||||
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/modules/objectron/calculators/frame_annotation_tracker_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/modules/objectron/calculators/frame_annotation_tracker_calculator.proto</summary>
|
||||
public static partial class FrameAnnotationTrackerCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/modules/objectron/calculators/frame_annotation_tracker_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static FrameAnnotationTrackerCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"ClFtZWRpYXBpcGUvbW9kdWxlcy9vYmplY3Ryb24vY2FsY3VsYXRvcnMvZnJh",
|
||||
"bWVfYW5ub3RhdGlvbl90cmFja2VyX2NhbGN1bGF0b3IucHJvdG8SCW1lZGlh",
|
||||
"cGlwZRokbWVkaWFwaXBlL2ZyYW1ld29yay9jYWxjdWxhdG9yLnByb3RvIs8B",
|
||||
"CidGcmFtZUFubm90YXRpb25UcmFja2VyQ2FsY3VsYXRvck9wdGlvbnMSGgoN",
|
||||
"aW91X3RocmVzaG9sZBgBIAEoAjoDMC41EhEKCWltZ193aWR0aBgCIAEoAhIS",
|
||||
"CgppbWdfaGVpZ2h0GAMgASgCMmEKA2V4dBIcLm1lZGlhcGlwZS5DYWxjdWxh",
|
||||
"dG9yT3B0aW9ucxj1gPOKASABKAsyMi5tZWRpYXBpcGUuRnJhbWVBbm5vdGF0",
|
||||
"aW9uVHJhY2tlckNhbGN1bGF0b3JPcHRpb25z"));
|
||||
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.FrameAnnotationTrackerCalculatorOptions), global::Mediapipe.FrameAnnotationTrackerCalculatorOptions.Parser, new[]{ "IouThreshold", "ImgWidth", "ImgHeight" }, null, null, new pb::Extension[] { global::Mediapipe.FrameAnnotationTrackerCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class FrameAnnotationTrackerCalculatorOptions : pb::IMessage<FrameAnnotationTrackerCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<FrameAnnotationTrackerCalculatorOptions> _parser = new pb::MessageParser<FrameAnnotationTrackerCalculatorOptions>(() => new FrameAnnotationTrackerCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<FrameAnnotationTrackerCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.FrameAnnotationTrackerCalculatorReflection.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 FrameAnnotationTrackerCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FrameAnnotationTrackerCalculatorOptions(FrameAnnotationTrackerCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
iouThreshold_ = other.iouThreshold_;
|
||||
imgWidth_ = other.imgWidth_;
|
||||
imgHeight_ = other.imgHeight_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public FrameAnnotationTrackerCalculatorOptions Clone() {
|
||||
return new FrameAnnotationTrackerCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "iou_threshold" field.</summary>
|
||||
public const int IouThresholdFieldNumber = 1;
|
||||
private readonly static float IouThresholdDefaultValue = 0.5F;
|
||||
|
||||
private float iouThreshold_;
|
||||
/// <summary>
|
||||
/// The threshold on intersection-over-union (IoU). We consider
|
||||
/// boxes with IoU larger than this threshold to be the duplicates.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float IouThreshold {
|
||||
get { if ((_hasBits0 & 1) != 0) { return iouThreshold_; } else { return IouThresholdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
iouThreshold_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "iou_threshold" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasIouThreshold {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "iou_threshold" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearIouThreshold() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "img_width" field.</summary>
|
||||
public const int ImgWidthFieldNumber = 2;
|
||||
private readonly static float ImgWidthDefaultValue = 0F;
|
||||
|
||||
private float imgWidth_;
|
||||
/// <summary>
|
||||
/// We need image dimension to properly compute annotation locations.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float ImgWidth {
|
||||
get { if ((_hasBits0 & 2) != 0) { return imgWidth_; } else { return ImgWidthDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
imgWidth_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "img_width" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasImgWidth {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "img_width" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearImgWidth() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "img_height" field.</summary>
|
||||
public const int ImgHeightFieldNumber = 3;
|
||||
private readonly static float ImgHeightDefaultValue = 0F;
|
||||
|
||||
private float imgHeight_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float ImgHeight {
|
||||
get { if ((_hasBits0 & 4) != 0) { return imgHeight_; } else { return ImgHeightDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
imgHeight_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "img_height" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasImgHeight {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "img_height" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearImgHeight() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as FrameAnnotationTrackerCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(FrameAnnotationTrackerCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(IouThreshold, other.IouThreshold)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ImgWidth, other.ImgWidth)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ImgHeight, other.ImgHeight)) 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 (HasIouThreshold) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(IouThreshold);
|
||||
if (HasImgWidth) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ImgWidth);
|
||||
if (HasImgHeight) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ImgHeight);
|
||||
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 (HasIouThreshold) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(IouThreshold);
|
||||
}
|
||||
if (HasImgWidth) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(ImgWidth);
|
||||
}
|
||||
if (HasImgHeight) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(ImgHeight);
|
||||
}
|
||||
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 (HasIouThreshold) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(IouThreshold);
|
||||
}
|
||||
if (HasImgWidth) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(ImgWidth);
|
||||
}
|
||||
if (HasImgHeight) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(ImgHeight);
|
||||
}
|
||||
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 (HasIouThreshold) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasImgWidth) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasImgHeight) {
|
||||
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(FrameAnnotationTrackerCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasIouThreshold) {
|
||||
IouThreshold = other.IouThreshold;
|
||||
}
|
||||
if (other.HasImgWidth) {
|
||||
ImgWidth = other.ImgWidth;
|
||||
}
|
||||
if (other.HasImgHeight) {
|
||||
ImgHeight = other.ImgHeight;
|
||||
}
|
||||
_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: {
|
||||
IouThreshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
ImgWidth = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
ImgHeight = 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: {
|
||||
IouThreshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
ImgWidth = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
ImgHeight = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the FrameAnnotationTrackerCalculatorOptions 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.FrameAnnotationTrackerCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.FrameAnnotationTrackerCalculatorOptions>(291291253, pb::FieldCodec.ForMessage(2330330026, global::Mediapipe.FrameAnnotationTrackerCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b6a2481a2315da5ebbe78e323ee91b2b
|
||||
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/modules/objectron/calculators/lift_2d_frame_annotation_to_3d_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/modules/objectron/calculators/lift_2d_frame_annotation_to_3d_calculator.proto</summary>
|
||||
public static partial class Lift2DFrameAnnotationTo3DCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/modules/objectron/calculators/lift_2d_frame_annotation_to_3d_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static Lift2DFrameAnnotationTo3DCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CldtZWRpYXBpcGUvbW9kdWxlcy9vYmplY3Ryb24vY2FsY3VsYXRvcnMvbGlm",
|
||||
"dF8yZF9mcmFtZV9hbm5vdGF0aW9uX3RvXzNkX2NhbGN1bGF0b3IucHJvdG8S",
|
||||
"CW1lZGlhcGlwZRokbWVkaWFwaXBlL2ZyYW1ld29yay9jYWxjdWxhdG9yLnBy",
|
||||
"b3RvGkNtZWRpYXBpcGUvbW9kdWxlcy9vYmplY3Ryb24vY2FsY3VsYXRvcnMv",
|
||||
"YmVsaWVmX2RlY29kZXJfY29uZmlnLnByb3RvItoCCipMaWZ0MkRGcmFtZUFu",
|
||||
"bm90YXRpb25UbzNEQ2FsY3VsYXRvck9wdGlvbnMSNgoOZGVjb2Rlcl9jb25m",
|
||||
"aWcYASABKAsyHi5tZWRpYXBpcGUuQmVsaWVmRGVjb2RlckNvbmZpZxIdChJu",
|
||||
"b3JtYWxpemVkX2ZvY2FsX3gYAiABKAI6ATESHQoSbm9ybWFsaXplZF9mb2Nh",
|
||||
"bF95GAMgASgCOgExEicKHG5vcm1hbGl6ZWRfcHJpbmNpcGFsX3BvaW50X3gY",
|
||||
"BCABKAI6ATASJwocbm9ybWFsaXplZF9wcmluY2lwYWxfcG9pbnRfeRgFIAEo",
|
||||
"AjoBMDJkCgNleHQSHC5tZWRpYXBpcGUuQ2FsY3VsYXRvck9wdGlvbnMYjKyu",
|
||||
"igEgASgLMjUubWVkaWFwaXBlLkxpZnQyREZyYW1lQW5ub3RhdGlvblRvM0RD",
|
||||
"YWxjdWxhdG9yT3B0aW9ucw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, global::Mediapipe.BeliefDecoderConfigReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.Lift2DFrameAnnotationTo3DCalculatorOptions), global::Mediapipe.Lift2DFrameAnnotationTo3DCalculatorOptions.Parser, new[]{ "DecoderConfig", "NormalizedFocalX", "NormalizedFocalY", "NormalizedPrincipalPointX", "NormalizedPrincipalPointY" }, null, null, new pb::Extension[] { global::Mediapipe.Lift2DFrameAnnotationTo3DCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class Lift2DFrameAnnotationTo3DCalculatorOptions : pb::IMessage<Lift2DFrameAnnotationTo3DCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<Lift2DFrameAnnotationTo3DCalculatorOptions> _parser = new pb::MessageParser<Lift2DFrameAnnotationTo3DCalculatorOptions>(() => new Lift2DFrameAnnotationTo3DCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<Lift2DFrameAnnotationTo3DCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.Lift2DFrameAnnotationTo3DCalculatorReflection.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 Lift2DFrameAnnotationTo3DCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Lift2DFrameAnnotationTo3DCalculatorOptions(Lift2DFrameAnnotationTo3DCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
decoderConfig_ = other.decoderConfig_ != null ? other.decoderConfig_.Clone() : null;
|
||||
normalizedFocalX_ = other.normalizedFocalX_;
|
||||
normalizedFocalY_ = other.normalizedFocalY_;
|
||||
normalizedPrincipalPointX_ = other.normalizedPrincipalPointX_;
|
||||
normalizedPrincipalPointY_ = other.normalizedPrincipalPointY_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Lift2DFrameAnnotationTo3DCalculatorOptions Clone() {
|
||||
return new Lift2DFrameAnnotationTo3DCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "decoder_config" field.</summary>
|
||||
public const int DecoderConfigFieldNumber = 1;
|
||||
private global::Mediapipe.BeliefDecoderConfig decoderConfig_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.BeliefDecoderConfig DecoderConfig {
|
||||
get { return decoderConfig_; }
|
||||
set {
|
||||
decoderConfig_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "normalized_focal_x" field.</summary>
|
||||
public const int NormalizedFocalXFieldNumber = 2;
|
||||
private readonly static float NormalizedFocalXDefaultValue = 1F;
|
||||
|
||||
private float normalizedFocalX_;
|
||||
/// <summary>
|
||||
/// Camera focal length along x, normalized by width/2.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float NormalizedFocalX {
|
||||
get { if ((_hasBits0 & 1) != 0) { return normalizedFocalX_; } else { return NormalizedFocalXDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
normalizedFocalX_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "normalized_focal_x" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNormalizedFocalX {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "normalized_focal_x" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNormalizedFocalX() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "normalized_focal_y" field.</summary>
|
||||
public const int NormalizedFocalYFieldNumber = 3;
|
||||
private readonly static float NormalizedFocalYDefaultValue = 1F;
|
||||
|
||||
private float normalizedFocalY_;
|
||||
/// <summary>
|
||||
/// Camera focal length along y, normalized by height/2.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float NormalizedFocalY {
|
||||
get { if ((_hasBits0 & 2) != 0) { return normalizedFocalY_; } else { return NormalizedFocalYDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
normalizedFocalY_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "normalized_focal_y" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNormalizedFocalY {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "normalized_focal_y" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNormalizedFocalY() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "normalized_principal_point_x" field.</summary>
|
||||
public const int NormalizedPrincipalPointXFieldNumber = 4;
|
||||
private readonly static float NormalizedPrincipalPointXDefaultValue = 0F;
|
||||
|
||||
private float normalizedPrincipalPointX_;
|
||||
/// <summary>
|
||||
/// Camera principle point x, normalized by width/2, origin is image center.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float NormalizedPrincipalPointX {
|
||||
get { if ((_hasBits0 & 4) != 0) { return normalizedPrincipalPointX_; } else { return NormalizedPrincipalPointXDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
normalizedPrincipalPointX_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "normalized_principal_point_x" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNormalizedPrincipalPointX {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "normalized_principal_point_x" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNormalizedPrincipalPointX() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "normalized_principal_point_y" field.</summary>
|
||||
public const int NormalizedPrincipalPointYFieldNumber = 5;
|
||||
private readonly static float NormalizedPrincipalPointYDefaultValue = 0F;
|
||||
|
||||
private float normalizedPrincipalPointY_;
|
||||
/// <summary>
|
||||
/// Camera principle point y, normalized by height/2, origin is image center.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float NormalizedPrincipalPointY {
|
||||
get { if ((_hasBits0 & 8) != 0) { return normalizedPrincipalPointY_; } else { return NormalizedPrincipalPointYDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
normalizedPrincipalPointY_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "normalized_principal_point_y" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNormalizedPrincipalPointY {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "normalized_principal_point_y" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNormalizedPrincipalPointY() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Lift2DFrameAnnotationTo3DCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(Lift2DFrameAnnotationTo3DCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(DecoderConfig, other.DecoderConfig)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NormalizedFocalX, other.NormalizedFocalX)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NormalizedFocalY, other.NormalizedFocalY)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NormalizedPrincipalPointX, other.NormalizedPrincipalPointX)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NormalizedPrincipalPointY, other.NormalizedPrincipalPointY)) 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 (decoderConfig_ != null) hash ^= DecoderConfig.GetHashCode();
|
||||
if (HasNormalizedFocalX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NormalizedFocalX);
|
||||
if (HasNormalizedFocalY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NormalizedFocalY);
|
||||
if (HasNormalizedPrincipalPointX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NormalizedPrincipalPointX);
|
||||
if (HasNormalizedPrincipalPointY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NormalizedPrincipalPointY);
|
||||
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 (decoderConfig_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(DecoderConfig);
|
||||
}
|
||||
if (HasNormalizedFocalX) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(NormalizedFocalX);
|
||||
}
|
||||
if (HasNormalizedFocalY) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(NormalizedFocalY);
|
||||
}
|
||||
if (HasNormalizedPrincipalPointX) {
|
||||
output.WriteRawTag(37);
|
||||
output.WriteFloat(NormalizedPrincipalPointX);
|
||||
}
|
||||
if (HasNormalizedPrincipalPointY) {
|
||||
output.WriteRawTag(45);
|
||||
output.WriteFloat(NormalizedPrincipalPointY);
|
||||
}
|
||||
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 (decoderConfig_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(DecoderConfig);
|
||||
}
|
||||
if (HasNormalizedFocalX) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(NormalizedFocalX);
|
||||
}
|
||||
if (HasNormalizedFocalY) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(NormalizedFocalY);
|
||||
}
|
||||
if (HasNormalizedPrincipalPointX) {
|
||||
output.WriteRawTag(37);
|
||||
output.WriteFloat(NormalizedPrincipalPointX);
|
||||
}
|
||||
if (HasNormalizedPrincipalPointY) {
|
||||
output.WriteRawTag(45);
|
||||
output.WriteFloat(NormalizedPrincipalPointY);
|
||||
}
|
||||
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 (decoderConfig_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(DecoderConfig);
|
||||
}
|
||||
if (HasNormalizedFocalX) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasNormalizedFocalY) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasNormalizedPrincipalPointX) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasNormalizedPrincipalPointY) {
|
||||
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(Lift2DFrameAnnotationTo3DCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.decoderConfig_ != null) {
|
||||
if (decoderConfig_ == null) {
|
||||
DecoderConfig = new global::Mediapipe.BeliefDecoderConfig();
|
||||
}
|
||||
DecoderConfig.MergeFrom(other.DecoderConfig);
|
||||
}
|
||||
if (other.HasNormalizedFocalX) {
|
||||
NormalizedFocalX = other.NormalizedFocalX;
|
||||
}
|
||||
if (other.HasNormalizedFocalY) {
|
||||
NormalizedFocalY = other.NormalizedFocalY;
|
||||
}
|
||||
if (other.HasNormalizedPrincipalPointX) {
|
||||
NormalizedPrincipalPointX = other.NormalizedPrincipalPointX;
|
||||
}
|
||||
if (other.HasNormalizedPrincipalPointY) {
|
||||
NormalizedPrincipalPointY = other.NormalizedPrincipalPointY;
|
||||
}
|
||||
_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 (decoderConfig_ == null) {
|
||||
DecoderConfig = new global::Mediapipe.BeliefDecoderConfig();
|
||||
}
|
||||
input.ReadMessage(DecoderConfig);
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
NormalizedFocalX = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
NormalizedFocalY = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 37: {
|
||||
NormalizedPrincipalPointX = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 45: {
|
||||
NormalizedPrincipalPointY = 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 10: {
|
||||
if (decoderConfig_ == null) {
|
||||
DecoderConfig = new global::Mediapipe.BeliefDecoderConfig();
|
||||
}
|
||||
input.ReadMessage(DecoderConfig);
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
NormalizedFocalX = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
NormalizedFocalY = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 37: {
|
||||
NormalizedPrincipalPointX = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 45: {
|
||||
NormalizedPrincipalPointY = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the Lift2DFrameAnnotationTo3DCalculatorOptions 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.Lift2DFrameAnnotationTo3DCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.Lift2DFrameAnnotationTo3DCalculatorOptions>(290166284, pb::FieldCodec.ForMessage(2321330274, global::Mediapipe.Lift2DFrameAnnotationTo3DCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cad26e2330ecd4db7b2603dd479b843e
|
||||
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: d7e192bd63a9aefc4818216dbcd906fa
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,428 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/modules/objectron/calculators/tensors_to_objects_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/modules/objectron/calculators/tensors_to_objects_calculator.proto</summary>
|
||||
public static partial class TensorsToObjectsCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/modules/objectron/calculators/tensors_to_objects_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static TensorsToObjectsCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkttZWRpYXBpcGUvbW9kdWxlcy9vYmplY3Ryb24vY2FsY3VsYXRvcnMvdGVu",
|
||||
"c29yc190b19vYmplY3RzX2NhbGN1bGF0b3IucHJvdG8SCW1lZGlhcGlwZRok",
|
||||
"bWVkaWFwaXBlL2ZyYW1ld29yay9jYWxjdWxhdG9yLnByb3RvGkNtZWRpYXBp",
|
||||
"cGUvbW9kdWxlcy9vYmplY3Ryb24vY2FsY3VsYXRvcnMvYmVsaWVmX2RlY29k",
|
||||
"ZXJfY29uZmlnLnByb3RvIogCCiFUZW5zb3JzVG9PYmplY3RzQ2FsY3VsYXRv",
|
||||
"ck9wdGlvbnMSEwoLbnVtX2NsYXNzZXMYASABKAUSFQoNbnVtX2tleXBvaW50",
|
||||
"cxgCIAEoBRIiChdudW1fdmFsdWVzX3Blcl9rZXlwb2ludBgDIAEoBToBMhI2",
|
||||
"Cg5kZWNvZGVyX2NvbmZpZxgEIAEoCzIeLm1lZGlhcGlwZS5CZWxpZWZEZWNv",
|
||||
"ZGVyQ29uZmlnMlsKA2V4dBIcLm1lZGlhcGlwZS5DYWxjdWxhdG9yT3B0aW9u",
|
||||
"cxjU6refASABKAsyLC5tZWRpYXBpcGUuVGVuc29yc1RvT2JqZWN0c0NhbGN1",
|
||||
"bGF0b3JPcHRpb25z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, global::Mediapipe.BeliefDecoderConfigReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.TensorsToObjectsCalculatorOptions), global::Mediapipe.TensorsToObjectsCalculatorOptions.Parser, new[]{ "NumClasses", "NumKeypoints", "NumValuesPerKeypoint", "DecoderConfig" }, null, null, new pb::Extension[] { global::Mediapipe.TensorsToObjectsCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class TensorsToObjectsCalculatorOptions : pb::IMessage<TensorsToObjectsCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<TensorsToObjectsCalculatorOptions> _parser = new pb::MessageParser<TensorsToObjectsCalculatorOptions>(() => new TensorsToObjectsCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<TensorsToObjectsCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.TensorsToObjectsCalculatorReflection.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 TensorsToObjectsCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TensorsToObjectsCalculatorOptions(TensorsToObjectsCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
numClasses_ = other.numClasses_;
|
||||
numKeypoints_ = other.numKeypoints_;
|
||||
numValuesPerKeypoint_ = other.numValuesPerKeypoint_;
|
||||
decoderConfig_ = other.decoderConfig_ != null ? other.decoderConfig_.Clone() : null;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TensorsToObjectsCalculatorOptions Clone() {
|
||||
return new TensorsToObjectsCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "num_classes" field.</summary>
|
||||
public const int NumClassesFieldNumber = 1;
|
||||
private readonly static int NumClassesDefaultValue = 0;
|
||||
|
||||
private int numClasses_;
|
||||
/// <summary>
|
||||
/// The number of output classes predicted by the detection model.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int NumClasses {
|
||||
get { if ((_hasBits0 & 1) != 0) { return numClasses_; } else { return NumClassesDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
numClasses_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "num_classes" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNumClasses {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "num_classes" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNumClasses() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "num_keypoints" field.</summary>
|
||||
public const int NumKeypointsFieldNumber = 2;
|
||||
private readonly static int NumKeypointsDefaultValue = 0;
|
||||
|
||||
private int numKeypoints_;
|
||||
/// <summary>
|
||||
/// The number of predicted keypoints.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int NumKeypoints {
|
||||
get { if ((_hasBits0 & 2) != 0) { return numKeypoints_; } else { return NumKeypointsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
numKeypoints_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "num_keypoints" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNumKeypoints {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "num_keypoints" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNumKeypoints() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "num_values_per_keypoint" field.</summary>
|
||||
public const int NumValuesPerKeypointFieldNumber = 3;
|
||||
private readonly static int NumValuesPerKeypointDefaultValue = 2;
|
||||
|
||||
private int numValuesPerKeypoint_;
|
||||
/// <summary>
|
||||
/// The dimension of each keypoint, e.g. number of values predicted for each
|
||||
/// keypoint.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int NumValuesPerKeypoint {
|
||||
get { if ((_hasBits0 & 4) != 0) { return numValuesPerKeypoint_; } else { return NumValuesPerKeypointDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
numValuesPerKeypoint_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "num_values_per_keypoint" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNumValuesPerKeypoint {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "num_values_per_keypoint" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNumValuesPerKeypoint() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "decoder_config" field.</summary>
|
||||
public const int DecoderConfigFieldNumber = 4;
|
||||
private global::Mediapipe.BeliefDecoderConfig decoderConfig_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.BeliefDecoderConfig DecoderConfig {
|
||||
get { return decoderConfig_; }
|
||||
set {
|
||||
decoderConfig_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as TensorsToObjectsCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(TensorsToObjectsCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (NumClasses != other.NumClasses) return false;
|
||||
if (NumKeypoints != other.NumKeypoints) return false;
|
||||
if (NumValuesPerKeypoint != other.NumValuesPerKeypoint) return false;
|
||||
if (!object.Equals(DecoderConfig, other.DecoderConfig)) 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 (HasNumClasses) hash ^= NumClasses.GetHashCode();
|
||||
if (HasNumKeypoints) hash ^= NumKeypoints.GetHashCode();
|
||||
if (HasNumValuesPerKeypoint) hash ^= NumValuesPerKeypoint.GetHashCode();
|
||||
if (decoderConfig_ != null) hash ^= DecoderConfig.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 (HasNumClasses) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(NumClasses);
|
||||
}
|
||||
if (HasNumKeypoints) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(NumKeypoints);
|
||||
}
|
||||
if (HasNumValuesPerKeypoint) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(NumValuesPerKeypoint);
|
||||
}
|
||||
if (decoderConfig_ != null) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteMessage(DecoderConfig);
|
||||
}
|
||||
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 (HasNumClasses) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(NumClasses);
|
||||
}
|
||||
if (HasNumKeypoints) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(NumKeypoints);
|
||||
}
|
||||
if (HasNumValuesPerKeypoint) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(NumValuesPerKeypoint);
|
||||
}
|
||||
if (decoderConfig_ != null) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteMessage(DecoderConfig);
|
||||
}
|
||||
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 (HasNumClasses) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumClasses);
|
||||
}
|
||||
if (HasNumKeypoints) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumKeypoints);
|
||||
}
|
||||
if (HasNumValuesPerKeypoint) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumValuesPerKeypoint);
|
||||
}
|
||||
if (decoderConfig_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(DecoderConfig);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(TensorsToObjectsCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasNumClasses) {
|
||||
NumClasses = other.NumClasses;
|
||||
}
|
||||
if (other.HasNumKeypoints) {
|
||||
NumKeypoints = other.NumKeypoints;
|
||||
}
|
||||
if (other.HasNumValuesPerKeypoint) {
|
||||
NumValuesPerKeypoint = other.NumValuesPerKeypoint;
|
||||
}
|
||||
if (other.decoderConfig_ != null) {
|
||||
if (decoderConfig_ == null) {
|
||||
DecoderConfig = new global::Mediapipe.BeliefDecoderConfig();
|
||||
}
|
||||
DecoderConfig.MergeFrom(other.DecoderConfig);
|
||||
}
|
||||
_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: {
|
||||
NumClasses = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
NumKeypoints = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
NumValuesPerKeypoint = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
if (decoderConfig_ == null) {
|
||||
DecoderConfig = new global::Mediapipe.BeliefDecoderConfig();
|
||||
}
|
||||
input.ReadMessage(DecoderConfig);
|
||||
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: {
|
||||
NumClasses = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
NumKeypoints = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
NumValuesPerKeypoint = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
if (decoderConfig_ == null) {
|
||||
DecoderConfig = new global::Mediapipe.BeliefDecoderConfig();
|
||||
}
|
||||
input.ReadMessage(DecoderConfig);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the TensorsToObjectsCalculatorOptions 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.TensorsToObjectsCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.TensorsToObjectsCalculatorOptions>(334361940, pb::FieldCodec.ForMessage(2674895522, global::Mediapipe.TensorsToObjectsCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cf360c0e1349e2339bd655d6efaf07bc
|
||||
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/modules/objectron/calculators/tflite_tensors_to_objects_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/modules/objectron/calculators/tflite_tensors_to_objects_calculator.proto</summary>
|
||||
public static partial class TfliteTensorsToObjectsCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/modules/objectron/calculators/tflite_tensors_to_objects_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static TfliteTensorsToObjectsCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"ClJtZWRpYXBpcGUvbW9kdWxlcy9vYmplY3Ryb24vY2FsY3VsYXRvcnMvdGZs",
|
||||
"aXRlX3RlbnNvcnNfdG9fb2JqZWN0c19jYWxjdWxhdG9yLnByb3RvEgltZWRp",
|
||||
"YXBpcGUaJG1lZGlhcGlwZS9mcmFtZXdvcmsvY2FsY3VsYXRvci5wcm90bxpD",
|
||||
"bWVkaWFwaXBlL21vZHVsZXMvb2JqZWN0cm9uL2NhbGN1bGF0b3JzL2JlbGll",
|
||||
"Zl9kZWNvZGVyX2NvbmZpZy5wcm90byKjAwonVGZMaXRlVGVuc29yc1RvT2Jq",
|
||||
"ZWN0c0NhbGN1bGF0b3JPcHRpb25zEhMKC251bV9jbGFzc2VzGAEgASgFEhUK",
|
||||
"DW51bV9rZXlwb2ludHMYAiABKAUSIgoXbnVtX3ZhbHVlc19wZXJfa2V5cG9p",
|
||||
"bnQYAyABKAU6ATISNgoOZGVjb2Rlcl9jb25maWcYBCABKAsyHi5tZWRpYXBp",
|
||||
"cGUuQmVsaWVmRGVjb2RlckNvbmZpZxIdChJub3JtYWxpemVkX2ZvY2FsX3gY",
|
||||
"BSABKAI6ATESHQoSbm9ybWFsaXplZF9mb2NhbF95GAYgASgCOgExEicKHG5v",
|
||||
"cm1hbGl6ZWRfcHJpbmNpcGFsX3BvaW50X3gYByABKAI6ATASJwocbm9ybWFs",
|
||||
"aXplZF9wcmluY2lwYWxfcG9pbnRfeRgIIAEoAjoBMDJgCgNleHQSHC5tZWRp",
|
||||
"YXBpcGUuQ2FsY3VsYXRvck9wdGlvbnMYvv/cfSABKAsyMi5tZWRpYXBpcGUu",
|
||||
"VGZMaXRlVGVuc29yc1RvT2JqZWN0c0NhbGN1bGF0b3JPcHRpb25z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, global::Mediapipe.BeliefDecoderConfigReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.TfLiteTensorsToObjectsCalculatorOptions), global::Mediapipe.TfLiteTensorsToObjectsCalculatorOptions.Parser, new[]{ "NumClasses", "NumKeypoints", "NumValuesPerKeypoint", "DecoderConfig", "NormalizedFocalX", "NormalizedFocalY", "NormalizedPrincipalPointX", "NormalizedPrincipalPointY" }, null, null, new pb::Extension[] { global::Mediapipe.TfLiteTensorsToObjectsCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class TfLiteTensorsToObjectsCalculatorOptions : pb::IMessage<TfLiteTensorsToObjectsCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<TfLiteTensorsToObjectsCalculatorOptions> _parser = new pb::MessageParser<TfLiteTensorsToObjectsCalculatorOptions>(() => new TfLiteTensorsToObjectsCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<TfLiteTensorsToObjectsCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.TfliteTensorsToObjectsCalculatorReflection.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 TfLiteTensorsToObjectsCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TfLiteTensorsToObjectsCalculatorOptions(TfLiteTensorsToObjectsCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
numClasses_ = other.numClasses_;
|
||||
numKeypoints_ = other.numKeypoints_;
|
||||
numValuesPerKeypoint_ = other.numValuesPerKeypoint_;
|
||||
decoderConfig_ = other.decoderConfig_ != null ? other.decoderConfig_.Clone() : null;
|
||||
normalizedFocalX_ = other.normalizedFocalX_;
|
||||
normalizedFocalY_ = other.normalizedFocalY_;
|
||||
normalizedPrincipalPointX_ = other.normalizedPrincipalPointX_;
|
||||
normalizedPrincipalPointY_ = other.normalizedPrincipalPointY_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TfLiteTensorsToObjectsCalculatorOptions Clone() {
|
||||
return new TfLiteTensorsToObjectsCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "num_classes" field.</summary>
|
||||
public const int NumClassesFieldNumber = 1;
|
||||
private readonly static int NumClassesDefaultValue = 0;
|
||||
|
||||
private int numClasses_;
|
||||
/// <summary>
|
||||
/// The number of output classes predicted by the detection model.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int NumClasses {
|
||||
get { if ((_hasBits0 & 1) != 0) { return numClasses_; } else { return NumClassesDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
numClasses_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "num_classes" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNumClasses {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "num_classes" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNumClasses() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "num_keypoints" field.</summary>
|
||||
public const int NumKeypointsFieldNumber = 2;
|
||||
private readonly static int NumKeypointsDefaultValue = 0;
|
||||
|
||||
private int numKeypoints_;
|
||||
/// <summary>
|
||||
/// The number of predicted keypoints.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int NumKeypoints {
|
||||
get { if ((_hasBits0 & 2) != 0) { return numKeypoints_; } else { return NumKeypointsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
numKeypoints_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "num_keypoints" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNumKeypoints {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "num_keypoints" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNumKeypoints() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "num_values_per_keypoint" field.</summary>
|
||||
public const int NumValuesPerKeypointFieldNumber = 3;
|
||||
private readonly static int NumValuesPerKeypointDefaultValue = 2;
|
||||
|
||||
private int numValuesPerKeypoint_;
|
||||
/// <summary>
|
||||
/// The dimension of each keypoint, e.g. number of values predicted for each
|
||||
/// keypoint.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int NumValuesPerKeypoint {
|
||||
get { if ((_hasBits0 & 4) != 0) { return numValuesPerKeypoint_; } else { return NumValuesPerKeypointDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
numValuesPerKeypoint_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "num_values_per_keypoint" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNumValuesPerKeypoint {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "num_values_per_keypoint" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNumValuesPerKeypoint() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "decoder_config" field.</summary>
|
||||
public const int DecoderConfigFieldNumber = 4;
|
||||
private global::Mediapipe.BeliefDecoderConfig decoderConfig_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.BeliefDecoderConfig DecoderConfig {
|
||||
get { return decoderConfig_; }
|
||||
set {
|
||||
decoderConfig_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "normalized_focal_x" field.</summary>
|
||||
public const int NormalizedFocalXFieldNumber = 5;
|
||||
private readonly static float NormalizedFocalXDefaultValue = 1F;
|
||||
|
||||
private float normalizedFocalX_;
|
||||
/// <summary>
|
||||
/// Camera focal length along x, normalized by width/2.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float NormalizedFocalX {
|
||||
get { if ((_hasBits0 & 8) != 0) { return normalizedFocalX_; } else { return NormalizedFocalXDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
normalizedFocalX_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "normalized_focal_x" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNormalizedFocalX {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "normalized_focal_x" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNormalizedFocalX() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "normalized_focal_y" field.</summary>
|
||||
public const int NormalizedFocalYFieldNumber = 6;
|
||||
private readonly static float NormalizedFocalYDefaultValue = 1F;
|
||||
|
||||
private float normalizedFocalY_;
|
||||
/// <summary>
|
||||
/// Camera focal length along y, normalized by height/2.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float NormalizedFocalY {
|
||||
get { if ((_hasBits0 & 16) != 0) { return normalizedFocalY_; } else { return NormalizedFocalYDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
normalizedFocalY_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "normalized_focal_y" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNormalizedFocalY {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "normalized_focal_y" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNormalizedFocalY() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "normalized_principal_point_x" field.</summary>
|
||||
public const int NormalizedPrincipalPointXFieldNumber = 7;
|
||||
private readonly static float NormalizedPrincipalPointXDefaultValue = 0F;
|
||||
|
||||
private float normalizedPrincipalPointX_;
|
||||
/// <summary>
|
||||
/// Camera principle point x, normalized by width/2, origin is image center.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float NormalizedPrincipalPointX {
|
||||
get { if ((_hasBits0 & 32) != 0) { return normalizedPrincipalPointX_; } else { return NormalizedPrincipalPointXDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 32;
|
||||
normalizedPrincipalPointX_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "normalized_principal_point_x" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNormalizedPrincipalPointX {
|
||||
get { return (_hasBits0 & 32) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "normalized_principal_point_x" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNormalizedPrincipalPointX() {
|
||||
_hasBits0 &= ~32;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "normalized_principal_point_y" field.</summary>
|
||||
public const int NormalizedPrincipalPointYFieldNumber = 8;
|
||||
private readonly static float NormalizedPrincipalPointYDefaultValue = 0F;
|
||||
|
||||
private float normalizedPrincipalPointY_;
|
||||
/// <summary>
|
||||
/// Camera principle point y, normalized by height/2, origin is image center.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float NormalizedPrincipalPointY {
|
||||
get { if ((_hasBits0 & 64) != 0) { return normalizedPrincipalPointY_; } else { return NormalizedPrincipalPointYDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 64;
|
||||
normalizedPrincipalPointY_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "normalized_principal_point_y" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNormalizedPrincipalPointY {
|
||||
get { return (_hasBits0 & 64) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "normalized_principal_point_y" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNormalizedPrincipalPointY() {
|
||||
_hasBits0 &= ~64;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as TfLiteTensorsToObjectsCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(TfLiteTensorsToObjectsCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (NumClasses != other.NumClasses) return false;
|
||||
if (NumKeypoints != other.NumKeypoints) return false;
|
||||
if (NumValuesPerKeypoint != other.NumValuesPerKeypoint) return false;
|
||||
if (!object.Equals(DecoderConfig, other.DecoderConfig)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NormalizedFocalX, other.NormalizedFocalX)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NormalizedFocalY, other.NormalizedFocalY)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NormalizedPrincipalPointX, other.NormalizedPrincipalPointX)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NormalizedPrincipalPointY, other.NormalizedPrincipalPointY)) 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 (HasNumClasses) hash ^= NumClasses.GetHashCode();
|
||||
if (HasNumKeypoints) hash ^= NumKeypoints.GetHashCode();
|
||||
if (HasNumValuesPerKeypoint) hash ^= NumValuesPerKeypoint.GetHashCode();
|
||||
if (decoderConfig_ != null) hash ^= DecoderConfig.GetHashCode();
|
||||
if (HasNormalizedFocalX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NormalizedFocalX);
|
||||
if (HasNormalizedFocalY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NormalizedFocalY);
|
||||
if (HasNormalizedPrincipalPointX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NormalizedPrincipalPointX);
|
||||
if (HasNormalizedPrincipalPointY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NormalizedPrincipalPointY);
|
||||
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 (HasNumClasses) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(NumClasses);
|
||||
}
|
||||
if (HasNumKeypoints) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(NumKeypoints);
|
||||
}
|
||||
if (HasNumValuesPerKeypoint) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(NumValuesPerKeypoint);
|
||||
}
|
||||
if (decoderConfig_ != null) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteMessage(DecoderConfig);
|
||||
}
|
||||
if (HasNormalizedFocalX) {
|
||||
output.WriteRawTag(45);
|
||||
output.WriteFloat(NormalizedFocalX);
|
||||
}
|
||||
if (HasNormalizedFocalY) {
|
||||
output.WriteRawTag(53);
|
||||
output.WriteFloat(NormalizedFocalY);
|
||||
}
|
||||
if (HasNormalizedPrincipalPointX) {
|
||||
output.WriteRawTag(61);
|
||||
output.WriteFloat(NormalizedPrincipalPointX);
|
||||
}
|
||||
if (HasNormalizedPrincipalPointY) {
|
||||
output.WriteRawTag(69);
|
||||
output.WriteFloat(NormalizedPrincipalPointY);
|
||||
}
|
||||
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 (HasNumClasses) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(NumClasses);
|
||||
}
|
||||
if (HasNumKeypoints) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(NumKeypoints);
|
||||
}
|
||||
if (HasNumValuesPerKeypoint) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(NumValuesPerKeypoint);
|
||||
}
|
||||
if (decoderConfig_ != null) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteMessage(DecoderConfig);
|
||||
}
|
||||
if (HasNormalizedFocalX) {
|
||||
output.WriteRawTag(45);
|
||||
output.WriteFloat(NormalizedFocalX);
|
||||
}
|
||||
if (HasNormalizedFocalY) {
|
||||
output.WriteRawTag(53);
|
||||
output.WriteFloat(NormalizedFocalY);
|
||||
}
|
||||
if (HasNormalizedPrincipalPointX) {
|
||||
output.WriteRawTag(61);
|
||||
output.WriteFloat(NormalizedPrincipalPointX);
|
||||
}
|
||||
if (HasNormalizedPrincipalPointY) {
|
||||
output.WriteRawTag(69);
|
||||
output.WriteFloat(NormalizedPrincipalPointY);
|
||||
}
|
||||
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 (HasNumClasses) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumClasses);
|
||||
}
|
||||
if (HasNumKeypoints) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumKeypoints);
|
||||
}
|
||||
if (HasNumValuesPerKeypoint) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumValuesPerKeypoint);
|
||||
}
|
||||
if (decoderConfig_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(DecoderConfig);
|
||||
}
|
||||
if (HasNormalizedFocalX) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasNormalizedFocalY) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasNormalizedPrincipalPointX) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasNormalizedPrincipalPointY) {
|
||||
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(TfLiteTensorsToObjectsCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasNumClasses) {
|
||||
NumClasses = other.NumClasses;
|
||||
}
|
||||
if (other.HasNumKeypoints) {
|
||||
NumKeypoints = other.NumKeypoints;
|
||||
}
|
||||
if (other.HasNumValuesPerKeypoint) {
|
||||
NumValuesPerKeypoint = other.NumValuesPerKeypoint;
|
||||
}
|
||||
if (other.decoderConfig_ != null) {
|
||||
if (decoderConfig_ == null) {
|
||||
DecoderConfig = new global::Mediapipe.BeliefDecoderConfig();
|
||||
}
|
||||
DecoderConfig.MergeFrom(other.DecoderConfig);
|
||||
}
|
||||
if (other.HasNormalizedFocalX) {
|
||||
NormalizedFocalX = other.NormalizedFocalX;
|
||||
}
|
||||
if (other.HasNormalizedFocalY) {
|
||||
NormalizedFocalY = other.NormalizedFocalY;
|
||||
}
|
||||
if (other.HasNormalizedPrincipalPointX) {
|
||||
NormalizedPrincipalPointX = other.NormalizedPrincipalPointX;
|
||||
}
|
||||
if (other.HasNormalizedPrincipalPointY) {
|
||||
NormalizedPrincipalPointY = other.NormalizedPrincipalPointY;
|
||||
}
|
||||
_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: {
|
||||
NumClasses = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
NumKeypoints = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
NumValuesPerKeypoint = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
if (decoderConfig_ == null) {
|
||||
DecoderConfig = new global::Mediapipe.BeliefDecoderConfig();
|
||||
}
|
||||
input.ReadMessage(DecoderConfig);
|
||||
break;
|
||||
}
|
||||
case 45: {
|
||||
NormalizedFocalX = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 53: {
|
||||
NormalizedFocalY = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 61: {
|
||||
NormalizedPrincipalPointX = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 69: {
|
||||
NormalizedPrincipalPointY = 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 8: {
|
||||
NumClasses = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
NumKeypoints = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
NumValuesPerKeypoint = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
if (decoderConfig_ == null) {
|
||||
DecoderConfig = new global::Mediapipe.BeliefDecoderConfig();
|
||||
}
|
||||
input.ReadMessage(DecoderConfig);
|
||||
break;
|
||||
}
|
||||
case 45: {
|
||||
NormalizedFocalX = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 53: {
|
||||
NormalizedFocalY = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 61: {
|
||||
NormalizedPrincipalPointX = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 69: {
|
||||
NormalizedPrincipalPointY = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the TfLiteTensorsToObjectsCalculatorOptions 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.TfLiteTensorsToObjectsCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.TfLiteTensorsToObjectsCalculatorOptions>(263667646, pb::FieldCodec.ForMessage(2109341170, global::Mediapipe.TfLiteTensorsToObjectsCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fefbc482bc9248f67adbe79ac750595e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user