Saving and loading aruco dictionaries to/from a file in python/java.

asked 2017-03-12 01:50:39 -0500

david476 gravatar image

updated 2017-03-13 00:51:22 -0500

How are you supposed to do that? I can't find a way to save the object directly or initialize a new one from it's separated and saved values (again, in python at least). Ideas?

edit retag flag offensive close merge delete

Comments

what exactly are you trying to do ?

(i might misunderstand you, but afaik, opencv is using predifined dictionaries of markers)

berak gravatar imageberak ( 2017-03-12 09:49:30 -0500 )edit

That's certainly the standard way to do it, but I need a dictionary with a very large number of markers and therefore definitely don't want to generate it (they don't seem to be random so this could have worked) each time. The module FAQ references saving dictionaries multiple times, including that you need to split the Dictionary into its component variables (CTRL+F save):

http://docs.opencv.org/trunk/d1/dcb/tutorial_aruco_faq.html (http://docs.opencv.org/trunk/d1/dcb/t...)

david476 gravatar imagedavid476 ( 2017-03-12 14:17:02 -0500 )edit

I just built opencv 3.2 for Java and there doesn't seem to be a way to initialize one either. The only constructor takes a nativeObj and there aren't any native methods to create one either.

david476 gravatar imagedavid476 ( 2017-03-13 00:53:24 -0500 )edit