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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1671 | 음란전화.... | 윤재원 | 2000.07.10 | 3884 |
1670 | 재원님이 퍼온 심리테스트...하하하 읽어봐라 | 재원님~ | 2000.07.12 | 3624 |
1669 | 의욕상실 | 채영광 | 2000.07.13 | 3949 |
1668 | Re: 의욕상실 | 한승석 | 2000.07.13 | 3407 |
1667 | Re: 사진 더 추가해줘잉 | 한승석 | 2000.07.13 | 3215 |
1666 | 비천무는 잼있다! | 채영광 | 2000.07.16 | 4091 |
1665 | 음악 니가 다 정리한 거야? | 채영광 | 2000.07.18 | 4489 |
1664 | 아주아주 멋진 시...한편..꼭 읽어봐랑~ | 재원님~ | 2000.07.18 | 3653 |
1663 | 승석아 오늘 오스키는 잘 보았니? | 채영광 | 2000.07.23 | 3605 |
1662 | Re: 비천무는 잼없다! | 헬로우멤 | 2000.07.24 | 3460 |
1661 | 비천무...말이지~~~ | 윤재원 | 2000.07.26 | 3619 |
1660 | 승석아 다다음주 말이야. | 채영광 | 2000.07.31 | 3468 |
1659 | 똑똑똑~~ | 조각가 | 2000.08.01 | 3641 |
1658 | 승석이오빠아...ㅜ.ㅜ 설가면 맛난거 사주우.ㅠ.ㅠ | 김승욱 | 2000.08.06 | 4337 |
1657 | 승석 X-ray는 많이 찍었니? | 정석원 | 2000.08.07 | 3837 |