-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.py
23 lines (17 loc) · 867 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!usr/bin/env python3
# -*- coding: UTF-8 -*-
from xl_tool.data.image.analysis import VocAnalysis
def analysis_test():
anaer = VocAnalysis()
(anaer.dataset_analysis(r"E:\Programming\Python\8_Ganlanz\food_recognition\dataset\自建数据集\2_网络图片\0_已标框", 1,
r"F:\1.json", r"F:/"))
temp1 = anaer.results["boxes"]["labels"]
# # print(anaer.results["boxes"]["labels"])
# (anaer.dataset_analysis(r"F:\Large_dataset\VOC\VOCtest_06-Nov-2007\VOCdevkit"
# r"\VOC2007\Annotations",1))
# print(temp1 == anaer.results["boxes"]["labels"])
# (anaer.dataset_analysis(r"F:\Large_dataset\VOC\VOCtest_06-Nov-2007\VOCdevkit"
# r"\VOC2007\Annotations",2))
# print(temp1 == anaer.results["boxes"]["labels"])
# print(anaer.results)
analysis_test()