Changes between Version 11 and Version 12 of json-annotation-format


Ignore:
Timestamp:
Jan 26, 2015, 6:08:34 PM (9 years ago)
Author:
casties
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • json-annotation-format

    v11 v12  
    4646== Image selection ==
    4747
    48 Annotations of images have a "regions" member, specifying a list of regions on the image. The region definitions are based on the [[http://geojson.org/geojson-spec.html|GeoJSON format]] and the [[http://www.w3.org/TR/SVG/shapes.html|SVG shape definitions]].
     48(State of 26.1.2015)
     49
     50Annotations of images have a "shapes" member, specifying a list of regions on the image. The region definitions are based on the [[http://geojson.org/geojson-spec.html|GeoJSON format]] and the [[http://www.w3.org/TR/SVG/shapes.html|SVG shape definitions]].
    4951
    5052The possible region forms are
    51   * point
    52   * line
    53   * rectangle
    54   * polygon (not yet implemented)
    55   * circle (not yet implemented)
     53  * point (x, y)
     54  * rectangle (x, y, w, h)
     55  * polygon (coordinates: [list of x,y])
     56  * linestring (coordinates: [list of x,y])
    5657
    57 Coordinates and coordinate units are specified in a "geometry" member.
     58Coordinates are specified in a "geometry" member. Coordinate units are specified in a "units" member.
    5859
    5960The coordinate unit "fraction" means that each coordinate is specified as a decimal fraction (float 0 <= x <= 1) of the image side length, e.g. x=0.03 means that x is at 3% of the total image width.
     
    6162Example of an image area specification:
    6263{{{
    63 "regions" : [{
     64"shapes" : [{
     65  "type" : "rectangle",
     66  "units" : "fraction",
    6467  "geometry" : {
    65     "type" : "Rectangle",
    66     "units" : "fraction",
    67     "coordinates" : [[0.0123, 0.345], [0.5793, 0.734]]
     68    "x" : 0.0123,
     69    "y" : 0.345,
     70    "w" : 0.5793,
     71    "h" : 0.734
     72  },
     73  {
     74  "type" : "polygon",
     75  "units" : "fraction",
     76  "geometry" : {
     77    "coordinates" : [[0.0123, 0.345], [0.5793, 0.734], [0.237, 0.554]]
    6878  }
    6979}]