ScreenMagnifier 1.11.0.post8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ScreenMagnifier might be problematic. Click here for more details.

Files changed (117) hide show
  1. ScreenMagnifier/__init__.py +68 -0
  2. ScreenMagnifier/__main__.py +17 -0
  3. ScreenMagnifier/advancedoverlay.py +593 -0
  4. ScreenMagnifier/advancedpanel.py +521 -0
  5. ScreenMagnifier/analysiscontroller.py +533 -0
  6. ScreenMagnifier/analysisserver.py +404 -0
  7. ScreenMagnifier/colordetector/__init__.py +28 -0
  8. ScreenMagnifier/colordetector/colordetector.py +570 -0
  9. ScreenMagnifier/colordetector/core.py +434 -0
  10. ScreenMagnifier/colordetector/main.py +23 -0
  11. ScreenMagnifier/colordetector/mainwindow.py +182 -0
  12. ScreenMagnifier/colorpanel.py +424 -0
  13. ScreenMagnifier/colorswatches/__init__.py +16 -0
  14. ScreenMagnifier/colorswatches/colorswatches.py +316 -0
  15. ScreenMagnifier/colorswatches/main.py +23 -0
  16. ScreenMagnifier/colorswatches/mainwindow.py +60 -0
  17. ScreenMagnifier/controlpanel.py +234 -0
  18. ScreenMagnifier/detectionpanel.py +790 -0
  19. ScreenMagnifier/facedetector/__init__.py +24 -0
  20. ScreenMagnifier/facedetector/core.py +314 -0
  21. ScreenMagnifier/facedetector/facedetector.py +288 -0
  22. ScreenMagnifier/facedetector/main.py +23 -0
  23. ScreenMagnifier/facedetector/mainwindow.py +122 -0
  24. ScreenMagnifier/facedetector/models/__init__.py +4 -0
  25. ScreenMagnifier/facepointer.py +1121 -0
  26. ScreenMagnifier/features.py +50 -0
  27. ScreenMagnifier/hotkeys/__init__.py +16 -0
  28. ScreenMagnifier/hotkeys/hotkeys.py +379 -0
  29. ScreenMagnifier/hotkeys/main.py +23 -0
  30. ScreenMagnifier/hotkeys/mainwindow.py +56 -0
  31. ScreenMagnifier/imagefilters/__init__.py +24 -0
  32. ScreenMagnifier/imagefilters/core.py +172 -0
  33. ScreenMagnifier/imagefilters/imagefilters.py +220 -0
  34. ScreenMagnifier/imagefilters/main.py +23 -0
  35. ScreenMagnifier/imagefilters/mainwindow.py +120 -0
  36. ScreenMagnifier/magnifierview/__init__.py +16 -0
  37. ScreenMagnifier/magnifierview/magnifierview.py +1249 -0
  38. ScreenMagnifier/magnifierview/main.py +23 -0
  39. ScreenMagnifier/magnifierview/mainwindow.py +91 -0
  40. ScreenMagnifier/main.py +157 -0
  41. ScreenMagnifier/mainwindow.py +1368 -0
  42. ScreenMagnifier/mousecatcher/__init__.py +16 -0
  43. ScreenMagnifier/mousecatcher/main.py +23 -0
  44. ScreenMagnifier/mousecatcher/mainwindow.py +78 -0
  45. ScreenMagnifier/mousecatcher/mousecatcher.py +251 -0
  46. ScreenMagnifier/mousemove.py +259 -0
  47. ScreenMagnifier/netprotocol/__init__.py +25 -0
  48. ScreenMagnifier/netprotocol/main.py +23 -0
  49. ScreenMagnifier/netprotocol/mainwindow.py +91 -0
  50. ScreenMagnifier/netprotocol/netprotocol.py +372 -0
  51. ScreenMagnifier/netprotocol/wire.py +189 -0
  52. ScreenMagnifier/regionselector/__init__.py +16 -0
  53. ScreenMagnifier/regionselector/main.py +23 -0
  54. ScreenMagnifier/regionselector/mainwindow.py +70 -0
  55. ScreenMagnifier/regionselector/regionselector.py +549 -0
  56. ScreenMagnifier/remoteclient.py +636 -0
  57. ScreenMagnifier/resources/icon-128.png +0 -0
  58. ScreenMagnifier/resources/icon-16.png +0 -0
  59. ScreenMagnifier/resources/icon-24.png +0 -0
  60. ScreenMagnifier/resources/icon-256.png +0 -0
  61. ScreenMagnifier/resources/icon-32.png +0 -0
  62. ScreenMagnifier/resources/icon-48.png +0 -0
  63. ScreenMagnifier/resources/icon-512.png +0 -0
  64. ScreenMagnifier/resources/icon-64.png +0 -0
  65. ScreenMagnifier/resources/icon.icns +0 -0
  66. ScreenMagnifier/resources/icon.ico +0 -0
  67. ScreenMagnifier/screengrabber/__init__.py +16 -0
  68. ScreenMagnifier/screengrabber/main.py +23 -0
  69. ScreenMagnifier/screengrabber/mainwindow.py +79 -0
  70. ScreenMagnifier/screengrabber/screengrabber.py +558 -0
  71. ScreenMagnifier/server.py +150 -0
  72. ScreenMagnifier/serverpanel.py +379 -0
  73. ScreenMagnifier/shortcuteditor/__init__.py +16 -0
  74. ScreenMagnifier/shortcuteditor/main.py +23 -0
  75. ScreenMagnifier/shortcuteditor/mainwindow.py +54 -0
  76. ScreenMagnifier/shortcuteditor/shortcuteditor.py +411 -0
  77. ScreenMagnifier/shortcuts.py +118 -0
  78. ScreenMagnifier/shortcutspanel.py +140 -0
  79. ScreenMagnifier/support.py +127 -0
  80. ScreenMagnifier/translations/ar.json +387 -0
  81. ScreenMagnifier/translations/de.json +387 -0
  82. ScreenMagnifier/translations/es.json +387 -0
  83. ScreenMagnifier/translations/fr.json +387 -0
  84. ScreenMagnifier/translations/it.json +387 -0
  85. ScreenMagnifier/translations/ja.json +387 -0
  86. ScreenMagnifier/translations/ko.json +387 -0
  87. ScreenMagnifier/translations/pt_BR.json +387 -0
  88. ScreenMagnifier/translations/ru.json +387 -0
  89. ScreenMagnifier/translations/tr.json +387 -0
  90. ScreenMagnifier/translations/zh_CN.json +387 -0
  91. ScreenMagnifier/translator/__init__.py +16 -0
  92. ScreenMagnifier/translator/main.py +23 -0
  93. ScreenMagnifier/translator/mainwindow.py +62 -0
  94. ScreenMagnifier/translator/translator.py +284 -0
  95. ScreenMagnifier/upscaler/__init__.py +24 -0
  96. ScreenMagnifier/upscaler/core.py +315 -0
  97. ScreenMagnifier/upscaler/main.py +23 -0
  98. ScreenMagnifier/upscaler/mainwindow.py +128 -0
  99. ScreenMagnifier/upscaler/models/FSRCNN-small_x2.pb +0 -0
  100. ScreenMagnifier/upscaler/models/FSRCNN-small_x3.pb +0 -0
  101. ScreenMagnifier/upscaler/models/FSRCNN-small_x4.pb +0 -0
  102. ScreenMagnifier/upscaler/models/FSRCNN_x2.pb +0 -0
  103. ScreenMagnifier/upscaler/models/FSRCNN_x3.pb +0 -0
  104. ScreenMagnifier/upscaler/models/FSRCNN_x4.pb +0 -0
  105. ScreenMagnifier/upscaler/models/LICENSE-FSRCNN +201 -0
  106. ScreenMagnifier/upscaler/models/__init__.py +4 -0
  107. ScreenMagnifier/upscaler/upscaler.py +285 -0
  108. ScreenMagnifier/wincheck.py +65 -0
  109. ScreenMagnifier/zoomoverlay/__init__.py +16 -0
  110. ScreenMagnifier/zoomoverlay/main.py +23 -0
  111. ScreenMagnifier/zoomoverlay/mainwindow.py +99 -0
  112. ScreenMagnifier/zoomoverlay/zoomoverlay.py +1779 -0
  113. screenmagnifier-1.11.0.post8.dist-info/METADATA +591 -0
  114. screenmagnifier-1.11.0.post8.dist-info/RECORD +117 -0
  115. screenmagnifier-1.11.0.post8.dist-info/WHEEL +5 -0
  116. screenmagnifier-1.11.0.post8.dist-info/entry_points.txt +5 -0
  117. screenmagnifier-1.11.0.post8.dist-info/top_level.txt +1 -0
@@ -0,0 +1,387 @@
1
+ {
2
+ "language": "zh_CN",
3
+ "name": "简体中文",
4
+ "direction": "ltr",
5
+ "strings": {
6
+ "Full-screen zoom: press {} to hide it.": "全屏缩放:按 {} 可隐藏。",
7
+ "The zoomer color code is off: turn on \"Color code under the crosshair\" in the Zoomer tab.": "缩放镜的颜色代码已关闭:请在“缩放镜”选项卡中开启“准星下的颜色代码”。",
8
+ "The zoomer is hidden: show it with {}, or use the screen color picker ({}).": "缩放镜已隐藏:按 {} 显示,或使用屏幕取色器({})。",
9
+ "Screen centre": "屏幕中心",
10
+ "Pinned point": "固定点",
11
+ "Mouse cursor": "鼠标指针",
12
+ "On target (scope)": "位于目标上(瞄准镜)",
13
+ "Top-left corner": "左上角",
14
+ "Top-right corner": "右上角",
15
+ "Bottom-left corner": "左下角",
16
+ "Bottom-right corner": "右下角",
17
+ "Next to the target (follows a mouse target)": "目标旁边(跟随鼠标目标)",
18
+ "Custom area": "自定义区域",
19
+ "Full screen": "全屏",
20
+ "Circle": "圆形",
21
+ "Rounded square": "圆角方形",
22
+ "Rectangle": "矩形",
23
+ "Draw the area on the screen…": "在屏幕上绘制区域…",
24
+ "Drag a rectangle anywhere on the screen: the lens will fill it": "在屏幕任意位置拖出一个矩形:镜头将填满该区域",
25
+ "Screen covered by the full-screen lens": "全屏镜头覆盖的屏幕",
26
+ "0 = square corners; the largest values make a pill or a circle": "0 = 直角;最大值会形成胶囊形或圆形",
27
+ "Screen of the target": "目标所在的屏幕",
28
+ "Color tools in the zoomer": "缩放镜颜色工具",
29
+ "Color code under the crosshair (live HEX / RGB)": "准星下的颜色代码(实时 HEX / RGB)",
30
+ "Color zones (target colors and faces of the Detection tab)": "颜色区域(“检测”选项卡中的目标颜色和人脸)",
31
+ "Magnify": "放大",
32
+ "Show the lens": "镜头显示",
33
+ "Magnification": "放大倍数",
34
+ "Lens size": "镜头大小",
35
+ "Opacity": "不透明度",
36
+ "Frame rate": "帧率",
37
+ "Crosshair": "准星",
38
+ "Run the game in borderless / windowed full-screen: exclusive full-screen hides every overlay. The lens never takes focus and lets all clicks through to the game.": "请以无边框 / 窗口化全屏运行游戏:独占全屏会隐藏所有叠加层。镜头从不抢占焦点,所有点击都会传递给游戏。",
39
+ "Filters": "滤镜",
40
+ "Reset the filters": "重置滤镜",
41
+ "Pixels": "像素",
42
+ "Strength": "强度",
43
+ "Brightness": "亮度",
44
+ "Contrast": "对比度",
45
+ "Saturation": "饱和度",
46
+ "Checking that the lens is hidden from screen capture…": "正在检查镜头是否已对屏幕捕获隐藏…",
47
+ "X": "X",
48
+ "Y": "Y",
49
+ "Width": "宽度",
50
+ "Height": "高度",
51
+ "{} px (max)": "{} 像素(最大)",
52
+ "Screen {} · {} × {}": "屏幕 {} · {} × {}",
53
+ "Install numpy for every effect and the sliders.": "安装 numpy 以使用所有效果和滑块。",
54
+ "Copy the color code: {}. Screen color picker (click anywhere on the screen): {}. Change them in the Shortcuts tab; pick format and sample in the Colors tab.": "复制颜色代码:{}。屏幕取色器(点击屏幕任意位置):{}。可在“快捷键”选项卡中修改;在“颜色”选项卡中选择格式和取样。",
55
+ "no shortcut": "无快捷键",
56
+ "Corner radius": "圆角半径",
57
+ " (primary)": "(主屏幕)",
58
+ "✓ Lens hidden from screen capture: it can cover what it magnifies.": "✓ 镜头已对屏幕捕获隐藏:可以覆盖其放大的内容。",
59
+ "Hide the zoomer ({})": "隐藏缩放镜({})",
60
+ "Show the zoomer ({})": "显示缩放镜({})",
61
+ "✓ Capturing the game window directly (Windows could not hide the lens from screen capture).": "✓ 正在直接捕获游戏窗口(Windows 无法对捕获隐藏镜头)。",
62
+ "✓ Lens hidden from screen capture: scope mode active.": "✓ 镜头已对屏幕捕获隐藏:瞄准镜模式已启用。",
63
+ "✓ Scope mode active: capturing the game window directly (Windows could not hide the lens from screen capture).": "✓ 瞄准镜模式已启用:直接捕获游戏窗口(Windows 无法对捕获隐藏镜头)。",
64
+ "Only Windows 10 (2004+) / 11 can hide the lens from capture: on this system a full-screen lens needs a second screen (it moves there automatically).": "只有 Windows 10(2004+)/ 11 能对捕获隐藏镜头:在此系统上,全屏镜头需要第二块屏幕(会自动移到那里)。",
65
+ "Only Windows 10 (2004+) / 11 can hide the lens from capture; on this system it will be shown in a free corner.": "只有 Windows 10(2004+)/ 11 能对捕获隐藏镜头;在此系统上它会显示在空闲的角落。",
66
+ "⚠ The lens cannot cover what it magnifies here: {}. The full-screen lens is shown on screen {} instead.": "⚠ 此处镜头无法覆盖其放大的内容:{}。全屏镜头改为显示在屏幕 {} 上。",
67
+ "⚠ The lens cannot cover what it magnifies here: {}. It is shown in the {} instead.": "⚠ 此处镜头无法覆盖其放大的内容:{}。改为显示在“{}”。",
68
+ "⚠ Scope mode is not possible here: {}. Without it the lens would magnify itself, so it is shown in the {} instead.": "⚠ 此处无法使用瞄准镜模式:{}。否则镜头会放大自身,因此改为显示在“{}”。",
69
+ "HEX": "HEX",
70
+ "hex (lower case)": "hex(小写)",
71
+ "HEX without #": "HEX(不含 #)",
72
+ "CSS rgb()": "CSS rgb()",
73
+ "RGB numbers": "RGB 数值",
74
+ "RGB 0..1": "RGB 0..1",
75
+ "CSS hsl()": "CSS hsl()",
76
+ "HSV": "HSV",
77
+ "CMYK": "CMYK",
78
+ "CSS lab()": "CSS lab()",
79
+ "QColor(...)": "QColor(...)",
80
+ "0xRRGGBB": "0xRRGGBB",
81
+ "Nearest name": "最接近的颜色名",
82
+ "Zoomed image (what you see)": "放大后的图像(所见即所得)",
83
+ "Original screen pixel": "屏幕原始像素",
84
+ "1 pixel": "1 像素",
85
+ "3 x 3 average": "3 x 3 平均",
86
+ "5 x 5 average": "5 x 5 平均",
87
+ "9 x 9 average": "9 x 9 平均",
88
+ "Zoomed: the color as displayed after upscaling / sharpening. Original: the untouched screen pixel.": "放大:经放大 / 锐化后显示的颜色。原始:未经处理的屏幕像素。",
89
+ "Average a small square: steadier on anti-aliased text and textures": "小方块的平均值:在抗锯齿文字和纹理上更稳定",
90
+ "Copy on left click in the magnifier": "在放大镜中左键单击即复制",
91
+ "Set a reference color first.": "请先选择参考颜色。",
92
+ "Copy all formats": "复制所有格式",
93
+ "Set as contrast reference": "设为对比度参考",
94
+ "LIVE COLOR": "实时颜色",
95
+ "Copy": "复制",
96
+ "Copy in the default format (C)": "以默认格式复制(C)",
97
+ "Copy every format, one per line": "复制所有格式,每行一个",
98
+ "OPTIONS": "选项",
99
+ "Default format (C key, click, global hotkey)": "默认格式(C 键、单击、全局热键)",
100
+ "Pick from": "取色来源",
101
+ "Sample": "取样",
102
+ "CONTRAST (WCAG)": "对比度(WCAG)",
103
+ "Set as reference": "设为参考",
104
+ "Then hover another color to see the contrast ratio": "然后将指针移到另一种颜色上查看对比度",
105
+ "HISTORY": "历史记录",
106
+ "Copied colors appear here": "复制的颜色会显示在这里",
107
+ "Copy history": "复制历史记录",
108
+ "Copy every color of the history, one per line": "复制历史记录中的所有颜色,每行一个",
109
+ "Clear": "清除",
110
+ "These options apply to every way of copying: the magnifier eyedropper and C key, its right-click menu, the zoomer color code and the screen color picker (shortcuts: Shortcuts tab). Click a history swatch to copy it again, right-click to remove it.": "这些选项适用于所有复制方式:放大镜的吸管和 C 键、其右键菜单、缩放镜的颜色代码以及屏幕取色器(快捷键:“快捷键”选项卡)。单击历史色块可再次复制,右键单击可将其移除。",
111
+ "Point at a color: magnifier, zoomer or screen color picker": "指向一种颜色:放大镜、缩放镜或屏幕取色器",
112
+ "Hover the magnifier to choose a color first.": "请先将指针移到放大镜上选择颜色。",
113
+ "{} on {}: {:.2f} : 1 ({})": "{} 与 {}:{:.2f} : 1({})",
114
+ "close to {}": "接近 {}",
115
+ "from the magnifier (mouse)": "来自放大镜(鼠标)",
116
+ "from the zoomer (crosshair)": "来自缩放镜(准星)",
117
+ "from the screen color picker": "来自屏幕取色器",
118
+ "Copied {}": "已复制 {}",
119
+ "zone: {}": "区域:{}",
120
+ " · exact screen pixel": " · 精确的屏幕像素",
121
+ " · zoomed image (Pick from, below)": " · 放大后的图像(见下方“取色来源”)",
122
+ "Copied every format of {}": "已复制 {} 的所有格式",
123
+ "Copied {} colors": "已复制 {} 种颜色",
124
+ "Copy {} ({})": "复制 {} ({})",
125
+ "Copy as {}": "复制为 {}",
126
+ "{} - click: copy, right-click: remove": "{} - 单击:复制,右键:移除",
127
+ "Fit region": "适应区域",
128
+ "Upscaling": "放大算法",
129
+ "Sharpen": "锐化",
130
+ "Install numpy + opencv-python for Bicubic, Lanczos and sharpening.": "安装 numpy + opencv-python 以使用双三次、Lanczos 和锐化。",
131
+ "OVERLAYS": "叠加层",
132
+ "Pixel grid (zoom ≥ 10×)": "像素网格(缩放 ≥ 10×)",
133
+ "Invert colors": "反转颜色",
134
+ "Install opencv-contrib-python for AI super-resolution.": "安装 opencv-contrib-python 以使用 AI 超分辨率。",
135
+ "Boxes": "方框",
136
+ "Boxes + landmarks": "方框 + 面部关键点",
137
+ "Privacy blur": "隐私模糊",
138
+ "Auto (YuNet if installed)": "自动(已安装时使用 YuNet)",
139
+ "YuNet (DNN, accurate)": "YuNet(深度网络,精确)",
140
+ "Haar cascade (no download)": "Haar 级联(无需下载)",
141
+ "Similar shades (lighting, shadows, anti-aliasing)": "相近色调(光照、阴影、抗锯齿)",
142
+ "Exact color": "精确颜色",
143
+ "Isolate matches (dim the rest)": "突出匹配(其余变暗)",
144
+ "Tint matches": "为匹配着色",
145
+ "The mouse pointer": "鼠标指针",
146
+ "Only the zoomer (the pointer stays still)": "仅缩放镜(指针不动)",
147
+ "The largest face": "最大的人脸",
148
+ "The face nearest the pointer": "离指针最近的人脸",
149
+ "Automatic (turn the view when the game captures the mouse)": "自动(游戏捕获鼠标时转动视角)",
150
+ "Move the pointer to the face (films, games with a pointer)": "将指针移到人脸(电影、有指针的游戏)",
151
+ "Turn the view to the face (games that capture the mouse)": "将视角转向人脸(捕获鼠标的游戏)",
152
+ "Always": "始终",
153
+ "While the right mouse button is held": "按住鼠标右键时",
154
+ "Color detection": "颜色检测",
155
+ "Detect target colors": "检测目标颜色",
156
+ "Pick": "取色",
157
+ "Click a pixel in the magnifier to add its color": "单击放大镜中的像素以添加其颜色",
158
+ "Match": "匹配方式",
159
+ "Tolerance": "容差",
160
+ "Group nearby": "合并相邻",
161
+ "Fragments closer than this form one box (letters of a text line)": "距离小于此值的碎片合并为一个方框(例如一行文字中的字母)",
162
+ "Smallest region": "最小区域",
163
+ "Boxes around regions": "区域周围的方框",
164
+ "Highlight mask": "高亮蒙版",
165
+ "Notify when a target color appears": "目标颜色出现时通知",
166
+ "Show the zones in": "区域显示于",
167
+ "the magnifier": "放大镜",
168
+ "the zoomer (also in the Zoomer tab)": "缩放镜(也可在“缩放镜”选项卡中设置)",
169
+ "Dominant colors": "主要颜色",
170
+ "Face detection (AI, optional)": "人脸检测(AI,可选)",
171
+ "Detect faces": "检测人脸",
172
+ "Download model": "下载模型",
173
+ "YuNet, 232 KB, MIT license, from the official OpenCV model zoo": "YuNet,232 KB,MIT 许可证,来自 OpenCV 官方模型库",
174
+ "Confidence": "置信度",
175
+ "Face pointer (films, offline games)": "人脸指针(电影、离线游戏)",
176
+ "Follow the faces on the screen": "跟随屏幕上的人脸",
177
+ "How to move": "移动方式",
178
+ "When": "何时",
179
+ "Which face": "哪张人脸",
180
+ "Offline games that capture the mouse: the view turns until the face is at the crosshair (the screen centre), about 30 times per second; the game's mouse sensitivity is measured from the picture while it assists. Only faces inside the assist area count, and a portrait of the game's interface is ignored. \"While the right mouse button is held\" never fights your own aiming. Run the game in borderless / windowed mode. Realistic faces work best.": "捕获鼠标的离线游戏:视角每秒约转动 30 次,直到人脸位于准星处(屏幕中心);辅助过程中会根据画面测量游戏的鼠标灵敏度。只有辅助区域内的人脸才算数,游戏界面中的头像会被忽略。“按住鼠标右键时”绝不会干扰你自己的瞄准。请以窗口化 / 无边框模式运行游戏。写实的人脸效果最好。",
181
+ "Faces are found anywhere on the screen of the pointer (the zoomer lens and this window are ignored), with the face detection settings above. Move the mouse yourself to take the control back. Video players show their controls when the pointer moves: choose \"Only the zoomer\" to keep it still. The YuNet model (Download model, above) finds smaller faces, faster.": "在指针所在的整个屏幕上查找人脸(忽略缩放镜镜头和本窗口),使用上面的人脸检测设置。自己移动鼠标即可收回控制。视频播放器在指针移动时会显示控制栏:选择“仅缩放镜”可让指针保持不动。YuNet 模型(上方的“下载模型”)能更快地找到更小的人脸。",
182
+ "Install opencv-python (and numpy) to enable face detection.": "安装 opencv-python(和 numpy)以启用人脸检测。",
183
+ "Analysis rate": "分析频率",
184
+ "Target color": "目标颜色",
185
+ "server": "服务器",
186
+ "this computer": "本机",
187
+ "OpenCV not installed": "未安装 OpenCV",
188
+ "Add...": "添加...",
189
+ "Choose a color": "选择颜色",
190
+ "Remove": "移除",
191
+ "Remove the selected color": "移除所选颜色",
192
+ "Remove every target color": "移除所有目标颜色",
193
+ "Assist area around the crosshair": "准星周围的辅助区域",
194
+ "Smoothness": "平滑度",
195
+ "Give the mouse back for": "归还鼠标的时间",
196
+ "Scans per second": "每秒扫描次数",
197
+ "Off.": "已关闭。",
198
+ "zoom lens": "缩放镜镜头",
199
+ "magnifier": "放大镜",
200
+ "YuNet model installed": "已安装 YuNet 模型",
201
+ "YuNet face model installed.": "已安装 YuNet 人脸模型。",
202
+ "Install numpy to enable color detection.": "安装 numpy 以启用颜色检测。",
203
+ "{} s": "{} 秒",
204
+ "{} / s": "{} / 秒",
205
+ "Looking for faces…": "正在查找人脸…",
206
+ "{} px": "{} 像素",
207
+ "Analysed on {}: colors {:.0f} ms, faces {:.0f} ms": "在{}上分析:颜色 {:.0f} 毫秒,人脸 {:.0f} 毫秒",
208
+ "This OpenCV has no YuNet support: Haar is used": "此 OpenCV 不支持 YuNet:改用 Haar",
209
+ "YuNet model not installed: Haar is used": "未安装 YuNet 模型:改用 Haar",
210
+ " (active: {})": " (当前:{})",
211
+ "What follows the face": "跟随人脸的对象",
212
+ "Delta E {}": "Delta E {}",
213
+ "{} deg hue": "色相 {} 度",
214
+ "{} face(s) - {} - {:.0f} ms": "{} 张人脸 - {} - {:.0f} 毫秒",
215
+ "Target color \"{}\" detected in the {}": "目标颜色“{}”已在{}中检测到",
216
+ "Target color {} added": "已添加目标颜色 {}",
217
+ "Downloading YuNet model... {} %": "正在下载 YuNet 模型... {} %",
218
+ "✓ This game captures the mouse: the view turns to a face ({} in the assist area, {:.0f} ms).": "✓ 此游戏捕获了鼠标:正在将视角转向人脸(辅助区域内 {} 张,{:.0f} 毫秒)。",
219
+ "⚠ The game's picture cannot be captured (black): run it in borderless / windowed mode. On Windows, \"pip install dxcam\" captures more games.": "⚠ 无法捕获游戏画面(黑屏):请以窗口化 / 无边框模式运行。在 Windows 上,“pip install dxcam”可以捕获更多游戏。",
220
+ "✓ Turning the view to a face ({} in the assist area, {:.0f} ms)": "✓ 正在将视角转向人脸(辅助区域内 {} 张,{:.0f} 毫秒)",
221
+ "⚠ The game does not receive the mouse movements. Click into the game; if it runs as administrator, run Screen Magnifier as administrator too.": "⚠ 游戏没有收到鼠标移动。请点击游戏内部;如果游戏以管理员身份运行,请也以管理员身份运行 Screen Magnifier。",
222
+ "Hold the right mouse button to assist.": "按住鼠标右键即可获得辅助。",
223
+ "A face that does not move with the view (a portrait of the game's interface) is ignored for a few seconds.": "不随视角移动的人脸(游戏界面中的头像)会被忽略几秒钟。",
224
+ "✓ Following a face ({} on the screen, {:.0f} ms)": "✓ 正在跟随人脸(屏幕上 {} 张,{:.0f} 毫秒)",
225
+ "⚠ This system does not let applications send mouse movements (Wayland, or macOS without the Accessibility permission).": "⚠ 此系统不允许应用发送鼠标移动(Wayland,或未授予辅助功能权限的 macOS)。",
226
+ "Paused: you moved the mouse. It starts again {} s after you stop.": "已暂停:你移动了鼠标。停止移动 {} 秒后重新开始。",
227
+ "⚠ This system does not let applications move the pointer (Wayland, or macOS without the Accessibility permission): choose \"Only the zoomer\".": "⚠ 此系统不允许应用移动指针(Wayland,或未授予辅助功能权限的 macOS):请选择“仅缩放镜”。",
228
+ "Face detection failed: {}": "人脸检测失败:{}",
229
+ "None": "无",
230
+ "Grayscale": "灰度",
231
+ "Sepia": "怀旧(棕褐色)",
232
+ "Invert": "反色",
233
+ "High contrast": "高对比度",
234
+ "Warm (less blue light)": "暖色(减少蓝光)",
235
+ "Night vision": "夜视",
236
+ "Thermal (false colors)": "热成像(伪彩色)",
237
+ "Outline (edges)": "轮廓",
238
+ "Color-blind help: red-weak": "色弱辅助:红色弱",
239
+ "Color-blind help: green-weak": "色弱辅助:绿色弱",
240
+ "Color-blind help: blue-weak": "色弱辅助:蓝色弱",
241
+ "The interface language changes when ScreenMagnifier restarts. Restart now?": "界面语言将在 ScreenMagnifier 重启后更改。立即重启吗?",
242
+ "Select a screen region to magnify\n\nCtrl+R - select region\nF - follow cursor\nSpace - freeze\nWheel - zoom at cursor\nDrag - pan\nDouble-click - fit\nI - eyedropper: click to copy colors\nC - copy the color under the mouse\nRight-click - copy it in any format": "选择要放大的屏幕区域\n\nCtrl+R - 选择区域\nF - 跟随指针\n空格 - 冻结\n滚轮 - 在指针处缩放\n拖动 - 平移\n双击 - 适应\nI - 吸管:单击以复制颜色\nC - 复制鼠标下的颜色\n右键 - 以任意格式复制",
243
+ "Screen Magnifier": "Screen Magnifier",
244
+ "Magnifier": "放大镜",
245
+ "Zoomer": "缩放镜",
246
+ "Colors": "颜色",
247
+ "Detection": "检测",
248
+ "Detection (Beta)": "检测(测试版)",
249
+ "Server": "服务器",
250
+ "Shortcuts": "快捷键",
251
+ "Copy color code": "复制颜色代码",
252
+ "Main": "主工具栏",
253
+ "⬚ Region": "⬚ 区域",
254
+ "⌖ Follow": "⌖ 跟随",
255
+ "Magnify around the mouse pointer": "放大鼠标指针周围",
256
+ "❄ Freeze": "❄ 冻结",
257
+ "Pause live capture": "暂停实时捕获",
258
+ "Fit": "适应",
259
+ "Save…": "保存…",
260
+ "Screen color picker": "屏幕取色器",
261
+ "Eyedropper on the magnifier": "放大镜吸管",
262
+ "Eyedropper: click the zoomed image to copy colors": "吸管:单击放大后的图像以复制颜色",
263
+ "Stop picking": "停止取色",
264
+ "Pin on top": "窗口置顶",
265
+ "Keep the magnifier above other windows": "让放大镜保持在其他窗口之上",
266
+ "◎ Zoomer": "◎ 缩放镜",
267
+ "Quit": "退出",
268
+ "⚙ Panel": "⚙ 面板",
269
+ "No region": "无区域",
270
+ "♥ Support": "♥ 支持",
271
+ "Support the project: make a donation": "支持本项目:捐赠",
272
+ "Interface language": "界面语言",
273
+ "Show magnifier": "显示放大镜",
274
+ "Following cursor": "正在跟随指针",
275
+ " • frozen": " • 已冻结",
276
+ "Save upscaled image": "保存放大后的图像",
277
+ "PNG image (*.png);;JPEG image (*.jpg *.jpeg)": "PNG 图像 (*.png);;JPEG 图像 (*.jpg *.jpeg)",
278
+ "♥ Support the project": "♥ 支持本项目",
279
+ "Language": "语言",
280
+ "Restart now": "立即重启",
281
+ "Later": "稍后",
282
+ "Copy the color under the mouse in the magnifier": "复制放大镜中鼠标下的颜色",
283
+ "Pick a screen region to magnify": "选择要放大的屏幕区域",
284
+ "Zoom out": "缩小",
285
+ "Zoom in": "放大",
286
+ "Save the upscaled region": "保存放大后的区域",
287
+ "Copy the upscaled region": "复制放大后的区域",
288
+ "Screen color picker (Ctrl+Alt+P anywhere): live zoom at the mouse, click anywhere on the screen to copy": "屏幕取色器(任意位置按 Ctrl+Alt+P):在鼠标处实时放大,单击屏幕任意位置即可复制",
289
+ "Quit Screen Magnifier": "退出 Screen Magnifier",
290
+ "Show / hide the side panel (every tab)": "显示 / 隐藏侧边面板(所有选项卡)",
291
+ "Face pointer off.": "人脸指针已关闭。",
292
+ "Nothing to save yet.": "暂无可保存的内容。",
293
+ "Eyedropper: click the zoomed image to copy a color - Esc to stop": "吸管:单击放大后的图像以复制颜色 - 按 Esc 停止",
294
+ "Show / hide the in-advanced zoom lens (global hotkey: {})": "显示 / 隐藏缩放镜镜头(全局热键:{})",
295
+ "Global hotkey: {}": "全局热键:{}",
296
+ "Screen ({}, {}) {} rgb({}, {}, {})": "屏幕 ({}, {}) {} rgb({}, {}, {})",
297
+ "{:.0f} fps grab {:.1f} ms {} {:.1f} ms {:.2f}×": "{:.0f} fps 捕获 {:.1f} 毫秒 {} {:.1f} 毫秒 {:.2f}×",
298
+ "Screen Magnifier is still running": "Screen Magnifier 仍在运行",
299
+ "Screen color picker: click anywhere to copy - right-click / Esc cancels - wheel zooms": "屏幕取色器:单击任意位置复制 - 右键 / Esc 取消 - 滚轮缩放",
300
+ "◉ Pick": "◉ 取色",
301
+ "Color pickers": "取色器",
302
+ "Region {} × {} at ({}, {})": "区域 {} × {},位于 ({}, {})",
303
+ "Face pointer on: move the mouse to take the control back ({} stops it).": "人脸指针已开启:移动鼠标即可收回控制({} 可停止)。",
304
+ "Copied {} × {} image to the clipboard.": "已将 {} × {} 的图像复制到剪贴板。",
305
+ "{} copied": "已复制 {}",
306
+ "Donate with {}": "通过 {} 捐赠",
307
+ "Automatic ({})": "自动({})",
308
+ "Could not open a browser - the link was copied: {}": "无法打开浏览器 - 链接已复制:{}",
309
+ "Saved {} × {} image to {}": "已将 {} × {} 的图像保存到 {}",
310
+ "Could not save {}": "无法保存 {}",
311
+ "Press {} in any app or game to toggle the zoom lens. Right-click the tray icon to quit.": "在任何应用或游戏中按 {} 可显示 / 隐藏镜头。右键单击通知区域图标即可退出。",
312
+ "The game-zoom hotkey": "缩放镜热键",
313
+ "Fast (JPEG 85)": "快速(JPEG 85)",
314
+ "Balanced (JPEG 92-95, near lossless)": "均衡(JPEG 92-95,近乎无损)",
315
+ "Lossless (PNG: exact pixels, slower)": "无损(PNG:像素精确,较慢)",
316
+ "Shared secret (recommended)": "共享密钥(推荐)",
317
+ "Connect automatically at startup": "启动时自动连接",
318
+ "Upscaling of the magnifier": "放大镜的放大算法",
319
+ "Upscaling of the zoomer": "缩放镜的放大算法",
320
+ "Color and face analysis": "颜色与人脸分析",
321
+ "Start local server": "启动本地服务器",
322
+ "Same as the Settings tab": "与“设置”选项卡相同",
323
+ "Stop local server": "停止本地服务器",
324
+ "Starting...": "正在启动...",
325
+ "CONNECTION": "连接",
326
+ "OFFLOAD TO THE SERVER": "交给服务器处理",
327
+ "Server upscaling method": "服务器放大算法",
328
+ "Image quality": "图像质量",
329
+ "STATISTICS": "统计",
330
+ "SERVER ON THIS COMPUTER": "本机上的服务器",
331
+ "The server pays off on a stronger computer: run \"python server.py --host 0.0.0.0 --token SECRET\" there, then enter its address and the same token here. Use a token whenever the server listens on the network.": "服务器在性能更强的电脑上才划算:在那台电脑上运行“python server.py --host 0.0.0.0 --token SECRET”,然后在此输入其地址和相同的令牌。服务器在网络上监听时请务必使用令牌。",
332
+ "Disconnect": "断开连接",
333
+ "Connect": "连接",
334
+ "Host": "主机",
335
+ "Port": "端口",
336
+ "Token": "令牌",
337
+ " to {}": " 至 {}",
338
+ "Server: {}": "服务器:{}",
339
+ "Local server stopped.": "本地服务器已停止。",
340
+ "Search a feature or a key...": "搜索功能或按键...",
341
+ "Back to the default": "恢复默认值",
342
+ "Remove the shortcut(s)": "移除快捷键",
343
+ "everywhere": "全局",
344
+ "in the window": "窗口内",
345
+ "No conflicts.": "无冲突。",
346
+ " Orange: a window shortcut equal to a global hotkey - the global hotkey takes it.": " 橙色:窗口快捷键与全局热键相同 - 以全局热键为准。",
347
+ "Click, then press the keys. Default: {}": "单击后按下按键。默认值:{}",
348
+ "none": "无",
349
+ "{} conflict(s): the same keys are used twice in one scope (red).": "{} 处冲突:同一范围内相同的按键被使用了两次(红色)。",
350
+ "{} is also used by: {}": "{} 也被以下项使用:{}",
351
+ "Select a region": "选择区域",
352
+ "Follow the mouse cursor": "跟随鼠标指针",
353
+ "Freeze / unfreeze": "冻结 / 继续",
354
+ "Fit the region": "适应区域",
355
+ "Save the zoomed image": "保存放大后的图像",
356
+ "Copy the zoomed image": "复制放大后的图像",
357
+ "Show / hide the zoomer": "显示 / 隐藏缩放镜",
358
+ "Zoomer: zoom in": "缩放镜:放大",
359
+ "Zoomer: zoom out": "缩放镜:缩小",
360
+ "Pin the zoomer target at the mouse": "将缩放镜目标固定在鼠标处",
361
+ "Cycle the zoomer target": "切换缩放镜目标",
362
+ "Copy the zoomer color code": "复制缩放镜的颜色代码",
363
+ "Screen color picker: start / copy": "屏幕取色器:开始 / 复制",
364
+ "Faces": "人脸",
365
+ "Face pointer: on / off": "人脸指针:开 / 关",
366
+ "Eyedropper on the magnifier on / off": "放大镜吸管:开 / 关",
367
+ "Stop the eyedropper": "停止吸管",
368
+ "Copy the color under the mouse": "复制鼠标下的颜色",
369
+ "Window": "窗口",
370
+ "Keep the window on top": "保持窗口置顶",
371
+ "Show / hide the side panel": "显示 / 隐藏侧边面板",
372
+ "KEYBOARD SHORTCUTS": "键盘快捷键",
373
+ "Global hotkeys: work in other applications and games": "全局热键:在其他应用和游戏中也有效",
374
+ "Reset every shortcut to its default": "将所有快捷键恢复为默认值",
375
+ "Click a field and press the new keys. \"In the window\" shortcuts work while this window is active; \"everywhere\" hotkeys work in any application or game. ✓ registered, ✗ refused (taken by another application).": "单击某个字段并按下新的按键。“窗口内”快捷键在此窗口处于活动状态时有效;“全局”热键在任何应用或游戏中都有效。✓ 已注册,✗ 被拒绝(已被其他应用占用)。",
376
+ "Global hotkeys backend: {}": "全局热键后端:{}",
377
+ "Registered": "已注册",
378
+ "Could not register: invalid, or already used by another application": "无法注册:无效,或已被其他应用占用",
379
+ "Nearest (pixel-perfect)": "最近邻(像素精确)",
380
+ "Bilinear (smooth)": "双线性(平滑)",
381
+ "Bicubic": "双三次",
382
+ "Lanczos (sharp)": "Lanczos(锐利)",
383
+ "Pixel art (Scale2x)": "像素画(Scale2x)",
384
+ "AI super-res - fast": "AI 超分辨率 - 快速",
385
+ "AI super-res - quality": "AI 超分辨率 - 高质量"
386
+ }
387
+ }
@@ -0,0 +1,16 @@
1
+ # coding=utf-8
2
+ """
3
+ translator package.
4
+ """
5
+ from os.path import dirname
6
+ from sys import path
7
+
8
+ if not __package__ and dirname(__file__) not in path:
9
+ path.append(dirname(__file__))
10
+
11
+ try:
12
+ from .translator import LanguageManager, CatalogTranslator, LANGUAGES
13
+ except:
14
+ from translator import LanguageManager, CatalogTranslator, LANGUAGES
15
+
16
+ __all__ = ['LanguageManager', 'CatalogTranslator', 'LANGUAGES'] # type: list[str]
@@ -0,0 +1,23 @@
1
+ # coding=utf-8
2
+ """
3
+ Entry point for the Translator demo.
4
+ """
5
+ from os.path import dirname
6
+ from sys import path
7
+
8
+ if not __package__ and dirname(__file__) not in path:
9
+ path.append(dirname(__file__))
10
+
11
+ try:
12
+ from .mainwindow import MainWindow
13
+ except:
14
+ from mainwindow import MainWindow
15
+
16
+ if __name__ == '__main__':
17
+ from ManyQt.QtWidgets import QApplication
18
+ from sys import argv, exit
19
+
20
+ a = QApplication(argv) # type: QApplication
21
+ w = MainWindow() # type: MainWindow
22
+ w.show()
23
+ exit(a.exec_())
@@ -0,0 +1,62 @@
1
+ # coding=utf-8
2
+ """
3
+ Demo window for LanguageManager: pick a language, the texts are translated live (retranslate on languageChanged).
4
+ Uses the application's catalogs (../translations).
5
+ """
6
+ from ManyQt.QtWidgets import QMainWindow, QVBoxLayout, QWidget, QLabel, QComboBox, QPushButton
7
+ from ManyQt.QtCore import pyqtSlot
8
+ from os.path import dirname, join
9
+ from sys import path
10
+
11
+ if not __package__ and dirname(__file__) not in path:
12
+ path.append(dirname(__file__))
13
+
14
+ try:
15
+ from .translator import LanguageManager
16
+ except:
17
+ from translator import LanguageManager
18
+
19
+
20
+ class MainWindow(QMainWindow):
21
+ """
22
+ MainWindow class.
23
+ """
24
+
25
+ def __init__(self, *args, **kwargs):
26
+ """
27
+ :param args: any
28
+ :param kwargs: any
29
+ """
30
+ super(MainWindow, self).__init__(*args, **kwargs)
31
+ self.resize(460, 280)
32
+ self.__m_manager = LanguageManager(folder=join(dirname(__file__), '..', 'translations'),
33
+ languageChanged=self.retranslate) # type: LanguageManager
34
+ self.__m_combo = QComboBox() # type: QComboBox
35
+ for code, name in self.__m_manager.availableLanguages():
36
+ self.__m_combo.addItem(name, code)
37
+ self.__m_combo.currentIndexChanged.connect(lambda i: self.__m_manager.setLanguage(self.__m_combo.itemData(i)))
38
+ self.__m_labels = [QLabel() for _ in range(3)] # type: list
39
+ self.__m_button = QPushButton() # type: QPushButton
40
+ wdg = QWidget() # type: QWidget
41
+ layout = QVBoxLayout(wdg) # type: QVBoxLayout
42
+ layout.addWidget(self.__m_combo)
43
+ for label in self.__m_labels:
44
+ layout.addWidget(label)
45
+ layout.addWidget(self.__m_button)
46
+ layout.addStretch(1)
47
+ self.setCentralWidget(wdg)
48
+ self.retranslate()
49
+
50
+ @pyqtSlot()
51
+ @pyqtSlot('QString')
52
+ @pyqtSlot(str)
53
+ def retranslate(self, *args):
54
+ """
55
+ Live switching: every text is set again from its English source.
56
+ :param args: any
57
+ :return:
58
+ """
59
+ self.setWindowTitle(self.tr(u'Translator demo'))
60
+ for label, text in zip(self.__m_labels, (u'Select a region', u'Freeze / unfreeze', u'Screen color picker')):
61
+ label.setText(self.tr(text))
62
+ self.__m_button.setText(self.tr(u'Copy all formats'))