mp.packet_creator.create_proto

Create a MediaPipe protobuf message packet.

proto_message
A Python protobuf message.

A MediaPipe protobuf message Packet.

RuntimeError
If the protobuf message type is not registered in MediaPipe.

detection = detection_pb2.Detection() text_format.Parse('score: 0.5', detection) packet = mp.packet_creator.create_proto(detection) output_detection = mp.packet_getter.get_proto(packet)

Design a Mobile Site
View Site in Mobile | Classic
Share by: