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 | 힘든 하루하루 | WHRIA | 2016.09.30 | 85 |
1623 | windows softraid monitor | WHRIA | 2019.12.19 | 85 |
1622 | AI papers [6] | WHRIA | 2023.03.02 | 85 |
1621 | WOL shutdown | WHRIA | 2016.01.22 | 86 |
1620 | 하도 운동을 안했더니.. | WHRIA | 2016.06.10 | 87 |
1619 | 만기까지 끌어 올림. | WHRIA | 2016.09.30 | 87 |
1618 | 이사 감사 3년 변경등기 | WHRIA | 2015.12.02 | 89 |
1617 | webapp [1] | WHRIA | 2020.05.10 | 89 |
1616 | 원격 진료 | WHRIA | 2023.03.23 | 89 |
1615 |
인구구조
![]() | WHRIA | 2016.06.05 | 90 |
1614 | 서피스 문제 참고 | WHRIA | 2015.12.17 | 91 |
1613 | 멀티캐스트 | WHRIA | 2015.11.03 | 92 |
1612 | 결극 senet 이 문제 | WHRIA | 2019.07.13 | 92 |
1611 | consort , stard | WHRIA | 2020.07.30 | 92 |
1610 | 중국 스마트 폰 | WHRIA | 2014.09.29 | 94 |