ToyasDhake / AR_Tag_Detection_Algorithm

AR tag detection algorithm using Python 3 and OpenCV 4.
0 stars 0 forks source link

instead of video for webcam #1

Open OmMY692 opened 3 years ago

OmMY692 commented 3 years ago

how to modify this code for ar tag detection in videos to webcam . i tried this cv2.VideoCapture(0) for webcam. but it couldnt detect the ar tag frm my webcam, it was only able to detect frm videos .

ToyasDhake commented 3 years ago

You also need to adjust cv2.threshold value. The algorithm is not so robust to handle any type of lighting environment. And the type of AR tag is also fixed, the central 4 sections of AR tags are being used for identity. So if you use any different AR tag it will fail to identify it.