A kind of erythema recognition methods
Technical field
The present invention relates to medical detection technology, specifically a kind of erythema recognition methods.
Background technique
Hand-foot-and-mouth disease is the infectious disease being caused by enterovirus, and mostly occurs in 5 years old or less children, can cause hand, foot, oral cavity
The erythema at equal positions, a small number of infants can cause the complication such as myocarditis, pulmonary edema, aseptic meningoencephalitis.Individual children with serious disease
If progression of the disease is fast, lead to death.Hand-foot-and-mouth disease has infectiousness, in places such as kindergarten, the schools that children concentrate, is easy
Cross-infection, therefore children's progress hand-foot-and-mouth disease inspection and preliminary judgement to entering garden, entering school occurs, prevents doubtful hand-foot-and-mouth disease
Children enter garden, enter school and just become the main means to guard against cross infection.
Since an obvious characteristic at hand-foot-and-mouth disease initial stage is exactly long erythema on hand, fields such as kindergarten, school at present
Generallyd use manual type, arrange school physician and teacher according on hand whether long erythema, brothers are carried out to the children for entering garden, entering school
Stomatosis inspection and preliminary judgement, but there is low efficiency in the mode for manually checking and judging, can greatly increase school physician and religion
The workload of teacher, in the period that children enter garden, enter school, due to more than children and parent's number and personnel concentrate, kindergarten and school
Be difficult to garden is entered to each, the children that enter school go through, be extremely easy to appear careless omission.
Summary of the invention
The purpose of the present invention is to provide a kind of erythema recognition methods, to solve the problems mentioned in the above background technology.
To achieve the above object, the invention provides the following technical scheme:
A kind of erythema recognition methods comprising the steps of:
A, image is obtained;
B, hand region detection is carried out to image, obtains hand region;
C, the hand region rgb image data collected is converted into HSV image data;
D, the threshold value of chrominance component H and saturation degree component S are set;
E, according to the threshold process image pixel of setting, the binary image in doubtful erythema region is obtained;
F, denoising is carried out to binary image, then carries out erosion operation, obtains new binary image;
G, Connected area disposal$ is done to new binary image, obtains multiple connected domains;
H, non-erythema connected domain is filtered according to connected component, to obtain erythema region.
As further technical solution of the present invention: the mode that image is obtained in the step A is set by image capture
Standby acquisition, or transmitted by data and receive or read from storage device.
As further technical solution of the present invention: the step A also needs to carry out image drop to image after obtaining image
It makes an uproar pretreatment.
As further technical solution of the present invention: the denoising of the step F uses opening operation method.
As further technical solution of the present invention: the connected component of the step H includes size, extensibility
And/or circle.
As further technical solution of the present invention: the step D is specifically included: the max-thresholds of setting chrominance component H
The max-thresholds Smax and minimum threshold Smin of Hmax and minimum threshold Hmin and saturation degree component S.
As further technical solution of the present invention: according to the mark of the threshold process image pixel of setting in the step E
It is quasi- as follows: if the chrominance component H' of image pixel meets Hmin < H' < Hmax, and saturation degree component S' meet Smin < H' <
Smax then makes the pixel value of the image pixel be equal to 255;Otherwise, it is equal to the pixel value of the image pixel.
Compared with prior art, the beneficial effects of the present invention are: erythema recognition methods of the present invention utilizes image recognition technology,
Inspection, judgement by image to garden, the children's progress hand erythema for entering school is entered, identify children on hand with erythema, phase
Than greatly improving the efficiency in manual type, the workload of school physician and teacher are reduced, is avoided and is entered garden in children, enters school
Period, it is difficult to accomplish to enter each garden, enter the problem of children in school go through, are easy to appear careless omission.
Detailed description of the invention
Fig. 1 is flow chart of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Embodiment 1: referring to Fig. 1, a kind of erythema recognition methods comprising the steps of:
A, it is acquired by image capture device, or is transmitted data and receive or obtained by way of being read in storage device
Take image;And image noise reduction pretreatment is carried out to image;
B, hand region detection is carried out to image, obtains hand region;
C, the hand region rgb image data collected is converted into HSV image data;
D, the threshold value of chrominance component H and saturation degree component S are set;The max-thresholds Hmax and minimum of chrominance component H are set
The max-thresholds Smax and minimum threshold Smin of threshold value Hmin and saturation degree component S.
E, according to the threshold process image pixel of setting, the binary image in doubtful erythema region is obtained;
F, denoising is carried out to binary image using opening operation method, then carries out erosion operation, obtains new two-value
Change image;
G, Connected area disposal$ is done to new binary image, obtains multiple connected domains;
H, non-erythema connected domain is filtered according to connected component, to obtain erythema region.Wherein, connected component includes
Size, extensibility and/or circle.
Embodiment 2, on the basis of embodiment 1, in step E such as according to the standard of the threshold process image pixel of setting
Under: if the chrominance component H' of image pixel meets Hmin < H' < Hmax, and saturation degree component S' meets Smin < H' < Smax, then
The pixel value of the image pixel is set to be equal to 255;Otherwise, it is equal to the pixel value of the image pixel.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie
In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power
Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims
Variation is included within the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.
In addition, it should be understood that although this specification is described in terms of embodiments, but not each embodiment is only wrapped
Containing an independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should
It considers the specification as a whole, the technical solutions in the various embodiments may also be suitably combined, forms those skilled in the art
The other embodiments being understood that.