Skin hemangioma non-contact detection method, system, computer equipment, and medium
Through the deep learning recognition model and the auto-focusing optical lens module, a non-contact detection method of skin hemangioma is realized, which solves the hidden risks of contact detection in the existing technology and achieves high accuracy and safety.
Patent Information
- Application Number
- CN202111490326.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-08
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-12-08
AI Technical Summary
Existing hemangioma detection methods require contact with the human body, which is troublesome and risky, and cannot effectively detect skin hemangioma.
Use the deep learning recognition model to perform non-contact detection on face images to obtain the size and number of hemangioma. Use an optical lens module with an automatic focusing function to adjust the lens focal length, calculate the actual size of the hemangioma, and achieve non-contact detection.
The recognition accuracy of hemangioma is not less than 90%, there is no contact risk, it is convenient to detect hemangioma on human facial skin, and it provides a safe and efficient detection method.
Smart Images

Figure CN114119598B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical cosmetic skin detection, and more specifically, to a non-contact detection method, system, computer equipment, and medium for skin hemangioma. Background Art
[0002] Face recognition is a biometric technology that identifies people based on their facial features. It uses a camera or a webcam to collect images or video streams containing faces, and automatically detects and tracks faces in the images, and then performs a series of face-related technologies on the detected faces. It is usually also called portrait recognition or facial recognition. Currently, face recognition technology is relatively mature, but it is still not possible to detect a person's skin quality and skin problems through the face in the image. Skin quality refers to the special properties and characteristics formed by the diversity of human skin.
[0003] Symptoms of hemangioma as port-wine stain usually appear at birth or shortly after birth, and are prone to occur on the face, neck and scalp. Most of them are unilateral, occasionally bilateral, and sometimes involve the mucosa. In the early stage of the lesion, there are several or different sizes of light red, dark red or purple-red patches, which are irregular in shape, with clear boundaries and not protruding from the skin surface. Capillary dilation can be seen, which partially or completely fade when pressed, and the surface is smooth. Erythematous lesions with fixed positions can be seen on the skin surface, with temporary fading after light pressure; lumps raised on the skin tissue can be reduced by pressing; diagnostic puncture of tumors with positive perfusion signs can obtain whole blood or bloody lymphatic tissue fluid; arterial hemangioma can have clear arterial pulsation.
[0004] Current hemangioma detection usually requires contact with the human body for detection. This detection method is rather cumbersome and has certain risks, so there is still room for improvement. Summary of the invention
[0005] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a non-contact detection method, system, computer equipment, and medium for skin hemangioma, which has the advantages of convenient detection of skin hemangioma on the human face without contact risk.
[0006] The above technical objectives of the present invention are achieved through the following technical solutions: a non-contact detection method for skin hemangioma, comprising:
[0007] Input hemangioma image samples in advance to learn the recognition of hemangiomas and obtain a hemangioma recognition model;
[0008] Get face image;
[0009] The face image is identified and judged by the hemangioma recognition model; if it is determined that a hemangioma exists, the size and number of the hemangioma are obtained according to the face image; and each hemangioma in the face image is marked and displayed.
[0010] Optionally, the step of pre-inputting a hemangioma image sample to perform hemangioma recognition learning includes:
[0011] At least 10 manually diagnosed hemangioma image samples were input in advance;
[0012] All hemangioma image samples are divided into regions to obtain multiple problem pixel regions and multiple normal pixel regions;
[0013] Subtract the pixel average value of each normal pixel area from the pixel average value of one of the problem pixel areas to obtain the color difference value of the problem pixel area;
[0014] All color differences are compared, and the minimum color difference is used as the color difference threshold for determining the presence of a hemangioma to obtain a hemangioma recognition model.
[0015] Optionally, obtaining the size and number of hemangiomas according to the face image includes:
[0016] Perform image recognition on the face image to obtain the number of hemangiomas;
[0017] Pixel recognition and calculation of each hemangioma are performed to obtain the maximum horizontal span and the maximum vertical span of each hemangioma;
[0018] The area of each hemangioma was calculated based on its maximum horizontal span and maximum vertical span.
[0019] Optionally, performing pixel recognition calculation on each hemangioma to obtain the maximum horizontal span and the maximum vertical span of each hemangioma includes:
[0020] Divide the face image into pixels, set the face image row sequence to be from top to bottom, and the column sequence to be from left to right;
[0021] Determine the horizontal pixel column difference between the starting point pixel with the smallest serial number in the left column and the ending point pixel with the largest serial number in the right column of each hemangioma in the face image to obtain a first pixel number, multiply the first pixel number by the scale of each pixel point to obtain a first image space distance of the hemangioma, and multiply the first image space distance of the hemangioma by the imaging ratio of the lens module to obtain a maximum horizontal span of the hemangioma;
[0022] Determine the vertical pixel row difference between the starting point pixel with the smallest number in the upper row and the ending point pixel with the largest number in the lower row of each hemangioma in the facial image to obtain the second pixel number, multiply the second pixel number by the scale of each pixel point to obtain the second image space distance of the hemangioma, and multiply the second image space distance of the hemangioma by the imaging ratio of the lens module to obtain the vertical maximum span of the hemangioma.
[0023] Optionally, the area of each hemangioma is calculated according to the maximum horizontal span and the maximum vertical span of each hemangioma, including:
[0024] Surrounding the hemangioma area with a rectangular frame that is not less than the maximum horizontal span of the hemangioma and the maximum vertical span of the hemangioma;
[0025] Record the pixels within the rectangular frame and capture the image;
[0026] Convert the captured image into black and white binary bitmap, count the percentage of black pixels and white pixels, and calculate the area of the rectangular frame image.
[0027] The area of the hemangioma is obtained according to the area of the rectangular frame, the percentage of black pixels and the imaging ratio of the lens module.
[0028] Optionally, the method further includes:
[0029] The area threshold of large lesion hemangioma was set in advance;
[0030] The areas of all hemangiomas are compared with the large lesion hemangioma area threshold; if the area of the hemangioma is larger than the large lesion hemangioma area threshold, the hemangioma is determined to be a large lesion; if the area of the hemangioma is smaller than the large lesion hemangioma area threshold, the hemangioma is determined to be a small particle.
[0031] The skin hemangioma non-contact detection system includes: an image recognition learning module for pre-inputting hemangioma image samples to perform recognition learning on hemangiomas;
[0032] Image input module, used to obtain face images;
[0033] The hemangioma determination module is used to identify and determine the facial information; if it is determined that a hemangioma exists, the size and number of the hemangioma are obtained based on the facial image; and each hemangioma in the facial image is marked and displayed.
[0034] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0035] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.
[0036] In summary, the present invention has the following beneficial effects: through deep learning, the recognition accuracy of hemangioma is not less than 90%, and then the focal length of the lens is adjusted by using an optical lens module with an automatic focusing function, so that the object to be measured is clearly imaged on the sensor plane of the receiving element, and the distance from the object to be measured to the lens and the distance from the lens to the receiving plane are accurately measured, so as to obtain the imaging ratio of the lens, and then according to the imaging ratio of the lens and the size of the hemangioma in the face image, the actual size of the hemangioma can be obtained, thereby realizing the detection of hemangiomas on the face. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a schematic diagram of the process of the present invention;
[0038] Figure 2 It is a structural block diagram of the present invention when assembled;
[0039] Figure 3 1 is a diagram showing the internal structure of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings. Several embodiments of the present invention are shown in the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein.
[0041] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like 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 connection of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances. The terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.
[0042] In the present invention, unless otherwise clearly specified and limited, the first feature being "above" or "below" the second feature may include the first and second features being in direct contact, or may include the first and second features being in contact not directly but through another feature between them. Moreover, the first feature being "above", "above" and "above" the second feature includes the first feature being directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. The first feature being "below", "below" and "below" the second feature includes the first feature being directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature. The terms "vertical", "horizontal", "left", "right", "above", "below" and similar expressions are for illustrative purposes only, 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 should not be understood as limiting the present invention.
[0043] The present invention is described in detail below in conjunction with the accompanying drawings and embodiments.
[0044] The present invention provides a non-contact detection method for skin hemangioma, such as Figure 1 As shown, including:
[0045] Step 100, pre-inputting a hemangioma image sample to perform hemangioma recognition learning to obtain a hemangioma recognition model;
[0046] Step 200: Acquire a face image;
[0047] Step 300: Identify and judge the facial information through the hemangioma recognition model; if it is determined that a hemangioma exists, obtain the size and number of the hemangioma based on the facial image; mark and display each hemangioma in the facial image.
[0048] In practical applications, deep learning is first used to ensure that the recognition accuracy of hemangiomas is not less than 90%, and then the focal length of the lens is adjusted using an optical lens module with an automatic focusing function so that the object to be measured is clearly imaged on the sensor plane of the receiving element, and the distance from the object to be measured to the lens and the distance from the lens to the receiving plane are accurately measured to obtain the imaging ratio of the lens. Then, based on the imaging ratio of the lens and the size of the hemangioma in the face image, the actual size of the hemangioma can be obtained.
[0049] Furthermore, the step of pre-inputting a hemangioma image sample to perform hemangioma recognition learning includes:
[0050] At least 10 manually diagnosed hemangioma image samples were input in advance;
[0051] All hemangioma image samples are divided into regions to obtain multiple problem pixel regions and multiple normal pixel regions;
[0052] Subtract the pixel average value of each normal pixel area from the pixel average value of one of the problem pixel areas to obtain the color difference value of the problem pixel area;
[0053] All color differences are compared, and the minimum color difference is used as the color difference threshold for determining the presence of a hemangioma to obtain a hemangioma recognition model.
[0054] In practical applications, 1000 hemangioma image samples are first input, and facial hemangiomas have been identified in the hemangioma image samples. Then, all the hemangioma image specimens are divided into regions, and the regions with facial hemangiomas are divided into problem pixel regions, and the regions without hemangiomas are divided into normal pixel regions. The pixels of all normal pixel regions are averaged, and the pixel average of each problem pixel region is subtracted from the pixel average of all normal pixel regions to obtain the color difference of each hemangioma in the corresponding hemangioma image specimen. The color difference of all hemangiomas in all hemangioma image samples is compared, and the minimum color difference is taken as the color threshold for determining the presence of hemangiomas to obtain a hemangioma recognition model. In subsequent use, the hemangioma recognition model can be used to determine whether the color difference between each color abnormal region and the color normal region in the face image is greater than the color threshold to determine whether a hemangioma exists.
[0055] Optionally, obtaining the size and number of hemangiomas according to the face image includes:
[0056] Perform image recognition on the face image to obtain the number of hemangiomas;
[0057] Pixel recognition and calculation of each hemangioma are performed to obtain the maximum horizontal span and the maximum vertical span of each hemangioma;
[0058] The area of each hemangioma was calculated based on its maximum horizontal span and maximum vertical span.
[0059] In practical applications, when identifying hemangiomas, the identified hemangiomas can be numbered to obtain the number of hemangiomas; then pixel recognition is performed on each hemangioma to obtain the maximum horizontal span and vertical maximum span of each hemangioma, and the area of each hemangioma is calculated to measure the size of the hemangioma.
[0060] Optionally, performing pixel recognition calculation on each hemangioma to obtain the maximum horizontal span and the maximum vertical span of each hemangioma includes:
[0061] Divide the face image into pixels, set the face image row sequence to be from top to bottom, and the column sequence to be from left to right;
[0062] Determine the horizontal pixel column difference between the starting point pixel with the smallest serial number in the left column and the ending point pixel with the largest serial number in the right column of each hemangioma in the face image to obtain a first pixel number, multiply the first pixel number by the scale of each pixel point to obtain a first image space distance of the hemangioma, and multiply the first image space distance of the hemangioma by the imaging ratio of the lens module to obtain a maximum horizontal span of the hemangioma;
[0063] Determine the vertical pixel row difference between the starting point pixel with the smallest number in the upper row and the ending point pixel with the largest number in the lower row of each hemangioma in the facial image to obtain the second pixel number, multiply the second pixel number by the scale of each pixel point to obtain the second image space distance of the hemangioma, and multiply the second image space distance of the hemangioma by the imaging ratio of the lens module to obtain the vertical maximum span of the hemangioma.
[0064] In practical applications, the face image is first sorted from top to bottom in row order and from left to right in column order. Then, for each hemangioma to be measured, the pixel with the smallest column number at the leftmost end of the image is taken as the starting point, and the pixel with the largest column number at the rightmost end is taken as the ending point. The pixel column difference between the pixel with the smallest column number and the pixel with the largest column number is counted to obtain the first pixel number. Then, the first pixel number is multiplied by the scale of each pixel and then by the imaging ratio of the lens module to obtain the maximum horizontal span of the hemangioma.
[0065] Then take the pixel with the smallest row number at the top as the starting point and the pixel with the largest row number at the bottom as the ending point, count the pixel row differences between the pixel with the smallest row number and the pixel with the largest row number to get the second pixel number, multiply the second pixel number by the scale of each pixel and then by the imaging ratio of the lens module to get the maximum vertical span of the hemangioma.
[0066] Further, the area of each hemangioma is calculated according to the maximum horizontal span and the maximum vertical span of each hemangioma, including:
[0067] Surrounding the hemangioma area with a rectangular frame that is not less than the maximum horizontal span of the hemangioma and the maximum vertical span of the hemangioma;
[0068] Record the pixels within the rectangular frame and capture the image;
[0069] Convert the captured image into black and white binary bitmap, count the percentage of black pixels and white pixels, and calculate the area of the rectangular frame image.
[0070] The area of the hemangioma is obtained according to the area of the rectangular frame, the percentage of black pixels and the imaging ratio of the lens module.
[0071] In practical applications, since the shape of the hemangioma is irregular, when calculating the area of the hemangioma, the hemangioma area can be surrounded by a rectangular frame consisting of a horizontal maximum span and a vertical maximum span that are not less than the hemangioma. The image of the rectangular frame is intercepted and converted to black and white, and the hemangioma is converted to black and normal skin is white. Therefore, the area of the hemangioma can be obtained by calculating the percentage of black pixels, multiplying it by the area of the rectangular frame and then multiplying it by the imaging ratio of the lens module.
[0072] Furthermore, the method further comprises:
[0073] The area threshold of large lesion hemangioma was set in advance;
[0074] The areas of all hemangiomas are compared with the large lesion hemangioma area threshold; if the area of the hemangioma is larger than the large lesion hemangioma area threshold, the hemangioma is determined to be a large lesion; if the area of the hemangioma is smaller than the large lesion hemangioma area threshold, the hemangioma is determined to be a small particle.
[0075] In practical applications, in order to facilitate the identification of large lesion hemangiomas, a large lesion hemangioma area threshold is set. If the measured hemangioma area is larger than the large lesion hemangioma area threshold, it means that the hemangioma is a large lesion and is marked in the face image.
[0076] like Figure 2 As shown, the present invention also provides a non-contact detection system for skin hemangioma, comprising:
[0077] The image recognition learning module 10 is used to input the image sample of the hemangioma in advance to learn the recognition of the hemangioma and obtain the hemangioma recognition model;
[0078] An image input module 20, used to obtain a face image;
[0079] The hemangioma determination module 30 is used to identify and determine the facial information through the hemangioma recognition model; if it is determined that a hemangioma exists, the size and number of the hemangioma are obtained according to the facial image; and each hemangioma in the facial image is marked and displayed.
[0080] Furthermore, the image recognition learning module 10 includes:
[0081] A sample input unit, used to input in advance at least 10 images of hemangioma images that have been confirmed by humans;
[0082] A region division unit is used to divide all hemangioma image samples into regions to obtain a plurality of problem pixel regions and a plurality of normal pixel regions;
[0083] A difference calculation unit, used for subtracting the pixel average values of each normal pixel area from the pixel average value of one of the problem pixel area to obtain a color difference value of the problem pixel area;
[0084] The color judgment unit is used to compare all color differences and use the minimum color difference as a color difference threshold for judging the existence of a hemangioma to obtain a hemangioma recognition model.
[0085] Furthermore, the hemangioma determination module 30 includes:
[0086] A quantity calculation unit, used for performing image recognition on the face image to obtain the number of hemangiomas;
[0087] A length and width calculation unit, used for performing pixel recognition calculation on each hemangioma to obtain the maximum horizontal span and the maximum vertical span of each hemangioma;
[0088] The area calculation unit is used to calculate the area of each hemangioma according to the maximum horizontal span and the maximum vertical span of each hemangioma.
[0089] Furthermore, the area calculation unit includes:
[0090] A frame forming unit, used to surround the hemangioma area with a rectangular frame that is not less than the maximum horizontal span of the hemangioma and the maximum vertical span of the hemangioma;
[0091] An image capture unit, used for recording pixels within the rectangular frame and capturing an image;
[0092] A binary conversion unit is used to convert the captured image into a bitmap black and white binary image, count the percentage of black pixels and white pixels therein, and calculate the area of the rectangular frame image;
[0093] The area calculation unit is used to obtain the area of the hemangioma according to the area of the rectangular frame, the percentage of black pixels and the imaging ratio of the lens module.
[0094] The specific definition of the skin hemangioma non-contact detection system can be found in the definition of the skin hemangioma non-contact detection method above, which will not be repeated here. The various modules of the above-mentioned skin hemangioma non-contact detection system can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0095] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 3As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. When the computer program is executed by the processor, a non-contact detection method for skin hemangioma is implemented.
[0096] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0097] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: pre-inputting a hemangioma image sample to identify and learn the hemangioma to obtain a hemangioma recognition model; obtaining a face image; identifying and judging the face information through the hemangioma recognition model; if it is determined that a hemangioma exists, obtaining the size and number of the hemangioma based on the face image; marking and displaying each hemangioma in the face image.
[0098] In one embodiment, the method of pre-inputting hemangioma image samples to learn to identify hemangiomas includes: pre-inputting at least 10 artificially confirmed hemangioma image samples, dividing all the hemangioma image samples into regions to obtain multiple problem pixel regions and multiple normal pixel regions, subtracting the pixel average values of each normal pixel region from the pixel average value of one of the problem pixel regions to obtain the color difference value of the problem pixel region; comparing all the color differences, and taking the minimum color difference value as the color difference threshold for determining the existence of a hemangioma to obtain a hemangioma recognition model.
[0099] In one embodiment, the method of obtaining the size and number of hemangiomas based on a facial image includes: performing image recognition on the facial image to obtain the number of hemangiomas; performing pixel recognition on each hemangioma to calculate the maximum horizontal span and maximum vertical span of each hemangioma; and calculating the area of each hemangioma based on the maximum horizontal span and maximum vertical span of each hemangioma.
[0100] In one embodiment, the pixel identification and calculation of each hemangioma to obtain the maximum horizontal span and maximum vertical span of each hemangioma includes: pixel division of the facial image, setting the facial image row sequence to be from top to bottom and the column sequence to be from left to right; determining the horizontal pixel column difference from the starting point pixel with the smallest column number on the left side of each hemangioma in the facial image to the ending point pixel with the largest column number on the right side to obtain a first pixel number, multiplying the first pixel number by the scale of each pixel point to obtain a first image space distance of the hemangioma, and multiplying the first image space distance of the hemangioma by the imaging ratio of the lens module to obtain the maximum horizontal span of the hemangioma; determining the vertical pixel row difference from the starting point pixel with the smallest row number on the upper end to the ending point pixel with the largest row number on the lower end of each hemangioma in the facial image to obtain a second pixel number, multiplying the second pixel number by the scale of each pixel point to obtain a second image space distance of the hemangioma, and multiplying the second image space distance of the hemangioma by the imaging ratio of the lens module to obtain the maximum vertical span of the hemangioma.
[0101] In one embodiment, the area of each hemangioma is calculated based on the maximum horizontal span and the maximum vertical span of each hemangioma, including: surrounding the hemangioma area with a rectangular frame that is not less than the maximum horizontal span and the maximum vertical span of the hemangioma; recording the pixels within the rectangular frame and capturing an image; performing a bitmap black-and-white binary conversion on the captured image, and counting the percentages of black pixels and white pixels therein; calculating the area of the rectangular frame image; and obtaining the area of the hemangioma based on the area of the rectangular frame, the percentage of black pixels, and the imaging ratio of the lens module.
[0102] In one embodiment, the method further includes: presetting a large lesion hemangioma area threshold; comparing the areas of all hemangiomas with the large lesion hemangioma area threshold; if the area of the hemangioma is larger than the large lesion hemangioma area threshold, determining that the hemangioma is a large lesion; if the area of the hemangioma is smaller than the large lesion hemangioma area threshold, determining that the hemangioma is a small particle.
[0103] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0104] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0105] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. A non-contact detection method for skin hemangioma, characterized in that: include: Input hemangioma image samples in advance to learn the recognition of hemangiomas and obtain a hemangioma recognition model; The method of inputting hemangioma image samples in advance to learn the recognition of hemangiomas and obtain a hemangioma recognition model includes: inputting at least 10 artificially confirmed hemangioma image samples in advance; All hemangioma image samples are divided into regions to obtain multiple problem pixel regions and multiple normal pixel regions; Subtract the pixel average value of each normal pixel area from the pixel average value of one of the problem pixel areas to obtain the color difference value of the problem pixel area; All color differences are compared, and the minimum color difference is used as the color difference threshold for determining the existence of hemangioma to obtain a hemangioma recognition model; Get face image; The face image is identified and judged by the hemangioma recognition model; if it is determined that a hemangioma exists, the size and number of the hemangioma are obtained according to the face image; each hemangioma in the face image is marked and displayed; the obtaining the size and number of the hemangioma according to the face image includes: Perform image recognition on the face image to obtain the number of hemangiomas; Pixel recognition and calculation of each hemangioma are performed to obtain the maximum horizontal span and the maximum vertical span of each hemangioma; The area of each hemangioma was calculated based on its maximum horizontal span and maximum vertical span; The pixel recognition and calculation of each hemangioma to obtain the maximum horizontal span and the maximum vertical span of each hemangioma includes: Divide the face image into pixels, set the face image row sequence to be from top to bottom, and the column sequence to be from left to right; Determine the horizontal pixel column difference between the starting point pixel with the smallest serial number in the left column and the ending point pixel with the largest serial number in the right column of each hemangioma in the face image to obtain a first pixel number, multiply the first pixel number by the scale of each pixel point to obtain a first image space distance of the hemangioma, and multiply the first image space distance of the hemangioma by the imaging ratio of the lens module to obtain a maximum horizontal span of the hemangioma; Determine the vertical pixel row difference between the starting point pixel with the smallest number in the upper row and the ending point pixel with the largest number in the lower row of each hemangioma in the facial image to obtain the second pixel number, multiply the second pixel number by the scale of each pixel point to obtain the second image space distance of the hemangioma, and multiply the second image space distance of the hemangioma by the imaging ratio of the lens module to obtain the vertical maximum span of the hemangioma.
2. The method according to claim 1, characterized in that The area of each hemangioma is calculated according to the maximum horizontal span and the maximum vertical span of each hemangioma, including: Surrounding the hemangioma area with a rectangular frame that is not less than the maximum horizontal span of the hemangioma and the maximum vertical span of the hemangioma; Record the pixels within the rectangular frame and capture the image; Convert the captured image into black and white binary bitmap, count the percentage of black pixels and white pixels, and calculate the area of the rectangular frame image. The area of the hemangioma is obtained according to the area of the rectangular frame, the percentage of black pixels and the imaging ratio of the lens module.
3. The method according to claim 2, characterized in that Also includes: The area threshold of large lesion hemangioma was set in advance; The areas of all hemangiomas are compared with the large lesion hemangioma area threshold; if the area of the hemangioma is larger than the large lesion hemangioma area threshold, the hemangioma is determined to be a large lesion; if the area of the hemangioma is smaller than the large lesion hemangioma area threshold, the hemangioma is determined to be a small particle.
4. A non-contact detection system for skin hemangioma, characterized in that: include: An image recognition learning module is used to input hemangioma image samples in advance to learn the recognition of hemangiomas and obtain a hemangioma recognition model; Image input module, used to obtain face images; A hemangioma determination module, used to identify and determine the face image using the hemangioma recognition model; If it is determined that a hemangioma exists, the size and number of the hemangioma are obtained according to the face image; and each hemangioma in the face image is marked and displayed.
5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Skin type and skin problem identification and detection method based on facial image identification
CN104299011A
Sensitive skin detection method, image processing method, devices and equipment
CN113298753A
