A method for expressing plantar contour
By preprocessing and feature extraction of the sole image, combined with the snake algorithm and Gaussian filter, the toe demarcation point and toe front edge are determined, and the region growing method is used to extract the outline of each toe, which solves the problem of insufficient data sets and recognition rate in the existing technology. Low problem, achieving complete expression of sole geometry and accuracy of toe segmentation.
Patent Information
- Application Number
- CN202011272173.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-13
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-11-13
AI Technical Summary
Existing methods for identifying plantar geometric features have fewer data sets, low recognition rates, and fail to fully characterize the plantar geometric features, especially in the case of toe adhesion, which results in inaccurate segmentation.
By preprocessing the sole image, the outer contour and boundary area are extracted, and the snake algorithm and Gaussian filter are combined to determine the toe boundary point and toe front edge. The region growing method is used to extract the outline of each toe and express the local characteristics of the sole.
It achieves a more complete expression of the geometric characteristics of the sole of the foot, effectively solves the segmentation difficulties in the case of toe adhesion, improves the recognition rate, and is suitable for different toe arrangements.
Smart Images

Figure CN112330704B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of plantar contour description, and in particular to a plantar contour expression method. Background Art
[0002] Currently, the existing plantar feature recognition algorithms are mainly divided into plantar recognition algorithms based on geometric features and plantar recognition algorithms based on texture features. For the expression of plantar geometric features, the main methods are: 1) extracting morphological features such as foot length, palm width, heel width, the angle between the heel center and each toe center and the horizontal axis, and the sole area [1] ; 2) Calculate the distance from the centroid of the plantar area to each point on the plantar shape contour as a feature [2] ; 3) Divide the plantar area into multiple vertical blocks of equal height, and extract the ratio of the average width of each block to the average width of the entire plantar as a geometric feature [3] ; 4) Use the GVFsnake model to describe the overall shape of the image [4] The main methods for expressing plantar texture features are: Gabor features, Haar wavelet transform, principal component analysis and independent principal component analysis.
[0003] The existing methods have the following defects:
[0004] (1) There are few existing studies on recognition based on plantar geometric features. Due to the inconvenience of data collection, the number of data sets in existing methods is small and lacks certain persuasiveness;
[0005] (2) Existing research on recognition based on toe contour features cannot accurately segment each toe when the toes are stuck together, resulting in a low recognition rate.
[0006] (3) Most methods for expressing plantar geometry are based on overall contour features, ignoring the unique local features of plantar geometry, such as the structural shape information of the toe leading edge, and the representation of plantar geometry is not complete.
[0007] [1]Kennedy RB, Pressman IS, Chen S, et al. Statistical analysis of barefoot impressions[J]. Journal of Forensic Science, 2003, 48(1):1-9.
[0008] [2]Uhl A,Wild P.Footprint-based biometric verification[J].Journal ofElectronic Imaging,2008,17(1):011016.
[0009] [3] Kushwaha R, Nain N, Singal G. Detailed analysis of footprint geometry for person identification [C]. 2017 13th International Conference on Signal-Image Technology & Internet-Based Systems (SITIS), India, 2017: 229-236.
[0010] [4] Wang Guo. Research on identity recognition method based on naked footprints[D]. Lanzhou: Lanzhou Jiaotong University, 2014. Summary of the invention
[0011] In view of the technical problems of the small number of data sets, the lack of certain persuasiveness, the low recognition rate and the incomplete geometric representation in the above-mentioned proposed method, a method for expressing the plantar contour is provided. The present invention mainly uses a method for expressing the plantar contour, which is characterized by comprising the following steps:
[0012] Step S1: preprocessing the sole image and extracting the outer contour of the sole;
[0013] Step S2: expressing the shape of each toe boundary area of the plantar image;
[0014] Step S3: expressing the shape features of the toe front edge, wherein the toe front edge refers to the edge where the front end of each toe joint on the sole of the foot connects with the sole;
[0015] Step S4: Expression of the contour shape of each toe.
[0016] Furthermore, the step S1 further comprises the following steps:
[0017] Step S11: remove the background of the sole image and grayscale it; since the sole area has similar color tones, convert the original image containing the sole from the RGB color space to the HSV color space, set threshold ranges for the H value, S value, and V value of the image to separate the foreground and background areas; based on the largest connected area in the foreground, cut out an image containing only the sole part from the original image containing the sole and grayscale it as the sole image, which is used as the basic image for subsequent processing;
[0018] Step S12: Angle correction of the plantar image: obtaining the angle of maximum projection by Radon transformation as the main direction of the plantar image, and performing angle correction on the entire plantar image according to the angle between the main direction of the plantar image and the horizontal direction;
[0019] Step S13: extracting the outer contour of the sole of the foot on the sole image; taking the circumscribed rectangle of the sole area as the initial contour, and iterating through the snake algorithm, approaching the outer contour of the sole along the direction of decreasing contour energy, and finally obtaining the outer contour shape of the sole area.
[0020] Furthermore, the plantar image is cut at a height ratio of 2 / 5 to obtain a grayscale image I0 of the toe area;
[0021] Assume that the candidate point set V of the toe boundary region is initially empty; traverse each point on the grayscale image I0, and add the point to the point set V if the point meets one of the following conditions: the grayscale value of the point is less than the average grayscale value of the grayscale image I0, and is the smallest among the M0 points in the left and right neighborhoods in the x direction, and the M0 value is 30 in the implementation; or,
[0022] The gray value is zero, and the number of gray values greater than 0 among the M1 points on the left side and the M2 points on the right side in the x direction exceeds a predetermined threshold value M3. In implementation, M1, M2≤180, and M3 is 1.
[0023] Furthermore, the step S2 further includes the following steps:
[0024] Step S21: Determine the demarcation points of each toe; perform Gaussian smoothing on the outer contour of the sole extracted in step S1 through a Gaussian filter, and the points on the smoothed contour line are:
[0025] s={x(c),y(c)|c=1,2,…,N};
[0026] Where N represents the number of points on the contour;
[0027] Traverse all points on the smoothed contour line in a clockwise direction, calculate the cosine value of the angle between the point on the contour and the line connecting the points on both sides of the point on the contour line, and select the four most sharp points locally as the four dividing points of the toes. The specific process includes:
[0028] Step S211: Calculate the sharpness of each point on the contour; taking a point (x(c), y(c)) on the contour line as an example, its sharpness is defined as:
[0029]
[0030]
[0031] Where k represents the number of interval points;
[0032] Step S212: Perform non-negative local minimum suppression on the points on the contour according to their corresponding sharpness, that is, if the sharpness corresponding to a point on the contour is greater than zero and greater than the sharpness of the points in the local window, it is marked as a candidate point for the toe demarcation point; the local window is set to 90×200;
[0033] Step S213: Determine the toe demarcation point; sort the points marked as candidate points on the contour in descending order of sharpness, and take the first four points in the sorting as the four demarcation points, denoted as W r ={s r (x r ,y r ),r=1,2,3,4},s r It is the dividing point of the toes;
[0034] Step S22: Represent the shape of the toe seam area; r (x r ,y r ), r=1,2,3,4 are the seed points, and the region growing method is used to screen out the point sets of the four toe boundary areas from the point set v, denoted as W={W1,W2,W3,W4}.
[0035] Furthermore, the steps of expressing the structure of the front edge of the toe are:
[0036] Step S31: For each toe boundary area point set W obtained z (z=1,2,3,4) to traverse, retain the point with the largest ordinate among the points with the same abscissa, and select the point set connecting each toe seam area with the sole of the foot, which are recorded as B1, B2, B3, B4;
[0037] Step S32: Perform straight line fitting on point B1 to obtain an approximate straight line l1, and find the intersection point q between the approximate straight line l1 and the outer contour curve of the sole area. L (x L ,y L ); Similarly, perform straight line fitting on point {B3, B4} to obtain the approximate straight line l2, and find the intersection point q between it and the outer contour curve of the sole area R (x R ,y R ), click q L ,q R It is the leftmost and rightmost dividing points between the toes and the sole of the foot;
[0038] Step S33: Select points {B1, B2, B3, B4, q L ,q R}, a fifth-order polynomial is fitted, and the curve is used to represent the shape information of the toe front edge. The set of points on the toe front edge after fitting is denoted as f.
[0039] Furthermore, the expression of the contour shape of each toe also includes the following steps:
[0040] Step S41: setting the grayscale values of the pixels on the original sole grayscale image corresponding to the toe boundary area contour W and the toe front edge point set f to 0, so as to completely separate the sole and toes, and each adhered toe, and the processed image is recorded as I1;
[0041] Step S42: Select the dividing point q on both sides of the big toe L (x L ,y L ), s1(x1,y1), find the horizontal coordinate on the outer contour of the sole The corresponding point of the big toe is (x0, y0). The point o1 with the coordinates (x0, y0+30) is found on the image I1, which is an internal point of the big toe. The internal points of the remaining toes are selected in the same way. Let the initial point set E of the five toes be t ={o t}, where t = 1, 2, 3, 4, 5;
[0042] Step S43: E t ={o t Each point in} is a seed point, and the region growing method is used to obtain each toe region image. The snake algorithm is used to extract the outer contour of the toe region image to obtain the contour expression of each toe.
[0043] Compared with the prior art, the present invention has the following advantages:
[0044] (1) This method not only expresses the external contour information of the sole, but also characterizes the toe boundary area, the toe front edge area and the contour information of each toe, making the expression of the geometric shape characteristics of the sole more complete.
[0045] (2) This method uses the grayscale value characteristics of the toe gap area to separate the toes and the toes from the soles, effectively solving the problem of difficult segmentation when the toes are adhered.
[0046] (3) This method takes into account both the treatment of toes close together and the treatment of toes spread apart, and has good universality. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0048] Figure 1 It is a schematic diagram of the overall process of the present invention.
[0049] Figure 2 It is a schematic diagram of the demarcation points of each toe of the present invention.
[0050] Figure 3 It is a schematic diagram of the outer contour curve of the sole of the foot according to the present invention.
[0051] Figure 4 It is a schematic diagram of the shape of the toe boundary area of the present invention.
[0052] Figure 5 It is a schematic diagram of the left dividing point between the toes and the sole of the foot of the present invention.
[0053] Figure 6 It is a schematic diagram of the right dividing point between the toes and the sole of the foot according to the present invention.
[0054] Figure 7 It is a schematic diagram of the shape of the toe front edge of the present invention.
[0055] Figure 8 The diagrams are schematic diagrams of the shapes of various toes of the present invention, wherein (a) is a schematic diagram of the shape of the big toe; (b) is a schematic diagram of the shape of the index toe; (c) is a schematic diagram of the shape of the middle toe; (d) is a schematic diagram of the shape of the ring toe; and (e) is a schematic diagram of the shape of the little toe. DETAILED DESCRIPTION
[0056] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0057] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0058] like Figure 1-8As shown, the present invention provides a method for expressing the plantar contour. The present invention mainly uses a method for expressing the plantar contour, which includes the following steps:
[0059] Step S1: Preprocess the sole image and extract the outer contour of the sole. Step S1 also includes the following steps:
[0060] Step S11: remove the background of the sole image and grayscale it; since the sole area has similar color tones, convert the original image containing the sole from the RGB color space to the HSV color space, set threshold ranges for the H value, S value, and V value of the image to separate the foreground and background areas; based on the largest connected area in the foreground, cut out an image containing only the sole part from the original image containing the sole and grayscale it as the sole image, which is used as the basic image for subsequent processing;
[0061] Step S12: Angle correction of the plantar image: obtaining the angle of maximum projection by Radon transformation as the main direction of the plantar image, and performing angle correction on the entire plantar image according to the angle between the main direction of the plantar image and the horizontal direction;
[0062] Step S13: extracting the outer contour of the sole of the foot on the sole image; taking the circumscribed rectangle of the sole area as the initial contour, and iterating through the snake algorithm, approaching the outer contour of the sole along the direction of decreasing contour energy, and finally obtaining the outer contour shape of the sole area.
[0063] Step S2: expressing the shape of each toe boundary area of the sole image. Step S2 also includes the following steps:
[0064] Step S21: Determine the demarcation points of each toe; perform Gaussian smoothing on the outer contour of the sole extracted in step S1 through a Gaussian filter, and the points on the smoothed contour line are:
[0065] s={x(c),y(c)|c=1,2,…,N};
[0066] Where N represents the number of points on the contour;
[0067] Traverse all points on the smoothed contour line in a clockwise direction, calculate the cosine value of the angle between the point on the contour and the line connecting the points on both sides of the point on the contour line, and select the four most sharp points locally as the four dividing points of the toes. The specific process includes:
[0068] Step S211: Calculate the sharpness of each point on the contour; taking a point (x(c), y(c)) on the contour line as an example, its sharpness is defined as:
[0069]
[0070]
[0071] Where k represents the number of interval points;
[0072] Step S212: Perform non-negative local minimum suppression on the points on the contour according to their corresponding sharpness, that is, if the sharpness corresponding to a point on the contour is greater than zero and greater than the sharpness of other points in the local window, it is marked as a candidate point for the toe demarcation point; the local window is set to 90×200;
[0073] Step S213: Determine the toe demarcation point; sort the points marked as candidate points on the contour in descending order of sharpness, and take the first four points in the sorting as the four demarcation points, denoted as W r ={s r (x r ,y r ),r=1,2,3,4},s r It is the dividing point of the toes;
[0074] As a preferred implementation, step S2 further comprises the following steps:
[0075] Step S22: Represent the shape of the toe seam area; r (x r ,y r ), r=1,2,3,4 are the seed points, and the region growing method is used to screen out the point sets of the four toe boundary areas from the point set v, denoted as W={W1,W2,W3,W4}.
[0076] Step S3: Expression of the shape features of the toe front edge, where the toe front edge refers to the edge where the front end of each toe joint on the sole of the foot connects with the sole. The structural expression steps of the toe front edge are:
[0077] Step S31: For each toe boundary area point set W obtained z (z=1,2,3,4) to traverse, retain the point with the largest ordinate among the points with the same abscissa, and select the point set connecting each toe seam area with the sole of the foot, which are recorded as B1, B2, B3, B4;
[0078] Step S32: Perform straight line fitting on point B1 to obtain an approximate straight line l1, and find the intersection point q between the approximate straight line l1 and the outer contour curve of the sole area. L (x L ,y L ); Similarly, perform straight line fitting on point {B3, B4} to obtain the approximate straight line l2, and find the intersection point q between it and the outer contour curve of the sole area R (x R ,y R ), click q L ,qR It is the leftmost and rightmost dividing points between the toes and the sole of the foot;
[0079] Step S33: Select points {B1, B2, B3, B4, q L ,q R}, a fifth-order polynomial is fitted, and the curve is used to represent the shape information of the toe front edge. The set of points on the toe front edge after fitting is denoted as f.
[0080] Step S4: Expression of the contour shape of each toe. The expression of the contour shape of each toe also includes the following steps:
[0081] Step S41: setting the grayscale values of the pixels on the original sole grayscale image corresponding to the toe boundary area contour W and the toe front edge point set f to 0, so as to completely separate the sole and toes, and each adhered toe, and the processed image is recorded as I1;
[0082] Step S42: Select the dividing point q on both sides of the big toe L (x L ,y L ), s1(x1,y1), find the horizontal coordinate on the outer contour of the sole The corresponding point of the big toe is (x0, y0). The point o1 with the coordinates (x0, y0+30) is found on the image I1, which is an internal point of the big toe. The internal points of the remaining toes are selected in the same way. Let the initial point set E of the five toes be t ={o t}, where t = 1, 2, 3, 4, 5;
[0083] Step S43: E t ={o t Each point in} is a seed point, and the region growing method is used to obtain each toe region image. The snake algorithm is used to extract the outer contour of the toe region image to obtain the contour expression of each toe.
[0084] In the present application, as a preferred embodiment, the sole image is cut at a height ratio of 2 / 5 to obtain a grayscale image I0 of the toe area;
[0085] Assume that the candidate point set V of the toe boundary region is initially empty; traverse each point on the grayscale image I0, and add the point to the point set V if the point meets one of the following conditions: the grayscale value of the point is less than the average grayscale value of the grayscale image I0, and is the smallest among the M0 points in the left and right neighborhoods in the x direction, and the M0 value is 30 in the implementation; or,
[0086] The gray value is zero, and the number of gray values greater than 0 among the M1 points on the left side and the M2 points on the right side in the x direction exceeds a predetermined threshold value M3. In implementation, M1, M2≤180, and M3 is 1.
[0087] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0088] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments. In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways.
[0089] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for expressing the plantar contour, characterized in that: The following steps are involved: S1: Preprocessing the sole image and extracting the outer contour of the sole; the step S1 also includes the following steps: S11: removing the background of the sole image and graying it; since the sole area has similar color tones, the original image containing the sole is converted from the RGB color space to the HSV color space, and threshold ranges are set for the H value, S value, and V value of the image to separate the foreground and background areas; based on the largest connected area in the foreground, an image containing only the sole is intercepted from the original image containing the sole and grayed out as a sole image, which is used as a basic image for subsequent processing; S12: Angle correction of the plantar image: obtaining the angle of maximum projection by Radon transformation as the main direction of the plantar image, and performing angle correction on the entire plantar image according to the angle between the main direction of the plantar image and the horizontal direction; S13: extracting the outer contour of the sole of the foot on the sole image; taking the circumscribed rectangle of the sole area as the initial contour, and iterating through the snake algorithm, approaching the outer contour of the sole of the foot in the direction of decreasing contour energy, and finally obtaining the outer contour shape of the sole area; S2: expressing the shape of each toe boundary area of the sole image; the step S2 further includes the following steps: S21: Determine the demarcation points of each toe; perform Gaussian smoothing on the outer contour of the sole extracted in step S1 through a Gaussian filter, and the points on the smoothed contour line are: s={x(c),y(c)|c=1,2,…,N}; Where N represents the number of points on the contour; Traverse all points on the smoothed contour line in a clockwise direction, calculate the cosine value of the angle between the point on the contour and the line connecting the points on both sides of the point on the contour line, and select the four most sharp points locally as the four dividing points of the toes. The specific process includes: S211: Calculate the sharpness of each point on the contour; taking a point (x(c), y(c)) on the contour line as an example, its sharpness is defined as: Where k represents the number of interval points; S212: Perform non-negative local minimum suppression on the points on the contour according to their corresponding sharpness, that is, if the sharpness corresponding to a point on the contour is greater than zero and greater than the sharpness of other points in the local window, it is marked as a candidate point for the toe demarcation point; the local window is set to 90×200; S213: Determine the toe demarcation point; sort the points marked as candidate points on the contour in descending order of sharpness, and take the first four points as the four demarcation points, denoted as W r ={s r (x r ,y r ),r=1,2,3,4},s r It is the dividing point of the toes; S22: Representation of the shape of the toe gap area; s r (x r ,y r ), r=1,2,3,4 are the seed points, and the point sets of four toe boundary areas are selected from the point set V by region growing method, which are recorded as W={W1,W2,W3,W4}; the plantar image is cut at a height ratio of 2 / 5 to obtain the grayscale image I0 of the toe area; Assume that the candidate point set V of the toe boundary region is initially empty; traverse each point on the grayscale image I0, and add the point to the point set V if the point meets one of the following conditions: the grayscale value of the point is less than the average grayscale value of the grayscale image I0, and is the smallest among the M0 points in the left and right neighborhoods in the x direction, and the M0 value is 30 in the implementation; or, The gray value is zero, and the number of gray values greater than 0 among the M1 points on the left and the M2 points on the right in the x direction exceeds a predetermined threshold value M3. In the implementation, M1, M2 ≤ 180, and M3 is 1; S3: Expression of the shape characteristics of the front edge of the toes, where the front edge of the toes refers to the edge where the front end of each toe joint on the sole of the foot connects with the sole; the structural expression steps of the front edge of the toes are: S31: For each toe boundary area point set W obtained z (z=1,2,3,4) to traverse, retain the point with the largest ordinate among the points with the same abscissa, and select the point set connecting each toe seam area with the sole of the foot, which are recorded as B1, B2, B3, B4; S32: Perform straight line fitting on point B1 to obtain an approximate straight line l1, and find the intersection point q between the approximate straight line l1 and the outer contour curve of the sole area. L (x L ,y L ); Similarly, perform straight line fitting on point {B3, B4} to obtain the approximate straight line l2, and find the intersection point q between it and the outer contour curve of the sole area R (x R ,y R ), click q L ,q R It is the leftmost and rightmost dividing points between the toes and the sole of the foot; S33: Select points {B1, B2, B3, B4, q L ,q R }, a fifth-order polynomial is fitted, and the curve is used to represent the shape information of the toe front edge. The set of points on the toe front edge after fitting is recorded as f S4: expressing the contour shape of each toe; the expression of the contour shape of each toe also includes the following steps: S41: setting the grayscale values of the pixels on the original sole grayscale image corresponding to the toe boundary area contour W and the toe front edge point set f to 0, so as to completely separate the sole and toes, and each adhered toe, and the processed image is recorded as I1; S42: Select the dividing point q on both sides of the big toe L (x L ,y L ), s1(x1,y1), find the horizontal coordinate on the outer contour of the sole The corresponding point of the big toe is (x0, y0). The point o1 with the coordinates (x0, y0+30) is found on the image I1, which is an internal point of the big toe. The internal points of the remaining toes are selected in the same way. Let the initial point set E of the five toes be t ={o t }, where t = 1, 2, 3, 4, 5; S43: E t ={o t Each point in} is a seed point, and the region growing method is used to obtain each toe region image. The snake algorithm is used to extract the outer contour of the toe region image to obtain the contour expression of each toe.
