Skip to content

WHRIA

2020.01.12 18:06:09
*.0.0.1

<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:15:31
*.0.0.1

# 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:38
*.0.0.1

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 to upload2bucket.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
List of Articles
번호 제목 글쓴이 날짜 조회 수
» xml json pascal [4] WHRIA 2020-01-12 6
1619 nvidia caffe WHRIA 2020-01-12 8
1618 retinanet nvidia [3] WHRIA 2020-01-12 7
1617 lvm [2] WHRIA 2020-01-09 5
1616 usb 3.1 + DP WHRIA 2020-01-07 4
1615 raid 6 rebuild WHRIA 2020-01-07 5
1614 add extra raid disk WHRIA 2020-01-05 4
1613 참고 또 참고 WHRIA 2020-01-03 12
1612 R graph WHRIA 2019-12-29 11
1611 melanoma awareness [1] WHRIA 2019-12-27 7
1610 윈도우 raid ahci 전환 WHRIA 2019-12-26 4
1609 lvm 확장 [1] WHRIA 2019-12-25 10
1608 pytorch object detect / retinanet WHRIA 2019-12-22 13
1607 kaggle leakage WHRIA 2019-12-19 5
1606 pytorch - caffe WHRIA 2019-12-19 4

Powered by Xpress Engine / Designed by Sketchbook

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소