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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1609 | Re: 퀴즈하나 !!(힌트) | schauberger | 2001.06.13 | 2103 |
1608 | 정답을.....^^ | schauberger | 2001.06.18 | 2098 |
1607 | 너무 어려워용~ | 승석 | 2001.06.20 | 2096 |
1606 | 승석아 보고 싶다 | 재호 | 2001.06.21 | 2102 |
1605 | ^^ 저두........ | schauberger | 2001.06.22 | 2094 |
1604 | 에궁.. | 최평균 | 2001.07.15 | 2088 |
1603 | 야호~~~*^^* | soma | 2001.07.31 | 2096 |
1602 | 테스트 | 승석 | 2001.08.05 | 2094 |
1601 | 그냥 그런... | noname | 2001.08.24 | 2117 |
1600 | 글이 없었던 이유는 | 한승석 | 2001.08.24 | 2089 |
1599 | 잘 지내? | 혜진누나 | 2001.08.28 | 2260 |
1598 | Re: 글이 없었던 이유는 | 김호정 | 2001.08.30 | 2080 |
1597 | 승석이형 안녕하세요? | 송영도 | 2001.09.14 | 2086 |
1596 | ♩♪♬하하하..오랜만에....퀴즈!♡~ | schauberger | 2001.09.19 | 2097 |
1595 | 후회... | coral | 2001.09.28 | 2102 |