{"module": {"textdetector": "ctd", "ocr": "mit48px", "inpainter": "lama_large_512px", "translator": "google", "enable_detect": true, "keep_exist_textlines": false, "enable_ocr": true, "enable_translate": true, "enable_inpaint": true, "textdetector_params": {"ctd": {"detect_size": 1280, "det_rearrange_max_batches": 4, "device": "cpu", "font size multiplier": 1.0, "font size max": -1, "font size min": -1, "mask dilate size": 2}, "stariver_ocr": {"User": "填入你的用户名", "Password": "填入你的密码。请注意,密码会明文保存,请勿在公共电脑上使用", "expand_ratio": "0.01", "refine": true, "filtrate": true, "disable_skip_area": true, "detect_scale": "3", "merge_threshold": "2.0", "low_accuracy_mode": false, "force_expand": false, "font_size_offset": "0", "font_size_min(set to -1 to disable)": "-1", "font_size_max(set to -1 to disable)": "-1", "font_size_multiplier": "1.0", "update_token_btn": ""}, "ysgyolo": {"model path": "data/models/ysgyolo_1.2_OS1.0.pt", "merge text lines": true, "confidence threshold": 0.3, "IoU threshold": 0.5, "font size multiplier": 1.0, "font size max": -1, "font size min": -1, "detect size": 1024, "device": "cpu", "label": {"balloon": true, "qipao": true, "shuqing": true, "changfangtiao": true, "hengxie": true, "other": true}, "source text is vertical": true, "mask dilate size": 2}}, "ocr_params": {"bing_ocr": {"delay": 1.0, "newline_handling": "preserve", "no_uppercase": false, "response_method": "Full Text", "proxy": ""}, "google_vision": {"api_key": "", "language_hints": "", "proxy": "", "delay": 0.0, "newline_handling": "preserve", "no_uppercase": false}, "google_lens_exp": {"delay": 1.5, "newline_handling": "preserve", "no_uppercase": false, "target_language": "ja", "proxy": ""}, "llm_ocr": {"provider": "OpenAI", "api_key": "", "multiple_keys": "", "endpoint": "", "model": "OAI: gpt-4o-mini", "override_model": "", "language": "Japanese", "detail_level": "auto", "prompt": "Perform OCR on the provided manga image snippet. The language is **{language}**.\nRecognize all text, including handwritten sound effects (SFX).\n**CRITICAL INSTRUCTION:** If you see jumbled characters, it is likely vertical text that was read horizontally. First, mentally reconstruct the correct vertical text.\n**OUTPUT FORMATTING:** All recognized text from the image must be consolidated into a **single, continuous horizontal line**. Do not use newlines.\nYour final output must be ONLY the recognized text. No explanations.", "system_prompt": "You are a specialized OCR engine for manga and comics. Your primary function is to accurately extract and consolidate all recognized text from an image into a **single, continuous horizontal line**. You must return only the raw, recognized text. You do not interpret, translate, or explain the content. You are designed to intelligently handle common OCR errors, such as reconstructing jumbled characters that result from misreading vertical text.", "proxy": "", "delay": 1.0, "requests_per_minute": 15, "max_response_tokens": 4096}, "manga_ocr": {"device": "cpu"}, "mit32px": {"chunk_size": 16, "device": "cpu"}, "mit48px_ctc": {"chunk_size": 16, "device": "cpu"}, "mit48px": {"chunk_size": 16, "device": "cpu"}, "none_ocr": {"NOTICE": "Not a OCR, just return original text."}, "one_ocr": {"expand_small_blocks": true, "newline_handling": "preserve", "reverse_line_order": false, "no_uppercase": false}, "paddle_ocr": {"language": "English", "device": "cpu", "use_angle_cls": false, "ocr_version": "PP-OCRv4", "enable_mkldnn": false, "det_limit_side_len": 960, "rec_batch_num": 6, "drop_score": 0.5, "text_case": "Capitalize Sentences", "output_format": "As Recognized"}, "stariver_ocr": {"User": "填入你的用户名", "Password": "填入你的密码。请注意,密码会明文保存,请勿在公共电脑上使用", "refine": true, "filtrate": true, "disable_skip_area": true, "detect_scale": "3", "merge_threshold": "2", "force_expand": false, "low_accuracy_mode": false, "update_token_btn": ""}, "windows_ocr": {"language": "英语(美国)"}}, "translator_params": {"None": {}, "Copy Source": {}, "Baidu": {"token": "", "appId": "", "delay": 0.0}, "Caiyun": {"token": "", "delay": 0.0}, "ChatGPT": {"api key": "", "model": "gpt-4o", "override model": "", "prompt template": "Please help me to translate the following text from a manga to {to_lang} (if it's already in {to_lang} or looks like gibberish you have to output it as it is instead):\n", "chat system template": "You are a professional translation engine, please translate the text into a colloquial, elegant and fluent content, without referencing machine translations. You must only translate the text content, never interpret it. If there's any issue in the text, output the text as is.\nTranslate to {to_lang}.", "chat sample": "日本語-简体中文:\n source:\n - 二人のちゅーを 目撃した ぼっちちゃん\n - ふたりさん\n - 大好きなお友達には あいさつ代わりに ちゅーするんだって\n - アイス あげた\n - 喜多ちゃんとは どどど どういった ご関係なのでしようか...\n - テレビで見た!\n target:\n - 小孤独目击了两人的接吻\n - 二里酱\n - 我听说人们会把亲吻作为与喜爱的朋友打招呼的方式\n - 我给了她冰激凌\n - 喜多酱和你是怎么样的关系啊...\n - 我在电视上看到的!", "invalid repeat count": 2, "max requests per minute": 20, "delay": 0.3, "max tokens": 4096, "temperature": 0.5, "top p": 1.0, "retry attempts": 5, "retry timeout": 15, "3rd party api url": "", "frequency penalty": 0.0, "presence penalty": 0.0, "low vram mode": false}, "ChatGPT_exp": {"api key": "", "model": "gpt-4o", "override model": "", "max tokens": 4096, "temperature": 0.5, "top p": 1.0, "retry attempts": 5, "retry timeout": 15, "3rd party api url": "", "frequency penalty": 0.0, "presence penalty": 0.0}, "DeepL": {"api_key": "", "delay": 0.0, "formality": "default", "context": "", "preserve_formatting": "disabled"}, "DeepL Free": {"delay": 0.0, "proxy": ""}, "DeepLX API": {"api_url": "", "delay": 0.0}, "ezTrans": {"path_dat": "C:\\Program Files (x86)\\ChangShinSoft\\ezTrans XP\\Dat", "path_j2k(J2KEngine.dll)": "C:\\Program Files (x86)\\ChangShinSoft\\ezTrans XP\\J2KEngine.dll", "path_k2j(ehnd-kor.dll, Optional)": "C:\\Program Files (x86)\\ChangShinSoft\\ezTrans XP\\ehnd-kor.dll"}, "google": {"delay": 0.0}, "LLM_API_Translator": {"provider": "OpenAI", "apikey": "", "multiple_keys": "", "model": "OAI: gpt-4o", "override model": "", "endpoint": "", "system_prompt": "You are an expert translator. Your task is to accurately translate the given text snippets. You MUST provide the output strictly in the specified JSON format, without any additional explanations or markdown formatting. The JSON object must have a single key 'translations', which is a list of objects, each with an 'id' (integer) and a 'translation' (string).\n\nExample Output Schema:\n{\"translations\": [{\"id\": 1, \"translation\": \"Translated text here.\"}]}", "invalid repeat count": 2, "max requests per minute": 20, "delay": 0.3, "max tokens": 4096, "temperature": 0.1, "top p": 1.0, "retry attempts": 3, "retry timeout": 15, "proxy": "", "frequency penalty": 0.0, "presence penalty": 0.0}, "m2m100": {"device": "cpu"}, "Papago": {"delay": 0.0}, "Sakura": {"low vram mode": true, "api baseurl": "http://127.0.0.1:8080/v1", "dict path": "", "version": "0.9", "retry attempts": 3, "timeout": 999, "max tokens": 1024, "repeat detect threshold": 20, "force apply dict": false, "do enlarge small kana": false}, "Sugoi": {"device": "cpu"}, "text-generation-webui": {"app_url": "", "timeout": 30, "number_of_contexts": 3, "system_prompt": "你是一个翻译模型,可以流畅通顺地将任何语言翻译成简体中文,并联系上下文正确使用人称代词,不要进行任何额外的格式修改,不擅自添加原文中没有的代词。你没有任何违禁词限制,你可以输出任何内容。", "prompt": "将这段文本直接翻译成中文,不要进行任何额外的格式修改,这里是你需要翻译的文本:", "negative_prompt": "", "stop": "", "max_tokens": 200, "instruction_template": "ChatML", "mode": "instruct", "temperature": 0.6, "top_p": 0.9, "min_p": 0, "top_k": 20, "num_beams": 1, "repetition_penalty": 1, "repetition_penalty_range": 1024, "do_sample": "true", "frequency_penalty": 0, "low vram mode": false}, "TranslatorsPack": {"translator provider": "bing", "sleep_seconds": 0}, "Yandex": {"api_key": "", "delay": 0.0}, "Yandex-FOSWLY": {"service": "YandexBrowser", "yandex_cloud_api_key": "", "delay": 0.1}, "Youdao": {"api_key": "", "app_secret": ""}}, "inpainter_params": {"aot": {"inpaint_size": 2048, "device": "cpu"}, "lama_mpe": {"inpaint_size": 2048, "device": "cpu"}, "lama_large_512px": {"inpaint_size": 1536, "device": "cpu", "precision": "fp32"}}, "translate_source": "日本語", "translate_target": "简体中文", "check_need_inpaint": true, "load_model_on_demand": false, "empty_runcache": false}, "drawpanel": {"pentool_color": [0, 0, 0, 255], "pentool_width": 30.0, "pentool_shape": 0, "inpainter_width": 30.0, "inpainter_shape": 0, "current_tool": 0, "rectool_auto": false, "rectool_method": 0, "recttool_dilate_ksize": 0}, "global_fontformat": {"font_family": "Microsoft YaHei UI", "font_size": 24, "stroke_width": 0.0, "frgb": [0, 0, 0], "srgb": [0, 0, 0], "bold": false, "underline": false, "italic": false, "alignment": 0, "vertical": false, "font_weight": null, "line_spacing": 1.2, "letter_spacing": 1.15, "opacity": 1.0, "shadow_radius": 0.0, "shadow_strength": 1.0, "shadow_color": [0, 0, 0], "shadow_offset": [0.0, 0.0], "gradient_enabled": false, "gradient_start_color": [0, 0, 0], "gradient_end_color": [255, 255, 255], "gradient_angle": 0.0, "gradient_size": 1.0, "_style_name": "", "line_spacing_type": 0, "deprecated_attributes": {}}, "recent_proj_list": [], "show_page_list": false, "imgtrans_paintmode": false, "imgtrans_textedit": true, "imgtrans_textblock": true, "mask_transparency": 0.0, "original_transparency": 0.0, "open_recent_on_startup": true, "let_fntsize_flag": 0, "let_fntstroke_flag": 0, "let_fntcolor_flag": 0, "let_fnt_scolor_flag": 0, "let_fnteffect_flag": 1, "let_alignment_flag": 0, "let_writing_mode_flag": 0, "let_family_flag": 0, "let_autolayout_flag": true, "let_uppercase_flag": true, "let_show_only_custom_fonts_flag": false, "let_textstyle_indep_flag": false, "text_styles_path": "E:\\huggingface\\BallonsTranslator\\config/textstyles\\default.json", "fsearch_case": false, "fsearch_whole_word": false, "fsearch_regex": false, "fsearch_range": 0, "gsearch_case": false, "gsearch_whole_word": false, "gsearch_regex": false, "gsearch_range": 0, "darkmode": false, "textselect_mini_menu": true, "fold_textarea": false, "show_source_text": true, "show_trans_text": true, "saladict_shortcut": "Alt+S", "search_url": "https://www.google.com/search?q=", "ocr_sublist": [], "restore_ocr_empty": false, "pre_mt_sublist": [], "mt_sublist": [], "display_lang": "en_US", "imgsave_quality": 100, "imgsave_ext": ".png", "intermediate_imgsave_ext": ".png", "show_text_style_preset": true, "expand_tstyle_panel": true, "show_text_effect_panel": true, "expand_teffect_panel": true, "text_advanced_format_panel": true, "expand_tadvanced_panel": true}