xml json pascal
2020.01.12 18:04
댓글 4
-
WHRIA
2020.01.12 18: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 18:07
-
WHRIA
2020.01.12 18: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 18: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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1819 | mAP 계산법 | WHRIA | 2019.02.24 | 45577 |
1818 | epitope spreading | han | 2006.05.09 | 41035 |
1817 | encfs | WHRIA | 2020.05.17 | 36036 |
1816 | Heinrich Law (1:29:300 Law) | WHRIA | 2007.08.12 | 25003 |
1815 | 일본 주소 [2] | WHRIA | 2008.06.28 | 24032 |
1814 | 사주팔자 프로그램 | 한승석 | 2003.02.16 | 20337 |
1813 | simple adblock | WHRIA | 2012.04.13 | 18123 |
1812 | 도란사민 | WHRIA | 2011.04.19 | 18115 |
1811 | 탤런트 이윤지씨와 함께 | WHRIA | 2010.02.04 | 17049 |
1810 | penicillin | han | 2003.12.10 | 15721 |
1809 | SSH tunnel | WHRIA | 2007.10.01 | 15091 |
1808 | geexbox [1] | han | 2006.12.01 | 14611 |
1807 | 아이피부과 개원 | WHRIA | 2010.01.18 | 14446 |
1806 | 세무회계 | WHRIA | 2010.01.31 | 14409 |
1805 | 증명사진 | WHRIA | 2010.03.14 | 14341 |