
黑科技
各种小技巧
Kscstg
holding on
展开
-
模块化java项目引入的包需要依赖其他包暴力解决
刚开始试了两个包都加module-info.calss发现不行,模块A无法读取到模块B的module-info.calss报错如下:because module pdfbox does not read module commons.logging // IntelliJ API Decompiler stub source generated from a class file // Implementation of methods is not availablemodule pdfbo原创 2021-01-28 16:49:31 · 801 阅读 · 1 评论 -
java VideoCapture类检测是否断开连接
VideoCapture48个相关参数返回值如下-1.0-1.0-1.0640.0480.00.08.44715353E8-1.0-1.0-1.0-1.0-1.0-1.0-1.0-1.0-1.01.0-1.0-1.0-1.0-1.0-1.0-1.0-1.0-1.0-1.0-1.0-1.0-1.0-1.0-1.0-1.0-1.0-1.0-1.0-1.0-1.00.0-1.0-1.0-1.0-1.0700.00.0-1.0原创 2021-04-09 17:18:28 · 435 阅读 · 0 评论 -
javafx 中获取node在屏幕中的绝对坐标
优点:比系统库函数简单好用,参数少缺点:没有大量测试,递归有风险public static double getAbsoluteX(Object object) { if (object instanceof Stage) { Stage Stage = (Stage)object; return Stage.getX(); } else if (object instanceof Scene) {原创 2021-04-01 14:02:57 · 912 阅读 · 3 评论 -
python 不用opencv和aircv解决图片在屏幕中的位置
from PIL import Image, ImageFiledef get_position (): image_path = os.path.abspath(__file__) image_path = image_path + "\\resource\\images\\logo.png" position = search_position(image_path) if position is None: return MAIN_X = p原创 2021-01-27 17:55:28 · 762 阅读 · 1 评论