Initial commit
This commit is contained in:
17
.venv/lib/python3.9/site-packages/mediapipe/__init__.py
Normal file
17
.venv/lib/python3.9/site-packages/mediapipe/__init__.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""Copyright 2019 - 2020 The MediaPipe Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
"""
|
||||
|
||||
from mediapipe.python import *
|
||||
import mediapipe.python.solutions as solutions
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,155 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/audio/mfcc_mel_calculators.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/audio/mfcc_mel_calculators.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n6mediapipe/calculators/audio/mfcc_mel_calculators.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xd5\x01\n\x1cMelSpectrumCalculatorOptions\x12\x19\n\rchannel_count\x18\x01 \x01(\x05:\x02\x32\x30\x12 \n\x13min_frequency_hertz\x18\x02 \x01(\x02:\x03\x31\x32\x35\x12!\n\x13max_frequency_hertz\x18\x03 \x01(\x02:\x04\x33\x38\x30\x30\x32U\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xb4\xa0\xbc% \x01(\x0b\x32\'.mediapipe.MelSpectrumCalculatorOptions\"\xc5\x01\n\x15MfccCalculatorOptions\x12\x44\n\x13mel_spectrum_params\x18\x01 \x01(\x0b\x32\'.mediapipe.MelSpectrumCalculatorOptions\x12\x16\n\nmfcc_count\x18\x02 \x01(\r:\x02\x31\x33\x32N\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\x89\x9e\xb4% \x01(\x0b\x32 .mediapipe.MfccCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_MELSPECTRUMCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='MelSpectrumCalculatorOptions',
|
||||
full_name='mediapipe.MelSpectrumCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='channel_count', full_name='mediapipe.MelSpectrumCalculatorOptions.channel_count', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=20,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='min_frequency_hertz', full_name='mediapipe.MelSpectrumCalculatorOptions.min_frequency_hertz', index=1,
|
||||
number=2, type=2, cpp_type=6, label=1,
|
||||
has_default_value=True, default_value=float(125),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='max_frequency_hertz', full_name='mediapipe.MelSpectrumCalculatorOptions.max_frequency_hertz', index=2,
|
||||
number=3, type=2, cpp_type=6, label=1,
|
||||
has_default_value=True, default_value=float(3800),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.MelSpectrumCalculatorOptions.ext', index=0,
|
||||
number=78581812, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=108,
|
||||
serialized_end=321,
|
||||
)
|
||||
|
||||
|
||||
_MFCCCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='MfccCalculatorOptions',
|
||||
full_name='mediapipe.MfccCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='mel_spectrum_params', full_name='mediapipe.MfccCalculatorOptions.mel_spectrum_params', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='mfcc_count', full_name='mediapipe.MfccCalculatorOptions.mfcc_count', index=1,
|
||||
number=2, type=13, cpp_type=3, label=1,
|
||||
has_default_value=True, default_value=13,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.MfccCalculatorOptions.ext', index=0,
|
||||
number=78450441, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=324,
|
||||
serialized_end=521,
|
||||
)
|
||||
|
||||
_MFCCCALCULATOROPTIONS.fields_by_name['mel_spectrum_params'].message_type = _MELSPECTRUMCALCULATOROPTIONS
|
||||
DESCRIPTOR.message_types_by_name['MelSpectrumCalculatorOptions'] = _MELSPECTRUMCALCULATOROPTIONS
|
||||
DESCRIPTOR.message_types_by_name['MfccCalculatorOptions'] = _MFCCCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
MelSpectrumCalculatorOptions = _reflection.GeneratedProtocolMessageType('MelSpectrumCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _MELSPECTRUMCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.audio.mfcc_mel_calculators_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.MelSpectrumCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(MelSpectrumCalculatorOptions)
|
||||
|
||||
MfccCalculatorOptions = _reflection.GeneratedProtocolMessageType('MfccCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _MFCCCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.audio.mfcc_mel_calculators_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.MfccCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(MfccCalculatorOptions)
|
||||
|
||||
_MELSPECTRUMCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _MELSPECTRUMCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_MELSPECTRUMCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
_MFCCCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _MFCCCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_MFCCCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,153 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/audio/rational_factor_resample_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/audio/rational_factor_resample_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\nEmediapipe/calculators/audio/rational_factor_resample_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xac\x03\n\'RationalFactorResampleCalculatorOptions\x12\x1a\n\x12target_sample_rate\x18\x01 \x01(\x01\x12|\n!resampler_rational_factor_options\x18\x02 \x01(\x0b\x32Q.mediapipe.RationalFactorResampleCalculatorOptions.ResamplerRationalFactorOptions\x12+\n\x1d\x63heck_inconsistent_timestamps\x18\x03 \x01(\x08:\x04true\x1aX\n\x1eResamplerRationalFactorOptions\x12\x0e\n\x06radius\x18\x01 \x01(\x01\x12\x0e\n\x06\x63utoff\x18\x02 \x01(\x01\x12\x16\n\x0bkaiser_beta\x18\x03 \x01(\x01:\x01\x36\x32`\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xca\xbf\xee{ \x01(\x0b\x32\x32.mediapipe.RationalFactorResampleCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_RATIONALFACTORRESAMPLECALCULATOROPTIONS_RESAMPLERRATIONALFACTOROPTIONS = _descriptor.Descriptor(
|
||||
name='ResamplerRationalFactorOptions',
|
||||
full_name='mediapipe.RationalFactorResampleCalculatorOptions.ResamplerRationalFactorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='radius', full_name='mediapipe.RationalFactorResampleCalculatorOptions.ResamplerRationalFactorOptions.radius', index=0,
|
||||
number=1, type=1, cpp_type=5, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='cutoff', full_name='mediapipe.RationalFactorResampleCalculatorOptions.ResamplerRationalFactorOptions.cutoff', index=1,
|
||||
number=2, type=1, cpp_type=5, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='kaiser_beta', full_name='mediapipe.RationalFactorResampleCalculatorOptions.ResamplerRationalFactorOptions.kaiser_beta', index=2,
|
||||
number=3, type=1, cpp_type=5, label=1,
|
||||
has_default_value=True, default_value=float(6),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=365,
|
||||
serialized_end=453,
|
||||
)
|
||||
|
||||
_RATIONALFACTORRESAMPLECALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='RationalFactorResampleCalculatorOptions',
|
||||
full_name='mediapipe.RationalFactorResampleCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='target_sample_rate', full_name='mediapipe.RationalFactorResampleCalculatorOptions.target_sample_rate', index=0,
|
||||
number=1, type=1, cpp_type=5, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='resampler_rational_factor_options', full_name='mediapipe.RationalFactorResampleCalculatorOptions.resampler_rational_factor_options', index=1,
|
||||
number=2, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='check_inconsistent_timestamps', full_name='mediapipe.RationalFactorResampleCalculatorOptions.check_inconsistent_timestamps', index=2,
|
||||
number=3, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=True,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.RationalFactorResampleCalculatorOptions.ext', index=0,
|
||||
number=259760074, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[_RATIONALFACTORRESAMPLECALCULATOROPTIONS_RESAMPLERRATIONALFACTOROPTIONS, ],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=123,
|
||||
serialized_end=551,
|
||||
)
|
||||
|
||||
_RATIONALFACTORRESAMPLECALCULATOROPTIONS_RESAMPLERRATIONALFACTOROPTIONS.containing_type = _RATIONALFACTORRESAMPLECALCULATOROPTIONS
|
||||
_RATIONALFACTORRESAMPLECALCULATOROPTIONS.fields_by_name['resampler_rational_factor_options'].message_type = _RATIONALFACTORRESAMPLECALCULATOROPTIONS_RESAMPLERRATIONALFACTOROPTIONS
|
||||
DESCRIPTOR.message_types_by_name['RationalFactorResampleCalculatorOptions'] = _RATIONALFACTORRESAMPLECALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
RationalFactorResampleCalculatorOptions = _reflection.GeneratedProtocolMessageType('RationalFactorResampleCalculatorOptions', (_message.Message,), dict(
|
||||
|
||||
ResamplerRationalFactorOptions = _reflection.GeneratedProtocolMessageType('ResamplerRationalFactorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _RATIONALFACTORRESAMPLECALCULATOROPTIONS_RESAMPLERRATIONALFACTOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.audio.rational_factor_resample_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.RationalFactorResampleCalculatorOptions.ResamplerRationalFactorOptions)
|
||||
))
|
||||
,
|
||||
DESCRIPTOR = _RATIONALFACTORRESAMPLECALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.audio.rational_factor_resample_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.RationalFactorResampleCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(RationalFactorResampleCalculatorOptions)
|
||||
_sym_db.RegisterMessage(RationalFactorResampleCalculatorOptions.ResamplerRationalFactorOptions)
|
||||
|
||||
_RATIONALFACTORRESAMPLECALCULATOROPTIONS.extensions_by_name['ext'].message_type = _RATIONALFACTORRESAMPLECALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_RATIONALFACTORRESAMPLECALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,196 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/audio/spectrogram_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/audio/spectrogram_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n8mediapipe/calculators/audio/spectrogram_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xef\x04\n\x1cSpectrogramCalculatorOptions\x12\x1e\n\x16\x66rame_duration_seconds\x18\x01 \x01(\x01\x12 \n\x15\x66rame_overlap_seconds\x18\x02 \x01(\x01:\x01\x30\x12\x1e\n\x10pad_final_packet\x18\x03 \x01(\x08:\x04true\x12Z\n\x0boutput_type\x18\x04 \x01(\x0e\x32\x32.mediapipe.SpectrogramCalculatorOptions.OutputType:\x11SQUARED_MAGNITUDE\x12\'\n\x18\x61llow_multichannel_input\x18\x05 \x01(\x08:\x05\x66\x61lse\x12M\n\x0bwindow_type\x18\x06 \x01(\x0e\x32\x32.mediapipe.SpectrogramCalculatorOptions.WindowType:\x04HANN\x12\x17\n\x0coutput_scale\x18\x07 \x01(\x01:\x01\x31\x12\"\n\x13use_local_timestamp\x18\x08 \x01(\x08:\x05\x66\x61lse\"T\n\nOutputType\x12\x15\n\x11SQUARED_MAGNITUDE\x10\x00\x12\x14\n\x10LINEAR_MAGNITUDE\x10\x01\x12\x0c\n\x08\x44\x45\x43IBELS\x10\x02\x12\x0b\n\x07\x43OMPLEX\x10\x03\"/\n\nWindowType\x12\x08\n\x04HANN\x10\x00\x12\x0b\n\x07HAMMING\x10\x01\x12\n\n\x06\x43OSINE\x10\x02\x32U\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xc0\x88\xaa$ \x01(\x0b\x32\'.mediapipe.SpectrogramCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
_SPECTROGRAMCALCULATOROPTIONS_OUTPUTTYPE = _descriptor.EnumDescriptor(
|
||||
name='OutputType',
|
||||
full_name='mediapipe.SpectrogramCalculatorOptions.OutputType',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SQUARED_MAGNITUDE', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='LINEAR_MAGNITUDE', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='DECIBELS', index=2, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='COMPLEX', index=3, number=3,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=513,
|
||||
serialized_end=597,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_SPECTROGRAMCALCULATOROPTIONS_OUTPUTTYPE)
|
||||
|
||||
_SPECTROGRAMCALCULATOROPTIONS_WINDOWTYPE = _descriptor.EnumDescriptor(
|
||||
name='WindowType',
|
||||
full_name='mediapipe.SpectrogramCalculatorOptions.WindowType',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='HANN', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='HAMMING', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='COSINE', index=2, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=599,
|
||||
serialized_end=646,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_SPECTROGRAMCALCULATOROPTIONS_WINDOWTYPE)
|
||||
|
||||
|
||||
_SPECTROGRAMCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='SpectrogramCalculatorOptions',
|
||||
full_name='mediapipe.SpectrogramCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='frame_duration_seconds', full_name='mediapipe.SpectrogramCalculatorOptions.frame_duration_seconds', index=0,
|
||||
number=1, type=1, cpp_type=5, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='frame_overlap_seconds', full_name='mediapipe.SpectrogramCalculatorOptions.frame_overlap_seconds', index=1,
|
||||
number=2, type=1, cpp_type=5, label=1,
|
||||
has_default_value=True, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='pad_final_packet', full_name='mediapipe.SpectrogramCalculatorOptions.pad_final_packet', index=2,
|
||||
number=3, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=True,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='output_type', full_name='mediapipe.SpectrogramCalculatorOptions.output_type', index=3,
|
||||
number=4, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='allow_multichannel_input', full_name='mediapipe.SpectrogramCalculatorOptions.allow_multichannel_input', index=4,
|
||||
number=5, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='window_type', full_name='mediapipe.SpectrogramCalculatorOptions.window_type', index=5,
|
||||
number=6, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='output_scale', full_name='mediapipe.SpectrogramCalculatorOptions.output_scale', index=6,
|
||||
number=7, type=1, cpp_type=5, label=1,
|
||||
has_default_value=True, default_value=float(1),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='use_local_timestamp', full_name='mediapipe.SpectrogramCalculatorOptions.use_local_timestamp', index=7,
|
||||
number=8, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.SpectrogramCalculatorOptions.ext', index=0,
|
||||
number=76186688, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_SPECTROGRAMCALCULATOROPTIONS_OUTPUTTYPE,
|
||||
_SPECTROGRAMCALCULATOROPTIONS_WINDOWTYPE,
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=110,
|
||||
serialized_end=733,
|
||||
)
|
||||
|
||||
_SPECTROGRAMCALCULATOROPTIONS.fields_by_name['output_type'].enum_type = _SPECTROGRAMCALCULATOROPTIONS_OUTPUTTYPE
|
||||
_SPECTROGRAMCALCULATOROPTIONS.fields_by_name['window_type'].enum_type = _SPECTROGRAMCALCULATOROPTIONS_WINDOWTYPE
|
||||
_SPECTROGRAMCALCULATOROPTIONS_OUTPUTTYPE.containing_type = _SPECTROGRAMCALCULATOROPTIONS
|
||||
_SPECTROGRAMCALCULATOROPTIONS_WINDOWTYPE.containing_type = _SPECTROGRAMCALCULATOROPTIONS
|
||||
DESCRIPTOR.message_types_by_name['SpectrogramCalculatorOptions'] = _SPECTROGRAMCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
SpectrogramCalculatorOptions = _reflection.GeneratedProtocolMessageType('SpectrogramCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _SPECTROGRAMCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.audio.spectrogram_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.SpectrogramCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(SpectrogramCalculatorOptions)
|
||||
|
||||
_SPECTROGRAMCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _SPECTROGRAMCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_SPECTROGRAMCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,99 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/audio/stabilized_log_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/audio/stabilized_log_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n;mediapipe/calculators/audio/stabilized_log_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xd0\x01\n\x1eStabilizedLogCalculatorOptions\x12\x19\n\nstabilizer\x18\x01 \x01(\x02:\x05\x31\x65-05\x12!\n\x13\x63heck_nonnegativity\x18\x02 \x01(\x08:\x04true\x12\x17\n\x0coutput_scale\x18\x03 \x01(\x01:\x01\x31\x32W\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xe3\xa1\xd0\x30 \x01(\x0b\x32).mediapipe.StabilizedLogCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_STABILIZEDLOGCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='StabilizedLogCalculatorOptions',
|
||||
full_name='mediapipe.StabilizedLogCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='stabilizer', full_name='mediapipe.StabilizedLogCalculatorOptions.stabilizer', index=0,
|
||||
number=1, type=2, cpp_type=6, label=1,
|
||||
has_default_value=True, default_value=float(1e-05),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='check_nonnegativity', full_name='mediapipe.StabilizedLogCalculatorOptions.check_nonnegativity', index=1,
|
||||
number=2, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=True,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='output_scale', full_name='mediapipe.StabilizedLogCalculatorOptions.output_scale', index=2,
|
||||
number=3, type=1, cpp_type=5, label=1,
|
||||
has_default_value=True, default_value=float(1),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.StabilizedLogCalculatorOptions.ext', index=0,
|
||||
number=101978339, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=113,
|
||||
serialized_end=321,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['StabilizedLogCalculatorOptions'] = _STABILIZEDLOGCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
StabilizedLogCalculatorOptions = _reflection.GeneratedProtocolMessageType('StabilizedLogCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _STABILIZEDLOGCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.audio.stabilized_log_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.StabilizedLogCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(StabilizedLogCalculatorOptions)
|
||||
|
||||
_STABILIZEDLOGCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _STABILIZEDLOGCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_STABILIZEDLOGCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,149 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/audio/time_series_framer_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/audio/time_series_framer_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n?mediapipe/calculators/audio/time_series_framer_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xc5\x03\n!TimeSeriesFramerCalculatorOptions\x12\x1e\n\x16\x66rame_duration_seconds\x18\x01 \x01(\x01\x12 \n\x15\x66rame_overlap_seconds\x18\x02 \x01(\x01:\x01\x30\x12/\n emulate_fractional_frame_overlap\x18\x05 \x01(\x08:\x05\x66\x61lse\x12\x1e\n\x10pad_final_packet\x18\x03 \x01(\x08:\x04true\x12Z\n\x0fwindow_function\x18\x04 \x01(\x0e\x32;.mediapipe.TimeSeriesFramerCalculatorOptions.WindowFunction:\x04NONE\x12\"\n\x13use_local_timestamp\x18\x06 \x01(\x08:\x05\x66\x61lse\"1\n\x0eWindowFunction\x12\x08\n\x04NONE\x10\x00\x12\x0b\n\x07HAMMING\x10\x01\x12\x08\n\x04HANN\x10\x02\x32Z\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xc5\xa7\x92\x18 \x01(\x0b\x32,.mediapipe.TimeSeriesFramerCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
_TIMESERIESFRAMERCALCULATOROPTIONS_WINDOWFUNCTION = _descriptor.EnumDescriptor(
|
||||
name='WindowFunction',
|
||||
full_name='mediapipe.TimeSeriesFramerCalculatorOptions.WindowFunction',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='NONE', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='HAMMING', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='HANN', index=2, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=429,
|
||||
serialized_end=478,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_TIMESERIESFRAMERCALCULATOROPTIONS_WINDOWFUNCTION)
|
||||
|
||||
|
||||
_TIMESERIESFRAMERCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='TimeSeriesFramerCalculatorOptions',
|
||||
full_name='mediapipe.TimeSeriesFramerCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='frame_duration_seconds', full_name='mediapipe.TimeSeriesFramerCalculatorOptions.frame_duration_seconds', index=0,
|
||||
number=1, type=1, cpp_type=5, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='frame_overlap_seconds', full_name='mediapipe.TimeSeriesFramerCalculatorOptions.frame_overlap_seconds', index=1,
|
||||
number=2, type=1, cpp_type=5, label=1,
|
||||
has_default_value=True, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='emulate_fractional_frame_overlap', full_name='mediapipe.TimeSeriesFramerCalculatorOptions.emulate_fractional_frame_overlap', index=2,
|
||||
number=5, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='pad_final_packet', full_name='mediapipe.TimeSeriesFramerCalculatorOptions.pad_final_packet', index=3,
|
||||
number=3, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=True,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='window_function', full_name='mediapipe.TimeSeriesFramerCalculatorOptions.window_function', index=4,
|
||||
number=4, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='use_local_timestamp', full_name='mediapipe.TimeSeriesFramerCalculatorOptions.use_local_timestamp', index=5,
|
||||
number=6, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.TimeSeriesFramerCalculatorOptions.ext', index=0,
|
||||
number=50631621, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_TIMESERIESFRAMERCALCULATOROPTIONS_WINDOWFUNCTION,
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=117,
|
||||
serialized_end=570,
|
||||
)
|
||||
|
||||
_TIMESERIESFRAMERCALCULATOROPTIONS.fields_by_name['window_function'].enum_type = _TIMESERIESFRAMERCALCULATOROPTIONS_WINDOWFUNCTION
|
||||
_TIMESERIESFRAMERCALCULATOROPTIONS_WINDOWFUNCTION.containing_type = _TIMESERIESFRAMERCALCULATOROPTIONS
|
||||
DESCRIPTOR.message_types_by_name['TimeSeriesFramerCalculatorOptions'] = _TIMESERIESFRAMERCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
TimeSeriesFramerCalculatorOptions = _reflection.GeneratedProtocolMessageType('TimeSeriesFramerCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _TIMESERIESFRAMERCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.audio.time_series_framer_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.TimeSeriesFramerCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(TimeSeriesFramerCalculatorOptions)
|
||||
|
||||
_TIMESERIESFRAMERCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _TIMESERIESFRAMERCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_TIMESERIESFRAMERCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,86 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/core/clip_vector_size_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/core/clip_vector_size_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=_b('\242\002\tMediaPipe'),
|
||||
serialized_pb=_b('\n<mediapipe/calculators/core/clip_vector_size_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\x95\x01\n\x1f\x43lipVectorSizeCalculatorOptions\x12\x17\n\x0cmax_vec_size\x18\x01 \x01(\x05:\x01\x31\x32Y\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xb6\xea\xfc\x82\x01 \x01(\x0b\x32*.mediapipe.ClipVectorSizeCalculatorOptionsB\x0c\xa2\x02\tMediaPipe')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_CLIPVECTORSIZECALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='ClipVectorSizeCalculatorOptions',
|
||||
full_name='mediapipe.ClipVectorSizeCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='max_vec_size', full_name='mediapipe.ClipVectorSizeCalculatorOptions.max_vec_size', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.ClipVectorSizeCalculatorOptions.ext', index=0,
|
||||
number=274674998, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=114,
|
||||
serialized_end=263,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['ClipVectorSizeCalculatorOptions'] = _CLIPVECTORSIZECALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
ClipVectorSizeCalculatorOptions = _reflection.GeneratedProtocolMessageType('ClipVectorSizeCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CLIPVECTORSIZECALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.core.clip_vector_size_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.ClipVectorSizeCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(ClipVectorSizeCalculatorOptions)
|
||||
|
||||
_CLIPVECTORSIZECALCULATOROPTIONS.extensions_by_name['ext'].message_type = _CLIPVECTORSIZECALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_CLIPVECTORSIZECALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,86 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/core/concatenate_vector_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/core/concatenate_vector_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=_b('\242\002\tMediaPipe'),
|
||||
serialized_pb=_b('\n>mediapipe/calculators/core/concatenate_vector_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xaa\x01\n\"ConcatenateVectorCalculatorOptions\x12\'\n\x18only_emit_if_all_present\x18\x01 \x01(\x08:\x05\x66\x61lse2[\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xcf\xb1\xd8{ \x01(\x0b\x32-.mediapipe.ConcatenateVectorCalculatorOptionsB\x0c\xa2\x02\tMediaPipe')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_CONCATENATEVECTORCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='ConcatenateVectorCalculatorOptions',
|
||||
full_name='mediapipe.ConcatenateVectorCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='only_emit_if_all_present', full_name='mediapipe.ConcatenateVectorCalculatorOptions.only_emit_if_all_present', index=0,
|
||||
number=1, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.ConcatenateVectorCalculatorOptions.ext', index=0,
|
||||
number=259397839, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=116,
|
||||
serialized_end=286,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['ConcatenateVectorCalculatorOptions'] = _CONCATENATEVECTORCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
ConcatenateVectorCalculatorOptions = _reflection.GeneratedProtocolMessageType('ConcatenateVectorCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CONCATENATEVECTORCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.core.concatenate_vector_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.ConcatenateVectorCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(ConcatenateVectorCalculatorOptions)
|
||||
|
||||
_CONCATENATEVECTORCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _CONCATENATEVECTORCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_CONCATENATEVECTORCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,184 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/core/constant_side_packet_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.framework.formats import classification_pb2 as mediapipe_dot_framework_dot_formats_dot_classification__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='mediapipe/calculators/core/constant_side_packet_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=_b('\242\002\tMediaPipe'),
|
||||
serialized_pb=_b('\n@mediapipe/calculators/core/constant_side_packet_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\x1a\x30mediapipe/framework/formats/classification.proto\"\xad\x03\n#ConstantSidePacketCalculatorOptions\x12Q\n\x06packet\x18\x01 \x03(\x0b\x32\x41.mediapipe.ConstantSidePacketCalculatorOptions.ConstantSidePacket\x1a\xd3\x01\n\x12\x43onstantSidePacket\x12\x13\n\tint_value\x18\x01 \x01(\x05H\x00\x12\x15\n\x0b\x66loat_value\x18\x02 \x01(\x02H\x00\x12\x14\n\nbool_value\x18\x03 \x01(\x08H\x00\x12\x16\n\x0cstring_value\x18\x04 \x01(\tH\x00\x12\x16\n\x0cuint64_value\x18\x05 \x01(\x04H\x00\x12\x42\n\x19\x63lassification_list_value\x18\x06 \x01(\x0b\x32\x1d.mediapipe.ClassificationListH\x00\x42\x07\n\x05value2]\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\x85\xaa\xee\x8a\x01 \x01(\x0b\x32..mediapipe.ConstantSidePacketCalculatorOptionsB\x0c\xa2\x02\tMediaPipe')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,mediapipe_dot_framework_dot_formats_dot_classification__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET = _descriptor.Descriptor(
|
||||
name='ConstantSidePacket',
|
||||
full_name='mediapipe.ConstantSidePacketCalculatorOptions.ConstantSidePacket',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='int_value', full_name='mediapipe.ConstantSidePacketCalculatorOptions.ConstantSidePacket.int_value', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='float_value', full_name='mediapipe.ConstantSidePacketCalculatorOptions.ConstantSidePacket.float_value', index=1,
|
||||
number=2, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='bool_value', full_name='mediapipe.ConstantSidePacketCalculatorOptions.ConstantSidePacket.bool_value', index=2,
|
||||
number=3, type=8, cpp_type=7, label=1,
|
||||
has_default_value=False, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='string_value', full_name='mediapipe.ConstantSidePacketCalculatorOptions.ConstantSidePacket.string_value', index=3,
|
||||
number=4, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='uint64_value', full_name='mediapipe.ConstantSidePacketCalculatorOptions.ConstantSidePacket.uint64_value', index=4,
|
||||
number=5, type=4, cpp_type=4, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='classification_list_value', full_name='mediapipe.ConstantSidePacketCalculatorOptions.ConstantSidePacket.classification_list_value', index=5,
|
||||
number=6, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
_descriptor.OneofDescriptor(
|
||||
name='value', full_name='mediapipe.ConstantSidePacketCalculatorOptions.ConstantSidePacket.value',
|
||||
index=0, containing_type=None, fields=[]),
|
||||
],
|
||||
serialized_start=291,
|
||||
serialized_end=502,
|
||||
)
|
||||
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='ConstantSidePacketCalculatorOptions',
|
||||
full_name='mediapipe.ConstantSidePacketCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='packet', full_name='mediapipe.ConstantSidePacketCalculatorOptions.packet', index=0,
|
||||
number=1, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.ConstantSidePacketCalculatorOptions.ext', index=0,
|
||||
number=291214597, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET, ],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=168,
|
||||
serialized_end=597,
|
||||
)
|
||||
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.fields_by_name['classification_list_value'].message_type = mediapipe_dot_framework_dot_formats_dot_classification__pb2._CLASSIFICATIONLIST
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.containing_type = _CONSTANTSIDEPACKETCALCULATOROPTIONS
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.oneofs_by_name['value'].fields.append(
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.fields_by_name['int_value'])
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.fields_by_name['int_value'].containing_oneof = _CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.oneofs_by_name['value']
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.oneofs_by_name['value'].fields.append(
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.fields_by_name['float_value'])
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.fields_by_name['float_value'].containing_oneof = _CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.oneofs_by_name['value']
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.oneofs_by_name['value'].fields.append(
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.fields_by_name['bool_value'])
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.fields_by_name['bool_value'].containing_oneof = _CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.oneofs_by_name['value']
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.oneofs_by_name['value'].fields.append(
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.fields_by_name['string_value'])
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.fields_by_name['string_value'].containing_oneof = _CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.oneofs_by_name['value']
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.oneofs_by_name['value'].fields.append(
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.fields_by_name['uint64_value'])
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.fields_by_name['uint64_value'].containing_oneof = _CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.oneofs_by_name['value']
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.oneofs_by_name['value'].fields.append(
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.fields_by_name['classification_list_value'])
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.fields_by_name['classification_list_value'].containing_oneof = _CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET.oneofs_by_name['value']
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS.fields_by_name['packet'].message_type = _CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET
|
||||
DESCRIPTOR.message_types_by_name['ConstantSidePacketCalculatorOptions'] = _CONSTANTSIDEPACKETCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
ConstantSidePacketCalculatorOptions = _reflection.GeneratedProtocolMessageType('ConstantSidePacketCalculatorOptions', (_message.Message,), dict(
|
||||
|
||||
ConstantSidePacket = _reflection.GeneratedProtocolMessageType('ConstantSidePacket', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CONSTANTSIDEPACKETCALCULATOROPTIONS_CONSTANTSIDEPACKET,
|
||||
__module__ = 'mediapipe.calculators.core.constant_side_packet_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.ConstantSidePacketCalculatorOptions.ConstantSidePacket)
|
||||
))
|
||||
,
|
||||
DESCRIPTOR = _CONSTANTSIDEPACKETCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.core.constant_side_packet_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.ConstantSidePacketCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(ConstantSidePacketCalculatorOptions)
|
||||
_sym_db.RegisterMessage(ConstantSidePacketCalculatorOptions.ConstantSidePacket)
|
||||
|
||||
_CONSTANTSIDEPACKETCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _CONSTANTSIDEPACKETCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_CONSTANTSIDEPACKETCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,93 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/core/dequantize_byte_array_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/core/dequantize_byte_array_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=_b('\242\002\tMediaPipe'),
|
||||
serialized_pb=_b('\nAmediapipe/calculators/core/dequantize_byte_array_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xc0\x01\n$DequantizeByteArrayCalculatorOptions\x12\x1b\n\x13max_quantized_value\x18\x01 \x01(\x02\x12\x1b\n\x13min_quantized_value\x18\x02 \x01(\x02\x32^\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xb7\xef\xec\x81\x01 \x01(\x0b\x32/.mediapipe.DequantizeByteArrayCalculatorOptionsB\x0c\xa2\x02\tMediaPipe')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_DEQUANTIZEBYTEARRAYCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='DequantizeByteArrayCalculatorOptions',
|
||||
full_name='mediapipe.DequantizeByteArrayCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='max_quantized_value', full_name='mediapipe.DequantizeByteArrayCalculatorOptions.max_quantized_value', index=0,
|
||||
number=1, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='min_quantized_value', full_name='mediapipe.DequantizeByteArrayCalculatorOptions.min_quantized_value', index=1,
|
||||
number=2, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.DequantizeByteArrayCalculatorOptions.ext', index=0,
|
||||
number=272316343, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=119,
|
||||
serialized_end=311,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['DequantizeByteArrayCalculatorOptions'] = _DEQUANTIZEBYTEARRAYCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
DequantizeByteArrayCalculatorOptions = _reflection.GeneratedProtocolMessageType('DequantizeByteArrayCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _DEQUANTIZEBYTEARRAYCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.core.dequantize_byte_array_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.DequantizeByteArrayCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(DequantizeByteArrayCalculatorOptions)
|
||||
|
||||
_DEQUANTIZEBYTEARRAYCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _DEQUANTIZEBYTEARRAYCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_DEQUANTIZEBYTEARRAYCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,100 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/core/flow_limiter_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/core/flow_limiter_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=_b('\242\002\tMediaPipe'),
|
||||
serialized_pb=_b('\n8mediapipe/calculators/core/flow_limiter_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xcd\x01\n\x1c\x46lowLimiterCalculatorOptions\x12\x18\n\rmax_in_flight\x18\x01 \x01(\x05:\x01\x31\x12\x17\n\x0cmax_in_queue\x18\x02 \x01(\x05:\x01\x30\x12\"\n\x11in_flight_timeout\x18\x03 \x01(\x03:\x07\x31\x30\x30\x30\x30\x30\x30\x32V\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xf8\xa0\xf4\x9b\x01 \x01(\x0b\x32\'.mediapipe.FlowLimiterCalculatorOptionsB\x0c\xa2\x02\tMediaPipe')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_FLOWLIMITERCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='FlowLimiterCalculatorOptions',
|
||||
full_name='mediapipe.FlowLimiterCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='max_in_flight', full_name='mediapipe.FlowLimiterCalculatorOptions.max_in_flight', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='max_in_queue', full_name='mediapipe.FlowLimiterCalculatorOptions.max_in_queue', index=1,
|
||||
number=2, type=5, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='in_flight_timeout', full_name='mediapipe.FlowLimiterCalculatorOptions.in_flight_timeout', index=2,
|
||||
number=3, type=3, cpp_type=2, label=1,
|
||||
has_default_value=True, default_value=1000000,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.FlowLimiterCalculatorOptions.ext', index=0,
|
||||
number=326963320, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=110,
|
||||
serialized_end=315,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['FlowLimiterCalculatorOptions'] = _FLOWLIMITERCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
FlowLimiterCalculatorOptions = _reflection.GeneratedProtocolMessageType('FlowLimiterCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _FLOWLIMITERCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.core.flow_limiter_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.FlowLimiterCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(FlowLimiterCalculatorOptions)
|
||||
|
||||
_FLOWLIMITERCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _FLOWLIMITERCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_FLOWLIMITERCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,86 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/core/gate_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/core/gate_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=_b('\242\002\tMediaPipe'),
|
||||
serialized_pb=_b('\n0mediapipe/calculators/core/gate_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\x87\x01\n\x15GateCalculatorOptions\x12\x1e\n\x16\x65mpty_packets_as_allow\x18\x01 \x01(\x08\x32N\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xdf\x9f\xe8| \x01(\x0b\x32 .mediapipe.GateCalculatorOptionsB\x0c\xa2\x02\tMediaPipe')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_GATECALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='GateCalculatorOptions',
|
||||
full_name='mediapipe.GateCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='empty_packets_as_allow', full_name='mediapipe.GateCalculatorOptions.empty_packets_as_allow', index=0,
|
||||
number=1, type=8, cpp_type=7, label=1,
|
||||
has_default_value=False, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.GateCalculatorOptions.ext', index=0,
|
||||
number=261754847, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=102,
|
||||
serialized_end=237,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['GateCalculatorOptions'] = _GATECALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
GateCalculatorOptions = _reflection.GeneratedProtocolMessageType('GateCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _GATECALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.core.gate_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.GateCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(GateCalculatorOptions)
|
||||
|
||||
_GATECALCULATOROPTIONS.extensions_by_name['ext'].message_type = _GATECALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_GATECALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,86 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/core/graph_profile_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/core/graph_profile_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=_b('\242\002\tMediaPipe'),
|
||||
serialized_pb=_b('\n9mediapipe/calculators/core/graph_profile_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\x9b\x01\n\x1dGraphProfileCalculatorOptions\x12!\n\x10profile_interval\x18\x01 \x01(\x03:\x07\x31\x30\x30\x30\x30\x30\x30\x32W\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xd7\xa7\x9d\xaf\x01 \x01(\x0b\x32(.mediapipe.GraphProfileCalculatorOptionsB\x0c\xa2\x02\tMediaPipe')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_GRAPHPROFILECALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='GraphProfileCalculatorOptions',
|
||||
full_name='mediapipe.GraphProfileCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='profile_interval', full_name='mediapipe.GraphProfileCalculatorOptions.profile_interval', index=0,
|
||||
number=1, type=3, cpp_type=2, label=1,
|
||||
has_default_value=True, default_value=1000000,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.GraphProfileCalculatorOptions.ext', index=0,
|
||||
number=367481815, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=111,
|
||||
serialized_end=266,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['GraphProfileCalculatorOptions'] = _GRAPHPROFILECALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
GraphProfileCalculatorOptions = _reflection.GeneratedProtocolMessageType('GraphProfileCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _GRAPHPROFILECALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.core.graph_profile_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.GraphProfileCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(GraphProfileCalculatorOptions)
|
||||
|
||||
_GRAPHPROFILECALCULATOROPTIONS.extensions_by_name['ext'].message_type = _GRAPHPROFILECALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_GRAPHPROFILECALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,86 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/core/packet_cloner_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/core/packet_cloner_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=_b('\242\002\tMediaPipe'),
|
||||
serialized_pb=_b('\n9mediapipe/calculators/core/packet_cloner_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xac\x01\n\x1dPacketClonerCalculatorOptions\x12\x33\n$output_only_when_all_inputs_received\x18\x01 \x01(\x08:\x05\x66\x61lse2V\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\x95\xa6\xb8{ \x01(\x0b\x32(.mediapipe.PacketClonerCalculatorOptionsB\x0c\xa2\x02\tMediaPipe')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_PACKETCLONERCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='PacketClonerCalculatorOptions',
|
||||
full_name='mediapipe.PacketClonerCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='output_only_when_all_inputs_received', full_name='mediapipe.PacketClonerCalculatorOptions.output_only_when_all_inputs_received', index=0,
|
||||
number=1, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.PacketClonerCalculatorOptions.ext', index=0,
|
||||
number=258872085, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=111,
|
||||
serialized_end=283,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['PacketClonerCalculatorOptions'] = _PACKETCLONERCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
PacketClonerCalculatorOptions = _reflection.GeneratedProtocolMessageType('PacketClonerCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _PACKETCLONERCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.core.packet_cloner_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.PacketClonerCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(PacketClonerCalculatorOptions)
|
||||
|
||||
_PACKETCLONERCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _PACKETCLONERCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_PACKETCLONERCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,178 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/core/packet_resampler_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/core/packet_resampler_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=_b('\242\002\tMediaPipe'),
|
||||
serialized_pb=_b('\n<mediapipe/calculators/core/packet_resampler_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\x89\x04\n PacketResamplerCalculatorOptions\x12\x16\n\nframe_rate\x18\x01 \x01(\x01:\x02-1\x12U\n\routput_header\x18\x02 \x01(\x0e\x32\x38.mediapipe.PacketResamplerCalculatorOptions.OutputHeader:\x04NONE\x12\x1f\n\x11\x66lush_last_packet\x18\x03 \x01(\x08:\x04true\x12\x0e\n\x06jitter\x18\x04 \x01(\x01\x12%\n\x16jitter_with_reflection\x18\t \x01(\x08:\x05\x66\x61lse\x12$\n\x15reproducible_sampling\x18\n \x01(\x08:\x05\x66\x61lse\x12\x16\n\x0e\x62\x61se_timestamp\x18\x05 \x01(\x03\x12\x12\n\nstart_time\x18\x06 \x01(\x03\x12\x10\n\x08\x65nd_time\x18\x07 \x01(\x03\x12\x1b\n\x0cround_limits\x18\x08 \x01(\x08:\x05\x66\x61lse\"B\n\x0cOutputHeader\x12\x08\n\x04NONE\x10\x00\x12\x0f\n\x0bPASS_HEADER\x10\x01\x12\x17\n\x13UPDATE_VIDEO_HEADER\x10\x02\x32Y\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xe4\xde\xd3- \x01(\x0b\x32+.mediapipe.PacketResamplerCalculatorOptionsB\x0c\xa2\x02\tMediaPipe')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
_PACKETRESAMPLERCALCULATOROPTIONS_OUTPUTHEADER = _descriptor.EnumDescriptor(
|
||||
name='OutputHeader',
|
||||
full_name='mediapipe.PacketResamplerCalculatorOptions.OutputHeader',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='NONE', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='PASS_HEADER', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UPDATE_VIDEO_HEADER', index=2, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=478,
|
||||
serialized_end=544,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_PACKETRESAMPLERCALCULATOROPTIONS_OUTPUTHEADER)
|
||||
|
||||
|
||||
_PACKETRESAMPLERCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='PacketResamplerCalculatorOptions',
|
||||
full_name='mediapipe.PacketResamplerCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='frame_rate', full_name='mediapipe.PacketResamplerCalculatorOptions.frame_rate', index=0,
|
||||
number=1, type=1, cpp_type=5, label=1,
|
||||
has_default_value=True, default_value=float(-1),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='output_header', full_name='mediapipe.PacketResamplerCalculatorOptions.output_header', index=1,
|
||||
number=2, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='flush_last_packet', full_name='mediapipe.PacketResamplerCalculatorOptions.flush_last_packet', index=2,
|
||||
number=3, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=True,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='jitter', full_name='mediapipe.PacketResamplerCalculatorOptions.jitter', index=3,
|
||||
number=4, type=1, cpp_type=5, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='jitter_with_reflection', full_name='mediapipe.PacketResamplerCalculatorOptions.jitter_with_reflection', index=4,
|
||||
number=9, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='reproducible_sampling', full_name='mediapipe.PacketResamplerCalculatorOptions.reproducible_sampling', index=5,
|
||||
number=10, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='base_timestamp', full_name='mediapipe.PacketResamplerCalculatorOptions.base_timestamp', index=6,
|
||||
number=5, type=3, cpp_type=2, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='start_time', full_name='mediapipe.PacketResamplerCalculatorOptions.start_time', index=7,
|
||||
number=6, type=3, cpp_type=2, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='end_time', full_name='mediapipe.PacketResamplerCalculatorOptions.end_time', index=8,
|
||||
number=7, type=3, cpp_type=2, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='round_limits', full_name='mediapipe.PacketResamplerCalculatorOptions.round_limits', index=9,
|
||||
number=8, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.PacketResamplerCalculatorOptions.ext', index=0,
|
||||
number=95743844, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_PACKETRESAMPLERCALCULATOROPTIONS_OUTPUTHEADER,
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=114,
|
||||
serialized_end=635,
|
||||
)
|
||||
|
||||
_PACKETRESAMPLERCALCULATOROPTIONS.fields_by_name['output_header'].enum_type = _PACKETRESAMPLERCALCULATOROPTIONS_OUTPUTHEADER
|
||||
_PACKETRESAMPLERCALCULATOROPTIONS_OUTPUTHEADER.containing_type = _PACKETRESAMPLERCALCULATOROPTIONS
|
||||
DESCRIPTOR.message_types_by_name['PacketResamplerCalculatorOptions'] = _PACKETRESAMPLERCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
PacketResamplerCalculatorOptions = _reflection.GeneratedProtocolMessageType('PacketResamplerCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _PACKETRESAMPLERCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.core.packet_resampler_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.PacketResamplerCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(PacketResamplerCalculatorOptions)
|
||||
|
||||
_PACKETRESAMPLERCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _PACKETRESAMPLERCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_PACKETRESAMPLERCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,146 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/core/packet_thinner_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/core/packet_thinner_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=_b('\242\002\tMediaPipe'),
|
||||
serialized_pb=_b('\n:mediapipe/calculators/core/packet_thinner_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xf3\x02\n\x1ePacketThinnerCalculatorOptions\x12R\n\x0cthinner_type\x18\x01 \x01(\x0e\x32\x35.mediapipe.PacketThinnerCalculatorOptions.ThinnerType:\x05\x41SYNC\x12\x11\n\x06period\x18\x02 \x01(\x03:\x01\x31\x12\x12\n\nstart_time\x18\x03 \x01(\x03\x12\x10\n\x08\x65nd_time\x18\x04 \x01(\x03\x12$\n\x16sync_output_timestamps\x18\x05 \x01(\x08:\x04true\x12 \n\x11update_frame_rate\x18\x06 \x01(\x08:\x05\x66\x61lse\"\"\n\x0bThinnerType\x12\t\n\x05\x41SYNC\x10\x01\x12\x08\n\x04SYNC\x10\x02\x32X\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\x84\xd8\xca\x89\x01 \x01(\x0b\x32).mediapipe.PacketThinnerCalculatorOptionsB\x0c\xa2\x02\tMediaPipe')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
_PACKETTHINNERCALCULATOROPTIONS_THINNERTYPE = _descriptor.EnumDescriptor(
|
||||
name='ThinnerType',
|
||||
full_name='mediapipe.PacketThinnerCalculatorOptions.ThinnerType',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ASYNC', index=0, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SYNC', index=1, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=359,
|
||||
serialized_end=393,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_PACKETTHINNERCALCULATOROPTIONS_THINNERTYPE)
|
||||
|
||||
|
||||
_PACKETTHINNERCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='PacketThinnerCalculatorOptions',
|
||||
full_name='mediapipe.PacketThinnerCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='thinner_type', full_name='mediapipe.PacketThinnerCalculatorOptions.thinner_type', index=0,
|
||||
number=1, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='period', full_name='mediapipe.PacketThinnerCalculatorOptions.period', index=1,
|
||||
number=2, type=3, cpp_type=2, label=1,
|
||||
has_default_value=True, default_value=1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='start_time', full_name='mediapipe.PacketThinnerCalculatorOptions.start_time', index=2,
|
||||
number=3, type=3, cpp_type=2, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='end_time', full_name='mediapipe.PacketThinnerCalculatorOptions.end_time', index=3,
|
||||
number=4, type=3, cpp_type=2, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='sync_output_timestamps', full_name='mediapipe.PacketThinnerCalculatorOptions.sync_output_timestamps', index=4,
|
||||
number=5, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=True,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='update_frame_rate', full_name='mediapipe.PacketThinnerCalculatorOptions.update_frame_rate', index=5,
|
||||
number=6, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.PacketThinnerCalculatorOptions.ext', index=0,
|
||||
number=288533508, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_PACKETTHINNERCALCULATOROPTIONS_THINNERTYPE,
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=112,
|
||||
serialized_end=483,
|
||||
)
|
||||
|
||||
_PACKETTHINNERCALCULATOROPTIONS.fields_by_name['thinner_type'].enum_type = _PACKETTHINNERCALCULATOROPTIONS_THINNERTYPE
|
||||
_PACKETTHINNERCALCULATOROPTIONS_THINNERTYPE.containing_type = _PACKETTHINNERCALCULATOROPTIONS
|
||||
DESCRIPTOR.message_types_by_name['PacketThinnerCalculatorOptions'] = _PACKETTHINNERCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
PacketThinnerCalculatorOptions = _reflection.GeneratedProtocolMessageType('PacketThinnerCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _PACKETTHINNERCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.core.packet_thinner_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.PacketThinnerCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(PacketThinnerCalculatorOptions)
|
||||
|
||||
_PACKETTHINNERCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _PACKETTHINNERCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_PACKETTHINNERCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,93 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/core/quantize_float_vector_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/core/quantize_float_vector_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=_b('\242\002\tMediaPipe'),
|
||||
serialized_pb=_b('\nAmediapipe/calculators/core/quantize_float_vector_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xbf\x01\n$QuantizeFloatVectorCalculatorOptions\x12\x1b\n\x13max_quantized_value\x18\x01 \x01(\x02\x12\x1b\n\x13min_quantized_value\x18\x02 \x01(\x02\x32]\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xfd\xee\xf3{ \x01(\x0b\x32/.mediapipe.QuantizeFloatVectorCalculatorOptionsB\x0c\xa2\x02\tMediaPipe')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_QUANTIZEFLOATVECTORCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='QuantizeFloatVectorCalculatorOptions',
|
||||
full_name='mediapipe.QuantizeFloatVectorCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='max_quantized_value', full_name='mediapipe.QuantizeFloatVectorCalculatorOptions.max_quantized_value', index=0,
|
||||
number=1, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='min_quantized_value', full_name='mediapipe.QuantizeFloatVectorCalculatorOptions.min_quantized_value', index=1,
|
||||
number=2, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.QuantizeFloatVectorCalculatorOptions.ext', index=0,
|
||||
number=259848061, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=119,
|
||||
serialized_end=310,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['QuantizeFloatVectorCalculatorOptions'] = _QUANTIZEFLOATVECTORCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
QuantizeFloatVectorCalculatorOptions = _reflection.GeneratedProtocolMessageType('QuantizeFloatVectorCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _QUANTIZEFLOATVECTORCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.core.quantize_float_vector_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.QuantizeFloatVectorCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(QuantizeFloatVectorCalculatorOptions)
|
||||
|
||||
_QUANTIZEFLOATVECTORCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _QUANTIZEFLOATVECTORCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_QUANTIZEFLOATVECTORCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,86 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/core/sequence_shift_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/core/sequence_shift_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=_b('\242\002\tMediaPipe'),
|
||||
serialized_pb=_b('\n:mediapipe/calculators/core/sequence_shift_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\x94\x01\n\x1eSequenceShiftCalculatorOptions\x12\x19\n\rpacket_offset\x18\x01 \x01(\x05:\x02-12W\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\x87\xba\xa9\x33 \x01(\x0b\x32).mediapipe.SequenceShiftCalculatorOptionsB\x0c\xa2\x02\tMediaPipe')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_SEQUENCESHIFTCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='SequenceShiftCalculatorOptions',
|
||||
full_name='mediapipe.SequenceShiftCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='packet_offset', full_name='mediapipe.SequenceShiftCalculatorOptions.packet_offset', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=-1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.SequenceShiftCalculatorOptions.ext', index=0,
|
||||
number=107633927, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=112,
|
||||
serialized_end=260,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['SequenceShiftCalculatorOptions'] = _SEQUENCESHIFTCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
SequenceShiftCalculatorOptions = _reflection.GeneratedProtocolMessageType('SequenceShiftCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _SEQUENCESHIFTCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.core.sequence_shift_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.SequenceShiftCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(SequenceShiftCalculatorOptions)
|
||||
|
||||
_SEQUENCESHIFTCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _SEQUENCESHIFTCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_SEQUENCESHIFTCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,147 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/core/split_vector_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/core/split_vector_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=_b('\242\002\tMediaPipe'),
|
||||
serialized_pb=_b('\n8mediapipe/calculators/core/split_vector_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"#\n\x05Range\x12\r\n\x05\x62\x65gin\x18\x01 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x05\"\xd4\x01\n\x1cSplitVectorCalculatorOptions\x12 \n\x06ranges\x18\x01 \x03(\x0b\x32\x10.mediapipe.Range\x12\x1b\n\x0c\x65lement_only\x18\x02 \x01(\x08:\x05\x66\x61lse\x12\x1e\n\x0f\x63ombine_outputs\x18\x03 \x01(\x08:\x05\x66\x61lse2U\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\x8e\xed\xda{ \x01(\x0b\x32\'.mediapipe.SplitVectorCalculatorOptionsB\x0c\xa2\x02\tMediaPipe')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_RANGE = _descriptor.Descriptor(
|
||||
name='Range',
|
||||
full_name='mediapipe.Range',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='begin', full_name='mediapipe.Range.begin', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='end', full_name='mediapipe.Range.end', index=1,
|
||||
number=2, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=109,
|
||||
serialized_end=144,
|
||||
)
|
||||
|
||||
|
||||
_SPLITVECTORCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='SplitVectorCalculatorOptions',
|
||||
full_name='mediapipe.SplitVectorCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ranges', full_name='mediapipe.SplitVectorCalculatorOptions.ranges', index=0,
|
||||
number=1, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='element_only', full_name='mediapipe.SplitVectorCalculatorOptions.element_only', index=1,
|
||||
number=2, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='combine_outputs', full_name='mediapipe.SplitVectorCalculatorOptions.combine_outputs', index=2,
|
||||
number=3, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.SplitVectorCalculatorOptions.ext', index=0,
|
||||
number=259438222, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=147,
|
||||
serialized_end=359,
|
||||
)
|
||||
|
||||
_SPLITVECTORCALCULATOROPTIONS.fields_by_name['ranges'].message_type = _RANGE
|
||||
DESCRIPTOR.message_types_by_name['Range'] = _RANGE
|
||||
DESCRIPTOR.message_types_by_name['SplitVectorCalculatorOptions'] = _SPLITVECTORCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
Range = _reflection.GeneratedProtocolMessageType('Range', (_message.Message,), dict(
|
||||
DESCRIPTOR = _RANGE,
|
||||
__module__ = 'mediapipe.calculators.core.split_vector_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.Range)
|
||||
))
|
||||
_sym_db.RegisterMessage(Range)
|
||||
|
||||
SplitVectorCalculatorOptions = _reflection.GeneratedProtocolMessageType('SplitVectorCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _SPLITVECTORCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.core.split_vector_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.SplitVectorCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(SplitVectorCalculatorOptions)
|
||||
|
||||
_SPLITVECTORCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _SPLITVECTORCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_SPLITVECTORCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
# @@protoc_insertion_point(module_scope)
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,92 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/image/bilateral_filter_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/image/bilateral_filter_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n=mediapipe/calculators/image/bilateral_filter_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xa7\x01\n BilateralFilterCalculatorOptions\x12\x13\n\x0bsigma_color\x18\x01 \x01(\x02\x12\x13\n\x0bsigma_space\x18\x02 \x01(\x02\x32Y\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xc1\xef\xf4y \x01(\x0b\x32+.mediapipe.BilateralFilterCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_BILATERALFILTERCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='BilateralFilterCalculatorOptions',
|
||||
full_name='mediapipe.BilateralFilterCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='sigma_color', full_name='mediapipe.BilateralFilterCalculatorOptions.sigma_color', index=0,
|
||||
number=1, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='sigma_space', full_name='mediapipe.BilateralFilterCalculatorOptions.sigma_space', index=1,
|
||||
number=2, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.BilateralFilterCalculatorOptions.ext', index=0,
|
||||
number=255670209, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=115,
|
||||
serialized_end=282,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['BilateralFilterCalculatorOptions'] = _BILATERALFILTERCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
BilateralFilterCalculatorOptions = _reflection.GeneratedProtocolMessageType('BilateralFilterCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _BILATERALFILTERCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.image.bilateral_filter_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.BilateralFilterCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(BilateralFilterCalculatorOptions)
|
||||
|
||||
_BILATERALFILTERCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _BILATERALFILTERCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_BILATERALFILTERCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,106 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/image/feature_detector_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/image/feature_detector_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n=mediapipe/calculators/image/feature_detector_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xe4\x01\n FeatureDetectorCalculatorOptions\x12\x14\n\x0coutput_patch\x18\x01 \x01(\x08\x12\x19\n\x0cmax_features\x18\x02 \x01(\x05:\x03\x32\x30\x30\x12\x18\n\rpyramid_level\x18\x03 \x01(\x05:\x01\x34\x12\x19\n\x0cscale_factor\x18\x04 \x01(\x02:\x03\x31.22Z\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xb0\x85\xf5\x84\x01 \x01(\x0b\x32+.mediapipe.FeatureDetectorCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_FEATUREDETECTORCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='FeatureDetectorCalculatorOptions',
|
||||
full_name='mediapipe.FeatureDetectorCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='output_patch', full_name='mediapipe.FeatureDetectorCalculatorOptions.output_patch', index=0,
|
||||
number=1, type=8, cpp_type=7, label=1,
|
||||
has_default_value=False, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='max_features', full_name='mediapipe.FeatureDetectorCalculatorOptions.max_features', index=1,
|
||||
number=2, type=5, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=200,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='pyramid_level', full_name='mediapipe.FeatureDetectorCalculatorOptions.pyramid_level', index=2,
|
||||
number=3, type=5, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=4,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='scale_factor', full_name='mediapipe.FeatureDetectorCalculatorOptions.scale_factor', index=3,
|
||||
number=4, type=2, cpp_type=6, label=1,
|
||||
has_default_value=True, default_value=float(1.2),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.FeatureDetectorCalculatorOptions.ext', index=0,
|
||||
number=278741680, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=115,
|
||||
serialized_end=343,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['FeatureDetectorCalculatorOptions'] = _FEATUREDETECTORCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
FeatureDetectorCalculatorOptions = _reflection.GeneratedProtocolMessageType('FeatureDetectorCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _FEATUREDETECTORCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.image.feature_detector_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.FeatureDetectorCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(FeatureDetectorCalculatorOptions)
|
||||
|
||||
_FEATUREDETECTORCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _FEATUREDETECTORCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_FEATUREDETECTORCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,85 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/image/image_clone_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/image/image_clone_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n8mediapipe/calculators/image/image_clone_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\x92\x01\n\x1bImageCloneCalculatorOptions\x12\x1c\n\routput_on_gpu\x18\x01 \x01(\x08:\x05\x66\x61lse2U\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xc6\xe6\xe0\xb1\x01 \x01(\x0b\x32&.mediapipe.ImageCloneCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_IMAGECLONECALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='ImageCloneCalculatorOptions',
|
||||
full_name='mediapipe.ImageCloneCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='output_on_gpu', full_name='mediapipe.ImageCloneCalculatorOptions.output_on_gpu', index=0,
|
||||
number=1, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.ImageCloneCalculatorOptions.ext', index=0,
|
||||
number=372781894, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=110,
|
||||
serialized_end=256,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['ImageCloneCalculatorOptions'] = _IMAGECLONECALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
ImageCloneCalculatorOptions = _reflection.GeneratedProtocolMessageType('ImageCloneCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _IMAGECLONECALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.image.image_clone_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.ImageCloneCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(ImageCloneCalculatorOptions)
|
||||
|
||||
_IMAGECLONECALCULATOROPTIONS.extensions_by_name['ext'].message_type = _IMAGECLONECALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_IMAGECLONECALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,177 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/image/image_cropping_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/image/image_cropping_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n;mediapipe/calculators/image/image_cropping_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xe4\x03\n\x1eImageCroppingCalculatorOptions\x12\r\n\x05width\x18\x01 \x01(\x05\x12\x0e\n\x06height\x18\x02 \x01(\x05\x12\x13\n\x08rotation\x18\x03 \x01(\x02:\x01\x30\x12\x12\n\nnorm_width\x18\x04 \x01(\x02\x12\x13\n\x0bnorm_height\x18\x05 \x01(\x02\x12\x18\n\rnorm_center_x\x18\x06 \x01(\x02:\x01\x30\x12\x18\n\rnorm_center_y\x18\x07 \x01(\x02:\x01\x30\x12V\n\x0b\x62order_mode\x18\x08 \x01(\x0e\x32\x34.mediapipe.ImageCroppingCalculatorOptions.BorderMode:\x0b\x42ORDER_ZERO\x12\x18\n\x10output_max_width\x18\t \x01(\x05\x12\x19\n\x11output_max_height\x18\n \x01(\x05\"K\n\nBorderMode\x12\x16\n\x12\x42ORDER_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x42ORDER_ZERO\x10\x01\x12\x14\n\x10\x42ORDER_REPLICATE\x10\x02\x32W\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xdf\xd6\x93} \x01(\x0b\x32).mediapipe.ImageCroppingCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
_IMAGECROPPINGCALCULATOROPTIONS_BORDERMODE = _descriptor.EnumDescriptor(
|
||||
name='BorderMode',
|
||||
full_name='mediapipe.ImageCroppingCalculatorOptions.BorderMode',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='BORDER_UNSPECIFIED', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='BORDER_ZERO', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='BORDER_REPLICATE', index=2, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=433,
|
||||
serialized_end=508,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_IMAGECROPPINGCALCULATOROPTIONS_BORDERMODE)
|
||||
|
||||
|
||||
_IMAGECROPPINGCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='ImageCroppingCalculatorOptions',
|
||||
full_name='mediapipe.ImageCroppingCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='width', full_name='mediapipe.ImageCroppingCalculatorOptions.width', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='height', full_name='mediapipe.ImageCroppingCalculatorOptions.height', index=1,
|
||||
number=2, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='rotation', full_name='mediapipe.ImageCroppingCalculatorOptions.rotation', index=2,
|
||||
number=3, type=2, cpp_type=6, label=1,
|
||||
has_default_value=True, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='norm_width', full_name='mediapipe.ImageCroppingCalculatorOptions.norm_width', index=3,
|
||||
number=4, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='norm_height', full_name='mediapipe.ImageCroppingCalculatorOptions.norm_height', index=4,
|
||||
number=5, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='norm_center_x', full_name='mediapipe.ImageCroppingCalculatorOptions.norm_center_x', index=5,
|
||||
number=6, type=2, cpp_type=6, label=1,
|
||||
has_default_value=True, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='norm_center_y', full_name='mediapipe.ImageCroppingCalculatorOptions.norm_center_y', index=6,
|
||||
number=7, type=2, cpp_type=6, label=1,
|
||||
has_default_value=True, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='border_mode', full_name='mediapipe.ImageCroppingCalculatorOptions.border_mode', index=7,
|
||||
number=8, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='output_max_width', full_name='mediapipe.ImageCroppingCalculatorOptions.output_max_width', index=8,
|
||||
number=9, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='output_max_height', full_name='mediapipe.ImageCroppingCalculatorOptions.output_max_height', index=9,
|
||||
number=10, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.ImageCroppingCalculatorOptions.ext', index=0,
|
||||
number=262466399, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_IMAGECROPPINGCALCULATOROPTIONS_BORDERMODE,
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=113,
|
||||
serialized_end=597,
|
||||
)
|
||||
|
||||
_IMAGECROPPINGCALCULATOROPTIONS.fields_by_name['border_mode'].enum_type = _IMAGECROPPINGCALCULATOROPTIONS_BORDERMODE
|
||||
_IMAGECROPPINGCALCULATOROPTIONS_BORDERMODE.containing_type = _IMAGECROPPINGCALCULATOROPTIONS
|
||||
DESCRIPTOR.message_types_by_name['ImageCroppingCalculatorOptions'] = _IMAGECROPPINGCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
ImageCroppingCalculatorOptions = _reflection.GeneratedProtocolMessageType('ImageCroppingCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _IMAGECROPPINGCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.image.image_cropping_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.ImageCroppingCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(ImageCroppingCalculatorOptions)
|
||||
|
||||
_IMAGECROPPINGCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _IMAGECROPPINGCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_IMAGECROPPINGCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,198 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/image/image_transformation_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.gpu import scale_mode_pb2 as mediapipe_dot_gpu_dot_scale__mode__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='mediapipe/calculators/image/image_transformation_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\nAmediapipe/calculators/image/image_transformation_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\x1a\x1emediapipe/gpu/scale_mode.proto\"h\n\x0cRotationMode\"X\n\x04Mode\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0e\n\nROTATION_0\x10\x01\x12\x0f\n\x0bROTATION_90\x10\x02\x12\x10\n\x0cROTATION_180\x10\x03\x12\x10\n\x0cROTATION_270\x10\x04\"\xfe\x02\n$ImageTransformationCalculatorOptions\x12\x17\n\x0coutput_width\x18\x01 \x01(\x05:\x01\x30\x12\x18\n\routput_height\x18\x02 \x01(\x05:\x01\x30\x12\x33\n\rrotation_mode\x18\x03 \x01(\x0e\x32\x1c.mediapipe.RotationMode.Mode\x12\x1e\n\x0f\x66lip_vertically\x18\x04 \x01(\x08:\x05\x66\x61lse\x12 \n\x11\x66lip_horizontally\x18\x05 \x01(\x08:\x05\x66\x61lse\x12-\n\nscale_mode\x18\x06 \x01(\x0e\x32\x19.mediapipe.ScaleMode.Mode\x12\x1e\n\x10\x63onstant_padding\x18\x07 \x01(\x08:\x04true2]\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xbe\xfd\x91x \x01(\x0b\x32/.mediapipe.ImageTransformationCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,mediapipe_dot_gpu_dot_scale__mode__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
_ROTATIONMODE_MODE = _descriptor.EnumDescriptor(
|
||||
name='Mode',
|
||||
full_name='mediapipe.RotationMode.Mode',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UNKNOWN', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ROTATION_0', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ROTATION_90', index=2, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ROTATION_180', index=3, number=3,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ROTATION_270', index=4, number=4,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=166,
|
||||
serialized_end=254,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_ROTATIONMODE_MODE)
|
||||
|
||||
|
||||
_ROTATIONMODE = _descriptor.Descriptor(
|
||||
name='RotationMode',
|
||||
full_name='mediapipe.RotationMode',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_ROTATIONMODE_MODE,
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=150,
|
||||
serialized_end=254,
|
||||
)
|
||||
|
||||
|
||||
_IMAGETRANSFORMATIONCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='ImageTransformationCalculatorOptions',
|
||||
full_name='mediapipe.ImageTransformationCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='output_width', full_name='mediapipe.ImageTransformationCalculatorOptions.output_width', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='output_height', full_name='mediapipe.ImageTransformationCalculatorOptions.output_height', index=1,
|
||||
number=2, type=5, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='rotation_mode', full_name='mediapipe.ImageTransformationCalculatorOptions.rotation_mode', index=2,
|
||||
number=3, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='flip_vertically', full_name='mediapipe.ImageTransformationCalculatorOptions.flip_vertically', index=3,
|
||||
number=4, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='flip_horizontally', full_name='mediapipe.ImageTransformationCalculatorOptions.flip_horizontally', index=4,
|
||||
number=5, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='scale_mode', full_name='mediapipe.ImageTransformationCalculatorOptions.scale_mode', index=5,
|
||||
number=6, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='constant_padding', full_name='mediapipe.ImageTransformationCalculatorOptions.constant_padding', index=6,
|
||||
number=7, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=True,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.ImageTransformationCalculatorOptions.ext', index=0,
|
||||
number=251952830, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=257,
|
||||
serialized_end=639,
|
||||
)
|
||||
|
||||
_ROTATIONMODE_MODE.containing_type = _ROTATIONMODE
|
||||
_IMAGETRANSFORMATIONCALCULATOROPTIONS.fields_by_name['rotation_mode'].enum_type = _ROTATIONMODE_MODE
|
||||
_IMAGETRANSFORMATIONCALCULATOROPTIONS.fields_by_name['scale_mode'].enum_type = mediapipe_dot_gpu_dot_scale__mode__pb2._SCALEMODE_MODE
|
||||
DESCRIPTOR.message_types_by_name['RotationMode'] = _ROTATIONMODE
|
||||
DESCRIPTOR.message_types_by_name['ImageTransformationCalculatorOptions'] = _IMAGETRANSFORMATIONCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
RotationMode = _reflection.GeneratedProtocolMessageType('RotationMode', (_message.Message,), dict(
|
||||
DESCRIPTOR = _ROTATIONMODE,
|
||||
__module__ = 'mediapipe.calculators.image.image_transformation_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.RotationMode)
|
||||
))
|
||||
_sym_db.RegisterMessage(RotationMode)
|
||||
|
||||
ImageTransformationCalculatorOptions = _reflection.GeneratedProtocolMessageType('ImageTransformationCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _IMAGETRANSFORMATIONCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.image.image_transformation_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.ImageTransformationCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(ImageTransformationCalculatorOptions)
|
||||
|
||||
_IMAGETRANSFORMATIONCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _IMAGETRANSFORMATIONCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_IMAGETRANSFORMATIONCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,114 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/image/mask_overlay_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/image/mask_overlay_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n9mediapipe/calculators/image/mask_overlay_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xf5\x01\n\x1cMaskOverlayCalculatorOptions\x12N\n\x0cmask_channel\x18\x01 \x01(\x0e\x32\x33.mediapipe.MaskOverlayCalculatorOptions.MaskChannel:\x03RED\".\n\x0bMaskChannel\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03RED\x10\x01\x12\t\n\x05\x41LPHA\x10\x02\x32U\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\x82\xe0\x9cx \x01(\x0b\x32\'.mediapipe.MaskOverlayCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
_MASKOVERLAYCALCULATOROPTIONS_MASKCHANNEL = _descriptor.EnumDescriptor(
|
||||
name='MaskChannel',
|
||||
full_name='mediapipe.MaskOverlayCalculatorOptions.MaskChannel',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UNKNOWN', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='RED', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ALPHA', index=2, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=223,
|
||||
serialized_end=269,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_MASKOVERLAYCALCULATOROPTIONS_MASKCHANNEL)
|
||||
|
||||
|
||||
_MASKOVERLAYCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='MaskOverlayCalculatorOptions',
|
||||
full_name='mediapipe.MaskOverlayCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='mask_channel', full_name='mediapipe.MaskOverlayCalculatorOptions.mask_channel', index=0,
|
||||
number=1, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.MaskOverlayCalculatorOptions.ext', index=0,
|
||||
number=252129282, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_MASKOVERLAYCALCULATOROPTIONS_MASKCHANNEL,
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=111,
|
||||
serialized_end=356,
|
||||
)
|
||||
|
||||
_MASKOVERLAYCALCULATOROPTIONS.fields_by_name['mask_channel'].enum_type = _MASKOVERLAYCALCULATOROPTIONS_MASKCHANNEL
|
||||
_MASKOVERLAYCALCULATOROPTIONS_MASKCHANNEL.containing_type = _MASKOVERLAYCALCULATOROPTIONS
|
||||
DESCRIPTOR.message_types_by_name['MaskOverlayCalculatorOptions'] = _MASKOVERLAYCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
MaskOverlayCalculatorOptions = _reflection.GeneratedProtocolMessageType('MaskOverlayCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _MASKOVERLAYCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.image.mask_overlay_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.MaskOverlayCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(MaskOverlayCalculatorOptions)
|
||||
|
||||
_MASKOVERLAYCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _MASKOVERLAYCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_MASKOVERLAYCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,85 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/image/opencv_encoded_image_to_image_frame_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/image/opencv_encoded_image_to_image_frame_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\nPmediapipe/calculators/image/opencv_encoded_image_to_image_frame_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xcd\x01\n/OpenCvEncodedImageToImageFrameCalculatorOptions\x12/\n apply_orientation_from_exif_data\x18\x01 \x01(\x08:\x05\x66\x61lse2i\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\x8c\xfa\xd8\x90\x01 \x01(\x0b\x32:.mediapipe.OpenCvEncodedImageToImageFrameCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_OPENCVENCODEDIMAGETOIMAGEFRAMECALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='OpenCvEncodedImageToImageFrameCalculatorOptions',
|
||||
full_name='mediapipe.OpenCvEncodedImageToImageFrameCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='apply_orientation_from_exif_data', full_name='mediapipe.OpenCvEncodedImageToImageFrameCalculatorOptions.apply_orientation_from_exif_data', index=0,
|
||||
number=1, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.OpenCvEncodedImageToImageFrameCalculatorOptions.ext', index=0,
|
||||
number=303447308, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=134,
|
||||
serialized_end=339,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['OpenCvEncodedImageToImageFrameCalculatorOptions'] = _OPENCVENCODEDIMAGETOIMAGEFRAMECALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
OpenCvEncodedImageToImageFrameCalculatorOptions = _reflection.GeneratedProtocolMessageType('OpenCvEncodedImageToImageFrameCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _OPENCVENCODEDIMAGETOIMAGEFRAMECALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.image.opencv_encoded_image_to_image_frame_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.OpenCvEncodedImageToImageFrameCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(OpenCvEncodedImageToImageFrameCalculatorOptions)
|
||||
|
||||
_OPENCVENCODEDIMAGETOIMAGEFRAMECALCULATOROPTIONS.extensions_by_name['ext'].message_type = _OPENCVENCODEDIMAGETOIMAGEFRAMECALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_OPENCVENCODEDIMAGETOIMAGEFRAMECALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,174 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/image/opencv_image_encoder_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/image/opencv_image_encoder_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\nAmediapipe/calculators/image/opencv_image_encoder_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\x94\x01\n#OpenCvImageEncoderCalculatorOptions\x12\x0f\n\x07quality\x18\x01 \x01(\x05\x32\\\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xfe\xb0\xc1l \x01(\x0b\x32..mediapipe.OpenCvImageEncoderCalculatorOptions\"\xdd\x01\n#OpenCvImageEncoderCalculatorResults\x12\x15\n\rencoded_image\x18\x01 \x01(\x0c\x12\x0e\n\x06height\x18\x02 \x01(\x05\x12\r\n\x05width\x18\x03 \x01(\x05\x12M\n\ncolorspace\x18\x04 \x01(\x0e\x32\x39.mediapipe.OpenCvImageEncoderCalculatorResults.ColorSpace\"1\n\nColorSpace\x12\x0b\n\x07UNKNOWN\x10\x00\x12\r\n\tGRAYSCALE\x10\x01\x12\x07\n\x03RGB\x10\x02')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
_OPENCVIMAGEENCODERCALCULATORRESULTS_COLORSPACE = _descriptor.EnumDescriptor(
|
||||
name='ColorSpace',
|
||||
full_name='mediapipe.OpenCvImageEncoderCalculatorResults.ColorSpace',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UNKNOWN', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='GRAYSCALE', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='RGB', index=2, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=442,
|
||||
serialized_end=491,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_OPENCVIMAGEENCODERCALCULATORRESULTS_COLORSPACE)
|
||||
|
||||
|
||||
_OPENCVIMAGEENCODERCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='OpenCvImageEncoderCalculatorOptions',
|
||||
full_name='mediapipe.OpenCvImageEncoderCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='quality', full_name='mediapipe.OpenCvImageEncoderCalculatorOptions.quality', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.OpenCvImageEncoderCalculatorOptions.ext', index=0,
|
||||
number=227563646, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=119,
|
||||
serialized_end=267,
|
||||
)
|
||||
|
||||
|
||||
_OPENCVIMAGEENCODERCALCULATORRESULTS = _descriptor.Descriptor(
|
||||
name='OpenCvImageEncoderCalculatorResults',
|
||||
full_name='mediapipe.OpenCvImageEncoderCalculatorResults',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='encoded_image', full_name='mediapipe.OpenCvImageEncoderCalculatorResults.encoded_image', index=0,
|
||||
number=1, type=12, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='height', full_name='mediapipe.OpenCvImageEncoderCalculatorResults.height', index=1,
|
||||
number=2, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='width', full_name='mediapipe.OpenCvImageEncoderCalculatorResults.width', index=2,
|
||||
number=3, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='colorspace', full_name='mediapipe.OpenCvImageEncoderCalculatorResults.colorspace', index=3,
|
||||
number=4, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_OPENCVIMAGEENCODERCALCULATORRESULTS_COLORSPACE,
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=270,
|
||||
serialized_end=491,
|
||||
)
|
||||
|
||||
_OPENCVIMAGEENCODERCALCULATORRESULTS.fields_by_name['colorspace'].enum_type = _OPENCVIMAGEENCODERCALCULATORRESULTS_COLORSPACE
|
||||
_OPENCVIMAGEENCODERCALCULATORRESULTS_COLORSPACE.containing_type = _OPENCVIMAGEENCODERCALCULATORRESULTS
|
||||
DESCRIPTOR.message_types_by_name['OpenCvImageEncoderCalculatorOptions'] = _OPENCVIMAGEENCODERCALCULATOROPTIONS
|
||||
DESCRIPTOR.message_types_by_name['OpenCvImageEncoderCalculatorResults'] = _OPENCVIMAGEENCODERCALCULATORRESULTS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
OpenCvImageEncoderCalculatorOptions = _reflection.GeneratedProtocolMessageType('OpenCvImageEncoderCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _OPENCVIMAGEENCODERCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.image.opencv_image_encoder_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.OpenCvImageEncoderCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(OpenCvImageEncoderCalculatorOptions)
|
||||
|
||||
OpenCvImageEncoderCalculatorResults = _reflection.GeneratedProtocolMessageType('OpenCvImageEncoderCalculatorResults', (_message.Message,), dict(
|
||||
DESCRIPTOR = _OPENCVIMAGEENCODERCALCULATORRESULTS,
|
||||
__module__ = 'mediapipe.calculators.image.opencv_image_encoder_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.OpenCvImageEncoderCalculatorResults)
|
||||
))
|
||||
_sym_db.RegisterMessage(OpenCvImageEncoderCalculatorResults)
|
||||
|
||||
_OPENCVIMAGEENCODERCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _OPENCVIMAGEENCODERCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_OPENCVIMAGEENCODERCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,137 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/image/recolor_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.util import color_pb2 as mediapipe_dot_util_dot_color__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='mediapipe/calculators/image/recolor_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n4mediapipe/calculators/image/recolor_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\x1a\x1amediapipe/util/color.proto\"\xcb\x02\n\x18RecolorCalculatorOptions\x12J\n\x0cmask_channel\x18\x01 \x01(\x0e\x32/.mediapipe.RecolorCalculatorOptions.MaskChannel:\x03RED\x12\x1f\n\x05\x63olor\x18\x02 \x01(\x0b\x32\x10.mediapipe.Color\x12\x1a\n\x0binvert_mask\x18\x03 \x01(\x08:\x05\x66\x61lse\x12#\n\x15\x61\x64just_with_luminance\x18\x04 \x01(\x08:\x04true\".\n\x0bMaskChannel\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03RED\x10\x01\x12\t\n\x05\x41LPHA\x10\x02\x32Q\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\x8d\x84\xb5x \x01(\x0b\x32#.mediapipe.RecolorCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,mediapipe_dot_util_dot_color__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
_RECOLORCALCULATOROPTIONS_MASKCHANNEL = _descriptor.EnumDescriptor(
|
||||
name='MaskChannel',
|
||||
full_name='mediapipe.RecolorCalculatorOptions.MaskChannel',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UNKNOWN', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='RED', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ALPHA', index=2, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=336,
|
||||
serialized_end=382,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_RECOLORCALCULATOROPTIONS_MASKCHANNEL)
|
||||
|
||||
|
||||
_RECOLORCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='RecolorCalculatorOptions',
|
||||
full_name='mediapipe.RecolorCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='mask_channel', full_name='mediapipe.RecolorCalculatorOptions.mask_channel', index=0,
|
||||
number=1, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='color', full_name='mediapipe.RecolorCalculatorOptions.color', index=1,
|
||||
number=2, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='invert_mask', full_name='mediapipe.RecolorCalculatorOptions.invert_mask', index=2,
|
||||
number=3, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='adjust_with_luminance', full_name='mediapipe.RecolorCalculatorOptions.adjust_with_luminance', index=3,
|
||||
number=4, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=True,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.RecolorCalculatorOptions.ext', index=0,
|
||||
number=252527117, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_RECOLORCALCULATOROPTIONS_MASKCHANNEL,
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=134,
|
||||
serialized_end=465,
|
||||
)
|
||||
|
||||
_RECOLORCALCULATOROPTIONS.fields_by_name['mask_channel'].enum_type = _RECOLORCALCULATOROPTIONS_MASKCHANNEL
|
||||
_RECOLORCALCULATOROPTIONS.fields_by_name['color'].message_type = mediapipe_dot_util_dot_color__pb2._COLOR
|
||||
_RECOLORCALCULATOROPTIONS_MASKCHANNEL.containing_type = _RECOLORCALCULATOROPTIONS
|
||||
DESCRIPTOR.message_types_by_name['RecolorCalculatorOptions'] = _RECOLORCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
RecolorCalculatorOptions = _reflection.GeneratedProtocolMessageType('RecolorCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _RECOLORCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.image.recolor_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.RecolorCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(RecolorCalculatorOptions)
|
||||
|
||||
_RECOLORCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _RECOLORCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_RECOLORCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,220 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/image/scale_image_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.framework.formats import image_format_pb2 as mediapipe_dot_framework_dot_formats_dot_image__format__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='mediapipe/calculators/image/scale_image_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n8mediapipe/calculators/image/scale_image_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\x1a.mediapipe/framework/formats/image_format.proto\"\x89\x06\n\x1bScaleImageCalculatorOptions\x12\x14\n\x0ctarget_width\x18\x01 \x01(\x05\x12\x15\n\rtarget_height\x18\x02 \x01(\x05\x12#\n\x15preserve_aspect_ratio\x18\x03 \x01(\x08:\x04true\x12\x1e\n\x10min_aspect_ratio\x18\x04 \x01(\t:\x04\x39/16\x12\x1e\n\x10max_aspect_ratio\x18\x05 \x01(\t:\x04\x31\x36/9\x12\x34\n\routput_format\x18\x06 \x01(\x0e\x32\x1d.mediapipe.ImageFormat.Format\x12Q\n\talgorithm\x18\x07 \x01(\x0e\x32\x35.mediapipe.ScaleImageCalculatorOptions.ScaleAlgorithm:\x07\x44\x45\x46\x41ULT\x12\x1e\n\x12\x61lignment_boundary\x18\x08 \x01(\x05:\x02\x31\x36\x12#\n\x15set_alignment_padding\x18\t \x01(\x08:\x04true\x12\x32\n#OBSOLETE_skip_linear_rgb_conversion\x18\n \x01(\x08:\x05\x66\x61lse\x12&\n\x1bpost_sharpening_coefficient\x18\x0b \x01(\x02:\x01\x30\x12\x33\n\x0cinput_format\x18\x0c \x01(\x0e\x32\x1d.mediapipe.ImageFormat.Format\x12\x1f\n\x14scale_to_multiple_of\x18\r \x01(\x05:\x01\x32\x12\x18\n\tuse_bt709\x18\x0e \x01(\x08:\x05\x66\x61lse\"h\n\x0eScaleAlgorithm\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\t\n\x05\x43UBIC\x10\x02\x12\x08\n\x04\x41REA\x10\x03\x12\x0b\n\x07LANCZOS\x10\x04\x12\x1b\n\x17\x44\x45\x46\x41ULT_WITHOUT_UPSCALE\x10\x05\x32T\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xbb\xe5\xca\x1f \x01(\x0b\x32&.mediapipe.ScaleImageCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,mediapipe_dot_framework_dot_formats_dot_image__format__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
_SCALEIMAGECALCULATOROPTIONS_SCALEALGORITHM = _descriptor.EnumDescriptor(
|
||||
name='ScaleAlgorithm',
|
||||
full_name='mediapipe.ScaleImageCalculatorOptions.ScaleAlgorithm',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='DEFAULT', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='LINEAR', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='CUBIC', index=2, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='AREA', index=3, number=3,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='LANCZOS', index=4, number=4,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='DEFAULT_WITHOUT_UPSCALE', index=5, number=5,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=745,
|
||||
serialized_end=849,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_SCALEIMAGECALCULATOROPTIONS_SCALEALGORITHM)
|
||||
|
||||
|
||||
_SCALEIMAGECALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='ScaleImageCalculatorOptions',
|
||||
full_name='mediapipe.ScaleImageCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='target_width', full_name='mediapipe.ScaleImageCalculatorOptions.target_width', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='target_height', full_name='mediapipe.ScaleImageCalculatorOptions.target_height', index=1,
|
||||
number=2, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='preserve_aspect_ratio', full_name='mediapipe.ScaleImageCalculatorOptions.preserve_aspect_ratio', index=2,
|
||||
number=3, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=True,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='min_aspect_ratio', full_name='mediapipe.ScaleImageCalculatorOptions.min_aspect_ratio', index=3,
|
||||
number=4, type=9, cpp_type=9, label=1,
|
||||
has_default_value=True, default_value=_b("9/16").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='max_aspect_ratio', full_name='mediapipe.ScaleImageCalculatorOptions.max_aspect_ratio', index=4,
|
||||
number=5, type=9, cpp_type=9, label=1,
|
||||
has_default_value=True, default_value=_b("16/9").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='output_format', full_name='mediapipe.ScaleImageCalculatorOptions.output_format', index=5,
|
||||
number=6, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='algorithm', full_name='mediapipe.ScaleImageCalculatorOptions.algorithm', index=6,
|
||||
number=7, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='alignment_boundary', full_name='mediapipe.ScaleImageCalculatorOptions.alignment_boundary', index=7,
|
||||
number=8, type=5, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=16,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='set_alignment_padding', full_name='mediapipe.ScaleImageCalculatorOptions.set_alignment_padding', index=8,
|
||||
number=9, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=True,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='OBSOLETE_skip_linear_rgb_conversion', full_name='mediapipe.ScaleImageCalculatorOptions.OBSOLETE_skip_linear_rgb_conversion', index=9,
|
||||
number=10, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='post_sharpening_coefficient', full_name='mediapipe.ScaleImageCalculatorOptions.post_sharpening_coefficient', index=10,
|
||||
number=11, type=2, cpp_type=6, label=1,
|
||||
has_default_value=True, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='input_format', full_name='mediapipe.ScaleImageCalculatorOptions.input_format', index=11,
|
||||
number=12, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='scale_to_multiple_of', full_name='mediapipe.ScaleImageCalculatorOptions.scale_to_multiple_of', index=12,
|
||||
number=13, type=5, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=2,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='use_bt709', full_name='mediapipe.ScaleImageCalculatorOptions.use_bt709', index=13,
|
||||
number=14, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.ScaleImageCalculatorOptions.ext', index=0,
|
||||
number=66237115, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_SCALEIMAGECALCULATOROPTIONS_SCALEALGORITHM,
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=158,
|
||||
serialized_end=935,
|
||||
)
|
||||
|
||||
_SCALEIMAGECALCULATOROPTIONS.fields_by_name['output_format'].enum_type = mediapipe_dot_framework_dot_formats_dot_image__format__pb2._IMAGEFORMAT_FORMAT
|
||||
_SCALEIMAGECALCULATOROPTIONS.fields_by_name['algorithm'].enum_type = _SCALEIMAGECALCULATOROPTIONS_SCALEALGORITHM
|
||||
_SCALEIMAGECALCULATOROPTIONS.fields_by_name['input_format'].enum_type = mediapipe_dot_framework_dot_formats_dot_image__format__pb2._IMAGEFORMAT_FORMAT
|
||||
_SCALEIMAGECALCULATOROPTIONS_SCALEALGORITHM.containing_type = _SCALEIMAGECALCULATOROPTIONS
|
||||
DESCRIPTOR.message_types_by_name['ScaleImageCalculatorOptions'] = _SCALEIMAGECALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
ScaleImageCalculatorOptions = _reflection.GeneratedProtocolMessageType('ScaleImageCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _SCALEIMAGECALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.image.scale_image_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.ScaleImageCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(ScaleImageCalculatorOptions)
|
||||
|
||||
_SCALEIMAGECALCULATOROPTIONS.extensions_by_name['ext'].message_type = _SCALEIMAGECALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_SCALEIMAGECALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,85 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/image/segmentation_smoothing_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/image/segmentation_smoothing_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\nCmediapipe/calculators/image/segmentation_smoothing_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xb2\x01\n&SegmentationSmoothingCalculatorOptions\x12&\n\x1b\x63ombine_with_previous_ratio\x18\x01 \x01(\x02:\x01\x30\x32`\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xe8\x99\xfc\xb3\x01 \x01(\x0b\x32\x31.mediapipe.SegmentationSmoothingCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_SEGMENTATIONSMOOTHINGCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='SegmentationSmoothingCalculatorOptions',
|
||||
full_name='mediapipe.SegmentationSmoothingCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='combine_with_previous_ratio', full_name='mediapipe.SegmentationSmoothingCalculatorOptions.combine_with_previous_ratio', index=0,
|
||||
number=1, type=2, cpp_type=6, label=1,
|
||||
has_default_value=True, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.SegmentationSmoothingCalculatorOptions.ext', index=0,
|
||||
number=377425128, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=121,
|
||||
serialized_end=299,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['SegmentationSmoothingCalculatorOptions'] = _SEGMENTATIONSMOOTHINGCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
SegmentationSmoothingCalculatorOptions = _reflection.GeneratedProtocolMessageType('SegmentationSmoothingCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _SEGMENTATIONSMOOTHINGCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.image.segmentation_smoothing_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.SegmentationSmoothingCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(SegmentationSmoothingCalculatorOptions)
|
||||
|
||||
_SEGMENTATIONSMOOTHINGCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _SEGMENTATIONSMOOTHINGCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_SEGMENTATIONSMOOTHINGCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,85 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/image/set_alpha_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/image/set_alpha_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n6mediapipe/calculators/image/set_alpha_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\x88\x01\n\x19SetAlphaCalculatorOptions\x12\x17\n\x0b\x61lpha_value\x18\x01 \x01(\x11:\x02-12R\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xa7\xe1\xd4w \x01(\x0b\x32$.mediapipe.SetAlphaCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_SETALPHACALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='SetAlphaCalculatorOptions',
|
||||
full_name='mediapipe.SetAlphaCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='alpha_value', full_name='mediapipe.SetAlphaCalculatorOptions.alpha_value', index=0,
|
||||
number=1, type=17, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=-1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.SetAlphaCalculatorOptions.ext', index=0,
|
||||
number=250949799, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=108,
|
||||
serialized_end=244,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['SetAlphaCalculatorOptions'] = _SETALPHACALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
SetAlphaCalculatorOptions = _reflection.GeneratedProtocolMessageType('SetAlphaCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _SETALPHACALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.image.set_alpha_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.SetAlphaCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(SetAlphaCalculatorOptions)
|
||||
|
||||
_SETALPHACALCULATOROPTIONS.extensions_by_name['ext'].message_type = _SETALPHACALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_SETALPHACALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,121 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/internal/callback_packet_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/internal/callback_packet_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n?mediapipe/calculators/internal/callback_packet_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\x99\x02\n\x1f\x43\x61llbackPacketCalculatorOptions\x12\x44\n\x04type\x18\x01 \x01(\x0e\x32\x36.mediapipe.CallbackPacketCalculatorOptions.PointerType\x12\x0f\n\x07pointer\x18\x02 \x01(\x0c\"E\n\x0bPointerType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVECTOR_PACKET\x10\x01\x12\x16\n\x12POST_STREAM_PACKET\x10\x02\x32X\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xeb\xc7\xa4u \x01(\x0b\x32*.mediapipe.CallbackPacketCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
_CALLBACKPACKETCALCULATOROPTIONS_POINTERTYPE = _descriptor.EnumDescriptor(
|
||||
name='PointerType',
|
||||
full_name='mediapipe.CallbackPacketCalculatorOptions.PointerType',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UNKNOWN', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='VECTOR_PACKET', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='POST_STREAM_PACKET', index=2, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=239,
|
||||
serialized_end=308,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_CALLBACKPACKETCALCULATOROPTIONS_POINTERTYPE)
|
||||
|
||||
|
||||
_CALLBACKPACKETCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='CallbackPacketCalculatorOptions',
|
||||
full_name='mediapipe.CallbackPacketCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='type', full_name='mediapipe.CallbackPacketCalculatorOptions.type', index=0,
|
||||
number=1, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='pointer', full_name='mediapipe.CallbackPacketCalculatorOptions.pointer', index=1,
|
||||
number=2, type=12, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.CallbackPacketCalculatorOptions.ext', index=0,
|
||||
number=245965803, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_CALLBACKPACKETCALCULATOROPTIONS_POINTERTYPE,
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=117,
|
||||
serialized_end=398,
|
||||
)
|
||||
|
||||
_CALLBACKPACKETCALCULATOROPTIONS.fields_by_name['type'].enum_type = _CALLBACKPACKETCALCULATOROPTIONS_POINTERTYPE
|
||||
_CALLBACKPACKETCALCULATOROPTIONS_POINTERTYPE.containing_type = _CALLBACKPACKETCALCULATOROPTIONS
|
||||
DESCRIPTOR.message_types_by_name['CallbackPacketCalculatorOptions'] = _CALLBACKPACKETCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
CallbackPacketCalculatorOptions = _reflection.GeneratedProtocolMessageType('CallbackPacketCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CALLBACKPACKETCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.internal.callback_packet_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.CallbackPacketCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(CallbackPacketCalculatorOptions)
|
||||
|
||||
_CALLBACKPACKETCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _CALLBACKPACKETCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_CALLBACKPACKETCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,204 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/tensor/image_to_tensor_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.gpu import gpu_origin_pb2 as mediapipe_dot_gpu_dot_gpu__origin__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='mediapipe/calculators/tensor/image_to_tensor_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n=mediapipe/calculators/tensor/image_to_tensor_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\x1a\x1emediapipe/gpu/gpu_origin.proto\"\xa3\x04\n\x1eImageToTensorCalculatorOptions\x12\x1b\n\x13output_tensor_width\x18\x01 \x01(\x05\x12\x1c\n\x14output_tensor_height\x18\x02 \x01(\x05\x12\x19\n\x11keep_aspect_ratio\x18\x03 \x01(\x08\x12Y\n\x19output_tensor_float_range\x18\x04 \x01(\x0b\x32\x34.mediapipe.ImageToTensorCalculatorOptions.FloatRangeH\x00\x12-\n\ngpu_origin\x18\x05 \x01(\x0e\x32\x19.mediapipe.GpuOrigin.Mode\x12I\n\x0b\x62order_mode\x18\x06 \x01(\x0e\x32\x34.mediapipe.ImageToTensorCalculatorOptions.BorderMode\x1a&\n\nFloatRange\x12\x0b\n\x03min\x18\x01 \x01(\x02\x12\x0b\n\x03max\x18\x02 \x01(\x02\"K\n\nBorderMode\x12\x16\n\x12\x42ORDER_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x42ORDER_ZERO\x10\x01\x12\x14\n\x10\x42ORDER_REPLICATE\x10\x02\x32X\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xd3\xea\xb7\x9f\x01 \x01(\x0b\x32).mediapipe.ImageToTensorCalculatorOptionsB\x07\n\x05range')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,mediapipe_dot_gpu_dot_gpu__origin__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
_IMAGETOTENSORCALCULATOROPTIONS_BORDERMODE = _descriptor.EnumDescriptor(
|
||||
name='BorderMode',
|
||||
full_name='mediapipe.ImageToTensorCalculatorOptions.BorderMode',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='BORDER_UNSPECIFIED', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='BORDER_ZERO', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='BORDER_REPLICATE', index=2, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=520,
|
||||
serialized_end=595,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_IMAGETOTENSORCALCULATOROPTIONS_BORDERMODE)
|
||||
|
||||
|
||||
_IMAGETOTENSORCALCULATOROPTIONS_FLOATRANGE = _descriptor.Descriptor(
|
||||
name='FloatRange',
|
||||
full_name='mediapipe.ImageToTensorCalculatorOptions.FloatRange',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='min', full_name='mediapipe.ImageToTensorCalculatorOptions.FloatRange.min', index=0,
|
||||
number=1, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='max', full_name='mediapipe.ImageToTensorCalculatorOptions.FloatRange.max', index=1,
|
||||
number=2, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=480,
|
||||
serialized_end=518,
|
||||
)
|
||||
|
||||
_IMAGETOTENSORCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='ImageToTensorCalculatorOptions',
|
||||
full_name='mediapipe.ImageToTensorCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='output_tensor_width', full_name='mediapipe.ImageToTensorCalculatorOptions.output_tensor_width', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='output_tensor_height', full_name='mediapipe.ImageToTensorCalculatorOptions.output_tensor_height', index=1,
|
||||
number=2, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='keep_aspect_ratio', full_name='mediapipe.ImageToTensorCalculatorOptions.keep_aspect_ratio', index=2,
|
||||
number=3, type=8, cpp_type=7, label=1,
|
||||
has_default_value=False, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='output_tensor_float_range', full_name='mediapipe.ImageToTensorCalculatorOptions.output_tensor_float_range', index=3,
|
||||
number=4, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='gpu_origin', full_name='mediapipe.ImageToTensorCalculatorOptions.gpu_origin', index=4,
|
||||
number=5, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='border_mode', full_name='mediapipe.ImageToTensorCalculatorOptions.border_mode', index=5,
|
||||
number=6, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.ImageToTensorCalculatorOptions.ext', index=0,
|
||||
number=334361939, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[_IMAGETOTENSORCALCULATOROPTIONS_FLOATRANGE, ],
|
||||
enum_types=[
|
||||
_IMAGETOTENSORCALCULATOROPTIONS_BORDERMODE,
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
_descriptor.OneofDescriptor(
|
||||
name='range', full_name='mediapipe.ImageToTensorCalculatorOptions.range',
|
||||
index=0, containing_type=None, fields=[]),
|
||||
],
|
||||
serialized_start=147,
|
||||
serialized_end=694,
|
||||
)
|
||||
|
||||
_IMAGETOTENSORCALCULATOROPTIONS_FLOATRANGE.containing_type = _IMAGETOTENSORCALCULATOROPTIONS
|
||||
_IMAGETOTENSORCALCULATOROPTIONS.fields_by_name['output_tensor_float_range'].message_type = _IMAGETOTENSORCALCULATOROPTIONS_FLOATRANGE
|
||||
_IMAGETOTENSORCALCULATOROPTIONS.fields_by_name['gpu_origin'].enum_type = mediapipe_dot_gpu_dot_gpu__origin__pb2._GPUORIGIN_MODE
|
||||
_IMAGETOTENSORCALCULATOROPTIONS.fields_by_name['border_mode'].enum_type = _IMAGETOTENSORCALCULATOROPTIONS_BORDERMODE
|
||||
_IMAGETOTENSORCALCULATOROPTIONS_BORDERMODE.containing_type = _IMAGETOTENSORCALCULATOROPTIONS
|
||||
_IMAGETOTENSORCALCULATOROPTIONS.oneofs_by_name['range'].fields.append(
|
||||
_IMAGETOTENSORCALCULATOROPTIONS.fields_by_name['output_tensor_float_range'])
|
||||
_IMAGETOTENSORCALCULATOROPTIONS.fields_by_name['output_tensor_float_range'].containing_oneof = _IMAGETOTENSORCALCULATOROPTIONS.oneofs_by_name['range']
|
||||
DESCRIPTOR.message_types_by_name['ImageToTensorCalculatorOptions'] = _IMAGETOTENSORCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
ImageToTensorCalculatorOptions = _reflection.GeneratedProtocolMessageType('ImageToTensorCalculatorOptions', (_message.Message,), dict(
|
||||
|
||||
FloatRange = _reflection.GeneratedProtocolMessageType('FloatRange', (_message.Message,), dict(
|
||||
DESCRIPTOR = _IMAGETOTENSORCALCULATOROPTIONS_FLOATRANGE,
|
||||
__module__ = 'mediapipe.calculators.tensor.image_to_tensor_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.ImageToTensorCalculatorOptions.FloatRange)
|
||||
))
|
||||
,
|
||||
DESCRIPTOR = _IMAGETOTENSORCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.tensor.image_to_tensor_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.ImageToTensorCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(ImageToTensorCalculatorOptions)
|
||||
_sym_db.RegisterMessage(ImageToTensorCalculatorOptions.FloatRange)
|
||||
|
||||
_IMAGETOTENSORCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _IMAGETOTENSORCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_IMAGETOTENSORCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,437 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/tensor/inference_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/tensor/inference_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n7mediapipe/calculators/tensor/inference_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xc6\x08\n\x1aInferenceCalculatorOptions\x12\x12\n\nmodel_path\x18\x01 \x01(\t\x12\x1a\n\x07use_gpu\x18\x02 \x01(\x08:\x05\x66\x61lseB\x02\x18\x01\x12\x1c\n\tuse_nnapi\x18\x03 \x01(\x08:\x05\x66\x61lseB\x02\x18\x01\x12\x1a\n\x0e\x63pu_num_thread\x18\x04 \x01(\x05:\x02-1\x12@\n\x08\x64\x65legate\x18\x05 \x01(\x0b\x32..mediapipe.InferenceCalculatorOptions.Delegate\x1a\xa5\x06\n\x08\x44\x65legate\x12G\n\x06tflite\x18\x01 \x01(\x0b\x32\x35.mediapipe.InferenceCalculatorOptions.Delegate.TfLiteH\x00\x12\x41\n\x03gpu\x18\x02 \x01(\x0b\x32\x32.mediapipe.InferenceCalculatorOptions.Delegate.GpuH\x00\x12\x45\n\x05nnapi\x18\x03 \x01(\x0b\x32\x34.mediapipe.InferenceCalculatorOptions.Delegate.NnapiH\x00\x12I\n\x07xnnpack\x18\x04 \x01(\x0b\x32\x36.mediapipe.InferenceCalculatorOptions.Delegate.XnnpackH\x00\x1a\x08\n\x06TfLite\x1a\x8f\x03\n\x03Gpu\x12#\n\x14use_advanced_gpu_api\x18\x01 \x01(\x08:\x05\x66\x61lse\x12H\n\x03\x61pi\x18\x04 \x01(\x0e\x32\x36.mediapipe.InferenceCalculatorOptions.Delegate.Gpu.Api:\x03\x41NY\x12\"\n\x14\x61llow_precision_loss\x18\x03 \x01(\x08:\x04true\x12\x1a\n\x12\x63\x61\x63hed_kernel_path\x18\x02 \x01(\t\x12\x61\n\x05usage\x18\x05 \x01(\x0e\x32\x41.mediapipe.InferenceCalculatorOptions.Delegate.Gpu.InferenceUsage:\x0fSUSTAINED_SPEED\"&\n\x03\x41pi\x12\x07\n\x03\x41NY\x10\x00\x12\n\n\x06OPENGL\x10\x01\x12\n\n\x06OPENCL\x10\x02\"N\n\x0eInferenceUsage\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x16\n\x12\x46\x41ST_SINGLE_ANSWER\x10\x01\x12\x13\n\x0fSUSTAINED_SPEED\x10\x02\x1a/\n\x05Nnapi\x12\x11\n\tcache_dir\x18\x01 \x01(\t\x12\x13\n\x0bmodel_token\x18\x02 \x01(\t\x1a\"\n\x07Xnnpack\x12\x17\n\x0bnum_threads\x18\x01 \x01(\x05:\x02-1B\n\n\x08\x64\x65legate2T\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xf7\xd3\xcb\xa0\x01 \x01(\x0b\x32%.mediapipe.InferenceCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE_GPU_API = _descriptor.EnumDescriptor(
|
||||
name='Api',
|
||||
full_name='mediapipe.InferenceCalculatorOptions.Delegate.Gpu.Api',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ANY', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='OPENGL', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='OPENCL', index=2, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=902,
|
||||
serialized_end=940,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_INFERENCECALCULATOROPTIONS_DELEGATE_GPU_API)
|
||||
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE_GPU_INFERENCEUSAGE = _descriptor.EnumDescriptor(
|
||||
name='InferenceUsage',
|
||||
full_name='mediapipe.InferenceCalculatorOptions.Delegate.Gpu.InferenceUsage',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UNSPECIFIED', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='FAST_SINGLE_ANSWER', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SUSTAINED_SPEED', index=2, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=942,
|
||||
serialized_end=1020,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_INFERENCECALCULATOROPTIONS_DELEGATE_GPU_INFERENCEUSAGE)
|
||||
|
||||
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE_TFLITE = _descriptor.Descriptor(
|
||||
name='TfLite',
|
||||
full_name='mediapipe.InferenceCalculatorOptions.Delegate.TfLite',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=610,
|
||||
serialized_end=618,
|
||||
)
|
||||
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE_GPU = _descriptor.Descriptor(
|
||||
name='Gpu',
|
||||
full_name='mediapipe.InferenceCalculatorOptions.Delegate.Gpu',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='use_advanced_gpu_api', full_name='mediapipe.InferenceCalculatorOptions.Delegate.Gpu.use_advanced_gpu_api', index=0,
|
||||
number=1, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='api', full_name='mediapipe.InferenceCalculatorOptions.Delegate.Gpu.api', index=1,
|
||||
number=4, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='allow_precision_loss', full_name='mediapipe.InferenceCalculatorOptions.Delegate.Gpu.allow_precision_loss', index=2,
|
||||
number=3, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=True,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='cached_kernel_path', full_name='mediapipe.InferenceCalculatorOptions.Delegate.Gpu.cached_kernel_path', index=3,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='usage', full_name='mediapipe.InferenceCalculatorOptions.Delegate.Gpu.usage', index=4,
|
||||
number=5, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=2,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE_GPU_API,
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE_GPU_INFERENCEUSAGE,
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=621,
|
||||
serialized_end=1020,
|
||||
)
|
||||
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE_NNAPI = _descriptor.Descriptor(
|
||||
name='Nnapi',
|
||||
full_name='mediapipe.InferenceCalculatorOptions.Delegate.Nnapi',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='cache_dir', full_name='mediapipe.InferenceCalculatorOptions.Delegate.Nnapi.cache_dir', index=0,
|
||||
number=1, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='model_token', full_name='mediapipe.InferenceCalculatorOptions.Delegate.Nnapi.model_token', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=1022,
|
||||
serialized_end=1069,
|
||||
)
|
||||
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE_XNNPACK = _descriptor.Descriptor(
|
||||
name='Xnnpack',
|
||||
full_name='mediapipe.InferenceCalculatorOptions.Delegate.Xnnpack',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='num_threads', full_name='mediapipe.InferenceCalculatorOptions.Delegate.Xnnpack.num_threads', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=-1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=1071,
|
||||
serialized_end=1105,
|
||||
)
|
||||
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE = _descriptor.Descriptor(
|
||||
name='Delegate',
|
||||
full_name='mediapipe.InferenceCalculatorOptions.Delegate',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='tflite', full_name='mediapipe.InferenceCalculatorOptions.Delegate.tflite', index=0,
|
||||
number=1, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='gpu', full_name='mediapipe.InferenceCalculatorOptions.Delegate.gpu', index=1,
|
||||
number=2, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='nnapi', full_name='mediapipe.InferenceCalculatorOptions.Delegate.nnapi', index=2,
|
||||
number=3, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='xnnpack', full_name='mediapipe.InferenceCalculatorOptions.Delegate.xnnpack', index=3,
|
||||
number=4, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[_INFERENCECALCULATOROPTIONS_DELEGATE_TFLITE, _INFERENCECALCULATOROPTIONS_DELEGATE_GPU, _INFERENCECALCULATOROPTIONS_DELEGATE_NNAPI, _INFERENCECALCULATOROPTIONS_DELEGATE_XNNPACK, ],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
_descriptor.OneofDescriptor(
|
||||
name='delegate', full_name='mediapipe.InferenceCalculatorOptions.Delegate.delegate',
|
||||
index=0, containing_type=None, fields=[]),
|
||||
],
|
||||
serialized_start=312,
|
||||
serialized_end=1117,
|
||||
)
|
||||
|
||||
_INFERENCECALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='InferenceCalculatorOptions',
|
||||
full_name='mediapipe.InferenceCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='model_path', full_name='mediapipe.InferenceCalculatorOptions.model_path', index=0,
|
||||
number=1, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='use_gpu', full_name='mediapipe.InferenceCalculatorOptions.use_gpu', index=1,
|
||||
number=2, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=_b('\030\001'), file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='use_nnapi', full_name='mediapipe.InferenceCalculatorOptions.use_nnapi', index=2,
|
||||
number=3, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=_b('\030\001'), file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='cpu_num_thread', full_name='mediapipe.InferenceCalculatorOptions.cpu_num_thread', index=3,
|
||||
number=4, type=5, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=-1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='delegate', full_name='mediapipe.InferenceCalculatorOptions.delegate', index=4,
|
||||
number=5, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.InferenceCalculatorOptions.ext', index=0,
|
||||
number=336783863, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[_INFERENCECALCULATOROPTIONS_DELEGATE, ],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=109,
|
||||
serialized_end=1203,
|
||||
)
|
||||
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE_TFLITE.containing_type = _INFERENCECALCULATOROPTIONS_DELEGATE
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE_GPU.fields_by_name['api'].enum_type = _INFERENCECALCULATOROPTIONS_DELEGATE_GPU_API
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE_GPU.fields_by_name['usage'].enum_type = _INFERENCECALCULATOROPTIONS_DELEGATE_GPU_INFERENCEUSAGE
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE_GPU.containing_type = _INFERENCECALCULATOROPTIONS_DELEGATE
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE_GPU_API.containing_type = _INFERENCECALCULATOROPTIONS_DELEGATE_GPU
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE_GPU_INFERENCEUSAGE.containing_type = _INFERENCECALCULATOROPTIONS_DELEGATE_GPU
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE_NNAPI.containing_type = _INFERENCECALCULATOROPTIONS_DELEGATE
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE_XNNPACK.containing_type = _INFERENCECALCULATOROPTIONS_DELEGATE
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE.fields_by_name['tflite'].message_type = _INFERENCECALCULATOROPTIONS_DELEGATE_TFLITE
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE.fields_by_name['gpu'].message_type = _INFERENCECALCULATOROPTIONS_DELEGATE_GPU
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE.fields_by_name['nnapi'].message_type = _INFERENCECALCULATOROPTIONS_DELEGATE_NNAPI
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE.fields_by_name['xnnpack'].message_type = _INFERENCECALCULATOROPTIONS_DELEGATE_XNNPACK
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE.containing_type = _INFERENCECALCULATOROPTIONS
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE.oneofs_by_name['delegate'].fields.append(
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE.fields_by_name['tflite'])
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE.fields_by_name['tflite'].containing_oneof = _INFERENCECALCULATOROPTIONS_DELEGATE.oneofs_by_name['delegate']
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE.oneofs_by_name['delegate'].fields.append(
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE.fields_by_name['gpu'])
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE.fields_by_name['gpu'].containing_oneof = _INFERENCECALCULATOROPTIONS_DELEGATE.oneofs_by_name['delegate']
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE.oneofs_by_name['delegate'].fields.append(
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE.fields_by_name['nnapi'])
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE.fields_by_name['nnapi'].containing_oneof = _INFERENCECALCULATOROPTIONS_DELEGATE.oneofs_by_name['delegate']
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE.oneofs_by_name['delegate'].fields.append(
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE.fields_by_name['xnnpack'])
|
||||
_INFERENCECALCULATOROPTIONS_DELEGATE.fields_by_name['xnnpack'].containing_oneof = _INFERENCECALCULATOROPTIONS_DELEGATE.oneofs_by_name['delegate']
|
||||
_INFERENCECALCULATOROPTIONS.fields_by_name['delegate'].message_type = _INFERENCECALCULATOROPTIONS_DELEGATE
|
||||
DESCRIPTOR.message_types_by_name['InferenceCalculatorOptions'] = _INFERENCECALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
InferenceCalculatorOptions = _reflection.GeneratedProtocolMessageType('InferenceCalculatorOptions', (_message.Message,), dict(
|
||||
|
||||
Delegate = _reflection.GeneratedProtocolMessageType('Delegate', (_message.Message,), dict(
|
||||
|
||||
TfLite = _reflection.GeneratedProtocolMessageType('TfLite', (_message.Message,), dict(
|
||||
DESCRIPTOR = _INFERENCECALCULATOROPTIONS_DELEGATE_TFLITE,
|
||||
__module__ = 'mediapipe.calculators.tensor.inference_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.InferenceCalculatorOptions.Delegate.TfLite)
|
||||
))
|
||||
,
|
||||
|
||||
Gpu = _reflection.GeneratedProtocolMessageType('Gpu', (_message.Message,), dict(
|
||||
DESCRIPTOR = _INFERENCECALCULATOROPTIONS_DELEGATE_GPU,
|
||||
__module__ = 'mediapipe.calculators.tensor.inference_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.InferenceCalculatorOptions.Delegate.Gpu)
|
||||
))
|
||||
,
|
||||
|
||||
Nnapi = _reflection.GeneratedProtocolMessageType('Nnapi', (_message.Message,), dict(
|
||||
DESCRIPTOR = _INFERENCECALCULATOROPTIONS_DELEGATE_NNAPI,
|
||||
__module__ = 'mediapipe.calculators.tensor.inference_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.InferenceCalculatorOptions.Delegate.Nnapi)
|
||||
))
|
||||
,
|
||||
|
||||
Xnnpack = _reflection.GeneratedProtocolMessageType('Xnnpack', (_message.Message,), dict(
|
||||
DESCRIPTOR = _INFERENCECALCULATOROPTIONS_DELEGATE_XNNPACK,
|
||||
__module__ = 'mediapipe.calculators.tensor.inference_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.InferenceCalculatorOptions.Delegate.Xnnpack)
|
||||
))
|
||||
,
|
||||
DESCRIPTOR = _INFERENCECALCULATOROPTIONS_DELEGATE,
|
||||
__module__ = 'mediapipe.calculators.tensor.inference_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.InferenceCalculatorOptions.Delegate)
|
||||
))
|
||||
,
|
||||
DESCRIPTOR = _INFERENCECALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.tensor.inference_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.InferenceCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(InferenceCalculatorOptions)
|
||||
_sym_db.RegisterMessage(InferenceCalculatorOptions.Delegate)
|
||||
_sym_db.RegisterMessage(InferenceCalculatorOptions.Delegate.TfLite)
|
||||
_sym_db.RegisterMessage(InferenceCalculatorOptions.Delegate.Gpu)
|
||||
_sym_db.RegisterMessage(InferenceCalculatorOptions.Delegate.Nnapi)
|
||||
_sym_db.RegisterMessage(InferenceCalculatorOptions.Delegate.Xnnpack)
|
||||
|
||||
_INFERENCECALCULATOROPTIONS.extensions_by_name['ext'].message_type = _INFERENCECALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_INFERENCECALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
_INFERENCECALCULATOROPTIONS.fields_by_name['use_gpu']._options = None
|
||||
_INFERENCECALCULATOROPTIONS.fields_by_name['use_nnapi']._options = None
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,188 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/tensor/tensor_converter_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/tensor/tensor_converter_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n>mediapipe/calculators/tensor/tensor_converter_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\x85\x04\n TensorConverterCalculatorOptions\x12\x19\n\x0bzero_center\x18\x01 \x01(\x08:\x04true\x12\'\n\x18use_custom_normalization\x18\x06 \x01(\x08:\x05\x66\x61lse\x12\x16\n\ncustom_div\x18\x07 \x01(\x02:\x02-1\x12\x16\n\ncustom_sub\x18\x08 \x01(\x02:\x02-1\x12\x1e\n\x0f\x66lip_vertically\x18\x02 \x01(\x08:\x05\x66\x61lse\x12\x1b\n\x10max_num_channels\x18\x03 \x01(\x05:\x01\x33\x12\x1f\n\x10row_major_matrix\x18\x04 \x01(\x08:\x05\x66\x61lse\x12$\n\x15use_quantized_tensors\x18\x05 \x01(\x08:\x05\x66\x61lse\x12_\n\x19output_tensor_float_range\x18\t \x01(\x0b\x32<.mediapipe.TensorConverterCalculatorOptions.TensorFloatRange\x1a,\n\x10TensorFloatRange\x12\x0b\n\x03min\x18\x01 \x01(\x02\x12\x0b\n\x03max\x18\x02 \x01(\x02\x32Z\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xad\x8d\x8c\xa0\x01 \x01(\x0b\x32+.mediapipe.TensorConverterCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_TENSORCONVERTERCALCULATOROPTIONS_TENSORFLOATRANGE = _descriptor.Descriptor(
|
||||
name='TensorFloatRange',
|
||||
full_name='mediapipe.TensorConverterCalculatorOptions.TensorFloatRange',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='min', full_name='mediapipe.TensorConverterCalculatorOptions.TensorFloatRange.min', index=0,
|
||||
number=1, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='max', full_name='mediapipe.TensorConverterCalculatorOptions.TensorFloatRange.max', index=1,
|
||||
number=2, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=497,
|
||||
serialized_end=541,
|
||||
)
|
||||
|
||||
_TENSORCONVERTERCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='TensorConverterCalculatorOptions',
|
||||
full_name='mediapipe.TensorConverterCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='zero_center', full_name='mediapipe.TensorConverterCalculatorOptions.zero_center', index=0,
|
||||
number=1, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=True,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='use_custom_normalization', full_name='mediapipe.TensorConverterCalculatorOptions.use_custom_normalization', index=1,
|
||||
number=6, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='custom_div', full_name='mediapipe.TensorConverterCalculatorOptions.custom_div', index=2,
|
||||
number=7, type=2, cpp_type=6, label=1,
|
||||
has_default_value=True, default_value=float(-1),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='custom_sub', full_name='mediapipe.TensorConverterCalculatorOptions.custom_sub', index=3,
|
||||
number=8, type=2, cpp_type=6, label=1,
|
||||
has_default_value=True, default_value=float(-1),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='flip_vertically', full_name='mediapipe.TensorConverterCalculatorOptions.flip_vertically', index=4,
|
||||
number=2, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='max_num_channels', full_name='mediapipe.TensorConverterCalculatorOptions.max_num_channels', index=5,
|
||||
number=3, type=5, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=3,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='row_major_matrix', full_name='mediapipe.TensorConverterCalculatorOptions.row_major_matrix', index=6,
|
||||
number=4, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='use_quantized_tensors', full_name='mediapipe.TensorConverterCalculatorOptions.use_quantized_tensors', index=7,
|
||||
number=5, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='output_tensor_float_range', full_name='mediapipe.TensorConverterCalculatorOptions.output_tensor_float_range', index=8,
|
||||
number=9, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.TensorConverterCalculatorOptions.ext', index=0,
|
||||
number=335742637, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[_TENSORCONVERTERCALCULATOROPTIONS_TENSORFLOATRANGE, ],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=116,
|
||||
serialized_end=633,
|
||||
)
|
||||
|
||||
_TENSORCONVERTERCALCULATOROPTIONS_TENSORFLOATRANGE.containing_type = _TENSORCONVERTERCALCULATOROPTIONS
|
||||
_TENSORCONVERTERCALCULATOROPTIONS.fields_by_name['output_tensor_float_range'].message_type = _TENSORCONVERTERCALCULATOROPTIONS_TENSORFLOATRANGE
|
||||
DESCRIPTOR.message_types_by_name['TensorConverterCalculatorOptions'] = _TENSORCONVERTERCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
TensorConverterCalculatorOptions = _reflection.GeneratedProtocolMessageType('TensorConverterCalculatorOptions', (_message.Message,), dict(
|
||||
|
||||
TensorFloatRange = _reflection.GeneratedProtocolMessageType('TensorFloatRange', (_message.Message,), dict(
|
||||
DESCRIPTOR = _TENSORCONVERTERCALCULATOROPTIONS_TENSORFLOATRANGE,
|
||||
__module__ = 'mediapipe.calculators.tensor.tensor_converter_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.TensorConverterCalculatorOptions.TensorFloatRange)
|
||||
))
|
||||
,
|
||||
DESCRIPTOR = _TENSORCONVERTERCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.tensor.tensor_converter_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.TensorConverterCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(TensorConverterCalculatorOptions)
|
||||
_sym_db.RegisterMessage(TensorConverterCalculatorOptions.TensorFloatRange)
|
||||
|
||||
_TENSORCONVERTERCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _TENSORCONVERTERCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_TENSORCONVERTERCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,200 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/tensor/tensors_to_classification_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/tensor/tensors_to_classification_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\nGmediapipe/calculators/tensor/tensors_to_classification_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xc8\x03\n(TensorsToClassificationCalculatorOptions\x12\x1b\n\x13min_score_threshold\x18\x01 \x01(\x02\x12\r\n\x05top_k\x18\x02 \x01(\x05\x12\x16\n\x0elabel_map_path\x18\x03 \x01(\t\x12O\n\tlabel_map\x18\x05 \x01(\x0b\x32<.mediapipe.TensorsToClassificationCalculatorOptions.LabelMap\x12\x1d\n\x15\x62inary_classification\x18\x04 \x01(\x08\x1a\x83\x01\n\x08LabelMap\x12S\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x42.mediapipe.TensorsToClassificationCalculatorOptions.LabelMap.Entry\x1a\"\n\x05\x45ntry\x12\n\n\x02id\x18\x01 \x01(\x05\x12\r\n\x05label\x18\x02 \x01(\t2b\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xae\x8d\x8c\xa0\x01 \x01(\x0b\x32\x33.mediapipe.TensorsToClassificationCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_TENSORSTOCLASSIFICATIONCALCULATOROPTIONS_LABELMAP_ENTRY = _descriptor.Descriptor(
|
||||
name='Entry',
|
||||
full_name='mediapipe.TensorsToClassificationCalculatorOptions.LabelMap.Entry',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='id', full_name='mediapipe.TensorsToClassificationCalculatorOptions.LabelMap.Entry.id', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='label', full_name='mediapipe.TensorsToClassificationCalculatorOptions.LabelMap.Entry.label', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=447,
|
||||
serialized_end=481,
|
||||
)
|
||||
|
||||
_TENSORSTOCLASSIFICATIONCALCULATOROPTIONS_LABELMAP = _descriptor.Descriptor(
|
||||
name='LabelMap',
|
||||
full_name='mediapipe.TensorsToClassificationCalculatorOptions.LabelMap',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='entries', full_name='mediapipe.TensorsToClassificationCalculatorOptions.LabelMap.entries', index=0,
|
||||
number=1, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[_TENSORSTOCLASSIFICATIONCALCULATOROPTIONS_LABELMAP_ENTRY, ],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=350,
|
||||
serialized_end=481,
|
||||
)
|
||||
|
||||
_TENSORSTOCLASSIFICATIONCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='TensorsToClassificationCalculatorOptions',
|
||||
full_name='mediapipe.TensorsToClassificationCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='min_score_threshold', full_name='mediapipe.TensorsToClassificationCalculatorOptions.min_score_threshold', index=0,
|
||||
number=1, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='top_k', full_name='mediapipe.TensorsToClassificationCalculatorOptions.top_k', index=1,
|
||||
number=2, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='label_map_path', full_name='mediapipe.TensorsToClassificationCalculatorOptions.label_map_path', index=2,
|
||||
number=3, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='label_map', full_name='mediapipe.TensorsToClassificationCalculatorOptions.label_map', index=3,
|
||||
number=5, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='binary_classification', full_name='mediapipe.TensorsToClassificationCalculatorOptions.binary_classification', index=4,
|
||||
number=4, type=8, cpp_type=7, label=1,
|
||||
has_default_value=False, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.TensorsToClassificationCalculatorOptions.ext', index=0,
|
||||
number=335742638, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[_TENSORSTOCLASSIFICATIONCALCULATOROPTIONS_LABELMAP, ],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=125,
|
||||
serialized_end=581,
|
||||
)
|
||||
|
||||
_TENSORSTOCLASSIFICATIONCALCULATOROPTIONS_LABELMAP_ENTRY.containing_type = _TENSORSTOCLASSIFICATIONCALCULATOROPTIONS_LABELMAP
|
||||
_TENSORSTOCLASSIFICATIONCALCULATOROPTIONS_LABELMAP.fields_by_name['entries'].message_type = _TENSORSTOCLASSIFICATIONCALCULATOROPTIONS_LABELMAP_ENTRY
|
||||
_TENSORSTOCLASSIFICATIONCALCULATOROPTIONS_LABELMAP.containing_type = _TENSORSTOCLASSIFICATIONCALCULATOROPTIONS
|
||||
_TENSORSTOCLASSIFICATIONCALCULATOROPTIONS.fields_by_name['label_map'].message_type = _TENSORSTOCLASSIFICATIONCALCULATOROPTIONS_LABELMAP
|
||||
DESCRIPTOR.message_types_by_name['TensorsToClassificationCalculatorOptions'] = _TENSORSTOCLASSIFICATIONCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
TensorsToClassificationCalculatorOptions = _reflection.GeneratedProtocolMessageType('TensorsToClassificationCalculatorOptions', (_message.Message,), dict(
|
||||
|
||||
LabelMap = _reflection.GeneratedProtocolMessageType('LabelMap', (_message.Message,), dict(
|
||||
|
||||
Entry = _reflection.GeneratedProtocolMessageType('Entry', (_message.Message,), dict(
|
||||
DESCRIPTOR = _TENSORSTOCLASSIFICATIONCALCULATOROPTIONS_LABELMAP_ENTRY,
|
||||
__module__ = 'mediapipe.calculators.tensor.tensors_to_classification_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.TensorsToClassificationCalculatorOptions.LabelMap.Entry)
|
||||
))
|
||||
,
|
||||
DESCRIPTOR = _TENSORSTOCLASSIFICATIONCALCULATOROPTIONS_LABELMAP,
|
||||
__module__ = 'mediapipe.calculators.tensor.tensors_to_classification_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.TensorsToClassificationCalculatorOptions.LabelMap)
|
||||
))
|
||||
,
|
||||
DESCRIPTOR = _TENSORSTOCLASSIFICATIONCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.tensor.tensors_to_classification_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.TensorsToClassificationCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(TensorsToClassificationCalculatorOptions)
|
||||
_sym_db.RegisterMessage(TensorsToClassificationCalculatorOptions.LabelMap)
|
||||
_sym_db.RegisterMessage(TensorsToClassificationCalculatorOptions.LabelMap.Entry)
|
||||
|
||||
_TENSORSTOCLASSIFICATIONCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _TENSORSTOCLASSIFICATIONCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_TENSORSTOCLASSIFICATIONCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,204 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/tensor/tensors_to_detections_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/tensor/tensors_to_detections_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\nCmediapipe/calculators/tensor/tensors_to_detections_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xee\x04\n$TensorsToDetectionsCalculatorOptions\x12\x13\n\x0bnum_classes\x18\x01 \x01(\x05\x12\x11\n\tnum_boxes\x18\x02 \x01(\x05\x12\x12\n\nnum_coords\x18\x03 \x01(\x05\x12\x1d\n\x15keypoint_coord_offset\x18\t \x01(\x05\x12\x18\n\rnum_keypoints\x18\n \x01(\x05:\x01\x30\x12\"\n\x17num_values_per_keypoint\x18\x0b \x01(\x05:\x01\x32\x12\x1b\n\x10\x62ox_coord_offset\x18\x0c \x01(\x05:\x01\x30\x12\x12\n\x07x_scale\x18\x04 \x01(\x02:\x01\x30\x12\x12\n\x07y_scale\x18\x05 \x01(\x02:\x01\x30\x12\x12\n\x07w_scale\x18\x06 \x01(\x02:\x01\x30\x12\x12\n\x07h_scale\x18\x07 \x01(\x02:\x01\x30\x12,\n\x1d\x61pply_exponential_on_box_size\x18\r \x01(\x08:\x05\x66\x61lse\x12#\n\x14reverse_output_order\x18\x0e \x01(\x08:\x05\x66\x61lse\x12\x16\n\x0eignore_classes\x18\x08 \x03(\x05\x12\x1c\n\rsigmoid_score\x18\x0f \x01(\x08:\x05\x66\x61lse\x12\x1d\n\x15score_clipping_thresh\x18\x10 \x01(\x02\x12\x1e\n\x0f\x66lip_vertically\x18\x12 \x01(\x08:\x05\x66\x61lse\x12\x18\n\x10min_score_thresh\x18\x13 \x01(\x02\x32^\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xaf\x8d\x8c\xa0\x01 \x01(\x0b\x32/.mediapipe.TensorsToDetectionsCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
|
||||
_TENSORSTODETECTIONSCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='TensorsToDetectionsCalculatorOptions',
|
||||
full_name='mediapipe.TensorsToDetectionsCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='num_classes', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.num_classes', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='num_boxes', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.num_boxes', index=1,
|
||||
number=2, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='num_coords', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.num_coords', index=2,
|
||||
number=3, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='keypoint_coord_offset', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.keypoint_coord_offset', index=3,
|
||||
number=9, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='num_keypoints', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.num_keypoints', index=4,
|
||||
number=10, type=5, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='num_values_per_keypoint', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.num_values_per_keypoint', index=5,
|
||||
number=11, type=5, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=2,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='box_coord_offset', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.box_coord_offset', index=6,
|
||||
number=12, type=5, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='x_scale', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.x_scale', index=7,
|
||||
number=4, type=2, cpp_type=6, label=1,
|
||||
has_default_value=True, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='y_scale', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.y_scale', index=8,
|
||||
number=5, type=2, cpp_type=6, label=1,
|
||||
has_default_value=True, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='w_scale', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.w_scale', index=9,
|
||||
number=6, type=2, cpp_type=6, label=1,
|
||||
has_default_value=True, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='h_scale', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.h_scale', index=10,
|
||||
number=7, type=2, cpp_type=6, label=1,
|
||||
has_default_value=True, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='apply_exponential_on_box_size', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.apply_exponential_on_box_size', index=11,
|
||||
number=13, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='reverse_output_order', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.reverse_output_order', index=12,
|
||||
number=14, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ignore_classes', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.ignore_classes', index=13,
|
||||
number=8, type=5, cpp_type=1, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='sigmoid_score', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.sigmoid_score', index=14,
|
||||
number=15, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='score_clipping_thresh', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.score_clipping_thresh', index=15,
|
||||
number=16, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='flip_vertically', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.flip_vertically', index=16,
|
||||
number=18, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='min_score_thresh', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.min_score_thresh', index=17,
|
||||
number=19, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.TensorsToDetectionsCalculatorOptions.ext', index=0,
|
||||
number=335742639, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=121,
|
||||
serialized_end=743,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['TensorsToDetectionsCalculatorOptions'] = _TENSORSTODETECTIONSCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
TensorsToDetectionsCalculatorOptions = _reflection.GeneratedProtocolMessageType('TensorsToDetectionsCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _TENSORSTODETECTIONSCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.tensor.tensors_to_detections_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.TensorsToDetectionsCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(TensorsToDetectionsCalculatorOptions)
|
||||
|
||||
_TENSORSTODETECTIONSCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _TENSORSTODETECTIONSCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_TENSORSTODETECTIONSCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,110 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/tensor/tensors_to_floats_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/tensor/tensors_to_floats_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\n?mediapipe/calculators/tensor/tensors_to_floats_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xf5\x01\n TensorsToFloatsCalculatorOptions\x12P\n\nactivation\x18\x01 \x01(\x0e\x32\x36.mediapipe.TensorsToFloatsCalculatorOptions.Activation:\x04NONE\"#\n\nActivation\x12\x08\n\x04NONE\x10\x00\x12\x0b\n\x07SIGMOID\x10\x01\x32Z\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xeb\xc2\xe5\xa3\x01 \x01(\x0b\x32+.mediapipe.TensorsToFloatsCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
_TENSORSTOFLOATSCALCULATOROPTIONS_ACTIVATION = _descriptor.EnumDescriptor(
|
||||
name='Activation',
|
||||
full_name='mediapipe.TensorsToFloatsCalculatorOptions.Activation',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='NONE', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SIGMOID', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=235,
|
||||
serialized_end=270,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_TENSORSTOFLOATSCALCULATOROPTIONS_ACTIVATION)
|
||||
|
||||
|
||||
_TENSORSTOFLOATSCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='TensorsToFloatsCalculatorOptions',
|
||||
full_name='mediapipe.TensorsToFloatsCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='activation', full_name='mediapipe.TensorsToFloatsCalculatorOptions.activation', index=0,
|
||||
number=1, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.TensorsToFloatsCalculatorOptions.ext', index=0,
|
||||
number=343499115, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_TENSORSTOFLOATSCALCULATOROPTIONS_ACTIVATION,
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=117,
|
||||
serialized_end=362,
|
||||
)
|
||||
|
||||
_TENSORSTOFLOATSCALCULATOROPTIONS.fields_by_name['activation'].enum_type = _TENSORSTOFLOATSCALCULATOROPTIONS_ACTIVATION
|
||||
_TENSORSTOFLOATSCALCULATOROPTIONS_ACTIVATION.containing_type = _TENSORSTOFLOATSCALCULATOROPTIONS
|
||||
DESCRIPTOR.message_types_by_name['TensorsToFloatsCalculatorOptions'] = _TENSORSTOFLOATSCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
TensorsToFloatsCalculatorOptions = _reflection.GeneratedProtocolMessageType('TensorsToFloatsCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _TENSORSTOFLOATSCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.tensor.tensors_to_floats_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.TensorsToFloatsCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(TensorsToFloatsCalculatorOptions)
|
||||
|
||||
_TENSORSTOFLOATSCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _TENSORSTOFLOATSCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_TENSORSTOFLOATSCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,160 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/tensor/tensors_to_landmarks_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.FileDescriptor(
|
||||
name='mediapipe/calculators/tensor/tensors_to_landmarks_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\nBmediapipe/calculators/tensor/tensors_to_landmarks_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\x8f\x04\n#TensorsToLandmarksCalculatorOptions\x12\x15\n\rnum_landmarks\x18\x01 \x01(\x05\x12\x19\n\x11input_image_width\x18\x02 \x01(\x05\x12\x1a\n\x12input_image_height\x18\x03 \x01(\x05\x12\x1e\n\x0f\x66lip_vertically\x18\x04 \x01(\x08:\x05\x66\x61lse\x12 \n\x11\x66lip_horizontally\x18\x06 \x01(\x08:\x05\x66\x61lse\x12\x16\n\x0bnormalize_z\x18\x05 \x01(\x02:\x01\x31\x12^\n\x15visibility_activation\x18\x07 \x01(\x0e\x32\x39.mediapipe.TensorsToLandmarksCalculatorOptions.Activation:\x04NONE\x12\\\n\x13presence_activation\x18\x08 \x01(\x0e\x32\x39.mediapipe.TensorsToLandmarksCalculatorOptions.Activation:\x04NONE\"#\n\nActivation\x12\x08\n\x04NONE\x10\x00\x12\x0b\n\x07SIGMOID\x10\x01\x32]\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xb0\x8d\x8c\xa0\x01 \x01(\x0b\x32..mediapipe.TensorsToLandmarksCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
_TENSORSTOLANDMARKSCALCULATOROPTIONS_ACTIVATION = _descriptor.EnumDescriptor(
|
||||
name='Activation',
|
||||
full_name='mediapipe.TensorsToLandmarksCalculatorOptions.Activation',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='NONE', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SIGMOID', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=517,
|
||||
serialized_end=552,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_TENSORSTOLANDMARKSCALCULATOROPTIONS_ACTIVATION)
|
||||
|
||||
|
||||
_TENSORSTOLANDMARKSCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='TensorsToLandmarksCalculatorOptions',
|
||||
full_name='mediapipe.TensorsToLandmarksCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='num_landmarks', full_name='mediapipe.TensorsToLandmarksCalculatorOptions.num_landmarks', index=0,
|
||||
number=1, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='input_image_width', full_name='mediapipe.TensorsToLandmarksCalculatorOptions.input_image_width', index=1,
|
||||
number=2, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='input_image_height', full_name='mediapipe.TensorsToLandmarksCalculatorOptions.input_image_height', index=2,
|
||||
number=3, type=5, cpp_type=1, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='flip_vertically', full_name='mediapipe.TensorsToLandmarksCalculatorOptions.flip_vertically', index=3,
|
||||
number=4, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='flip_horizontally', full_name='mediapipe.TensorsToLandmarksCalculatorOptions.flip_horizontally', index=4,
|
||||
number=6, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='normalize_z', full_name='mediapipe.TensorsToLandmarksCalculatorOptions.normalize_z', index=5,
|
||||
number=5, type=2, cpp_type=6, label=1,
|
||||
has_default_value=True, default_value=float(1),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='visibility_activation', full_name='mediapipe.TensorsToLandmarksCalculatorOptions.visibility_activation', index=6,
|
||||
number=7, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='presence_activation', full_name='mediapipe.TensorsToLandmarksCalculatorOptions.presence_activation', index=7,
|
||||
number=8, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.TensorsToLandmarksCalculatorOptions.ext', index=0,
|
||||
number=335742640, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_TENSORSTOLANDMARKSCALCULATOROPTIONS_ACTIVATION,
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=120,
|
||||
serialized_end=647,
|
||||
)
|
||||
|
||||
_TENSORSTOLANDMARKSCALCULATOROPTIONS.fields_by_name['visibility_activation'].enum_type = _TENSORSTOLANDMARKSCALCULATOROPTIONS_ACTIVATION
|
||||
_TENSORSTOLANDMARKSCALCULATOROPTIONS.fields_by_name['presence_activation'].enum_type = _TENSORSTOLANDMARKSCALCULATOROPTIONS_ACTIVATION
|
||||
_TENSORSTOLANDMARKSCALCULATOROPTIONS_ACTIVATION.containing_type = _TENSORSTOLANDMARKSCALCULATOROPTIONS
|
||||
DESCRIPTOR.message_types_by_name['TensorsToLandmarksCalculatorOptions'] = _TENSORSTOLANDMARKSCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
TensorsToLandmarksCalculatorOptions = _reflection.GeneratedProtocolMessageType('TensorsToLandmarksCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _TENSORSTOLANDMARKSCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.tensor.tensors_to_landmarks_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.TensorsToLandmarksCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(TensorsToLandmarksCalculatorOptions)
|
||||
|
||||
_TENSORSTOLANDMARKSCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _TENSORSTOLANDMARKSCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_TENSORSTOLANDMARKSCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,130 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mediapipe/calculators/tensor/tensors_to_segmentation_calculator.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@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.gpu import gpu_origin_pb2 as mediapipe_dot_gpu_dot_gpu__origin__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='mediapipe/calculators/tensor/tensors_to_segmentation_calculator.proto',
|
||||
package='mediapipe',
|
||||
syntax='proto2',
|
||||
serialized_options=None,
|
||||
serialized_pb=_b('\nEmediapipe/calculators/tensor/tensors_to_segmentation_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\x1a\x1emediapipe/gpu/gpu_origin.proto\"\xe2\x02\n&TensorsToSegmentationCalculatorOptions\x12-\n\ngpu_origin\x18\x01 \x01(\x0e\x32\x19.mediapipe.GpuOrigin.Mode\x12V\n\nactivation\x18\x02 \x01(\x0e\x32<.mediapipe.TensorsToSegmentationCalculatorOptions.Activation:\x04NONE\x12\x1d\n\x12output_layer_index\x18\x03 \x01(\x05:\x01\x31\"0\n\nActivation\x12\x08\n\x04NONE\x10\x00\x12\x0b\n\x07SIGMOID\x10\x01\x12\x0b\n\x07SOFTMAX\x10\x02\x32`\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xc2\x91\xbe\xb2\x01 \x01(\x0b\x32\x31.mediapipe.TensorsToSegmentationCalculatorOptions')
|
||||
,
|
||||
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,mediapipe_dot_gpu_dot_gpu__origin__pb2.DESCRIPTOR,])
|
||||
|
||||
|
||||
|
||||
_TENSORSTOSEGMENTATIONCALCULATOROPTIONS_ACTIVATION = _descriptor.EnumDescriptor(
|
||||
name='Activation',
|
||||
full_name='mediapipe.TensorsToSegmentationCalculatorOptions.Activation',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='NONE', index=0, number=0,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SIGMOID', index=1, number=1,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SOFTMAX', index=2, number=2,
|
||||
serialized_options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
serialized_options=None,
|
||||
serialized_start=363,
|
||||
serialized_end=411,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_TENSORSTOSEGMENTATIONCALCULATOROPTIONS_ACTIVATION)
|
||||
|
||||
|
||||
_TENSORSTOSEGMENTATIONCALCULATOROPTIONS = _descriptor.Descriptor(
|
||||
name='TensorsToSegmentationCalculatorOptions',
|
||||
full_name='mediapipe.TensorsToSegmentationCalculatorOptions',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='gpu_origin', full_name='mediapipe.TensorsToSegmentationCalculatorOptions.gpu_origin', index=0,
|
||||
number=1, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='activation', full_name='mediapipe.TensorsToSegmentationCalculatorOptions.activation', index=1,
|
||||
number=2, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='output_layer_index', full_name='mediapipe.TensorsToSegmentationCalculatorOptions.output_layer_index', index=2,
|
||||
number=3, type=5, cpp_type=1, label=1,
|
||||
has_default_value=True, default_value=1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
extensions=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='ext', full_name='mediapipe.TensorsToSegmentationCalculatorOptions.ext', index=0,
|
||||
number=374311106, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=True, extension_scope=None,
|
||||
serialized_options=None, file=DESCRIPTOR),
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_TENSORSTOSEGMENTATIONCALCULATOROPTIONS_ACTIVATION,
|
||||
],
|
||||
serialized_options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=155,
|
||||
serialized_end=509,
|
||||
)
|
||||
|
||||
_TENSORSTOSEGMENTATIONCALCULATOROPTIONS.fields_by_name['gpu_origin'].enum_type = mediapipe_dot_gpu_dot_gpu__origin__pb2._GPUORIGIN_MODE
|
||||
_TENSORSTOSEGMENTATIONCALCULATOROPTIONS.fields_by_name['activation'].enum_type = _TENSORSTOSEGMENTATIONCALCULATOROPTIONS_ACTIVATION
|
||||
_TENSORSTOSEGMENTATIONCALCULATOROPTIONS_ACTIVATION.containing_type = _TENSORSTOSEGMENTATIONCALCULATOROPTIONS
|
||||
DESCRIPTOR.message_types_by_name['TensorsToSegmentationCalculatorOptions'] = _TENSORSTOSEGMENTATIONCALCULATOROPTIONS
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
TensorsToSegmentationCalculatorOptions = _reflection.GeneratedProtocolMessageType('TensorsToSegmentationCalculatorOptions', (_message.Message,), dict(
|
||||
DESCRIPTOR = _TENSORSTOSEGMENTATIONCALCULATOROPTIONS,
|
||||
__module__ = 'mediapipe.calculators.tensor.tensors_to_segmentation_calculator_pb2'
|
||||
# @@protoc_insertion_point(class_scope:mediapipe.TensorsToSegmentationCalculatorOptions)
|
||||
))
|
||||
_sym_db.RegisterMessage(TensorsToSegmentationCalculatorOptions)
|
||||
|
||||
_TENSORSTOSEGMENTATIONCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _TENSORSTOSEGMENTATIONCALCULATOROPTIONS
|
||||
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_TENSORSTOSEGMENTATIONCALCULATOROPTIONS.extensions_by_name['ext'])
|
||||
|
||||
# @@protoc_insertion_point(module_scope)
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user