Skip to content

Commit

Permalink
fix(example): use FlowLimiterCalculator in OfficialDemoCPU graph
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Dec 31, 2020
1 parent 3a53f11 commit f92d71a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Assets/MediaPipe/Examples/Resources/official_demo_cpu.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# This file is OfficialDemoCPU's config file.
#
# CHANGES:
# - add FlowLimiterCalculator
# - add ImageTransformationCalculator
# - use SidePacket instead of ConstantSidePacketCalculator
# - add comments
Expand All @@ -30,11 +31,22 @@ input_stream: "input_video"
# CPU image. (ImageFrame)
output_stream: "output_video"

node {
calculator: "FlowLimiterCalculator"
input_stream: "input_video"
input_stream: "FINISHED:output_video"
input_stream_info: {
tag_index: "FINISHED"
back_edge: true
}
output_stream: "throttled_input_video"
}

# Flip vertically because the input image is aligned from bottom-left to top-right,
# and horizontally to use Web Camera.
node: {
calculator: "ImageTransformationCalculator"
input_stream: "IMAGE:input_video"
input_stream: "IMAGE:throttled_input_video"
output_stream: "IMAGE:transformed_input_video"
node_options: {
[type.googleapis.com/mediapipe.ImageTransformationCalculatorOptions] {
Expand Down

0 comments on commit f92d71a

Please sign in to comment.