imgProcessor.utils package

Submodules

imgProcessor.utils.baseClasses module

class imgProcessor.utils.baseClasses.Iteratives(max_iter=10000.0, max_dev=1e-05)[source]

Bases: object

checkConverence(arr)[source]

imgProcessor.utils.calcAspectRatioFromCorners module

imgProcessor.utils.calcAspectRatioFromCorners.calcAspectRatioFromCorners(corners, in_plane=False)[source]

simple and better alg. than below in_plane -> whether object has no tilt, but only rotation and translation

imgProcessor.utils.decompHomography module

imgProcessor.utils.decompHomography.decompHomography(H)[source]

@param H Homography matrix @returns ((translationx, translationy), rotation, (scalex, scaley), shear)

imgProcessor.utils.genericCameraMatrix module

imgProcessor.utils.genericCameraMatrix.genericCameraMatrix(shape, angularField=60)[source]

Return a generic camera matrix [[fx, 0, cx], [ 0, fy, cy], [ 0, 0, 1]] for a given image shape

imgProcessor.utils.imgPointToWorldCoord module

imgProcessor.utils.imgPointToWorldCoord.imgPointToWorldCoord()[source]

@returns 3d object coords

Parameters:
  • (ix,iy) – list of 2d points (x,y) in image
  • zconst – height above image plane (if 0, than on image plane)

http://answers.opencv.org/question/62779/image-coordinate-to-world-coordinate-opencv/ and http://stackoverflow.com/questions/12299870/computing-x-y-coordinate-3d-from-image-point

imgProcessor.utils.sortCorners module

imgProcessor.utils.sortCorners.sortCorners(corners)[source]

sort the corners of a given quadrilateral of the type corners : [ [xi,yi],... ]

to an anti-clockwise order starting with the bottom left corner

or (if plotted as image where y increases to the bottom): clockwise, starting top left

imgProcessor.utils.speed_GPU_vs_CPU module

imgProcessor.utils.webcamTakePhotos module

a simple script to see and save photos in a given folder ... in case you can’t find your webcam app