python-aruco icon indicating copy to clipboard operation
python-aruco copied to clipboard

FractalDetector getConfiguration method

Open a-altug opened this issue 4 years ago • 2 comments

hi again,

          detector = aruco.FractalDetector()
          detector.getConfiguration()

returns

          <Swig Object of type 'FractalMarkerSet *' at 0x7fee5b4d2f90>
          swig/python detected a memory leak of type 'FractalMarkerSet *', no destructor found.

a-altug avatar Jan 02 '21 17:01 a-altug

Hi,

detector.getConfiguration() returns the FractalMarkerSet as expected.

You can load a config with

detector.setConfiguration("FRACTAL_2L_6")
# or
detector.setConfiguration(aruco.FractalMarkerSet.FRACTAL_2L_6)
# or 
detector.setConfiguration(0)
# or
detector.setConfiguration("/path/to/config")

and it will load the config and look for the fractalmarkerset

fehlfarbe avatar Jan 03 '21 01:01 fehlfarbe

Yeah I load custom created .yml file via .setConfiguration . As more specific I try to get marker size from .yml file because when I set manually, vector values go crazy.

a-altug avatar Jan 03 '21 02:01 a-altug