Update Extractor.py

repairing  'DLIBExtractor' object has no attribute 'extract'
This commit is contained in:
shy0511 2019-09-17 12:22:39 +08:00 committed by GitHub
commit 57d1b89f6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,7 +151,7 @@ class ExtractSubprocessor(Subprocessor):
elif rot == 270: elif rot == 270:
rotated_image = image.swapaxes( 0,1 )[::-1,:,:] rotated_image = image.swapaxes( 0,1 )[::-1,:,:]
rects = data.rects = self.e.extract (rotated_image, is_bgr=True) rects = data.rects = self.e.extract_from_bgr (rotated_image)
if len(rects) != 0: if len(rects) != 0:
break break