mp.packet_getter.get_proto
Stay organized with collections
Save and categorize content based on your preferences.
Get the content of a MediaPipe proto Packet as a proto message.
mp.packet_getter.get_proto(
packet: mp.Packet
) -> message.Message
Args |
packet
|
A MediaPipe proto Packet.
|
Raises |
TypeError
|
If the message descriptor can't be found by type name.
|
Examples |
|
detection = detection_pb2.Detection()
text_format.Parse('score: 0.5', detection)
proto_packet = mp.packet_creator.create_proto(detection)
output_proto = mp.packet_getter.get_proto(proto_packet)
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-28 UTC.
[null,null,["Last updated 2026-05-28 UTC."],[],[]]