找回密码
 立即注册
楼主: NoobNeo

Caption OCR Tool 使用指南

0

主题

2

回帖

0

VC币

新手上路

Rank: 1

积分
57
batcat 发表于 2019-11-22 00:22:19 | 显示全部楼层
NoobNeo 发表于 2019-11-21 23:37
错误详情前十行至少要贴出来,你模块调整过了,至少第一个模块的参数也要贴出来
...

QQ图片20191122001901.png 現在是選好字幕,一點就出現這個問題,代碼是
  1. CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.1.0) c:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\imgproc\src\color.simd_helpers.hpp:92: error: (-2:Unspecified error) in function '__cdecl cv::impl::`anonymous-namespace'::CvtHelper<struct cv::impl::`anonymous namespace'::Set<3,4,-1>,struct cv::impl::A0xfc3c825a::Set<1,-1,-1>,struct cv::impl::A0xfc3c825a::Set<0,2,5>,2>::CvtHelper(const class cv::_InputArray &,const class cv::_OutputArray &,int)'
  2. > Invalid number of channels in input image:
  3. >     'VScn::contains(scn)'
  4. > where
  5. >     'scn' is 1
  6. ]
  7.         at org.opencv.imgproc.Imgproc.cvtColor_1(Native Method)
  8.         at org.opencv.imgproc.Imgproc.cvtColor(Imgproc.java:2309)
  9.         at com.neo.caption.ocr.opencv.ImageUtil2.cvtColor(ImageUtil2.java:279)
  10.         at com.neo.caption.ocr.opencv.ImageUtil2.filter(ImageUtil2.java:169)
  11.         at com.neo.caption.ocr.opencv.ImageUtil2.replaceRoiImage(ImageUtil2.java:131)
  12.         at com.neo.caption.ocr.fx.controller.FilterController.readVideo(FilterController.java:281)
  13.         at com.neo.caption.ocr.fx.controller.FilterController.reloadVideo(FilterController.java:267)
  14.         at com.neo.caption.ocr.fx.controller.FilterController.lambda$bindListener$8(FilterController.java:164)
  15.         at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:361)
  16.         at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
  17.         at javafx.beans.property.BooleanPropertyBase.fireValueChangedEvent(BooleanPropertyBase.java:103)
  18.         at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:110)
  19.         at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:144)
  20.         at javafx.scene.control.CheckBox.setSelected(CheckBox.java:156)
  21.         at com.neo.caption.ocr.fx.controller.FilterController.onClick(FilterController.java:259)
  22.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  23.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  24.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  25.         at java.lang.reflect.Method.invoke(Method.java:498)
  26.         at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
  27.         at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
  28.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  29.         at java.lang.reflect.Method.invoke(Method.java:498)
  30.         at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)
  31.         at javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1769)
  32.         at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1657)
  33.         at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
  34.         at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
  35.         at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
  36.         at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
  37.         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
  38.         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
  39.         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
  40.         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
  41.         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
  42.         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
  43.         at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
  44.         at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
  45.         at javafx.event.Event.fireEvent(Event.java:198)
  46.         at javafx.scene.Node.fireEvent(Node.java:8411)
  47.         at javafx.scene.control.Button.fire(Button.java:185)
  48.         at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:182)
  49.         at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:96)
  50.         at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89)
  51.         at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
  52.         at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
  53.         at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
  54.         at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
  55.         at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
  56.         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
  57.         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
  58.         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
  59.         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
  60.         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
  61.         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
  62.         at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
  63.         at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
  64.         at javafx.event.Event.fireEvent(Event.java:198)
  65.         at javafx.scene.Scene$MouseHandler.process(Scene.java:3757)
  66.         at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
  67.         at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
  68.         at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
  69.         at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:394)
  70.         at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295)
  71.         at java.security.AccessController.doPrivileged(Native Method)
  72.         at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:432)
  73.         at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
  74.         at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:431)
  75.         at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
  76.         at com.sun.glass.ui.View.notifyMouse(View.java:937)
  77.         at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
  78.         at com.sun.glass.ui.win.WinApplication.lambda$null$3(WinApplication.java:177)
  79.         at java.lang.Thread.run(Thread.java:748)
复制代码


回复

使用道具 举报

1

主题

15

回帖

0

VC币

星辰大海

Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20

积分
2008649
百江なぎさ 发表于 2019-11-23 15:49:21 | 显示全部楼层
NoobNeo 发表于 2019-11-21 23:40
你的字幕区域有问题

确实,上下弄反了……
调对了之后报了个新的错
  1. CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.1.0) C:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
  2. ]
  3.         at org.opencv.imgproc.Imgproc.cvtColor_1(Native Method)
  4.         at org.opencv.imgproc.Imgproc.cvtColor(Imgproc.java:2309)
  5.         at com.neo.caption.ocr.opencv.ImageUtil2.cvtColor(ImageUtil2.java:279)
  6.         at com.neo.caption.ocr.opencv.ImageUtil2.filter(ImageUtil2.java:169)
  7.         at com.neo.caption.ocr.opencv.ImageUtil2.replaceRoiImage(ImageUtil2.java:131)
  8.         at com.neo.caption.ocr.fx.controller.FilterController.readVideo(FilterController.java:281)
  9.         at com.neo.caption.ocr.fx.controller.FilterController.lambda$bindListener$5(FilterController.java:149)
  10.         at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:361)
  11.         at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
  12.         at javafx.beans.property.DoublePropertyBase.fireValueChangedEvent(DoublePropertyBase.java:106)
  13.         at javafx.beans.property.DoublePropertyBase.markInvalid(DoublePropertyBase.java:113)
  14.         at javafx.beans.property.DoublePropertyBase.set(DoublePropertyBase.java:147)
  15.         at javafx.scene.control.Slider.setValue(Slider.java:213)
  16.         at com.sun.javafx.scene.control.behavior.SliderBehavior.thumbDragged(SliderBehavior.java:159)
  17.         at com.sun.javafx.scene.control.skin.SliderSkin.lambda$initialize$4(SliderSkin.java:141)
  18.         at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
  19.         at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
  20.         at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
  21.         at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
  22.         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
  23.         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
  24.         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
  25.         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
  26.         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
  27.         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
  28.         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
  29.         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
  30.         at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
  31.         at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
  32.         at javafx.event.Event.fireEvent(Event.java:198)
  33.         at javafx.scene.Scene$MouseHandler.process(Scene.java:3757)
  34.         at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
  35.         at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
  36.         at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
  37.         at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:394)
  38.         at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295)
  39.         at java.security.AccessController.doPrivileged(Native Method)
  40.         at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:432)
  41.         at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
  42.         at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:431)
  43.         at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
  44.         at com.sun.glass.ui.View.notifyMouse(View.java:937)
  45.         at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
  46.         at com.sun.glass.ui.win.WinApplication.lambda$null$3(WinApplication.java:177)
  47.         at java.lang.Thread.run(Thread.java:748)
复制代码


回复

使用道具 举报

1

主题

9

回帖

0

VC币

中级会员

Rank: 3Rank: 3

积分
7771
annwayili 发表于 2019-12-4 19:02:31 | 显示全部楼层
未知错误

记录下错误并报告我
+++++++++++++

java.lang.UnsupportedOperationException: Provided data element number (1) should be multiple of the Mat channels count (3)
        at org.opencv.core.Mat.put(Mat.java:1081)
        at com.neo.caption.ocr.opencv.ImageUtil2$MinAreaUtil.ergodic(ImageUtil2.java:526)
        at com.neo.caption.ocr.opencv.ImageUtil2$MinAreaUtil.removeLessArea(ImageUtil2.java:505)
        at com.neo.caption.ocr.opencv.ImageUtil2.filter(ImageUtil2.java:185)
        at com.neo.caption.ocr.opencv.ImageUtil2.replaceRoiImage(ImageUtil2.java:131)
        at com.neo.caption.ocr.fx.controller.FilterController.readVideo(FilterController.java:281)
        at com.neo.caption.ocr.fx.controller.FilterController.reloadVideo(FilterController.java:267)
        at com.neo.caption.ocr.fx.controller.FilterController.lambda$bindListener$12(FilterController.java:176)
        at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:182)
        at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
        at javafx.beans.property.LongPropertyBase.fireValueChangedEvent(LongPropertyBase.java:106)
        at javafx.beans.property.LongPropertyBase.markInvalid(LongPropertyBase.java:113)
        at javafx.beans.property.LongPropertyBase.set(LongPropertyBase.java:147)
        at com.neo.caption.ocr.fx.controller.FilterParamController.onItemsChanged(FilterParamController.java:142)
        at com.neo.caption.ocr.fx.controller.FilterParamController.lambda$bindListener$3(FilterParamController.java:109)
        at com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:329)
        at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
        at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)
        at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
        at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
        at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:205)
        at javafx.collections.ModifiableObservableListBase.add(ModifiableObservableListBase.java:155)
        at com.neo.caption.ocr.fx.controller.FilterParamController.onDownClick(FilterParamController.java:231)
        at com.neo.caption.ocr.fx.controller.FilterParamController.lambda$init$1(FilterParamController.java:91)
        at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
        at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
        at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
        at javafx.event.Event.fireEvent(Event.java:198)
        at javafx.scene.Node.fireEvent(Node.java:8411)
        at javafx.scene.control.Button.fire(Button.java:185)
        at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:182)
        at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:96)
        at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89)
        at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
        at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
        at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
        at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
        at javafx.event.Event.fireEvent(Event.java:198)
        at javafx.scene.Scene$MouseHandler.process(Scene.java:3757)
        at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
        at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
        at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:394)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:432)
        at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:431)
        at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
        at com.sun.glass.ui.View.notifyMouse(View.java:937)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.lambda$null$3(WinApplication.java:177)
        at java.lang.Thread.run(Thread.java:748)
回复

使用道具 举报

13

主题

130

回帖

1103

VC币

星辰大海

Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20

积分
373853
Mekozoko 发表于 2019-12-13 22:30:02 | 显示全部楼层
本帖最后由 Mekozoko 于 2019-12-18 18:17 编辑

跟楼上几位问题差不多,选完区域后一点参数就报错,点开始也报错,下面是字幕区域和点“开始”报错的错误信息。JDK和JRE都是11
  1. CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.1.0) c:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\imgproc\src\color.simd_helpers.hpp:92: error: (-2:Unspecified error) in function '__cdecl cv::impl::`anonymous-namespace'::CvtHelper<struct cv::impl::`anonymous namespace'::Set<3,4,-1>,struct cv::impl::A0xfc3c825a::Set<1,-1,-1>,struct cv::impl::A0xfc3c825a::Set<0,2,5>,2>::CvtHelper(const class cv::_InputArray &,const class cv::_OutputArray &,int)'
  2. > Invalid number of channels in input image:
  3. >     'VScn::contains(scn)'
  4. > where
  5. >     'scn' is 1
  6. ]
  7.         at org.opencv.imgproc.Imgproc.cvtColor_1(Native Method)
  8.         at org.opencv.imgproc.Imgproc.cvtColor(Imgproc.java:2309)
  9.         at com.neo.caption.ocr.opencv.ImageUtil2.cvtColor(ImageUtil2.java:279)
  10.         at com.neo.caption.ocr.opencv.ImageUtil2.filter(ImageUtil2.java:169)
  11.         at com.neo.caption.ocr.opencv.ImageUtil2.replaceRoiImage(ImageUtil2.java:131)
  12.         at com.neo.caption.ocr.fx.controller.FilterController.readVideo(FilterController.java:281)
  13.         at com.neo.caption.ocr.fx.controller.FilterController.lambda$bindListener$5(FilterController.java:149)
  14.         at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:361)
  15.         at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
  16.         at javafx.beans.property.DoublePropertyBase.fireValueChangedEvent(DoublePropertyBase.java:106)
  17.         at javafx.beans.property.DoublePropertyBase.markInvalid(DoublePropertyBase.java:113)
  18.         at javafx.beans.property.DoublePropertyBase.set(DoublePropertyBase.java:147)
  19.         at javafx.scene.control.Slider.setValue(Slider.java:213)
  20.         at javafx.scene.control.Slider.adjustValue(Slider.java:587)
  21.         at com.sun.javafx.scene.control.behavior.SliderBehavior.trackPress(SliderBehavior.java:136)
  22.         at com.sun.javafx.scene.control.skin.SliderSkin.lambda$initialize$0(SliderSkin.java:108)
  23.         at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
  24.         at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
  25.         at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
  26.         at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
  27.         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
  28.         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
  29.         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
  30.         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
  31.         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
  32.         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
  33.         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
  34.         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
  35.         at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
  36.         at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
  37.         at javafx.event.Event.fireEvent(Event.java:198)
  38.         at javafx.scene.Scene$MouseHandler.process(Scene.java:3757)
  39.         at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
  40.         at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
  41.         at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
  42.         at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:394)
  43.         at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295)
  44.         at java.security.AccessController.doPrivileged(Native Method)
  45.         at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:432)
  46.         at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
  47.         at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:431)
  48.         at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
  49.         at com.sun.glass.ui.View.notifyMouse(View.java:937)
  50.         at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
  51.         at com.sun.glass.ui.win.WinApplication.lambda$null$3(WinApplication.java:177)
  52.         at java.lang.Thread.run(Thread.java:748)
复制代码



回复

使用道具 举报

0

主题

1

回帖

0

VC币

新手上路

Rank: 1

积分
94
waka 发表于 2019-12-20 19:45:51 | 显示全部楼层
版本COCR-0.0.1-3-alpha加载视频时显示 未能加载库 是什么原因 刚重装的系统
回复

使用道具 举报

2

主题

29

回帖

0

VC币

新手上路

Rank: 1

积分
453
jelwell 发表于 2020-1-4 16:30:41 | 显示全部楼层
第五部操作的时候怎么批量选中删除,还有,那个界面特别卡,操作下来1个小时都打不住啊。
回复

使用道具 举报

14

主题

80

回帖

1949

VC币

星辰大海

Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20

积分
477288
NoobNeo  楼主| 发表于 2020-1-16 20:15:18 | 显示全部楼层
batcat 发表于 2019-11-22 00:22
現在是選好字幕,一點就出現這個問題,代碼是

图像格式没有转换造成的, 在色彩模型前追加一个色彩深度.近期更新新版本, 到时候再试试

声明: 本人所有手抄字幕都采用 进行许可(特殊标注除外)
已获许可的字幕组: DHR動研字幕組, TUcaptions
以往字幕有问题的, 请与我联系, 论坛不一定有时间上.
最佳途径: Telegram @noobneo
回复

使用道具 举报

14

主题

80

回帖

1949

VC币

星辰大海

Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20

积分
477288
NoobNeo  楼主| 发表于 2020-1-16 20:19:27 | 显示全部楼层
annwayili 发表于 2019-12-4 19:02
未知错误

记录下错误并报告我

调用最小区域模块之前不是灰度图或图像深度错误.
近期更新新版, 到时候换个模块配置试试
声明: 本人所有手抄字幕都采用 进行许可(特殊标注除外)
已获许可的字幕组: DHR動研字幕組, TUcaptions
以往字幕有问题的, 请与我联系, 论坛不一定有时间上.
最佳途径: Telegram @noobneo
回复

使用道具 举报

14

主题

80

回帖

1949

VC币

星辰大海

Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20

积分
477288
NoobNeo  楼主| 发表于 2020-1-16 20:20:53 | 显示全部楼层
本帖最后由 NoobNeo 于 2020-1-16 20:40 编辑
jelwell 发表于 2020-1-4 16:30
第五部操作的时候怎么批量选中删除,还有,那个界面特别卡,操作下来1个小时都打不住啊。 ...

显卡性能不够好的电脑不要一次性加载太多字幕条, 并且及时进行合并&删除, 减小内存和显卡的压力, 近期更新已对其优化
声明: 本人所有手抄字幕都采用 进行许可(特殊标注除外)
已获许可的字幕组: DHR動研字幕組, TUcaptions
以往字幕有问题的, 请与我联系, 论坛不一定有时间上.
最佳途径: Telegram @noobneo
回复

使用道具 举报

14

主题

80

回帖

1949

VC币

星辰大海

Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20

积分
477288
NoobNeo  楼主| 发表于 2020-1-16 20:22:17 | 显示全部楼层
waka 发表于 2019-12-20 19:45
版本COCR-0.0.1-3-alpha加载视频时显示 未能加载库 是什么原因 刚重装的系统

程序目录结构被破坏或者数据不完整造成的, 整个程序目录删了重下就行, 不要修改目录结构
声明: 本人所有手抄字幕都采用 进行许可(特殊标注除外)
已获许可的字幕组: DHR動研字幕組, TUcaptions
以往字幕有问题的, 请与我联系, 论坛不一定有时间上.
最佳途径: Telegram @noobneo
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表