Certainly! Here is your README with the requested sections integrated:
This Express.js application uses the Google Cloud Vision API to extract text from an uploaded image and converts it into a well-formatted Word document (.docx
). The generated document preserves the formatting such as bold, italics, bullet points, and indentation based on the extracted text.
.docx
document.Clone the repository:
git clone https://github.com/webartsol/GoogleOCR.git
cd GoogleOCR
Install dependencies:
npm install
Run the application:
npm run google
credentials.json
for Google Cloud Vision APIcredentials.json
will be downloaded to your computer.To use Google Cloud Vision for Optical Character Recognition (OCR), the API endpoint is as follows:
https://vision.googleapis.com/v1/images:annotate
This endpoint processes images to detect and extract text using the TEXT_DETECTION
or DOCUMENT_TEXT_DETECTION
features. To make requests, you must include your API key or authenticate with the credentials.json
obtained earlier.
contact : codeguyakash@gmail.com