Giter Site home page Giter Site logo

leanflutter / screen_text_extractor Goto Github PK

View Code? Open in Web Editor NEW
51.0 2.0 8.0 201 KB

This plugin allows Flutter desktop apps to extract text from screen.

License: MIT License

Dart 13.32% Swift 4.77% Ruby 3.14% CMake 26.29% C++ 48.47% C 4.02%
flutter flutter-desktop linux windows macos

screen_text_extractor's Introduction

screen_text_extractor

pub version

This plugin allows Flutter desktop apps to extract text from screen.


English | 简体中文


Platform Support

Linux macOS Windows
✔️ ✔️ ✔️

Quick Start

Installation

Add this to your package's pubspec.yaml file:

dependencies:
  screen_text_extractor: ^0.1.3

Or

dependencies:
  screen_text_extractor:
    git:
      url: https://github.com/leanflutter/screen_text_extractor.git
      ref: main

Usage

import 'package:screen_text_extractor/screen_text_extractor.dart';

ExtractedData data;

data = await ScreenTextExtractor.instance.extractFromClipboard();
data = await ScreenTextExtractor.instance.extractFromScreenSelection();

Please see the example app of this plugin for a full example.

Who's using it?

API

ScreenTextExtractor

Method Description Linux MacOS Windows
isAccessAllowed macOS only ✔️
requestAccess macOS only ✔️
extractFromClipboard ✔️ ✔️ ✔️
extractFromScreenSelection ✔️ ✔️ ✔️

License

MIT

screen_text_extractor's People

Contributors

lijy91 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

screen_text_extractor's Issues

Extracting selected text does not work on macOS

Hello!

I used example code to test this plugin. Instead of extracting selected text it showed null. Seems that there is a problem with simulating + C press, because if I try to extract selected text and then manually copy, then it returns copied text.

Issue occurred on macOS 13.0.1 (22A400)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.