Hesap makineleri, paket gönderip alarak iletişim kurar. Genellikle tek bir
paketin, her giriş zaman damgasında her giriş akışı boyunca gönderilir. Bir paket
Tek bir video karesi veya tek bir tam sayı gibi herhangi bir veri türünü içermelidir.
sayısı.
Paket oluşturma
Paketler genellikle mediapipe::MakePacket<T>() veya
mediapipe::Adopt() (paket.h paketinden).
// Create a packet containing some new data.Packetp=MakePacket<MyDataClass>("constructor_argument");// Make a new packet with the same data and a different timestamp.Packetp2=p.At(Timestamp::PostStream());
veya:
// Create some new data.autodata=absl::make_unique<MyDataClass>("constructor_argument");// Create a packet to own the data.Packetp=Adopt(data.release()).At(Timestamp::PostStream());
Paket içindeki verilere Packet::Get<T>() ile erişilir
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2024-09-05 UTC."],[],[]]