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))));
|
||||
LOG(INFO) << "Pushed new frame.";
|
||||
|
||||
#ifdef DEBUG
|
||||
LOG(INFO) << "Pushed new frame.";
|
||||
#endif
|
||||
mediapipe::Packet face_count_packet;
|
||||
if (!face_count_poller_ptr ||
|
||||
!face_count_poller_ptr->Next(&face_count_packet)) {
|
||||
|
@ -69,10 +66,6 @@ absl::Status MPFaceMeshDetector::ProcessFrameWithStatus(
|
|||
}
|
||||
auto &face_count = face_count_packet.Get<int>();
|
||||
|
||||
#ifdef DEBUG
|
||||
LOG(INFO) << "Got face_count: " << face_count;
|
||||
#endif
|
||||
|
||||
if (!face_count) {
|
||||
return absl::Status();
|
||||
}
|
||||
|
@ -98,10 +91,6 @@ absl::Status MPFaceMeshDetector::ProcessFrameWithStatus(
|
|||
|
||||
const auto landmarks_num = normalizedLandmarkList.landmark_size();
|
||||
|
||||
#ifdef DEBUG
|
||||
LOG(INFO) << "Got landmarks_num: " << landmarks_num;
|
||||
#endif
|
||||
|
||||
face_landmarks.reserve(landmarks_num);
|
||||
|
||||
for (int i = 0; i < landmarks_num; ++i) {
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
class MPFaceMeshDetector {
|
||||
public:
|
||||
MPFaceMeshDetector();
|
||||
~MPFaceMeshDetector() = default;
|
||||
std::vector<std::vector<cv::Point2f>> *ProcessFrame2D(const cv::Mat &camera_frame);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue
Block a user