You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fu-hsi-service/src/main/java/com/supervision/police/service/OCRService.java

33 lines
990 B
Java

package com.supervision.police.service;
import com.supervision.police.dto.OCRReqDTO;
import com.supervision.police.dto.OCRResDTO;
import com.supervision.police.dto.RetrieveReqDTO;
import com.supervision.police.dto.RetrieveResDTO;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.service.annotation.HttpExchange;
import org.springframework.web.service.annotation.PostExchange;
import java.util.List;
@HttpExchange
public interface OCRService {
/**
* ocr识别
* @param ocrReqDTO
* @return
*/
@PostExchange(url = "/ocr", contentType = MediaType.APPLICATION_JSON_VALUE)
List<OCRResDTO> ocr(@RequestBody OCRReqDTO ocrReqDTO);
/**
* 提取文本属性
* @param retrieveReqDTO
* @return
*/
@PostExchange(url = "/retrieve", contentType = MediaType.APPLICATION_JSON_VALUE)
RetrieveResDTO retrieve(@RequestBody RetrieveReqDTO retrieveReqDTO);
}