A hair follicle extraction path planning method, system and storage medium
By obtaining the hair map during hair transplant surgery and screening candidate hair follicle units based on the radius of the local planning area, the problems of hair follicle extraction efficiency and coverage and blood extraction are solved, and efficient and beautiful hair follicle extraction path planning is achieved.
Patent Information
- Application Number
- CN202310780624.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-28
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2043-06-28
AI Technical Summary
In hair transplant surgery, it is difficult with existing technology to improve hair follicle extraction efficiency and coverage while maintaining the hair follicle extraction interval, and avoid extracting hair follicles in the blood, making it difficult to achieve hair removal traces and efficient coverage at the same time.
By obtaining the hair map, the first neighborhood search is performed based on the preset local planning area radius, the candidate hair follicle unit is determined, and the candidate hair follicle unit is screened based on the straight-line distance and projection distance to ensure that the straight-line distance between the candidate hair follicle unit and the initial hair follicle unit is within the preset range. The inner and forward projection distance is positive to determine the target hair follicle unit to be extracted to avoid extraction in the blood.
It effectively improves the efficiency and coverage of hair follicle extraction, reduces hair removal traces, and ensures the beauty of hair and the effect of hair transplantation.
Smart Images

Figure CN116747018B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of hair follicle extraction, and in particular to a hair follicle extraction path planning method, a hair follicle extraction path planning system, and a computer-readable storage medium. Background Art
[0002] During the hair transplant surgery, the doctor needs to reasonably plan the number of hair follicles to be extracted and develop a plan for re-implanting the hair follicles, so that no traces of hair removal can be seen in the donor area and the recipient area (i.e., the hair loss area) is significantly improved. In addition, the planning of the hair follicle extraction path needs to be based on a certain density and spacing so that some hair in the donor area can be retained to maintain beauty, and the two goals of efficiency and coverage must be achieved at the same time. Here, efficiency refers to the optimal extraction efficiency in an area to be extracted, and coverage refers to the final selected number of extractables in an area to be extracted as much as possible. In addition, there is a problem of blood overflow during the extraction process, and the blood will flow downward in the direction of gravity. Therefore, the planning of the hair follicle extraction path must also be constrained to avoid extraction in the blood.
[0003] In order to overcome the above-mentioned defects of the prior art, the present invention provides a planning technology for a hair follicle extraction path, which can effectively improve the efficiency and coverage of hair follicle extraction while maintaining the interval of hair follicle extraction and avoid extracting hair follicles in the blood. Summary of the invention
[0004] A brief summary of one or more aspects is given below to provide a basic understanding of these aspects. This summary is not an exhaustive overview of all conceived aspects, and is neither intended to identify the key or decisive elements of all aspects nor to define the scope of any or all aspects. Its only purpose is to give some concepts of one or more aspects in a simplified form as a prelude to a more detailed description that will be given later.
[0005] In order to overcome the above-mentioned defects of the prior art, the present invention provides a planning technology for a hair follicle extraction path, which can effectively improve the efficiency and coverage of hair follicle extraction while maintaining the interval of hair follicle extraction and avoid extracting hair follicles in the blood.
[0006] Specifically, the planning method for the hair follicle extraction path provided in the first aspect of the present invention comprises the following steps: obtaining a hair map including a plurality of hair follicle units; performing a first neighborhood search on a preset initial hair follicle unit on the hair map based on a preset local planning area radius to determine a plurality of candidate hair follicle units; respectively determining a straight-line distance, an upward projection distance and a front projection distance from each of the candidate hair follicle units to the initial hair follicle unit, wherein the upward direction is opposite to the gravity direction and the front direction is perpendicular to the upward direction; sequentially checking each of the candidate hair follicle units in the order of the upward projection distance from small to large; and in response to the straight-line distance from any of the candidate hair follicle units to the initial hair follicle unit being less than a preset upper limit of the adjacent distance and the front projection distance from the candidate hair follicle unit to the initial hair follicle unit being positive, determining the candidate hair follicle unit as a target hair follicle unit to be extracted.
[0007] Preferably, in one embodiment of the present invention, the following steps are also included: in response to the fact that there is no candidate follicle unit with a positive projection distance in the front direction to the initial follicle unit within the range of the upper limit of the adjacent distance, the candidate follicle unit with the smallest straight-line distance to the initial follicle unit is determined as the target follicle unit to be extracted, and the front direction is reversed.
[0008] Preferably, in an embodiment of the present invention, after determining the target follicle unit, the planning method further comprises the following steps: setting the target follicle unit as a new initial follicle unit, and re-implementing the planning method to determine the next target follicle unit to be extracted.
[0009] Preferably, in an embodiment of the present invention, the step of performing a first neighborhood search on a preset initial follicle unit on the hair map based on a preset local planning area radius to determine a plurality of candidate follicle units comprises: performing the first neighborhood search on the initial follicle unit on the hair map to screen out a plurality of first candidate follicle units whose straight-line distances to the initial follicle unit are less than the local planning area radius; and screening out, from the plurality of first candidate follicle units, follicle units whose straight-line distances to the initial follicle unit are less than a preset expansion circle radius to determine a plurality of second candidate follicle units.
[0010] Preferably, in an embodiment of the present invention, the step of obtaining a hair map including a plurality of hair follicle units comprises: obtaining a hair map including point cloud data of a plurality of hairs; clustering the point cloud data based on a preset minimum number of points m to obtain a first temporary clustering cluster having at least m points within a preset first neighborhood radius; checking whether each point in the first temporary clustering cluster is a core point of another second temporary clustering cluster; in response to a check result that any point in the first temporary clustering cluster is a core point of another second temporary clustering cluster, merging the first temporary clustering cluster and the second temporary clustering cluster to generate a new first temporary clustering cluster; and in response to a check result that each point in the first temporary clustering cluster is not a core point of another second temporary clustering cluster, upgrading each of the remaining temporary clustering clusters to a clustering cluster to indicate the hair follicle units included in the hair map.
[0011] Preferably, in an embodiment of the present invention, the step of obtaining a hair map including point cloud data of a plurality of hairs comprises: obtaining and parsing a plurality of hair images under a plurality of camera perspectives to respectively determine a root point and a tip point of each of the hairs in each of the hair images; constructing a point cloud structure according to the root point and the tip point of each of the hairs to determine the point cloud data of each of the hair images; and fusing the point cloud data of each of the hair images under the same perspective to obtain the hair map including the point cloud data of a plurality of hairs.
[0012] Preferably, in an embodiment of the present invention, the step of constructing a point cloud structure according to the root point and the tip point of each hair to determine the point cloud data of each hair image comprises: predefining the hair direction according to the prior information of the camera scan to preliminarily determine the root point and the tip point of each hair; performing a second neighborhood search with the root point as the search point, and calculating the hair direction gradient of each root point in the point cloud data within its second neighborhood radius based on the characteristic that the hair growth direction in the neighborhood changes continuously; in response to the hair direction gradient of any root point in its second neighborhood radius deviating from the average hair direction gradient of each root point in its second neighborhood radius, exchanging the root point and the tip point of the point cloud structure, and recalculating the hair direction gradient of each root point in the point cloud data within its second neighborhood radius; and in response to the fact that there is no gradient abnormal value deviating from the average hair direction gradient within the second neighborhood radius for each root point in the point cloud data, determining the point cloud data of the hair image.
[0013] Preferably, in an embodiment of the present invention, the step of fusing the point cloud data of each hair image into the same viewing angle to obtain the hair map including the point cloud data of the plurality of hairs comprises: uniformly transforming the point cloud data of each hair image into a reference coordinate system; taking a frame of point cloud data as a reference frame, and creating a corresponding point list of a reference frame point for each hair root point in the reference frame; selecting a matching frame from the point cloud data that has not been matched, and calculating a corresponding point set between the matching frame and the reference frame in the reference coordinate system, so as to add the matching frame points in the corresponding point set to the corresponding point list of the corresponding reference frame points, adding each hair root point for which no corresponding reference frame point is found in the matching frame to the reference frame, and creating a new corresponding point list for it; in response to completing the matching of the point cloud data of each frame, treating each reference frame point in the reference frame as a hair entity, and treating the reference frame point and all points in its corresponding point list as a measurement sequence of the hair entity; and determining the spatial position of the hair root point of each hair entity in the viewing angle of the reference coordinate system according to the measurement sequence of each hair entity.
[0014] In addition, the hair follicle extraction path planning system provided according to the second aspect of the present invention includes a memory and a processor. The memory stores computer instructions. The processor is connected to the memory and is configured to execute the computer instructions stored in the memory to implement the hair follicle extraction path planning method provided by any one of the above embodiments.
[0015] In addition, the computer-readable storage medium provided according to the third aspect of the present invention stores computer instructions. When the computer instructions are executed by the processor, the method for planning the hair follicle extraction path provided by any one of the above embodiments is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The above features and advantages of the present invention can be better understood after reading the detailed description of the embodiments of the present disclosure in conjunction with the following drawings. In the drawings, the components are not necessarily drawn to scale, and components with similar related properties or features may have the same or similar reference numerals.
[0017] Figure 1 A flow chart of a method for planning a hair follicle extraction path provided according to some embodiments of the present invention is shown.
[0018] Figure 2 A flowchart for determining point cloud data of each hair image according to some embodiments of the present invention is shown.
[0019] Figure 3 A flowchart of fusing point cloud data of multi-view hair images provided according to some embodiments of the present invention is shown.
[0020] Figure 4 A flowchart of obtaining a hair map including a plurality of follicle units according to some embodiments of the present invention is shown. DETAILED DESCRIPTION
[0021] The following specific embodiments illustrate the implementation of the present invention, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Although the description of the present invention will be introduced in conjunction with the preferred embodiment, this does not mean that the features of this invention are limited to this implementation. On the contrary, the purpose of introducing the invention in conjunction with the implementation is to cover other options or modifications that may be extended based on the claims of the present invention. In order to provide a deep understanding of the present invention, the following description will include many specific details. The present invention can also be implemented without using these details. In addition, in order to avoid confusion or blurring the focus of the present invention, some specific details will be omitted in the description.
[0022] In the description of the present invention, 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 or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0023] In addition, the terms "upper", "lower", "left", "right", "top", "bottom", "horizontal" and "vertical" used in the following description should be understood as the directions shown in the paragraph and the related drawings. Such relative terms are only used for the convenience of description and do not mean that the device described therein must be manufactured or operated in a specific direction, and therefore should not be understood as limiting the present invention.
[0024] It is understood that although the terms "first", "second", "third", etc. may be used herein to describe various components, regions, layers and / or parts, these components, regions, layers and / or parts should not be limited by these terms, and these terms are only used to distinguish different components, regions, layers and / or parts. Therefore, the first component, region, layer and / or part discussed below may be referred to as a second component, region, layer and / or part without departing from some embodiments of the present invention.
[0025] As mentioned above, in hair transplant surgery, the planning of the hair follicle extraction path needs to be based on a certain density and spacing, so that some hair in the donor area can be retained to maintain beauty, and to achieve the two goals of efficiency and coverage at the same time. In addition, there is the problem of blood overflow during the extraction process, and blood will flow downward in the direction of gravity. Therefore, the planning of the hair follicle extraction path must also avoid extraction in the blood.
[0026] In order to overcome the above-mentioned defects of the prior art, the present invention provides a planning technology for a hair follicle extraction path, which can effectively improve the efficiency and coverage of hair follicle extraction while maintaining the interval of hair follicle extraction and avoid extracting hair follicles in the blood.
[0027] In some non-limiting embodiments, the hair follicle extraction path planning method provided in the first aspect of the present invention can be implemented via the hair follicle extraction path planning system provided in the second aspect of the present invention. Specifically, the hair follicle extraction path planning system can be configured with a memory and a processor. The memory includes but is not limited to the computer-readable storage medium provided in the third aspect of the present invention, on which computer instructions are stored. The processor is connected to the memory and is configured to execute the computer instructions stored in the memory to implement the hair follicle extraction path planning method provided in the first aspect of the present invention.
[0028] Please refer to Figure 1 , Figure 1 A flow chart of a method for planning a hair follicle extraction path provided according to some embodiments of the present invention is shown.
[0029] like Figure 1 As shown, in the process of planning the hair follicle extraction path, the planning system can first obtain a hair map including multiple hair follicle units.
[0030] In some embodiments, the hair map can be constructed by the planning system based on the hair image. In the process of constructing the hair map, the planning system can first obtain multiple hair images from multiple camera perspectives through multiple cameras (e.g., binocular cameras), and then perform preprocessing and image analysis on them to respectively determine the three-dimensional coordinates of the root point and the tip point of each hair in each hair image based on the reference point (e.g., tensioner label). Afterwards, the planning system can construct a point cloud structure based on the coordinates of the root point and the tip point of each hair, and combine the point cloud structures of each hair to determine the point cloud data of each hair image.
[0031] Please refer to Figure 2 , Figure 2 A flowchart for determining point cloud data of each hair image according to some embodiments of the present invention is shown.
[0032] like Figure 2As shown, in the process of determining the point cloud data of each hair image, the planning system can first predefine the hair direction according to the prior information of the camera scan to preliminarily determine the root point and the tip point of each hair. For example, the planning system can default the direction of the camera scan to the normal hand-eye direction (that is, the direction of the eye is consistent with the extracted direction), thereby defining the direction with an angle of no more than 90 degrees with the +y direction of the camera during scanning as the direction from the hair root to the hair tip, and determining the root point and the tip point of each hair.
[0033] Afterwards, the planning system can construct a point cloud structure for each hair according to the coordinates of the root point and the tip point of each hair, and then use the root point as the search point to perform a second neighborhood search. Based on the continuous change of the hair growth direction in the neighborhood, the hair direction gradient of each root point in the point cloud data within its second neighborhood radius is calculated. Here, the area refers to the area within a certain radius of the root point, and its radius value can be set according to actual needs.
[0034] Afterwards, the planning system can calculate the average hair direction gradient of each hair root point within its second neighborhood radius according to the hair direction gradient of each hair root point in the point cloud data within its second neighborhood radius, and perform statistical filtering based on the average hair direction gradient.
[0035] Specifically, during the statistical filtering process, the planning system can traverse each hair in the hair point cloud and set the hair direction of its root point as v i , the direction of other hairs within the second neighborhood radius is v j , to calculate v i With v j Angle a ij As the directional gradient, and for the angle a ij Find the root point p i The average directional gradient of
[0036]
[0037] Afterwards, the planning system can calculate the average hair orientation gradient for the entire hair point cloud:
[0038]
[0039] Calculate the statistical value (mean value and standard deviation) of the directional gradient of the point cloud data of the entire hair image:
[0040]
[0041] And determine the filtering threshold according to the custom coefficient λ:
[0042] a th =aavg +λ·a std
[0043] Afterwards, in response to any root point p i The hair direction gradient a within its second neighborhood radius i Less than the filtering threshold a th , the planning system can determine the root point p i If the hair root point and hair tip point of the point cloud structure deviate too far from the average value of the gradient, the hair root point and the hair tip point of the point cloud structure are exchanged, and the hair direction gradient of each hair root point in the point cloud data within its second neighborhood radius is recalculated until each hair root point in the point cloud data has no gradient anomalies that deviate from the average value of the hair direction gradient within its second neighborhood radius, so as to determine the point cloud data of the hair image.
[0044] By adopting the above method, the present invention can use the tensioner tag as a reference point to determine the three-dimensional coordinates of each end point of the hair, and then accurately determine the root and tip of each hair line according to the three-dimensional spatial information such as the hair direction gradient, so as to overcome the defect that the traditional visual recognition algorithm cannot accurately distinguish the root and tip of the hair.
[0045] Furthermore, for multiple hair images acquired by multiple cameras from multiple camera perspectives, the planning system may also preferably fuse the point cloud data of each hair image under the same perspective to obtain a hair map including point cloud data of multiple hairs.
[0046] Please refer to Figure 3 , Figure 3 A flowchart of fusing point cloud data of multi-view hair images provided according to some embodiments of the present invention is shown.
[0047] like Figure 3 As shown, in the process of fusing the point cloud data of each viewpoint, the planning system can firstly transform the point cloud data of each hair image into a reference coordinate system, then use a frame of point cloud data as a reference frame, and create a corresponding point list of reference frame points for each hair root point in the reference frame. Here, the reference coordinate system includes but is not limited to the label reference system on the tensioner, the base reference system of the hair follicle extraction robot, the reference system of a certain camera viewpoint, etc.
[0048] Afterwards, the planning system may select a matching frame from the unmatched point cloud data, and calculate the corresponding point set between the matching frame and the reference frame using an iterative nearest neighbor algorithm (ICP) in the reference coordinate system, so as to add the matching frame points in the corresponding point set to the corresponding point list of the reference frame points, add each root point in the matching frame for which no corresponding reference frame point is found to the reference frame, and create a new corresponding point list for it. In a non-limiting embodiment, the corresponding point estimation may adopt a mutually corresponding estimation method to ensure a one-to-one correspondence between the matching frame points and the reference frame points.
[0049] Afterwards, in response to completing the matching of point cloud data of each frame, the planning system can regard each reference frame point in the reference frame as a hair entity, and use the reference frame point and all points in its corresponding point list as the measurement sequence of the hair entity, and then determine the spatial position of the root point of each hair entity from the perspective of the reference coordinate system based on the measurement sequence of each hair entity, so as to obtain a hair map including point cloud data of multiple hairs.
[0050] Furthermore, in the process of determining the spatial position of the root point of each hair entity from the perspective of the reference coordinate system according to the measurement sequence of each hair entity, the planning system may first perform statistical filtering, straight-through filtering or other filtering processing on the measurement sequence of the hair entity, and then average the measurement sequence to obtain the best measurement value of the hair entity. Afterwards, the planning system may replace the coordinate value of the original root point in the reference frame with the best measurement value, so as to more accurately determine the spatial position of the root point of the corresponding hair entity from the perspective of the reference coordinate system.
[0051] Since the positioning accuracy of the reference system is very high, by averaging the measurement values of each hair entity under multiple viewing angles under a unified reference system to obtain the best measurement value, the present invention can effectively reduce the error of single, single-viewing angle measurement, thereby further improving the accuracy and precision of the hair map.
[0052] Please refer to further Figure 4 , Figure 4 A flowchart of obtaining a hair map including a plurality of follicle units according to some embodiments of the present invention is shown.
[0053] like Figure 4 As shown, after obtaining a hair map including point cloud data of multiple hairs, the planning system can use a density-based clustering method to divide the point cloud data of each hair in the hair map into follicle units, regard each dense area of the hair as a cluster, and represent a follicle unit with a cluster.
[0054] Specifically, in the process of dividing the hair follicle unit, the planning system can first cluster the point cloud data of multiple hairs in the hair map based on a preset minimum number of points m (for example: m=1) to obtain a first temporary cluster with at least m points within a preset first neighborhood radius. Here, the first neighborhood radius can be determined based on the maximum distance between adjacent hairs in a hair follicle unit in clinical anatomy.
[0055] After determining the first temporary cluster, the planning system can continue to check whether each point in the first temporary cluster is a core point of another second temporary cluster. Here, a core point refers to a point with at least m points within a neighborhood radius, and other points within the neighborhood of the core point are called boundary points. In response to the inspection result that any point in the first temporary cluster is a core point of another second temporary cluster, the planning system can determine that the density between the core points of the two temporary clusters is directly connected, thereby merging the first temporary cluster and the second temporary cluster to generate a new first temporary cluster.
[0056] This cycle is repeated until all points in each first temporary cluster are not core points of another second temporary cluster. The planning system can determine that the temporary clusters of core points connected by density in the hair map have been merged together, thereby upgrading the remaining temporary clusters to clusters to indicate the hair follicle units included in the hair map. Here, a cluster containing only one point indicates a single hair follicle unit, a cluster containing multiple points indicates multiple hair follicle units, and the number of points in the cluster indicates the number of hairs in the hair follicle unit.
[0057] By implementing the above method, the present invention can meet the actual demand of hair follicle extraction using hair follicle unit as the minimum extraction unit, accurately divide the hair follicle units included in the hair map, and thus provide an accurate data basis for hair follicle extraction path planning.
[0058] Those skilled in the art will appreciate that the above-mentioned method for constructing a hair map including a plurality of hair follicle units is only some non-limiting embodiments provided by the present invention, which are intended to clearly demonstrate the main concept of the present invention and provide some preferred solutions for improving the accuracy of hair follicle distribution in the hair map, rather than to limit the scope of protection of the present invention.
[0059] Optionally, in other embodiments, those skilled in the art may also construct a hair map describing the distribution of hair follicle units by other methods, or obtain a hair map including multiple hair follicle units by downloading or purchasing an existing hair map describing the distribution of hair follicle units. The specific acquisition method is not limited herein.
[0060] Please continue to refer to Figure 1After obtaining a hair map including multiple follicle units, the planning system can select a preset initial follicle unit on the hair map, and perform a first neighborhood search on the initial follicle unit based on a preset local planning area radius (denoted as R1) to determine multiple candidate follicle units. Here, the local planning area refers to a local search range centered on the initial follicle unit on the hair map. The local planning area radius R1 refers to the radius of the local search range centered on the initial follicle unit. The first neighborhood search can be implemented by a neighborhood search algorithm such as, but not limited to, a K-dimensional binary tree (KD-tree).
[0061] Furthermore, in some embodiments, the planning system may also be preferably configured with an expansion circle radius (denoted as R2). The expansion circle radius R2 indicates the minimum extraction interval between follicle units, and its value may be specifically determined based on factors such as maintaining aesthetics and reducing damage to the skin, and is generally 1 / 6 to 1 / 4 of the local planning area radius R1. In the process of performing a first neighborhood search on the initial follicle unit on the hair map, the planning system may first screen out a plurality of first candidate follicle units whose straight-line distance to the initial follicle unit is less than the local planning area radius R1, and then screen out the follicle units whose straight-line distance to the initial follicle unit is less than the preset expansion circle radius R2 from the plurality of first candidate follicle units, to determine a plurality of second candidate follicle units, thereby reducing damage to the hair supply area and weakening the traces of hair removal in the hair supply area.
[0062] Afterwards, the planning system can determine the straight-line distance d, the upward projection distance dy and the front projection distance dx of each candidate follicle unit to the initial follicle unit, and calculate the minimum straight-line distance d min Determine the upper limit of the adjacent distance. Here, the upward direction is opposite to the gravity direction, indicating the direction opposite to the blood flow direction. The front direction is perpendicular to the upward direction, indicating the main direction of search when planning the next follicle unit from the initial follicle unit. The technician can determine the magnification factor c (generally 1.5 to 2) according to the actual efficiency requirements, and determine the upper limit of the adjacent distance R3 = c*d according to the magnification factor c. min .
[0063] Afterwards, the planning system can sort the candidate follicle units in the ascending order of the upward projection distance dy, and check the candidate follicle units in turn. In response to the straight-line distance d from any candidate follicle unit to the initial follicle unit being less than the preset upper limit of the adjacent distance R3, and the forward projection distance from the candidate follicle unit to the initial follicle unit is positive (i.e., dx>0), the planning system can determine the candidate follicle unit as the next target follicle unit P to be extracted.
[0064] On the contrary, in response to the fact that there is no candidate follicle unit with a positive projection distance in the front direction to the initial follicle unit within the range of the adjacent distance upper limit R3, the planning system can determine the candidate follicle unit with the smallest straight-line distance d to the initial follicle unit as the next target follicle unit P to be extracted, and reverse the front direction.
[0065] Afterwards, the planning system may also set the target follicle unit P as a new initial follicle unit and re-implement the planning method to continue to determine the next target follicle unit to be extracted until the screening and planning of all follicle units in the hair map are completed.
[0066] In this way, by checking each candidate follicle unit in order from small to large in the upward projection distance, and then judging whether the front projection distance from the candidate follicle unit to the initial follicle unit is positive, the hair follicle extraction path planning method provided by the present invention can improve efficiency and coverage while avoiding the extraction of hair follicles in the blood, thereby meeting the path planning requirements of hair transplant surgery.
[0067] Although the above methods are illustrated and described as a series of actions for simplicity of explanation, it should be understood and appreciated that these methods are not limited by the order of the actions, because according to one or more embodiments, some actions may occur in a different order and / or concurrently with other actions from those illustrated and described herein or not illustrated and described herein but understandable to those skilled in the art.
[0068] The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be apparent to those skilled in the art, and the general principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein, but should be granted the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for planning a hair follicle extraction path, characterized in that: The following steps are involved: obtaining a hair map including a plurality of follicular units; Based on a preset local planning area radius, performing a first neighborhood search on a preset initial hair follicle unit on the hair map to determine a plurality of candidate hair follicle units; Respectively determine the straight-line distance, the upward projection distance and the front projection distance from each candidate follicle unit to the initial follicle unit, wherein the upward direction is opposite to the gravity direction, and the front direction is perpendicular to the upward direction; In order of the upward projection distance from small to large, the candidate hair follicle units are tested in sequence; as well as In response to the straight-line distance from any of the candidate follicle units to the initial follicle unit being less than a preset upper limit of the adjacent distance, and the front-direction projection distance from the candidate follicle unit to the initial follicle unit being positive, the candidate follicle unit is determined as a target follicle unit to be extracted; In response to the fact that there is no candidate follicle unit with a positive front direction projection distance to the initial follicle unit within the range of the adjacent distance upper limit, the candidate follicle unit with the smallest straight-line distance to the initial follicle unit is determined as the target follicle unit to be extracted, and the front direction is reversed.
2. The planning method according to claim 1, characterized in that: After determining the target follicle unit, the planning method further comprises the following steps: The target follicle unit is set as a new initial follicle unit, and the planning method is re-implemented to determine the next target follicle unit to be extracted.
3. The planning method according to claim 1, characterized in that: The step of performing a first neighborhood search on a preset initial hair follicle unit on the hair map based on a preset local planning area radius to determine a plurality of candidate hair follicle units comprises: Performing the first neighborhood search on the initial follicle unit on the hair map to screen a plurality of first candidate follicle units whose straight-line distance to the initial follicle unit is less than the radius of the local planning area; and The hair follicle units whose straight-line distance to the initial hair follicle unit is less than a preset expansion circle radius are screened out from the plurality of first candidate hair follicle units to determine a plurality of second candidate hair follicle units.
4. The planning method according to claim 1, characterized in that: The step of obtaining a hair map including a plurality of hair follicle units comprises: Obtaining a hair map including point cloud data of a plurality of hairs; Based on a preset minimum number of points m, clustering processing is performed on the point cloud data to obtain a first temporary cluster with at least m points within a preset first neighborhood radius; Check whether each point in the first temporary cluster is a core point of another second temporary cluster; In response to a check result that any point in the first temporary cluster is a core point of another second temporary cluster, merging the first temporary cluster and the second temporary cluster to generate a new first temporary cluster; and In response to a check result that each point in the first temporary cluster is not a core point of another second temporary cluster, each of the remaining temporary clusters is upgraded to a cluster to indicate a follicle unit included in the hair map.
5. The planning method according to claim 4, characterized in that: The step of obtaining a hair map including point cloud data of a plurality of hairs comprises: Acquire and analyze multiple hair images under multiple camera viewing angles to respectively determine the root point and the tip point of each hair in each hair image; Constructing a point cloud structure according to the root point and the tip point of each hair to determine the point cloud data of each hair image; and The point cloud data of each of the hair images are fused under the same viewing angle to obtain the hair map including the point cloud data of the plurality of hairs.
6. The planning method according to claim 5, characterized in that: The step of constructing a point cloud structure according to the root points and the tip points of each hair to determine the point cloud data of each hair image comprises: Predefine the hair direction according to the prior information scanned by the camera to preliminarily determine the root point and the tip point of each hair; Performing a second neighborhood search with the hair root point as the search point, and calculating the hair direction gradient of each hair root point in the point cloud data within the second neighborhood radius based on the characteristic that the hair growth direction in the neighborhood changes continuously; In response to the hair direction gradient of any of the hair root points within its second neighborhood radius deviating from the average hair direction gradient of each of the hair root points within its second neighborhood radius, exchanging the hair root point and the hair tip point of the point cloud structure, and recalculating the hair direction gradient of each of the hair root points in the point cloud data within its second neighborhood radius; and In response to the fact that each of the hair root points in the point cloud data does not have a gradient abnormal value deviating from the hair direction gradient average value within its second neighborhood radius, the point cloud data of the hair image is determined.
7. The planning method according to claim 5, characterized in that: The step of fusing the point cloud data of each hair image into the same viewing angle to obtain the hair map including the point cloud data of the plurality of hairs comprises: uniformly transforming the point cloud data of each of the hair images into a reference coordinate system; A frame of point cloud data is used as a reference frame, and a corresponding point list of reference frame points is created for each of the rooting points in the reference frame; A matching frame is selected from the unmatched point cloud data, and a corresponding point set between the matching frame and the reference frame is calculated in the reference coordinate system, so as to add the matching frame points in the corresponding point set to a corresponding point list of the reference frame points, and each of the root points for which no corresponding reference frame points are found in the matching frame is added to the reference frame, and a new corresponding point list is created for it; In response to completing the matching of the point cloud data of each frame, each of the reference frame points in the reference frame is regarded as a hair entity, and the reference frame point and all points in the corresponding point list are used as a measurement sequence of the hair entity; and According to the measurement sequence of each hair entity, the spatial position of the hair root point of each hair entity in the perspective of the reference coordinate system is determined.
8. A hair follicle extraction path planning system, characterized in that: include: a memory having computer instructions stored thereon; as well as A processor is connected to the memory and is configured to execute computer instructions stored in the memory to implement the hair follicle extraction path planning method according to any one of claims 1 to 7.
9. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by the processor, the method for planning a hair follicle extraction path according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Hair follicle point identification method, system and device and storage medium
CN114694141A
Hair planting planning scheme generation method and system, medium and electronic equipment
CN116196098A
