Camera Calibration Takes too long

asked 2019-10-16 07:01:42 -0500

igleer gravatar image

Hey,

I am currently working on implementing open Cv/ARuco to Unity3D using C#. I have managed to track the markers in 3d space and get the 3d pos (position/rotation). However i noticed that the objects were skewed and didn't face the proper direction so i decided to calibrate the camera.

I have managed to understand and apply the right methods but when i call calibrate camera the program freezes for 9 minutes for 30 images or so. That's ok on a laptop since it needs to run once however on my Iphone 7 i receive an out of memory exception. I tried multithreading the work but still it didnt help much and as soon as i provide more then 3/4 images the application will run out of memory on an iphone 7.

I was wondering if there is some fix to this like some sort of parameter that reduces the time it takes for the calibrate camera method to finish.

edit retag flag offensive close merge delete

Comments

Unity3D using C#

im afraid, we cannot help you with any of it

berak gravatar imageberak ( 2019-10-16 07:03:46 -0500 )edit

hey, i was wondering if this issue occurs also in the native c++ library and if so is there any parameter in the native function "calibrateCamera" that would speed the process up.

igleer gravatar imageigleer ( 2019-10-16 07:11:44 -0500 )edit

try to do calibration online (meaning with a live video capturing)

msakni22 gravatar imagemsakni22 ( 2019-10-17 10:52:40 -0500 )edit