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 ocr(@RequestBody OCRReqDTO ocrReqDTO); /** * 提取文本属性 * @param retrieveReqDTO * @return */ @PostExchange(url = "/retrieve", contentType = MediaType.APPLICATION_JSON_VALUE) RetrieveResDTO retrieve(@RequestBody RetrieveReqDTO retrieveReqDTO); }