浏览代码

v0.1.17 抓取增加搜索范围-50度到50度

chenhongjiang 1 年之前
父节点
当前提交
921014c2a5
共有 4 个文件被更改,包括 6 次插入5 次删除
  1. 2 1
      ReadMe.txt
  2. 2 2
      tcv_conf.yml
  3. 1 1
      tea_cv_api.cpp
  4. 1 1
      tea_sorter.cpp

+ 2 - 1
ReadMe.txt

@@ -14,4 +14,5 @@ v0.1.12 
 v0.1.13 优化抓取角度;优化切割位置
 v0.1.14 优化抓取角度效率: thinning采用降采样再放大,提高效率;只做一次thinning,记录目标点坐标备用
 v0.1.15 优化切割位置识别精度: 初步识别点在目标内时用识别点;否则垂线方向搜索最近点作为切割点(适用于苗弯曲)
-v0.1.16 抓取、切割识别结果大于0则返回正常
+v0.1.16 抓取、切割识别结果大于0则返回正常
+v0.1.17 抓取增加搜索范围-50度到50度

+ 2 - 2
tcv_conf.yml

@@ -1,7 +1,7 @@
 %YAML:1.0
 ---
 conf_parameters:
-   image_show: 0
+   image_show: 1
    image_return: 1
    image_save: 1
    image_depository: "D:\\logs\\algo_img"
@@ -18,7 +18,7 @@ conf_parameters:
    max_area_ratio_grab: 0.1
    model_path_cut: "D:/projects/graft/py_code/retina_tea5/TeaDetector_cut_20231203001648.onnx"
    object_threshold_cut: 0.8
-   nms_threshold_cut: 5.0000000000000000e-01
+   nms_threshold_cut: 0.1
    grid_row_cut: 1
    grid_col_cut: 1
    grid_padding_cut: 50

+ 1 - 1
tea_cv_api.cpp

@@ -18,7 +18,7 @@ extern CRITICAL_SECTION g_cs;
 namespace graft_cv
 {
 
-	char *g_version_str = "0.1.16";
+	char *g_version_str = "0.1.17";
 
 	//configure
 	string g_conf_file = "./tcv_conf.yml";	

+ 1 - 1
tea_sorter.cpp

@@ -1234,7 +1234,7 @@ void CTeaSort::calculate_stem_grab_position_opt(
 	//int minx_opt, maxx_opt, miny_opt, maxy_opt;
 	std::vector<cv::Point2f> ske_pixels_opt;
 	double target_angle_opt;
-	for (int i = -8; i <= 8; ++i) { //-30 degree ----  30 degree
+	for (int i = -10; i <= 10; ++i) { //-30 degree ----  30 degree
 		//在指定方向的矩形框内,找到内部点最多的方向,作为主方向
 		double target_angle = ref_angle_init + i*step_angle;
 		cv::Point center_pt;