Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion content/api/vision/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ The markers in the list have some useful attributes:
- `is_wall_marker()` - returns whether or not the marker is a [wall marker](marker-ids/#wall-markers).
- `is_token_marker()` - returns whether or not the marker is a [token marker](marker-ids/#token-markers).
- `id` - returns the [id](marker-ids) of the marker.
- `pixel_centre` - returns the location in pixels of the centre of the marker in the captured image.
- `pixel_centre` - returns the [pixel](coordinates/#pixel-coordinates) coordinates of the centre of the marker in the captured image.
- `pixel_corners` - returns a list of the corners of the markers in [pixel](coordinates/#pixel-coordinates) coordinates, with the first coordinate being those of the bottom left corner of the marker, and the rest being in counter-clockwise order. This is relative to the marker's orientation, thus if the marker is upside down, the first coordinate will appear to be in the top right.
- `cartesian` - returns details of the position of the marker in the [Cartesian](coordinates/#cartesian-coordinates) coordinate system.
- `spherical` - returns details of the position of the marker in a [spherical](coordinates/#spherical-coordinates) coordinate system.
- `polar` - *Deprecated*. Use the `spherical` attribute instead.
Expand Down
5 changes: 5 additions & 0 deletions content/api/vision/coordinates.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,8 @@ The following diagram shows the orientation of the Cartesian axes relative to
the camera as well as the angles which describe the spherical coordinate space.

![A diagram showing the coordinate spaces](/img/api/coordinate-spaces.svg)

## Pixel Coordinates

The pixel coordinates uses 2 coordinates, `x`, and `y`. The units of the coordinates are in pixels of the [webcam](/kit/webcam/). The origin, `(0,0)` is in the top left of the camera. The `y` axis goes from top to bottom, the `x` axis goes from left to right.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The linked page does not contain the resolution of the camera, or the resolution that we are taking pictures at. Does this resolution ever vary?