Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
Yes
OS Platform and Distribution
iOS 14.3.1
Mobile device if the issue happens on mobile device
MacBook Air M1
Browser and version if the issue happens on browser
no browser
Programming Language and version
C++
MediaPipe version
v0.10.11
Bazel version
6.5.0rc1
Solution
Pose
Android Studio, NDK, SDK versions (if issue is related to building in Android environment)
No response
Xcode & Tulsi version (if issue is related to building for iOS)
No response
Describe the actual behavior
returning output image is ok. returning landmarks seems stuck in a dead lock.
Describe the expected behaviour
returning both output image and landmarks.
Standalone code/steps you may have used to try to get what you need
auto ret = graph.Initialize(config_vec, tem_vec);
if (!ret.ok()) {
spdlog::error("[BootstrapHelper::boot_strap]: Initialize the calculator graph failed with {}.", (std::string)ret.message());
return;
}
poller = graph.AddOutputStreamPoller("output_video");
poller_lmk = graph.AddOutputStreamPoller("pose_landmarks");
spdlog::info("[BootstrapHelper::boot_strap]: Start running the calculator graph.");
if(!graph.StartRun({}).ok()) {
spdlog::error("[BootstrapHelper::boot_strap]: StartRun failed!");
return;
};
absl::Status ret = graph.AddPacketToInputStream(
"input_video", mediapipe::Adopt(mp_input_frame.release()).At(mediapipe::Timestamp(frame_timestamp_us)));
mediapipe::Packet packet;
if (!poller->Next(&packet)) {
spdlog::error("[BootstrapHelper::boot_strap]: poller next failed!");
return mediapipe::NormalizedLandmarkList();
}
// std::ignore = packet.Get<mediapipe::ImageFrame>();
mediapipe::Packet packet_lmk;
if (!poller_lmk->Next(&packet_lmk)) {
spdlog::error("[BootstrapHelper::boot_strap]: poller_lmk next failed!");
return mediapipe::NormalizedLandmarkList();
}
Other info / Complete Logs
returning output_video and landmarks with reading jpg: good.
only returning output_video with camera: good.
returning output_video and landmarks with camera: bad.
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
Yes
OS Platform and Distribution
iOS 14.3.1
Mobile device if the issue happens on mobile device
MacBook Air M1
Browser and version if the issue happens on browser
no browser
Programming Language and version
C++
MediaPipe version
v0.10.11
Bazel version
6.5.0rc1
Solution
Pose
Android Studio, NDK, SDK versions (if issue is related to building in Android environment)
No response
Xcode & Tulsi version (if issue is related to building for iOS)
No response
Describe the actual behavior
returning output image is ok. returning landmarks seems stuck in a dead lock.
Describe the expected behaviour
returning both output image and landmarks.
Standalone code/steps you may have used to try to get what you need
Other info / Complete Logs