Image prediction device and method
By transforming 2D images and depth images into 3D point clouds and extracting partial point clouds for training, the method addresses memory and training time inefficiencies in AI models, improving prediction model training efficiency.
Patent Information
- Application Number
- US19/321545
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2025-05-22
- Filing Date
- 2025-09-08
- Publication Date
- 2026-11-26
AI Technical Summary
Existing AI models for predicting 3D keypoints require large amounts of memory and training time due to the input of full 3D point clouds, leading to inefficient training performance.
Transform 2D images and depth images into 3D point clouds, extract 2D keypoints, and then convert them into 3D surface keypoints, followed by obtaining partial point clouds from these keypoints to train a prediction model, reducing the data input to the model.
This approach reduces memory usage and training time by inputting only partial point clouds, enhancing the efficiency of the training process.
Smart Images

Figure US20260378087A1-D00000_ABST
Abstract
Description
CROSS REFERENCE TO RELATED APPLICATIONS
[0001] This application claims priority of Taiwan patent application No. 114119204 filed May 22, 2025, the entirety of which is incorporated by reference herein.TECHNICAL FIELD
[0002] The present disclosure relates to an image prediction technology, and, in particular, to an image prediction technology used for predicting three-dimensional (3D) keypoints in a predicted image.BACKGROUND
[0003] As the progress of the artificial intelligence (AI) technology has advanced, AI models have been widely applied in detecting keypoints of image.
[0004] Traditionally, when a model for predicting human body keypoints is trained, enough training data needs to be input to obtain better prediction results. One 640*480 depth image can be used to generate 300,000 3D point clouds. In order to obtain more keypoint information, for each input image, enough 3D point clouds need to be reserved as the training data. However, if all point clouds in each image are directly input into the prediction model (e.g., a Convolutional Neural Network, CNN) for training, the model may take up too much space in the memory. As a result, the training time may be slow, and the training performance may be low.
[0005] Therefore, how to train a prediction model more quickly and accurately is a subject that is worthy of discussion.BRIEF SUMMARY
[0006] An image prediction device and method are provided to overcome the problems mentioned above.
[0007] An embodiment of the present disclosure provides an image prediction device. The image prediction device may comprise an image capturing device and a processor. The image capturing device may be configured to generate a 2-dimensional (2D) image and a depth image. The processor may be coupled to the image capturing device. The processor may transform the depth image into a 3-dimensional (3D) point cloud. The processor may also obtain a plurality of 2D keypoints of the 3D image according to the 3D point cloud. The processor may further transform the 2D keypoints into a plurality of 3D surface keypoints according to the 3D point cloud and the 2D keypoints. The processor may further obtain a partial point cloud corresponding to each 3D surface keypoint according to the 3D surface keypoints. The processor may further input each partial point cloud into a prediction model to train the prediction model or to generate a prediction result.
[0008] An embodiment of the present disclosure provides an image prediction method. The image prediction method may be applied to an image prediction device. The image prediction method may comprise the following steps. An image capturing device of the image prediction device may generate a 2-dimensional (2D) image and a depth image. Then, a processor of the image prediction device may transform the depth image into a 3-dimensional (3D) point cloud. Then, the processor may obtain a plurality of 2D keypoints of the 3D image according to the 3D point cloud. Then, the processor may transform the 2D keypoints into a plurality of 3D surface keypoints according to the 3D point cloud and the 2D keypoints. Then, the processor may obtain a partial point cloud corresponding to each 3D surface keypoint according to the 3D surface keypoints. Then, the processor may input each partial point cloud into a prediction model to train the prediction model or to generate a prediction result.
[0009] Other aspects and features of the invention will become apparent to those with ordinary skill in the art upon review of the following descriptions of specific embodiments of a smart battery detection device and method.BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The present disclosure can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
[0011] FIG. 1 shows a block diagram of an image prediction device 100 according to an embodiment of the invention;
[0012] FIG. 2 shows a schematic diagram of human body keypoints according to an embodiment of the invention;
[0013] FIG. 3 shows a schematic diagram of a partial point cloud according to an embodiment of the invention;
[0014] FIG. 4A-4C show schematic diagrams for integrating the surface keypoint and the partial keypoint according to an embodiment of the invention;
[0015] FIG. 5 is a flow chart illustrating the training of a prediction model according to an embodiment of the invention;
[0016] FIG. 6 is a flow chart illustrating for generating a prediction result according to an embodiment of the invention; and
[0017] FIG. 7 is a flow chart illustrating an image prediction method according to an embodiment of the invention.DETAILED DESCRIPTION
[0018] The following description is made for the purpose of illustrating the general principles of the disclosure and should not be taken in a limiting sense. The scope of the disclosure is best determined by reference to the appended claims.
[0019] FIG. 1 shows a block diagram of an image prediction device 100 according to an embodiment of the invention. As shown in FIG. 1, the image prediction device 100 may comprise an image capturing device 110, a processor 120, and a storage device 130. It should be noted that FIG. 1 presents a simplified block diagram in which only the elements relevant to the invention are shown. However, the invention should not be limited to what is shown in FIG. 1. The image prediction device 100 may also comprise other elements.
[0020] According to the embodiments of the invention, the image capturing device 110 may be a depth sensing camera. The image capturing device 110 may be used to provide 2-dimensional (2D) image (e.g., color image or infrared (IR) image), and provide the depth image corresponding to the 2D image.
[0021] According to the embodiments of the invention, the processor 120 may be coupled to the image capturing device 110 and the storage device 130. The processor 120 may be used to perform the operations and calculations of the image prediction of the invention.
[0022] According to the embodiments of the invention, the storage device 130 may be a volatile memory (e.g. Random Access Memory (RAM)), or a non-volatile memory (e.g. flash memory, Read Only Memory (ROM)), a hard disk, or a combination of the above memory devices. The storage device 130 may be configured to store the data and the program codes related to the operations and calculations of the image prediction.
[0023] According to an embodiment of the invention, the processor 120 may obtain a 2D image and a depth image from the image capturing device 110. Then, the processor 120 may transform the depth image into a three-dimensional (3D) point cloud. Specifically, the processor 120 may transform the depth image into a 3D point cloud (or a 3D point cloud image) according to the coordinate value of each pixel of the depth image and the camera parameter information of the image capturing device 110. That is, each pixel of the depth image may correspond to one point of the 3D point cloud. The camera parameter information of the image capturing device 110 may comprise the x-axis focal length and the y-axis focal length, and the offset of the camera optical axis in the image coordinate system. For example, if the coordinates of a pixel of the depth image is (xs, ys, zs), the processor 120 may transform the coordinates of the pixel into 3D coordinates of the 3D point cloud according to the following equations:xs=fxXY+cxys=fyYZ+cyzs=Z,where fx and fy may indicate the x-axis focal length and the y-axis focal length corresponding to the image capturing device 110, and cx and cy may indicate the offset of the camera optical axis in the image coordinate system.In addition, the processor 120 may obtain a plurality of 2D keypoints (e.g., human body keypoints) in the 2D image according to the 2D image. Specifically, the processor 120 may input the 2D image into a keypoint detection model to detect and obtain the 2D keypoints in the 2D image. The keypoint detection model may comprise OpenPose, High-Resolution Net (HRNet), DeepCut, AlphaPose (Region Multi-person Pose Estimation), Deep Pose, PoseNet, Dense Pose, TensorFlow, and / or OpenPifpaf, YoloV8, but the invention should not be limited thereto. FIG. 2 shows a schematic diagram of human body keypoints according to an embodiment of the invention. As shown in FIG. 2, in the human body keypoint data, a human body may comprise 18 keypoints, but the invention should not be limited thereto. After the processor input the 2D image into the keypoint detection model, the keypoint model may detect and obtain the keypoints (i.e. 2D keypoints or human body keypoints) of the human body in the 2D image according to the human body keypoint data.
[0025] After the processor 120 obtains the 3D point cloud and the 2D keypoints, the processor 120 may transform the 2D keypoints into a plurality of 3D surface keypoints according to the 3D point cloud and the 2D keypoints. Because the 2D image corresponds to the depth image, the processor 120 may determine the coordinate value of the pixels corresponding to the 2D keypoints in the depth image, thus transform the 2D keypoints into 3D surface keypoints. Specifically, each pixel of the 2D image and the depth image may correspond to each other, and each pixel of the depth image may correspond to one point of the 3D point cloud. Therefore, the processor 120 may obtain the depth value corresponding to each 2D keypoint according to each pixel corresponding to each 2D keypoint in the depth image. Then, the processor 120 may transform the 2D keypoints into 3D surface keypoints according to the camera parameter information of the image capturing device 110 and the depth value corresponding to each 2D keypoint. In the invention, the 3D surface keypoint may mean that the 3D keypoints on the surface that can be photographed by the image capturing device 110.
[0026] After the processor 120 obtains the 3D surface keypoints, the processor 120 may obtain a partial point cloud corresponding to each 3D surface keypoint according to the 3D surface keypoints. Specifically, the processor 120 may take each 3D surface keypoint as a center to cut a point cloud with a default range from the 3D point cloud to obtain the partial point cloud corresponding to each 3D surface keypoint. In addition, the processor may perform a coordinate transformation on the coordinates of each partial point cloud to transform each 3D surface keypoint into a center coordinate corresponding to each partial point cloud. According to an embodiment of the invention, the default range may be a range formed based on a distance r. In an embodiment, the distance r may be ¼ of the distance between two 3D surface keypoints which have the farthest distance, but the invention should not be limited thereto. After the processor 120 perform the coordinate transformation on the coordinates of each partial point cloud, the center of each cut partial point cloud may be its corresponding 3D keypoint, and the coordinate range of the X-axis, Y-axis and Z-axis of each cut partial point cloud may be [0~2r].
[0027] FIG. 3 is a schematic diagram of a partial point cloud according to an embodiment of the invention. As shown in FIG. 3, if the distance r=24, the partial point cloud corresponding to the 3D surface keypoint P1 corresponding to the head of a human body may be the partial point cloud whose center is the corresponding 3D surface keypoint P1 corresponding to the head of the human body and whose size is 48*48*48.
[0028] According to an embodiment of the invention, after the processor 120 obtains the partial point cloud corresponding to each 3D surface keypoint, the processor 120 may input the partial point cloud corresponding to each 3D surface keypoint into a prediction model (e.g., a Convolutional Neural Network (CNN) model, but the invention should not be limited thereto) to train the prediction model. That is, the prediction model may be trained according to the coordinate points in each input partial point cloud and the input answer or correct data (e.g., the pre-stored information (e.g., the pre-marked internal keypoint of the human body, and a coordinate matrix corresponding to the internal keypoint, but the invention should not be limited thereto) related to an object (e.g., a human body)).
[0029] In addition, according to an embodiment of the invention, in a default range, the pre-marked keypoint (i.e., the input answer for training the prediction model) may be at the center of its corresponding coordinate matrix. The coordinates in the coordinate matrix may correspond to a higher probability value when the coordinates are closer to the pre-marked keypoint, and the coordinates in the coordinate matrix may correspond to a lower probability value when the coordinates are farther from the pre-marked keypoint. For example, if the coordinates of the pre-marked keypoint are (20, 20, 20), when a set of coordinates in the coordinate matrix is closer to the pre-marked keypoint (20, 20, 20), the set of coordinates may correspond to higher probability (i.e., the probability corresponding to the coordinates (20, 20, 20) is 1), when a set of coordinates in the coordinate matrix is farther from the pre-marked keypoint (20, 20, 20), the set of coordinates may correspond to a lower probability. In addition, if a set of coordinates is outside of the default range, the probability corresponding to the coordinates is 0.
[0030] According to the embodiments of the invention, only the partial point cloud corresponding to each 3D surface keypoint needs to be input into the prediction model without inputting whole 3D point cloud to the prediction model. Therefore, the training of the prediction model can be faster, and the data needing to be input into the prediction model can be reduced.
[0031] According to another embodiment of the invention, after the processor 120 obtains the partial point cloud corresponding to each 3D surface keypoint, the processor 120 may input the partial point cloud corresponding to each 3D surface keypoint into a prediction model (the prediction model has been trained, e.g., a 3D CNN model) to generate a predicted keypoint coordinate (i.e., predicted internal keypoint coordinate) corresponding to each center coordinate of each partial point cloud. Then, the processor 120 may obtain a plurality of target 3D keypoints (i.e., prediction result) corresponding to the 3D surface keypoints according to each predicted keypoint coordinate. In the invention, the target 3D keypoints (i.e., prediction result) obtained by the processor according to the predicted keypoint coordinate (i.e., predicted internal keypoint coordinate) may mean the real internal keypoints of the object (e.g., a human body) in the 2D image (or depth image).
[0032] FIG. 4A-4C show schematic diagrams for integrating the surface keypoint and the partial keypoint according to an embodiment of the invention. As shown in FIGS. 4A-4C, it is assumed that the coordinates of the 3D surface keypoint calculated according to the 2D image and the depth image is (a, b, c). The coordinates (a, b, c) of the 3D surface keypoint may be transformed into the center coordinates (x, y, z) of the partial point cloud corresponding to the coordinates (a, b, c) of the 3D surface keypoint through a coordinate transformation function F (i.e., F((a, b, c))=(x, y, z)). If the offset of the predicted keypoint coordinates (or partial 3D keypoint coordinates) (p, q, m) predicted by the prediction model relative to the center coordinates (x, y, z) is (+x1, −y1, +z1), the predicted keypoint coordinates (p, q, m) may be expressed as (x+x1, y−y1, z+z1). Finally, the predicted keypoint coordinates (p, q, m) may be transformed into the target 3D keypoint coordinates (or the final predicted 3D keypoint coordinates) (a*, b*, c*) through the inverse function G of the coordinate transformation function F (i.e., G((p, q, m))=(a*, b*, c*)).
[0033] FIG. 5 is a flow chart illustrating the training of a prediction model according to an embodiment of the invention. The flow shown in FIG. 5 can be applied to the image prediction device 100. As shown in FIG. 5, in step S510, an image capturing device of the image prediction device 100 may generate a 2D image and a depth image.
[0034] In step S520, a processor of the image prediction device 100 may transform the depth image into a 3D point cloud.
[0035] In step S530, the processor of the image prediction device 100 may obtain a plurality of 2D keypoints in the 2D image according to the 2D image.
[0036] In step S540, the processor of the image prediction device 100 may transform the plurality of 2D keypoints into a plurality of 3D surface keypoints according to the 3D point cloud and the plurality of 2D keypoints.
[0037] In step S550, the processor of the image prediction device 100 may obtain a partial point cloud corresponding to each 3D surface keypoint according to the plurality of 3D surface keypoints.
[0038] In step S560, the processor of the image prediction device 100 may input each partial point cloud into a prediction model to train the prediction model.
[0039] FIG. 6 is a flow chart illustrating for generating a prediction result according to an embodiment of the invention. The flow shown in FIG. 6 can be applied to the image prediction device 100. As shown in FIG. 6, in step S610, an image capturing device of the image prediction device 100 may generate a 2D image and a depth image.
[0040] In step S620, a processor of the image prediction device 100 may transform the depth image into a 3D point cloud.
[0041] In step S630, the processor of the image prediction device 100 may obtain a plurality of 2D keypoints in the 2D image according to the 2D image.
[0042] In step 640, the processor of the image prediction device 100 may transform the plurality of 2D keypoints into a plurality of 3D surface keypoints according to the 3D point cloud and the plurality of 2D keypoints.
[0043] In step S650, the processor of the image prediction device 100 may obtain a partial point cloud corresponding to each 3D surface keypoint according to the plurality of 3D surface keypoints.
[0044] In step S660, the processor of the image prediction device 100 may input each partial point cloud into a prediction model to obtain a prediction keypoint corresponding to each 3D surface keypoint.
[0045] In step S670, the processor of the image prediction device 100 may integrate the 3D surface keypoints and the prediction keypoints to generate a prediction result (i.e., a plurality of target 3D keypoints).
[0046] Specifically, the processor of the image prediction device 100 may input the partial point cloud corresponding to each 3D surface keypoint into a prediction model (the prediction model has been trained, e.g., a 3D CNN model) to generate a predicted keypoint coordinate (i.e., predicted internal keypoint coordinate) corresponding to each center coordinate of each partial point cloud. Then, the processor of the image prediction device 100 may obtain a plurality of target 3D keypoints (i.e., prediction result) corresponding to the 3D surface keypoints according to each predicted keypoint coordinate.
[0047] FIG. 7 is a flow chart illustrating an image prediction method according to an embodiment of the invention. The flow of FIG. 7 can be applied to the image prediction device 100. As shown in FIG. 7, in step S710, an image capturing device of the image prediction device 100 may generate a 2D image and a depth image.
[0048] In step S720, a processor of the image prediction device 100 may transform the depth image into a 3D point cloud.
[0049] In step S730, the processor of the image prediction device 100 may obtain a plurality of 2D keypoints in the 2D image according to the 2D image.
[0050] In step 740, the processor of the image prediction device 100 may transform the plurality of 2D keypoints into a plurality of 3D surface keypoints according to the 3D point cloud and the plurality of 2D keypoints.
[0051] In step S750, the processor of the image prediction device 100 may obtain a partial point cloud corresponding to each 3D surface keypoint according to the plurality of 3D surface keypoints.
[0052] In step S760, the processor of the image prediction device 100 may input each partial point cloud into a prediction model to train the prediction model or to generate a prediction result.
[0053] According to an embodiment of the invention, in the image prediction method, the prediction model may be a 3D CNN model.
[0054] According to an embodiment of the invention, in the image prediction method, the processor of the image prediction device 100 may transform the depth image into a 3D point cloud according to the coordinate value of each pixel of the depth image and the camera parameter information of the image capturing device.
[0055] According to an embodiment of the invention, in the image prediction method, the processor of the image prediction device 100 may use a keypoint detection model to obtain the plurality of 2D keypoints in the 2D image according to the 2D image.
[0056] According to an embodiment of the invention, in the image prediction method, the processor of the image prediction device 100 may determine the coordinate values of the pixels corresponding to the 2D keypoints in the depth image to transform the plurality of 2D keypoints into the plurality of 3D surface keypoints.
[0057] According to an embodiment of the invention, in the image prediction method, the processor of the image prediction device 100 may take each 3D surface keypoint as a center to cut a point cloud with a default range from the 3D point cloud to obtain the partial point cloud corresponding to each 3D surface keypoint.
[0058] According to an embodiment of the invention, in the image prediction method, the processor of the image prediction device 100 may perform a coordinate transformation on the coordinates of each partial point cloud to transform each 3D surface keypoint into a center coordinate corresponding to each partial point cloud.
[0059] According to an embodiment of the invention, in the image prediction method, the processor of the image prediction device 100 may use the prediction model to generate a predicted keypoint coordinate corresponding to each center coordinate of each partial point cloud.
[0060] According to an embodiment of the invention, in the image prediction method, the processor of the image prediction device 100 may obtain a plurality of target 3D keypoints corresponding to the plurality of 3D surface keypoints according to each predicted keypoint coordinate.
[0061] According to the image prediction method provided in the invention, the memory usage can be reduced, and the time for training the prediction model also can be reduced.
[0062] Use of ordinal terms such as “first”, “second”, “third”, etc., in the disclosure and claims is for description. It does not by itself connote any order or relationship.
[0063] The steps of the method described in connection with the aspects disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module (e.g., including executable instructions and related data) and other data may reside in a data memory such as RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, a hard disk, a removable disk, a CD-ROM, or any other form of computer-readable storage medium known in the art. A sample storage medium may be coupled to a machine such as, for example, a computer / processor (which may be referred to herein, for convenience, as a “processor”) such that the processor can read information (e.g., code) from and write information to the storage medium. A sample storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in user equipment. Alternatively, the processor and the storage medium may reside as discrete components in user equipment. Moreover, in some aspects any suitable computer-program product may comprise a computer-readable medium comprising codes relating to one or more of the aspects of the disclosure. In some aspects a computer program product may comprise packaging materials.
[0064] The above paragraphs describe many aspects. Obviously, the teaching of the invention can be accomplished by many methods, and any specific configurations or functions in the disclosed embodiments only present a representative condition. Those who are skilled in this technology will understand that all of the disclosed aspects in the invention can be applied independently or be incorporated.
[0065] While the invention has been described by way of example and in terms of preferred embodiment, it should be understood that the invention is not limited thereto. Those who are skilled in this technology can still make various alterations and modifications without departing from the scope and spirit of this invention. Therefore, the scope of the present invention shall be defined and protected by the following claims and their equivalents.
Claims
1. An image prediction device, comprising:an image capturing device, configured to generate a 2-dimensional (2D) image and a depth image; anda processor, coupled to the image capturing device, wherein the processor is configured to:transform the depth image into a 3-dimensional (3D) point cloud;obtain a plurality of 2D keypoints of the 3D image according to the 3D point cloud;transform the plurality of 2D keypoints into a plurality of 3D surface keypoints according to the 3D point cloud and the plurality of 2D keypoints;obtain a partial point cloud corresponding to each 3D surface keypoint according to the plurality of 3D surface keypoints; andinput each partial point cloud into a prediction model to train the prediction model or to generate a prediction result.
2. The image prediction device as claimed in claim 1, wherein the prediction model may be a 3D Convolutional Neural Network (CNN) model.
3. The image prediction device as claimed in claim 1, wherein the processor determines coordinate values of pixels corresponding to the 2D keypoints in the depth image to transform the plurality of 2D keypoints into the plurality of 3D surface keypoints.
4. The image prediction device as claimed in claim 1, wherein the processor takes each 3D surface keypoint as a center to cut a point cloud with a default range from the 3D point cloud to obtain the partial point cloud corresponding to each 3D surface keypoint.
5. The image prediction device as claimed in claim 4, wherein the processor performs a coordinate transformation on the coordinates of each partial point cloud to transform each 3D surface keypoint into a center coordinate corresponding to each partial point cloud.
6. The image prediction device as claimed in claim 5, wherein the processor uses the prediction model to generate a predicted keypoint coordinate corresponding to each center coordinate of each partial point cloud.
7. An image prediction method, applied to an image prediction device, comprising:generating, by an image capturing device of the image prediction device, a 2-dimensional (2D) image and a depth image;transforming, by a processor of the image prediction device, the depth image into a 3-dimensional (3D) point cloud;obtaining, by the processor, a plurality of 2D keypoints of the 3D image according to the 3D point cloud;transforming, by the processor, the plurality of 2D keypoints into a plurality of 3D surface keypoints according to the 3D point cloud and the plurality of 2D keypoints;obtaining, by the processor, a partial point cloud corresponding to each 3D surface keypoint according to the plurality of 3D surface keypoints; andinputting, by the processor, each partial point cloud into a prediction model to train the prediction model or to generate a prediction result.
8. The image prediction method as claimed in claim 7, wherein the prediction model may be a 3D Convolutional Neural Network (CNN) model.
9. The image prediction method as claimed in claim 7, further comprising:determining, by the processor, coordinate values of pixels corresponding to the 2D keypoints in the depth image to transform the plurality of 2D keypoints into the plurality of 3D surface keypoints.
10. The image prediction method as claimed in claim 7, further comprising:taking, by the processor, each 3D surface keypoint as a center to cut a point cloud with a default range from the 3D point cloud to obtain the partial point cloud corresponding to each 3D surface keypoint.
11. The image prediction method as claimed in claim 10, further comprising:performing, by the processor, a coordinate transformation on the coordinates of each partial point cloud to transform each 3D surface keypoint into a center coordinate corresponding to each partial point cloud.
12. The image prediction method as claimed in claim 11, further comprising:using the prediction model to generate a predicted keypoint coordinate corresponding to each center coordinate of each partial point cloud.
