diff --git a/mediapipe/modules/face_geometry/geometry_pipeline_calculator.cc b/mediapipe/modules/face_geometry/geometry_pipeline_calculator.cc index 35efb005a7..cad22dd21f 100644 --- a/mediapipe/modules/face_geometry/geometry_pipeline_calculator.cc +++ b/mediapipe/modules/face_geometry/geometry_pipeline_calculator.cc @@ -169,7 +169,8 @@ class GeometryPipelineCalculator : public CalculatorBase { _ << "Failed to read a metadata blob from file!"); face_geometry::GeometryPipelineMetadata metadata; - RET_CHECK(metadata.ParseFromString(metadata_blob->ToStringView())) + absl::string_view metadata_str = metadata_blob->ToStringView(); + RET_CHECK(metadata.ParseFromArray(metadata_str.data(), metadata_str.size())) << "Failed to parse a metadata proto from a binary blob!"; return metadata;