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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1729 | 하드 디스크 교체 | WHRIA | 2008.07.20 | 8505 |
1728 | Medieye Server 이전 | WHRIA | 2007.10.15 | 8483 |
1727 | 리눅스는 망했다. | WHRIA | 2012.12.25 | 8451 |
1726 | yahoo 데이터 가져오기 | WHRIA | 2012.04.25 | 8438 |
1725 | 버릴 것은 쓰레기통에 | WHRIA | 2007.09.30 | 8400 |
1724 | convert to wav | WHRIA | 2007.08.12 | 8400 |
1723 | Url Finder | WHRIA | 2008.06.07 | 8395 |
1722 | 의미없게... 승석이방을 방문하고.. | 노지호 | 2000.06.08 | 8377 |
1721 | 홈페이지 대회있다고 해서 불나게 고쳤습니다. | 한승석 | 2000.06.07 | 8355 |
1720 | United Airline 에서 당첨 | WHRIA | 2007.08.01 | 8311 |
1719 | 84 인치 TV 도 파는군. | WHRIA | 2013.01.12 | 8288 |
1718 | MedicalPhoto Release 1.0.2 | WHRIA | 2008.04.05 | 8283 |
1717 | airvideo compile | WHRIA | 2011.06.15 | 8245 |
1716 | vc2005 problem | WHRIA | 2008.02.23 | 8174 |
1715 | To airboard | WHRIA | 2007.08.07 | 8143 |