This tool utilizes computer vision to extract text from images.
Before you begin, ensure you have the following:
- An Azure account with an active subscription.
- An Azure Computer Vision resource set up.
- Obtain the API Key and URL of your Azure Computer Vision resource, and store them in a
config.json
file as shown below:
{
"api_key": "key",
"api_url": "url"
}
- Copy the absolute path of the
config.json
file and set it in the `app/handlers/extract.go`` file at line number 25, like this:
data, err := os.ReadFile("path_to_config") // Replace "path_to_config" with the absolute path to your `config.json` file as mentioned in point 3.
To build Textify, run the following command:
go build
You can add the tool's path to your OS environment variables to access it from anywhere.
To extract text from an image, use the following command:
Textify -i="./20230816_133440.jpg" -o="output.text"
For Help:
Textify help
Improvements made:
- Clarified the purpose of the tool in the project description.
- Improved the formatting of the setup steps.
- Clarified the usage of the
Textify
command. - Provided a more consistent naming convention for the output file.
- Added a "Contribution" section, which appears to be missing in your original README.
- Enhanced the overall readability and organization of the document.