Initial commit
This commit is contained in:
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)
|
Reference in New Issue
Block a user