website/docs/ocr-testing/cli-wizard.md
You can validate which text can be found in an image without running a test by using the OCR CLI Wizard. The only thing that are needed are:
@wdio/ocr-service as a dependency, see Getting StartedThen run the following command to start the wizard
npx ocr-service
This will start a wizard that will guide you through the steps to select an image and use a haystack plus advanced mode. The following questions are asked
The following options can be selected
The CLI wizard provides an option to use a "file explorer" to search for files on your system. It starts from the folder you call the command. After selecting an image (use your arrow keys and the ENTER key) you will proceed to the next question
This is a direct path to a file somewhere on your local machine
Here you have the option to select an area that needs to be processed. This can speed up the process or reduce/narrow down the amount of text the OCR engine might find. You need to provide x, y, width, height data based on the following questions:
Advanced mode will hold extra features like:
Here's a demo
<video controls width="100%"> <source src="/img/ocr/ocr-service-cli.mp4" /> </video>