From f6f8f8ee5d62f9c8ea6b4d334fba36f66c7d1001 Mon Sep 17 00:00:00 2001 From: Colombo Date: Mon, 11 Nov 2019 09:13:42 +0400 Subject: [PATCH] change default jpg face extractor quality to 100 --- mainscripts/Extractor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainscripts/Extractor.py b/mainscripts/Extractor.py index fb165e2..bf4affd 100644 --- a/mainscripts/Extractor.py +++ b/mainscripts/Extractor.py @@ -255,7 +255,7 @@ class ExtractSubprocessor(Subprocessor): shutil.copy ( str(filename_path), str(output_file) ) else: output_file = '{}_{}{}'.format(str(self.final_output_path / filename_path.stem), str(face_idx), '.jpg') - cv2_imwrite(output_file, face_image, [int(cv2.IMWRITE_JPEG_QUALITY), 85] ) + cv2_imwrite(output_file, face_image, [int(cv2.IMWRITE_JPEG_QUALITY), 100] ) DFLJPG.embed_data(output_file, face_type=FaceType.toString(self.face_type), landmarks=face_image_landmarks.tolist(),