Skip to content

when using color_point_2_depth_point, sometime an error will occur #10

@jdyjjj

Description

@jdyjjj

as you can see in this picture, this is my code.
image
and there will always be an error:

Traceback (most recent call last):
  File "video_kinect.py", line 462, in <module>
    x,y = color_point_2_depth_point(a._kinect,_DepthSpacePoint,a._kinect._depth_frame_data,[int(center_x),int(center_y)])
  File "video_kinect.py", line 365, in color_point_2_depth_point
    return [int(depth_x), int(depth_y)]
OverflowError: cannot convert float infinity to integer

I really can not understand why this error occurs. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions