1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 07:13:02 +04:00

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
+1 -1
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
+1 -1
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))
@@ -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
+1 -1
View File
@@ -1,4 +1,4 @@
import cv
import cv2.cv as cv
import unittest
class TestGoodFeaturesToTrack(unittest.TestCase):
+1 -1
View File
@@ -1,4 +1,4 @@
import cv
import cv2.cv as cv
import numpy as np
cv.NamedWindow('Leak')
while 1:
+1 -1
View File
@@ -1,4 +1,4 @@
import cv
import cv2.cv as cv
import numpy as np
import time
+1 -1
View File
@@ -1,4 +1,4 @@
import cv
import cv2.cv as cv
import math
import time
+1 -1
View File
@@ -1,4 +1,4 @@
import cv
import cv2.cv as cv
import math
import time
+1 -1
View File
@@ -1,4 +1,4 @@
import cv
import cv2.cv as cv
def precornerdetect(image):
# assume that the image is floating-point
+1 -1
View File
@@ -12,7 +12,7 @@ import getopt
import operator
import functools
import cv
import cv2.cv as cv
class OpenCVTests(unittest.TestCase):
+1 -1
View File
@@ -1,5 +1,5 @@
import urllib
import cv
import cv2.cv as cv
import Image
import unittest
+1 -1
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/"]: