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 | 참새 | WHRIA | 2007.06.20 | 6407 |
1608 | !! Academic Award of CLS !! | WHRIA | 2007.08.04 | 6369 |
1607 | My parents is away on a journey | WHRIA | 2007.08.19 | 6369 |
1606 | 워드에서 페이지 번호 매기기 | han | 2006.04.03 | 6345 |
1605 | 어디까지 이야기해야 할까? | WHRIA | 2007.08.28 | 6332 |
1604 | Last day | WHRIA | 2007.08.05 | 6282 |
1603 |
공유기 성능 비교 차트
![]() | WHRIA | 2013.02.24 | 6252 |
1602 |
whria.net 의 홈페이지 배경 음악 모음
![]() | WHRIA | 2005.11.10 | 6193 |
1601 | 멋지네요... | 석근이친구... | 2000.06.09 | 6189 |
1600 | Firefox : Session restore | WHRIA | 2007.08.12 | 6183 |
1599 | 어제 PRK 하다. | WHRIA | 2007.07.27 | 6182 |
1598 |
hooking 관련 문서들
![]() | WHRIA | 2013.04.10 | 6172 |
1597 | 휴.. 졸리다. 졸려 | WHRIA | 2007.06.27 | 6170 |
1596 | 그래 니가 일등 먹어라. | 한정규 | 2000.06.10 | 6163 |
1595 | 오늘 내일 | han | 2007.07.22 | 6112 |