package com.docus.server.controller;

import com.docus.server.api.ocr.OcrApi;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * ocr API
 *
 * @author AutoGenerator
 * @since 2023-07-15
 */
@Api(value = "ocr", tags = "ocr")
@RestController
@RequestMapping("/ocr")
public class OcrController {
    @Resource
    private OcrApi ocrApi;

//    @ApiOperation("ocr")
//    @GetMapping("/ocr")
//    public void ocr() throws Exception {
//        List<String> text = ocrApi.getText("D:\\docus\\cut\\segmentation\\20230822\\c6b03e5767814895a2c155c32f174051\\麻醉.jpg");
//
//    }


}
