Compare commits

..

No commits in common. "90c4da3249f893bf2a8d253de27ba2def7f9c9e6" and "e26f4e56ee0b49a67d0700c2d7ae4cabc874c083" have entirely different histories.

19 changed files with 40 additions and 144 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
result/
.idea/ .idea/
.vscode/ .vscode/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 983 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 MiB

After

Width:  |  Height:  |  Size: 783 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 983 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

View File

@ -38,11 +38,11 @@ cloud_need_points_size = 600000
save_cload = true save_cload = true
[sys] [sys]
fake = true fake = false
camera_cap_fake = true camera_cap_fake = true
lidar_cap_fake = true lidar_cap_fake = true
npu_fake = true npu_fake = true
conners_detect_fake = true conners_detect_fake = false
fake_image_fpath = ./result/hy_1/output.jpg fake_image_fpath = ./result/test_1/ep_100000_count_600000/output.jpg
fake_lidar_fpath = ./result/hy_1/output.ply fake_lidar_fpath = ./result/test_1/ep_100000_count_600000/output.ply

View File

@ -182,7 +182,6 @@ def init_image_framework_sdk():
# 加载C++库 # 加载C++库
current_file_dir = os.path.dirname(os.path.abspath(__file__)) current_file_dir = os.path.dirname(os.path.abspath(__file__))
image_framework_sdk = CDLL(os.path.join(current_file_dir, f'./image_framework.dll')) image_framework_sdk = CDLL(os.path.join(current_file_dir, f'./image_framework.dll'))
print(f"[image_framework_sdk] ====== [{image_framework_sdk}]")
print("Load Image framework sdk success") print("Load Image framework sdk success")
except Exception as e: except Exception as e:
print(f"Load Image framework sdk failed: {str(e)}") print(f"Load Image framework sdk failed: {str(e)}")
@ -237,7 +236,7 @@ if __name__ == '__main__':
raise RuntimeError(f"设置回调函数始设置失败, 错误码: {ret}") raise RuntimeError(f"设置回调函数始设置失败, 错误码: {ret}")
dataPath = "./result" # 数据路径 dataPath = "./result/hy_1" # 数据路径
data_img_path = None # 检测的图片路径 data_img_path = None # 检测的图片路径
data_detect_res_save_path = None # 检测结果的保存路径 data_detect_res_save_path = None # 检测结果的保存路径
# 遍历目录 # 遍历目录

View File

@ -48,14 +48,8 @@ for index, row in df.iloc[2:30].iterrows():
center_y = row[col('L')] center_y = row[col('L')]
width = row[col('D')] width = row[col('D')]
height = row[col('E')] height = row[col('E')]
# 左上角
x = center_x - width / 2 x = center_x - width / 2
# 左上角 y = center_y - height / 2
y = center_y + height / 2
# 左下角
x_left_bottom = center_x - width / 2
# 左下角
y_left_bottom = center_y - height / 2
# [{ # [{
@ -82,8 +76,14 @@ for index, row in df.iloc[2:30].iterrows():
# 画出中心点 # 画出中心点
ax.scatter(center_x, center_y, color='red', marker='o', s=10) ax.scatter(center_x, center_y, color='red', marker='o', s=10)
# 更新边界
x_min = min(x_min, x)
x_max = max(x_max, x + row[col('D')])
y_min = min(y_min, y)
y_max = max(y_max, y + row[col('E')])
# 绘制矩形 # 绘制矩形
rect = Rectangle((x_left_bottom, y_left_bottom),width, height, linewidth=1, edgecolor='r', facecolor='none') rect = Rectangle((x, y), row[col('D')], row[col('E')], linewidth=1, edgecolor='r', facecolor='none')
ax.add_patch(rect) ax.add_patch(rect)
# 在矩形中心绘制编号A列 # 在矩形中心绘制编号A列
@ -95,14 +95,14 @@ for index, row in df.iloc[2:30].iterrows():
# 在矩形上边绘制宽度D列 # 在矩形上边绘制宽度D列
ax.text( ax.text(
x + row[col('D')] / 2, y_left_bottom + row[col('E')], str(row[col('D')]), x + row[col('D')] / 2, y + row[col('E')], str(row[col('D')]),
ha='center', va='bottom', ha='center', va='bottom',
fontsize=6, color='green' # 宽度字体大小为10颜色为绿色 fontsize=6, color='green' # 宽度字体大小为10颜色为绿色
) )
# 在矩形右边绘制高度E列 # 在矩形右边绘制高度E列
ax.text( ax.text(
x + width, y_left_bottom + height / 2, height, x + row[col('D')], y + row[col('E')] / 2, str(row[col('E')]),
ha='left', va='center', ha='left', va='center',
fontsize=6, color='red' # 高度字体大小为10颜色为红色 fontsize=6, color='red' # 高度字体大小为10颜色为红色
) )

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 MiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

View File

@ -1,64 +0,0 @@
6911
3175
7935
3175
7935
4142
6911
4142
5578
3808
6623
3808
6623
4761
5578
4761
2677
5089
5214
5089
5214
6179
2677
6179
2613
2198
4142
2198
4142
3607
2613
3607
73
1746
1314
1746
1314
2799
73
2799
52
3066
1092
3066
1092
3997
52
3997
4815
1805
5951
1805
5951
2849
4815
2849
6774
1829
7896
1829
7896
2869
6774
2869

View File

@ -1,64 +1,24 @@
6911 1131
3175 2007
7935 5900
3175 2007
7935 5900
4142 5376
6911 1131
4142 5376
5578 2004
3808 2958
6623 3142
3808 2958
6623 3142
4761 3948
5578 2004
4761 3948
2677 3887
5089 2919
5214 4839
5089 2919
5214 4839
6179 3902
2677 3887
6179 3902
2613
2198
4142
2198
4142
3607
2613
3607
73
1746
1314
1746
1314
2799
73
2799
52
3066
1092
3066
1092
3997
52
3997
4815
1805
5951
1805
5951
2849
4815
2849
6774
1829
7896
1829
7896
2869
6774
2869