Skip to content

Conversation

@nadimurrashid
Copy link
Collaborator

PR Type

------Implemented "easyocr" tool which can work as an alternative to image text.
This was implemented to detect elements on low resolution pc as oftentime pytesseract fails to detect element on low res pc , or some time in some page ..this can work as an alternative to detect those elements..

parameters and their explanation:

  • language = "You can provide different type of language names here which comes with this tool to detect different types of texts based on different language."
  • t_conf = "It represents confidents of searched elements. Currently set to 0.9. If you put 1 here it will go for precise search or if lower it down it will widen it's search"
    -easyocr_paragraph = "If you set it true , it will return value in paragraphs instead of individual text"
    -t_screenshot = "In the produced output , if the desired text has random characters in them ,you can use this functionality to detect it accurately."
    Since easy_ocr works bit slower when uses CPU , I have added this improvement to fasten automation process.
    if user is working with multiple elements from the same page , previously the node used easy_ocr tool each single time to identify elements which slowed down automation quiet a bit.
    So to tackle the issue , I have implemented a row which will store a single run value inside a variable meaning if the user is planning to work with multiple elements from same page , user will just have to run the easy_ocr tool with action for once and then it will store the value inside a variable.
    Then on the next action user will just have to use that variable to work with other element from same page . And user won't have to wait for longer time like he/she used to.

to store value , use "store_data" | element parameter | "provide variable name"
And to use the stored value , you use "previous_value" | element parameter | %| provide variable name|%

PR Checklist

  • [ *] Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • [ *] A changelog entry has been made.
  • Version number has been updated.
  • Required modules have been added to respective "requirements*.txt" files.
  • Relevant Test Cases added to this description (below).
  • (Team) Label with affected action categories and semver status.

Overview

Test Cases

@sazid sazid merged commit 15408ae into dev Oct 17, 2023
@sazid sazid deleted the image_search_easyocr_one branch October 17, 2023 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants