-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fractal marker example #42
Comments
It displays the error "FileNotFoundError: [Errno 2] No such file or directory: './py3/aruco.py'" after running ./swigbuild.sh python3 command. |
Hi @milind1097 you have two options:
|
This comment has been minimized.
This comment has been minimized.
Hello @fehlfarbe , After installing aruco 3.1.12, I tried to create the python wrapper. I am getting a fatal error. The entire output is as follows. milind@milind: Can you please suggest me whats wrong? Thanks. :) |
Hi, can you please pull and build again? |
Hello @fehlfarbe , I tried building it again. The following is what I faced. milind@Milind:~/python-aruco-aruco-3.1.12/build$ make |
Hmm CMake should find and add numpy include directories or abort at the Can you post the results of If there is an error, install numpy via pip |
Hello, This is what I got after running the above command. milind@Milind: After upgrading also, I am getting the same version number of numpy. |
Should I build it again? Have you made any changes after that in CMake file? Thanks. :) |
I found more errors in the CMake files (it was looking for Python2 numpy), so please pull and try again :) |
Hello, It worked. Thanks. :) I have 2 questions if you could help me out with it.
Following is what I was trying to do: import cv2, PIL Output: milind@Milind: |
Great! 😄
But in general I would only use one of the libraries. |
Okay thank you. :) I will try this again but initially when I tried, it was only taking library from aruco and not from cv2.aruco. Can you guide me if it is possible to obtain the distance between the marker and the camera using the translation and rotation vector? Thank you once again. :D |
If you want the distance between camera and center of the marker you just need the magnitude of tvec:
Assuming your intrinsics are well calibrated and converted to meters, the result is also in meters. |
Hello,
I was trying to understand and execute the fractal.py code. However, I got an error stating No module named 'aruco'. Also, I would like to ask that the function 'aruco.FractalDetector()' in fractal.py is included in aruco package? Can you please help me out with the steps that I need to take in order to install aruco?
Thank you in advance. :)
The text was updated successfully, but these errors were encountered: