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
  • Наука та технологія

КОМЕНТАРІ • 41

  • @NicolaiAI
    @NicolaiAI  Рік тому +2

    Join My AI Career Program
    www.nicolai-nielsen.com/aicareer
    Enroll in My School and Technical Courses
    www.nicos-school.com

  • @thomasrannestad8282
    @thomasrannestad8282 Рік тому +4

    Damn! if this series would have come 6 months earlier you would have saved me from much headache during my masters thesis implementetation

    • @NicolaiAI
      @NicolaiAI  Рік тому +3

      Sorry to hear that haha. Either way, hope u enjoyed it!

  • @marcingendek6103
    @marcingendek6103 Рік тому +1

    Helped a lot, thanks chief !

  • @soumildev3836
    @soumildev3836 3 дні тому

    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

  • @FrancescoDipalma
    @FrancescoDipalma Рік тому +1

    Hi! Is it possible to use your code in order to detect ArUco markers in gazebo ROS?

  • @VisionCLA
    @VisionCLA Рік тому

    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?

  • @dHnd2j1u
    @dHnd2j1u Рік тому +1

    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)?

    • @NicolaiAI
      @NicolaiAI  Рік тому

      The rotary will definitely be accurate enough but most likely not the 3d position. The 2d image pos will doe

    • @thomasrannestad8282
      @thomasrannestad8282 Рік тому +1

      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.

  • @omerfarukpaker7551
    @omerfarukpaker7551 Рік тому +1

    Thanks a lot!

    • @NicolaiAI
      @NicolaiAI  Рік тому +1

      Hope u can use it in some cool projects

  • @MakinSomeGains
    @MakinSomeGains Рік тому

    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.

  • @kawehder3
    @kawehder3 Рік тому

    Hey thanks for the video, where did you get the Aruco Chessboard from?

  • @yourhands3424
    @yourhands3424 6 місяців тому

    Hello! Can you please tell me which version of open cv you are using in this video?

  • @fried_noodless
    @fried_noodless Рік тому

    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.

  • @crispat7225
    @crispat7225 9 місяців тому

    Que excelente video, la Api esta desactualizada pero solo es hacer unos pequeños cambios.

  • @QuarktaschemitSenf
    @QuarktaschemitSenf Рік тому +1

    Can you maybe do a tutorial for Measurement of Objects based on Aruco-Markers?

    • @NicolaiAI
      @NicolaiAI  Рік тому

      Yeah will definitely do that in the future

  • @anupamkrishna7811
    @anupamkrishna7811 Рік тому +1

    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??

    • @NicolaiAI
      @NicolaiAI  Рік тому

      This is only detection and not tracking. I have a video about tracking as well and a new one will be out next week!

    • @anupamkrishna7811
      @anupamkrishna7811 Рік тому

      @@NicolaiAI thanks.. waiting for that video...

  • @SkinovusCoded
    @SkinovusCoded 11 місяців тому

    Is this code on GitHub (so that I can just copy and paste it into my app)?

  • @tristanhauguel348
    @tristanhauguel348 4 місяці тому +1

    where can I find the code you showed in the video please

    • @NicolaiAI
      @NicolaiAI  4 місяці тому

      Should be on my GitHub under my computer vision repo

  • @vishnuvardhan8827
    @vishnuvardhan8827 Рік тому +1

    how do you find the type of dictionary to use based on the board?

    • @NicolaiAI
      @NicolaiAI  Рік тому

      The dictionary works for all the markers. U will just need to specify which one u have chosen

  • @praprotnikm
    @praprotnikm Рік тому +1

    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?

    • @NicolaiAI
      @NicolaiAI  Рік тому

      Did u install contrib before standard opencv?

    • @praprotnikm
      @praprotnikm Рік тому

      @@NicolaiAI no i've installed only contrib

    • @NicolaiAI
      @NicolaiAI  Рік тому

      @@praprotnikm make sure u have no other opencv installations. Are u using a new environment with anaconda or standard python?

    • @praprotnikm
      @praprotnikm Рік тому +1

      @@NicolaiAI i dont have opencv only opencv-contrib-python in environment without anaconda

    • @NicolaiAI
      @NicolaiAI  Рік тому

      @@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

  • @AnkanDronzerMondal
    @AnkanDronzerMondal Рік тому +1

    where can i get the code shown in this video