黑科技
各种小技巧
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 available module pdfbo原创 2021-01-28 16:49:31 · 895 阅读 · 1 评论 -
java VideoCapture类检测是否断开连接
VideoCapture48个相关参数返回值如下 -1.0 -1.0 -1.0 640.0 480.0 0.0 8.44715353E8 -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.0 -1.0 -1.0 -1.0 -1.0 -1.0 -1.0 -1.0 -1.0 -1.0 -1.0 0.0 -1.0 -1.0 -1.0 -1.0 700.0 0.0 -1.0原创 2021-04-09 17:18:28 · 485 阅读 · 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 · 995 阅读 · 3 评论 -
python 不用opencv和aircv解决图片在屏幕中的位置
from PIL import Image, ImageFile def 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 · 811 阅读 · 1 评论
分享