GithubHelp home page GithubHelp logo

Comments (9)

AlexanderPro avatar AlexanderPro commented on May 26, 2024 1

No, only Windows built-in OCR

from windowtextextractor.

AlexanderPro avatar AlexanderPro commented on May 26, 2024

Hi @flippythemonster,

WindowTextExtractor uses Microsoft UI Automation. But when you click "Grab" button, it uses Windows OCR.

from windowtextextractor.

flippythemonster avatar flippythemonster commented on May 26, 2024

thanks for the prompt response ! if I don't want to use OCR, how can I extract text?
it seems that whenever I try to hover over an app, I get property related information instead of the textual content.
Sorry if I misunderstand the product!

from windowtextextractor.

AlexanderPro avatar AlexanderPro commented on May 26, 2024

You should download the latest version 2.0.0. Open "Text" tab and try to hover over an app for textual content. On "Image" tab you can see graphical window content and can grab it by "Grab" button.

from windowtextextractor.

flippythemonster avatar flippythemonster commented on May 26, 2024

Please look at the attached picture:
image

This is the output when I try to hover over my chrome window, when I try on other apps, it does not output anything. And I am using the latest 2.0.0 version. I am not trying to use OCR as I need accurate textual representation of the content of my desktop.

from windowtextextractor.

AlexanderPro avatar AlexanderPro commented on May 26, 2024

Chrome does not support UI Automation by default. On Chromium-based browsers, try to access chrome://accessibility (it will redirect to edge://accessibility on Edge, doesn't matter), then check all under Accessibility modes.
image
You will need to do this every time you want to extract text from Chromium-based browsers, per (re-)launch of browser.

from windowtextextractor.

flippythemonster avatar flippythemonster commented on May 26, 2024

Interesting, this works and fixes it. So it depends on whether the app supports UI automation or not ? I ve tried on other apps such as VScode, discord etc and run into similar trouble where these apps are recognised as chrome legacy windows. Are there other means to retrieve textual content from desktop without using OCR and is more global than UI automation ?

I apologise if I am asking for redundant or stupid questions. I am trying to research for ways to do so but so far even state of the art OCR models have failed on my test cases.

from windowtextextractor.

AlexanderPro avatar AlexanderPro commented on May 26, 2024

Yes, some windows do not support UI automation. I could not find a universal solution for obtaining window text. Therefore, WindowTextExtractor contains several tabs. "Text" tab is for Microsoft UI Automation extracting and "Image" tab is for Microsoft Windows OCR extracting.

from windowtextextractor.

flippythemonster avatar flippythemonster commented on May 26, 2024

oh thank you !! I am happy that you kept maintaining such project. Are you using tesseract for your OCR support ?

from windowtextextractor.

Related Issues (12)

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.