def detect(self, src):
		if np.ndim(src) < 3:
			return np.ones(src.shape, dtype=np.uint8)
		if src.dtype != np.uint8:
			return np.ones(src.shape, dtype=np.uint8)
		srcYCrCb = cv2.cvtColor(src, cv2.COLOR_BGR2YCR_CB)
		srcHSV = cv2.cvtColor(src, cv2.COLOR_BGR2HSV)
		skinPixels = self._R1(src) & self._R2(srcYCrCb) & self._R3(srcHSV)
		return np.asarray(skinPixels, dtype=np.uint8)
dataset/ETHPy150Open bytefish/facerec/py/facedet/detector.py/SkinDetector.detect/original