How Do I Obtain the Base64 Code for an Image?
The input image parameter of OCR is a Base64 code of the image. This section describes how to use the Google Chrome browser to obtain the Base64 code of an image.
- Open the Google Chrome browser and drag an image file to the browser. The image is displayed on the browser.
- Press F12, click Sources, and select the image file from the navigation tree on the left. The Base64 code of the image is displayed on the right, as shown in red frame 3 in the following figure.
- Double-click the Base64 code of the image, press Ctrl+A to select all text of the code, and press Ctrl+C to copy it. Do not copy the code by right-clicking it, or some text may be missing. Figure 1 Base64-encoded image
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.