Building an Augmented Reality Application with ArUco Marker Detection in OpenCV
Вставка
- Опубліковано 23 жов 2022
- Inside my school and program, I teach you my system to become an AI engineer or freelancer. Life-time access, personal help by me and I will show you exactly how I went from below average student to making $250/hr. Join the High Earner AI Career Program here 👉 www.nicolai-nielsen.com/aicareer (PRICES WILL INCREASE SOON)
You will also get access to all the technical courses inside the program, also the ones I plan to make in the future! Check out the technical courses below 👇
_____________________________________________________________
In this video 📝 we are going to take a look at ArUco Marker Detection with OpenCV in Python. We will go over the code line by line and see how to set up the AruCo detector in OpenCV and draw the visualizations. This can be used for pose estimation in the next video and some cool computer vision and augmented reality projects.
If you enjoyed this video, be sure to press the 👍 button so that I know what content you guys like to see.
_____________________________________________________________
🛠️ Freelance Work: www.nicolai-nielsen.com/nncode
_____________________________________________________________
💻💰🛠️ High Earner AI Career Program: www.nicolai-nielsen.com/aicareer
⚙️ Real-world AI Technical Courses: (www.nicos-school.com)
📗 OpenCV GPU in Python: www.nicos-school.com/p/opencv...
📕 YOLOv7 Object Detection: www.nicos-school.com/p/yolov7...
📒 Transformer & Segmentation: www.nicos-school.com/p/transf...
📙 YOLOv8 Object Tracking: www.nicos-school.com/p/yolov8...
📘 Research Paper Implementation: www.nicos-school.com/p/resear...
📔 CustomGPT: www.nicos-school.com/p/custom...
_____________________________________________________________
📞 Connect with Me:
🌳 linktr.ee/nicolainielsen
🌍 My Website: www.nicolai-nielsen.com/
🤖 GitHub: github.com/niconielsen32
👉 LinkedIn: / nicolaiai
🐦 X/Twitter: / nielsencv_ai
🌆 Instagram: / nicolaihoeirup
_____________________________________________________________
🎮 My Gear (Affiliate links):
💻 Laptop: amzn.to/49LJkTW
🖥️ Desktop PC:
NVIDIA RTX 4090 24GB: amzn.to/3Uc7yAM
Intel I9-14900K: amzn.to/3W4Z5Cb
Motherboard: amzn.to/4aR6wBC
32GB RAM: amzn.to/3Jt2XVR
🖥️ Monitor: amzn.to/4aLP8hh
🖱️ Mouse: amzn.to/3W501GH
⌨️ Keyboard: amzn.to/3xUGz5b
🎙️ Microphone: amzn.to/3w1F1WK
📷 Camera: amzn.to/4b4Ryr9
_____________________________________________________________
Tags:
#ArUco #OpenCV #ComputerVision - Наука та технологія
Join My AI Career Program
www.nicolai-nielsen.com/aicareer
Enroll in My School and Technical Courses
www.nicos-school.com
Damn! if this series would have come 6 months earlier you would have saved me from much headache during my masters thesis implementetation
Sorry to hear that haha. Either way, hope u enjoyed it!
Helped a lot, thanks chief !
need help!
during aruco detection it gives wrong rvec values. the marker has 0,0,0 (roll pitch yaw) whereas the output of the rvec value after detection gives -1.9,-1.9,-0.5.
rvecs, tvecs, _ = aruco.estimatePoseSingleMarkers(corners, marker_size, k, distortion_coefficients)
ros gazebo simulation (distortion coefficients all 0, marker size - 2cm, camera matrix -f_x & 0 & c_x \\
0 & f_y & c_y \\
0 & 0 & 1
Hi! Is it possible to use your code in order to detect ArUco markers in gazebo ROS?
Thanks for the video, but when I try this code on my VS Code, it senses every ArUco which I generated from a website, but it still not see some markers (I guess they are an ArTag, but I don't know that what is the difference between ArUco and ArTag). How can I solve this problem?
In the next video about pose estimation, will you get the exact distances for the position. Do you think it will be accurate enough to localise wheeled robots/cars (having a aruco marker on ceiling and camera on car pointing up - or alternatively a camera on ceiling and aruco on car/s)?
The rotary will definitely be accurate enough but most likely not the 3d position. The 2d image pos will doe
Yes, actually that is very much possible. Ive seen multiple implementations of that. However, to get accurate 3D localizations points of the the cars, you will need many ArUco markers spread out over the the FOL of where you are planning to drive (unless u are going for a sensor fusion model). Then, u will HAVE to know the accurate relative world locations of every ArUco marker corner, to be able to solve the PnP problem with a high degree of accuracy.
Thanks a lot!
Hope u can use it in some cool projects
Every time I run any ArUco code to detect or generate, I always get the same errors.
AttributeError: 'function' object has no attribute 'getPredefinedDictionary'
I have installed all the necessary modules and can't find any solution.
Hey thanks for the video, where did you get the Aruco Chessboard from?
Hello! Can you please tell me which version of open cv you are using in this video?
Hello, I loved this video and it helped me a lot! At line 55, where the code goes out of sight and cuts off, what does it say after "FONT_HERS"?
Thanks again.
Que excelente video, la Api esta desactualizada pero solo es hacer unos pequeños cambios.
Can you maybe do a tutorial for Measurement of Objects based on Aruco-Markers?
Yeah will definitely do that in the future
How to make the detection more accurate. While using a 30FPS camera (Streamed via droidcam from my mobile) the detection so bad if I move it. Only whilst slow movements the marker is being tracked. Mediapipe object detections are way more accurate even in worse FPS. How can I achieve such accuracy on aruco codes??
This is only detection and not tracking. I have a video about tracking as well and a new one will be out next week!
@@NicolaiAI thanks.. waiting for that video...
Is this code on GitHub (so that I can just copy and paste it into my app)?
where can I find the code you showed in the video please
Should be on my GitHub under my computer vision repo
how do you find the type of dictionary to use based on the board?
The dictionary works for all the markers. U will just need to specify which one u have chosen
I have troubles loading aruco library from cv2? I 've imported latest opencv-contrib-python and i'm working on Python 3.11. Do youz ahve any idea where is the problem?
Did u install contrib before standard opencv?
@@NicolaiAI no i've installed only contrib
@@praprotnikm make sure u have no other opencv installations. Are u using a new environment with anaconda or standard python?
@@NicolaiAI i dont have opencv only opencv-contrib-python in environment without anaconda
@@praprotnikm Might be some Old OpenCV dependencies or something. Make 100% sure that opencv python is not installed or try to install standard opencv after the contrib
where can i get the code shown in this video
Hi it’s on my GitHub