vehicle_common.cv.calibrate#

Functions#

calibrate(→ tuple[float, float])

Returns color range with best confidence interval

find_points_range(→ tuple[numpy.ndarray | None, ...)

Finds the points and color value range corresponding to some probability, std, and color

Module Contents#

calibrate(frame: numpy.ndarray) tuple[float, float]#

Returns color range with best confidence interval :param frame: 3 * 2-D list of pixels :type frame: List[int] * List[int] * List[int]

Returns:

The color optimal color rnage

Return type:

range (Tuple[Int, Int])

find_points_range(prob: float, std: float, color: float, frame: numpy.ndarray) tuple[numpy.ndarray | None, tuple[float, float]]#

Finds the points and color value range corresponding to some probability, std, and color

Parameters:
  • prob (Float) – probaility ranging from 0.0 - 1.0

  • std (Float) – standar d deviation value

  • color (Float) – Ground truth or mean of distribution

Returns:

list of points in the image which correspond to range range (Tuple[Int, Int]): color range corresponding to prob

Return type:

points (List[Int])