-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocument.py
65 lines (38 loc) · 2.18 KB
/
document.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#here is the document of this appliction
DOCUMENT = '''This is the document for this yolox annotation app
The python version is 3.8.3
## Feature Introduction
### Generate xml format annotations:
* Select the input folder and output folder
> Input folder can only contain jpg images, other files will raise an error.
> The default setting is to set the output folder the same as the input folder.
> You can also use the button "..." to utilize file browser.
* Select threshold
> The threshold is the confidence threshold of prediction, higher threshold will result in higher accuracy.
> However, the detected object will be less. The default threshold is 0.5(maximum = 1.0).
* Select whether to visualize
> If you select the visualize option, this will create a "visualized_images" folder in your designated output folder.
> However, if there's already a "visualized_images" folder, this will raise a warning.
> Making sure you are notified of overwriting these images.
* Press "Generate annotations" button
> This will generate the result, both annotations and visualized images.
> After the generation. There will be a pop up window, indicating the annotation path and visualizing images path.
### Caluculate annonation instance:
* Select input folder
> The calculation only takes the input folder. Other options are not considered.
* Press "Calculate annotations" button
> This will calculate label instances in the input folder, also sub folders in the input folder.
> The result will be reported in a pop up window after calculation.
## Warning Messages
### Overwrite warning
> This is the case when your designated output folder already have labeled data or visualized images.
> There will be a warning, you can decide whether to overwrite the files.
## Error Messages
### File format error
> If the input folder exist some files except for jpg and xml format, this will raise an error.
### Invalid path error
> If your input folder or output folder path does not exist, this will raise an error.
### Invalid label error
> If your xml file have bonding box location that exceed image size, this will raise an error.
> The error will report the xml file that has invalid bonding box location.
'''