xml json pascal
2020.01.12 19:04
댓글 4
-
WHRIA
2020.01.12 19:06
<annotation> <folder>GeneratedData_Train</folder> <filename>000001.png</filename> <path>/my/path/GeneratedData_Train/000001.png</path> <source> <database>Unknown</database> </source> <size> <width>224</width> <height>224</height> <depth>3</depth> </size> <segmented>0</segmented> <object> <name>21</name> <pose>Frontal</pose> <truncated>0</truncated> <difficult>0</difficult> <occluded>0</occluded> <bndbox> <xmin>82</xmin> <xmax>172</xmax> <ymin>88</ymin> <ymax>146</ymax> </bndbox> </object> </annotation> -
WHRIA
2020.01.12 19:07
-
WHRIA
2020.01.12 19:15
# Writer(path, width, height)
writer = Writer(‘path/to/img.jpg’, 800, 400)
# ::addObject(name, xmin, ymin, xmax, ymax)
writer.addObject(‘cat’, 100, 100, 200, 200)
# ::save(path)
writer.save(‘path/to/img.xml’)
-
WHRIA
2020.01.12 19:23
xml → json
Converts PASCAL VOC annotations to the _annotations.json format supported by the Cloud Annotations tool.
Instructions
Install the Cloud Object Storage SDK:
pip install botocore==1.12.26 ibm-cos-sdk==2.3.2
Convert xml annotations to json:
python convert_xml2json.py
Add your
credentials
toupload2bucket.py
:credentials = { 'bucket': 'YOUR_BUCKET_NAME', 'iam_url': 'https://iam.ng.bluemix.net/oidc/token', 'resource_instance_id': 'YOUR_INSTANCE_ID', 'url': 'YOUR_REGION_ENDPOINT', 'api_key': 'YOUR_API_KEY' }
Upload images and annotations to Cloud Object Storage Bucket:
python upload2bucket.py
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1729 | Catalan - català | WHRIA | 2024.05.24 | 34 |
1728 | Burmese - မြန်မာ | WHRIA | 2024.05.24 | 45 |
1727 | Bulgarian - български | WHRIA | 2024.05.24 | 40 |
1726 | Bosnian - bosanski | WHRIA | 2024.05.24 | 53 |
1725 | Belarusian - беларуская | WHRIA | 2024.05.24 | 90 |
1724 | Basque - euskara | WHRIA | 2024.05.24 | 37 |
1723 | Bangla - বাংলা | WHRIA | 2024.05.24 | 35 |
1722 | Azerbaijani - azərbaycan | WHRIA | 2024.05.24 | 30 |
1721 | Armenian - հայերեն | WHRIA | 2024.05.24 | 46 |
1720 | Arabic - العربية | WHRIA | 2024.05.24 | 32 |
1719 | Amharic - አማርኛ | WHRIA | 2024.05.24 | 36 |
1718 | Albanian - shqip | WHRIA | 2024.05.24 | 36 |
1717 | Afrikaans - Afrikaans | WHRIA | 2024.05.24 | 39 |
1716 | 모든 연구 자료를 정리. 이것으로 마무리 짓기로. | WHRIA | 2024.03.03 | 59 |
1715 | 다시 이곳으로... | WHRIA | 2024.03.02 | 43 |