Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leanflutter/screen_text_extractor
This plugin allows Flutter desktop apps to extract text from screen.
https://github.com/leanflutter/screen_text_extractor
flutter flutter-desktop linux macos windows
Last synced: 3 months ago
JSON representation
This plugin allows Flutter desktop apps to extract text from screen.
- Host: GitHub
- URL: https://github.com/leanflutter/screen_text_extractor
- Owner: leanflutter
- License: mit
- Created: 2021-07-23T13:18:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-04T15:18:00.000Z (10 months ago)
- Last Synced: 2024-07-23T02:41:07.709Z (4 months ago)
- Topics: flutter, flutter-desktop, linux, macos, windows
- Language: C++
- Homepage:
- Size: 196 KB
- Stars: 52
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README-ZH.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-flutter-desktop - screen_text_extractor - This plugin allows Flutter desktop apps to extract text from screen. (Packages)
README
# screen_text_extractor
[![pub version][pub-image]][pub-url] [![][discord-image]][discord-url] ![][visits-count-image]
[pub-image]: https://img.shields.io/pub/v/screen_text_extractor.svg
[pub-url]: https://pub.dev/packages/screen_text_extractor[discord-image]: https://img.shields.io/discord/884679008049037342.svg
[discord-url]: https://discord.gg/zPa6EZ2jqb[visits-count-image]: https://img.shields.io/badge/dynamic/json?label=Visits%20Count&query=value&url=https://api.countapi.xyz/hit/leanflutter.screen_text_extractor/visits
这个插件允许 Flutter 桌面应用从屏幕上提取文本。
---
[English](./README.md) | 简体中文
---
- [screen_text_extractor](#screen_text_extractor)
- [平台支持](#平台支持)
- [快速开始](#快速开始)
- [安装](#安装)
- [用法](#用法)
- [谁在用使用它?](#谁在用使用它)
- [API](#api)
- [ScreenTextExtractor](#screentextextractor)
- [许可证](#许可证)## 平台支持
| Linux | macOS | Windows |
| :---: | :---: | :-----: |
| ✔️ | ✔️ | ✔️ |## 快速开始
### 安装
将此添加到你的软件包的 pubspec.yaml 文件:
```yaml
dependencies:
screen_text_extractor: ^0.1.3
```或
```yaml
dependencies:
screen_text_extractor:
git:
url: https://github.com/leanflutter/screen_text_extractor.git
ref: main
```### 用法
```dart
import 'package:screen_text_extractor/screen_text_extractor.dart';ExtractedData data;
data = await ScreenTextExtractor.instance.extractFromClipboard();
data = await ScreenTextExtractor.instance.extractFromScreenSelection();
```> 请看这个插件的示例应用,以了解完整的例子。
## 谁在用使用它?
- [Biyi (比译)](https://biyidev.com/) - 一个便捷的翻译和词典应用。
## API
### ScreenTextExtractor
| Method | Description | Linux | MacOS | Windows |
| -------------------------- | ------------ | ----- | ----- | ------- |
| isAccessAllowed | `macOS` only | ➖ | ✔️ | ➖ |
| requestAccess | `macOS` only | ➖ | ✔️ | ➖ |
| extractFromClipboard | | ✔️ | ✔️ | ✔️ |
| extractFromScreenSelection | | ✔️ | ✔️ | ✔️ |## 许可证
[MIT](./LICENSE)