embeded cv Python module into cv2.

This commit is contained in:
Vadim Pisarevsky
2011-07-12 12:56:03 +00:00
parent 9b464199d6
commit 569b1ad582
55 changed files with 171 additions and 241 deletions

View File

@@ -1,7 +1,7 @@
# Calculating and displaying 2D Hue-Saturation histogram of a color image
import sys
import cv
import cv2.cv as cv
def hs_histogram(src):
# Convert to HSV

View File

@@ -5,7 +5,7 @@ import random
import numpy
import transformations
import cv
import cv2.cv as cv
def clamp(a, x, b):
return numpy.maximum(a, numpy.minimum(x, b))

View File

@@ -1,5 +1,5 @@
import sys
import cv
import cv2.cv as cv
def findstereocorrespondence(image_left, image_right):
# image_left and image_right are the input 8-bit single-channel images

View File

@@ -1,4 +1,4 @@
import cv
import cv2.cv as cv
import unittest
class TestGoodFeaturesToTrack(unittest.TestCase):

View File

@@ -1,4 +1,4 @@
import cv
import cv2.cv as cv
import numpy as np
cv.NamedWindow('Leak')
while 1:

View File

@@ -1,4 +1,4 @@
import cv
import cv2.cv as cv
import numpy as np
import time

View File

@@ -1,4 +1,4 @@
import cv
import cv2.cv as cv
import math
import time

View File

@@ -1,4 +1,4 @@
import cv
import cv2.cv as cv
import math
import time

View File

@@ -1,4 +1,4 @@
import cv
import cv2.cv as cv
def precornerdetect(image):
# assume that the image is floating-point

View File

@@ -12,7 +12,7 @@ import getopt
import operator
import functools
import cv
import cv2.cv as cv
class OpenCVTests(unittest.TestCase):

View File

@@ -1,5 +1,5 @@
import urllib
import cv
import cv2.cv as cv
import Image
import unittest

View File

@@ -6,7 +6,7 @@ import sys
import array
import os
import cv
import cv2.cv as cv
def find_sample(s):
for d in ["../samples/c/", "../doc/pics/"]: