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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1626 | 하드 디스크 교체 | WHRIA | 2008.07.20 | 8502 |
1625 | Medieye Server 이전 | WHRIA | 2007.10.15 | 8477 |
1624 | 리눅스는 망했다. | WHRIA | 2012.12.25 | 8437 |
1623 | yahoo 데이터 가져오기 | WHRIA | 2012.04.25 | 8423 |
1622 | convert to wav | WHRIA | 2007.08.12 | 8397 |
1621 | 버릴 것은 쓰레기통에 | WHRIA | 2007.09.30 | 8393 |
1620 | Url Finder | WHRIA | 2008.06.07 | 8390 |
1619 | 의미없게... 승석이방을 방문하고.. | 노지호 | 2000.06.08 | 8367 |
1618 | 홈페이지 대회있다고 해서 불나게 고쳤습니다. | 한승석 | 2000.06.07 | 8338 |
1617 | United Airline 에서 당첨 | WHRIA | 2007.08.01 | 8299 |
1616 | 84 인치 TV 도 파는군. | WHRIA | 2013.01.12 | 8276 |
1615 | MedicalPhoto Release 1.0.2 | WHRIA | 2008.04.05 | 8262 |
1614 | airvideo compile | WHRIA | 2011.06.15 | 8236 |
1613 | vc2005 problem | WHRIA | 2008.02.23 | 8165 |
1612 | To airboard | WHRIA | 2007.08.07 | 8134 |