Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions apps/desktop-gpui/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion apps/desktop-gpui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# gpui's tree does not want.
[workspace]
resolver = "2"
members = [".", "kernels", "i18n-build", "glass"]
members = [".", "kernels", "i18n-build", "glass", "sensitive-scan"]

[package]
name = "cap-desktop-gpui"
Expand Down Expand Up @@ -90,6 +90,7 @@ cap-editor = { path = "../../crates/editor" }
# export *page* can also drive the `cap-exporter` subprocess protocol, so this
# is the cheaper of the two options rather than the only one.
cap-export = { path = "../../crates/export" }
cap-sensitive-scan = { path = "sensitive-scan" }
# The first-frame JPEG a finished recording's Recents card is drawn from
# (`create_screenshot`, ported from 0.6.0). Same package/git/rev the root
# workspace pins, and cap-recording already builds it, so this is an import,
Expand Down
12 changes: 12 additions & 0 deletions apps/desktop-gpui/locales/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2082,6 +2082,17 @@ highlight = "Hervorheben"
outside_darkness = "Abdunklung außen"
pixel_size = "Pixelgröße"
pixelate = "Verpixeln"
scan_changed = "Das Projekt wurde während des Scans geändert. Scannen Sie erneut, um Masken hinzuzufügen."
scan_description = "Cap liest den Text auf dem Bildschirm und macht E-Mail-Adressen, Telefonnummern, Kartennummern, Schlüssel und Ihre eigenen Begriffe unkenntlich, wo immer sie erscheinen."
scan_downloading = "Texterkennung wird heruntergeladen… {percent} %"
scan_failed = "Die Aufnahme konnte nicht gescannt werden"
scan_found = { one = "{count} Maske hinzugefügt", other = "{count} Masken hinzugefügt" }
scan_none = "Keine vertraulichen Daten gefunden"
scan_phrase_placeholder = "Begriff eingeben und Eingabetaste drücken"
scan_phrases = "Eigene Begriffe"
scan_progress = "Wird gescannt… {percent} %"
scan_start = "Aufnahme scannen"
scan_title = "Vertrauliche Daten ausblenden"
sensitive = "Vertraulich"
title = "Maske {number}"

Expand Down Expand Up @@ -2428,6 +2439,7 @@ camera = "Kamera"
captions = "Untertitel"
cursor = "Cursor"
keyboard = "Tastatur"
privacy = "Datenschutz"

[editor.sidebar.wallpaper_theme]
blue = "Blau"
Expand Down
12 changes: 12 additions & 0 deletions apps/desktop-gpui/locales/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2084,6 +2084,17 @@ highlight = "Highlight"
outside_darkness = "Outside Darkness"
pixel_size = "Pixel Size"
pixelate = "Pixelate"
scan_changed = "The project changed during the scan. Scan again to add masks."
scan_description = "Cap reads the text on screen and blurs emails, phone numbers, card numbers, keys and your own phrases wherever they appear."
scan_downloading = { text = "Downloading text recognition… {percent}%", context = "{percent} is a whole number from 0 to 100." }
scan_failed = "Couldn't scan the recording"
scan_found = { one = "Added {count} mask", other = "Added {count} masks" }
scan_none = "No sensitive data found"
scan_phrase_placeholder = { text = "Add a phrase and press Enter", context = "A name or word to hide, such as a client's name." }
scan_phrases = "Custom phrases"
scan_progress = { text = "Scanning… {percent}%", context = "{percent} is a whole number from 0 to 100." }
scan_start = "Scan recording"
scan_title = "Hide sensitive data"
sensitive = "Sensitive"
title = "Mask {number}"

Expand Down Expand Up @@ -2430,6 +2441,7 @@ camera = "Camera"
captions = "Captions"
cursor = "Cursor"
keyboard = "Keyboard"
privacy = "Privacy"

[editor.sidebar.wallpaper_theme]
blue = "Blue"
Expand Down
12 changes: 12 additions & 0 deletions apps/desktop-gpui/locales/es.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2082,6 +2082,17 @@ highlight = "Resaltar"
outside_darkness = "Oscuridad exterior"
pixel_size = "Tamaño de píxel"
pixelate = "Pixelar"
scan_changed = "El proyecto cambió durante el análisis. Vuelve a analizar para añadir máscaras."
scan_description = "Cap lee el texto de la pantalla y difumina correos, teléfonos, números de tarjeta, claves y tus propias frases dondequiera que aparezcan."
scan_downloading = "Descargando el reconocimiento de texto… {percent} %"
scan_failed = "No se pudo analizar la grabación"
scan_found = { one = "Se añadió {count} máscara", other = "Se añadieron {count} máscaras" }
scan_none = "No se encontraron datos sensibles"
scan_phrase_placeholder = "Escribe una frase y pulsa Intro"
scan_phrases = "Frases personalizadas"
scan_progress = "Analizando… {percent} %"
scan_start = "Analizar grabación"
scan_title = "Ocultar datos sensibles"
sensitive = "Sensible"
title = "Máscara {number}"

Expand Down Expand Up @@ -2428,6 +2439,7 @@ camera = "Cámara"
captions = "Subtítulos"
cursor = "Cursor"
keyboard = "Teclado"
privacy = "Privacidad"

[editor.sidebar.wallpaper_theme]
blue = "Azul"
Expand Down
12 changes: 12 additions & 0 deletions apps/desktop-gpui/locales/fr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2082,6 +2082,17 @@ highlight = "Mise en valeur"
outside_darkness = "Assombrissement extérieur"
pixel_size = "Taille des pixels"
pixelate = "Pixeliser"
scan_changed = "Le projet a changé pendant l’analyse. Relancez l’analyse pour ajouter les masques."
scan_description = "Cap lit le texte à l’écran et floute les e-mails, numéros de téléphone, numéros de carte, clés et vos propres expressions, où qu’ils apparaissent."
scan_downloading = "Téléchargement de la reconnaissance de texte… {percent} %"
scan_failed = "Impossible d’analyser l’enregistrement"
scan_found = { one = "{count} masque ajouté", other = "{count} masques ajoutés" }
scan_none = "Aucune donnée sensible trouvée"
scan_phrase_placeholder = "Saisissez une expression puis appuyez sur Entrée"
scan_phrases = "Expressions personnalisées"
scan_progress = "Analyse… {percent} %"
scan_start = "Analyser l’enregistrement"
scan_title = "Masquer les données sensibles"
sensitive = "Sensible"
title = "Masque {number}"

Expand Down Expand Up @@ -2428,6 +2439,7 @@ camera = "Caméra"
captions = "Sous-titres"
cursor = "Curseur"
keyboard = "Clavier"
privacy = "Confidentialité"

[editor.sidebar.wallpaper_theme]
blue = "Bleu"
Expand Down
12 changes: 12 additions & 0 deletions apps/desktop-gpui/locales/hi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2082,6 +2082,17 @@ highlight = "हाइलाइट"
outside_darkness = "बाहरी अंधेरा"
pixel_size = "पिक्सल आकार"
pixelate = "पिक्सलेट"
scan_changed = "स्कैन के दौरान प्रोजेक्ट बदल गया। मास्क जोड़ने के लिए फिर से स्कैन करें।"
scan_description = "Cap स्क्रीन पर दिख रहा टेक्स्ट पढ़ता है और ईमेल, फ़ोन नंबर, कार्ड नंबर, कुंजियाँ और आपके अपने वाक्यांश जहाँ भी दिखें, उन्हें ब्लर कर देता है।"
scan_downloading = "टेक्स्ट पहचान डाउनलोड हो रही है… {percent}%"
scan_failed = "रिकॉर्डिंग स्कैन नहीं हो सकी"
scan_found = { one = "{count} मास्क जोड़ा गया", other = "{count} मास्क जोड़े गए" }
scan_none = "कोई संवेदनशील डेटा नहीं मिला"
scan_phrase_placeholder = "वाक्यांश लिखें और Enter दबाएँ"
scan_phrases = "कस्टम वाक्यांश"
scan_progress = "स्कैन हो रहा है… {percent}%"
scan_start = "रिकॉर्डिंग स्कैन करें"
scan_title = "संवेदनशील डेटा छिपाएँ"
sensitive = "संवेदनशील"
title = "मास्क {number}"

Expand Down Expand Up @@ -2428,6 +2439,7 @@ camera = "कैमरा"
captions = "कैप्शन"
cursor = "कर्सर"
keyboard = "कीबोर्ड"
privacy = "गोपनीयता"

[editor.sidebar.wallpaper_theme]
blue = "नीला"
Expand Down
12 changes: 12 additions & 0 deletions apps/desktop-gpui/locales/ja.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2082,6 +2082,17 @@ highlight = "強調"
outside_darkness = "外側の暗さ"
pixel_size = "ピクセルサイズ"
pixelate = "モザイク"
scan_changed = "スキャン中にプロジェクトが変更されました。マスクを追加するにはもう一度スキャンしてください。"
scan_description = "Capが画面上のテキストを読み取り、メールアドレス、電話番号、カード番号、キー、指定したフレーズを表示される場所でぼかします。"
scan_downloading = "テキスト認識をダウンロード中… {percent}%"
scan_failed = "録画をスキャンできませんでした"
scan_found = { other = "{count}個のマスクを追加しました" }
scan_none = "機密データは見つかりませんでした"
scan_phrase_placeholder = "フレーズを入力してEnterを押す"
scan_phrases = "カスタムフレーズ"
scan_progress = "スキャン中… {percent}%"
scan_start = "録画をスキャン"
scan_title = "機密データを隠す"
sensitive = "機密"
title = "マスク{number}"

Expand Down Expand Up @@ -2428,6 +2439,7 @@ camera = "カメラ"
captions = "字幕"
cursor = "カーソル"
keyboard = "キーボード"
privacy = "プライバシー"

[editor.sidebar.wallpaper_theme]
blue = "ブルー"
Expand Down
12 changes: 12 additions & 0 deletions apps/desktop-gpui/locales/zh-CN.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2082,6 +2082,17 @@ highlight = "突出显示"
outside_darkness = "外部暗度"
pixel_size = "像素大小"
pixelate = "像素化"
scan_changed = "扫描期间项目已更改。请重新扫描以添加遮罩。"
scan_description = "Cap 会读取屏幕上的文字,并在邮箱、电话号码、卡号、密钥和你自定义的短语出现的位置进行模糊处理。"
scan_downloading = "正在下载文字识别… {percent}%"
scan_failed = "无法扫描录制内容"
scan_found = { other = "已添加 {count} 个遮罩" }
scan_none = "未发现敏感内容"
scan_phrase_placeholder = "输入短语后按 Enter"
scan_phrases = "自定义短语"
scan_progress = "正在扫描… {percent}%"
scan_start = "扫描录制内容"
scan_title = "隐藏敏感内容"
sensitive = "敏感内容"
title = "遮罩 {number}"

Expand Down Expand Up @@ -2428,6 +2439,7 @@ camera = "摄像头"
captions = "字幕"
cursor = "光标"
keyboard = "键盘"
privacy = "隐私"

[editor.sidebar.wallpaper_theme]
blue = "蓝色"
Expand Down
23 changes: 23 additions & 0 deletions apps/desktop-gpui/sensitive-scan/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[package]
name = "cap-sensitive-scan"
version = "0.1.0"
edition = "2024"
license = "AGPL-3.0"
publish = false

[dependencies]
cap-project = { path = "../../../crates/project" }
ab_glyph = { version = "0.2", optional = true }
anyhow = "1"
ort = { version = "2.0.0-rc.12", default-features = false, features = ["std", "load-dynamic", "api-23"] }
regex = "1"

[dev-dependencies]
ab_glyph = "0.2"

[features]
synthetic = ["dep:ab_glyph"]

[[example]]
name = "scan-bench"
required-features = ["synthetic"]
Loading
Loading