Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running an example from Readme #1

Open
ducha-aiki opened this issue May 28, 2021 · 5 comments
Open

Error while running an example from Readme #1

ducha-aiki opened this issue May 28, 2021 · 5 comments

Comments

@ducha-aiki
Copy link

ducha-aiki commented May 28, 2021

Hi,
I ham running this code

init; % add project paths, add solver aliases etc.
img_path = 'data/img1.jpg'; % specify a path to an image
solvers = [Solver2PC4CA, Solver6CA]; % define the solver(s)
autocalib(img_path, solvers); % run auto-calibration

And get following error:

>>>>>> Image: img1.jpg
Error using cmp_argparse (line 71)
Unknown parameter 'low'.

Error in get_rgns (line 4)
    cfg = cmp_argparse(cfg, varargin{:});

Error in autocalib (line 44)
            [rgns,Gapp] = get_rgns(img, arc_cfg{:},...

My matlab version is 8.5.0.197613 (R2015a)

@ylochman
Copy link
Collaborator

Hi @ducha-aiki,
Thanks for reporting an error! There was a small bug that should be fixed now. Could you please pull and run it again.

@ducha-aiki
Copy link
Author

>>>>>> Image: img1.jpg
Database does not exist. Could not create the database.
Undefined function or variable 'digraph'.

Error in CidCache (line 24)
            this.G = digraph;

Error in get_rgns (line 9)
    cid_cache = CidCache(img.cid,...

Error in autocalib (line 44)
            [rgns,Gapp] = get_rgns(img, arc_cfg{:},...

@ducha-aiki
Copy link
Author

OK, it looks like that the problem is in my matlab version. I tried a newer one and got a different error :(

Invalid MEX-file '/mnt/home/mishkdmy/dev/single-view-autocalib/features/helpers/edgeSubPix/edgeSubPix.mexa64': /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /mnt/home/mishkdmy/dev/single-view-autocalib/features/helpers/edgeSubPix/edgeSubPix.mexa64)

Error in EDGE.extract (line 9)
    contours = edgeSubPix(...

Error in get_arcs (line 32)
        contours = EDGE.extract(img, contours_params);

Error in autocalib (line 47)
            [arcs,circ,Gc] = get_arcs(img,'write_cache',1,...

@dobosevych
Copy link

Сan you specify your Linux version?

@ylochman
Copy link
Collaborator

The problem seems similar to this one. Could you please check if your OS and compiler are the same as there (Ubuntu 14.04, gcc 5.5). If yes, then downgrading gcc to 4.9 might help. You might also try to re-build edgeSubPix with changed CMakeLists.txt according to that solution (or maybe try to just re-build first)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants