Introducing LiteRT : Google's high-performance runtime for on-device AI, formerly known as TensorFlow Lite.
Learn more
Send feedback
mp.Packet
Stay organized with collections
Save and categorize content based on your preferences.
The basic data flow unit of MediaPipe. A generic container class which can hold data of any type.
mp.Packet()
A packet consists of a numeric timestamp and a shared pointer to an immutable
payload. The payload can be of any C++ type (See packet_creator module for
the list of the Python types that are supported). The payload's type is also
referred to as the type of the packet. Packets are value classes and can be
copied and moved cheaply. Each copy shares ownership of the payload, with be
copied reference-counting semantics. Each copy has its own timestamp.
The preferred method of creating a Packet is to invoke the methods in the
"packet_creator" module. Packet contents can be retrieved by the methods in
the "packet_getter" module.
Methods
at
at()
at(*args, **kwargs)
Overloaded function.
at(self: mediapipe.python._framework_bindings.packet.Packet, arg0: int) -> mediapipe.python._framework_bindings.packet.Packet
at(self: mediapipe.python._framework_bindings.packet.Packet, arg0: mediapipe.python._framework_bindings.timestamp.Timestamp) -> mediapipe.python._framework_bindings.packet.Packet
is_empty
is_empty()
is_empty(self: mediapipe.python._framework_bindings.packet.Packet) -> bool
Return true iff the Packet has been created using the default constructor Packet(), or is a copy of such a Packet.
Send feedback
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 2024-05-01 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-05-01 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-01 UTC."],[],[]]