CN107480616B - Skin color detection unit analysis method and system based on image analysis - Google Patents
Skin color detection unit analysis method and system based on image analysis Download PDFInfo
- Publication number
- CN107480616B CN107480616B CN201710650542.7A CN201710650542A CN107480616B CN 107480616 B CN107480616 B CN 107480616B CN 201710650542 A CN201710650542 A CN 201710650542A CN 107480616 B CN107480616 B CN 107480616B
- Authority
- CN
- China
- Prior art keywords
- gmb
- chroma
- image
- size
- mbline
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 32
- 238000004458 analytical method Methods 0.000 title claims abstract description 18
- 238000010191 image analysis Methods 0.000 title claims abstract description 18
- 238000000034 method Methods 0.000 claims abstract description 14
- 238000012545 processing Methods 0.000 claims abstract description 14
- 125000000205 L-threonino group Chemical group [H]OC(=O)[C@@]([H])(N([H])[*])[C@](C([H])([H])[H])([H])O[H] 0.000 claims description 23
- 238000004364 calculation method Methods 0.000 claims description 12
- 238000004737 colorimetric analysis Methods 0.000 abstract description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000000969 carrier Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/161—Detection; Localisation; Normalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/50—Extraction of image or video features by performing operations within image blocks; by using histograms, e.g. histogram of oriented gradients [HoG]; by summing image-intensity values; Projection analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/56—Extraction of image or video features relating to colour
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Human Computer Interaction (AREA)
- Image Analysis (AREA)
Abstract
The invention provides a skin color detection unit analysis method and system based on image analysis. Belongs to the technical field of image processing. The method designs a skin color detection unit self-adaptive determination method based on colorimetric analysis according to the characteristics of skin color detection, and can improve the algorithm execution speed and ensure higher judgment accuracy by setting the proper block size.
Description
Technical Field
The invention relates to the technical field of image processing, in particular to a skin color detection unit analysis method and system based on image analysis.
Background
With the rapid development of multimedia technology and computer network technology, video is becoming one of the mainstream carriers for information dissemination. The accurate and rapid skin color detection technology can enhance the effect of double results with little effort no matter face video retrieval or online video beautifying.
If a unified pixel-based judgment method is adopted, although the judgment is accurate, the operation speed of the judgment statement in the algorithm execution is far higher than the conventional addition, subtraction, multiplication and division speed, and the large-scale adoption of the judgment statement can greatly reduce the execution speed of the algorithm, so that the timeliness of the algorithm is influenced, and the negative effect is particularly prominent in the application of high-definition, ultrahigh-definition and high-resolution video images.
If a uniform block-based decision method is employed, the operating speed of the algorithm can be increased. Note that in practical application, scenes are often complex, and situations such as multiple persons, single person, different resolutions, and the like exist. The cured block division cannot meet the complex situation of practical application.
Disclosure of Invention
The embodiment of the invention aims to provide a skin color detection unit analysis method based on image analysis, and aims to solve the problems of low efficiency or low accuracy of the skin color detection unit analysis method in the prior art.
The embodiment of the invention is realized in such a way that a skin color detection unit analysis method based on image analysis comprises the following steps:
step 1: determining the size of the generalized block according to the image resolution;
step2 calculating a first chroma intensity variable Inuk;InukA u chroma intensity variable representing the image;
step 3: if Inu is presentkNot less than Thres, first set the sizef (gmb)k) Setting k to k +1, and then proceeding to Step 6; otherwise, go to Step 4;
wherein, sizef (gmb)k) Denotes gmbkOne-dimensional size of skin color detection unit; thres represents the threshold; gmbkRepresenting the kth square block, which is referred to as a generalized block for short, wherein the initial value of k is 1;
step 4: calculating a second chroma-strength variable Invk;InvkA v chroma intensity variable representing an image;
step 5: if Invk<Thres, then set the sizef (gmb) firstk)=clip(size(gmbk) Mbline), then setting k to k + 1; otherwise, set sizef (gmb) firstk) 1, then k is set to k + 1;
step 6: if k is less than or equal to num, then Step2 is entered; otherwise, ending;
where num denotes the number of generalized blocks into which the picture is divided by the size of the generalized block.
Another objective of an embodiment of the present invention is to provide an image analysis-based skin color detection unit analysis system, which includes:
the generalized block size confirming module is used for confirming the size of the generalized block according to the image resolution;
wherein, QVGA, VGA, 720P are the standard sizes of the images disclosed in the industry; gmbkRepresenting the kth square block, which is referred to as a generalized block for short, wherein the initial value of k is 1; size (gmb)k) One-dimensional ruler for representing generalized blockCun, cun;
a first chroma intensity variable calculation module for calculating a first chroma intensity variable, Inuk=std(u(i,j)|u(i,j)∈gmbk);
Wherein u (i, j) represents the u chroma value of the image on the ith line and the jth column; std represents the mean square error; inu (Inu)kA u chroma intensity variable representing the image;
a first chroma strength variable threshold judgment processing module for judging if InukNot less than Thres, first set the sizef (gmb)k) Setting k to be k +1, and entering a judgment processing module; otherwise, entering a second chroma intensity variable calculation module;
wherein, sizef (gmb)k) Denotes gmbkOne-dimensional size of skin color detection unit; thres represents the threshold, Thres ≦ 16 × mbline/16; mbline denotes the maximum block one-dimensional size set by the encoding standard, and if a picture is not subsequently encoded, i.e., mbline does not exist, mbline is set to size (gmb)k);
A second chroma strength variable calculation module for calculating a second chroma strength variable Invk=std(v(i,j)|v(i,j)∈gmbk);
Wherein v (i, j) respectively represents the v chroma value of the image in the ith line and the jth column; invkA v chroma intensity variable representing an image;
a second chroma strength variable threshold judgment processing module for judging if Invk<Thres, then set the sizef (gmb) firstk)=clip(size(gmbk) Mbline), then setting k to k + 1; otherwise, set sizef (gmb) firstk) 1, then k is set to k + 1;
the judgment processing module is used for judging whether k is less than or equal to num, and entering the first chroma intensity variable calculation module; otherwise, ending.
Where num denotes the number of generalized blocks into which the picture is divided by the size of the generalized block.
The invention has the advantages of
The invention provides a skin color detection unit analysis method based on image analysis. The method designs a skin color detection unit self-adaptive determination method based on colorimetric analysis according to the characteristics of skin color detection, and can improve the algorithm execution speed and ensure higher judgment accuracy by setting the proper block size.
Drawings
FIG. 1 is a flow chart of a skin color detection unit analysis method based on image analysis according to a preferred embodiment of the present invention;
fig. 2 is a structural diagram of a skin color detection unit analysis system based on image analysis according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and examples, and for convenience of description, only parts related to the examples of the present invention are shown. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a skin color detection unit analysis method and system based on image analysis. The method designs a skin color detection unit self-adaptive determination method based on colorimetric analysis according to the characteristics of skin color detection, and can improve the algorithm execution speed and ensure higher judgment accuracy by setting the proper block size.
Example one
FIG. 1 is a flow chart of a skin color detection unit analysis method based on image analysis according to a preferred embodiment of the present invention; the method comprises the following steps:
step 1: the size of the generalized block is determined according to the image resolution.
Wherein, QVGA, VGA, 720P are the standard sizes of the images disclosed in the industry; gmbkRepresenting the kth square block, which is referred to as a generalized block for short, wherein the initial value of k is 1; size (gmb)k) Representing the one-dimensional size of the generalized block.
Step2 calculating a first chroma intensity variable, Inuk=std(u(i,j)|u(i,j)∈gmbk)。
Wherein u (i, j) represents the u chroma value of the image on the ith line and the jth column; std represents the mean square error; inu (Inu)kRepresenting the u chroma intensity variation of the image.
Step 3: if Inu is presentkNot less than Thres, first set the sizef (gmb)k) Setting k to k +1, and then proceeding to Step 6; otherwise, Step4 is entered.
Wherein, sizef (gmb)k) Denotes gmbkOne-dimensional size of skin color detection unit; thres represents the threshold value, and Thres is generally less than or equal to 16 × mbline/16; mbline denotes the maximum block one-dimensional size set by the encoding standard, and if a picture is not subsequently encoded, i.e., mbline does not exist, mbline is set to size (gmb)k)。
Step 4: calculating a second chroma-strength variable Invk=std(v(i,j)|v(i,j)∈gmbk)。
Wherein v (i, j) respectively represents the v chroma value of the image in the ith line and the jth column; invkRepresenting the v chroma intensity variation of the image.
Step 5: if Invk<Thres, then set the sizef (gmb) firstk)=clip(size(gmbk) Mbline), then setting k to k + 1; otherwise, set sizef (gmb) firstk) Then k is set to k + 1.
Wherein,the first chromaticity and the second chromaticity are randomly selected, that is, the first chromaticity can be u chromaticity, the second chromaticity can be v chromaticity, or the first chromaticity can be v chromaticity and the second chromaticity can be u chromaticity.
Step 6: if k is less than or equal to num, then Step2 is entered; otherwise, ending.
Where num denotes the number of generalized blocks into which the picture is divided by the size of the generalized block.
Example two
Fig. 2 is a structural diagram of a skin color detection unit analysis system based on image analysis according to a preferred embodiment of the present invention. The system comprises:
the generalized block size confirming module is used for confirming the size of the generalized block according to the image resolution;
wherein, QVGA, VGA, 720P are the standard sizes of the images disclosed in the industry; gmbkRepresenting the kth square block, which is referred to as a generalized block for short, wherein the initial value of k is 1; size (gmb)k) Represents a one-dimensional size of the generalized block;
a first chroma intensity variable calculation module for calculating a first chroma intensity variable, Inuk=std(u(i,j)|u(i,j)∈gmbk);
Wherein u (i, j) represents the u chroma value of the image on the ith line and the jth column; std represents the mean square error; inu (Inu)kA u chroma intensity variable representing the image;
a first chroma strength variable threshold judgment processing module for judging if InukNot less than Thres, first set the sizef (gmb)k) Setting k to be k +1, and entering a judgment processing module; and otherwise, entering a second chroma intensity variable calculation module.
Wherein, sizef (gmb)k) Denotes gmbkOne-dimensional size of skin color detection unit; thres represents the threshold value, and Thres is generally less than or equal to 16 × mbline/16; mbline denotes the maximum block one-dimensional size set by the encoding standard, and if a picture is not subsequently encoded, i.e., mbline does not exist, mbline is set to size (gmb)k)。
A second chroma strength variable calculation module for calculating a second chroma strength variable Invk=std(v(i,j)|v(i,j)∈gmbk)。
Wherein v (i, j) respectively represents the v chroma value of the image in the ith line and the jth column; invkRepresenting the v chroma intensity variation of the image.
A second chroma strength variable threshold judgment processing module for judging if Invk<Thres, then set the sizef (gmb) firstk)=clip(size(gmbk) Mbline), then setting k to k + 1; otherwise, set sizef (gmb) firstk) Then k is set to k + 1.
Wherein,the first chromaticity and the second chromaticity are randomly selected, that is, the first chromaticity can be u chromaticity, the second chromaticity can be v chromaticity, or the first chromaticity can be v chromaticity and the second chromaticity can be u chromaticity.
The judgment processing module is used for judging whether k is less than or equal to num, and entering the first chroma intensity variable calculation module; otherwise, ending.
Where num denotes the number of generalized blocks into which the picture is divided by the size of the generalized block.
It will be understood by those skilled in the art that all or part of the steps in the method according to the above embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, such as ROM, RAM, magnetic disk, optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (5)
1. A skin color detection unit analysis method based on image analysis is characterized by comprising the following steps:
step 1: determining the size of the generalized block according to the image resolution;
wherein, the generalized block is the kth square block, and the initial value of k is 1;
step2: calculating a first chroma intensity variable Inuk(ii) a The first chroma intensity variable is a u chroma intensity variable of the image;
step 3: if Inu is presentkNot less than Thres, first set the sizef (gmb)k) Setting k to k +1, and then proceeding to Step 6; otherwise, go to Step 4;
wherein, sizef (gmb)k) Denotes gmbkOne-dimensional size of skin color detection unit; thres represents the threshold; gmbkRepresents the kth square block;
step 4: calculating a second chroma-strength variable Invk(ii) a The second chroma intensity variable is a v chroma intensity variable of the image;
step 5: if Invk<Thres, then set the sizef (gmb) firstk)=clip(size(gmbk) Mbline), then setting k to k + 1; otherwise, set sizef (gmb) firstk) 1, then k is set to k + 1;
step 6: if k is less than or equal to num, then Step2 is entered; otherwise, ending;
num represents the number of generalized blocks of the image divided according to the size of the generalized blocks;
the determining the size of the generalized block according to the image resolution specifically includes:
wherein, QVGA, VGA, 720P are standard image sizes; size (gmb)k) Represents a one-dimensional size of the generalized block;
calculating a first chroma intensity variable InukThe method specifically comprises the following steps:
Inuk=std(u(i,j)|u(i,j)∈gmbk);
wherein u (i, j) represents the u chroma value of the image on the ith line and the jth column; std represents the mean square error;
the calculated second chroma intensity variable Invk(ii) a The method specifically comprises the following steps:
Invk=std(v(i,j)|v(i,j)∈gmbk);
wherein v (i, j) respectively represents the v chroma value of the image in the ith row and the jth column.
2. The method for skin color detection unit analysis based on image analysis as claimed in claim 1,
thres is less than or equal to 16 × mbline/16; mbline represents the maximum block one-dimensional size set by the coding standard; if the picture is not subsequently encoded, i.e. mbline does not exist, mbline is set to size (gmb)k)。
3. The method for analyzing skin color detection units based on image analysis according to claim 2, wherein the first chromaticity and the second chromaticity are randomly selected;
the first chroma is set as v chroma, the second chroma is set as u chroma, and u and v in Step1-Step6 are interchanged.
4. A skin color detection unit analysis system based on image analysis, the system comprising:
the generalized block size confirming module is used for confirming the size of the generalized block according to the image resolution;
wherein, QVGA, VGA, 720P are standard image sizes; gmbkRepresenting the kth square block, which is referred to as a generalized block for short, wherein the initial value of k is 1; size (gmb)k) Represents a one-dimensional size of the generalized block;
a first chroma intensity variable calculation module for calculating a first chroma intensity variable, Inuk=std(u(i,j)|u(i,j)∈gmbk);
Wherein u (i, j) indicates that the image is at the secondThe u chroma value of the j column of the i line; std represents the mean square error; inu (Inu)kA u chroma intensity variable representing the image;
a first chroma strength variable threshold judgment processing module for judging if InukNot less than Thres, first set the sizef (gmb)k) Setting k to be k +1, and entering a judgment processing module; otherwise, entering a second chroma intensity variable calculation module;
wherein, sizef (gmb)k) Denotes gmbkOne-dimensional size of skin color detection unit; thres represents the threshold, Thres ≦ 16 × mbline/16; mbline denotes the maximum block one-dimensional size set by the encoding standard, and if a picture is not subsequently encoded, i.e., mbline does not exist, mbline is set to size (gmb)k);
A second chroma strength variable calculation module for calculating a second chroma strength variable Invk=std(v(i,j)|v(i,j)∈gmbk);
Wherein v (i, j) respectively represents the v chroma value of the image in the ith line and the jth column; invkA v chroma intensity variable representing an image;
a second chroma strength variable threshold judgment processing module for judging if Invk<Thres, then set the sizef (gmb) firstk)=clip(size(gmbk) Mbline), then setting k to k + 1; otherwise, set sizef (gmb) firstk) 1, then k is set to k + 1;
the judgment processing module is used for judging whether k is less than or equal to num, and entering the first chroma intensity variable calculation module; otherwise, ending;
where num denotes the number of generalized blocks into which the picture is divided by the size of the generalized block.
5. The skin color detection unit analysis system based on image analysis as claimed in claim 4,
the first chromaticity is set as v chromaticity, the second chromaticity is set as u chromaticity, and u and v are interchanged in the above claim 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710650542.7A CN107480616B (en) | 2017-08-02 | 2017-08-02 | Skin color detection unit analysis method and system based on image analysis |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710650542.7A CN107480616B (en) | 2017-08-02 | 2017-08-02 | Skin color detection unit analysis method and system based on image analysis |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107480616A CN107480616A (en) | 2017-12-15 |
CN107480616B true CN107480616B (en) | 2020-07-03 |
Family
ID=60597345
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710650542.7A Active CN107480616B (en) | 2017-08-02 | 2017-08-02 | Skin color detection unit analysis method and system based on image analysis |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107480616B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109815905B (en) * | 2019-01-24 | 2022-12-23 | 深圳市梦网视讯有限公司 | Method and system for detecting face image by backlight source |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7106900B2 (en) * | 1999-03-12 | 2006-09-12 | Electronics And Telecommunications Research Institute | Method for generating a block-based image histogram |
CN101206719A (en) * | 2006-12-22 | 2008-06-25 | 佳能株式会社 | Method and device for detecting and processing specific pattern in image |
CN104168478A (en) * | 2014-07-29 | 2014-11-26 | 银江股份有限公司 | Video image off-color detection method based on Lab space and correlation function |
-
2017
- 2017-08-02 CN CN201710650542.7A patent/CN107480616B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7106900B2 (en) * | 1999-03-12 | 2006-09-12 | Electronics And Telecommunications Research Institute | Method for generating a block-based image histogram |
CN101206719A (en) * | 2006-12-22 | 2008-06-25 | 佳能株式会社 | Method and device for detecting and processing specific pattern in image |
CN104168478A (en) * | 2014-07-29 | 2014-11-26 | 银江股份有限公司 | Video image off-color detection method based on Lab space and correlation function |
Non-Patent Citations (2)
Title |
---|
一种自适应分块图像压缩算法的研究;杨雪梅 等;《自动化与仪器仪表》;20110925(第5期);第8-9页 * |
图像自适应分块单幅超分辨率算法;李展 等;《***工程与电子技术》;20151031;第37卷(第10期);第2412-2414页 * |
Also Published As
Publication number | Publication date |
---|---|
CN107480616A (en) | 2017-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018103608A1 (en) | Text detection method, device and storage medium | |
CN109447154B (en) | Picture similarity detection method, device, medium and electronic equipment | |
CN107273458B (en) | Depth model training method and device, and image retrieval method and device | |
CN110599486A (en) | Method and system for detecting video plagiarism | |
CN109871845B (en) | Certificate image extraction method and terminal equipment | |
CN113139544A (en) | Saliency target detection method based on multi-scale feature dynamic fusion | |
CN113344826B (en) | Image processing method, device, electronic equipment and storage medium | |
CN110533117B (en) | Image comparison method, device, equipment and storage medium | |
Xiang et al. | Lightweight fully convolutional network for license plate detection | |
WO2020125062A1 (en) | Image fusion method and related device | |
KR20180109658A (en) | Apparatus and method for image processing | |
Zhang et al. | A crowd counting framework combining with crowd location | |
CN111414938B (en) | Target detection method for bubbles in plate heat exchanger | |
CN107480616B (en) | Skin color detection unit analysis method and system based on image analysis | |
CN113610016A (en) | Training method, system, equipment and storage medium of video frame feature extraction model | |
US11195083B2 (en) | Object detection system and object detection method | |
WO2023109086A1 (en) | Character recognition method, apparatus and device, and storage medium | |
CN114140488A (en) | Video target segmentation method and device and training method of video target segmentation model | |
CN113269205A (en) | Video key frame extraction method and device, electronic equipment and storage medium | |
CN107480617B (en) | Skin color detection self-adaptive unit analysis method and system | |
CN110443244B (en) | Graphics processing method and related device | |
CN109033969B (en) | Infrared target detection method based on Bayesian saliency map calculation model | |
CN112668537A (en) | Group counting method based on multi-scale jump connection | |
CN110991296B (en) | Video annotation method and device, electronic equipment and computer-readable storage medium | |
Goel et al. | IamAlpha: Instant and Adaptive Mobile Network for Alpha Matting. |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 518057 Guangdong city of Shenzhen province Nanshan District Guangdong streets high in the four Longtaili Technology Building Room 325 No. 30 Applicant after: Shenzhen mengwang video Co., Ltd Address before: 518057 Guangdong city of Shenzhen province Nanshan District Guangdong streets high in the four Longtaili Technology Building Room 325 No. 30 Applicant before: SHENZHEN MONTNETS ENCYCLOPEDIA INFORMATION TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |