摘要: String imagePath = "测试图片完整地址"; String tesseractPath = "Tesseract安装路径\\tesseract.exe"; ProcessBuilder processBuilder = new ProcessBuilder( tesseractPat 阅读全文
posted @ 2024-08-23 16:36 Lee597 阅读(33) 评论(0) 推荐(0) 编辑
摘要: // 1、先连上opencv包System.setProperty("java.awt.headless", "false");System.out.println(System.getProperty("java.library.path"));URL url = ClassLoader.getS 阅读全文
posted @ 2024-08-21 09:35 Lee597 阅读(93) 评论(0) 推荐(0) 编辑
摘要: // 连接opencvSystem.setProperty("java.awt.headless", "false");System.out.println(System.getProperty("java.library.path"));URL url = ClassLoader.getSyste 阅读全文
posted @ 2024-08-16 11:42 Lee597 阅读(87) 评论(0) 推荐(0) 编辑
摘要: //region 图像匹配 3.0 private Mat imageMatch(Image ori, Image tbi) { System.setProperty("java.awt.headless", "false"); System.out.println(System.getProper 阅读全文
posted @ 2024-08-16 10:57 Lee597 阅读(122) 评论(0) 推荐(0) 编辑
摘要: ITesseract instance = new Tesseract(); try { // 设置字体库路径 instance.setDatapath("/path/to/tessdata/"); // 添加特定的字体 instance.setLanguage("eng", "/path/to/f 阅读全文
posted @ 2024-08-16 10:44 Lee597 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 首先,需要有一个 Post 接口,有一个实体类 方法需要返回什么,直接修改void即可 实体类需要接收什么,直接改User即可 @PostMapping(value = "/post_interface") public void postInterface(@RequestParam("file" 阅读全文
posted @ 2024-08-15 17:24 Lee597 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 一、打开系统的防火墙界面,打开方式有很多种,我是用的 win11,可以直接搜索打开 也可以通过其他方式打开,这个看个人,反正结果是进入防火墙就行 1、右键电脑上右下角的Wi-Fi图标,点击打开网络设置窗口 2、点击高级网络设置 3、 点击最下方的 windows防火墙 二、正式配置白名单,配置之前, 阅读全文
posted @ 2024-08-02 11:05 Lee597 阅读(3365) 评论(0) 推荐(1) 编辑
摘要: Mat img = Imgcodecs.imread("图片绝对路径");Mat imgCopy = new Mat(img.size(), CvType.CV_8UC1);HighGui.imshow("Ori",img);double alpha = 1.5; // 大于0增加亮度,小于1大于0 阅读全文
posted @ 2024-06-28 11:47 Lee597 阅读(33) 评论(0) 推荐(0) 编辑
摘要: Mat sharpened = new Mat();MatOfDouble kernel = new MatOfDouble(-1,-1,-1,-1,9,-1,-1,-1,-1);Imgproc.filter2D(原始图片的 Mat对象,sharpened,-1,kernel); 阅读全文
posted @ 2024-06-28 09:25 Lee597 阅读(38) 评论(0) 推荐(0) 编辑
摘要: //region 异步线程查询测试@Testvoid testThread() { CountThread countThread = new CountThread(); Thread thread = new Thread(countThread); thread.setName("线程1"); 阅读全文
posted @ 2024-06-27 16:52 Lee597 阅读(12) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示