错误代码如下
public static void main(String[] args) {
// 图像组合APIurl
String imgCensorUrl = "https://aip.baidubce.com/api/v1/solution/direct/img_censor";
String filePath = "C:\\Users\\32249\\Desktop\\a.jpeg";
try {
//请求参数
Map<String, Object> sceneConf = new HashMap<String, Object>();
Map<String, Object> ocrConf = new HashMap<String, Object>();
ocrConf.put("recognize_granularity", "big");
ocrConf.put("language_type", "CHN_ENG");
ocrConf.put("detect_direction", true);
ocrConf.put("detect_language", true);
sceneConf.put("ocr", ocrConf);
Map<String, Object> input = new HashMap<String, Object>();
List<Object> scenes = new ArrayList<Object>();
scenes.add("ocr");
scenes.add("face");
scenes.add("public");
scenes.add("poli

最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



