xml json pascal
2020.01.12 19:04
댓글 4
-
WHRIA
2020.01.12 19: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 19:07
-
WHRIA
2020.01.12 19: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 19: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 | git 특정 버젼 | WHRIA | 2020.07.11 | 34 |
1670 | naver rexnet clova AI [1] | WHRIA | 2020.07.04 | 228 |
1669 | sql python | WHRIA | 2020.07.01 | 180 |
1668 | modprobe | WHRIA | 2020.06.29 | 6422 |
1667 | tab 구조 html | WHRIA | 2020.06.28 | 79 |
1666 | imagenet classification SOTA | WHRIA | 2020.06.27 | 1354 |
1665 | 할일 | WHRIA | 2020.06.24 | 1463 |
1664 | caffe hdf5 error | WHRIA | 2020.06.22 | 187 |
1663 | resnest50 caffe | WHRIA | 2020.06.22 | 162 |
1662 | reddit downloader | WHRIA | 2020.06.21 | 204 |
1661 | 바이두 | WHRIA | 2020.06.20 | 627 |
1660 | regression model [6] | WHRIA | 2020.06.19 | 167 |
1659 | MS bot framework [3] | WHRIA | 2020.06.13 | 99 |
1658 | BERT | WHRIA | 2020.06.10 | 3222 |
1657 | 영어로 숫자 표현 | WHRIA | 2020.05.28 | 4447 |