Menu

#51 Bug in aruco::CvDrawingUtils::draw3dAxis and aruco::CvDrawingUtils::draw3dCube (aruco-3.1.11)

v1.0 (example)
open
nobody
None
5
2020-02-19
2020-02-18
JCarlos
No

Hi!

I'm having trouble with aruco::CvDrawingUtils::draw3dAxis and aruco::CvDrawingUtils::draw3dCube in aruco-3.1.11. The coordinate axis and the cube are offset from where they should be. However aruco::Marker::draw is good.

Thank you for ArUco.

JC

P.S: I am working in Windows 10 x64 with Visual Studio 2019.

2 Attachments

Related

Bugs: #51

Discussion

  • JCarlos

    JCarlos - 2020-02-19

    Yes, it is. I had calibrated the camera with aruco_calibration.exe several times and generated the .yml file. I got an error around 2 .

    However, to answer you I decided to repeat the whole process, and I got in calibrate an error of 0.6. And, with that new file, it works perfectly!

    Sorry for the inconvenience, and thanks for responding! :-) You can close the 'issue'.

    JC

    PS: I have suspicions about what could have happened... For some reason aruco_calibration.exe doesn't accept my video stream. So I have to generate a video, convert it to .mp4 and use it for calibration. At some point the procedure changed the dimensions of the capture from 1920x1080 to 1680x1050. So the calibration was done incorrectly.

    PS: The error in aruco_calibration.exe (in Debug) is:

    aruco_calibration.exe live:1 salida.yml -size 0.03711

    Opening camera index 1
    [ INFO:0] global P:\Compilados\x32-x64\TRABAJO_MSVC2019_x64\opencv-git\modules\videoio\src\videoio_registry.cpp (187) cv::`anonymous-namespace'::VideoBackendRegistry::VideoBackendRegistry VIDEOIO: Enabled backends(7, sorted by priority): FFMPEG(1000); GSTREAMER(990); INTEL_MFX(980); MSMF(970); DSHOW(960); CV_IMAGES(950); CV_MJPEG(940)
    [ INFO:0] global P:\Compilados\x32-x64\TRABAJO_MSVC2019_x64\opencv-git\modules\videoio\src\backend_plugin.cpp (353) cv::impl::getPluginCandidates Found 2 plugin(s) for GSTREAMER
    [ INFO:0] global P:\Compilados\x32-x64\TRABAJO_MSVC2019_x64\opencv-git\modules\videoio\src\backend_plugin.cpp (172) cv::impl::DynamicLib::libraryLoad load w:\Archivos_de_Programa\MSVC2019\x64\aruco\aruco-3.1.11\builds\bin\Debug\opencv_videoio_gstreamer420_64.dll => FAILED
    [ INFO:0] global P:\Compilados\x32-x64\TRABAJO_MSVC2019_x64\opencv-git\modules\videoio\src\backend_plugin.cpp (172) cv::impl::DynamicLib::libraryLoad load opencv_videoio_gstreamer420_64.dll => FAILED
    [ WARN:0] global P:\Compilados\x32-x64\TRABAJO_MSVC2019_x64\opencv-git\modules\videoio\src\cap_msmf.cpp (686) CvCapture_MSMF::initStream Failed to set mediaType (stream 0, (0x0 @ 1) (HRESULT -2147024809)
    OpenCV(4.2.0-dev) Error: Assertion failed (!_src.empty()) in cv::cvtColor, file P:\Compilados\x32-x64\TRABAJO_MSVC2019_x64\opencv-git\modules\imgproc\src\color.cpp, line 182
    Exception :OpenCV(4.2.0-dev) P:\Compilados\x32-x64\TRABAJO_MSVC2019_x64\opencv-git\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
    
    [ WARN:0] global P:\Compilados\x32-x64\TRABAJO_MSVC2019_x64\opencv-git\modules\videoio\src\cap_msmf.cpp (436) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback
    
    w:\Archivos_de_Programa\MSVC2019\x64\aruco\aruco-3.1.11\builds\bin\Debug>
    
     

    Last edit: JCarlos 2020-02-19

Log in to post a comment.

MongoDB Logo MongoDB