Cov txheej txheem:

Opencv thiab Python Installation rau Windows / Mac: 4 Kauj Ruam
Opencv thiab Python Installation rau Windows / Mac: 4 Kauj Ruam

Video: Opencv thiab Python Installation rau Windows / Mac: 4 Kauj Ruam

Video: Opencv thiab Python Installation rau Windows / Mac: 4 Kauj Ruam
Video: Computer Vision with Python! Resizing Images 2024, Hlis ntuj nqeg
Anonim
Opencv thiab Python Installation rau Windows / Mac
Opencv thiab Python Installation rau Windows / Mac
Opencv thiab Python Installation rau Windows / Mac
Opencv thiab Python Installation rau Windows / Mac

OpenCV yog lub tsev qhib lub khoos phis tawj lub zeem muag pom uas nrov heev rau kev ua cov duab yooj yim ua haujlwm xws li qhov muag plooj, cov duab sib xyaw, txhim kho cov duab nrog rau cov vis dis aus zoo, thresholding thiab lwm yam Ntxiv nrog rau kev ua cov duab, nws muab ntau yam kev kawm ua ntej cov qauv uas tuaj yeem siv ncaj qha los daws cov haujlwm yooj yim ntawm tes. Cov kws tsim tawm yuav tsum rub tawm thiab thauj tus qauv siv OpenCV cov lus qhia txhawm rau txhawm rau ua txoj haujlwm ntawm kev txiav txim siab ntawm lawv tus kheej cov ntaub ntawv.

Ua ntej tshaj, koj yuav tsum teeb tsa OpenCV lub tsev qiv ntawv hauv koj lub kaw lus ua ntej siv nws rau koj tus kheej cov ntaub ntawv. Nyob rau theem no, tuaj yeem muaj ob txoj hauv kev ntawm kev txhim kho OpenCV hauv koj lub cev uas yog - (a) Siv pip (b) Qhov Kev Txhim Kho. pip yog tus tswj hwm pob uas tau siv los teeb tsa cov pob khoom sau hauv sej. Qhov sib txawv ntawm kev txhim kho pob sej los ntawm qhov chaw thiab los ntawm pip tau muab rau hauv lub rooj:

Kauj ruam 1: Rub tawm OpenCV

Nyem rau kab ntawv txuas hauv qab no txhawm rau hloov mus rau nplooj ntawv tso tawm tshiab kawg ntawm OpenCV.

opencv.org/releases/

rau windows:

rau MAC:

Kauj ruam 2: Rub tawm OpenCV-koom nrog

Raws li koj tuaj yeem pom hauv daim duab saum toj no, Nyem rau ntawm qhov chaw khawm kom rub tawm OpenCV - 4.1.0 cov ntaub ntawv khaws cia rau hauv koj lub system. Thaum rub tawm tiav, unzip cov ntaub ntawv ntawm koj qhov chaw koj xav tau. Txog lub hom phiaj piv txwv, Kuv yuav tsim daim nplaub tshev npe hu ua 'opencv' hauv kuv lub Desktop thiab kuv yuav unzip cov ntawv rub tawm hauv tib lub nplaub tshev.

Txhawm rau rub tawm OpenCV_contrib koj yuav tsum qhib lub cuab yeej kab hais kom ua thiab clone lub chaw cia khoom los ntawm kev ua cov lus txib hauv qab no:

rau windows:

ces nyem rau Clone / Download

rau Mac: git clone

Kauj Ruam 3: Kev Nruab Nrab Python

Python tsis tuaj yeem npaj ua ntej nrog Windows /mac, tab sis qhov ntawd tsis tau txhais hais tias Windows /mac cov neeg siv yuav tsis pom cov lus yooj yooj yim programming pab tau. Nws tsis yog qhov yooj yim raws li txhim kho qhov hloov kho tshiab tshaj plaws txawm li cas los xij, yog li cia peb paub tseeb tias koj tau txais cov cuab yeej raug rau txoj haujlwm ntawm tes.

Thawj zaug tso tawm xyoo 1991, Nab hab sej yog hom lus siab-qib programming cov lus siv rau lub hom phiaj dav dav. Ua tsaug rau lub tswv yim tsim qauv uas hais txog kev nyeem tau ntev nws tau nyiam ntawm cov nyiam ua haujlwm coders thiab cov programmer loj ib yam. Tsis tsuas yog nws yog cov lus yooj yim (sib piv hais lus, uas yog) khaws tab sis koj yuav pom ntau txhiab txoj haujlwm hauv online uas xav kom koj muaj Python teeb tsa los siv qhov program.

Koj Xav Tau Qhov Twg?

Hmoov tsis zoo, tau muaj qhov hloov tshiab tseem ceeb rau Python ntau xyoo dhau los uas tsim kev faib loj ntawm Python versions. Qhov no tuaj yeem ua rau qee yam tsis meej pem rau cov neeg tuaj tshiab, tab sis tsis txhob txhawj xeeb. Peb yuav taug kev koj los ntawm kev txhim kho ob qho tib si loj.

Thaum koj mus ntsib Python rau Windows rub tawm nplooj ntawv, koj yuav pom tam sim ntawd faib. Txoj cai nyob rau sab saum toj, xwmfab thiab nruab nrab, lub chaw cia khoom nug yog tias koj xav tau qhov kev tso tawm zaum kawg ntawm Python 2 lossis Python 3 (2.7.13 thiab 3.6.1, raws li ntawm qhov kev qhia no).

rau Mac cov neeg siv:

Kauj ruam 4: Pip Command Installation

Tom qab kev teeb tsa sej

mus rau qhov url no:

Tam sim no qhib davhlau ya nyob twg / hais kom sai: ntaus sej get-pip.py

Pom zoo: