java.lang.RuntimeException: src\contours.cpp:198: error: (-210) [Start]FindContours supports only CV_8UC1 images when mode != CV_RETR_FLOODFILL otherwise supports CV_32SC1 images only in function cvStartFindContours

GitHub | ZeusChops | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Cannot utilize Find Contours (v.1.5.0-rc1): operation did not perform correctly

    GitHub | 6 months ago | ZeusChops
    java.lang.RuntimeException: src\contours.cpp:198: error: (-210) [Start]FindContours supports only CV_8UC1 images when mode != CV_RETR_FLOODFILL otherwise supports CV_32SC1 images only in function cvStartFindContours

    Root Cause Analysis

    1. java.lang.RuntimeException

      src\contours.cpp:198: error: (-210) [Start]FindContours supports only CV_8UC1 images when mode != CV_RETR_FLOODFILL otherwise supports CV_32SC1 images only in function cvStartFindContours

      at org.bytedeco.javacpp.opencv_imgproc.findContours()
    2. JavaCPP
      opencv_imgproc.findContours
      1. org.bytedeco.javacpp.opencv_imgproc.findContours(Native Method)
      1 frame
    3. edu.wpi.grip
      PipelineRunner$1.runOneIteration
      1. edu.wpi.grip.core.operations.composite.FindContoursOperation.perform(FindContoursOperation.java:95)
      2. edu.wpi.grip.core.Step.runPerformIfPossible(Step.java:119)
      3. edu.wpi.grip.core.PipelineRunner.runPipeline(PipelineRunner.java:198)
      4. edu.wpi.grip.core.PipelineRunner.access$100(PipelineRunner.java:40)
      5. edu.wpi.grip.core.PipelineRunner$1.runOneIteration(PipelineRunner.java:80)
      5 frames
    4. Guava
      Callables$3.run
      1. com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189)
      2. com.google.common.util.concurrent.Callables$3.run(Callables.java:100)
      2 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      7. java.lang.Thread.run(Thread.java:745)
      7 frames