fix: resolved code review comments
Change List: - removed some debug lines
This commit is contained in:
parent
c48c01ca75
commit
26b367dc69
|
@ -57,9 +57,6 @@ absl::Status MPFaceMeshDetector::ProcessFrameWithStatus(
|
||||||
.At(mediapipe::Timestamp(frame_timestamp_us))));
|
.At(mediapipe::Timestamp(frame_timestamp_us))));
|
||||||
LOG(INFO) << "Pushed new frame.";
|
LOG(INFO) << "Pushed new frame.";
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
LOG(INFO) << "Pushed new frame.";
|
|
||||||
#endif
|
|
||||||
mediapipe::Packet face_count_packet;
|
mediapipe::Packet face_count_packet;
|
||||||
if (!face_count_poller_ptr ||
|
if (!face_count_poller_ptr ||
|
||||||
!face_count_poller_ptr->Next(&face_count_packet)) {
|
!face_count_poller_ptr->Next(&face_count_packet)) {
|
||||||
|
@ -69,10 +66,6 @@ absl::Status MPFaceMeshDetector::ProcessFrameWithStatus(
|
||||||
}
|
}
|
||||||
auto &face_count = face_count_packet.Get<int>();
|
auto &face_count = face_count_packet.Get<int>();
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
LOG(INFO) << "Got face_count: " << face_count;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!face_count) {
|
if (!face_count) {
|
||||||
return absl::Status();
|
return absl::Status();
|
||||||
}
|
}
|
||||||
|
@ -98,10 +91,6 @@ absl::Status MPFaceMeshDetector::ProcessFrameWithStatus(
|
||||||
|
|
||||||
const auto landmarks_num = normalizedLandmarkList.landmark_size();
|
const auto landmarks_num = normalizedLandmarkList.landmark_size();
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
LOG(INFO) << "Got landmarks_num: " << landmarks_num;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
face_landmarks.reserve(landmarks_num);
|
face_landmarks.reserve(landmarks_num);
|
||||||
|
|
||||||
for (int i = 0; i < landmarks_num; ++i) {
|
for (int i = 0; i < landmarks_num; ++i) {
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
class MPFaceMeshDetector {
|
class MPFaceMeshDetector {
|
||||||
public:
|
public:
|
||||||
MPFaceMeshDetector();
|
MPFaceMeshDetector();
|
||||||
~MPFaceMeshDetector() = default;
|
|
||||||
std::vector<std::vector<cv::Point2f>> *ProcessFrame2D(const cv::Mat &camera_frame);
|
std::vector<std::vector<cv::Point2f>> *ProcessFrame2D(const cv::Mat &camera_frame);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user