@@ -29,7 +29,7 @@ Example usage::
2929Functions
3030---------
3131
32- .. function :: init(type=-1) -> None
32+ .. function :: init(type:int =-1) -> None
3333
3434 Initializes an onboard depth sensor.
3535
@@ -41,7 +41,7 @@ Functions
4141 By default type is ``-1 `` which will cause `tof.init() ` to automatically scan and initialize an
4242 attached thermal sensor based on the I2C address.
4343
44- .. function :: reset(type=-1) -> None
44+ .. function :: reset(type:int =-1) -> None
4545
4646 Re-initializes an onboard depth sensor.
4747
@@ -85,7 +85,7 @@ Functions
8585 * `tof.TOF_NONE `: 0 Hz.
8686 * `tof.TOF_VL53L5CX `: 15 Hz.
8787
88- .. function :: read_depth(hmirror=False, vflip=False, transpose=False, timeout=-1)
88+ .. function :: read_depth(hmirror:bool =False, vflip:bool =False, transpose:bool =False, timeout:int =-1)
8989
9090 Returns a tuple containing the depth list (width * height),
9191 the minimum depth seen, and the maximum depth seen.
@@ -115,7 +115,7 @@ Functions
115115
116116 ``depth `` is a (width * height) list of floats (4-bytes each).
117117
118- .. function :: draw_depth(image:image.Image, ir , x:Optional[int]=None, y:Optional[int]=None, x_scale=1.0, y_scale=1.0, roi:Optional[Tuple[int,int,int,int]]=None, rgb_channel=-1, alpha=128, color_palette=image.PALETTE_DEPTH, alpha_palette=-1, hint=0, scale=Optional[Tuple[float, float]]) -> None
118+ .. function :: draw_depth(image:image.Image, tof , x:Optional[int]=None, y:Optional[int]=None, x_scale:float =1.0, y_scale:float =1.0, roi:Optional[Tuple[int,int,int,int]]=None, rgb_channel:int =-1, alpha:int =128, color_palette=image.PALETTE_DEPTH, alpha_palette=-1, hint:int =0, scale=Optional[Tuple[float, float]]) -> None
119119
120120 Draws an ``depth `` array on ``image `` whose top-left corner starts at location x, y. This method
121121 automatically handles rendering the image passed into the correct pixel format for the destination
@@ -180,7 +180,7 @@ Functions
180180 To handle a transposed ``depth `` array `read_depth ` remembers if it was called with ``transposed ``
181181 ``True ``. This is then passed to ``draw_depth `` internally.
182182
183- .. function :: snapshot(hmirror=False, vflip=False, transpose=False, x_scale=1.0, y_scale=1.0, roi:Optional[Tuple[int,int,int,int]]=None, rgb_channel=-1, alpha=128, color_palette=image.PALETTE_DEPTH, alpha_palette=None, hint=0, scale:Optional[Tuple[float, float]]=None, pixformat=image.RGB565, copy_to_fb=False, timeout=-1) -> image.Image
183+ .. function :: snapshot(hmirror:bool =False, vflip:bool =False, transpose:bool =False, x_scale:float =1.0, y_scale:float =1.0, roi:Optional[Tuple[int,int,int,int]]=None, rgb_channel:int =-1, alpha:int =128, color_palette=image.PALETTE_DEPTH, alpha_palette=None, hint:int =0, scale:Optional[Tuple[float, float]]=None, pixformat:int =image.RGB565, copy_to_fb:bool =False, timeout:int =-1) -> image.Image
184184
185185 Works like `sensor.snapshot() ` and returns an `image ` object that is either
186186 `image.GRAYSCALE ` (grayscale) or `image.RGB565 ` (color). If ``copy_to_fb `` is False then
0 commit comments