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 | 요즘의 저의 상태입니다.!!! -_- (사실 제 글이 요즘 자주 올라오죠?) | 한승석 | 2000.08.29 | 3179 |
1728 | 또 사고쳤구나!! | 난나야 | 2000.08.29 | 3234 |
1727 | 승석아 답변 줘 | 채영광 | 2000.08.29 | 4261 |
1726 | Re: 승석아 답변 줘 | 한승석 | 2000.08.29 | 2915 |
1725 | Re: 승석아 답변 줘 | 채영광 | 2000.08.30 | 3227 |
1724 | 잘 지내냐? | 최세훈 | 2000.08.31 | 3061 |
1723 | Re: 여자와 남자의 차이점 (철학적인 내용임. 강추) | 한승석 | 2000.09.01 | 2660 |
1722 | 너의홈에 방문했다..추카추카^^ | 이윤정 | 2000.09.01 | 3051 |
1721 | 승석아 비밀얘기다 | 재호 | 2000.09.01 | 3294 |
1720 | 형! 홈에 방문했습니다 | 송영도 | 2000.09.02 | 2895 |
1719 | (``); | 송어진 | 2000.09.03 | 4165 |
1718 | 우리의 삶은 정말 도전해 볼만 하군요..^^ | 또웃자 | 2000.09.03 | 2802 |
1717 | 의약분업 만화 모두들 보세요. | 채영광 | 2000.09.03 | 2939 |
1716 | 시 | 승석 | 2000.09.05 | 2945 |
1715 | 요~맨 오늘 건투를 빌께. | 재호 | 2000.09.05 | 3139 |