當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。