diff --git a/energy/src/energy/find/energy_finder.cpp b/energy/src/energy/find/energy_finder.cpp index 8913728..1034356 100644 --- a/energy/src/energy/find/energy_finder.cpp +++ b/energy/src/energy/find/energy_finder.cpp @@ -172,11 +172,23 @@ bool Energy:: findFlowStripFan(const cv::Mat src) { FlowStripFanStruct(src_bin);//图像膨胀,防止图像断开并更方便寻找 // imshow("flow strip fan struct", src_bin); +// vector> contours; +// findContours(src_bin, flow_strip_fan_contours, CV_RETR_EXTERNAL, CV_CHAIN_APPROX_NONE); +// for (auto &flow_strip_fan_contour : flow_strip_fan_contours) { +// if(contourArea(flow_strip_fan_contour)>1800&&contourArea(flow_strip_fan_contour)<2300) +// contours.push_back(flow_strip_fan_contour); +//// cout< &f // cout << cur_contour_area / cur_size.area() << endl; if (cur_contour_area / cur_size.area() < energy_part_param_.FLOW_STRIP_FAN_CONTOUR_AREA_RATIO_MIN || cur_contour_area / cur_size.area() > energy_part_param_.FLOW_STRIP_FAN_CONTOUR_AREA_RATIO_MAX) { - if(cur_contour_area>1600) - cout<<"size ratio: "<1900) +// cout<<"size ratio: "<