NormandErwan / ArucoUnity

Bring augmented reality to Unity by tracking Aruco markers in real time.
https://normanderwan.github.io/ArucoUnity/
BSD 3-Clause "New" or "Revised" License
204 stars 38 forks source link

ArUco with OpenCV in unity to detect small size markers #34

Open Abdullahallwati opened 4 years ago

Abdullahallwati commented 4 years ago

I have a project that requires developing an AR application. Right now, I am trying to setup that AR environment in Unity to detect a marker that is 10mm x 10mm in real-life size. I have tried Vuforia, EasyAR and AR foundation to detect the marker, but it was not possible. However, if I changed the size to be 20 x 20 mm then they will start detecting it easily, but I am required to use 10x10 mm. I was wondering if I can use OpenCV and ArUco with Unity to detect markers of this size.

NormandErwan commented 4 years ago

The best answer would be to try directly. The minimum marker size you can detect with any AR library depend on two parameters: your camera's resolution and the distance between the camera and a marker. Because the marker must have a significant size on the camera's image. Therefore, a higher camera's resolution allows smaller detected marker. Likewise your camera must be close enough from a marker to detect it.

At the moment, AruoUnity is only working on Windows and Linux. Android and iOS are not supported yet.