CN103268499B - Human body skin detection method based on multispectral imaging - Google Patents
Human body skin detection method based on multispectral imaging Download PDFInfo
- Publication number
- CN103268499B CN103268499B CN201310025361.7A CN201310025361A CN103268499B CN 103268499 B CN103268499 B CN 103268499B CN 201310025361 A CN201310025361 A CN 201310025361A CN 103268499 B CN103268499 B CN 103268499B
- Authority
- CN
- China
- Prior art keywords
- skin
- image
- reflectance
- detection
- pixel
- 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.)
- Expired - Fee Related
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 43
- 238000000701 chemical imaging Methods 0.000 title abstract description 7
- 238000000034 method Methods 0.000 claims abstract description 35
- 238000010801 machine learning Methods 0.000 claims abstract description 5
- 238000012549 training Methods 0.000 claims description 14
- 238000002310 reflectometry Methods 0.000 claims description 12
- 238000003384 imaging method Methods 0.000 claims description 7
- 238000005286 illumination Methods 0.000 claims description 5
- 238000001228 spectrum Methods 0.000 claims description 4
- 239000000284 extract Substances 0.000 claims description 3
- 230000003287 optical effect Effects 0.000 claims description 3
- 230000001105 regulatory effect Effects 0.000 claims 2
- 238000004364 calculation method Methods 0.000 claims 1
- 230000007613 environmental effect Effects 0.000 claims 1
- 230000003313 weakening effect Effects 0.000 claims 1
- 230000004044 response Effects 0.000 description 5
- 230000003595 spectral effect Effects 0.000 description 5
- 238000000605 extraction Methods 0.000 description 4
- 101100083337 Schizosaccharomyces pombe (strain 972 / ATCC 24843) pic1 gene Proteins 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 238000013479 data entry Methods 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 2
- 230000007423 decrease Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 230000035479 physiological effects, processes and functions Effects 0.000 description 1
- 239000004810 polytetrafluoroethylene Substances 0.000 description 1
- 229920001343 polytetrafluoroethylene Polymers 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 229910052724 xenon Inorganic materials 0.000 description 1
- FHNFHKCVQCLJFQ-UHFFFAOYSA-N xenon atom Chemical compound [Xe] FHNFHKCVQCLJFQ-UHFFFAOYSA-N 0.000 description 1
Landscapes
- Investigating Or Analysing Materials By Optical Means (AREA)
Abstract
在多光谱成像系统中利用校准的方法获取物体在所选两个波段下的反射特性并将反射特性作为特征进行皮肤检测。所述多光谱成像系统包括反射特性已知的参照物,配置拍摄所选两个不同波段下图像的光源和接收设备。所述通过校准的方法获取物体反射特性是利用参照物的反射特性预测图像中其他物体的反射特性。所述皮肤检测方法是将人体皮肤与非皮肤物体的不同反射特性作为特征,将皮肤与非皮肤的检测视为二分类问题,利用机器学习的方法训练分类器,并进行检测。<!--1-->
In the multi-spectral imaging system, the calibration method is used to obtain the reflection characteristics of the object under the two selected wave bands, and the reflection characteristics are used as features for skin detection. The multi-spectral imaging system includes a reference object with known reflection characteristics, a light source and a receiving device configured to capture images in two selected different wavebands. The acquisition of object reflection characteristics through calibration is to use the reflection characteristics of the reference object to predict the reflection characteristics of other objects in the image. The skin detection method uses the different reflection characteristics of human skin and non-skin objects as features, regards the detection of skin and non-skin as a binary classification problem, uses machine learning to train a classifier, and performs detection. <!--1-->
Description
二、技术领域: 2. Technical field:
本发明涉及计算机视觉和图像处理领域,尤其涉及利用计算机视觉进行人体皮肤检测的方法。更具体地,本发明涉及一种价格低廉且实时的多光谱成像系统来获取图像并通过系统、方法设计获取出图像中物体的反射特性。同时本发明涉及如何在有假人、面具的复杂背景下检测人体皮肤。The invention relates to the fields of computer vision and image processing, in particular to a method for using computer vision to detect human skin. More specifically, the present invention relates to a low-cost and real-time multi-spectral imaging system to acquire images and obtain reflection characteristics of objects in the images through system and method design. At the same time, the invention relates to how to detect human skin under the complex background with dummies and masks.
三、背景技术: 3. Background technology:
皮肤检测是计算机视觉领域一个重要研究方向。例如,视频会议中人脸的检测跟踪,肢体语言的理解,人机交互中的指示分析等,都需要精确的皮肤检测算法。传统皮肤检测算法大多基于RGB相机获取的颜色信息进行人体肤色检测,RGB相机的原理是通过R(红)、G(绿)、B(蓝)三种颜色通道分量合成彩色图像,因此最常见的皮肤检测算法是通过定义肤色在颜色空间中各分量上的取值区间来达到检测目的的。这样,当像素的色彩值落在定义区间内时,则认为该像素为皮肤。关于颜色空间的选择问题,Kakumanua等人给出了很好的总结。但是,当检测人群包括来自不同种族的人,或背景颜色复杂,外界光照较强时,基于颜色的皮肤检测精度就比较低。另外,尽管使用具有光照不变性的颜色空间,可以一定程度上降低外界光照对算法的影响。但当外界光照变化剧烈时,皮肤检测性能仍然降低显著。而且,基于RGB三色成像的皮肤检测算法不能有效检测并去除与人体肤色颜色相近的物品,特别是不能区分真人和假人(包括人体模特、面具、照片等)。因此,基于RGB三色成像的皮肤检测算法具有很大的局限性。Skin detection is an important research direction in the field of computer vision. For example, face detection and tracking in video conferencing, body language understanding, and instruction analysis in human-computer interaction all require precise skin detection algorithms. Most of the traditional skin detection algorithms are based on the color information obtained by the RGB camera for human skin color detection. The principle of the RGB camera is to synthesize color images through the three color channel components of R (red), G (green), and B (blue). Therefore, the most common The skin detection algorithm achieves the detection purpose by defining the value range of the skin color on each component in the color space. In this way, when the color value of a pixel falls within the defined interval, the pixel is considered to be skin. Regarding the choice of color space, Kakumanua et al. gave a good summary. However, when the detection crowd includes people from different races, or the background color is complex, and the external light is strong, the accuracy of color-based skin detection is relatively low. In addition, although the color space with illumination invariance is used, the influence of external illumination on the algorithm can be reduced to a certain extent. However, when the external light changes drastically, the performance of skin detection is still significantly reduced. Moreover, the skin detection algorithm based on RGB three-color imaging cannot effectively detect and remove items that are similar to human skin color, especially cannot distinguish between real people and dummies (including mannequins, masks, photos, etc.). Therefore, the skin detection algorithm based on RGB three-color imaging has great limitations.
人体皮肤反射率已经从生理及实验上被证实有其独特的特性:在紫外部分反射率较低,继而随波长的增加反射率增大,在575nm处有“W”形状。皮肤反射率在800nm处达到峰值,在900nm处会出现下降,在达到最小值后又重新增大但增大幅度很小。经过实际测试,如图一,假人反射率是不具备这种特性的。利用这种反射率特性可以区分真皮肤和假人及其他物品。但是,目前反射率的获取大多要用到光谱仪,价格昂贵、费时长因此不能实时测量。The reflectance of human skin has been confirmed by physiology and experiments to have its unique characteristics: the reflectance is low in the ultraviolet part, and then increases with the increase of wavelength, and has a "W" shape at 575nm. The skin reflectance peaks at 800nm, decreases at 900nm, and increases again after reaching the minimum, but the increase is very small. After actual testing, as shown in Figure 1, the reflectivity of the dummy does not have this characteristic. This reflectance property can be used to distinguish real skin from dummies and other items. However, at present, spectrometers are mostly used to obtain reflectance, which is expensive and time-consuming, so it cannot be measured in real time.
[引用列表][citation list]
[非专利文献][Non-patent literature]
1、ElliAngelopoulou,“Understandingthecolorofhumanskin”,ComputerScienceDept.,StevensInstituteofTechnology,CastlePointonHudson,Hoboken,NJ07030,USA1. Elli Angelopoulou, "Understanding the color of human skin", Computer Science Dept., Stevens Institute of Technology, Castle Pointon Hudson, Hoboken, NJ07030, USA
IoannisPavlidis的US6370260示出了一种使用800nm-1400nm和1400nm-2200nm两种近红外波段图像进行人体皮肤检测的方法,利用人体皮肤在这两种波段的独特反射特性从而可以区分真人与假人。不过,这两个波段的成像设备非常昂贵,很难在通常民用应用中使用。US6370260 of IoannisPavlidis shows a method of human skin detection using images in two near-infrared bands of 800nm-1400nm and 1400nm-2200nm, using the unique reflection characteristics of human skin in these two bands to distinguish real people from dummy people. However, imaging equipment in these two bands is very expensive and difficult to use in general civilian applications.
索尼公司的201080002426提出了一种使用多频带近红外照明条件下皮肤检测系统及方法,可以检测图像内的多个关心像素,识别与预定的对应物体。该方法使用870nm和950nm两个不同的近红外波长来获取对应波长下的两幅图像,继而根据两幅图像之间的差异生成二值化皮肤图像,利用二值化图像从原图像中提取皮肤图像。该方法主要用于计算机数据录入时对坐在计算机屏幕前的数据录入人员的皮肤(手)的提取,无法应用于通常场景下的皮肤检测。Sony's 201080002426 proposes a skin detection system and method using multi-band near-infrared lighting conditions, which can detect multiple pixels of interest in an image and identify corresponding objects that are predetermined. This method uses two different near-infrared wavelengths of 870nm and 950nm to obtain two images at the corresponding wavelengths, and then generates a binarized skin image according to the difference between the two images, and uses the binarized image to extract the skin from the original image. image. This method is mainly used to extract the skin (hand) of the data entry personnel sitting in front of the computer screen during computer data entry, and cannot be applied to skin detection in common scenarios.
因此考虑到以上情况,需要寻找一种价格低廉、实时性好的多光谱成像系统获取多光谱图像。同时需要一种可以在通常场景下能够有效区分真人和假人的皮肤检测方法。Therefore, considering the above situation, it is necessary to find a multi-spectral imaging system with low price and good real-time performance to obtain multi-spectral images. At the same time, there is a need for a skin detection method that can effectively distinguish between real people and fake people in common scenarios.
发明目的purpose of invention
本发明的主要目的是提供一种多光谱成像系统,该系统价格低廉、结构简单,通过该系统可以获取物体在图像中的反射特性。针对获取的反射特性本发明提供一种对复杂背景(尤其是含有假人)的检测方法以进行皮肤检测。The main purpose of the present invention is to provide a multi-spectral imaging system with low price and simple structure, through which the reflection characteristics of objects in the image can be obtained. The present invention provides a detection method for complex backgrounds (especially containing dummy) for skin detection based on the acquired reflection characteristics.
本发明的另一个目的是提供一种校准的方法,通过该校准方法获取物体在各波长下的反射特性。校准的作用是为了消除成像通路(包括光源、拍摄设备和滤光片)在不同波长下的光谱响应差异,使用一个在不同波长上反射率已知的标准参照物来校准不同波长上成像通路的光谱响应,从而获得物体的真实反射特性。校准方法与所需要获得的反射特性有关。此处反射特性可以指像素的灰度值、反射率及其变形,例如灰度值的变形可以使归一化的灰度值、灰度值之间的差。Another object of the present invention is to provide a calibration method, through which the reflection characteristics of objects at various wavelengths are obtained. The function of calibration is to eliminate the difference in spectral response of imaging channels (including light sources, photographing equipment and filters) at different wavelengths, and use a standard reference object with known reflectance at different wavelengths to calibrate the imaging channels at different wavelengths. spectral response to obtain the true reflection properties of the object. The calibration method is related to the reflection characteristics that need to be obtained. Here, the reflection characteristic may refer to the gray value of the pixel, the reflectivity and its deformation, for example, the deformation of the gray value may be the difference between the normalized gray value and the gray value.
本发明还提供了一种皮肤检测方法,该方法将皮肤检测视为二分类问题,将反射特性作为特征,利用机器学习的方法训练分类器进行皮肤检测。The present invention also provides a skin detection method, which regards skin detection as a binary classification problem, uses reflection characteristics as features, and uses machine learning to train a classifier for skin detection.
四、发明内容:4. Contents of the invention:
在本发明的系统、方法及硬件实现描述前,需要说明的是本发明并不局限于所描述的几种实施例及检测方法,本发明可有多个没有在本文中明确说明的可能的实施例。Before the description of the system, method and hardware implementation of the present invention, it should be noted that the present invention is not limited to the described several embodiments and detection methods, and the present invention can have many possible implementations that are not explicitly described herein. example.
本发明提供的检测方法是利用窄带多光谱照射下皮肤与非皮肤的不同反射特性,进行皮肤检测,从而可以有效区分人体皮肤与类人体皮肤物品(包括人体模特、面具、照片等)。The detection method provided by the present invention uses the different reflection characteristics of skin and non-skin under narrow-band multi-spectral irradiation to detect skin, so that human skin and human skin-like objects (including mannequins, masks, photos, etc.) can be effectively distinguished.
本发明提供了一种多光谱成像的系统,该系统成本低、实时性好。通过本发明所提供的系统可以获得所关心波段下的图像。系统所选用的光源须覆盖所选用的多光谱波段(条件允许时也可以采用自然光),比如如果所选用波段为420nm和850nm,那么所选光源就必须包含这两个波段。本系统所采用的拍摄设备是黑白摄像机,拍摄设备根据实施例的不同也可以进行选择,比如可以用光电二极管作为接收器。本发明的一个实施例,采用一个拍摄设备,通过在拍摄设备前依次切换不同波段的窄带滤光片获取多光谱图像。另外也可以采用两个拍摄设备,在每个拍摄设备前加装不同波段的窄带滤光片来同时获取多光谱图像。还可以使用窄带光源或光源前加装窄带滤光片,由拍摄设备获取多光谱图像。The invention provides a multispectral imaging system, which has low cost and good real-time performance. Images under the concerned waveband can be obtained through the system provided by the invention. The light source selected by the system must cover the selected multi-spectral band (natural light can also be used when conditions permit), for example, if the selected bands are 420nm and 850nm, then the selected light source must include these two bands. The shooting device used in this system is a black-and-white camera, and the shooting device can also be selected according to different embodiments, for example, a photodiode can be used as a receiver. In one embodiment of the present invention, a photographing device is used to acquire multispectral images by sequentially switching narrow-band filters of different wavelength bands in front of the photographing device. In addition, two shooting devices can also be used, and narrow-band filters of different bands are installed in front of each shooting device to simultaneously acquire multi-spectral images. It is also possible to use a narrow-band light source or add a narrow-band filter before the light source to obtain multi-spectral images by the shooting device.
本发明还提供了一种获取多光谱图像中反射特性的方法,反射特性包括该像素在所使用波段下的灰度值、反射率及其各自的变形,比如像素灰度值在不同波段下的差,或者归一化的灰度值、反射率。本发明主要采用反射率。本发明通过在场景中布置参照物、校准的方法来获得近似的反射率,根据实施例的不同,校准的含义稍有不同。The present invention also provides a method for obtaining reflection characteristics in a multi-spectral image. The reflection characteristics include the gray value of the pixel in the band used, the reflectivity and its respective deformation, such as the gray value of the pixel in different bands. Poor, or normalized gray value, reflectance. The present invention mainly uses reflectivity. The present invention obtains approximate reflectance by arranging reference objects in the scene and calibrating. The meaning of calibrating is slightly different according to different embodiments.
本发明提供的一个获取多光谱图像中反射特性(反射率)的实施例:An embodiment of obtaining reflection characteristics (reflectivity) in a multispectral image provided by the present invention:
拍摄设备:黑白摄像机,所选波段波段例如:420nm、850nm。将窄带滤光片放于摄像机前,在场景中放置已知反射率的参照物。为了获取更多图像细节,使各波段下的图像平均灰度在180-220之间。图像中P点的灰度:Shooting equipment: black-and-white camera, selected wave bands such as: 420nm, 850nm. Place the narrowband filter in front of the camera and place a reference object of known reflectance in the scene. In order to obtain more image details, the average gray level of the image under each band is between 180-220. The gray level of point P in the image :
其中i:第i个波段,t:相机曝光时间,s:P点处物体反射率,c:相机响应,p:多光谱的光在P点处的光强分布,A:外界光在P点处的光强分布,L:滤光片光谱特性。本发明使用的为窄带滤光片,故去掉积分号:Where i: the i-th band, t: camera exposure time, s: object reflectivity at point P, c: camera response, p: light intensity distribution of multi-spectral light at point P, A: external light at point P The light intensity distribution at , L: filter spectral characteristics. What the present invention uses is narrow-band optical filter, so remove integral sign:
假设多光谱和外界光的光分布是均匀的,那么相机响应时间是定值,在同一波段下相机响应c和滤光片光谱特性L是定值,对于已知反射率的参照物其I也是可测得的。这样就可以求出Assuming that the light distribution of multi-spectrum and external light is uniform, then the camera response time is a constant value, the camera response c and the filter spectral characteristic L are constant values in the same band, and its I is also the same for the reference object with known reflectance measurable. In this way, it can be obtained
对于图像中任意像素,其反射率:For any pixel in the image, its reflectance:
在理想情况下,比如光照均匀、窄带滤波器带宽足够窄,由该实施例得到的反射率近似等于真实反射率。但是该方法提供的获取反射率主要用于本发明中的皮肤检测,故其精确度是可以接受的。皮肤检测中将把得到的反射率或其变形,如归一化,作为特征进行训练。Under ideal conditions, such as uniform illumination and sufficiently narrow bandwidth of the narrow-band filter, the reflectance obtained by this embodiment is approximately equal to the true reflectance. However, the obtained reflectance provided by this method is mainly used for the skin detection in the present invention, so its accuracy is acceptable. In skin detection, the obtained reflectance or its deformation, such as normalization, will be used as features for training.
本发明提供的另一个获取多光谱图像中反射特性(反射率趋势)的实施例:Another embodiment provided by the present invention for obtaining reflectance characteristics (reflectivity trend) in multispectral images:
拍摄设备:黑白摄像机,所选波段波段:420nm、850nm。将窄带滤光片放于多光谱光源前,在场景中放置已知反射率的参照物用于拍摄前的校准过程。所拍摄图像中P点的灰度:Shooting equipment: black and white video camera, selected wave band: 420nm, 850nm. Place the narrowband filter in front of the multispectral light source, and place a reference object of known reflectance in the scene for the calibration process before shooting. The gray level of point P in the captured image :
在不考虑外界光的情况下Without taking into account the external light
校准:由上式,t为定值,对于已知反射率的参照物,通过调节所选波段光源的光强调节pP(λ)L(λ)的值,在保证所选波段下图像平均灰度值在180-220的条件下,使各波段下tc(λ)pP(λ)L(λ)的值相等。这样在无外界光的条件下,像素灰度值趋势就可以表示反射率趋势,甚至灰度值乘以一个权重因子w后就可以表示其对应波段下的反射率。但是该种方法在有外界光的条件下是行不通的,为了解决这个问题,该实施例通过设计反射特性的变形来去除外界光的影响。Calibration: From the above formula, t is a fixed value. For a reference object with known reflectivity, adjust the value of p P (λ)L(λ) by adjusting the light intensity of the light source in the selected band, and ensure that the average image in the selected band Under the condition that the gray value is 180-220, the values of tc(λ)p P (λ)L(λ) in each band are equal. In this way, under the condition of no external light, the trend of pixel gray value can represent the trend of reflectance, and even the gray value multiplied by a weight factor w can represent the reflectance in the corresponding band. However, this method does not work under the condition of external light. In order to solve this problem, this embodiment removes the influence of external light by designing the deformation of the reflection characteristics.
校准过程完成后在有外界光的情况下,可通过下式来排除外界光的影响。After the calibration process is completed, in the case of external light, the influence of external light can be eliminated by the following formula.
将像素在不同波段下的差值作为像素的特性,将这种特性作为训练特征。为了进一步降低外界光的影响,可以对差值进行归一化。The difference between pixels in different bands is used as the characteristic of the pixel, and this characteristic is used as the training feature. In order to further reduce the influence of external light, the difference can be normalized.
通过本发明提供的方法可以根据系统所得的多光谱图像进而得到图像内像素的反射特性。根据实施例的不同,所需计算的像素的特性不同。Through the method provided by the invention, the reflection characteristics of the pixels in the image can be obtained according to the multispectral image obtained by the system. Depending on the embodiment, the characteristics of the pixels to be calculated are different.
本发明同时提供了一种皮肤检测的方法,提取多光谱图像中正样本(皮肤)和负样本(非皮肤物体)的反射特性作为特征,获得训练集和测试集。利用机器学习的方法(比如SVM、ADABOOST)训练获取分类器,然后使用该分类器进行皮肤检测。The present invention also provides a method for skin detection, which extracts the reflection characteristics of positive samples (skin) and negative samples (non-skin objects) in multispectral images as features, and obtains training sets and test sets. Use machine learning methods (such as SVM, ADABOOST) to train and obtain a classifier, and then use the classifier for skin detection.
附图说明: Description of drawings:
图1皮肤与假人反射率对比Figure 1 Comparison of reflectance between skin and dummy
图2系统构造Figure 2 System structure
图3训练流程Figure 3 training process
图4拍摄获取图像,420nm、800nm处正负样本实例Figure 4 Captured images, examples of positive and negative samples at 420nm and 800nm
图5实际获取的反射率Figure 5 The actual reflectance obtained
图6检测流程Figure 6 detection process
图7检测结果Figure 7 test results
图8参照物反射率Figure 8 Reference object reflectance
具体实施方式:detailed description:
设备连接:Device connection:
处理器300通过控制器101与光源100相连用以控制光源开关及输出亮度,处理器300通过采集卡与拍摄设备相连。由于拍摄的目的是为了获取多光谱图像,所以处理器300应能保证在各个波段光源打开时,拍摄设备能同步拍摄图像。比如如果要获取420nm、850nm两个波段下的图像。处理器300应能保证420nm波段的光源打开时,拍摄设备开始拍摄,420nm波段的光源关闭时,拍摄设备停止拍摄。The processor 300 is connected to the light source 100 through the controller 101 to control the switch of the light source and output brightness, and the processor 300 is connected to the shooting device through the capture card. Since the purpose of shooting is to acquire multi-spectral images, the processor 300 should be able to ensure that the shooting device can capture images synchronously when the light sources of each wavelength band are turned on. For example, if you want to obtain images in two bands of 420nm and 850nm. The processor 300 should be able to ensure that when the light source of the 420nm band is turned on, the shooting device starts shooting, and when the light source of the 420nm band is turned off, the shooting device stops shooting.
场景布置:Scene layout:
根据本发明提供的方法,为了能获取图像中像素的反射特性,需要在场景中放置已知反射率的参照物用于获取图像中像素的反射特性。本发明使用PTFE板作为参照物。According to the method provided by the present invention, in order to obtain the reflection characteristics of the pixels in the image, it is necessary to place a reference object with known reflectance in the scene to obtain the reflection characteristics of the pixels in the image. The present invention uses a PTFE plate as a reference.
由于本发明提供了多种实施例,而不同实施例的具体实施方式也稍有不同,再此仅就以上提及的两个实施例的实施方式做说明。本发明中进行的实验,所选光源为光谱分布在350nm-2500nm的氙灯(视实施例不同可以选择自然光),选择的波段为420nm、850nm的窄带滤光片,带宽为20nm,拍摄设备为黑白相机。Since the present invention provides various embodiments, and the specific implementation manners of different embodiments are slightly different, only the implementation manners of the above-mentioned two embodiments are described here. In the experiments carried out in the present invention, the selected light source is a xenon lamp with a spectral distribution of 350nm-2500nm (natural light can be selected depending on the embodiment), the selected wave band is a narrow-band filter of 420nm and 850nm, the bandwidth is 20nm, and the shooting equipment is black and white camera.
实施例一:Embodiment one:
在设备连接、场景布置完成后,将滤光片401(420nm)放于相机200前。然后进行校准过程:通过处理器300调节光源100的光照强度使被拍摄场景在图片中的灰度值在180-220间,校准完成后即拍摄波段420nm下的图像记做pic1。拍摄850nm图像(记做pic2)的过程与以上过程相同,仅需更换滤光片。After the equipment is connected and the scene layout is completed, put the filter 401 (420nm) in front of the camera 200 . Then perform the calibration process: adjust the light intensity of the light source 100 through the processor 300 so that the gray value of the scene to be photographed in the picture is between 180-220. The process of taking an 850nm image (denoted as pic2) is the same as the above process, only need to replace the filter.
样本提取:选取皮肤和非皮肤处的像素分别作为正负样本。Sample extraction: Select skin and non-skin pixels as positive and negative samples respectively.
特征提取:根据[0016]中提供的方法计算出像素在所选波段下的反射率特性,那么该像素特征值即为一个由波段420nm和波段800nm下的反射率组成的二维向量。Feature extraction: According to the method provided in [0016], calculate the reflectivity characteristics of the pixel under the selected waveband, then the pixel feature value is a two-dimensional vector composed of reflectivity under the waveband 420nm and waveband 800nm.
训练:计算出所选样本的所有特征值并标记,用SVM训练获取分类器。Training: Calculate and mark all the eigenvalues of the selected samples, and use SVM training to obtain a classifier.
检测:按同样方法获得pic1、pic2,计算其中每个像素的特征值,并用分类器检测得到最终的结果Detection: Obtain pic1 and pic2 in the same way, calculate the feature value of each pixel, and use the classifier to detect the final result
实施例二:Embodiment two:
在设备连接、场景布置完成后,将滤光片401(420nm)放于光源100前。然后进行校准,校准原理及方法如[0021]中所示,校准完成后拍摄波段420nm下的图像记做pic1,需要注意的是本实施例的校准需要在黑暗(无外界光)的条件下进行。按同样的方法获取pic2。After the equipment is connected and the scene layout is completed, put the filter 401 (420nm) in front of the light source 100 . Then perform calibration, the calibration principle and method are as shown in [0021], after the calibration is completed, the image taken under the wavelength band 420nm is recorded as pic1, it should be noted that the calibration of this embodiment needs to be carried out under the condition of darkness (no external light) . Get pic2 in the same way.
样本提取:选取皮肤和非皮肤处的像素分别作为正负样本。Sample extraction: Select skin and non-skin pixels as positive and negative samples respectively.
特征提取:本实施例校准的目的是用像素的灰度值趋势来表征其反射率趋势,继而将归一化后的灰度值之差作为该像素的特征。即本实施例特征是一维的。Feature extraction: the purpose of the calibration in this embodiment is to use the gray value trend of a pixel to characterize its reflectance trend, and then use the normalized gray value difference as the feature of the pixel. That is, the feature of this embodiment is one-dimensional.
训练:计算出所选样本的所有特征值并标记,用SVM训练获取分类器。Training: Calculate and mark all the eigenvalues of the selected samples, and use SVM training to obtain a classifier.
检测:按同样方法获得pic1、pic2,计算其中每个像素的特征值,并用分类器检测得到最终的结果。Detection: Obtain pic1 and pic2 in the same way, calculate the feature value of each pixel, and use the classifier to detect to obtain the final result.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310025361.7A CN103268499B (en) | 2013-01-23 | 2013-01-23 | Human body skin detection method based on multispectral imaging |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310025361.7A CN103268499B (en) | 2013-01-23 | 2013-01-23 | Human body skin detection method based on multispectral imaging |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103268499A CN103268499A (en) | 2013-08-28 |
| CN103268499B true CN103268499B (en) | 2016-06-29 |
Family
ID=49012126
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310025361.7A Expired - Fee Related CN103268499B (en) | 2013-01-23 | 2013-01-23 | Human body skin detection method based on multispectral imaging |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103268499B (en) |
Families Citing this family (20)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101641268B1 (en) * | 2015-03-20 | 2016-07-20 | 엘지전자 주식회사 | Skin detecting device and method for controlling the skin detecting device |
| WO2016184666A1 (en) | 2015-05-15 | 2016-11-24 | Sony Corporation | Image processing system and method |
| TWI616183B (en) * | 2016-12-16 | 2018-03-01 | 國家中山科學研究院 | Non-invasive skin image detection method |
| CN106821313A (en) * | 2017-01-12 | 2017-06-13 | 宜昌市怡康皮肤病医院有限责任公司 | Multispectral skin detection instrument |
| CN106997468B (en) * | 2017-05-23 | 2023-10-17 | 四川新迎顺信息技术股份有限公司 | Three-wavelength skin screening imaging system and method based on chopping technology |
| CN107832677A (en) * | 2017-10-19 | 2018-03-23 | 深圳奥比中光科技有限公司 | Face identification method and system based on In vivo detection |
| CN108710844B (en) * | 2018-05-14 | 2022-01-21 | 世熠网络科技(上海)有限公司 | Authentication method and device for detecting face |
| CN110567371B (en) * | 2018-10-18 | 2021-11-16 | 天目爱视(北京)科技有限公司 | Illumination control system for 3D information acquisition |
| CN109799202B (en) * | 2019-01-16 | 2023-11-24 | 黄文佳 | Device and method for analyzing substances by using electromagnetic wave reflection imaging image |
| WO2020237483A1 (en) * | 2019-05-27 | 2020-12-03 | 深圳市汇顶科技股份有限公司 | Optical sensor, apparatus and method for facial recognition, and electronic device |
| CN110398465A (en) * | 2019-07-06 | 2019-11-01 | 中国海洋大学 | A method for measuring the biomass of cultured laver based on spectral remote sensing images |
| CN111611977B (en) * | 2020-06-05 | 2021-10-15 | 吉林求是光谱数据科技有限公司 | Face recognition monitoring system and recognition method based on spectrum and multi-band fusion |
| CN111879724B (en) * | 2020-08-05 | 2021-05-04 | 中国工程物理研究院流体物理研究所 | Human skin mask identification method and system based on near infrared spectrum imaging |
| CN112098415B (en) * | 2020-08-06 | 2022-11-18 | 杭州电子科技大学 | Nondestructive testing method for quality of waxberries |
| CN112580433A (en) * | 2020-11-24 | 2021-03-30 | 奥比中光科技集团股份有限公司 | Living body detection method and device |
| CN113340817B (en) * | 2021-05-26 | 2023-05-05 | 奥比中光科技集团股份有限公司 | Light source spectrum and multispectral reflectivity image acquisition method and device and electronic equipment |
| FI130885B1 (en) | 2021-10-12 | 2024-05-08 | Teknologian Tutkimuskeskus Vtt Oy | Method and apparatus for calibrating a spectral imaging device |
| CN117542127B (en) * | 2024-01-09 | 2024-05-24 | 南方科技大学 | Skin detection method and device based on multi-spectral polarized light |
| CN119399469B (en) * | 2024-10-25 | 2025-04-01 | 江苏大学附属医院 | Image segmentation method for burn wound area |
| CN120021947B (en) * | 2025-04-21 | 2025-07-11 | 深圳市港基电技术有限公司 | Skin condition assessment method based on skin detection functional head and intelligent beauty terminal |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6370260B1 (en) * | 1999-09-03 | 2002-04-09 | Honeywell International Inc. | Near-IR human detector |
| CN102138148A (en) * | 2009-06-30 | 2011-07-27 | 索尼公司 | Skin detection using multi-band near-infrared illumination |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7890158B2 (en) * | 2001-06-05 | 2011-02-15 | Lumidigm, Inc. | Apparatus and method of biometric determination using specialized optical spectroscopy systems |
-
2013
- 2013-01-23 CN CN201310025361.7A patent/CN103268499B/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6370260B1 (en) * | 1999-09-03 | 2002-04-09 | Honeywell International Inc. | Near-IR human detector |
| CN102138148A (en) * | 2009-06-30 | 2011-07-27 | 索尼公司 | Skin detection using multi-band near-infrared illumination |
Non-Patent Citations (1)
| Title |
|---|
| Face Liveness Detection by Learning Multispectral Reflectance Distributions;Zhiwei Zhang 等;《Automatic Face & Gesture Recognition and Workshops (FG 2011), 2011 IEEE International Conference on》;20110325;436-441 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103268499A (en) | 2013-08-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103268499B (en) | Human body skin detection method based on multispectral imaging | |
| Ebner | Color constancy | |
| Steiner et al. | Design of an active multispectral SWIR camera system for skin detection and face verification | |
| Cheng et al. | Effective learning-based illuminant estimation using simple features | |
| JP5496509B2 (en) | System, method, and apparatus for image processing for color classification and skin color detection | |
| CN113609907B (en) | Multispectral data acquisition method, device and equipment | |
| WO2019137178A1 (en) | Face liveness detection | |
| CN113129250A (en) | Skin detection method and device, terminal equipment and computer storage medium | |
| Narang et al. | Face recognition in the SWIR band when using single sensor multi-wavelength imaging systems | |
| Jiang et al. | Recovering spectral reflectance under commonly available lighting conditions | |
| Vetrekar et al. | Low-cost multi-spectral face imaging for robust face recognition | |
| US20230169749A1 (en) | Skin color detection method and apparatus, terminal, and storage medium | |
| JP2018106720A (en) | Apparatus and method for image processing | |
| Aytekin et al. | A data set for camera-independent color constancy | |
| CN114216867A (en) | Hyperspectral image acquisition and identification device and method | |
| Wannous et al. | Improving color correction across camera and illumination changes by contextual sample selection | |
| Koskinen et al. | Single pixel spectral color constancy | |
| EP3340111B1 (en) | Biometric authentication apparatus, biometric authentication system and biometric authentication method | |
| Aytekin et al. | INTEL-TUT dataset for camera invariant color constancy research | |
| WO2010066951A1 (en) | Method and device for imaging a target | |
| Karlsen et al. | A smart phone-based robust correction algorithm for the colorimetric detection of Urinary Tract Infection | |
| CN113807320B (en) | Human skin color recognition method and system based on multispectral imaging technology | |
| Zhang et al. | Improving Training-based Reflectance Reconstruction via White-balance and Link Function | |
| Cho et al. | Hyperspectral face databases for facial recognition research | |
| WO2021075215A1 (en) | Method and system for assisting in application of topical agent |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160629 Termination date: 20220123 |