Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KlingAIResearch/GameFactory
/ functions
Functions
9 in github.com/KlingAIResearch/GameFactory
⨍
Functions
9
◇
Types & classes
0
↓ 1 callers
Function
clear_directory
Clear all files and subdirectories in the specified directory. Create the directory if it does not exist.
detection.py:10
↓ 1 callers
Function
draw_keys_on_frame
(frame, keys, key_size=(80, 50), spacing=20, bottom_margin=30)
visualize.py:74
↓ 1 callers
Function
draw_rounded_rectangle
(image, top_left, bottom_right, color, radius=10, alpha=0.5)
visualize.py:58
↓ 1 callers
Function
main
()
detection.py:106
↓ 1 callers
Function
overlay_icon
(frame, icon, position, scale=1.0, rotation=0)
visualize.py:111
↓ 1 callers
Function
parse_config
根据配置生成按键数据和鼠标数据 - config: list_actions[i] 的配置 - 返回: key_data 和 mouse_data
visualize.py:8
↓ 1 callers
Function
process_video
(input_video, output_video, config, mouse_icon_path, mouse_scale=1.0, mouse_rotation=0)
visualize.py:157
↓ 1 callers
Function
process_videos_and_metadata
(video_dir, metadata_dir, output_metadata_dir, threshold=0.1, height_threshold=0.1)
detection.py:31
Function
extract_data_from_json
Extract action data from JSON for visualizing keys.
detection.py:25