Compare commits
	
		
			12 Commits 
		
	
	
		
			71fb76597a
			...
			19f8b0eaf6
		
	
	| Author | SHA1 | Date | 
|---|---|---|
|  | 19f8b0eaf6 | |
|  | d5a3fb0c47 | |
|  | 9690070399 | |
|  | f3e83b985c | |
|  | e3e3638b79 | |
|  | 75122da389 | |
|  | 7063bba4b3 | |
|  | bdbd7dcfbc | |
|  | a64940def7 | |
|  | fe4a87e8f2 | |
|  | 9ecd2dab83 | |
|  | c9f36eb350 | 
|  | @ -0,0 +1,46 @@ | ||||||
|  | { | ||||||
|  |     "Source x Target Mapper": "Quelle x Ziel Zuordnung", | ||||||
|  |     "select a source image": "Wähle ein Quellbild", | ||||||
|  |     "Preview": "Vorschau", | ||||||
|  |     "select a target image or video": "Wähle ein Zielbild oder Video", | ||||||
|  |     "save image output file": "Bildausgabedatei speichern", | ||||||
|  |     "save video output file": "Videoausgabedatei speichern", | ||||||
|  |     "select a target image": "Wähle ein Zielbild", | ||||||
|  |     "source": "Quelle", | ||||||
|  |     "Select a target": "Wähle ein Ziel", | ||||||
|  |     "Select a face": "Wähle ein Gesicht", | ||||||
|  |     "Keep audio": "Audio beibehalten", | ||||||
|  |     "Face Enhancer": "Gesichtsverbesserung", | ||||||
|  |     "Many faces": "Mehrere Gesichter", | ||||||
|  |     "Show FPS": "FPS anzeigen", | ||||||
|  |     "Keep fps": "FPS beibehalten", | ||||||
|  |     "Keep frames": "Frames beibehalten", | ||||||
|  |     "Fix Blueish Cam": "Bläuliche Kamera korrigieren", | ||||||
|  |     "Mouth Mask": "Mundmaske", | ||||||
|  |     "Show Mouth Mask Box": "Mundmaskenrahmen anzeigen", | ||||||
|  |     "Start": "Starten", | ||||||
|  |     "Live": "Live", | ||||||
|  |     "Destroy": "Beenden", | ||||||
|  |     "Map faces": "Gesichter zuordnen", | ||||||
|  |     "Processing...": "Verarbeitung läuft...", | ||||||
|  |     "Processing succeed!": "Verarbeitung erfolgreich!", | ||||||
|  |     "Processing ignored!": "Verarbeitung ignoriert!", | ||||||
|  |     "Failed to start camera": "Kamera konnte nicht gestartet werden", | ||||||
|  |     "Please complete pop-up or close it.": "Bitte das Pop-up komplettieren oder schließen.", | ||||||
|  |     "Getting unique faces": "Einzigartige Gesichter erfassen", | ||||||
|  |     "Please select a source image first": "Bitte zuerst ein Quellbild auswählen", | ||||||
|  |     "No faces found in target": "Keine Gesichter im Zielbild gefunden", | ||||||
|  |     "Add": "Hinzufügen", | ||||||
|  |     "Clear": "Löschen", | ||||||
|  |     "Submit": "Absenden", | ||||||
|  |     "Select source image": "Quellbild auswählen", | ||||||
|  |     "Select target image": "Zielbild auswählen", | ||||||
|  |     "Please provide mapping!": "Bitte eine Zuordnung angeben!", | ||||||
|  |     "At least 1 source with target is required!": "Mindestens eine Quelle mit einem Ziel ist erforderlich!", | ||||||
|  |     "At least 1 source with target is required!": "Mindestens eine Quelle mit einem Ziel ist erforderlich!", | ||||||
|  |     "Face could not be detected in last upload!": "Im letzten Upload konnte kein Gesicht erkannt werden!", | ||||||
|  |     "Select Camera:": "Kamera auswählen:", | ||||||
|  |     "All mappings cleared!": "Alle Zuordnungen gelöscht!", | ||||||
|  |     "Mappings successfully submitted!": "Zuordnungen erfolgreich übermittelt!", | ||||||
|  |     "Source x Target Mapper is already open.": "Quell-zu-Ziel-Zuordnung ist bereits geöffnet." | ||||||
|  | } | ||||||
|  | @ -1,11 +1,11 @@ | ||||||
| { | { | ||||||
|     "Source x Target Mapper": "Source x Target Mapper", |     "Source x Target Mapper": "Source x Target Mapper", | ||||||
|     "select an source image": "选择一个源图像", |     "select a source image": "选择一个源图像", | ||||||
|     "Preview": "预览", |     "Preview": "预览", | ||||||
|     "select an target image or video": "选择一个目标图像或视频", |     "select a target image or video": "选择一个目标图像或视频", | ||||||
|     "save image output file": "保存图像输出文件", |     "save image output file": "保存图像输出文件", | ||||||
|     "save video output file": "保存视频输出文件", |     "save video output file": "保存视频输出文件", | ||||||
|     "select an target image": "选择一个目标图像", |     "select a target image": "选择一个目标图像", | ||||||
|     "source": "源", |     "source": "源", | ||||||
|     "Select a target": "选择一个目标", |     "Select a target": "选择一个目标", | ||||||
|     "Select a face": "选择一张脸", |     "Select a face": "选择一张脸", | ||||||
|  | @ -36,7 +36,7 @@ | ||||||
|     "Select source image": "请选取源图像", |     "Select source image": "请选取源图像", | ||||||
|     "Select target image": "请选取目标图像", |     "Select target image": "请选取目标图像", | ||||||
|     "Please provide mapping!": "请提供映射", |     "Please provide mapping!": "请提供映射", | ||||||
|     "Atleast 1 source with target is required!": "至少需要一个来源图像与目标图像相关!", |     "At least 1 source with target is required!": "至少需要一个来源图像与目标图像相关!", | ||||||
|     "At least 1 source with target is required!": "至少需要一个来源图像与目标图像相关!", |     "At least 1 source with target is required!": "至少需要一个来源图像与目标图像相关!", | ||||||
|     "Face could not be detected in last upload!": "最近上传的图像中没有检测到人脸!", |     "Face could not be detected in last upload!": "最近上传的图像中没有检测到人脸!", | ||||||
|     "Select Camera:": "选择摄像头", |     "Select Camera:": "选择摄像头", | ||||||
|  |  | ||||||
|  | @ -0,0 +1,18 @@ | ||||||
|  | import os  | ||||||
|  | import cv2 | ||||||
|  | import numpy as np | ||||||
|  | 
 | ||||||
|  | # Utility function to support unicode characters in file paths for reading | ||||||
|  | def imread_unicode(path, flags=cv2.IMREAD_COLOR): | ||||||
|  |     return cv2.imdecode(np.fromfile(path, dtype=np.uint8), flags) | ||||||
|  | 
 | ||||||
|  | # Utility function to support unicode characters in file paths for writing | ||||||
|  | def imwrite_unicode(path, img, params=None): | ||||||
|  |     root, ext = os.path.splitext(path) | ||||||
|  |     if not ext: | ||||||
|  |         ext = ".png" | ||||||
|  |         result, encoded_img = cv2.imencode(ext, img, params if params else []) | ||||||
|  |         result, encoded_img = cv2.imencode(f".{ext}", img, params if params is not None else []) | ||||||
|  |         encoded_img.tofile(path) | ||||||
|  |         return True | ||||||
|  |     return False | ||||||
|  | @ -429,7 +429,7 @@ def create_source_target_popup( | ||||||
|             POPUP.destroy() |             POPUP.destroy() | ||||||
|             select_output_path(start) |             select_output_path(start) | ||||||
|         else: |         else: | ||||||
|             update_pop_status("Atleast 1 source with target is required!") |             update_pop_status("At least 1 source with target is required!") | ||||||
| 
 | 
 | ||||||
|     scrollable_frame = ctk.CTkScrollableFrame( |     scrollable_frame = ctk.CTkScrollableFrame( | ||||||
|         POPUP, width=POPUP_SCROLL_WIDTH, height=POPUP_SCROLL_HEIGHT |         POPUP, width=POPUP_SCROLL_WIDTH, height=POPUP_SCROLL_HEIGHT | ||||||
|  | @ -489,7 +489,7 @@ def update_popup_source( | ||||||
|     global source_label_dict |     global source_label_dict | ||||||
| 
 | 
 | ||||||
|     source_path = ctk.filedialog.askopenfilename( |     source_path = ctk.filedialog.askopenfilename( | ||||||
|         title=_("select an source image"), |         title=_("select a source image"), | ||||||
|         initialdir=RECENT_DIRECTORY_SOURCE, |         initialdir=RECENT_DIRECTORY_SOURCE, | ||||||
|         filetypes=[img_ft], |         filetypes=[img_ft], | ||||||
|     ) |     ) | ||||||
|  | @ -584,7 +584,7 @@ def select_source_path() -> None: | ||||||
| 
 | 
 | ||||||
|     PREVIEW.withdraw() |     PREVIEW.withdraw() | ||||||
|     source_path = ctk.filedialog.askopenfilename( |     source_path = ctk.filedialog.askopenfilename( | ||||||
|         title=_("select an source image"), |         title=_("select a source image"), | ||||||
|         initialdir=RECENT_DIRECTORY_SOURCE, |         initialdir=RECENT_DIRECTORY_SOURCE, | ||||||
|         filetypes=[img_ft], |         filetypes=[img_ft], | ||||||
|     ) |     ) | ||||||
|  | @ -627,7 +627,7 @@ def select_target_path() -> None: | ||||||
| 
 | 
 | ||||||
|     PREVIEW.withdraw() |     PREVIEW.withdraw() | ||||||
|     target_path = ctk.filedialog.askopenfilename( |     target_path = ctk.filedialog.askopenfilename( | ||||||
|         title=_("select an target image or video"), |         title=_("select a target image or video"), | ||||||
|         initialdir=RECENT_DIRECTORY_TARGET, |         initialdir=RECENT_DIRECTORY_TARGET, | ||||||
|         filetypes=[img_ft, vid_ft], |         filetypes=[img_ft, vid_ft], | ||||||
|     ) |     ) | ||||||
|  | @ -1108,7 +1108,7 @@ def update_webcam_source( | ||||||
|     global source_label_dict_live |     global source_label_dict_live | ||||||
| 
 | 
 | ||||||
|     source_path = ctk.filedialog.askopenfilename( |     source_path = ctk.filedialog.askopenfilename( | ||||||
|         title=_("select an source image"), |         title=_("select a source image"), | ||||||
|         initialdir=RECENT_DIRECTORY_SOURCE, |         initialdir=RECENT_DIRECTORY_SOURCE, | ||||||
|         filetypes=[img_ft], |         filetypes=[img_ft], | ||||||
|     ) |     ) | ||||||
|  | @ -1160,7 +1160,7 @@ def update_webcam_target( | ||||||
|     global target_label_dict_live |     global target_label_dict_live | ||||||
| 
 | 
 | ||||||
|     target_path = ctk.filedialog.askopenfilename( |     target_path = ctk.filedialog.askopenfilename( | ||||||
|         title=_("select an target image"), |         title=_("select a target image"), | ||||||
|         initialdir=RECENT_DIRECTORY_SOURCE, |         initialdir=RECENT_DIRECTORY_SOURCE, | ||||||
|         filetypes=[img_ft], |         filetypes=[img_ft], | ||||||
|     ) |     ) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue