CPC G06T 7/62 (2017.01) [G06T 5/92 (2024.01); G06T 7/12 (2017.01); G06T 7/13 (2017.01); G06T 7/50 (2017.01); G06T 7/70 (2017.01); G06T 7/73 (2017.01); G06T 19/006 (2013.01); G06T 7/80 (2017.01); G06T 2207/10024 (2013.01); G06T 2207/10028 (2013.01); G06T 2207/10048 (2013.01); G06T 2207/20164 (2013.01)] | 15 Claims |
1. An object measurement method, applied to an electronic device capable of displaying a virtual object, comprising:
determining point cloud data of a scene based on a depth image of the scene;
performing a plane segmentation process for the point cloud data and determining surface information of an object in the scene;
determining 3D vertex coordinates of the object in combination with the surface information of the object; and
obtaining a measurement parameter of the object based on the 3D vertex coordinates of the object;
wherein determining the 3D vertex coordinates of the object in combination with the surface information of the object comprises:
acquiring an infrared image of the scene, and extracting corner-point information of the object in the infrared image; and
determining the 3D vertex coordinates of the object based on the corner-point information of the object in the infrared image and the surface information of the object;
wherein determining the 3D vertex coordinates of the object based on the corner-point information of the object in the infrared image and the surface information of the object, comprises:
determining 2D vertex coordinates of the object in the infrared image based on the corner-point information of the object in the infrared image;
determining the 3D vertex coordinates of the object based on the 2D vertex coordinates of the object in the infrared image, a camera parameter of an infrared sensing apparatus configured for taking the infrared image, and the surface information of the object generating the virtual object associated with the measurement parameter of the object, so as to display the object on the electronic device.
|