mirror of
https://github.com/hacksider/Deep-Live-Cam.git
synced 2025-03-17 21:31:51 +01:00
updated README.md and created variables for pop dimensions
This commit is contained in:
parent
0a144ec57f
commit
f122006024
@ -146,6 +146,7 @@ options:
|
||||
--keep-audio keep original audio
|
||||
--keep-frames keep temporary frames
|
||||
--many-faces process every face
|
||||
--map-faces map source target faces
|
||||
--nsfw-filter filter the NSFW image or video
|
||||
--video-encoder {libx264,libx265,libvpx-vp9} adjust output video encoder
|
||||
--video-quality [0-51] adjust output video quality
|
||||
|
@ -40,7 +40,7 @@ def parse_args() -> None:
|
||||
program.add_argument('--keep-frames', help='keep temporary frames', dest='keep_frames', action='store_true', default=False)
|
||||
program.add_argument('--many-faces', help='process every face', dest='many_faces', action='store_true', default=False)
|
||||
program.add_argument('--nsfw-filter', help='filter the NSFW image or video', dest='nsfw_filter', action='store_true', default=False)
|
||||
program.add_argument('--map-faces', help='create face maps', dest='map_faces', action='store_true', default=False)
|
||||
program.add_argument('--map-faces', help='map source target faces', dest='map_faces', action='store_true', default=False)
|
||||
program.add_argument('--video-encoder', help='adjust output video encoder', dest='video_encoder', default='libx264', choices=['libx264', 'libx265', 'libvpx-vp9'])
|
||||
program.add_argument('--video-quality', help='adjust output video quality', dest='video_quality', type=int, default=18, choices=range(52), metavar='[0-51]')
|
||||
program.add_argument('--live-mirror', help='The live camera display as you see it in the front-facing camera frame', dest='live_mirror', action='store_true', default=False)
|
||||
|
@ -10,7 +10,7 @@ file_types = [
|
||||
]
|
||||
|
||||
souce_target_map = []
|
||||
simple_map = []
|
||||
simple_map = {}
|
||||
|
||||
source_path = None
|
||||
target_path = None
|
||||
|
@ -24,6 +24,16 @@ PREVIEW_MAX_WIDTH = 1200
|
||||
PREVIEW_DEFAULT_WIDTH = 960
|
||||
PREVIEW_DEFAULT_HEIGHT = 540
|
||||
|
||||
POPUP_WIDTH = 750
|
||||
POPUP_HEIGHT = 810
|
||||
POPUP_SCROLL_WIDTH = 740,
|
||||
POPUP_SCROLL_HEIGHT = 700
|
||||
|
||||
POPUP_LIVE_WIDTH = 950
|
||||
POPUP_LIVE_HEIGHT = 820
|
||||
POPUP_LIVE_SCROLL_WIDTH = 940,
|
||||
POPUP_LIVE_SCROLL_HEIGHT = 700
|
||||
|
||||
MAPPER_PREVIEW_MAX_HEIGHT = 100
|
||||
MAPPER_PREVIEW_MAX_WIDTH = 100
|
||||
|
||||
@ -165,7 +175,7 @@ def create_source_target_popup(start: Callable[[], None], root: ctk.CTk, map: li
|
||||
|
||||
POPUP = ctk.CTkToplevel(root)
|
||||
POPUP.title("Source x Target Mapper")
|
||||
POPUP.geometry(f"{ROOT_WIDTH+150}x{ROOT_HEIGHT+110}")
|
||||
POPUP.geometry(f"{POPUP_WIDTH}x{POPUP_HEIGHT}")
|
||||
POPUP.focus()
|
||||
|
||||
def on_submit_click(start):
|
||||
@ -175,7 +185,7 @@ def create_source_target_popup(start: Callable[[], None], root: ctk.CTk, map: li
|
||||
else:
|
||||
update_pop_status("Atleast 1 source with target is required!")
|
||||
|
||||
scrollable_frame = ctk.CTkScrollableFrame(POPUP, width=ROOT_WIDTH+140, height=ROOT_HEIGHT)
|
||||
scrollable_frame = ctk.CTkScrollableFrame(POPUP, width=POPUP_SCROLL_WIDTH, height=POPUP_SCROLL_HEIGHT)
|
||||
scrollable_frame.grid(row=0, column=0, padx=0, pady=0, sticky='nsew')
|
||||
|
||||
def on_button_click(map, button_num):
|
||||
@ -508,7 +518,7 @@ def create_source_target_popup_for_webcam(root: ctk.CTk, map: list) -> None:
|
||||
|
||||
POPUP_LIVE = ctk.CTkToplevel(root)
|
||||
POPUP_LIVE.title("Source x Target Mapper")
|
||||
POPUP_LIVE.geometry(f"{ROOT_WIDTH+350}x{ROOT_HEIGHT+120}")
|
||||
POPUP_LIVE.geometry(f"{POPUP_LIVE_WIDTH}x{POPUP_LIVE_HEIGHT}")
|
||||
POPUP_LIVE.focus()
|
||||
|
||||
def on_submit_click():
|
||||
@ -537,7 +547,7 @@ def create_source_target_popup_for_webcam(root: ctk.CTk, map: list) -> None:
|
||||
def refresh_data(map: list):
|
||||
global POPUP_LIVE
|
||||
|
||||
scrollable_frame = ctk.CTkScrollableFrame(POPUP_LIVE, width=ROOT_WIDTH+340, height=ROOT_HEIGHT)
|
||||
scrollable_frame = ctk.CTkScrollableFrame(POPUP_LIVE, width=POPUP_LIVE_SCROLL_WIDTH, height=POPUP_LIVE_SCROLL_HEIGHT)
|
||||
scrollable_frame.grid(row=0, column=0, padx=0, pady=0, sticky='nsew')
|
||||
|
||||
def on_sbutton_click(map, button_num):
|
||||
|
Loading…
x
Reference in New Issue
Block a user