Fix build

This commit is contained in:
Alessandro de Oliveira Faria 2021-09-20 13:21:12 -03:00
parent 137e1cc763
commit c95a279e5e
2 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ class GlProcessor : public ImageToTensorConverter {
return absl::OkStatus();
}));
return tensor;
return absl::StatusOr<mediapipe::Tensor> (mediapipe::Tensor(std::move(tensor)));
}
~GlProcessor() override {

View File

@ -103,7 +103,7 @@ class OpenCvProcessor : public ImageToTensorConverter {
GetValueRangeTransformation(kInputImageRangeMin, kInputImageRangeMax,
range_min, range_max));
transformed.convertTo(dst, CV_32FC3, transform.scale, transform.offset);
return tensor;
return absl::StatusOr<mediapipe::Tensor> (mediapipe::Tensor(std::move(tensor)));
}
private: