CourtLandmark

CourtLandmark is a string enum that enumerates the 17 standard positions on a padel court used for geometry calculations and camera calibration.

The 17 points mirror the calibration convention of the padelamix computer-vision pipeline: points 1–13 lie on the court floor (Z = 0), and points 14–17 are at the top of the back walls (Z = back_wall_height, typically 4.0 m).


Values

from padelkit import CourtLandmark

# All members
list(CourtLandmark)
#MemberValue string
1CourtLandmark.FLOOR_NEAR_LEFT"floor_near_left"
2CourtLandmark.FLOOR_NEAR_RIGHT"floor_near_right"
3CourtLandmark.SERVICE_NEAR_LEFT"service_near_left"
4CourtLandmark.SERVICE_NEAR_CENTER"service_near_center"
5CourtLandmark.SERVICE_NEAR_RIGHT"service_near_right"
6CourtLandmark.NET_LEFT"net_left"
7CourtLandmark.CENTER"center"
8CourtLandmark.NET_RIGHT"net_right"
9CourtLandmark.SERVICE_FAR_LEFT"service_far_left"
10CourtLandmark.SERVICE_FAR_CENTER"service_far_center"
11CourtLandmark.SERVICE_FAR_RIGHT"service_far_right"
12CourtLandmark.FLOOR_FAR_LEFT"floor_far_left"
13CourtLandmark.FLOOR_FAR_RIGHT"floor_far_right"
14CourtLandmark.WALL_TOP_NEAR_LEFT"wall_top_near_left"
15CourtLandmark.WALL_TOP_NEAR_RIGHT"wall_top_near_right"
16CourtLandmark.WALL_TOP_FAR_LEFT"wall_top_far_left"
17CourtLandmark.WALL_TOP_FAR_RIGHT"wall_top_far_right"
17 Standardized 3D Padel Court Landmarks
Standard 17 FIP court landmarks: floor points 1–13 (Z = 0.0 m) and elevated back-wall corners 14–17 (Z = 4.0 m).

Usage

CourtLandmark members can be used directly with Court methods, either as enum members or their string values.

Usage

enum
CourtLandmark
from padelkit import Court, CourtLandmark, CoordinateSystem

court = Court.fip_standard()

# Using an enum member
pos = court.point(CourtLandmark.NET_LEFT)

# Using the string value
pos = court.point("net_left")

# Retrieve all 3D points in corner-based system
points = court.landmarks_3d(
    coordinate_system=CoordinateSystem.CORNER_BASED
)
wall_top = points[CourtLandmark.WALL_TOP_NEAR_LEFT.value]

Output

# court.point(CourtLandmark.NET_LEFT)
(-5.0, 0.0)

# wall_top (CORNER_BASED)
(0.0, 0.0, 4.0)

Was this page helpful?