Image annotation system
By installing a camera on a polyhedral structure and automatically labeling hand images, it solves the time-consuming and labor-intensive problem of manual data labeling in gesture recognition systems, achieves rapid generation of diversified data, and improves the training effect of deep learning models.
Patent Information
- Application Number
- CN201910993436.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-18
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2039-10-18
AI Technical Summary
In the existing technology, the gesture recognition system requires a large amount of manually annotated hand image data, which is time-consuming and labor-intensive, and it is difficult to provide diverse training samples, which affects the training effect of the deep learning model.
An image annotation system is designed, which uses a polyhedral structure built of multiple support plates to install cameras. It captures hand images from different perspectives through at least two cameras, automatically annotates hand key points and gestures, and generates diverse annotation data.
It achieves the rapid generation of a large amount of accurate and diverse hand image data, reduces the burden of manual annotation, and improves the training efficiency and accuracy of deep learning models.
Smart Images

Figure CN112686084B
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the collection of hand image data and the automatic generation of annotation data, and more particularly, to an image annotation system. Background Art
[0002] Gesture input is one of the main technologies used for 3D human-computer interaction input in virtual reality (VR) and augmented reality (AR) technologies, and has broad application prospects. In a virtual environment, three-dimensional interactive tasks and technologies such as grabbing and releasing objects, flying, and roaming are achieved by hand. In the past, human-computer interaction was achieved by using human touch or operation behavior and computer response, generally using hardware devices such as VR controllers, space balls, 6D joysticks, and 6D mice. However, human-computer interaction can also be achieved by observing the user's actions in a non-contact manner (such as a camera, etc.) through a computer. This is a new 3D interactive technology that understands the user's intentions through gesture recognition.
[0003] Therefore, in the scenario of using gesture input, how to accurately identify and distinguish the gestures made by the user, especially how to distinguish the gestures with different precisions (which can be very fine), is one of the important factors that determine whether gesture input can be popularized.
[0004] Currently, one of the research directions of gesture recognition is to use deep learning technology under the artificial neural network architecture. Using a camera to collect images and using a deep learning model to detect and track key points of the hand and recognize gestures is a relatively efficient and accurate method. In order to improve the usability of the recognition system, a trained deep network model is required.
[0005] In the recognition process based on machine learning, especially deep learning, in order to improve the recognition readiness rate, it is necessary to provide a large number of sample images with correct training annotations to train the deep machine learning model. At the same time, the training samples should be as extensive as possible, including the differences in various factors such as lighting, the surrounding environment of the hand, age, race, skin color, etc., as well as the extensiveness of hand shape, gestures and movements. At present, in order to generate correctly annotated sample images, the method used is to use a large number of manual labor to manually annotate the key points of the hand in various images taken by the camera device.
[0006] However, in order to provide a large number of training sample images, the manual annotation method is time-consuming and laborious.
[0007] The contents of the background technology section are merely the technologies known to the public and do not necessarily represent the existing technologies in the field. Summary of the invention
[0008] One of the purposes of the technical solution described in the present disclosure is to provide a solution for collecting hand image data and automatically generating annotation data.
[0009] One aspect of the present invention provides an image annotation system, comprising: a support frame, which is a polyhedral structure constructed by multiple support plates; at least two cameras, which are installed on at least two of the multiple support plates of the support frame; and an annotation device, which is configured to receive two or more images to be processed taken by the at least two cameras, and annotate hands in the image data to be processed.
[0010] The advantage of the present disclosure is that it can provide a large number of accurately labeled training samples of different subjects in various environments for deep learning models. According to the present disclosure, hand image data that meets the above requirements can be quickly generated. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The drawings constituting a part of the present disclosure are used to provide a further understanding of the present disclosure. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings:
[0012] Figure 1 A schematic diagram of the structure of a camera support frame for an image annotation system according to an embodiment of the present invention is shown;
[0013] Figure 2 A schematic diagram of a support plate for building a camera support frame according to an embodiment of the present invention is schematically shown;
[0014] FIG3(a), FIG3(b) and FIG3(c) schematically illustrate schematic diagrams of an external environment in which an image annotation system according to an embodiment of the present invention is located;
[0015] FIG. 4( a ), FIG. 4( b ), FIG. 4( c ) and FIG. 4( d ) respectively schematically illustrate different types of annotated data according to an embodiment of the present invention;
[0016] Figure 5A A flowchart of a method for automatically generating annotation data according to an embodiment of the present invention is schematically shown;
[0017] Figure 5B A schematic diagram schematically shows a two-dimensional key point detection of a hand according to an embodiment of the present invention;
[0018] Figure 5C A flowchart of a method for automatically generating annotation data according to an embodiment of the present invention is schematically shown;
[0019] Fig. 6A A flowchart of a method for calculating the length of finger bones according to an embodiment of the present invention is schematically shown;
[0020] Figure 6B A flowchart of a method for calculating the length of finger bones according to an embodiment of the present invention is schematically shown;
[0021] Figure 6C A flowchart of a method for calculating the length of finger bones according to an embodiment of the present invention is schematically shown;
[0022] Fig. 7A A flowchart of a method for calculating a gesture bounding box according to an embodiment of the present invention is schematically shown;
[0023] Figure 7B A flowchart of a method for calculating a gesture bounding box according to an embodiment of the present invention is schematically shown;
[0024] Figure 8 The figure schematically shows the generation of the auxiliary geometry structure according to one embodiment of the present invention.
[0025] Fig. 9 A schematic diagram of a gesture bounding box generated according to an embodiment of the present invention is schematically shown.
[0026] Fig.10 A schematic diagram schematically shows a projection model of a camera according to an embodiment of the present invention;
[0027] Fig.11 The schematic diagram shows a principle diagram of calibrating camera intrinsic parameters according to one embodiment of the present invention;
[0028] Fig.12 A schematic diagram schematically shows a method for calculating the positions of three-dimensional key points of a hand according to one embodiment of the present invention;
[0029] Fig.13 A block diagram of an apparatus for automatically generating annotation data according to an embodiment of the present invention is illustrated;
[0030] Fig.14 A block diagram of a device for calculating the length of finger bones according to an embodiment of the present invention is schematically shown;
[0031] Fig.15 A block diagram schematically shows an apparatus for calculating a gesture bounding box according to an embodiment of the present invention;
[0032] Fig.16 A block diagram schematically shows a computer program product according to one embodiment of the present invention;
[0033] Fig.17 A block diagram of a computer system suitable for implementing an embodiment of the present invention is schematically shown according to an embodiment of the present invention. DETAILED DESCRIPTION
[0034] Hereinafter, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present disclosure. Therefore, the drawings and the following description are considered to be exemplary and non-restrictive in nature.
[0035] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the device, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or more executable instructions for realizing a predetermined logical function. It should be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0036] In the description of the present disclosure, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present disclosure and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present disclosure. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present disclosure, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0037] In the description of the present disclosure, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or can communicate with each other; it can be directly connected, or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present disclosure can be understood according to specific circumstances.
[0038] In the present disclosure, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply means that the first feature is lower in level than the second feature.
[0039] The disclosure below provides many different embodiments or examples to realize different structures of the present disclosure. In order to simplify the disclosure of the present disclosure, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present disclosure. In addition, the present disclosure can repeat reference numbers and / or reference letters in different examples, and this repetition is for the purpose of simplicity and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed. In addition, the present disclosure provides various specific examples of processes and materials, but those of ordinary skill in the art can be aware of the application of other processes and / or the use of other materials.
[0040] The specific embodiments of the present disclosure are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present disclosure, and are not used to limit the present disclosure.
[0041] The embodiments of the present disclosure are intended to provide a large number of accurately labeled training sample images of different subjects in various environments for deep learning models. According to the present disclosure, hand image data that meets the above requirements can be quickly generated.
[0042] In the embodiments of the present disclosure, the data to be processed (or the image data to be processed) refers to the video or continuous images taken of the same target object from different perspectives using a camera. In order to obtain images from different perspectives, the number of cameras used may be one or more. In the case of one camera, the target object is kept stationary and the position is changed by one camera. For example, the camera can be moved around the target object to shoot at multiple angles and complete the shooting of images from different perspectives. A collection of images taken by one or more cameras from different perspectives on the same target object in the same posture is called a frame of image. Taking multiple cameras as an example, the image of the target object taken by each camera at one moment is called a subframe or a subframe image. At one moment, a collection of images taken by multiple cameras from different angles on the target object constitutes a frame of image. In addition, those skilled in the art will understand that the image taken by the camera may be picture data or a picture intercepted from a video stream.
[0043] According to the embodiments of the present disclosure, annotation data can be automatically generated for the aforementioned data to be processed. In the present disclosure, annotation includes one or more combinations of the following: identifying the bounding box of the target object; identifying 2D key points on the image (e.g., joints of the wrist and fingers); gesture type (e.g., gesture type, such as five fingers open, fist, thumbs up, etc.); 3D key points (such as the three-dimensional coordinate position of the key points) and the gesture of the target object (the gesture of the palm, fingers, etc. (i.e., angle orientation, etc.)).
[0044] The target object may be, for example, a hand (or human hand) or a finger. The posture of the target object may be, for example, a hand gesture. In an embodiment of the present invention, key points may be associated with features of the target object, such as physiological joints (such as various joints of fingers) and / or other specified hand areas (such as the palm). The annotation data disclosed in the present invention may be of various types, which will be described below.
[0045] In the following, only a human hand is used as an example for description, but it should be understood that the various embodiments described can also be applied to other suitable target objects. At the same time, in the following, only the joints of the hand are used as an example for description, but it should be understood that the various embodiments described can also be applied to other suitable features of the target object.
[0046] refer to Figure 1 , which shows a physical structure schematic diagram of a camera support frame 100 according to an embodiment of the present disclosure. Figure 1 As shown, the camera support frame 100 is a three-dimensional structure formed by overlapping a plurality of support plates 110 , wherein the joints of adjacent support plates 110 form one or more holes 203 on the periphery of the camera support frame. Figure 1The support plate 110 shown in the figure has a hexagonal structure, wherein the hexagonal support plate 110 is only one implementation, and the support plate 110 may also have other polygonal structures.
[0047] Figure 2 A schematic diagram of a support plate 110′ for building a camera support frame according to another embodiment of the present disclosure is shown. The camera support frame is roughly a regular icosahedron built up by twenty support plates 110′. The support plate 110′ is roughly an equilateral triangle, and each corner has a notch 202 by removing the area near the vertex, so that when the camera support frame is built together, the positions of these notches will be spliced with adjacent notches to form holes 203 on the periphery of the camera support frame. A mounting hole group 204′ can be provided at the approximate central position of the support plate 110′ for mounting a camera thereat. A splicing hole group 205′ can be provided at the edge position of each corner of the support plate 110′ for convenient splicing with other support plates to build a camera support frame.
[0048] In this article, the camera support frame carrying the camera is also referred to as an image capture system.
[0049] In such Figure 1 and Figure 2 In the embodiment shown, the basic shape of the support plate of each face of the camera support frame constituting the regular icosahedron is a regular triangle with a side length of, for example, 60 cm, and holes may be left at the twelve vertices of the regular icosahedron, for example, as an arm entrance during data collection. The use of a regular icosahedron is simple in structure and can ensure the stability of the support structure. The camera can be installed on each plane and face the center.
[0050] Furthermore, the present disclosure also provides an image annotation system, which includes: a camera support frame 100, which is used to form a peripheral frame; preferably at least two cameras 120, which are installed on at least two of the support plates, wherein each camera can be wirelessly or wiredly operated by a control device to start and start shooting at the same time; and an annotation device, which is configured to receive two or more images to be processed taken by the at least two cameras, and annotate the hands in the image data to be processed. When collecting image data, the hands of the tester can extend into the camera support frame 100 through any hole 203 on the camera support frame. Afterwards, the camera 120 installed on the camera support frame can shoot various movements of the tester's hands from different perspectives to obtain one or more frames of images. In this way, the captured data contains hand image data from a first-person perspective, so that there is no possibility that the gestures of the tester in a third-person perspective are blocked by the tester's body. In addition, a regular icosahedron camera support frame is used, which makes the camera support frame approximately spherical. When cameras are deployed on all faces, comprehensive coverage of acquisition angles of the target object can be achieved.
[0051] According to an embodiment of the present invention, the annotation device is used to annotate the same frame of images taken by different cameras from different perspectives for the same hand gesture. For example, the annotation device can automatically synchronize, segment and annotate multi-perspective images from different cameras. The method of identifying the same frame of images and performing specific annotation by the annotation device will be discussed below.
[0052] In one embodiment, the annotation device can store the received image data locally or store it on a local or networked server. The annotation device can also be used as a control device for each camera to start shooting at the same time, so that the annotation device can identify each subframe synchronized on each camera. In addition, the image data shot by each camera can contain a time value, so by comparing the time values in the image data shot by each camera, the subframes synchronized on each camera can be identified, and can also be used to splice or merge into one frame of image data.
[0053] In one embodiment, the image annotation system may further include: a control center (not shown) and a storage device (not shown). The control center is connected to the camera by wired or wireless means and controls all cameras and environmental control devices (light source, television, projector, etc.) to control the environment outside the support frame. The storage device is connected to the control center, the annotation device and / or the camera to store the image (including video) data taken by the camera. The annotation device is connected to the camera and the control center, and can automatically synchronize, segment and annotate the image.
[0054] Furthermore, the image annotation system may also include a mobile platform for supporting the movement of the image capture system. For example, the mobile platform may be a cart that bears and carries the image capture system. In one embodiment, the mobile platform is a two-layer flatbed cart, with a camera support frame installed on the upper layer. The aforementioned annotation device and optional hardware devices such as a control center and storage device are placed on the lower layer. Thus, the image capture system is small and movable, and can be easily used both indoors and outdoors.
[0055] Regarding the camera support frame, it should be understood that a triangle is the most basic stable support shape, such as Figure 1 and Figure 2 The basic shape of the support plate and the three-dimensional structure of the camera support frame shown are only schematic, but the inventors have also envisioned other possible shapes, for example, the support plate can be selected from a set of materials composed of squares of different sizes, triangles of different sizes, pentagons of different sizes, etc., and the camera support frame can be constructed into other polyhedral structures, such as a cube (including six faces), a football-shaped 32-sided polygon (including twelve hexagons and twenty pentagons). In addition, depending on the situation, the edge area outside the vertex of each support plate can also be left with a gap, so that when the two support plates are spliced into the camera support frame, it is not necessary to form a continuous transition surface at the joint surface.
[0056] The shape, quantity and size of the mounting hole group 204 can be determined according to the installation requirements of the matching camera, and the same or different mounting hole groups can be set on each surface of the camera support frame. The mounting hole group 204 can facilitate the rapid disassembly and assembly of the camera. It should be understood that these cameras may or may not have the same type and configuration. Different types of cameras can be installed on part or all of the various surfaces of the camera support frame to capture images of the target object placed in the camera support frame from different perspectives. Different types of cameras can be used as needed, including web cameras, mobile phones, surveillance cameras, professional cameras, etc. The camera can be fixed to any panel of the camera support frame (for example, through a mounting hole group) using any feasible connection method.
[0057] In one embodiment, when the camera is mounted on a panel of the camera support frame, the camera can be parallel to the panel and approximately in the center of the panel. Figure 1 and Figure 2 In the embodiment shown, the basic shape of each panel is a regular triangle with a side length of 60 cm. When cameras are arranged on all faces of the icosahedron, all cameras can cover a space of about 25 cm in radius from the center of the camera support frame. The focal length of the camera lens can be set to the radius of the camera support frame to obtain the best image quality.
[0058] In one embodiment, the material of the support plate assembly can be a transparent organic glass plate. By using a transparent material, the image of the target object captured by the camera can include the surrounding background through the support plate located behind the target object, including different indoor and outdoor environments, different lighting conditions, etc. where the image capture system is located. Therefore, it is convenient to record suitable background information and control the lighting effect.
[0059] In order to make the captured images have different lighting effects, different types of light sources can be used according to actual needs, such as point light sources (incandescent lamps), surface light sources, etc. The light source can change color and position during shooting or recording to form different types of ambient lighting effects. The control of the light source can be completed by the aforementioned marking device and / or control center, or a light source can be set up outside the support plate assembly. Similarly, since the material of the support plate assembly can use transparent materials, different light sources can be easily adjusted or used outside the support plate assembly.
[0060] In one embodiment, various opaque materials or specific images can be attached to the inner side of the support plate assembly to simulate different backgrounds. For example, a support plate assembly directly opposite a camera lens can be covered with a black curtain, so that the image of the target object captured by the camera has a black background. In one embodiment, a background can also be set up outside the support plate assembly and adjusted or replaced at any time.
[0061] In addition, according to an embodiment of the present invention, continuous images can be taken or videos can be recorded in different environments. Figures 3(a), 3(b), and 3(c) show schematic diagrams of the external environment in which the image capture system is located. Figure 3(a) is in an office area scene, Figure 3(b) is in a storage area scene, and Figure 3(c) is in a conference room scene. In addition, by using background control devices such as televisions and projectors, the external background or environment in which the image capture system is located can be conveniently controlled.
[0062] It should be understood that the annotation device can be locally deployed together with the camera support frame, or the annotation device can also be networked and connected to the camera support frame or the camera through one or more networks, including but not limited to mobile phone networks, wireless local area networks (LANs), Bluetooth personal area networks, Ethernet LANs, token ring LANs, wide area networks, the Internet, etc. The connection between the annotation device and the camera can be a wired connection or a wireless connection.
[0063] The image acquisition device according to the embodiment of the present invention brings the following advantages:
[0064] (1) Small and portable, and can be easily assembled and disassembled;
[0065] (2) Can be used outdoors;
[0066] (3) The backgrounds of the generated images are natural and diverse, and variable lighting and background can be achieved;
[0067] (4) For hand data collection, first-person perspective data can be obtained, and there is no situation where the tester's body blocks the gesture in the collected image data;
[0068] (5) Different types of cameras can be mixed, for example, RGB cameras and depth cameras can be mixed, and cameras can be quickly replaced;
[0069] (6) The acquisition angle covers all aspects and is approximately spherical.
[0070] It should be understood that the above-built system for capturing data to be processed is exemplary and not restrictive, and the various processing methods of the present disclosure described below are not limited to processing only the data captured by the above-built system for capturing data to be processed, but can also be used to process data captured by other appropriate capture systems. In other words, the processing method for the data point to be processed described herein does not limit the source of the data to be processed.
[0071] According to an embodiment of the present disclosure, by shooting a multi-view hand image or video, for example, using the aforementioned image capture system, and automatically generating annotation data for the shot multi-view hand image or the hand image extracted from the multi-view hand video. The annotation data of the present disclosure may be of various types, and the types of annotation data according to an embodiment of the present disclosure are described below.
[0072] In one embodiment, the annotation data may be a bounding box of a hand. A bounding box is a tool for marking the range of a target object. Most of them use a rectangle to represent the range of a target object in a two-dimensional image. For example, the square shown in FIG4(a) is an automatically generated bounding box for the hand in the image in this embodiment.
[0073] In one embodiment, the annotation data may be two-dimensional key points of the hand on the two-dimensional image. As shown in FIG4(b), in this embodiment, the wrist and the joint points of the fingers are defined as key points in the gesture recognition task, and each hand corresponds to twenty-one key points. These twenty-one key points include four key points of each finger (fingertip and three joint points) and one key point at the wrist at the base of the palm. The data of these key points can be used to identify or reproduce any hand movements in subsequent applications.
[0074] In one embodiment, the annotation data may be three-dimensional key points of the hand, which are calculated based on multiple associated two-dimensional images. As shown in FIG4(c), in this embodiment, the joints of the wrist and fingers are defined as key points in the gesture recognition task, and each hand corresponds to twenty-one key points. Based on the corresponding twenty-one key points in multiple associated two-dimensional images, their three-dimensional positions in the world coordinate system and the postures (i.e., angle orientations) of the palm, fingers, and other parts are calculated. For example, multiple associated two-dimensional images may be photos (i.e., one frame of image) taken by multiple cameras at different viewing angles of the same posture of the hand (e.g., taken at the same time), or may be photos taken of the hand at the same angle at successive moments.
[0075] In one embodiment, the annotated data may be a recognition result of a predetermined gesture type. As shown in FIG4(d), in this embodiment, the gesture type of the image data may be automatically annotated, supporting 19 types of gestures such as five fingers open, fist, and thumbs up.
[0076] In one embodiment, the annotated data may include the length of the hand bones. As shown in FIG4(b), the length of the hand bones is the length between two adjacent key points on the hand. The length of the hand bones does not change when the hand moves. Therefore, the marking results can be statistically analyzed to obtain the length of the bones between the joints of the hand of the tester, with 4 segments for each finger, for a total of 20 segments.
[0077] The above describes examples of possible annotation data according to the embodiments of the present disclosure, including: hand bounding box, hand 2D key points, gesture type, hand 3D key points, gesture type (hand posture), and hand bone length. In subsequent applications, these annotation data types can be used alone or in combination. In a further example, the annotation data can also be the posture of a specific part of the hand, such as the posture of the palm and the posture of specific fingers.
[0078] It should be understood that, in this article, although the key points of the hand are explained by taking the joints of the hand as an example, those skilled in the art should understand that the embodiments of the present disclosure are not limited to the joints of the hand, and other positions of the hand that can be used to characterize gestures may also be regarded as key points of the hand, such as the posture of the palm, the posture of some fingers and the palm.
[0079] Figure 5A The flowchart of a method 500 for automatically generating annotation data according to an embodiment of the present disclosure is shown. For example, the method can be executed at the annotation device of the aforementioned image annotation system. The following is a detailed description with reference to the accompanying drawings.
[0080] In step S510, at least three images to be processed of a target object at different viewing angles are acquired. The target object is a hand, such as a hand of a tester.
[0081] In step S520, key points are detected on the at least three images to be processed respectively. The key points can be detected by using computer vision and image recognition principles. The key points can be, for example, joints of the wrist and fingers, or other predefined feature points that can characterize the hand posture. For a static image, a neural network model can be used to perform two-dimensional key point detection on each image. Figure 5B A schematic diagram of two-dimensional key point detection according to an embodiment of the present invention is shown. In this figure, the hand key points detected in the hand image in the left figure are shown in the right figure.
[0082] In step S530, the detected key points are screened using the association relationship between the at least three images to be processed. For example, the at least three images to be processed may be the same frame image under different viewing angles of the same target object, i.e., different sub-frame images. Alternatively, it is necessary to identify the at least three images to be processed and find at least two sub-frame images under different viewing angles of the same target object.
[0083] The following example illustrates the screening process. For example, for a key point on the hand, suppose that 20 cameras have captured the key point, that is, the key point and the coordinates of the key point are identified in 20 sub-frame images. However, in the actual recognition process, the coordinates of the key point in each sub-frame image may not be completely consistent. The confidence or reliability of the coordinates of the key point in some sub-frame images is higher, and the confidence or reliability of the coordinates of the key point in some sub-frame images is lower. The screening process is to select those sub-frames with higher confidence or reliability.
[0084] As mentioned above, since the detection of each key point on the two-dimensional image for each sub-frame image has errors and mistakes, it is necessary to screen out suitable two-dimensional key points for three-dimensional reconstruction of the position of the target object in the three-dimensional space. That is, for each three-dimensional key point in the space, a part of the projected key points on the corresponding multiple two-dimensional images is selected to fit the three-dimensional key point. For example, the coupling between random data can be used for screening, and specifically the RANSAC (Random Sample Consensus) algorithm can be used to screen key points. RANSAC is a random algorithm that randomly finds a largest set, and the two-dimensional key points in this set have high reliability.
[0085] In step S540, for the selected key points on the same frame image, combined with the given finger bone length, the three-dimensional spatial representation of the hand is reconstructed. The finger bone length, such as the length data between the various joints of the finger, can come from user input, or from user data, or from recognition and calculation based on image data. In the present disclosure, in the process of reconstructing the three-dimensional spatial position of the hand, not only based on the data of the selected key points, but also combined with the user's finger bone length data, the accuracy of the three-dimensional reconstruction of the hand can be significantly improved.
[0086] Given the length of the finger bones, a parametric model of the hand can be established. When the wrist position, spatial rotation, and the angle of each finger joint are known, the position of the three-dimensional joint point can be uniquely determined. Then the reconstruction problem of the three-dimensional key points is transformed into the problem of solving the hand parameters. Through the selected two-dimensional key points, all the parameters of the hand model can be calculated by optimization method. After obtaining the parameters, the spatial position of the three-dimensional key points is obtained.
[0087] In step S550, key points on the three-dimensional representation of the hand are projected onto the at least two two-dimensional images to be processed.
[0088] In step S560, the projected key points on at least three images to be processed are used to generate annotation data of the hand on the images to be processed.
[0089] Figure 5C FIG. 5 is a schematic diagram of a method 500′ for automatically generating annotation data according to another embodiment of the present disclosure. Figure 5A Before step S510 in the method shown, step S502 is also included to calibrate the camera set to calculate the camera intrinsic parameters and camera extrinsic parameters. The aforementioned target object, ie at least three images to be processed of the hand at different viewing angles, are taken by the camera set.
[0090] Steps S510, S520, S530 and S550 in the method 500' are the same as the corresponding steps S510, S520, S530 and S550 in the aforementioned method 500, and are not described again. In the exemplary method 500', step S540' corresponds to step S540 in the aforementioned method 500, but the three-dimensional representation of the hand is reconstructed based on the selected key points on the same frame image, combined with the given finger bone lengths and the camera intrinsic parameters and camera extrinsic parameters.
[0091] In an embodiment of the present disclosure, the image data to be processed is a video stream or an image sequence of image data from different perspectives, and various methods can be used to identify the same frame of image from the video stream or image sequence, that is, images of the same action (i.e., gesture, for example, at the same moment) of the target object (user's hand) at different perspectives.
[0092] Through camera synchronization, images captured by multiple cameras at the same time can be obtained. Through synchronization and video splitting between multiple cameras, the same frame of images in images with different perspectives can be obtained. Some cameras have a hardware synchronization function, also called external triggering, that is, when an external signal is received, the shutter is activated to record the image. When splitting the video, the image can be directly extracted according to the recording frame rate. For cameras without hardware synchronization function, such as mobile phones, network cameras, etc., a soft synchronization method can be used. In this embodiment, an external timed flash is used as a synchronization signal. A light source that can be observed by all cameras can be arranged in the image capture system (or acquisition system), and the light source can be controlled by a circuit to flash at a fixed time or flash with the change of gestures. After the video recording is completed, all images captured in the video with flashes are automatically detected, and the videos recorded by different cameras can be aligned and synchronized based on these detected flash frames. The camera can also use hardware synchronization. In addition, additionally and optionally, when there are two cameras in the system, all cameras that support hardware synchronization can use hardware synchronization and perform software synchronization with other cameras as a time series.
[0093] In one embodiment, the control center in the aforementioned image annotation system can control each camera to start at the same time, and each camera uses the same configuration, so that the video streams or image sequences of image data from different perspectives are synchronized at the beginning, and the same frame of image can be easily identified therefrom.
[0094] In one embodiment, multiple cameras are arranged around a target object, such as a hand, to capture videos and continuous images of the target object. The activation of multiple cameras can be completed simultaneously through an external device, so that the videos or continuous images captured by the cameras are synchronized in time, that is, each frame of video image at the same time in each video shows an image of the target object (hand) at the same time in a real test environment.
[0095] In one embodiment, multiple cameras are arranged around a target object, such as a hand, to capture videos and continuous images of the target object. After the multiple cameras are started simultaneously or non-simultaneously, for example, a random flash can be introduced into the shooting environment, so that each camera can complete camera synchronization based on the recognition of the flash in the video captured by each camera, and the moment when the flash appears can be marked as the relative zero time in each video. In one embodiment, the subsequent video processing device, system or software can also recognize the flash in the video captured by each camera to complete camera synchronization.
[0096] In one embodiment, a shooting environment constructed by multiple cameras can be used to shoot a video or image of a target object, such as a hand, in the shooting environment. For example, when it is detected that the test person extends his hand to the shooting environment, the person is prompted to make different gestures and continuously change the direction and position of the wrist. Each camera can start and shoot in response to the flash after the gesture change. These flashes can be used as a basis for identifying the same frame of image under different viewing angles. After the shooting data is collected, the video is first split into pictures at certain time intervals according to the synchronization method of the camera. A group of pictures collected by different cameras at the same time is referred to as a "frame" below. That is, each frame contains images taken by multiple cameras at different angles at the same time.
[0097] The inventors have envisioned that the finger bone length can be calculated using a variety of existing finger bone length calculation methods, including direct calculation using all data, X-ray measurement, and manual calibration.
[0098] Fig. 6A A schematic diagram of a method 600 for calculating the length of a finger bone according to an embodiment of the present disclosure is shown. The method 600 can be executed at the annotation device of the aforementioned image annotation system. The following is a detailed description with reference to the accompanying drawings.
[0099] In step S610, at least two images in a frame of an image of a target object at different viewing angles are acquired, and the target object may be a hand of a tester.
[0100] In step S620, the at least two images under different viewing angles are used to perform hand gesture recognition on the test person.
[0101] In step S630, when the recognized gesture is a predefined simple gesture, key points are detected on each hand image. According to an embodiment of the present invention, the predefined simple gesture refers to a gesture in which the fingers least block each other, for example, the gesture types "five" and "grap" shown in FIG4(d). "Five" and "grap" are the two types of gestures with the highest gesture recognition accuracy, and a more accurate initial result can be obtained.
[0102] In step S640, the detected key points are used to reconstruct a three-dimensional representation of the target object, ie, the hand. For simple gestures, assuming that each key point on the same frame image is independent, the limitation of the finger length is not considered.
[0103] In step S650, the length of the finger bones of the test person is calculated based on the key points on the reconstructed three-dimensional hand representation.
[0104] Figure 6BFIG. 6 is a schematic diagram of a method 600′ for calculating the length of a finger bone according to another embodiment of the present disclosure. Fig. 6A The difference of the method 600 shown is that in the method 600′, at least three images in a frame of the target object at different viewing angles are obtained and utilized, and the method further includes step S635. In step S635: the detected key points are screened using the association relationship between the at least two images. Thus, the error of the initial detection result can be reduced. The association relationship is based on the fact that the at least two images are different subframe images of the same frame image. Afterwards, step S640′ in method 600′ corresponding to step S640 in method 600 includes: using the screened key points to reconstruct a three-dimensional representation of the target object, i.e., the hand. For simple gestures, assuming that each key point on the same frame image is independent, the limitation of finger length does not need to be considered. Then, through the screened two-dimensional key points, the three-dimensional key points with the smallest reprojection error can be calculated through an optimization algorithm. The optimization algorithm can be, for example, the Levenberg-Marquard algorithm.
[0105] Figure 6C FIG. 6 is a schematic diagram showing a method 600″ for calculating the length of a finger bone according to another embodiment of the present disclosure. Figure 6B The difference between the method 600′ shown is that the method 600″ includes step S602, calibrating the camera set and calculating the camera intrinsic parameters and camera extrinsic parameters. The aforementioned target object, i.e., at least three images to be processed of the hand at different viewing angles are taken by the camera set. Step S640″ in the method 600″ corresponds to step S640′ of the method 600′, but in S640″, unlike step S640′, the three-dimensional key points with the smallest reprojection error can be calculated through the screened two-dimensional key points and combined with the camera's intrinsic parameters and extrinsic parameters through the optimization algorithm.
[0106] In one embodiment, after obtaining the three-dimensional position of the key points of a simple gesture, the length of the finger joint can be calculated using a frame of image. Based on the definition of the key points in the hand skeleton, in the same frame of image, the corresponding bone length can be calculated using the positions of two adjacent key points. Returning to reference Figure 4(b), a schematic diagram of a hand key point and finger bone length identification according to an embodiment of the present invention is shown. As shown in the figure, for example, the length of the first bone segment of the index finger (corresponding to L in Figure 4(b)) can be calculated through the key point at the base of the index finger (node No. 0 of the index finger in Figure 4(b)) and the first key point of the index finger (node No. 1 of the index finger in Figure 4(b)). 1 I skeleton shown).
[0107] In one embodiment, the above steps can be repeated based on multiple frames of images, and the average value of a certain finger bone length calculated for all frames can be used as the bone length calibration result. A set of calculated values of finger length can be obtained through each frame of image, and multiple frames of image can obtain multiple results. Finally, the final output result of finger length is obtained by calculating the average value, calculating the median, and other statistical methods.
[0108] According to an embodiment of the present invention, when performing gesture determination and recognition, the following operations may be included. When collecting data, the tester makes different gestures as required and records the duration of each gesture. Therefore, the gesture type can be determined according to time. For data that does not record the correspondence between gestures and time. For photos taken by different cameras at the same time, the gesture type is detected by a neural network model, and the gesture with the largest number is selected as the gesture of this frame. All pictures are divided into simple and difficult categories according to gestures. Simple gestures have less finger occlusion and simple structure, and the 3D position of key nodes can be directly calculated. And the bone length can be calculated through the 3D position. Currently, simple gestures include gesture types of "five" and "grab". Other gestures are considered difficult gestures.
[0109] In traditional technology, there are several methods for calculating the length of finger bones. The first method is to use a method of direct calculation using multiple sub-frame images, first use each image to calculate the finger length, and then count the average of the finger length of each image. In this method, incorrect recognition results will seriously affect the accuracy of the final finger length. Even if the image data used are simple gestures such as five fingers open, manual screening or additional recording is required to obtain this part of the data, which increases labor costs and limits the scope of use. Second, X-ray measurement can be used to obtain accurate finger length results, but it is not suitable for large-scale promotion, with high measurement costs and low practicality. Third, a manual calibration method can be used, which can manually mark the positions of 2D key points in the image, and then use camera parameters or calibration results of at least two images to directly calculate the finger length. This method has high labor costs, limited adaptability to scenarios, and the calculation results are affected by manual annotation errors.
[0110] According to the method for calculating the finger skeleton length according to the embodiment of the present invention, the skeleton length is measured only by simple gestures with little gesture occlusion, and the skeleton length of the three-dimensional representation of the hand is directly calculated, thereby making up for various deficiencies in the existing methods.
[0111] Fig. 7A FIG. 7 is a schematic diagram of a method 700 for calculating a gesture bounding box according to an embodiment of the present disclosure. According to this embodiment, a gesture bounding box may be calculated based on the 3D positions of key points.
[0112] In step S710, positions of a plurality of three-dimensional key points in a three-dimensional representation of a hand are obtained, where the three-dimensional representation of the hand is reconstructed based on at least two two-dimensional images of the hand;
[0113] In step S720, according to the category of each key point, an auxiliary geometric structure associated with each key point is generated. For example, with the four key point positions corresponding to each finger as the sphere center, the radius is adjusted according to the thickness of the finger joints to generate four spheres of different sizes; the wrist key point generates a corresponding ellipsoid. These auxiliary geometric structures are used to simulate the skin surface of the hand. Because the bones between two adjacent key points of the hand are rigid structures, the hand can be approximated by a ball-and-stick model, in which the hand joints are approximated by auxiliary structures, thereby simplifying the calculation.
[0114] In step S730, for each auxiliary geometric structure, a set of auxiliary points is generated on the surface of each auxiliary geometric structure. These auxiliary points can be randomly generated. The number of auxiliary points can be set based on the calculation accuracy. Experiments show that when the number of auxiliary points corresponding to a hand reaches 2000, an accurate bounding box result can be obtained.
[0115] In step S740, the auxiliary points of the auxiliary geometric structure surface are projected onto the two-dimensional image to be processed.
[0116] In step S750, the top, bottom, leftmost, and rightmost edge nodes in the projection of the auxiliary point are obtained on at least two two-dimensional images, and a gesture bounding box is generated based on these four nodes. For example, on the two-dimensional image, the projection results are traversed to obtain four boundary points of the auxiliary point on the top, bottom, left, and right of the hand, and then a bounding box result is generated.
[0117] In one embodiment, the method may be performed immediately after the aforementioned step S540 or S540'. In one embodiment, in step S740, the key points on the three-dimensional representation of the object to be processed and the auxiliary points on the auxiliary geometric structure surface may be projected to the two-dimensional image to be processed.
[0118] Figure 7B FIG. 7 is a schematic diagram of a method 700′ for calculating a gesture bounding box according to another embodiment of the present disclosure. According to this embodiment, a gesture bounding box can be calculated based on the 3D position of key points and camera parameters. Fig. 7AThe difference of the method 700 shown is that the method 700′ includes step S702, calibrating the camera set and calculating the camera intrinsic parameters and camera extrinsic parameters. The aforementioned at least three images to be processed of the target object, i.e., the hand, at different viewing angles are taken by the camera set. Step S740′ in the method 700′ corresponds to step S740 of the method 700, but in S740′, unlike step S740, the auxiliary points of the auxiliary geometric structure surface are projected onto the two-dimensional image to be processed in combination with the camera's intrinsic parameters and extrinsic parameters.
[0119] refer to Figure 8 , which shows a schematic diagram of auxiliary geometric structure generation according to an embodiment of the present invention, wherein each 3D key point is a sphere, the radius of the sphere is defined based on the structure of the hand at different key points, 21 spheres are generated, and then a set of auxiliary points randomly distributed on the surface of the sphere are generated, and the 3D coordinates of each auxiliary point are calculated based on the 3D position of the key point. Fig. 9 , shows a schematic diagram of generating a bounding box based on the outermost four edge nodes projected on the two-dimensional subframe image. Figure 8 and 9 As shown, after obtaining the position of the 3D key point, an auxiliary geometric structure as shown by the ellipse 122 in the auxiliary geometric structure generation schematic diagram is generated, and then 3D auxiliary points are randomly generated on the surface of the auxiliary geometric structure. The 2D projection positions of these 3D auxiliary points on each 2D image can be calculated based on the camera parameters. Fig. 9 The projection points 123 and 124 of these 3D auxiliary points on a two-dimensional image are shown in FIG. 1 , such as the red nodes and the blue nodes in the figure. By traversing these nodes, it can be found that the blue node 124 is a boundary point in the four directions of up, down, left, and right. Based on the four points, a blue boundary box 125 shown in the figure, i.e., a gesture boundary box, can be generated.
[0120] According to the embodiments of the present invention, one or more of the following advantages are achieved:
[0121] (1) A large amount of data can be generated quickly. For example, under the current settings, using 20 cameras with a recording speed of 30FPS, 20*30=600 images can be generated per second, and 360,000 images can be generated in ten minutes.
[0122] (2) Data can be automatically labeled.
[0123] (3) It can annotate data in complex environments and under occlusion.
[0124] (4) It can generate hand images and annotation data from a first-person perspective.
[0125] Camera calibration technology is widely used in computer vision fields such as 3D modeling. In the image measurement process and machine vision applications, in order to determine the correlation or mutual relationship between the 3D geometric position of a point on the surface of a spatial object and its corresponding point in the image, it is necessary to establish a geometric model of camera imaging. These geometric model parameters are camera parameters. Under most conditions, these parameters need to be obtained through experiments and calculations. The process of solving the parameters (camera intrinsic parameters, camera extrinsic parameters) is called camera calibration. At present, the calibration methods mentioned in the literature include direct linear calibration method (DLT), radial consistency constraint method (RAC), plane target calibration method, etc., among which the most commonly used is Zhang Zhengyou's plane target calibration method. Regarding camera calibration and the calculation of camera intrinsic parameters and camera extrinsic parameters, many documents have been introduced, such as reference to Chinese patent documents CN109003309A, CN107993266A, CN109615661A, CN106600648A, etc.
[0126] Assuming that the aforementioned image annotation system according to the embodiment of the present invention uses C cameras to photograph the target object at different viewing angles, the various parameters of these cameras are defined and calculated using the following symbols.
[0127] A. Camera intrinsic parameters are parameters related to the camera's own characteristics, such as the camera's focal length, pixel size, etc. For example, there are C cameras, and the camera intrinsic parameter K of the i-th camera is i It can be represented by the following internal parameter matrix:
[0128]
[0129] where α x is the focal length of the camera in pixels along the X axis, α y is the focal length of the camera in pixels along the y-axis, α x and c y is the pixel coordinate in the image space corresponding to the projection center.
[0130] B. The camera's external parameters are the position and posture of the camera in space. The camera's external parameters T i It can be represented by the following 4×4 matrix:
[0131]
[0132] Among them, R i is a 3×3 matrix in the special orthogonal group SO(3), which is the rotation matrix of the ith camera and is used to describe the rotation posture of the ith camera. i ∈R 3 is a three-dimensional vector representing the spatial position of the i-th camera. iThe camera's position and direction in space are fully described, namely the camera's external parameters. For ease of description and calculation, T i We can use the Lie algebra ξ equivalently i It is expressed by the following formula: i =[ρ T φ T ] T =[ρ1 ρ2 ρ3 φ1 φ2 φ3] T , where ρ = [ρ1ρ2 ρ3] T ∈R 3 , φ=[φ1 φ2 φ3] T ∈SO(3), according to the exponential map on the special Euclidean group SE(3), T i and i The relationship is calculated using the following formula:
[0133]
[0134] where exp(φ^)=exp(θa^=cosθI 3×3 +(1-cosθ)aa T +sinθa^,
[0135]
[0136] where θ=||φ||,
[0137] Using this relationship, T i and i Can be converted into each other.
[0138] C. Based on the above, the external parameters of all C cameras can be combined into the following formula:
[0139] Ξ=[ξ1,ξ2,...,ξ i , .., ξ C ], where ξ i Corresponding to T i , Ξ represents the external parameters of all cameras.
[0140] D. All D three-dimensional points in space can be summed up as follows:
[0141] P = [p1, p2, ..., p j , ..., p D ], where p j =[x j y j z j ] T ∈R 3 is the jth 3D point.
[0142] Among them, p j =[x j y j z j ] T The corresponding homogeneous coordinates are expressed as follows:
[0143]
[0144] E. Then, the real projection point generated by the j-th point in space on the i-th camera is expressed as follows:
[0145] r ij =[u ij v ij ] T , where u ij is the coordinate of the real two-dimensional projection point in the X direction of the j-th point in space on the i-th camera, v ij is the coordinate in the y direction of the real two-dimensional projection point of the j-th point in space on the i-th camera.
[0146] G. The projection point calculated by the i-th camera parameter of the j-th point in space is expressed as follows:
[0147] q ij =[w ij s ij ] T , where w ij is the coordinate of the projection point in the X direction calculated by the i-th camera parameter of the j-th point in space, v ij is the coordinate in the y direction of the real two-dimensional projection point of the j-th point in space on the i-th camera.
[0148] In order to facilitate calculation, homogeneous coordinates are used, which is expressed as the following formula:
[0149]
[0150] H. Therefore, the hand parameterized model can be expressed by the following formula:
[0151] H(L, T, D, R, θ) → 21 key point locations
[0152] The camera's intrinsic calibration is to solve the camera's intrinsic parameter matrix, that is, to solve a x , a y , c x and c y . Fig.10 The projection model of the camera is schematically shown.
[0153] In one embodiment, a checkerboard method is used to calibrate the camera intrinsic parameters. Fig.11 The schematic diagram shows the principle diagram of calibrating the camera internal parameters using the chessboard method. Fig.11 As shown, assuming there are N corner points and K chessboard images (at different positions), K chessboards can provide 2NK constraints, that is, 2NK equations. Calculating the camera intrinsic parameters requires solving 4 intrinsic parameters and 6K extrinsic parameters (the positions and angles of the K chessboards). The equation can be solved by designing the size of N. In practice, print out the chessboard, measure the length of the grid, and take 10-20 pictures from different angles with the camera. The calibration algorithm can be used to obtain the intrinsic parameter a x , a y , c x and c y .
[0154] It should be noted that the above only provides an exemplary method for determining camera intrinsic parameters, and the camera intrinsic parameters may also be information provided by the camera manufacturer.
[0155] Camera extrinsic calibration is to determine the camera extrinsic parameters Ξ = [ξ1, ξ2, ..., ξ i , .., ξ C ] process. Knowing the camera internal parameters, for a set of projection points r obtained by shooting the same target object with multiple cameras ij According to the camera projection model, we can get the jth point p in space j Through the i-th camera parameter K i and i The calculated projection point can be expressed by the following formula:
[0156]
[0157]
[0158] Then, the error caused by each projection can be expressed by the following formula:
[0159] e ij =e ij (ξ i ·p j )=q ij -r ij
[0160] Then, the error generated by all projections is recorded as f, where f is a function of the camera extrinsic parameter Ξ and the 3D point position P. Then the optimization problem of minimizing the error can be expressed by the following formula:
[0161]
[0162] In order to efficiently optimize the error function, it is necessary to solve the corresponding Jacobian matrix, and the results are as follows:
[0163]
[0164]
[0165] Next, by using nonlinear optimization methods, such as the Levenberg-Marquard method, Ξ, P can be optimized. However, the solution of Ξ, P contains a free variable, that is, the camera position and P are scaled proportionally, which does not affect the value of the objective function. Therefore, it is necessary to measure the distance between any two cameras or the distance between any two 3D points, and the solution can be adapted to the actual system.
[0166] In one embodiment, all cameras are used to simultaneously shoot a small ball or a black and white label, and a set of projection points r is obtained. ij , combined with the intrinsic parameters, the extrinsic parameters of the camera can be solved. If a small ball is used, the distance between any two cameras needs to be measured. If a positioning tag is used, since the size of the tag is known, which is equivalent to the distance of the 3D point, the scale parameter can be eliminated and a result consistent with the actual size can be obtained.
[0167] Camera calibration will calculate the camera's intrinsic and extrinsic parameters, which are the basis for mapping points in three-dimensional space to images. In addition, when calculating the three-dimensional space position, the relationship equation between 2D key points and 3D key points can be established through the camera's intrinsic and extrinsic parameters, and then brought into the optimization model.
[0168] The camera parameters K are known. i and T i , the jth point p in a given space j =[x j y j z j ] T , its homogeneous coordinates can be expressed as It can be calculated by the following projection relationship:
[0169]
[0170] Then we get the projection coordinates on the image,
[0171]
[0172] The camera parameters K are known. i and T i , for a three-dimensional point p in space j (unknown) and its projection point r projected onto the image by the camera ij(Known), the three-dimensional point p can be obtained by optimization method j Given p j An initial value of , using the calculation method of the previous section on solving the projection of a three-dimensional space point on the image, the projection coordinate q can be obtained ij .
[0173] The error caused by each projection can be expressed by the following formula:
[0174] e i =e i (ξ i ·p j )=q ij -r ij
[0175] Then, the error generated by all projections is recorded as f, where f is a function of the 3D point position P. Then the optimization problem of minimizing the error can be expressed by the following formula:
[0176]
[0177] In order to efficiently optimize the error function, it is necessary to solve the corresponding Jacobian matrix, and the results are as follows:
[0178]
[0179] Using nonlinear optimization methods, we can find p j Estimated value.
[0180] According to an embodiment of the present invention, by introducing the length of the finger bones, the estimation of the key points of the hand is converted into the estimation of the hand model parameters. The hand parameterized model can be represented by a five-tuple, namely H (L, T, D, R, θ), and the position of the key points of the hand in the three-dimensional space can be calculated through the hand parameterized model.
[0181] A. Hand parameterized model
[0182] This system calculates the position of the key points of the hand in three-dimensional space through the parametric model of the hand H (L, T, D, R, θ). Among them:
[0183] L is the set of hand bone lengths, including 4 lengths of each finger joint, a total of 20 values, which can be expressed by the following formula:
[0184]
[0185] Where T is the 3D position of the wrist node, T∈R 3 , D is the direction vector of each finger root node relative to the wrist node, a total of 5 unit vectors, D = {d T , dI , d M , d R , d P}, R is the three-dimensional angle posture information of each finger, a total of 5 rotation matrices, R = {R T , R I , R M , R R , R P}, θ is the parameter expressing the finger bending angle (including 10 parameters, 2 parameters for each finger),
[0186] in, The letters T, I, M, R and P represent the thumb, index finger, middle finger, ring finger and little finger respectively.
[0187] Given the hand parameters, the three-dimensional positions of 21 key points under the current parameters can be obtained.
[0188] In one embodiment, Fig.12 As shown, taking the index finger (denoted by the subscript |) as an example, the wrist position T is known, and the direction vector of the index finger root node corresponding to the wrist node is The three-dimensional positions of the four key points that define the index finger are The length of the bone is The relevant angle parameters are
[0189] The parameters of the three-dimensional positions of the four key points on the index finger are expressed as follows:
[0190]
[0191]
[0192]
[0193]
[0194] It should be understood that the calculation method for each of the remaining fingers is the same as that for the index finger and will not be repeated here.
[0195] B. Optimization method of hand model parameters
[0196] The camera parameters K are known. i and T i , hand length information L, filtered observation value R′, according to the hand parameterized model H(L, T, D, R, θ), T, D, R, θ can be optimized to obtain the three-dimensional position of the key point.
[0197] Given a set of initial values of T, D, R, and θ, the three-dimensional positions of 21 key points can be obtained using H(L, T, D, R, θ), which can be expressed by the following formula:
[0198]
[0199] For a given p j ∈K, using the calculation method of the above section on solving the projection of a three-dimensional space point on the image, we can get the projection coordinates q ij .
[0200] The error caused by each projection can be expressed by the following formula:
[0201] e ij =e ij (ξ i ·p j )=q ij -r ij
[0202] Then, the optimization problem can be expressed as:
[0203]
[0204] The optimization variables are T, D, R, θ, and f(T, D, R, θ) is a continuous function of T, D, R, θ, so it can be solved using a nonlinear optimization problem. Substituting the solved parameter values into the hand model H, we can get the final 21 key point three-dimensional positions K. Using the calculation method in the above section on solving the projection of three-dimensional space points on the image, we can get the projection points on the image based on K.
[0205] For multiple sub-images under different viewing angles of a frame of image, a subset can be selected using the RANSAC algorithm to exclude the influence of data with large errors. j Under observations from different cameras, the method for selecting key points using the RANSAC algorithm may include iteratively executing the following sequence of steps A1, A2 and A3 for a preset number of iterations n:
[0206] In step A1, randomly select S cameras from all cameras as set S, and the other cameras as set U, and select the projection point corresponding to S from the projection point set R, R′ j =(r ij :r ij ∈R j ·i∈S}, using the method introduced in the above section on calculating the three-dimensional spatial position using multiple projection observations, using R′ j The calculated p j An estimated value p′ j . Initialize the result set F to be an empty set.
[0207] In step A2, for each camera u in the other camera set U, the estimated value p′ is converted into j Projected onto the image captured by camera u to obtain projection q uj ; Note r uj The position of the jth key point on the image captured by camera u. If q uj and r uj If the distance is less than the preset error threshold σ, the camera u is classified into the camera set S.
[0208] In step A3, if the number of elements in the camera set S is greater than the number of elements in the set F, the value of S is assigned to F.
[0209] By completing the above iterative steps, the observations R = {R j :0<j≤D}, where R j = {r ij :0<i≤C}, then the output result can be obtained, the subset of R′={RANSAC_SELECT(R j ): 0<j≤D}, which is used as the input for optimizing the hand model parameters.
[0210] In the implementation, the hand has 21 key points, so D = 21, and when the number of cameras C = 20, the set R contains 420 two-dimensional observations. For the 20 observations generated by each key point, a portion (≥n) of them can be screened as reliable observations using the RANSAC algorithm framework, such as an average of 10, and all the screened observations, about 210 observations, are used as input for optimizing the hand model parameters.
[0211] Fig.13 The block diagram of an apparatus 1300 for automatically generating annotation data according to one embodiment of the present invention is shown. The apparatus 1300 includes:
[0212] An acquisition device 1310 is used to acquire at least three images to be processed of the hand at different viewing angles;
[0213] A detection device 1320, configured to detect key points on the at least three images to be processed respectively;
[0214] The screening device 1330 is used to screen the detected key points by using the association relationship between the at least three images to be processed, wherein the association relationship is that the at least three images to be processed are from the same frame image under different perspectives of the hand;
[0215] The reconstruction device 1340 reconstructs the three-dimensional spatial representation of the hand based on the selected key points on the same frame image and the given finger bone lengths;
[0216] A projection device 1350, configured to project key points on the three-dimensional representation of the hand onto the at least three images to be processed; and
[0217] The labeling device 1360 is used to generate labeling data of the hand on the image to be processed by using the projected key points on the at least three images to be processed.
[0218] It should be understood that each module described in the apparatus 1300 is similar to the reference Figure 5A Method 500 described and referenced Figure 5C Each step in the described method 500' corresponds to each other. Therefore, the operations and features described above for methods 500 and 500' are also applicable to the device 1300 and the devices or modules contained therein. For the sake of brevity, similar contents are not repeated here.
[0219] Fig.14 The block diagram of the apparatus 1400 for calculating the length of finger bones according to one embodiment of the present invention is schematically shown.
[0220] The apparatus 1400 comprises:
[0221] The acquisition device 1410 is used to acquire at least two images in a frame of an image of a hand at different viewing angles;
[0222] Recognition device 1420, used for performing hand gesture recognition using the at least two images under different viewing angles;
[0223] Detection means 1430, for performing key point detection on each hand image in at least two images respectively, when the recognized gesture is a predefined simple gesture;
[0224] Reconstruction means 1440 for reconstructing a three-dimensional representation of the hand using the detected key points; and
[0225] The computing device 1450 is used to calculate the length of the finger bones of the hand based on the three-dimensional key points on the reconstructed three-dimensional representation of the hand.
[0226] Further, the at least two images are at least three images, and the apparatus 1400 may further include:
[0227] The screening device 1435 is used to screen the detected key points by using the association relationship between the at least two images in the same frame of images.
[0228] It should be understood that each module described in the apparatus 1400 is similar to the reference Fig. 6A Method 600 described, reference Figure 6B The method 600' described and referenced Figure 6C Each step in the described method 600″ corresponds. Therefore, the operations and features described above for methods 600, 600′ and 600″ are also applicable to device 1400 and the devices or modules contained therein. For the sake of brevity, similar content will not be repeated here.
[0229] Fig.15 The block diagram of an apparatus 1500 for calculating a gesture bounding box according to one embodiment of the present invention is schematically shown. The apparatus 1500 comprises:
[0230] An acquisition device 1510 is used to acquire positions of a plurality of three-dimensional key points in a three-dimensional representation of a hand, wherein the three-dimensional representation of the hand is reconstructed based on at least two two-dimensional images of the hand;
[0231] The auxiliary geometric structure generating means 1520 is used to generate an auxiliary geometric structure associated with each key point according to the category of each key point in the plurality of three-dimensional key points;
[0232] Auxiliary point generating means 1530, for generating a set of auxiliary points on the surface of each auxiliary geometric structure for each auxiliary geometric structure;
[0233] Projection device 1540, used for projecting the auxiliary point onto the at least two two-dimensional images;
[0234] The bounding box generating means 1550 is used to obtain the uppermost, lowermost, leftmost and rightmost edge nodes in the projection of the auxiliary point on the at least two two-dimensional images, and generate a gesture bounding box based on the four nodes.
[0235] It should be understood that each module described in the apparatus 1500 is similar to the reference Fig. 7A The method 700 described and referenced Figure 7B Each step in the described method 700' corresponds to each other. Therefore, the operations and features described above for methods 700 and 700' are also applicable to the device 1500 and the devices or modules contained therein. For the sake of brevity, similar contents are not repeated here.
[0236] A third aspect of the present disclosure also relates to a block diagram of a computer program product 1600, such as Fig.16 As shown. The signal bearing medium 1602 may be implemented as or include a computer readable medium 1606, a computer recordable medium 1608, a computer communication medium 1610, or a combination thereof, which stores programming instructions 1604 of all or some of the previously described processes that can be configured to be executed by a processor. These instructions may include, for example, one or more executable instructions for causing one or more processors to perform the following processing. These executable instructions may, for example, be method steps of the aforementioned methods.
[0237] It should be understood that the aforementioned various exemplary methods and devices can be implemented at a server or user terminal device, and can be implemented in various ways. For example, in some embodiments, the aforementioned various devices can be implemented using software and / or firmware modules, or can be implemented using hardware modules. Other methods currently known or developed in the future are also feasible, and the scope of the present invention is not limited in this respect.
[0238] Fig.17 A block diagram of a computer system suitable for implementing the embodiments of the present invention is shown. Fig.17 As shown, the computer system may include: CPU (central processing unit) 1101, RAM (random access memory) 1102, ROM (read only memory) 1103, system bus 1104, hard disk controller 1105, keyboard controller 1106, serial interface controller 1107, parallel interface controller 1108, display controller 1109, hard disk 1110, keyboard 1111, serial external device 1112, parallel external device 1113 and display 1114. Among these components, CPU 1101, RAM 1102, ROM 1103, hard disk controller 1105, keyboard controller 1106, serial controller 1107, parallel controller 1108 and display controller 1109 are connected to system bus 1104. The hard disk 1110 is connected to the hard disk controller 1105, the keyboard 1111 is connected to the keyboard controller 1106, the serial external device 1112 is connected to the serial interface controller 1107, the parallel external device 1113 is connected to the parallel interface controller 1108, and the display 1114 is connected to the display controller 1109. It should be understood that the structural block diagram shown in FIG5 is only shown for the purpose of example, and is not intended to limit the present invention. In some cases, some of the devices may be increased or decreased as needed.
[0239] In particular, in addition to hardware implementations, the embodiments of the present invention may be implemented in the form of a computer program product. Figure 2 The described method 200 may be implemented by a computer program product. The computer program product may be stored in RAM, ROM, hard disk and / or any suitable storage medium, or downloaded to a computer system from a suitable location via a network. The computer program product may include a computer code portion, which includes program instructions that can be executed by a suitable processing device.
[0240] The foregoing content can be better understood according to the following terms
[0241] Item 1: An image annotation system comprising:
[0242] A support frame, wherein the support frame is a polyhedral structure constructed by a plurality of support plates;
[0243] at least two cameras mounted on at least two of the plurality of support plates of the support frame; and
[0244] The labeling device is configured to receive two or more images to be processed taken by the at least two cameras, and label the hands in the image data to be processed.
[0245] Clause 2: An image annotation system according to clause 1, wherein the support frame is a regular icosahedron structure constructed by twenty regular triangular support plates, and open gaps are left at the vertices of some of the twenty triangular support plates.
[0246] Clause 3: An image annotation system according to clause 1 or 2, wherein a mounting hole group is provided on a central area of the support plate for mounting a camera.
[0247] Clause 4: The image annotation system according to clause 1 or 2, wherein a group of splicing holes is provided in an edge area of the support plate for fixing to an adjacent support plate of the support frame.
[0248] Clause 5: The image annotation system according to clause 1 or 2, wherein the supporting plate is made of a transparent material.
[0249] Clause 6: The image annotation system according to clause 1 or 2, wherein the shape of the supporting plate in the plurality of supporting plates comprises an equilateral triangle, a square or other polygon.
[0250] Clause 7: The image annotation system according to clause 1 or 2, wherein an open gap is left on the side of the support plate of the plurality of support plates.
[0251] Clause 8: The image annotation system according to clause 1 or 2, wherein the annotation comprises one or more of the following:
[0252] Identifying a bounding box of a hand from the two or more images to be processed;
[0253] Identifying two-dimensional key points of the hand from the two or more images to be processed;
[0254] Identifying three-dimensional key points of the hand from the two or more images to be processed;
[0255] Recognizing hand gestures from the two or more images to be processed;
[0256] Recognize the posture of a specific part of the hand from the two or more images to be processed; and
[0257] The lengths of the bones of the fingers of the hand are identified from the two or more images to be processed.
[0258] Clause 9: An image annotation system according to clause 1 or 2, wherein the annotation device is further configured to instruct a test person to make different gestures, wherein the test person's hands are located in the support frame.
[0259] Clause 10: The image annotation system according to clause 1 or 2, wherein the annotation device is further configured to identify images belonging to the same frame of images among the two or more images to be processed.
[0260] Clause 11: The image annotation system according to clause 1 or 2, further comprising:
[0261] The control center is configured to control the shutters of the at least two cameras to start simultaneously.
[0262] Clause 12: The image annotation system according to clause 1 or 2, further comprising:
[0263] Environmental control equipment controls the environment outside the supporting frame.
[0264] Clause 13: The image annotation system according to clause 1 or 2, further comprising:
[0265] The mobile platform is configured to support the supporting frame and can carry the supporting frame for movement.
[0266] Clause 1′: A method for automatically generating hand annotation data, comprising:
[0267] Acquire at least three images of the hand at different viewing angles to be processed;
[0268] Detecting key points on the at least three images to be processed respectively;
[0269] The detected key points are screened by using the association relationship between the at least three images to be processed, wherein the association relationship is that the at least three images to be processed are from the same frame image under different perspectives of the hand;
[0270] Reconstructing the three-dimensional spatial representation of the hand based on the selected key points on the same frame image and the given finger bone lengths;
[0271] Projecting the key points on the three-dimensional representation of the hand to the at least three images to be processed; and
[0272] Using the projected key points on the at least three images to be processed, annotation data of the hand on the images to be processed are generated.
[0273] Clause 2′: The method according to clause 1′, wherein the at least three images to be processed are taken by a camera set, and the method further comprises:
[0274] Calibrate the camera set to obtain camera intrinsic parameters and camera extrinsic parameters of the camera set;
[0275] Clause 3′: The method according to clause 2′, wherein the step of reconstructing the three-dimensional spatial representation of the hand further comprises:
[0276] The three-dimensional spatial representation of the hand is reconstructed based on the selected key points on the same frame image, the given finger bone lengths, and the camera intrinsic parameters and camera extrinsic parameters of the camera set.
[0277] Clause 4′: The method according to any one of clauses 1′ to 3′, wherein screening the detected key points further comprises:
[0278] The detected key points are screened using the RANSAC algorithm.
[0279] Clause 5': The method according to any one of clauses 1'-3', wherein the three-dimensional spatial representation of the hand adopts a ball-and-stick model.
[0280] Clause 6′: A method according to any one of clauses 1′ to 3′, wherein the annotation data comprises one or more of the following:
[0281] The bounding box of the hand;
[0282] 2D key points of the hand;
[0283] 3D key points of the hand;
[0284] hand gestures;
[0285] the posture of specific parts of the hand; and
[0286] The length of the finger bones of the hand.
[0287] Clause 7′: The method according to any one of clauses 1′ to 3′, further comprising:
[0288] Instruct the tester to make different hand gestures.
[0289] Clause 8′: The method according to any one of clauses 1′-3′ further includes the following method for calculating the length of finger bones:
[0290] Acquire at least two images of a frame of an image of a hand at different viewing angles;
[0291] Using the at least two images from different viewing angles, performing hand gesture recognition;
[0292] In the case where the recognized gesture is a predefined simple gesture, performing key point detection on each hand image in the at least two images;
[0293] reconstructing a three-dimensional representation of the hand using the detected key points; and
[0294] The lengths of the finger bones of the hand are calculated based on the 3D key points on the reconstructed 3D representation of the hand.
[0295] Clause 9′: The method according to clause 8′, wherein, after the step of performing key point detection on each hand image in at least three images, the finger bone length calculation method further comprises:
[0296] The detected key points are screened by using the correlation relationship between the at least three images in the same frame of image.
[0297] The step of reconstructing the three-dimensional representation of the hand using the detected key points comprises:
[0298] The 3D representation of the hand is reconstructed using the filtered key points.
[0299] Clause 10′: The method according to clause 9′, wherein the at least three images are taken by a camera set, and the reconstructing the three-dimensional representation of the hand using the selected key points further comprises:
[0300] The three-dimensional representation of the hand is reconstructed by utilizing the filtered key points and combining the intrinsic parameters and extrinsic parameters of the camera set.
[0301] Clause 11′: The method according to clause 10′, wherein screening the detected key points further comprises:
[0302] The detected key points are screened using the RANSAC algorithm.
[0303] Clause 12′: The method according to clause 8′, wherein the simple gesture is a five-finger open gesture and a grasping gesture.
[0304] Clause 13′: A method according to any one of clauses 1′ to 3′, wherein generating the annotation data of the hand on the image to be processed is generating a bounding box of the hand, specifically comprising:
[0305] Obtaining positions of a plurality of three-dimensional key points in a three-dimensional representation of a hand, wherein the three-dimensional representation of the hand is reconstructed from at least two two-dimensional images of the hand;
[0306] generating an auxiliary geometric structure associated with each key point according to a category of each key point in the plurality of three-dimensional key points;
[0307] For each auxiliary geometry, a set of auxiliary points is generated on the surface of each auxiliary geometry;
[0308] projecting the auxiliary point onto the at least two two-dimensional images;
[0309] On the at least two two-dimensional images, the uppermost, lowermost, leftmost and rightmost edge nodes in the projection of the auxiliary point are obtained, and a gesture bounding box is generated based on the four nodes.
[0310] Clause 14′: The method according to clause 13′, wherein projecting the auxiliary points onto the at least two two-dimensional images further comprises:
[0311] The projection position of the auxiliary point on the at least two two-dimensional images is calculated by combining the intrinsic parameters and the extrinsic parameters of the camera set, wherein the at least two images are taken by using the camera set.
[0312] Clause 15′: The method according to clause 13′, wherein projecting the auxiliary points to the at least two two-dimensional images further comprises: projecting the multiple three-dimensional key points in the three-dimensional representation of the hand together with the auxiliary points to the at least two two-dimensional images.
[0313] Clause 16': The method of clause 13', wherein the key points correspond to joints of the hand.
[0314] Clause 17′: A device for automatically generating hand annotation data, comprising:
[0315] An acquisition device, used for acquiring at least three images to be processed of the hand at different viewing angles;
[0316] A detection device, used for detecting key points on the at least three images to be processed respectively;
[0317] A screening device, used for screening the detected key points by using the association relationship between the at least three images to be processed, wherein the association relationship is that the at least three images to be processed are from the same frame image under different viewing angles of the hand;
[0318] A reconstruction device, for reconstructing the three-dimensional spatial representation of the hand based on the selected key points on the same frame image and the given finger bone length;
[0319] A projection device, used for projecting key points on the three-dimensional representation of the hand onto the at least three images to be processed; and
[0320] The marking device is used to generate marking data of the hand on the image to be processed by using the projected key points on the at least three images to be processed.
[0321] Clause 18′: The apparatus according to clause 17′, wherein the at least three images to be processed are taken by a camera set, and the apparatus further comprises:
[0322] The calibration device is used to calibrate the camera set and solve the camera intrinsic parameters and camera extrinsic parameters of the camera set.
[0323] Item 19′: An apparatus according to Item 18′, wherein the reconstruction device is also used to reconstruct the three-dimensional spatial representation of the hand based on the selected key points on the same frame image, combined with the given finger bone lengths, and combined with the camera intrinsic parameters and camera extrinsic parameters of the camera set.
[0324] Clause 20′: The device according to any one of clauses 17′-19′, wherein the screening device is further used to screen the detected key points using a RANSAC algorithm.
[0325] Clause 21′: The apparatus of any one of clauses 17′-19′, wherein the annotation data comprises one or more of the following:
[0326] The bounding box of the hand;
[0327] 2D key points of the hand;
[0328] 3D key points of the hand;
[0329] hand gestures;
[0330] the posture of specific parts of the hand; and
[0331] Length of the finger bones of the hand
[0332] Item 22′: A system for automatically generating annotation data of a hand, comprising:
[0333] An image capture system, including a camera set, configured to acquire at least three images to be processed at different viewing angles of the hand;
[0334] The annotation device is configured to perform the following operations:
[0335] Detecting key points on the at least three images to be processed respectively;
[0336] The detected key points are screened by using the association relationship between the at least three images to be processed, wherein the association relationship is that the at least three images to be processed are from the same frame image under different perspectives of the hand;
[0337] Reconstructing the three-dimensional spatial representation of the hand based on the selected key points on the same frame image and the given finger bone lengths;
[0338] Projecting the key points on the three-dimensional representation of the hand to the at least three images to be processed; and
[0339] Using the projected key points on the at least three images to be processed, annotation data of the hand on the images to be processed are generated.
[0340] Clause 23′: The system according to clause 22′, wherein the at least three images to be processed are taken by a camera set, and the annotation device is further configured to perform the following operations:
[0341] Calibrate the camera set to obtain camera intrinsic parameters and camera extrinsic parameters of the camera set;
[0342] Clause 24′: The system of clause 23′, wherein the operation of reconstructing the three-dimensional spatial representation of the hand further comprises:
[0343] The three-dimensional spatial representation of the hand is reconstructed based on the selected key points on the same frame image, the given finger bone lengths, and the camera intrinsic parameters and camera extrinsic parameters of the camera set.
[0344] Clause 25′: The system according to any one of clauses 22′-24′, wherein the operation of screening the detected key points further comprises:
[0345] The detected key points are screened using the RANSAC algorithm.
[0346] Clause 26′: The system according to any one of clauses 22′-24′, further comprising:
[0347] The control center is configured to control the shutters of the at least two cameras to start simultaneously.
[0348] Clause 27′: The system according to any one of clauses 22′-24′, further comprising:
[0349] The environmental control equipment controls the environment outside the supporting frame.
[0350] Clause 28′: A computer-readable storage medium, comprising computer-executable instructions stored thereon, wherein the executable instructions, when executed by a processor, implement the method for labeling data as described in any one of clauses 1′-16′.
[0351] Clause 29′: A method for calculating the length of a finger bone, comprising:
[0352] Acquire at least two images of a frame of an image of a hand at different viewing angles;
[0353] Using the at least two images from different viewing angles, performing hand gesture recognition;
[0354] In the case where the recognized gesture is a predefined simple gesture, performing key point detection on each hand image in the at least two images;
[0355] reconstructing a three-dimensional representation of the hand using the detected key points; and
[0356] The lengths of the finger bones of the hand are calculated based on the 3D key points on the reconstructed 3D representation of the hand.
[0357] Clause 30′: The method according to clause 29′, wherein the at least two images are at least three images, and after the step of performing key point detection on each hand image in the at least two images, the method further comprises:
[0358] The detected key points are screened by using the correlation relationship between the at least three images in the same frame of image.
[0359] The step of reconstructing the three-dimensional representation of the hand using the detected key points comprises:
[0360] The 3D representation of the hand is reconstructed using the filtered key points.
[0361] Clause 31′: The method according to clause 30′, wherein the at least three images are taken by a camera set, and the reconstructing the three-dimensional representation of the hand using the selected key points further comprises:
[0362] The three-dimensional representation of the hand is reconstructed by utilizing the filtered key points and combining the intrinsic parameters and extrinsic parameters of the camera set.
[0363] Clause 32′: The method according to clause 31′, wherein screening the detected key points further comprises:
[0364] The detected key points are screened using the RANSAC algorithm.
[0365] Clause 33′: The method according to any one of clauses 29′-32′, wherein the simple gesture is a five-finger open gesture and a grasping gesture.
[0366] Clause 34′: A device for calculating the length of a finger bone, comprising:
[0367] An acquisition device, used for acquiring at least two images in a frame of an image of a hand at different viewing angles;
[0368] A recognition device, used to perform hand gesture recognition using the at least two images under different viewing angles;
[0369] A detection device, for performing key point detection on each hand image in at least two images respectively, when the recognized gesture is a predefined simple gesture;
[0370] A reconstruction device for reconstructing a three-dimensional representation of the hand using the detected key points; and
[0371] A computing device is used to calculate the length of the finger bones of the hand based on the three-dimensional key points on the reconstructed three-dimensional representation of the hand.
[0372] Clause 35′: The apparatus of clause 34′, wherein the at least two images are at least three images, the apparatus further comprising:
[0373] A screening device, used for screening the detected key points by using the association relationship between the at least three images in the same frame of image;
[0374] The reconstruction device is used to reconstruct the three-dimensional representation of the hand using the selected key points.
[0375] Clause 36′: A system for calculating the length of a finger bone, comprising:
[0376] An image capture system, including a camera set, configured to acquire at least two images of a frame of an image of a hand at different viewing angles;
[0377] The finger bone length calculation device is configured to perform the following operations:
[0378] Using the at least two images from different viewing angles, performing hand gesture recognition;
[0379] In the case where the recognized gesture is a predefined simple gesture, performing key point detection on each hand image in the at least two images;
[0380] reconstructing a three-dimensional representation of the hand using the detected key points; and
[0381] The lengths of the finger bones of the hand are calculated based on the 3D key points on the reconstructed 3D representation of the hand.
[0382] Clause 37′: The system according to clause 36′, wherein the at least two images are at least three images, and the finger bone length calculation device is further configured to perform the following operations after the step of performing key point detection on each hand image in the at least three images:
[0383] The detected key points are screened by using the correlation between the at least two images in the same frame of image.
[0384] The step of reconstructing the three-dimensional representation of the hand using the detected key points includes:
[0385] The 3D representation of the hand is reconstructed using the filtered key points.
[0386] Clause 38′: A computer-readable storage medium, comprising computer-executable instructions stored thereon, wherein the executable instructions, when executed by a processor, implement the method for calculating the length of finger bones as described in any one of clauses 29′-33′.
[0387] Clause 39′: A method for computing a gesture bounding box, comprising:
[0388] Obtaining positions of a plurality of three-dimensional key points in a three-dimensional representation of a hand, wherein the three-dimensional representation of the hand is reconstructed from at least two two-dimensional images of the hand;
[0389] generating an auxiliary geometric structure associated with each key point according to a category of each key point in the plurality of three-dimensional key points;
[0390] For each auxiliary geometry, a set of auxiliary points is generated on the surface of each auxiliary geometry;
[0391] projecting the auxiliary point onto the at least two two-dimensional images;
[0392] On the at least two two-dimensional images, the uppermost, lowermost, leftmost and rightmost edge nodes in the projection of the auxiliary point are obtained, and a gesture bounding box is generated based on the four nodes.
[0393] Clause 40′: The method according to clause 39′, wherein projecting the auxiliary points onto the at least two two-dimensional images further comprises:
[0394] The projection position of the auxiliary point on the at least two two-dimensional images is calculated by combining the intrinsic parameters and the extrinsic parameters of the camera set, wherein the at least two images are taken by using the camera set.
[0395] Clause 41′: The method according to clause 39′, wherein projecting the auxiliary points to the at least two two-dimensional images further comprises: projecting the multiple three-dimensional key points in the three-dimensional representation of the hand together with the auxiliary points to the at least two two-dimensional images.
[0396] Clause 42': The method according to clauses 39'-41', wherein the key points correspond to joints of the hand.
[0397] Clause 43′: The method according to clause 42′, wherein for the key points of the fingers, the corresponding auxiliary geometric structure is a sphere; and for the key points of the wrist, the corresponding auxiliary geometric structure is an ellipsoid.
[0398] Clause 44′: An apparatus for calculating a gesture bounding box, comprising:
[0399] An acquisition device for acquiring positions of a plurality of three-dimensional key points in a three-dimensional representation of a hand, wherein the three-dimensional representation of the hand is reconstructed based on at least two two-dimensional images of the hand;
[0400] An auxiliary geometric structure generating device, used for generating an auxiliary geometric structure associated with each key point according to the category of each key point among the plurality of three-dimensional key points;
[0401] An auxiliary point generating device, for generating a set of auxiliary points on the surface of each auxiliary geometric structure for each auxiliary geometric structure;
[0402] A projection device, for projecting the auxiliary point onto the at least two two-dimensional images;
[0403] The bounding box generating device is used to obtain the uppermost, lowermost, leftmost and rightmost edge nodes in the projection of the auxiliary point on the at least two two-dimensional images, and generate a gesture bounding box based on the four nodes.
[0404] Clause 45′: A system for computing a gesture bounding box, comprising:
[0405] An image capture system, including a camera set, configured to acquire at least two images of a frame of an image of a hand at different viewing angles;
[0406] The gesture bounding box calculation device is configured to perform the following operations:
[0407] Obtaining positions of a plurality of three-dimensional key points in a three-dimensional representation of a hand, wherein the three-dimensional representation of the hand is reconstructed based on the at least two two-dimensional images;
[0408] generating an auxiliary geometric structure associated with each key point according to a category of each key point in the plurality of three-dimensional key points;
[0409] For each auxiliary geometry, a set of auxiliary points is generated on the surface of each auxiliary geometry;
[0410] projecting the auxiliary point onto the at least two two-dimensional images;
[0411] On the at least two two-dimensional images, the uppermost, lowermost, leftmost and rightmost edge nodes in the projection of the auxiliary point are obtained, and a gesture bounding box is generated based on the four nodes.
[0412] Clause 46′: A computer-readable storage medium comprising computer-executable instructions stored thereon, wherein the executable instructions, when executed by a processor, implement the method for calculating a gesture bounding box as described in any one of clauses 39′-43′.
[0413] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. A person of ordinary skill in the art will appreciate that the above-mentioned apparatus and method can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. The apparatus and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.
[0414] It should be noted that, although several modules or submodules of the device are mentioned in the above detailed description, this division is not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more modules described above can be implemented in one module. Conversely, the features and functions of one module described above can be further divided into multiple modules to be embodied.
[0415] Although the present invention has been described with reference to the embodiments currently contemplated, it should be understood that the present invention is not limited to the disclosed embodiments. On the contrary, the present invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims. The scope of the following claims is consistent with the broadest interpretation so as to include all such modifications and equivalent structures and functions.
[0416] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Although the present disclosure is described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. An image annotation system, include: A support frame, wherein the support frame is a polyhedral structure constructed by a plurality of support plates; at least two cameras mounted on at least two of the plurality of support plates of the support frame; as well as a labeling device, configured to receive two or more images to be processed taken by the at least two cameras, and label the hands in the image data to be processed; Among them, the support plate includes a regular polygonal support plate, and the polyhedron structure includes a regular polyhedron structure; some vertices of the regular polygonal support plate have open gaps, and the gaps are spliced with adjacent gaps to form holes, and the hand is placed in the support frame through the holes.
2. The image annotation system according to claim 1, in, The support frame is a regular icosahedron structure constructed by twenty regular triangular support plates, and open gaps are left at the vertices of some of the twenty triangular support plates.
3. The image annotation system according to claim 1 or 2, in, A mounting hole group is arranged on the central area of the supporting plate for mounting a camera.
4. The image annotation system according to claim 1 or 2, in, A group of splicing holes is provided in the edge area of the support plate for fixing to the adjacent support plate of the support frame.
5. The image annotation system according to claim 1 or 2, in, The supporting plate is made of transparent material.
6. The image annotation system according to claim 1 or 2, in, The shapes of the supporting plates among the plurality of supporting plates include regular triangles, squares or other polygons.
7. The image annotation system according to claim 1 or 2, in, An open gap is left at the side of the supporting plate of the plurality of supporting plates.
8. The image annotation system according to claim 1 or 2, in, The annotations include one or more of the following: Identifying a bounding box of a hand from the two or more images to be processed; Identifying two-dimensional key points of the hand from the two or more images to be processed; Identifying three-dimensional key points of the hand from the two or more images to be processed; Recognizing hand gestures from the two or more images to be processed; Recognize the posture of a specific part of the hand from the two or more images to be processed; as well as The lengths of the finger bones of the hand are identified from the two or more images to be processed.
9. The image annotation system according to claim 1 or 2, in, The annotation device is further configured to instruct a test person to make different gestures, wherein the test person's hands are located in the support frame.
10. The image annotation system according to claim 1 or 2, in, The labeling device is further configured to identify images belonging to the same frame of images among the two or more images to be processed.
11. The image annotation system according to claim 1 or 2, further comprising: include: The control center is configured to control the shutters of the at least two cameras to start simultaneously.
12. The image annotation system according to claim 1 or 2, further comprising: include: Environmental control equipment controls the environment outside the supporting frame.
13. The image annotation system according to claim 1 or 2, further comprising: include: The mobile platform is configured to support the supporting frame and can carry the supporting frame for movement.
