Internal change

PiperOrigin-RevId: 490366250
This commit is contained in:
MediaPipe Team 2022-11-22 16:38:51 -08:00 committed by Copybara-Service
parent 515d00fc22
commit 7ce4aa6592

View File

@ -802,7 +802,7 @@ TEST(MediaSequenceTest, ReconcileMetadataImages) {
tensorflow::SequenceExample sequence;
cv::Mat image(2, 3, CV_8UC3, cv::Scalar(0, 0, 255));
std::vector<uchar> bytes;
ASSERT_TRUE(cv::imencode(".jpg", image, bytes, {80}));
ASSERT_TRUE(cv::imencode(".jpg", image, bytes, {}));
std::string encoded_image(bytes.begin(), bytes.end());
AddImageEncoded(encoded_image, &sequence);
AddImageEncoded(encoded_image, &sequence);
@ -843,7 +843,7 @@ TEST(MediaSequenceTest, ReconcileMetadataFlowEncoded) {
tensorflow::SequenceExample sequence;
cv::Mat image(2, 3, CV_8UC3, cv::Scalar(0, 0, 255));
std::vector<uchar> bytes;
ASSERT_TRUE(cv::imencode(".jpg", image, bytes, {80}));
ASSERT_TRUE(cv::imencode(".jpg", image, bytes, {}));
std::string encoded_flow(bytes.begin(), bytes.end());
AddForwardFlowEncoded(encoded_flow, &sequence);