当前位置: 首页>>代码示例>>Python>>正文


Python Image.VERSION属性代码示例

本文整理汇总了Python中PIL.Image.VERSION属性的典型用法代码示例。如果您正苦于以下问题:Python Image.VERSION属性的具体用法?Python Image.VERSION怎么用?Python Image.VERSION使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在PIL.Image的用法示例。


在下文中一共展示了Image.VERSION属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: pillow_version

# 需要导入模块: from PIL import Image [as 别名]
# 或者: from PIL.Image import VERSION [as 别名]
def pillow_version():
    from PIL import Image
    import PIL
    pil_path = PIL.__path__
    if len(PIL.__path__) > 1:
        print('WARNING!!! THERE ARE MULTIPLE PILS! %r ' % PIL.__path__)
    return module_stdinfo_dict(
        Image, versionattr='PILLOW_VERSION', image_version=Image.VERSION, pil_path=pil_path)


#@checkinfo('1.3.1') 
开发者ID:Erotemic,项目名称:ibeis,代码行数:13,代码来源:assert_modules.py

示例2: versions

# 需要导入模块: from PIL import Image [as 别名]
# 或者: from PIL.Image import VERSION [as 别名]
def versions():
    """
    (pyCMS) Fetches versions.
    """

    return (
        VERSION, core.littlecms_version,
        sys.version.split()[0], Image.VERSION
    ) 
开发者ID:tp4a,项目名称:teleport,代码行数:11,代码来源:ImageCms.py

示例3: versions

# 需要导入模块: from PIL import Image [as 别名]
# 或者: from PIL.Image import VERSION [as 别名]
def versions():
    """
    (pyCMS) Fetches versions.
    """

    return (
        VERSION, core.littlecms_version,
        sys.version.split()[0], Image.VERSION
    )

# -------------------------------------------------------------------- 
开发者ID:skylander86,项目名称:lambda-text-extractor,代码行数:13,代码来源:ImageCms.py

示例4: system

# 需要导入模块: from PIL import Image [as 别名]
# 或者: from PIL.Image import VERSION [as 别名]
def system():
    """
    
    **SUMMARY**
    
    Output of this function includes various informations related to system and library.
    
    Main purpose:
    - While submiting a bug, report the output of this function
    - Checking the current version and later upgrading the library based on the output
    
    **RETURNS**
    
    None

    **EXAMPLE**
      
      >>> import SimpleCV
      >>> SimpleCV.system()
      
      
    """
    try :
        import platform
        print "System : ", platform.system()
        print "OS version : ", platform.version()
        print "Python version :", platform.python_version()
        try :
            from cv2 import __version__
            print "Open CV version : " + __version__
        except ImportError :
            print "Open CV2 version : " + "2.1"
        if (PIL_ENABLED) :
            print "PIL version : ", pil.VERSION
        else :
            print "PIL module not installed"
        if (ORANGE_ENABLED) :
            print "Orange Version : " + orange.version
        else :
            print "Orange module not installed"
        try :
            import pygame as pg
            print "PyGame Version : " + pg.__version__
        except ImportError:
            print "PyGame module not installed"
        try :
            import pickle
            print "Pickle Version : " + pickle.__version__
        except :
            print "Pickle module not installed"

    except ImportError :
        print "You need to install Platform to use this function"
        print "to install you can use:"
        print "easy_install platform"
    return 
开发者ID:sightmachine,项目名称:SimpleCV2,代码行数:58,代码来源:base.py


注:本文中的PIL.Image.VERSION属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。