imaging.tesseract.1.0.0.source-code.tesseract-config.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Copyright (c) 2021 the original author or authors. ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. ~ ~ This Source Code Form is subject to the terms of the Mozilla Public ~ License, v. 2.0. If a copy of the MPL was not distributed with this ~ file, You can obtain one at https://mozilla.org/MPL/2.0/. --> <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <bean id="tesseractImageTransformer" class="science.aist.imaging.service.tesseract.imageprocessing.transformers.ByteArrayJavaImageTransformer"/> <bean id="tesseractOCR" class="science.aist.imaging.service.tesseract.imageprocessing.opticalcharacterrecognition.tesseract.TesseractOCR" destroy-method="close"> <constructor-arg index="0" value="."/> <property name="imageTransformer" ref="tesseractImageTransformer"/> </bean> </beans>