Package pyvision
[hide private]
[frames] | no frames]

Package pyvision

source code


The top level of this package contains some basic types used throughout 
PyVision.  Subpackages some of the more advanced functionality of the 
PyVision library.  These include:

    * Image Processing    
    * Detection           
    * Machine Learning    
    * Optimization/Search 
    * Face Recognition    
    * Analysis            

Typically, all these types are used in a program.  A good convention is to 
import the pyvision library as "pv" and then prefix all function names with "pv." 
This will avoid possible namespace conflicts. For example::

    import pyvision as pv
    im = pv.Image(filename) 
    im.annotateLabel(pv.Point(10,10),"Hello, World!")
    im.show()


Version: 0.9.0 $Rev: 446 $

License: PyVision License Copyright (c) 2006-2010 David S. Bolme All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither name of copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Warning: Some parts of PyVision may link to libraries using more restrictive licenses and some algorithms in PyVision by be covered under patents. In these cases PyVision should display a warning for commercial use. If you believe this a warning should be added for any algorithm or interface please contact me at bolme@cs.colostate.edu

Submodules [hide private]

Classes [hide private]
  _VersionTest
Check the installed versions of the dependencies
Functions [hide private]
 
disableCommercialUseWarnings()
Most of PyVision is released under the BSD license and can therefore be used free of charge in commercial projects.
source code
 
getTypeName(item)
Return a short name describing the type.
source code
 
inspectObject(item, name='<top>', max_depth=5, verbose=False, print_depth=0, info=None)
Produce a pv.Table describing this object and its members.
source code
 
isImage(filename)
Determines if the filename corresponds to a known image extension.
source code
 
isVideo(filename)
Determines if the filename corresponds to a known image extension.
source code
 
runningInNotebook()
Returns: True if python interpreter is running in an iPython HTML Notebook.
source code
 
searchNames(text, item)
Search dir(object) for patterns matching text
source code
 
test() source code
Variables [hide private]
  IMAGE_EXTENSIONS = ['.JPG', '.JPEG', '.GIF', '.TIF', '.TIFF', ...
  VIDEO_EXTENSIONS = ['.MOV', '.M4V', '.FLV', '.AVI', '.MPEG', '...
  WARN_COMMERCIAL_USE = True
  __info__ = '$Id: __init__.py 446 2012-10-25 03:24:15Z bolme $'
  __package__ = 'pyvision'
Function Details [hide private]

disableCommercialUseWarnings()

source code 

Most of PyVision is released under the BSD license and can therefore be used free of charge in commercial projects. In some limited cases PyVision uses algorithms that are covered by patents or source code released under copy left open source licenses such as GPL which may make software produced using those components unsuitable for commercial distribution.

When a PyVision module contains or links to non-commercial code a warning message will be printed to stdout. If you would like to disable these warning simply call this function before importing the offending module. The users PyVision are responsible for determining if their use of those components respects all applicable licenses and patents.

If you believe this a warning should be added for any algorithm or interface please contact me at bolme@cs.colostate.edu

runningInNotebook()

source code 
Returns:
True if python interpreter is running in an iPython HTML Notebook. (This may not work on all platforms.)

Variables Details [hide private]

IMAGE_EXTENSIONS

Value:
['.JPG',
 '.JPEG',
 '.GIF',
 '.TIF',
 '.TIFF',
 '.PNG',
 '.BMP',
 '.PGM',
...

VIDEO_EXTENSIONS

Value:
['.MOV',
 '.M4V',
 '.FLV',
 '.AVI',
 '.MPEG',
 '.MJPEG',
 '.MP4',
 '.MPG',
...