annwayili
发表于 2020-1-31 17:05:53
很奇怪。我用最新的0.0.1-4-Alpha 版,什么都做不了。
载入视频后,打开滤镜,无论如何调整,都出现错误。软件窗口中的视频画面随着设置的不同却没有任何变化。甚至比如其中“裁剪”,以前版本有的绿色框也没有出现----在软件右侧有许多个“裁剪”要填写坐标,我都一一填写了,结果还是一样的,没有任务变化。至于点击左侧的不同滤镜,也是所显示的视频画面什么都没有变动,似乎根本没有任何操作一样。
请指点!!
----
随便复制了一个信息,如下:
模块类型: 裁剪
模块信息: ModuleStatus(index=1, moduleType=CROP, enable=true, cache=false, attrMap={}, paramMap={ulx=8.0, lry=530.0, uly=463.0, lrx=950.0, sr=1.0})
OpenCv 信息: cv::Exception: OpenCV(4.1.2) C:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\core\src\matrix.cpp:466: error: (-215:Assertion failed) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function 'cv::Mat::Mat'
NoobNeo
发表于 2020-1-31 18:58:09
annwayili 发表于 2020-1-31 17:05
很奇怪。我用最新的0.0.1-4-Alpha 版,什么都做不了。
载入视频后,打开滤镜,无论如何调整,都出现错误。 ...
新版本中 "裁剪" 被列为模块了(更新日志中有提及), "裁剪" 模块内的 "显示区域" 和 "滤镜" 窗口中的 "显示滤镜" 都需要勾选才能像早期版本那样出现绿色边框.
你可以先取消 "显示滤镜", 将 "模块配置" 选项切换到 "自定义", 点击 "重置", 这时候右侧列表应该只有一个 "裁剪" 模块, 勾选 "显示区域", 参数调整后, 再勾选 "显示滤镜", 你就能看到绿色边框了.
解释下你出现错误的原因吧, 一句话总结就是: 一般情况下只需要一个 "裁剪" 模块.
在模块配置中 "裁剪" 必须是第一个(序号: 0), 在你提供的错误信息中, "裁剪" 模块的序号为1, 表明你又添加了一个 "裁剪" 模块, 但是你的参数却写错了, 二次裁剪的坐标是基于上一次裁剪的图像, 而不是基于原始图像,
举个例子: 原始图像: 1280*720, 第一次裁剪是 (0,650) (1279,699), 那第二次裁剪的图像尺寸就变成1280*50, 二次裁剪参数(0,10) (1279,20), 如果二次裁剪依旧基于初始图象(例: (0,660) (1279, 690) ), 就会报错.
annwayili
发表于 2020-1-31 22:41:12
本帖最后由 annwayili 于 2020-1-31 23:56 编辑
NoobNeo 发表于 2020-1-31 18:58
新版本中 "裁剪" 被列为模块了(更新日志中有提及), "裁剪" 模块内的 "显示区域" 和 "滤镜" 窗口中的 "显示 ...
谢谢!
按照指导,确实绿框出来了.....
由于是摸索使用中,自己知识有限,所以,后面就有点凭想象地进行操作:......一番操作之后,把字幕变成绿色,底色黑色---->又一番操作,把字幕变成黑色,底色为棕色---->一番操作,变形学错误,然后取消它....---->一番操作之后,结果程序没反应了。如图。
https://wx3.sinaimg.cn/large/005MlGC9ly1gbg4h2v7jxj30xi0hejub.jpg
截图无它,只是反馈一下情况。
非常感谢编写这个程序!希望能更好完善,也更易上手!
========
总算折腾出一个字幕来了.....……^_^
https://wx1.sinaimg.cn/large/005MlGC9ly1gbg65iu9nrj30mb0hltbj.jpg
BTW,合并操作的提示非常好!!{:4_87:} ;删除操作的提示还可以。只是能不能增加“撤消”,以防一时看错了,还可以补救。
萌萌的ナナチ
发表于 2020-1-31 22:55:55
mark一下 期待下个版本
annwayili
发表于 2020-2-1 10:29:16
严重错误
未知错误
记录下错误并报告我
======
01-02-2020 10:21:31.462INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:21:31.594INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:21:31.639INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:21:33.556INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:21:33.751INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 1 ms
01-02-2020 10:21:33.864INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:21:33.926INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:21:34.019INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:21:34.149INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 1 ms
01-02-2020 10:22:48.948INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:23:00.488INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:23:05.577INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:23:06.193INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:23:07.105INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:23:16.597INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:23:16.802INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:23:16.877INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:23:24.645INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:23:24.999INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:23:25.139INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:23:28.498INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:23:28.861INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:23:29.019INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:23:32.294INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:23:32.598INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 0 ms
01-02-2020 10:23:32.789INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.OpenCVServiceImpl - replaceRoiImage in 1 ms
01-02-2020 10:23:43.896INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.VideoServiceImpl - videoToCOCR in 7 ms
01-02-2020 10:23:43.896 ERROR 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : Pointcut Class: com.neo.caption.ocr.service.impl.VideoServiceImpl
Pointcut Method: videoToCOCR
ExceptionName: org.opencv.core.CvException
ExceptionMsg: cv::Exception: OpenCV(4.1.2) C:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\core\src\arithm.cpp:663: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function 'cv::arithm_op'
ParamNames:
ParamClasses:
Values: ]
Full Stack: Declare: com.neo.caption.ocr.service.impl.OpenCVServiceImpl Method: meanSSIM Line: 345
Declare: com.neo.caption.ocr.service.impl.OpenCVServiceImpl$$FastClassBySpringCGLIB$$c7a12de Method: invoke Line: -1
Declare: com.neo.caption.ocr.service.impl.OpenCVServiceImpl$$EnhancerBySpringCGLIB$$c81f671e Method: meanSSIM Line: -1
Declare: com.neo.caption.ocr.service.impl.VideoServiceImpl Method: videoToCOCR Line: 118
Declare: com.neo.caption.ocr.service.impl.VideoServiceImpl$$FastClassBySpringCGLIB$$87498154 Method: invoke Line: -1
Declare: com.neo.caption.ocr.service.impl.VideoServiceImpl$$EnhancerBySpringCGLIB$$d0536c40 Method: videoToCOCR Line: -1
Declare: com.neo.caption.ocr.controller.MainController$7 Method: call Line: 479
Declare: com.neo.caption.ocr.util.AsyncTask Method: call Line: 24
Declare: com.neo.caption.ocr.util.AsyncTask Method: call Line: 13
01-02-2020 10:23:57.119INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.VideoServiceImpl - videoToCOCR in 5 ms
01-02-2020 10:23:57.119 ERROR 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : Pointcut Class: com.neo.caption.ocr.service.impl.VideoServiceImpl
Pointcut Method: videoToCOCR
ExceptionName: org.opencv.core.CvException
ExceptionMsg: cv::Exception: OpenCV(4.1.2) C:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\core\src\arithm.cpp:663: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function 'cv::arithm_op'
ParamNames:
ParamClasses:
Values: ]
Full Stack: Declare: com.neo.caption.ocr.service.impl.OpenCVServiceImpl Method: meanSSIM Line: 345
Declare: com.neo.caption.ocr.service.impl.OpenCVServiceImpl$$FastClassBySpringCGLIB$$c7a12de Method: invoke Line: -1
Declare: com.neo.caption.ocr.service.impl.OpenCVServiceImpl$$EnhancerBySpringCGLIB$$c81f671e Method: meanSSIM Line: -1
Declare: com.neo.caption.ocr.service.impl.VideoServiceImpl Method: videoToCOCR Line: 118
Declare: com.neo.caption.ocr.service.impl.VideoServiceImpl$$FastClassBySpringCGLIB$$87498154 Method: invoke Line: -1
Declare: com.neo.caption.ocr.service.impl.VideoServiceImpl$$EnhancerBySpringCGLIB$$d0536c40 Method: videoToCOCR Line: -1
Declare: com.neo.caption.ocr.controller.MainController$7 Method: call Line: 479
Declare: com.neo.caption.ocr.util.AsyncTask Method: call Line: 24
Declare: com.neo.caption.ocr.util.AsyncTask Method: call Line: 13
01-02-2020 10:24:32.152INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.VideoServiceImpl - videoToCOCR in 6 ms
01-02-2020 10:24:32.152 ERROR 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : Pointcut Class: com.neo.caption.ocr.service.impl.VideoServiceImpl
Pointcut Method: videoToCOCR
ExceptionName: org.opencv.core.CvException
ExceptionMsg: cv::Exception: OpenCV(4.1.2) C:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\core\src\arithm.cpp:663: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function 'cv::arithm_op'
ParamNames:
ParamClasses:
Values: ]
Full Stack: Declare: com.neo.caption.ocr.service.impl.OpenCVServiceImpl Method: meanSSIM Line: 345
Declare: com.neo.caption.ocr.service.impl.OpenCVServiceImpl$$FastClassBySpringCGLIB$$c7a12de Method: invoke Line: -1
Declare: com.neo.caption.ocr.service.impl.OpenCVServiceImpl$$EnhancerBySpringCGLIB$$c81f671e Method: meanSSIM Line: -1
Declare: com.neo.caption.ocr.service.impl.VideoServiceImpl Method: videoToCOCR Line: 118
Declare: com.neo.caption.ocr.service.impl.VideoServiceImpl$$FastClassBySpringCGLIB$$87498154 Method: invoke Line: -1
Declare: com.neo.caption.ocr.service.impl.VideoServiceImpl$$EnhancerBySpringCGLIB$$d0536c40 Method: videoToCOCR Line: -1
Declare: com.neo.caption.ocr.controller.MainController$7 Method: call Line: 479
Declare: com.neo.caption.ocr.util.AsyncTask Method: call Line: 24
Declare: com.neo.caption.ocr.util.AsyncTask Method: call Line: 13
01-02-2020 10:24:55.096INFO 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : com.neo.caption.ocr.service.impl.VideoServiceImpl - videoToCOCR in 6 ms
01-02-2020 10:24:55.096 ERROR 13472 --- c.n.c.ocr.aspect.AopExceptionAspect : Pointcut Class: com.neo.caption.ocr.service.impl.VideoServiceImpl
Pointcut Method: videoToCOCR
ExceptionName: org.opencv.core.CvException
ExceptionMsg: cv::Exception: OpenCV(4.1.2) C:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\core\src\arithm.cpp:663: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function 'cv::arithm_op'
ParamNames:
ParamClasses:
Values: ]
Full Stack: Declare: com.neo.caption.ocr.service.impl.OpenCVServiceImpl Method: meanSSIM Line: 345
Declare: com.neo.caption.ocr.service.impl.OpenCVServiceImpl$$FastClassBySpringCGLIB$$c7a12de Method: invoke Line: -1
Declare: com.neo.caption.ocr.service.impl.OpenCVServiceImpl$$EnhancerBySpringCGLIB$$c81f671e Method: meanSSIM Line: -1
Declare: com.neo.caption.ocr.service.impl.VideoServiceImpl Method: videoToCOCR Line: 118
Declare: com.neo.caption.ocr.service.impl.VideoServiceImpl$$FastClassBySpringCGLIB$$87498154 Method: invoke Line: -1
Declare: com.neo.caption.ocr.service.impl.VideoServiceImpl$$EnhancerBySpringCGLIB$$d0536c40 Method: videoToCOCR Line: -1
Declare: com.neo.caption.ocr.controller.MainController$7 Method: call Line: 479
Declare: com.neo.caption.ocr.util.AsyncTask Method: call Line: 24
Declare: com.neo.caption.ocr.util.AsyncTask Method: call Line: 13
NoobNeo
发表于 2020-2-1 10:30:13
annwayili 发表于 2020-1-31 22:41
谢谢!
按照指导,确实绿框出来了.....
截图没了? 没显示出来, 看不到.
0.0.1-1/2-alpha 版本, 在 "模块配置" 中对应 "自适应二值图像" 和 "全局二值图像";
0.0.1-3-alpha 版本, 在 "模块配置" 中对应 "HLS/HSV 色彩";
可以先从预置的四种模块配置入门
annwayili
发表于 2020-2-1 10:38:04
NoobNeo 发表于 2020-2-1 10:30
截图没了? 没显示出来, 看不到.
0.0.1-1/2-alpha 版本, 在 "模块配置" 中对应 "自适应二值图像" 和 "全局 ...
当时程序崩溃了。只有54楼的第一个崩溃后截图
NoobNeo
发表于 2020-2-1 10:50:03
annwayili 发表于 2020-2-1 10:29
严重错误
未知错误
记录下错误并报告我
模块配置错误或不符合造成的问题, SSIM 算法要求比对图像的数组大小, 图像通道数一致, 不然无法进行比对, 滤镜最终得到的图像应该是二值图像, 是黑白单通道的, 如果不是这种图像, 需要调整你的模块配置
annwayili
发表于 2020-2-4 22:55:30
似乎截取画面比较大时,在编辑(删除或合并)时容易失去反应。
我试了一口气标记(删除或合并)许多许多行,然后点“删除/合并”按钮,程序即时无反应;
不得已,只好重来一次。
这次是试标记几行,然后点一次“删除/合并”按钮,程序在许多次之后突然无反应,稍等一下,有一点反应了,但程序窗口显示不正常。好奇中尝试浏览后面的未标记地方,跟着程序就没有反应了。此时点工具栏没反应,随即鼠标变成圆圈......之后一直如此。
为反馈情况,所以在出现异常后,进行屏幕录像。如下图所示
NoobNeo
发表于 2020-2-5 14:03:07
annwayili 发表于 2020-2-4 22:55
似乎截取画面比较大时,在编辑(删除或合并)时容易失去反应。
我试了一口气标记(删除或合并)许多许多行 ...
JavaFX 的 GPU 引擎问题, 当 Java 载入太大太多的图片, GPU 引擎无法及时释放显存空间, 但 GPU-Copy 引擎却还在请求就无响应了. 此问题暂时无解, 只能尽可能避免, 还是那句话 "及时进行合并操作, 不要等积压太多再执行合并".
如果显存还很充足, 在 Caption OCR Tool 快捷方式 - 属性 - 目标中的 "-Dprism.targetvram" 设置更高, 比如 4G/6G, 也能一定程度上避免这个问题.
合并前先保存一次, 万一程序 UI 界面无响应, 用快捷键 (CTRL+S) 保存, 等几分钟后结束进程.
页:
1
2
3
4
5
[6]
7
8
9
10
11
12
13
14