#remark, the code is designed for 6圆 mark, see the code inside ans search for 6圆, if you change the code, you may use other marker formats # step 4: run aruco_tracker.py, use one 6圆 marker will get best result for testing, multiple tracking is possible but not need a fast computer to process #step2 : modify line 7: cap = cv2.VideoCapture(0) #if you are using webcam of a laptop.Ĭut one marker out and put it on a cardboard for easy holding # start of file test3.py usign opecv 4.1.2 pythpon# 2020 jan 31 tested ok- test3 aruco marker tracker. # When everything done, release the capture Gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
# Threshold for an optimal value, it may vary depending on the image. #result is dilated for marking the corners, not important Gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) #or put chessboard.jpg it in the same directory as your test1.py file, and change the code to point to the local dir. #You need to have chessboard.jpg in your c://images/chessboard.jpg, (in ) #-2020 Jan 31 tested ok- test 1 : corner detection. #, imeg can be found at est/py_tutorials/py_gui/py_video_display/py_video_display.html #use aruco 6圆, single aruco marker tracking #-2020 Jan 31 tested ok-test 2: video capture test. using "conda install" or "pip install " inside the anaconda_prompt (run as administrator ) May also need to install tools such as numpy etc. Installation guide: my recommendation is, install anaconda, then install python and opencv under anaconda, and use spyder for editing/running your program, see _version_ # this will print the version of your opencv.Ģ020 Feb 18, Camera calibration using python demo/tutorialĢ020 Jan 31 - using Python 3.6.7 (under Anaconda navigator 1.9.7), spyder 4.0.0, opencv 4.1.2. Successfully installed opencv-python-4.4.0.42Ĭv2. Installing collected packages: opencv-python Requirement already satisfied: numpy>=1.14.5 in c:\users\khwong2\anaconda3\envs\tf-cpu\lib\site-packages (from opencv-python) (1.19.1) In win10-type-here-to-search, type Anaconda-prompt- (right lick to run-as-administrator) you get: conda> pip install opencv-python, you will see the following:ĭownloading opencv_python-4.4.0.42-cp37-cp37m-win_amd64.whl (33.5 MB)
#Conda install opencv 3.6 how to
2020 Sept 5, installation: In anaconda (see of how to install anaconda3 ) ,