Skip to content

Commit f020b9a

Browse files
author
Pashchenkov Maxim
committed
Review comments
1 parent d990d2d commit f020b9a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

demos/gaze_estimation_demo/cpp/src/landmarks_estimator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ std::vector<cv::Point2i> LandmarksEstimator::heatMapPostprocess(cv::Rect faceBou
9898

9999
std::vector<cv::Mat> LandmarksEstimator::split(std::vector<float>& data, const std::vector<unsigned long>& shape) {
100100
std::vector<cv::Mat> flattenData(shape[1]);
101-
float* output = &data.front();
101+
float* output = data.data();
102102
for (size_t i = 0; i < flattenData.size(); i++) {
103103
flattenData[i] = cv::Mat(shape[2], shape[3], CV_32FC1, output + i * shape[2] * shape[3]);
104104
}

demos/gesture_recognition_demo/cpp_gapi/src/custom_kernels.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ struct Params {
116116
current_frame = params.current_frame;
117117
prepared_mat = params.prepared_mat;
118118
last_id.fetch_add(params.last_id);
119+
return *this;
119120
}
120121
};
121122
} // namespace BatchState

0 commit comments

Comments
 (0)