ÉèΪÊ×Ò³ - ¼ÓÈëÊÕ²Ø ASPÕ¾³¤Íø£¨Aspzz.Cn£©- ¿Æ¼¼¡¢½¨Õ¾¡¢¾­Ñé¡¢ÔƼÆËã¡¢5G¡¢´óÊý¾Ý,Õ¾³¤Íø£¡
ÈÈËÑ£º ÖØРÊÔ¾í Îļþ
µ±Ç°Î»Ö㺠Ê×Ò³ > ÔËÓªÖÐÐÄ > ½¨Õ¾×ÊÔ´ > ÓÅ»¯ > ÕýÎÄ

ÍÂѪÕûÀí£¡¾ø²»ÄÜ´í¹ýµÄ24¸öPython¿â(5)

·¢²¼Ê±¼ä£º2019-08-01 16:42 ËùÊôÀ¸Ä¿£º21 À´Ô´£º¶ÁоÊõ
µ¼¶Á£ºpyAudioAnalysisÊÇÒ»¸öÓÃÓÚÒôƵÌØÕ÷ÌáÈ ¢·ÖÀàºÍ·Ö¶ÎµÄPython¿â£¬º­¸Ç¹ã·ºµÄÒôƵ·ÖÎöÈÎÎñ£¬ÀýÈ磺 ¶Ôδ֪ÉùÒô½øÐзÖÀà ¼ì²âÒôƵ¹ÊÕϲ¢Åųý³¤Ê±¼ä¼ÒôÖеľ²Òôʱ¶Î ½øÐмලºÍ·Ç¼à¶½µÄ·Ö¸î ÌáÈ¡ÒôƵËõÂÔͼµÈµÈ ¿ÉÒÔʹ

pyAudioAnalysisÊÇÒ»¸öÓÃÓÚÒôƵÌØÕ÷ÌáÈ¡¡¢·ÖÀàºÍ·Ö¶ÎµÄPython¿â£¬º­¸Ç¹ã·ºµÄÒôƵ·ÖÎöÈÎÎñ£¬ÀýÈ磺

  • ¶Ôδ֪ÉùÒô½øÐзÖÀà
  • ¼ì²âÒôƵ¹ÊÕϲ¢Åųý³¤Ê±¼ä¼ÒôÖеľ²Òôʱ¶Î
  • ½øÐмලºÍ·Ç¼à¶½µÄ·Ö¸î
  • ÌáÈ¡ÒôƵËõÂÔͼµÈµÈ

¿ÉÒÔʹÓÃÒÔÏ´úÂë½øÐа²×°£º

  1. pip install pyAudioAnalysis 

ÍÂѪÕûÀí£¡¾ø²»ÄÜ´í¹ýµÄ24¸öPython¿â

ÓÃÓÚͼÏñ´¦ÀíµÄPython¿â

Èç¹ûÏëÒªÔÚÊý¾Ý¿ÆѧÐÐÒµÓÐÒ»·¬³É¾Í£¬ÄÇô±ØÐëѧϰÈçºÎʹÓÃͼÏñÊý¾Ý¡£Ëæ×ÅϵͳÄܹ»ÊÕ¼¯Ô½À´Ô½¶àµÄÊý¾Ý(Ö÷ÒªµÃÒæÓÚ¼ÆËã×ÊÔ´µÄ½ø²½)£¬Í¼Ïñ´¦ÀíÔ½À´Ô½ÎÞ´¦²»ÔÚ¡£

Òò´Ë£¬ÇëÈ·±£ÊìϤÒÔÏÂÈý¸öPython¿âÖеÄÖÁÉÙÒ»¸ö¡£

19. OpenCV-Python

´«ËÍÃÅ£º

https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_setup/py_intro/py_intro.html

̸µ½Í¼Ïñ´¦Àí£¬OpenCVÊ×Ïȸ¡ÏÖÔÚÄÔº£ÖС£OpenCV-PythonÊÇÓÃÓÚͼÏñ´¦ÀíµÄPython API£¬½áºÏÁËOpenCV C ++ APIºÍPythonÓïÑÔµÄ×î¼ÑÌØÐÔ¡£Ö÷ÒªÓÃÓÚ½â¾ö¼ÆËã»úÊÓ¾õÎÊÌâ¡£

OpenCV-PythonʹÓÃÁËÉÏÎÄÌáµ½µÄNumPy¡£ËùÓÐOpenCVÕóÁнṹ¶¼ÓëNumPyÊý×éÏ໥ת»»¡£ÕâҲʹµÃÓëʹÓÃNumpyµÄÆäËû¿â(ÈçSciPyºÍMatplotlib)¼¯³É±äµÃ¸ü¼ÓÈÝÒס£

ÍÂѪÕûÀí£¡¾ø²»ÄÜ´í¹ýµÄ24¸öPython¿â

ÔÚϵͳÖа²×°OpenCV-Python£º

  1. pip3 install opencv-python 

ÒÔÏÂÊÇÁ½¸ö¹ØÓÚÈçºÎÔÚPythonÖÐʹÓÃOpenCVµÄÁ÷Ðн̳̣º

  • ¡¶»ùÓÚÉî¶ÈѧϰµÄÊÓƵÈËÁ³¼ì²âÄ£Ðͽ¨Á¢(PythonʵÏÖ)¡·´«ËÍÃÅ£ºhttps://www.analyticsvidhya.com/blog/2018/12/introduction-face-detection-video-deep-learning-python/
  • ¡¶16¸öOpenCVº¯ÊýÆô¶¯¼ÆËã»úÊÓ¾õÖ®ÂÃ(ʹÓÃPython´úÂë)¡·´«ËÍÃÅ£ºhttps://www.analyticsvidhya.com/blog/2019/03/opencv-functions-computer-vision-python/

20. Scikit-image

´«ËÍÃÅ£ºhttps://scikit-image.org/

Scikit-imageÊÇÁíÒ»¸öÓÃÓÚͼÏñ´¦ÀíµÄpython¿â£¬ÊÇÓÃÓÚÖ´Ðжà¸ö²»Í¬Í¼Ïñ´¦ÀíÈÎÎñµÄËã·¨¼¯ºÏ¡£¿ÉÓÃÓÚͼÏñ·Ö¸î¡¢¼¸ºÎ±ä»»¡¢É«²Ê¿Õ¼ä²Ù×÷¡¢·ÖÎö¡¢¹ýÂË£¬ÐÎ̬ѧ¡¢ÌØÕ÷¼ì²âµÈµÈ¡£

ÔÚ°²×°scikit-imageÇ°£¬ÇëÏÈ°²×°ÒÔÏÂÈí¼þ°ü£º

  • Python(> = 3.5)
  • NumPy(> = 1.11.0)
  • SciPy(> = 0.17.0)
  • joblib(> = 0.11)

Õâ¾ÍÊÇÔÚ»úÆ÷ÉÏ°²×°scikit-imageµÄ·½·¨£º

  1. pip install -U scikit-learn 

ÍÂѪÕûÀí£¡¾ø²»ÄÜ´í¹ýµÄ24¸öPython¿â

21. Pillow

´«ËÍÃÅ£ºhttps://pillow.readthedocs.io/en/stable/

PillowÊÇPIL(Python Imaging Library)µÄа汾¡£ËüÊÇ´ÓPILÅÉÉú³öÀ´µÄ£¬ÔÚһЩLinux·¢Ðаæ(ÈçUbuntu)Öб»ÓÃ×÷ԭʼPILµÄÌæ´ú¡£

PillowÌṩÁ˼¸ÖÖÖ´ÐÐͼÏñ´¦ÀíµÄ±ê×¼³ÌÐò£º

  • ÖðÏñËزÙ×÷
  • ÑÚÄ£ºÍ͸Ã÷´¦Àí
  • ͼÏñ¹ýÂË£¬ÀýÈçÄ£ºý£¬ÂÖÀª£¬Æ½»¬»ò±ßÔµ¼à²â
  • ͼÏñÔöÇ¿£¬ÀýÈçÈñ»¯£¬µ÷ÕûÁÁ¶È¡¢¶Ô±È¶È»òÑÕÉ«
  • ÔÚͼÏñÉÏÌí¼ÓÎÄ×ֵȵÈ

°²×°Pillow£º

  1. pip install Pillow 

ÍÂѪÕûÀí£¡¾ø²»ÄÜ´í¹ýµÄ24¸öPython¿â

²é¿´ÒÔϹØÓÚÔÚ¼ÆËã»úÊÓ¾õÖÐʹÓÃPillowµÄAIÂþ»­£º

¡¶AIÂþ»­£ºZ.A.I.N —— µÚ¶þÆÚ£ºÊ¹ÓüÆËã»úÊÓ¾õ½øÐÐÃ沿ʶ±ð¡·´«ËÍÃÅ£º

https://www.analyticsvidhya.com/blog/2019/06/ai-comic-zain-issue-2-facial-recognition-computer-vision/

ÓÃÓÚÊý¾Ý¿âµÄPython¿â

ѧϰÈçºÎ´ÓÊý¾Ý¿â´æ´¢¡¢·ÃÎʺͼìË÷Êý¾ÝÊÇÊý¾Ý¿Æѧ¼Ò±Ø±¸µÄ¼¼ÄÜ¡£µ«ÊÇÈçºÎÔÚ²»Ê×ÏȼìË÷Êý¾ÝµÄÇé¿öÏÂ×öµ½½¨Ä£ÄØ?

½ÓÏÂÀ´½éÉÜÁ½¸öÓëSQLÏà¹ØµÄPython¿â¡£

22. psycopg

´«ËÍÃÅ£ºhttp://initd.org/psycopg/

ÍÂѪÕûÀí£¡¾ø²»ÄÜ´í¹ýµÄ24¸öPython¿â

PsycopgÊÇPython±à³ÌÓïÑÔÖÐ×îÁ÷ÐеÄPostgreSQL(¸ß¼¶¿ªÔ´´úÂë¹ØϵÊý¾Ý¿â)ÊÊÅäÆ÷¡£PsycopgµÄºËÐÄÊÇÍêȫʵÏÖPython DB API 2.0¹æ·¶¡£

Ä¿Ç°µÄpsycopg2ʵÏÖÖ§³Ö£º

  • Python°æ±¾2.7
  • Python 3°æ±¾(3.4µ½3.7)
  • PostgreSQL·þÎñÆ÷°æ±¾(7.4µ½11)
  • PostgreSQL¿Í»§¶Ë¿â°æ±¾(9.1ÒÔÉÏ)

ÒÔÏÂÊÇ°²×°psycopg2µÄ·½·¨£º

  1. pip install psycopg2 

23. SQLAlchemy

´«ËÍÃÅ£ºhttps://www.sqlalchemy.org/

SQLÊÇ×îÁ÷ÐеÄÊý¾Ý¿âÓïÑÔ¡£SQLAlchemyÊÇpythonSQL¹¤¾ß°üºÍ¶ÔÏó¹ØϵӳÉäÆ÷£¬ËüΪӦÓóÌÐò¿ª·¢ÈËÔ±ÌṩÁËSQLµÄÈ«²¿¹¦ÄÜ£¬ÇÒ¼«¾ßÁé»îÐÔ¡£

ÍÂѪÕûÀí£¡¾ø²»ÄÜ´í¹ýµÄ24¸öPython¿â

SQLÖ¼ÔÚʵÏÖ¸ßЧ¡¢¸ßÐÔÄܵÄÊý¾Ý¿â·ÃÎÊ¡£SQLAlchemy½«Êý¾Ý¿âÊÓΪ¹Øϵ´úÊýÒýÇ棬¶ø²»½ö½öÊDZíµÄ¼¯ºÏ¡£

Òª°²×°SQLAlchemy£¬¿ÉÒÔʹÓÃÒÔÏ´úÂëÐУº

  1. pip install SQLAlchemy 

ÓÃÓÚ²¿ÊðµÄPython¿â

ÄãÖªµÀÄÄЩģÐͲ¿Êð?²¿ÊðÄ£ÐÍÒâζ׎«×îÖÕÄ£ÐÍ·ÅÈë×îÖÕÓ¦ÓóÌÐò(¼¼ÊõÉϳÆΪÉú²ú»·¾³)¡£

24. Flask

´«ËÍÃÅ£ºhttp://flask.pocoo.org/docs/1.0/

£¨±à¼­£ºASPÕ¾³¤Íø£©

ÍøÓÑÆÀÂÛ
ÍƼöÎÄÕÂ
    ÈȵãÔĶÁ