Changes between Version 11 and Version 12 of json-annotation-format
- Timestamp:
- Jan 26, 2015, 6:08:34 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
json-annotation-format
v11 v12 46 46 == Image selection == 47 47 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 50 Annotations 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]]. 49 51 50 52 The 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]) 56 57 57 Coordinates a nd coordinate units are specified in a "geometry" member.58 Coordinates are specified in a "geometry" member. Coordinate units are specified in a "units" member. 58 59 59 60 The 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. … … 61 62 Example of an image area specification: 62 63 {{{ 63 "regions" : [{ 64 "shapes" : [{ 65 "type" : "rectangle", 66 "units" : "fraction", 64 67 "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]] 68 78 } 69 79 }]