pyorc.CameraConfig.set_bbox_from_width_length#

CameraConfig.set_bbox_from_width_length(points: List[List[float]])[source]#

Establish bbox based on three provided points.

The points are provided in the original camera perspective as [col, row] and require that a water level has already been set in order to project them in a feasible way.

first point : left bank (seen in downstream direction) second point : right bank third point : selected upstream or downstream of the two points.

The last point defines how large the bounding box is in up-and-downstream direction. A user should attempt to choose the first two points roughly in the middle of the intended bounding box. The last point is then used to estimate the length perpendicular to the line between the first two points. The bounding box is extended in both directions with the same length.

Parameters:

points (list of lists (3)) – [columns, row] coordinates in original camera perspective without any undistortion applied