87.1% true positive rate and a 10.3% false positive rate,but also has the post-processing that tends to form skinregions with large areas, which is preferred by our module.After skin region segmentation, we obtain a binary skinmask image
skin
M
, on which most work in the followingsteps is based.
2.2 Normalize Body Orientation
Sometimes the orientation of model’s body in thebikini image is not upright, for example, it leans againstsome place. To make the extracted features be invariant tothe body orientation, we normalize the orientation of skinregions to the upright posture. First, we downsample thebinary skin mask image
skin
M
into a miniatureimage so that only the global shape information is left.Next, the morphological closing operator is used to fill upthe holes caused by the covering of bikinis that are nearthe centroid of skin regions in the miniature image. Thenthe Hough transform is performed on the miniature image.Fig. 2(d) gives an example of the result of Houghtransform, the Hough transform matrix
H
, and we candeduce the main direction of body by analyzing thematrix.
×
1616In the matrix
H
, each column corresponds to an angle,and each element
H(d,a)
is the number of the skin pixelswhich distribute on the line whose distance to the imageorigin is
d
, and the angle between the line’s normal andthe X axis is
a
. We use the following formulae todetermine the main direction of the body.
= ⋅∑
()(((,)))__
i
caiHiaskinpixelnum
()(((),)(
w
clusteraHcaiaweighti
= + •∑
(1)))
iw
=−
(2)_argmax(())
a
maindirectionclustera
=
(3)The
skin_pixel_num
is the number of skin pixels in theminiature image after morphological closing operation.The
c(a)
corresponds to the position of body’s centroidwhen you look at the body in the direction
°
+
90
a
, and itis actually a distance to the origin. A window whosewidth is
2w+1
is used to eliminate the effect of the skinpixels far from
c(a)
. The
weight(i)
whose index is from
–w
to
w
will decrease rapidly as
i
increases like theGaussian function where
w
is concerned with the skinarea. We can deduce the main direction of body directlyfrom the function , as is shown in Fig. 2(e).When the main direction is obtained, we rotate theoriginal skin image to allow the main direction of thebody to be upright. Now, we have the model’s body withan upright posture.()
clustera
To obtain the
BW
, the estimation of the width of thehuman body, we calculate the mean of skin pixel numbersof all the columns in the image. The column number of the first column from left to right in which the sum of skinpixels is bigger than the mean is called
left_skin
, and the
Figure 2. An example of normalizing the bodyorientation. (a) The original skin mask image. (b)The miniature image. (c) The miniature imageafter morphological closing operation. (d) TheHough transform matrix
H
, where the brightnessrepresents the element values. (e) The selectionof the main orientation of the body.
2.3 Selection of the Feature Region
Intuitively the difference between bikini images andpornographic images lies in whether sexual organs areexposed. So we only consider a specific square region thatis expected to cover the chests and lower abdomen. Wecall the square region a feature region, since classificationfeatures are only extracted from it. For the rotated skinmask image, the algorithm first estimates the positions of sexual organs based on the histogram of verticaldistribution of skin pixels, which can be obtained throughcounting skin pixels on each row of the skin mask image,namely each row corresponding to a bin of the histogram.For bikini images two distinct valleys are expected to beseen in the histogram due to the covered sexual organs, asindicated in Fig. 4(d). A function
V p
is defined tomeasure the distinctness level of a valley at the position
p
in the histogram.()
α
+ − < ⋅=
()()()()max((),())()0
LVpRVpifLVpRVpLVpRVpVpotherwise
(4)
−
= − − −∫
()((()())(()())())/
p pW
LVpUfxfpfxfpGxpdxBW
(5)
()((()())(()())())/
pW p
RVpUfxfpfxfpGxpdxBW
+
= − − −∫
(6)
= −
__
BWrightskinleftskin
(7)
≤=>
0()10
t Ut t
0(8)
Leave a Comment