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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1624 | Re: [TIP] 유동 IP 로 서버 만드는 법 | 애국자 | 2001.03.29 | 2176 |
1623 | ^^*v 저 또 왔어요 | Schauberger | 2001.03.30 | 2086 |
1622 | 노 벨 | 채영광 | 2001.04.04 | 2108 |
1621 | Re: ^^*v 저 또 왔어요 | 한승석 | 2001.04.07 | 2016 |
1620 | congratulation!! | soma | 2001.04.07 | 2126 |
1619 | 들렸다가오... | 기갑형 | 2001.04.14 | 2089 |
1618 | 의석아 너 사진이다. | 한승석 | 2001.04.20 | 2119 |
1617 | Iczelion | 한승석 | 2001.04.21 | 2092 |
1616 | ^^*v 호호 | Schauberger | 2001.04.24 | 2084 |
1615 | 봄기운 | 김다솜 | 2001.05.14 | 2079 |
1614 | 프리 되는 레지스트리 | .. | 2001.05.23 | 2084 |
1613 | 정식 | .. | 2001.05.23 | 2079 |
1612 | 달리기 | 김다솜 | 2001.06.01 | 2378 |
1611 | 퀴즈하나 !! | schauberger | 2001.06.09 | 2083 |
1610 | Re: 퀴즈하나 !! | 한승석 | 2001.06.12 | 2088 |