fix sort by yaw/pitch for whole_face
This commit is contained in:
@@ -114,7 +114,7 @@ def sort_by_face_yaw(input_path):
|
|||||||
trash_img_list.append ( [str(filepath)] )
|
trash_img_list.append ( [str(filepath)] )
|
||||||
continue
|
continue
|
||||||
|
|
||||||
pitch, yaw, roll = LandmarksProcessor.estimate_pitch_yaw_roll ( dflimg.get_landmarks() )
|
pitch, yaw, roll = LandmarksProcessor.estimate_pitch_yaw_roll ( dflimg.get_landmarks(), size=dflimg.get_shape()[1] )
|
||||||
|
|
||||||
img_list.append( [str(filepath), yaw ] )
|
img_list.append( [str(filepath), yaw ] )
|
||||||
|
|
||||||
@@ -137,7 +137,7 @@ def sort_by_face_pitch(input_path):
|
|||||||
trash_img_list.append ( [str(filepath)] )
|
trash_img_list.append ( [str(filepath)] )
|
||||||
continue
|
continue
|
||||||
|
|
||||||
pitch, yaw, roll = LandmarksProcessor.estimate_pitch_yaw_roll ( dflimg.get_landmarks() )
|
pitch, yaw, roll = LandmarksProcessor.estimate_pitch_yaw_roll ( dflimg.get_landmarks(), size=dflimg.get_shape()[1] )
|
||||||
|
|
||||||
img_list.append( [str(filepath), pitch ] )
|
img_list.append( [str(filepath), pitch ] )
|
||||||
|
|
||||||
@@ -418,7 +418,7 @@ class FinalLoaderSubprocessor(Subprocessor):
|
|||||||
|
|
||||||
gray = cv2.cvtColor(bgr, cv2.COLOR_BGR2GRAY)
|
gray = cv2.cvtColor(bgr, cv2.COLOR_BGR2GRAY)
|
||||||
sharpness = estimate_sharpness(gray) if self.include_by_blur else 0
|
sharpness = estimate_sharpness(gray) if self.include_by_blur else 0
|
||||||
pitch, yaw, roll = LandmarksProcessor.estimate_pitch_yaw_roll ( dflimg.get_landmarks() )
|
pitch, yaw, roll = LandmarksProcessor.estimate_pitch_yaw_roll ( dflimg.get_landmarks(), size=dflimg.get_shape()[1] )
|
||||||
|
|
||||||
hist = cv2.calcHist([gray], [0], None, [256], [0, 256])
|
hist = cv2.calcHist([gray], [0], None, [256], [0, 256])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user