Difference between revisions of "OpenCV"

From BITPlan Wiki
Jump to navigation Jump to search
Line 19: Line 19:
 
* http://www.fourcc.org/codecs.php
 
* http://www.fourcc.org/codecs.php
 
* https://stackoverflow.com/questions/24195926/opencv-write-webcam-output-to-avi-file
 
* https://stackoverflow.com/questions/24195926/opencv-write-webcam-output-to-avi-file
== SIGILL on MacOS 10.13.6 with macports opencv ==
+
== SIGILL when calling findChessBoardCorners on MacOS 10.13.6 with macports opencv ==
 +
=== crash ===
 
<pre>
 
<pre>
 
reading: ./target/test-classes/cameramatrix/GOPR0032.jpg
 
reading: ./target/test-classes/cameramatrix/GOPR0032.jpg
Line 37: Line 38:
 
# /Users/wf/Documents/workspace/dukes/rc-camera-matrix/hs_err_pid35515.log
 
# /Users/wf/Documents/workspace/dukes/rc-camera-matrix/hs_err_pid35515.log
 
#
 
#
# If you would like to submit a bug report, please visit:
 
#  http://bugreport.java.com/bugreport/crash.jsp
 
# The crash happened outside the Java Virtual Machine in native code.
 
# See problematic frame for where to report the bug.
 
#
 
 
</pre>
 
</pre>
 +
=== log ===
 +
<pre>
 +
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
 +
C  [libopencv_imgproc.3.4.dylib+0x2088c6]  cv::Ptr<cv::FilterEngine> cv::makePtr<cv::FilterEngine, cv::Ptr<cv::BaseFilter>, cv::Ptr<cv::BaseRowFilter>, cv::Ptr<cv::BaseColumnFilter>, int, int, int, int>(cv::Ptr<cv::BaseFilter> const&, cv::Ptr<cv::BaseRowFilter> const&, cv::Ptr<cv::BaseColumnFilter> const&, int const&, int const&, int const&, int const&)+0x4e
 +
C  [libopencv_imgproc.3.4.dylib+0x1b07c]  cv::cpu_baseline::createBoxFilter(int, int, cv::Size_<int>, cv::Point_<int>, bool, int)+0x151
 +
C  [libopencv_imgproc.3.4.dylib+0x1b6e3]  cv::createBoxFilter(int, int, cv::Size_<int>, cv::Point_<int>, bool, int)+0xb0
 +
C  [libopencv_imgproc.3.4.dylib+0x1b9b5]  cv::boxFilter(cv::_InputArray const&, cv::_OutputArray const&, int, cv::Size_<int>, cv::Point_<int>, bool, int)+0x287
 +
C  [libopencv_imgproc.3.4.dylib+0x1e09bc]  cv::adaptiveThreshold(cv::_InputArray const&, cv::_OutputArray const&, double, int, int, int, double)+0x470
 +
C  [libopencv_calib3d.3.4.dylib+0x7ad6]  cv::findChessboardCorners(cv::_InputArray const&, cv::Size_<int>, cv::_OutputArray const&, int)+0x1626
 +
C  [libopencv_java343.dylib+0x7de02]  Java_org_opencv_calib3d_Calib3d_findChessboardCorners_11+0x6a
 +
j  org.opencv.calib3d.Calib3d.findChessboardCorners_1(JDDJ)Z+0
 +
j  org.opencv.calib3d.Calib3d.findChessboardCorners(Lorg/opencv/core/Mat;Lorg/opencv/core/Size;Lorg/opencv/core/MatOfPoint2f;)Z+18
 +
j  nl.vaneijndhoven.dukes.camera.matrix.CameraMatrix.findCorners(Lorg/opencv/core/Mat;IILorg/opencv/core/MatOfPoint2f;)Z+14
 +
</pre>
 +
=== diagnosis ===
 +
* https://stackoverflow.com/questions/57352670/how-to-fix-handle-opencv-crash-in-calib3d-findchessboardcorners-method-android
  
 
= What Links Here =
 
= What Links Here =
 
{{WhatLinksHere}}
 
{{WhatLinksHere}}

Revision as of 09:18, 9 January 2020

Click here to comment see Self Driving RC Car

OpenCV is a computer vision library written in C++. Binding for Java, Python and other environments are available.

Links

Issues

OpenCV Version

OpenCV VideoWriter

OpenCV: FFMPEG: tag 0x67706a6d/'mjpg' is not supported with codec id 7 and format 'mpeg / MPEG-1 Systems / MPEG program stream'

SIGILL when calling findChessBoardCorners on MacOS 10.13.6 with macports opencv

crash

reading: ./target/test-classes/cameramatrix/GOPR0032.jpg
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x0000000141f4e8c6, pid=35515, tid=0x0000000000002503
#
# JRE version: Java(TM) SE Runtime Environment (8.0_191-b12) (build 1.8.0_191-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.191-b12 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [libopencv_imgproc.3.4.dylib+0x2088c6]  cv::Ptr<cv::FilterEngine> cv::makePtr<cv::FilterEngine, cv::Ptr<cv::BaseFilter>, cv::Ptr<cv::BaseRowFilter>, cv::Ptr<cv::BaseColumnFilter>, int, int, int, int>(cv::Ptr<cv::BaseFilter> const&, cv::Ptr<cv::BaseRowFilter> const&, cv::Ptr<cv::BaseColumnFilter> const&, int const&, int const&, int const&, int const&)+0x4e
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/wf/Documents/workspace/dukes/rc-camera-matrix/hs_err_pid35515.log
#

log

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libopencv_imgproc.3.4.dylib+0x2088c6]  cv::Ptr<cv::FilterEngine> cv::makePtr<cv::FilterEngine, cv::Ptr<cv::BaseFilter>, cv::Ptr<cv::BaseRowFilter>, cv::Ptr<cv::BaseColumnFilter>, int, int, int, int>(cv::Ptr<cv::BaseFilter> const&, cv::Ptr<cv::BaseRowFilter> const&, cv::Ptr<cv::BaseColumnFilter> const&, int const&, int const&, int const&, int const&)+0x4e
C  [libopencv_imgproc.3.4.dylib+0x1b07c]  cv::cpu_baseline::createBoxFilter(int, int, cv::Size_<int>, cv::Point_<int>, bool, int)+0x151
C  [libopencv_imgproc.3.4.dylib+0x1b6e3]  cv::createBoxFilter(int, int, cv::Size_<int>, cv::Point_<int>, bool, int)+0xb0
C  [libopencv_imgproc.3.4.dylib+0x1b9b5]  cv::boxFilter(cv::_InputArray const&, cv::_OutputArray const&, int, cv::Size_<int>, cv::Point_<int>, bool, int)+0x287
C  [libopencv_imgproc.3.4.dylib+0x1e09bc]  cv::adaptiveThreshold(cv::_InputArray const&, cv::_OutputArray const&, double, int, int, int, double)+0x470
C  [libopencv_calib3d.3.4.dylib+0x7ad6]  cv::findChessboardCorners(cv::_InputArray const&, cv::Size_<int>, cv::_OutputArray const&, int)+0x1626
C  [libopencv_java343.dylib+0x7de02]  Java_org_opencv_calib3d_Calib3d_findChessboardCorners_11+0x6a
j  org.opencv.calib3d.Calib3d.findChessboardCorners_1(JDDJ)Z+0
j  org.opencv.calib3d.Calib3d.findChessboardCorners(Lorg/opencv/core/Mat;Lorg/opencv/core/Size;Lorg/opencv/core/MatOfPoint2f;)Z+18
j  nl.vaneijndhoven.dukes.camera.matrix.CameraMatrix.findCorners(Lorg/opencv/core/Mat;IILorg/opencv/core/MatOfPoint2f;)Z+14

diagnosis

What Links Here