MCPcopy Index your code

hub / github.com/YaoFANGUK/video-subtitle-extractor / functions

Functions430 in github.com/YaoFANGUK/video-subtitle-extractor

↓ 80 callersMethodformat
(self, record)
backend/sushi/__main__.py:34
↓ 29 callersMethodappend_output
输出信息到控制台 Args: *args: 要输出的内容,多个参数将用空格连接
backend/main.py:1028
↓ 22 callersFunctionformat_time
(seconds)
backend/sushi/common.py:32
↓ 20 callersMethodwidth
(self)
backend/bean/subtitle_area.py:37
↓ 18 callersMethodheight
(self)
backend/bean/subtitle_area.py:41
↓ 16 callersMethodupdate_preview_with_rect
更新带有选择框的预览
ui/component/video_display_component.py:272
↓ 15 callersMethodstart
启动子进程 :param script_path: 要执行的Python脚本路径 :param args: 传递给脚本的参数 :param python_args: 传递给Python解释器的参数 :param cwd
backend/tools/python_runner.py:42
↓ 13 callersMethodinstance
单例模式获取实例
backend/tools/process_manager.py:22
↓ 10 callersMethodappend_output
添加文本到输出区域并控制滚动 Args: *args: 要输出的内容,多个参数将用空格连接
ui/home_interface.py:510
↓ 10 callersFunctionsafe_add_path
(args, folder, key, name)
backend/sushi/regression-tests.py:92
↓ 9 callersMethodlink_event
(self, other)
backend/sushi/subs.py:65
↓ 9 callersMethodupdate_progress
更新进度条 :param ocr ocr进度 :param frame_extract 视频帧提取进度
backend/main.py:972
↓ 9 callersMethodupdate_task_status
更新任务状态 Args: index: 任务索引 status: 任务状态
ui/component/task_list_component.py:176
↓ 8 callersFunctioncheck_file_exists
(path, file_title)
backend/sushi/__init__.py:474
↓ 7 callersFunctionabs_diff
(a, b)
backend/sushi/__init__.py:29
↓ 7 callersMethodfind_substream
(self, pattern, window_center, window_size)
backend/sushi/wav.py:179
↓ 7 callersFunctionformat_full_path
(temp_dir, base_path, postfix)
backend/sushi/__init__.py:479
↓ 7 callersMethodfrom_file
(cls, path)
backend/sushi/subs.py:128
↓ 7 callersMethodwait
(self)
backend/tools/concurrent/future.py:199
↓ 6 callersMethod__adjust_slider_value
调整视频滑块的值
ui/component/video_display_component.py:919
↓ 6 callersMethodclose
(self)
backend/sushi/wav.py:61
↓ 6 callersFunctionget_distance_to_closest_kf
(timestamp, keyframes)
backend/sushi/__init__.py:180
↓ 6 callersMethodnormalized
(self)
backend/bean/subtitle_area.py:27
↓ 5 callersFunctionget_extension
(path)
backend/sushi/common.py:8
↓ 5 callersMethodget_frame_size
(self, timestamp)
backend/sushi/demux.py:160
↓ 5 callersMethodget_frame_time
(self, number)
backend/sushi/demux.py:144
↓ 5 callersMethodin_ab_section
(self, frame_idx)
backend/bean/subtitle_area.py:44
↓ 5 callersMethodpredict
(self, image)
backend/tools/ocr.py:24
↓ 4 callersMethod_get_sample_for_time
(self, timestamp)
backend/sushi/wav.py:175
↓ 4 callersMethodadd_process
添加进程到管理器 Args: process: 要添加的进程对象 (subprocess.Popen实例) name: 进程名称,如果不提供则使用进程ID
backend/tools/process_manager.py:36
↓ 4 callersMethodget_frame_number
(self, timestamp)
backend/sushi/demux.py:155
↓ 4 callersMethodget_pending_tasks
获取所有待处理的任务 Returns: list: 待处理任务列表,每项为 (索引, 任务) 元组
ui/component/task_list_component.py:204
↓ 4 callersMethodparse_time
(time_string)
backend/sushi/subs.py:118
↓ 4 callersMethodupdate_task_option
更新任务选项 Args: index: 任务索引 task_option: 选项名 value: 选项值
ui/component/task_list_component.py:374
↓ 3 callersMethod__get_area_text
获取字幕区域内的文本内容
backend/main.py:889
↓ 3 callersMethod__init__
(self, semaphore=0)
backend/tools/concurrent/future.py:58
↓ 3 callersMethod_frame_to_timecode
将视频帧转换成时间(纯计算,不打开视频文件) :param frame_no: 视频的帧号,i.e. 第几帧视频帧 :returns: SMPTE格式时间戳 as string, 如'01:02:12,032'
backend/main.py:730
↓ 3 callersFunction_parse_ass_time
(string)
backend/sushi/subs.py:10
↓ 3 callersMethod_read_model_name_from_yaml
从 inference.yml 中读取 Global.model_name
backend/tools/paddle_model_config.py:86
↓ 3 callersMethod_select_stream
(self, streams, chosen_idx, name)
backend/sushi/demux.py:338
↓ 3 callersMethodcenter_window
将窗口居中显示
gui.py:155
↓ 3 callersMethodcfr
(cls, fps)
backend/sushi/demux.py:213
↓ 3 callersMethodchoose_path
选择保存目录
ui/timeline_sync_interface.py:117
↓ 3 callersFunctionfix_near_borders
We assume that all lines with diff greater than 5 * (median diff across all events) are broken
backend/sushi/__init__.py:152
↓ 3 callersMethodgetExtra
(self, key)
backend/tools/concurrent/future.py:221
↓ 3 callersFunctionget_coordinates
从返回的检测框中获取坐标 :param dt_box 检测框返回结果 :return list 坐标点列表
backend/tools/ocr.py:111
↓ 3 callersMethodget_task_option
获取任务选项 Args: index: 任务索引 task_option: 选项名 default: 默认值 Returns: 选项值
ui/component/task_list_component.py:385
↓ 3 callersMethodhas_accelerator
(self)
backend/tools/hardware_accelerator.py:62
↓ 3 callersMethodis_selected_file_exists
(self, name, path)
ui/timeline_sync_interface.py:176
↓ 3 callersMethodload_video
(self, video_path)
ui/home_interface.py:549
↓ 3 callersFunctionlog_shift
(state)
backend/sushi/__init__.py:364
↓ 3 callersMethodmanage_process
(pid)
backend/main.py:1065
↓ 3 callersMethodrun
(self)
backend/tools/concurrent/task.py:44
↓ 3 callersFunctionsafe_add_key
(args, key, name)
backend/sushi/regression-tests.py:88
↓ 3 callersMethodselect_task
选中指定任务 Args: index: 任务索引
ui/component/task_list_component.py:339
↓ 3 callersMethodsetFailed
:param exception: The exception to set :return: None
backend/tools/concurrent/future.py:137
↓ 3 callersMethodset_shift
(self, shift, audio_diff)
backend/sushi/subs.py:52
↓ 3 callersMethodsort_by_time
(self)
backend/sushi/subs.py:88
↓ 3 callersMethodstop
停止子进程
backend/tools/python_runner.py:117
↓ 3 callersFunctionstrip_tags
(text)
backend/sushi/regression-tests.py:21
↓ 3 callersMethodterminate_all
并发终止所有管理的进程
backend/tools/process_manager.py:71
↓ 3 callersMethodterminate_by_pid
(self, pid)
backend/tools/process_manager.py:116
↓ 3 callersMethodupdate_task_progress
更新任务进度 Args: index: 任务索引 progress: 进度值(0-100)
ui/component/task_list_component.py:157
↓ 3 callersMethodwait
等待进程结束
backend/tools/python_runner.py:123
↓ 2 callersMethod__get_thum
对图片进行统一化处理
backend/main.py:949
↓ 2 callersMethod_format_streams_list
(cls, streams)
backend/sushi/demux.py:335
↓ 2 callersMethod_format_time
(seconds)
backend/sushi/subs.py:122
↓ 2 callersMethod_format_time
(seconds)
backend/sushi/subs.py:179
↓ 2 callersMethod_remove_duplicate_subtitle
读取原始的raw txt,去除重复行,返回去除了重复后的字幕列表
backend/main.py:751
↓ 2 callersMethod_start_reader_thread
启动输出读取线程
backend/tools/python_runner.py:91
↓ 2 callersMethod_taskDone
(self, **data)
backend/tools/concurrent/task.py:30
↓ 2 callersMethodadjust_additional_shifts
(self, start_shift, end_shift)
backend/sushi/subs.py:57
↓ 2 callersMethodapply_task_selection
从任务列表中获取选区信息 如果选区信息不存在, 则从已设置的选区中加载 如果仍然不存在已设置选区则从配置文件中加载
ui/home_interface.py:183
↓ 2 callersMethodcheck_update
check software update Parameters ---------- ignore: bool ignore message box when no updates are available
ui/advanced_setting_interface.py:277
↓ 2 callersMethodcleanup
(self)
backend/sushi/demux.py:320
↓ 2 callersFunctionclip
(value, minimum, maximum)
backend/sushi/common.py:41
↓ 2 callersMethoddelete_task
删除任务 Args: row: 行索引
ui/component/task_list_component.py:288
↓ 2 callersMethoddemux
(self)
backend/sushi/demux.py:282
↓ 2 callersFunctiondetect_groups
(events_iter)
backend/sushi/__init__.py:82
↓ 2 callersFunctionensure_static_collection
(value)
backend/sushi/common.py:17
↓ 2 callersMethodextract_frame_by_fps
根据帧率,定时提取视频帧,容易丢字幕,但速度快,将提取到的视频帧加入ocr识别任务队列
backend/main.py:228
↓ 2 callersFunctionfind_keyframe_distance
(src_time, dst_time)
backend/sushi/__init__.py:214
↓ 2 callersFunctionfix_border
(event_list, median_diff)
backend/sushi/__init__.py:156
↓ 2 callersMethodgetChildren
(self)
backend/tools/concurrent/future.py:182
↓ 2 callersMethodgetTaskID
(self)
backend/tools/concurrent/future.py:179
↓ 2 callersMethodget_all_tasks
获取所有任务 Returns: list: 所有任务列表
ui/component/task_list_component.py:212
↓ 2 callersMethodget_current_task_index
获取当前处理的任务索引 Returns: int: 任务索引
ui/component/task_list_component.py:331
↓ 2 callersFunctionget_distance
(src_distance, dst_distance, limit)
backend/sushi/__init__.py:194
↓ 2 callersMethodget_link_chain_end
(self)
backend/sushi/subs.py:62
↓ 2 callersMethodget_resize_edge
获取调整大小的边缘类型
ui/component/video_display_component.py:515
↓ 2 callersMethodget_root_parent
(self)
ui/component/task_list_component.py:368
↓ 2 callersMethodget_task
获取指定索引的任务 Args: index: 任务索引 Returns: Task: 任务对象
ui/component/task_list_component.py:220
↓ 2 callersMethodhasChildren
(self)
backend/tools/concurrent/future.py:170
↓ 2 callersMethodhas_cuda
(self)
backend/tools/hardware_accelerator.py:84
↓ 2 callersMethodisDone
(self)
backend/tools/concurrent/future.py:209
↓ 2 callersMethodis_on_rect_edge
检查点是否在矩形边缘 注意:这里的pixel_rect是已经转换为像素坐标的QRect对象
ui/component/video_display_component.py:485
↓ 2 callersFunctionlog_uncommitted
(state, shift, left_side_shift, right_side_shift, search_offset)
backend/sushi/__init__.py:368
↓ 2 callersMethodmacos_scrollarea_issue_workaround
(self)
ui/advanced_setting_interface.py:315
↓ 2 callersFunctionmerge_short_lines_into_groups
(events, chapter_times, max_ts_duration, max_ts_distance)
backend/sushi/__init__.py:281
↓ 2 callersMethodopen_file_location
打开文件所在位置 Args: row: 行索引 path: 目标路径
ui/component/task_list_component.py:349
next →1–100 of 430, ranked by callers