This commit is contained in:
2026-05-06 19:47:31 +07:00
parent 94d8682530
commit 12dbb7731b
9963 changed files with 2747894 additions and 0 deletions
@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/tasks/cc/components/calculators/classification_aggregation_calculator.proto
# Protobuf Python Version: 4.25.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from mediapipe.framework import calculator_pb2 as mediapipe_dot_framework_dot_calculator__pb2
try:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe_dot_framework_dot_calculator__options__pb2
except AttributeError:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe.framework.calculator_options_pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nUmediapipe/tasks/cc/components/calculators/classification_aggregation_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xa6\x01\n*ClassificationAggregationCalculatorOptions\x12\x12\n\nhead_names\x18\x01 \x03(\t2d\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xf8\x8e\xf5\xd5\x01 \x01(\x0b\x32\x35.mediapipe.ClassificationAggregationCalculatorOptions')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.tasks.cc.components.calculators.classification_aggregation_calculator_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
_globals['_CLASSIFICATIONAGGREGATIONCALCULATOROPTIONS']._serialized_start=139
_globals['_CLASSIFICATIONAGGREGATIONCALCULATOROPTIONS']._serialized_end=305
# @@protoc_insertion_point(module_scope)
@@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/tasks/cc/components/calculators/score_calibration_calculator.proto
# Protobuf Python Version: 4.25.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from mediapipe.framework import calculator_pb2 as mediapipe_dot_framework_dot_calculator__pb2
try:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe_dot_framework_dot_calculator__options__pb2
except AttributeError:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe.framework.calculator_options_pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nLmediapipe/tasks/cc/components/calculators/score_calibration_calculator.proto\x12\x0fmediapipe.tasks\x1a$mediapipe/framework/calculator.proto\"\xfc\x03\n!ScoreCalibrationCalculatorOptions\x12L\n\x08sigmoids\x18\x01 \x03(\x0b\x32:.mediapipe.tasks.ScoreCalibrationCalculatorOptions.Sigmoid\x12n\n\x14score_transformation\x18\x02 \x01(\x0e\x32\x46.mediapipe.tasks.ScoreCalibrationCalculatorOptions.ScoreTransformation:\x08IDENTITY\x12\x15\n\rdefault_score\x18\x03 \x01(\x02\x1aJ\n\x07Sigmoid\x12\r\n\x05scale\x18\x01 \x01(\x02\x12\r\n\x05slope\x18\x02 \x01(\x02\x12\x0e\n\x06offset\x18\x03 \x01(\x02\x12\x11\n\tmin_score\x18\x04 \x01(\x02\"S\n\x13ScoreTransformation\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0c\n\x08IDENTITY\x10\x01\x12\x07\n\x03LOG\x10\x02\x12\x14\n\x10INVERSE_LOGISTIC\x10\x03\x32\x61\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\x9e\xff\x9a\xe0\x01 \x01(\x0b\x32\x32.mediapipe.tasks.ScoreCalibrationCalculatorOptions')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.tasks.cc.components.calculators.score_calibration_calculator_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
_globals['_SCORECALIBRATIONCALCULATOROPTIONS']._serialized_start=136
_globals['_SCORECALIBRATIONCALCULATOROPTIONS']._serialized_end=644
_globals['_SCORECALIBRATIONCALCULATOROPTIONS_SIGMOID']._serialized_start=386
_globals['_SCORECALIBRATIONCALCULATOROPTIONS_SIGMOID']._serialized_end=460
_globals['_SCORECALIBRATIONCALCULATOROPTIONS_SCORETRANSFORMATION']._serialized_start=462
_globals['_SCORECALIBRATIONCALCULATOROPTIONS_SCORETRANSFORMATION']._serialized_end=545
# @@protoc_insertion_point(module_scope)
@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/tasks/cc/components/calculators/tensors_to_embeddings_calculator.proto
# Protobuf Python Version: 4.25.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from mediapipe.framework import calculator_pb2 as mediapipe_dot_framework_dot_calculator__pb2
try:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe_dot_framework_dot_calculator__options__pb2
except AttributeError:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe.framework.calculator_options_pb2
from mediapipe.tasks.cc.components.processors.proto import embedder_options_pb2 as mediapipe_dot_tasks_dot_cc_dot_components_dot_processors_dot_proto_dot_embedder__options__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nPmediapipe/tasks/cc/components/calculators/tensors_to_embeddings_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\x1a\x45mediapipe/tasks/cc/components/processors/proto/embedder_options.proto\"\x8e\x02\n$TensorsToEmbeddingsCalculatorOptions\x12V\n\x10\x65mbedder_options\x18\x01 \x01(\x0b\x32<.mediapipe.tasks.components.processors.proto.EmbedderOptions\x12\x12\n\nhead_names\x18\x02 \x03(\t\x12\x1a\n\x12ignored_head_names\x18\x03 \x03(\t2^\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xd6\x98\xb1\xe2\x01 \x01(\x0b\x32/.mediapipe.TensorsToEmbeddingsCalculatorOptions')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.tasks.cc.components.calculators.tensors_to_embeddings_calculator_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
_globals['_TENSORSTOEMBEDDINGSCALCULATOROPTIONS']._serialized_start=205
_globals['_TENSORSTOEMBEDDINGSCALCULATOROPTIONS']._serialized_end=475
# @@protoc_insertion_point(module_scope)
@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/tasks/cc/components/containers/proto/classifications.proto
# Protobuf Python Version: 4.25.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from mediapipe.framework.formats import classification_pb2 as mediapipe_dot_framework_dot_formats_dot_classification__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nDmediapipe/tasks/cc/components/containers/proto/classifications.proto\x12+mediapipe.tasks.components.containers.proto\x1a\x30mediapipe/framework/formats/classification.proto\"z\n\x0f\x43lassifications\x12:\n\x13\x63lassification_list\x18\x04 \x01(\x0b\x32\x1d.mediapipe.ClassificationList\x12\x12\n\nhead_index\x18\x02 \x01(\x05\x12\x11\n\thead_name\x18\x03 \x01(\tJ\x04\x08\x01\x10\x02\"\x83\x01\n\x14\x43lassificationResult\x12U\n\x0f\x63lassifications\x18\x01 \x03(\x0b\x32<.mediapipe.tasks.components.containers.proto.Classifications\x12\x14\n\x0ctimestamp_ms\x18\x02 \x01(\x03\x42N\n6com.google.mediapipe.tasks.components.containers.protoB\x14\x43lassificationsProto')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.tasks.cc.components.containers.proto.classifications_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
_globals['DESCRIPTOR']._options = None
_globals['DESCRIPTOR']._serialized_options = b'\n6com.google.mediapipe.tasks.components.containers.protoB\024ClassificationsProto'
_globals['_CLASSIFICATIONS']._serialized_start=167
_globals['_CLASSIFICATIONS']._serialized_end=289
_globals['_CLASSIFICATIONRESULT']._serialized_start=292
_globals['_CLASSIFICATIONRESULT']._serialized_end=423
# @@protoc_insertion_point(module_scope)
@@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/tasks/cc/components/containers/proto/embeddings.proto
# Protobuf Python Version: 4.25.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n?mediapipe/tasks/cc/components/containers/proto/embeddings.proto\x12+mediapipe.tasks.components.containers.proto\"$\n\x0e\x46loatEmbedding\x12\x12\n\x06values\x18\x01 \x03(\x02\x42\x02\x10\x01\"$\n\x12QuantizedEmbedding\x12\x0e\n\x06values\x18\x01 \x01(\x0c\"\xf7\x01\n\tEmbedding\x12V\n\x0f\x66loat_embedding\x18\x01 \x01(\x0b\x32;.mediapipe.tasks.components.containers.proto.FloatEmbeddingH\x00\x12^\n\x13quantized_embedding\x18\x02 \x01(\x0b\x32?.mediapipe.tasks.components.containers.proto.QuantizedEmbeddingH\x00\x12\x12\n\nhead_index\x18\x03 \x01(\x05\x12\x11\n\thead_name\x18\x04 \x01(\tB\x0b\n\tembedding\"s\n\x0f\x45mbeddingResult\x12J\n\nembeddings\x18\x01 \x03(\x0b\x32\x36.mediapipe.tasks.components.containers.proto.Embedding\x12\x14\n\x0ctimestamp_ms\x18\x02 \x01(\x03\x42I\n6com.google.mediapipe.tasks.components.containers.protoB\x0f\x45mbeddingsProto')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.tasks.cc.components.containers.proto.embeddings_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
_globals['DESCRIPTOR']._options = None
_globals['DESCRIPTOR']._serialized_options = b'\n6com.google.mediapipe.tasks.components.containers.protoB\017EmbeddingsProto'
_globals['_FLOATEMBEDDING'].fields_by_name['values']._options = None
_globals['_FLOATEMBEDDING'].fields_by_name['values']._serialized_options = b'\020\001'
_globals['_FLOATEMBEDDING']._serialized_start=112
_globals['_FLOATEMBEDDING']._serialized_end=148
_globals['_QUANTIZEDEMBEDDING']._serialized_start=150
_globals['_QUANTIZEDEMBEDDING']._serialized_end=186
_globals['_EMBEDDING']._serialized_start=189
_globals['_EMBEDDING']._serialized_end=436
_globals['_EMBEDDINGRESULT']._serialized_start=438
_globals['_EMBEDDINGRESULT']._serialized_end=553
# @@protoc_insertion_point(module_scope)
@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/tasks/cc/components/containers/proto/landmarks_detection_result.proto
# Protobuf Python Version: 4.25.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from mediapipe.framework.formats import classification_pb2 as mediapipe_dot_framework_dot_formats_dot_classification__pb2
from mediapipe.framework.formats import landmark_pb2 as mediapipe_dot_framework_dot_formats_dot_landmark__pb2
from mediapipe.framework.formats import rect_pb2 as mediapipe_dot_framework_dot_formats_dot_rect__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nOmediapipe/tasks/cc/components/containers/proto/landmarks_detection_result.proto\x12 mediapipe.tasks.containers.proto\x1a\x30mediapipe/framework/formats/classification.proto\x1a*mediapipe/framework/formats/landmark.proto\x1a&mediapipe/framework/formats/rect.proto\"\xe3\x01\n\x18LandmarksDetectionResult\x12\x34\n\tlandmarks\x18\x01 \x01(\x0b\x32!.mediapipe.NormalizedLandmarkList\x12\x36\n\x0f\x63lassifications\x18\x02 \x01(\x0b\x32\x1d.mediapipe.ClassificationList\x12\x30\n\x0fworld_landmarks\x18\x03 \x01(\x0b\x32\x17.mediapipe.LandmarkList\x12\'\n\x04rect\x18\x04 \x01(\x0b\x32\x19.mediapipe.NormalizedRect\"\xe9\x01\n\x1dMultiLandmarksDetectionResult\x12\x34\n\tlandmarks\x18\x01 \x03(\x0b\x32!.mediapipe.NormalizedLandmarkList\x12\x36\n\x0f\x63lassifications\x18\x02 \x03(\x0b\x32\x1d.mediapipe.ClassificationList\x12\x30\n\x0fworld_landmarks\x18\x03 \x03(\x0b\x32\x17.mediapipe.LandmarkList\x12(\n\x05rects\x18\x04 \x03(\x0b\x32\x19.mediapipe.NormalizedRectBW\n6com.google.mediapipe.tasks.components.containers.protoB\x1dLandmarksDetectionResultProto')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.tasks.cc.components.containers.proto.landmarks_detection_result_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
_globals['DESCRIPTOR']._options = None
_globals['DESCRIPTOR']._serialized_options = b'\n6com.google.mediapipe.tasks.components.containers.protoB\035LandmarksDetectionResultProto'
_globals['_LANDMARKSDETECTIONRESULT']._serialized_start=252
_globals['_LANDMARKSDETECTIONRESULT']._serialized_end=479
_globals['_MULTILANDMARKSDETECTIONRESULT']._serialized_start=482
_globals['_MULTILANDMARKSDETECTIONRESULT']._serialized_end=715
# @@protoc_insertion_point(module_scope)
@@ -0,0 +1,38 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/tasks/cc/components/processors/proto/classification_postprocessing_graph_options.proto
# Protobuf Python Version: 4.25.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from mediapipe.calculators.tensor import tensors_to_classification_calculator_pb2 as mediapipe_dot_calculators_dot_tensor_dot_tensors__to__classification__calculator__pb2
from mediapipe.framework import calculator_pb2 as mediapipe_dot_framework_dot_calculator__pb2
try:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe_dot_framework_dot_calculator__options__pb2
except AttributeError:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe.framework.calculator_options_pb2
from mediapipe.tasks.cc.components.calculators import classification_aggregation_calculator_pb2 as mediapipe_dot_tasks_dot_cc_dot_components_dot_calculators_dot_classification__aggregation__calculator__pb2
from mediapipe.tasks.cc.components.calculators import score_calibration_calculator_pb2 as mediapipe_dot_tasks_dot_cc_dot_components_dot_calculators_dot_score__calibration__calculator__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n`mediapipe/tasks/cc/components/processors/proto/classification_postprocessing_graph_options.proto\x12+mediapipe.tasks.components.processors.proto\x1aGmediapipe/calculators/tensor/tensors_to_classification_calculator.proto\x1a$mediapipe/framework/calculator.proto\x1aUmediapipe/tasks/cc/components/calculators/classification_aggregation_calculator.proto\x1aLmediapipe/tasks/cc/components/calculators/score_calibration_calculator.proto\"\xa0\x05\n(ClassificationPostprocessingGraphOptions\x12\x95\x01\n\x19score_calibration_options\x18\x04 \x03(\x0b\x32r.mediapipe.tasks.components.processors.proto.ClassificationPostprocessingGraphOptions.ScoreCalibrationOptionsEntry\x12_\n\"tensors_to_classifications_options\x18\x01 \x03(\x0b\x32\x33.mediapipe.TensorsToClassificationCalculatorOptions\x12\x61\n\"classification_aggregation_options\x18\x02 \x01(\x0b\x32\x35.mediapipe.ClassificationAggregationCalculatorOptions\x12\x1d\n\x15has_quantized_outputs\x18\x03 \x01(\x08\x1ar\n\x1cScoreCalibrationOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x41\n\x05value\x18\x02 \x01(\x0b\x32\x32.mediapipe.tasks.ScoreCalibrationCalculatorOptions:\x02\x38\x01\x32\x84\x01\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xb6\xcf\xc5\xdb\x01 \x01(\x0b\x32U.mediapipe.tasks.components.processors.proto.ClassificationPostprocessingGraphOptions')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.tasks.cc.components.processors.proto.classification_postprocessing_graph_options_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
_globals['_CLASSIFICATIONPOSTPROCESSINGGRAPHOPTIONS_SCORECALIBRATIONOPTIONSENTRY']._options = None
_globals['_CLASSIFICATIONPOSTPROCESSINGGRAPHOPTIONS_SCORECALIBRATIONOPTIONSENTRY']._serialized_options = b'8\001'
_globals['_CLASSIFICATIONPOSTPROCESSINGGRAPHOPTIONS']._serialized_start=422
_globals['_CLASSIFICATIONPOSTPROCESSINGGRAPHOPTIONS']._serialized_end=1094
_globals['_CLASSIFICATIONPOSTPROCESSINGGRAPHOPTIONS_SCORECALIBRATIONOPTIONSENTRY']._serialized_start=845
_globals['_CLASSIFICATIONPOSTPROCESSINGGRAPHOPTIONS_SCORECALIBRATIONOPTIONSENTRY']._serialized_end=959
# @@protoc_insertion_point(module_scope)
@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/tasks/cc/components/processors/proto/classifier_options.proto
# Protobuf Python Version: 4.25.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nGmediapipe/tasks/cc/components/processors/proto/classifier_options.proto\x12+mediapipe.tasks.components.processors.proto\"\x9e\x01\n\x11\x43lassifierOptions\x12 \n\x14\x64isplay_names_locale\x18\x01 \x01(\t:\x02\x65n\x12\x17\n\x0bmax_results\x18\x02 \x01(\x05:\x02-1\x12\x17\n\x0fscore_threshold\x18\x03 \x01(\x02\x12\x1a\n\x12\x63\x61tegory_allowlist\x18\x04 \x03(\t\x12\x19\n\x11\x63\x61tegory_denylist\x18\x05 \x03(\tBP\n6com.google.mediapipe.tasks.components.processors.protoB\x16\x43lassifierOptionsProto')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.tasks.cc.components.processors.proto.classifier_options_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
_globals['DESCRIPTOR']._options = None
_globals['DESCRIPTOR']._serialized_options = b'\n6com.google.mediapipe.tasks.components.processors.protoB\026ClassifierOptionsProto'
_globals['_CLASSIFIEROPTIONS']._serialized_start=121
_globals['_CLASSIFIEROPTIONS']._serialized_end=279
# @@protoc_insertion_point(module_scope)
@@ -0,0 +1,36 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/tasks/cc/components/processors/proto/detection_postprocessing_graph_options.proto
# Protobuf Python Version: 4.25.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from mediapipe.calculators.tensor import tensors_to_detections_calculator_pb2 as mediapipe_dot_calculators_dot_tensor_dot_tensors__to__detections__calculator__pb2
from mediapipe.calculators.tflite import ssd_anchors_calculator_pb2 as mediapipe_dot_calculators_dot_tflite_dot_ssd__anchors__calculator__pb2
from mediapipe.calculators.util import detection_label_id_to_text_calculator_pb2 as mediapipe_dot_calculators_dot_util_dot_detection__label__id__to__text__calculator__pb2
from mediapipe.calculators.util import non_max_suppression_calculator_pb2 as mediapipe_dot_calculators_dot_util_dot_non__max__suppression__calculator__pb2
from mediapipe.framework import calculator_pb2 as mediapipe_dot_framework_dot_calculator__pb2
try:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe_dot_framework_dot_calculator__options__pb2
except AttributeError:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe.framework.calculator_options_pb2
from mediapipe.tasks.cc.components.calculators import score_calibration_calculator_pb2 as mediapipe_dot_tasks_dot_cc_dot_components_dot_calculators_dot_score__calibration__calculator__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n[mediapipe/tasks/cc/components/processors/proto/detection_postprocessing_graph_options.proto\x12+mediapipe.tasks.components.processors.proto\x1a\x43mediapipe/calculators/tensor/tensors_to_detections_calculator.proto\x1a\x39mediapipe/calculators/tflite/ssd_anchors_calculator.proto\x1a\x46mediapipe/calculators/util/detection_label_id_to_text_calculator.proto\x1a?mediapipe/calculators/util/non_max_suppression_calculator.proto\x1a$mediapipe/framework/calculator.proto\x1aLmediapipe/tasks/cc/components/calculators/score_calibration_calculator.proto\"\xc5\x05\n#DetectionPostprocessingGraphOptions\x12H\n\x13ssd_anchors_options\x18\x01 \x01(\x0b\x32&.mediapipe.SsdAnchorsCalculatorOptionsH\x00\x88\x01\x01\x12[\n\x1dtensors_to_detections_options\x18\x02 \x01(\x0b\x32/.mediapipe.TensorsToDetectionsCalculatorOptionsH\x01\x88\x01\x01\x12W\n\x1bnon_max_suppression_options\x18\x03 \x01(\x0b\x32-.mediapipe.NonMaxSuppressionCalculatorOptionsH\x02\x88\x01\x01\x12Z\n\x19score_calibration_options\x18\x04 \x01(\x0b\x32\x32.mediapipe.tasks.ScoreCalibrationCalculatorOptionsH\x03\x88\x01\x01\x12\x64\n#detection_label_ids_to_text_options\x18\x05 \x01(\x0b\x32\x32.mediapipe.DetectionLabelIdToTextCalculatorOptionsH\x04\x88\x01\x01\x12\"\n\x15has_quantized_outputs\x18\x06 \x01(\x08H\x05\x88\x01\x01\x42\x16\n\x14_ssd_anchors_optionsB \n\x1e_tensors_to_detections_optionsB\x1e\n\x1c_non_max_suppression_optionsB\x1c\n\x1a_score_calibration_optionsB&\n$_detection_label_ids_to_text_optionsB\x18\n\x16_has_quantized_outputsb\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.tasks.cc.components.processors.proto.detection_postprocessing_graph_options_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
_globals['_DETECTIONPOSTPROCESSINGGRAPHOPTIONS']._serialized_start=522
_globals['_DETECTIONPOSTPROCESSINGGRAPHOPTIONS']._serialized_end=1231
# @@protoc_insertion_point(module_scope)
@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/tasks/cc/components/processors/proto/detector_options.proto
# Protobuf Python Version: 4.25.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nEmediapipe/tasks/cc/components/processors/proto/detector_options.proto\x12+mediapipe.tasks.components.processors.proto\"\xbf\x01\n\x0f\x44\x65tectorOptions\x12 \n\x14\x64isplay_names_locale\x18\x01 \x01(\t:\x02\x65n\x12\x17\n\x0bmax_results\x18\x02 \x01(\x05:\x02-1\x12\x17\n\x0fscore_threshold\x18\x03 \x01(\x02\x12!\n\x19min_suppression_threshold\x18\x06 \x01(\x02\x12\x1a\n\x12\x63\x61tegory_allowlist\x18\x04 \x03(\t\x12\x19\n\x11\x63\x61tegory_denylist\x18\x05 \x03(\tBN\n6com.google.mediapipe.tasks.components.processors.protoB\x14\x44\x65tectorOptionsProto')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.tasks.cc.components.processors.proto.detector_options_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
_globals['DESCRIPTOR']._options = None
_globals['DESCRIPTOR']._serialized_options = b'\n6com.google.mediapipe.tasks.components.processors.protoB\024DetectorOptionsProto'
_globals['_DETECTOROPTIONS']._serialized_start=119
_globals['_DETECTOROPTIONS']._serialized_end=310
# @@protoc_insertion_point(module_scope)
@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/tasks/cc/components/processors/proto/embedder_options.proto
# Protobuf Python Version: 4.25.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nEmediapipe/tasks/cc/components/processors/proto/embedder_options.proto\x12+mediapipe.tasks.components.processors.proto\"9\n\x0f\x45mbedderOptions\x12\x14\n\x0cl2_normalize\x18\x01 \x01(\x08\x12\x10\n\x08quantize\x18\x02 \x01(\x08\x42N\n6com.google.mediapipe.tasks.components.processors.protoB\x14\x45mbedderOptionsProto')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.tasks.cc.components.processors.proto.embedder_options_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
_globals['DESCRIPTOR']._options = None
_globals['DESCRIPTOR']._serialized_options = b'\n6com.google.mediapipe.tasks.components.processors.protoB\024EmbedderOptionsProto'
_globals['_EMBEDDEROPTIONS']._serialized_start=118
_globals['_EMBEDDEROPTIONS']._serialized_end=175
# @@protoc_insertion_point(module_scope)
@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/tasks/cc/components/processors/proto/embedding_postprocessing_graph_options.proto
# Protobuf Python Version: 4.25.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from mediapipe.framework import calculator_pb2 as mediapipe_dot_framework_dot_calculator__pb2
try:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe_dot_framework_dot_calculator__options__pb2
except AttributeError:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe.framework.calculator_options_pb2
from mediapipe.tasks.cc.components.calculators import tensors_to_embeddings_calculator_pb2 as mediapipe_dot_tasks_dot_cc_dot_components_dot_calculators_dot_tensors__to__embeddings__calculator__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n[mediapipe/tasks/cc/components/processors/proto/embedding_postprocessing_graph_options.proto\x12+mediapipe.tasks.components.processors.proto\x1a$mediapipe/framework/calculator.proto\x1aPmediapipe/tasks/cc/components/calculators/tensors_to_embeddings_calculator.proto\"\x9d\x02\n#EmbeddingPostprocessingGraphOptions\x12V\n\x1dtensors_to_embeddings_options\x18\x01 \x01(\x0b\x32/.mediapipe.TensorsToEmbeddingsCalculatorOptions\x12\x1d\n\x15has_quantized_outputs\x18\x02 \x01(\x08\x32\x7f\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xae\xf4\x91\xe3\x01 \x01(\x0b\x32P.mediapipe.tasks.components.processors.proto.EmbeddingPostprocessingGraphOptions')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.tasks.cc.components.processors.proto.embedding_postprocessing_graph_options_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
_globals['_EMBEDDINGPOSTPROCESSINGGRAPHOPTIONS']._serialized_start=261
_globals['_EMBEDDINGPOSTPROCESSINGGRAPHOPTIONS']._serialized_end=546
# @@protoc_insertion_point(module_scope)
@@ -0,0 +1,34 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/tasks/cc/components/processors/proto/image_preprocessing_graph_options.proto
# Protobuf Python Version: 4.25.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from mediapipe.calculators.tensor import image_to_tensor_calculator_pb2 as mediapipe_dot_calculators_dot_tensor_dot_image__to__tensor__calculator__pb2
from mediapipe.framework import calculator_pb2 as mediapipe_dot_framework_dot_calculator__pb2
try:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe_dot_framework_dot_calculator__options__pb2
except AttributeError:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe.framework.calculator_options_pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nVmediapipe/tasks/cc/components/processors/proto/image_preprocessing_graph_options.proto\x12+mediapipe.tasks.components.processors.proto\x1a=mediapipe/calculators/tensor/image_to_tensor_calculator.proto\x1a$mediapipe/framework/calculator.proto\"\x91\x03\n\x1eImagePreprocessingGraphOptions\x12J\n\x17image_to_tensor_options\x18\x01 \x01(\x0b\x32).mediapipe.ImageToTensorCalculatorOptions\x12m\n\x07\x62\x61\x63kend\x18\x02 \x01(\x0e\x32S.mediapipe.tasks.components.processors.proto.ImagePreprocessingGraphOptions.Backend:\x07\x44\x45\x46\x41ULT\"8\n\x07\x42\x61\x63kend\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x0f\n\x0b\x43PU_BACKEND\x10\x01\x12\x0f\n\x0bGPU_BACKEND\x10\x02\x32z\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\x84\xf2\xed\xd9\x01 \x01(\x0b\x32K.mediapipe.tasks.components.processors.proto.ImagePreprocessingGraphOptions')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.tasks.cc.components.processors.proto.image_preprocessing_graph_options_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
_globals['_IMAGEPREPROCESSINGGRAPHOPTIONS']._serialized_start=237
_globals['_IMAGEPREPROCESSINGGRAPHOPTIONS']._serialized_end=638
_globals['_IMAGEPREPROCESSINGGRAPHOPTIONS_BACKEND']._serialized_start=458
_globals['_IMAGEPREPROCESSINGGRAPHOPTIONS_BACKEND']._serialized_end=514
# @@protoc_insertion_point(module_scope)
@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/tasks/cc/components/processors/proto/text_model_type.proto
# Protobuf Python Version: 4.25.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nDmediapipe/tasks/cc/components/processors/proto/text_model_type.proto\x12+mediapipe.tasks.components.processors.proto\"u\n\rTextModelType\"d\n\tModelType\x12\x15\n\x11UNSPECIFIED_MODEL\x10\x00\x12\x0e\n\nBERT_MODEL\x10\x01\x12\x0f\n\x0bREGEX_MODEL\x10\x02\x12\x10\n\x0cSTRING_MODEL\x10\x03\x12\r\n\tUSE_MODEL\x10\x04')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.tasks.cc.components.processors.proto.text_model_type_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
_globals['_TEXTMODELTYPE']._serialized_start=117
_globals['_TEXTMODELTYPE']._serialized_end=234
_globals['_TEXTMODELTYPE_MODELTYPE']._serialized_start=134
_globals['_TEXTMODELTYPE_MODELTYPE']._serialized_end=234
# @@protoc_insertion_point(module_scope)
@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/tasks/cc/components/processors/proto/text_preprocessing_graph_options.proto
# Protobuf Python Version: 4.25.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from mediapipe.framework import calculator_pb2 as mediapipe_dot_framework_dot_calculator__pb2
try:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe_dot_framework_dot_calculator__options__pb2
except AttributeError:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe.framework.calculator_options_pb2
from mediapipe.tasks.cc.components.processors.proto import text_model_type_pb2 as mediapipe_dot_tasks_dot_cc_dot_components_dot_processors_dot_proto_dot_text__model__type__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nUmediapipe/tasks/cc/components/processors/proto/text_preprocessing_graph_options.proto\x12+mediapipe.tasks.components.processors.proto\x1a$mediapipe/framework/calculator.proto\x1a\x44mediapipe/tasks/cc/components/processors/proto/text_model_type.proto\"\xac\x02\n\x1dTextPreprocessingGraphOptions\x12X\n\nmodel_type\x18\x01 \x01(\x0e\x32\x44.mediapipe.tasks.components.processors.proto.TextModelType.ModelType\x12\x13\n\x0bmax_seq_len\x18\x02 \x01(\x05\x12!\n\x19has_dynamic_input_tensors\x18\x03 \x01(\x08\x32y\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xbf\xbc\xb8\xe3\x01 \x01(\x0b\x32J.mediapipe.tasks.components.processors.proto.TextPreprocessingGraphOptions')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.tasks.cc.components.processors.proto.text_preprocessing_graph_options_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
_globals['_TEXTPREPROCESSINGGRAPHOPTIONS']._serialized_start=243
_globals['_TEXTPREPROCESSINGGRAPHOPTIONS']._serialized_end=543
# @@protoc_insertion_point(module_scope)