From 5f11f2b899fbb946034d1fa34fe8ff4d062382f5 Mon Sep 17 00:00:00 2001 From: lxowalle Date: Mon, 29 Jul 2024 15:29:27 +0800 Subject: [PATCH] * delete unused code --- projects/app_find_blobs/main/app/app.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/projects/app_find_blobs/main/app/app.cpp b/projects/app_find_blobs/main/app/app.cpp index 7792f6db..ce05e0ea 100644 --- a/projects/app_find_blobs/main/app/app.cpp +++ b/projects/app_find_blobs/main/app/app.cpp @@ -165,7 +165,6 @@ int app_loop(maix::image::Image *img) int area_threshold = 500; int pixels_threshold = 500; std::vector roi = {1, 1, img->width()- 1, img->height() - 1}; - maix::image::Image *resize_img = img->resize(320, 240); blobs = img->find_blobs(priv.thresholds, invert, roi, x_stride, y_stride, area_threshold, pixels_threshold); for (auto &a : blobs) { std::vector> mini_corners = a.mini_corners(); @@ -184,7 +183,6 @@ int app_loop(maix::image::Image *img) maix::Bytes bytes(data, sizeof(data)); priv.ptl->report(APP_CMD_REPORT_FIND_BLOBS, &bytes); } - delete(resize_img); } return 0;