Detector/FaceDetector.py
def _prune_overlap(self, List):
		"""
		prune face detection with overly larged overlap
		"""
		result = []
		for pos in List:
			if len(result) == 0:
				result.append(pos)
				continue
			include = True
			for old_pos in result:
				overlap = self._overlap(pos, old_pos)
				if overlap > 0.2:
					include = False
			if include:
				result.append(pos)
		return result

		prune face detection with overly larged overlap
		
prune face detection with overly larged overlap
prune face detection with overly larged overlap
def _prune_overlap(self, List):
		result = []
		for pos in List:
			if len(result) == 0:
				result.append(pos)
				continue
			include = True
			for old_pos in result:
				overlap = self._overlap(pos, old_pos)
				if overlap > 0.2:
					include = False
			if include:
				result.append(pos)
		return result
def _prune_overlap ( self , List ) : result = [ ] for pos in List : if len ( result ) == 0 : result . append ( pos ) continue include = True for old_pos in result : overlap = self . _overlap ( pos , old_pos ) if overlap > 0.2 : include = False if include : result . append ( pos ) return result
prune face detection with overly larged overlap
prune face detection with overly larged overlap
"""
		prune face detection with overly larged overlap
		"""
self
List