Human body chest circumference and waist circumference measuring method based on random optimization strategyTechnical Field
The invention belongs to the field of intelligent energy bodies for clothing production, and particularly relates to a method for measuring chest circumference and waist circumference of a human body based on a random optimization strategy.
Background
With the improvement of the living standard of people in China, the clothing industry has more and more demands on customization by customers. For the existing clothing customization, mainly professional measuring personnel go to the door or measure in a store, which inevitably causes great influence of time and space, and because the measuring modes for measuring different clothes are different, the measuring methods of different measuring personnel are different, and the problems hinder the realization of clothing customization. Aiming at the problem, the method for measuring the detailed body size data of the user in a non-contact manner is implemented by utilizing the conventional artificial intelligence technology. The existing measuring method mainly utilizes a large instrument to carry out three-dimensional scanning type measurement in a closed space, and although the measuring effect is good, the method has high cost and is still greatly influenced by time and space. Meanwhile, a plurality of methods for obtaining the size of the human body by measuring the body clothes and photographing exist at present, but most methods are complex in calculation, and the measurement result is poor.
Disclosure of Invention
In order to solve the defects and shortcomings in the prior art, the invention provides a method for measuring the chest circumference and the waist circumference of the human body based on a random optimization strategy, which has the advantages of high measurement speed, more accurate measurement result, no influence of time domain and region, wider application range, great significance for the garment customization industry, and capability of meeting the requirements of agility customized production of garments.
The invention adopts the following measurement technical scheme: a method for measuring the chest circumference and waist circumference of a human body based on a random optimizing strategy comprises the following steps:
s1, starting the camera through the mobile terminal equipment;
s2 the measurer wears the special measuring clothes;
s3, the front and the side of a measurer are photographed by starting a camera by using mobile terminal equipment, and the pictures are stored on the photographing equipment;
s4, taking a photo of the measurer through the mobile terminal equipment, and uploading the photo to a server or a cloud server through a communication technology;
s5, the photos of the front and the side of the human body are processed and analyzed by a random optimizing strategy, and the chest circumference and the waist circumference of the human body are measured.
Preferably, the body-measuring characteristics in step S2 are as follows:
1) the body measuring clothes are made of elastic close-fitting clothes, have enough outstanding elastic capacity and are suitable for most people; the color of the fabric can be brown, black or other dark colors;
2) the distance from the neckline downwards to the range of 22% -27% of the length of the measuring body garment, 2.5-4.5 cm away from the central line of the measuring body garment respectively, two non-retractable white circles made of special materials are arranged as mark points, the diameter range of the two white circles can be set to be 1-5 cm, a straight line formed by the centers of the two circles can be perpendicular to the central line of the measuring body garment, the white circles are permanently attached to the front side and the back side of the measuring body garment through different garment making processes, and a circular ring formed by the four circles on the front side and the back side together is perpendicular to the central line of the front back of the measuring body garment;
3) the distance from the bottom of the clothes to the upper side is within an interval of 22% -27% of the length of the measuring body clothes, two non-retractable white circles made of special materials are arranged at positions 2.5-4.5 cm away from the center line of the measuring body clothes respectively, the diameter range of the two white circles can be set to be 1-5 cm, a straight line formed by the centers of the two circles can be perpendicular to the center line of the measuring body clothes, the white circles are permanently attached to the front side and the back side of the measuring body clothes through different clothes making processes, and a circular ring formed by the four circles on the front side and the back side together is perpendicular to the center line of the front back of the measuring body clothes;
4) length l of body-measuring clothes from midline position0The length of the measuring body is known to be between 5 and 20 centimeters, and the length l of the measuring body clothes before the measuring body clothes are not stretched in the transverse dimension of the marking point1Known and it is between 70 and 100 cm.
Preferably, in step S3, the front and side photographing of the upper half of the body of the measurer is implemented by using a camera on the mobile terminal device, the camera is kept parallel to the measurer to implement the front photographing under the condition that the measurer and the background environment meet a certain condition, and after the front photographing is finished, the camera position and the measurer position are kept unchanged, and the measurer is rotated by 90 degrees only to perform the side photographing.
Preferably, the specific steps of step S5 are as follows,
1) through an image analysis technology, realizing binarization processing on the photo on a rear-end measuring platform;
2) fitting human body into an ellipse, establishing a coordinate system, and respectively obtaining the long axis a of the initial ellipse in the front photograph and the side photograph0Minor axis b0;
3) Through an artificial intelligence technology, the identification and positioning of mark points of the measuring clothes in the picture are realized on a back-end measuring platform, and the coordinates of the mark points are obtained;
4) obtaining the arc length l 'from the mark point to the top point of the ellipse by a circle cutting method'0All right (1)Approximating the formula with an ellipse perimeter: 2 π b +4(a-b) (a, b are respectively the major and minor axes of the ellipse) gives the perimeter l 'of the ellipse'1;
5) The long shaft a obtained in the step 2)
0Minor axis b
0In the above-mentioned step 4), the initial value is obtained
In the major axis a
0Minor axis b
0Nearby, changing its value, and optimizing for a specified number of times to obtain
Major axis a 'and minor axis b' of the ellipse;
6) and calculating to obtain the data of the chest circumference and the waist circumference by using the major axis a 'and the minor axis b' of the finally obtained ellipse.
Compared with the existing measuring method, the measuring method has the advantages of high measuring speed, more accurate measuring result, no influence of time domain and region, wider application range, great significance for the garment customization industry and capability of meeting the requirements of garment agility customization production.
Drawings
FIG. 1 is a schematic representation of a human body fitting scheme in accordance with the present invention;
fig. 2 is a schematic flow chart of a measurement method according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the attached drawings, but the present invention is not limited thereto.
A method for measuring the chest circumference and waist circumference of a human body based on a random optimizing strategy comprises the following steps:
s1, starting the camera through the mobile phone (tablet personal computer or other mobile terminal equipment);
s2 the measurer wears the special measuring clothes;
s3, starting a camera by a mobile phone (a tablet personal computer or other intelligent mobile terminal equipment) to shoot the front and the side of a measurer, and storing the pictures on the shooting equipment;
s4, taking a photo of the measurer through a mobile phone (a tablet personal computer or other intelligent mobile terminal equipment), and uploading the photo to a server or a cloud server through a communication technology (wired/wireless internet);
s5, the photos of the front and the side of the human body are processed and analyzed by a random optimizing strategy, and the chest circumference and the waist circumference of the human body are measured.
The body measurement properties in step S2 are as follows:
1) the body measuring clothes are made of elastic close-fitting clothes, and the elastic capability is outstanding enough, so that the body measuring clothes are suitable for most people. The fabric color can be brown, black or other dark colors.
2) Two non-retractable white circles made of special materials are arranged at the positions 2.5-4.5 cm away from the central line of the measuring body garment and the distance from the neckline to the lower part is 22% -27% of the length of the measuring body garment, the diameter range of the two white circles can be set to be 1-5 cm, and a straight line formed by the centers of the two circles can be perpendicular to the central line of the measuring body garment. The white circles are permanently attached to the front side and the back side of the body measuring clothes through different clothes manufacturing processes, and a circular ring formed by the four circles on the front side and the back side is perpendicular to the central line of the front side and the back side of the body measuring clothes.
3) Two non-retractable white circles made of special materials are arranged at the positions 2.5-4.5 cm away from the central line of the measuring body garment and the distance from the bottom of the measuring body garment to the upper side is 22% -27% of the length of the measuring body garment, the diameter range of the two white circles can be set to be 1-5 cm, and a straight line formed by the centers of the two circles can be perpendicular to the central line of the measuring body garment. The white circles are permanently attached to the front side and the back side of the body measuring clothes through different clothes manufacturing processes, and a circular ring formed by the four circles on the front side and the back side is perpendicular to the central line of the front side and the back side of the body measuring clothes.
4) Length l of body-measuring clothes from midline position0The length of the measuring body is known to be between 5 and 20 centimeters, and the length l of the measuring body clothes before the measuring body clothes are not stretched in the transverse dimension of the marking point1Known and it is between 70 and 100 cm.
In step S3, the front and the side of the upper body of the measurer are photographed by using a camera on a mobile phone (tablet computer or other intelligent mobile terminal device). Under the condition that a measurer and a background environment meet a certain condition, the camera is enabled to be parallel to the measurer, and front photographing is achieved. After the front photographing is finished, the camera position and the position of the measurer are kept unchanged, and the measurer rotates by 90 degrees to perform side photographing.
As shown in fig. 1 and 2, the specific flow in step S5 is as follows,
1) through an image analysis technology, binarization processing of the photo is realized on a back-end (cloud) volume measuring platform;
2) fitting human body into an ellipse, establishing a coordinate system, and respectively obtaining the long axis a of the initial ellipse in the front photograph and the side photograph0Minor axis b0The intersection point of the long axis and the short axis is taken as a coordinate axis dot (0, 0);
3) through an artificial intelligence technology, the identification and positioning of mark points of the volume measuring clothes in the photo are realized on a back-end (cloud) volume measuring platform, and the x coordinate x of the mark points is obtained in the front image after binaryzation0Acquiring the y coordinate b of the mark point in the binarized side view0;
4) Obtaining the arc length l 'from the mark point to the top point of the ellipse by a circle cutting method'0. Using an ellipse perimeter approximation formula: 2 π b +4(a-b) (a, b are respectively the major and minor axes of the ellipse) gives the perimeter l 'of the ellipse'1;
5) The long axis a obtained in the step 2)
0Minor axis b
0In the above-mentioned step 4), the initial value is obtained
In the major axis a
0Minor axis b
0Nearby, changing its value, and optimizing for a specified number of times to obtain
The major axis a 'and the minor axis b' of the ellipse.
6) And calculating to obtain the data of the chest circumference and the waist circumference by using the major axis a 'and the minor axis b' of the finally obtained ellipse.