python Programming Glossary: cv2.color_bgr2gray
OpenCV dot target detection not finding all targets, and found circles are offset http://stackoverflow.com/questions/10404062/opencv-dot-target-detection-not-finding-all-targets-and-found-circles-are-offse im cv2.imread 'small_test.jpg' gray cv2.cvtColor im cv2.COLOR_BGR2GRAY #I've tried blur bw tr... all give me poor results. blur cv2.GaussianBlur..
Does anyone have any examples of using OpenCV with python for descriptor extraction? http://stackoverflow.com/questions/10799625/does-anyone-have-any-examples-of-using-opencv-with-python-for-descriptor-extract import cv2 img cv2.imread im1.jpg img2 cv2.cvtColor img cv2.COLOR_BGR2GRAY surf cv2.FeatureDetector_create 'SURF' detector cv2.GridAdaptedFeatureDetector.. and OpenCV 2.4. im2 cv2.imread imgPath im cv2.cvtColor im2 cv2.COLOR_BGR2GRAY surfDetector cv2.FeatureDetector_create SURF surfDescriptorExtractor..
OpenCV 2.4.1 - computing SURF descriptors in Python http://stackoverflow.com/questions/10984313/opencv-2-4-1-computing-surf-descriptors-in-python # Convert them to grayscale imgg cv2.cvtColor img cv2.COLOR_BGR2GRAY # SURF extraction surf cv2.SURF kp descritors surf.detect imgg.. cv2.imread 'template.jpg' templateg cv2.cvtColor template cv2.COLOR_BGR2GRAY keys desc surf.detect templateg None useProvidedKeypoints False..
Compare similarity of images using OpenCV with Python http://stackoverflow.com/questions/13379909/compare-similarity-of-images-using-opencv-with-python # Convert them to grayscale imgg cv2.cvtColor img cv2.COLOR_BGR2GRAY # SURF extraction surf cv2.FeatureDetector_create SURF surfDescriptorExtractor.. cv2.imread modelImage templateg cv2.cvtColor template cv2.COLOR_BGR2GRAY keys surf.detect templateg keys desc surfDescriptorExtractor.compute..
Simple Digit Recognition OCR in OpenCV-Python http://stackoverflow.com/questions/9413216/simple-digit-recognition-ocr-in-opencv-python cv2.imread 'pitrain.png' im3 im.copy gray cv2.cvtColor im cv2.COLOR_BGR2GRAY blur cv2.GaussianBlur gray 5 5 0 thresh cv2.adaptiveThreshold.. out np.zeros im.shape np.uint8 gray cv2.cvtColor im cv2.COLOR_BGR2GRAY thresh cv2.adaptiveThreshold gray 255 1 1 11 2 contours hierarchy..
writing robust (color and size invariant) circle detection with opencv (based on Hough transform or other features) http://stackoverflow.com/questions/9860667/writing-robust-color-and-size-invariant-circle-detection-with-opencv-based-on orig cv2.imread c.jpg img orig.copy img2 cv2.cvtColor img cv2.COLOR_BGR2GRAY detector cv2.FeatureDetector_create 'MSER' fs detector.detect..
|