• Analysis of Baidu OCR image recognition process based on Python


    This article mainly introduces the python implementation of Baidu OCR image recognition process analysis, the article through the example code introduction is very detailed, for everyone’s study or work has a certain reference learning value, need friends can refer to The code is as follows import base64 import requests class CodeDemo: def __init__(self,AK,SK,code_url,img_path): self.AK=AK self.SK=SK […]

  • Spring boot integrates selemium + tes4j + OpenCV to realize verification code identification, remove interference lines and simulate user login (2)


    The infrastructure has been built in the previous chapter, and then there is the code for image processing and recognition. 1: Get page verification code elements through selemium WebElement element = SeleniumUtil.findElement(driver,szsbEnum); return new ByteArrayInputStream(((TakesScreenshot) element).getScreenshotAs(OutputType.BYTES)); 2: Process the verification code picture Code for direct image processing public BufferedImage cleanLinesInImage(BufferedImage oriBufferedImage) throws IOException{ BufferedImage bufferedImage […]

  • An article deals with Baidu OCR image and character recognition API


    The study of Baidu OCR’s API is mainly aimed at the requirements of text recognition and word document transformation for various PDF scanned versions. Here we use the postman client for testing and demonstration. Because postman is the best way to get started with various API operations. Once the correct call is implemented in postman, […]

  • Tesseract of Android OCR


    Tesseract of Android OCR 1. Introduction to Open Source Tools Tesseract is a well-known open source OCR tool, but it may take a little effort to configure it in the Android development environment. Don’t worry, there are people on GitHub who help us encapsulate the Tesseract configuration of the Android development environment, which is tess-two, […]