fix
1
.gitignore
vendored
@ -1,3 +1,2 @@
|
|||||||
result/
|
|
||||||
.idea/
|
.idea/
|
||||||
.vscode/
|
.vscode/
|
BIN
0_roi_image.png
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
1_roi_image.png
Before Width: | Height: | Size: 983 KiB After Width: | Height: | Size: 1.1 MiB |
BIN
2_roi_image.png
Before Width: | Height: | Size: 783 KiB After Width: | Height: | Size: 2.9 MiB |
BIN
3_roi_image.png
Normal file
After Width: | Height: | Size: 2.6 MiB |
BIN
4_roi_image.png
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
5_roi_image.png
Normal file
After Width: | Height: | Size: 983 KiB |
BIN
6_roi_image.png
Normal file
After Width: | Height: | Size: 1.5 MiB |
BIN
7_roi_image.png
Normal file
After Width: | Height: | Size: 1.3 MiB |
@ -1,272 +1 @@
|
|||||||
[
|
[{"code": 1, "type": "250x1450", "x": 945, "y": 0, "center": 351, "w": 1450, "h": 250, "angle": "0"}, {"code": 2, "type": "300x300", "x": 923, "y": 0, "center": 754, "w": 300, "h": 300, "angle": "0"}, {"code": 3, "type": "501x500", "x": 1638, "y": 0, "center": 1054, "w": 500, "h": 501, "angle": "0"}, {"code": 4, "type": "250x648", "x": 717, "y": 0, "center": 1149, "w": 648, "h": 250, "angle": "0"}, {"code": 5, "type": "250x250", "x": 1337, "y": 0, "center": 1543, "w": 250, "h": 250, "angle": "0"}, {"code": 6, "type": "249x249", "x": 1780, "y": 0, "center": 1750, "w": 249, "h": 249, "angle": "0"}, {"code": 7, "type": "400x399", "x": 549, "y": 0, "center": 1955, "w": 399, "h": 400, "angle": "0"}, {"code": 8, "type": "300x302", "x": 1143, "y": 0, "center": 2159, "w": 302, "h": 300, "angle": "0"}, {"code": 9, "type": "300x302", "x": 1745, "y": 0, "center": 2157, "w": 302, "h": 300, "angle": "0"}, {"code": 10, "type": "248x1447", "x": 2939, "y": 0, "center": 345, "w": 1447, "h": 248, "angle": "0"}, {"code": 11, "type": "298x297", "x": 2947, "y": 0, "center": 747, "w": 297, "h": 298, "angle": "0"}, {"code": 12, "type": "499x499", "x": 3640, "y": 0, "center": 1040, "w": 499, "h": 499, "angle": "0"}, {"code": 13, "type": "245x648", "x": 2743, "y": 0, "center": 1146, "w": 648, "h": 245, "angle": "0"}, {"code": 14, "type": "247x247", "x": 3338, "y": 0, "center": 1550, "w": 247, "h": 247, "angle": "0"}, {"code": 15, "type": "246x247", "x": 3747, "y": 0, "center": 1757, "w": 247, "h": 246, "angle": "0"}, {"code": 16, "type": "398x392", "x": 2548, "y": 0, "center": 1955, "w": 392, "h": 398, "angle": "0"}, {"code": 17, "type": "300x293", "x": 3143, "y": 0, "center": 2147, "w": 293, "h": 300, "angle": "0"}, {"code": 18, "type": "298x297", "x": 3750, "y": 0, "center": 2144, "w": 297, "h": 298, "angle": "0"}, {"code": 19, "type": "245x1447", "x": 4940, "y": 0, "center": 344, "w": 1447, "h": 245, "angle": "0"}, {"code": 20, "type": "295x300", "x": 4924, "y": 0, "center": 743, "w": 300, "h": 295, "angle": "0"}, {"code": 21, "type": "498x495", "x": 5646, "y": 0, "center": 1030, "w": 495, "h": 498, "angle": "0"}, {"code": 22, "type": "245x648", "x": 4726, "y": 0, "center": 1150, "w": 648, "h": 245, "angle": "0"}, {"code": 23, "type": "245x246", "x": 5296, "y": 0, "center": 1541, "w": 246, "h": 245, "angle": "0"}, {"code": 24, "type": "245x245", "x": 5741, "y": 0, "center": 1735, "w": 245, "h": 245, "angle": "0"}, {"code": 25, "type": "398x392", "x": 4545, "y": 0, "center": 1955, "w": 392, "h": 398, "angle": "0"}, {"code": 26, "type": "298x296", "x": 5141, "y": 0, "center": 2142, "w": 296, "h": 298, "angle": "0"}, {"code": 27, "type": "297x295", "x": 5740, "y": 0, "center": 2146, "w": 295, "h": 297, "angle": "0"}]
|
||||||
{
|
|
||||||
"code": 1,
|
|
||||||
"type": "250x1450",
|
|
||||||
"x": 945,
|
|
||||||
"y": 0,
|
|
||||||
"center": 351,
|
|
||||||
"w": 1450,
|
|
||||||
"h": 250,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 2,
|
|
||||||
"type": "300x300",
|
|
||||||
"x": 923,
|
|
||||||
"y": 0,
|
|
||||||
"center": 754,
|
|
||||||
"w": 300,
|
|
||||||
"h": 300,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 3,
|
|
||||||
"type": "501x500",
|
|
||||||
"x": 1638,
|
|
||||||
"y": 0,
|
|
||||||
"center": 1054,
|
|
||||||
"w": 500,
|
|
||||||
"h": 501,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 4,
|
|
||||||
"type": "250x648",
|
|
||||||
"x": 717,
|
|
||||||
"y": 0,
|
|
||||||
"center": 1149,
|
|
||||||
"w": 648,
|
|
||||||
"h": 250,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 5,
|
|
||||||
"type": "250x250",
|
|
||||||
"x": 1337,
|
|
||||||
"y": 0,
|
|
||||||
"center": 1543,
|
|
||||||
"w": 250,
|
|
||||||
"h": 250,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 6,
|
|
||||||
"type": "249x249",
|
|
||||||
"x": 1780,
|
|
||||||
"y": 0,
|
|
||||||
"center": 1750,
|
|
||||||
"w": 249,
|
|
||||||
"h": 249,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 7,
|
|
||||||
"type": "400x399",
|
|
||||||
"x": 549,
|
|
||||||
"y": 0,
|
|
||||||
"center": 1955,
|
|
||||||
"w": 399,
|
|
||||||
"h": 400,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 8,
|
|
||||||
"type": "300x302",
|
|
||||||
"x": 1143,
|
|
||||||
"y": 0,
|
|
||||||
"center": 2159,
|
|
||||||
"w": 302,
|
|
||||||
"h": 300,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 9,
|
|
||||||
"type": "300x302",
|
|
||||||
"x": 1745,
|
|
||||||
"y": 0,
|
|
||||||
"center": 2157,
|
|
||||||
"w": 302,
|
|
||||||
"h": 300,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 10,
|
|
||||||
"type": "248x1447",
|
|
||||||
"x": 2939,
|
|
||||||
"y": 0,
|
|
||||||
"center": 345,
|
|
||||||
"w": 1447,
|
|
||||||
"h": 248,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 11,
|
|
||||||
"type": "298x297",
|
|
||||||
"x": 2947,
|
|
||||||
"y": 0,
|
|
||||||
"center": 747,
|
|
||||||
"w": 297,
|
|
||||||
"h": 298,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 12,
|
|
||||||
"type": "499x499",
|
|
||||||
"x": 3640,
|
|
||||||
"y": 0,
|
|
||||||
"center": 1040,
|
|
||||||
"w": 499,
|
|
||||||
"h": 499,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 13,
|
|
||||||
"type": "245x648",
|
|
||||||
"x": 2743,
|
|
||||||
"y": 0,
|
|
||||||
"center": 1146,
|
|
||||||
"w": 648,
|
|
||||||
"h": 245,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 14,
|
|
||||||
"type": "247x247",
|
|
||||||
"x": 3338,
|
|
||||||
"y": 0,
|
|
||||||
"center": 1550,
|
|
||||||
"w": 247,
|
|
||||||
"h": 247,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 15,
|
|
||||||
"type": "246x247",
|
|
||||||
"x": 3747,
|
|
||||||
"y": 0,
|
|
||||||
"center": 1757,
|
|
||||||
"w": 247,
|
|
||||||
"h": 246,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 16,
|
|
||||||
"type": "398x392",
|
|
||||||
"x": 2548,
|
|
||||||
"y": 0,
|
|
||||||
"center": 1955,
|
|
||||||
"w": 392,
|
|
||||||
"h": 398,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 17,
|
|
||||||
"type": "300x293",
|
|
||||||
"x": 3143,
|
|
||||||
"y": 0,
|
|
||||||
"center": 2147,
|
|
||||||
"w": 293,
|
|
||||||
"h": 300,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 18,
|
|
||||||
"type": "298x297",
|
|
||||||
"x": 3750,
|
|
||||||
"y": 0,
|
|
||||||
"center": 2144,
|
|
||||||
"w": 297,
|
|
||||||
"h": 298,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 19,
|
|
||||||
"type": "245x1447",
|
|
||||||
"x": 4940,
|
|
||||||
"y": 0,
|
|
||||||
"center": 344,
|
|
||||||
"w": 1447,
|
|
||||||
"h": 245,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 20,
|
|
||||||
"type": "295x300",
|
|
||||||
"x": 4924,
|
|
||||||
"y": 0,
|
|
||||||
"center": 743,
|
|
||||||
"w": 300,
|
|
||||||
"h": 295,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 21,
|
|
||||||
"type": "498x495",
|
|
||||||
"x": 5646,
|
|
||||||
"y": 0,
|
|
||||||
"center": 1030,
|
|
||||||
"w": 495,
|
|
||||||
"h": 498,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 22,
|
|
||||||
"type": "245x648",
|
|
||||||
"x": 4726,
|
|
||||||
"y": 0,
|
|
||||||
"center": 1150,
|
|
||||||
"w": 648,
|
|
||||||
"h": 245,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 23,
|
|
||||||
"type": "245x246",
|
|
||||||
"x": 5296,
|
|
||||||
"y": 0,
|
|
||||||
"center": 1541,
|
|
||||||
"w": 246,
|
|
||||||
"h": 245,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 24,
|
|
||||||
"type": "245x245",
|
|
||||||
"x": 5741,
|
|
||||||
"y": 0,
|
|
||||||
"center": 1735,
|
|
||||||
"w": 245,
|
|
||||||
"h": 245,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 25,
|
|
||||||
"type": "398x392",
|
|
||||||
"x": 4545,
|
|
||||||
"y": 0,
|
|
||||||
"center": 1955,
|
|
||||||
"w": 392,
|
|
||||||
"h": 398,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 26,
|
|
||||||
"type": "298x296",
|
|
||||||
"x": 5141,
|
|
||||||
"y": 0,
|
|
||||||
"center": 2142,
|
|
||||||
"w": 296,
|
|
||||||
"h": 298,
|
|
||||||
"angle": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": 27,
|
|
||||||
"type": "297x295",
|
|
||||||
"x": 5740,
|
|
||||||
"y": 0,
|
|
||||||
"center": 2146,
|
|
||||||
"w": 295,
|
|
||||||
"h": 297,
|
|
||||||
"angle": "0"
|
|
||||||
}
|
|
||||||
]
|
|
@ -38,11 +38,11 @@ cloud_need_points_size = 600000
|
|||||||
save_cload = true
|
save_cload = true
|
||||||
|
|
||||||
[sys]
|
[sys]
|
||||||
fake = false
|
fake = true
|
||||||
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 = false
|
conners_detect_fake = true
|
||||||
fake_image_fpath = ./result/test_1/ep_100000_count_600000/output.jpg
|
fake_image_fpath = ./result/hy_1/output.jpg
|
||||||
fake_lidar_fpath = ./result/test_1/ep_100000_count_600000/output.ply
|
fake_lidar_fpath = ./result/hy_1/output.ply
|
||||||
|
|
||||||
|
@ -182,6 +182,7 @@ 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)}")
|
||||||
@ -236,7 +237,7 @@ if __name__ == '__main__':
|
|||||||
raise RuntimeError(f"设置回调函数始设置失败, 错误码: {ret}")
|
raise RuntimeError(f"设置回调函数始设置失败, 错误码: {ret}")
|
||||||
|
|
||||||
|
|
||||||
dataPath = "./result/hy_1" # 数据路径
|
dataPath = "./result" # 数据路径
|
||||||
data_img_path = None # 检测的图片路径
|
data_img_path = None # 检测的图片路径
|
||||||
data_detect_res_save_path = None # 检测结果的保存路径
|
data_detect_res_save_path = None # 检测结果的保存路径
|
||||||
# 遍历目录
|
# 遍历目录
|
||||||
|
BIN
image_framework_33.dll
Normal file
BIN
result/hy_1/output.jpg
Normal file
After Width: | Height: | Size: 11 MiB |
BIN
result/hy_1/output.ply
Normal file
BIN
result/hy_1/result.jpg
Normal file
After Width: | Height: | Size: 122 KiB |
BIN
result/hy_1/result2.jpg
Normal file
After Width: | Height: | Size: 142 KiB |
64
result/hy_1/roi_conners.txt
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
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
|
@ -1,24 +1,64 @@
|
|||||||
1131
|
6911
|
||||||
2007
|
3175
|
||||||
5900
|
7935
|
||||||
2007
|
3175
|
||||||
5900
|
7935
|
||||||
5376
|
4142
|
||||||
1131
|
6911
|
||||||
5376
|
4142
|
||||||
2004
|
5578
|
||||||
2958
|
3808
|
||||||
3142
|
6623
|
||||||
2958
|
3808
|
||||||
3142
|
6623
|
||||||
3948
|
4761
|
||||||
2004
|
5578
|
||||||
3948
|
4761
|
||||||
3887
|
2677
|
||||||
2919
|
5089
|
||||||
4839
|
5214
|
||||||
2919
|
5089
|
||||||
4839
|
5214
|
||||||
3902
|
6179
|
||||||
3887
|
2677
|
||||||
3902
|
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
|
||||||
|