diff --git a/mediapipe/tasks/python/vision/face_landmarker.py b/mediapipe/tasks/python/vision/face_landmarker.py index a053d936a..6862818ce 100644 --- a/mediapipe/tasks/python/vision/face_landmarker.py +++ b/mediapipe/tasks/python/vision/face_landmarker.py @@ -25,7 +25,7 @@ from mediapipe.python import packet_getter from mediapipe.python._framework_bindings import image as image_module from mediapipe.python._framework_bindings import packet as packet_module from mediapipe.tasks.cc.vision.face_landmarker.proto import face_landmarker_graph_options_pb2 -# TODO: Remove later. +# TODO: Remove this later. from mediapipe.tasks.cc.vision.face_geometry.proto import face_geometry_pb2 from mediapipe.tasks.python.components.containers import category as category_module from mediapipe.tasks.python.components.containers import landmark as landmark_module @@ -162,12 +162,6 @@ def _build_landmarker_result( category_name=face_blendshapes.label)) face_blendshapes_results.append(face_blendshapes_categories) - # Creates a dummy FaceGeometry packet to initialize the symbol database. - # TODO: Remove later. - face_geometry_in = face_geometry_pb2.FaceGeometry() - p = packet_creator.create_proto(face_geometry_in).at(100) - face_geometry_out = packet_getter.get_proto(p) - facial_transformation_matrixes_results = [] if _FACE_GEOMETRY_STREAM_NAME in output_packets: facial_transformation_matrixes_proto_list = packet_getter.get_proto_list(