ota.pupil package¶
Submodules¶
ota.pupil.pupil module¶
-
class
ota.pupil.pupil.Pupil(frame, threshold=10, skip_init=False)[source]¶ Bases:
objectObject to represent a pupil within a specific frame of the video.
-
calc_pupil_properties_fit_ellipse(frame, threshold=10)[source]¶ Find the location of the pupil center and the radius of the pupil within frame using a best fit ellipse.
- frame : array_like
- Grayscale video frame containing pupil to be detected
- threshold: Uint8
- Integer representing the value to use for image binary thresholding.
- center : Dictionary
- A dictionary object containing the column and row indexes of the pupil center within the frame ‘c’ : Center column index ‘r’ : Center row index
- radius : float
- Value representing the radius of the pupil in frame (distance measured in pixels)
- pupil_cnt : array_like
- Vector type object containing a list of points contained in the contour of the pupil.
- 0-index of point corresponds to column index 1-index of point corresponds to row index
-
calc_pupil_properties_min_enclosing_circle(frame, threshold=10)[source]¶ Find the location of the pupil center and the radius of the pupil within frame using min enclosing circle.
- frame : array_like
- Grayscale video frame containing pupil to be detected
- threshold: Uint8
- Integer representing the value to use for image binary thresholding.
- center : Dictionary
- A dictionary object containing the column and row indexes of the pupil center within the frame ‘c’ : Center column index ‘r’ : Center row index
- radius : float
- Value representing the radius of the pupil in frame (distance measured in pixels)
- pupil_cnt : array_like
- Vector type object containing a list of points contained in the contour of the pupil.
- 0-index of point corresponds to column index 1-index of point corresponds to row index
-