假设我有一张图片:Sign Language
在图像中隔离皮肤后,它看起来像:The skin on the hand and face are isolated.
如何遮盖脸部的皮肤,使我只能从图像中获取手部?
编辑:
我如何从图像中隔离皮肤:
import cv2
import sys
import numpy
im = cv2.imread("test.png")
im_ycrcb = cv2.cvtColor(im, cv2.COLOR_BGR2YCR_CB)
skin_ycrcb_mint = numpy.array((0, 133, 77))
skin_ycrcb_maxt = numpy.array((255, 173, 127))
skin_ycrcb = cv2.inRange(im_ycrcb, skin_ycrcb_mint, skin_ycrcb_maxt)
cv2.imwrite("testing.jpg", skin_ycrcb)