Cov txheej txheem:
- Kauj Ruam 1: Yuav tsum muaj cov software
- Kauj ruam 2: Rub tawm cov Duab
- Kauj Ruam 3: Tsim Cov Qauv Zoo hauv OpenCV
- Kauj Ruam 4: Tsim Cov Ntaub Ntawv Vector Zoo
- Kauj Ruam 5: Qhia tus Classifier
- Kauj Ruam 6: Kuaj Cov Classifier
- Kauj Ruam 7: Ua Tsaug Tshwj Xeeb
Video: Tsim OpenCV Image Classifiers Siv Python: 7 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Haar classifiers hauv nab hab sej thiab opencv yog qhov nyuaj tab sis txoj haujlwm yooj yim.
Peb feem ntau ntsib cov teeb meem hauv kev nrhiav duab thiab kev faib tawm. qhov zoo tshaj plaws solutio yog los tsim koj tus kheej cais. Nov peb kawm paub tsim peb tus kheej cov duab cais nrog ob peb lus txib thiab ntev tab sis yooj yim cov kev pab cuam nab nab
Kev faib tawm yuav tsum muaj ntau tus lej ntawm cov duab tsis zoo thiab qhov tsis zoo tsis muaj cov khoom xav tau thaum qhov zoo yog qhov uas muaj cov khoom uas yuav raug kuaj pom.
Txog 2000 qhov tsis zoo thiab qhov xav tau yog xav tau. Qhov kev pab cuam nab nab hloov cov duab rau grayscale thiab qhov loj me uas tsim nyog kom cov neeg faib khoom siv sijhawm zoo tshaj plaws los tsim.
Kauj Ruam 1: Yuav tsum muaj cov software
Koj xav tau cov software hauv qab no rau kev tsim koj tus kheej cais
1) OpenCV: version kuv siv yog 3.4.2. qhov version tau yooj yim muaj nyob hauv is taws nem.
2) Python: Tus qauv siv yog 3.6.2. Tau rub tawm los ntawm python.org
Ntxiv mus koj xav tau lub webcam (tau kawg).
Kauj ruam 2: Rub tawm cov Duab
Thawj kauj ruam yog ua kom pom cov duab meej ntawm cov khoom kom raug cais.
Qhov loj me yuav tsum tsis loj heev vim nws siv sijhawm ntau dua rau lub khoos phis tawj ua haujlwm. Kuv coj 50 los ntawm 50 loj.
Tom ntej no peb rub cov duab tsis zoo thiab zoo. Koj tuaj yeem pom lawv hauv online. Tab sis peb siv tus nab npawb nab npawb los rub cov duab los ntawm 'https://image-net.org'
Tom ntej no peb hloov cov duab rau greyscale thiab rau qhov loj me. Qhov no yog alo tau ua tiav hauv txoj cai. Txoj cai tseem tshem tawm cov duab tsis raug
Txog tam sim no koj phau ntawv teev npe yuav tsum muaj cov khoom duab piv txwv li watch5050-j.webp
Yog tias cov ntaub ntawv tsis tau tsim, ua nws tus kheej
Tus nab npawb nab npawb yog muab rau hauv.py cov ntaub ntawv
Kauj Ruam 3: Tsim Cov Qauv Zoo hauv OpenCV
Tam sim no mus rau opencv_createsamples directory thiab ntxiv txhua cov ntsiab lus hais los saum no
hauv qhov ua kom sai mus rau C: / opencv342 / build / x64 / vc14 / bin kom pom opencv_createsamples thiab opencv_traincascade apps
tam sim no ua cov lus txib hauv qab no
opencv_createsamples -img watch5050-j.webp
Cov lus txib no yog txhawm rau tsim qhov piv txwv zoo ntawm qhov khoom 1950 kom raug thiab Cov lus piav qhia cov ntaub ntawv info.lst ntawm cov duab zoo cov lus piav qhia yuav tsum zoo li no 0001_0014_0045_0028_0028-j.webp
Tam sim no daim nplaub tshev muaj
ntaub ntawv
cov duab nplaub tshev
bg.txt cov ntaub ntawv
npliag cov ntaub ntawv tais ceev tseg
Kauj Ruam 4: Tsim Cov Ntaub Ntawv Vector Zoo
Tam sim no tsim cov ntaub ntawv vector zoo uas muab txoj hauv kev rau cov duab zoo cov ntaub ntawv decsription
Siv cov lus txib hauv qab no
opencv_createsamples -info info/info.lst -num 1950 -w 20 -h 20 -vec positives.vec
Txog tam sim no cov ntsiab lus ntawm cov npe yuav tsum yog cov hauv qab no:
-nug
---- negimages.jpg
--opencv
-cov ntaub ntawv
--data
--positives.vec
--bg.txt
--watch5050-j.webp
Kauj Ruam 5: Qhia tus Classifier
Tam sim no cia qhia lub haar cascade thiab tsim cov ntaub ntawv xml
Siv cov lus txib hauv qab no
opencv_traincascade -data data -vec positives.vec -bg bg.txt -numPos 1800 -numNeg 900 -numStages 10 -w 20 -h 20
cov theem yog 10 Ua kom nce qib yuav siv sijhawm ntau dua tab sis kev faib tawm yog txoj hauv kev ntau dua.
Tam sim no haarcascade tau tsim Nws yuav siv sijhawm li ob teev los ua kom tiav Qhib cov ntaub ntawv tais ceev tseg nyob ntawd koj yuav pom cascade.xml Qhov kev faib tawm uas tau tsim
Kauj Ruam 6: Kuaj Cov Classifier
Cov ntaub ntawv tais ceev tseg muaj cov ntaub ntawv raws li qhia hauv daim duab saum toj no.
Tom qab tsim cov kev faib tawm peb pom tias tus neeg ua haujlwm cais ua haujlwm lossis tsis yog los ntawm kev ua haujlwm object_detect.py program. Tsis txhob hnov qab tso cov ntaub ntawv classifier.xml hauv cov npe nab hab sej.
Kauj Ruam 7: Ua Tsaug Tshwj Xeeb
Kuv xav ua tsaug Sentdex ntawm no uas yog tus kws tsim nab nab raj zoo.
Nws muaj lub npe youtube nrog lub npe hais los saum toj no thiab cov vis dis aus uas tau pab kuv ntau muaj qhov txuas no
Feem ntau ntawm cov cai tau theej los ntawm sentdex. Txawm hais tias tau txais kev pab ntau los ntawm sentdex, Kuv ntsib ntau qhov teeb meem tseem. Kuv tsuas yog xav qhia kuv qhov kev paub.
Kuv vam tias qhov kev nkag siab no tau pab koj !!! Nyob twj ywm kom paub ntau ntxiv.
BR
Tahir Ul Haq
Pom zoo:
FoldTronics: Tsim 3D Lub Hom Phiaj Nrog Cov Khoom Siv Hluav Taws Xob Siv Foldable HoneyComb Cov Qauv: 11 Cov Kauj Ruam
FoldTronics: Tsim 3D Lub Hom Phiaj Nrog Cov Khoom Siv Hluav Taws Xob Siv Foldable HoneyComb Cov Qauv: Hauv qhov kev qhia no, peb nthuav tawm FoldTronics, 2D-txiav raws li txheej txheem kev tsim khoom los ua ke cov khoom siv hluav taws xob rau hauv cov khoom 3D. Lub tswv yim tseem ceeb yog txhawm rau txiav thiab nthuav tawm daim ntawv 2D siv lub tshuab txiav txiav los ua kom nws tig tau mus rau hauv 3D honeycomb struc
Rov Qab Siv Cov Khoom Siv Laus qub los Tsim Cov Pheej Yig Portable System: 3 Cov Kauj Ruam (nrog Duab)
Rov Qab Siv Cov Khoom Siv Laus qub los tsim Cov Txheej Txheem Nqis Pheej Yig: Tsis ntev los no kuv lub Laptop qub tau tuag thiab kuv yuav tsum yuav ib qho tshiab, (RIP! 5520 koj yuav tsis nco). Lub khoos phis tawj niam niam lub rooj tuag tau tuag thiab qhov kev puas tsuaj tuaj yeem kho tau Txog thaum tsis ntev los no kuv coj Raspberry ncuav qab zib thiab pib tinkering nrog IOT sutff tab sis xav tau kev mob siab rau
Tsim kom muaj Dual 15V Cov Khoom Siv Hluav Taws Xob Siv Tawm Cov Txee Modules rau Hauv $ 50: 10 Cov Kauj Ruam (nrog Duab)
Tsim kom muaj Dual 15V Lub Hwj Huam Siv Tawm Tawm Cov Qauv Qauv rau Hauv $ 50: Taw Qhia: Yog tias koj yog tus nyiam ua haujlwm uas cuam tshuam nrog suab, koj yuav paub nrog cov khoom siv hluav taws xob ob tog. Feem ntau cov hwj huam suab qis xws li pre-amps xav tau qhov twg los ntawm +/- 5V txog +/- 15V. Muaj lub zog siv hluav taws xob ob zaug ua rau nws tsuas yog
Yuav Ua Li Cas Tsim Cov Tsev Kawm Qib Siab-Siv Nyiaj Siv Excel: 12 Cov Kauj Ruam
Yuav Ua Li Cas Tsim Cov Tsev Kawm Qib Siab-Siv Pob Nyiaj Siv Excel: Microsoft Excel yog cov cuab yeej muaj zog heev uas tau siv hauv kev lag luam hauv ntiaj teb niaj hnub. Feem ntau nws tau siv los sib txuas lus li cas kev lag luam tau ua tiav nyiaj txiag, tab sis nws ’ kev siv yog qhov kawg. Txawm hais tias koj siv Excel los tsim qhov nyuaj Pro
Qhib Kev Tsim Khoom - (Yuav Ua Li Cas Tsim 30 (SERB) Cov Khoom Siv): 19 Cov Kauj Ruam (nrog Duab)
Qhib Kev Tsim Khoom - (Yuav Ua Li Cas Tsim 30 (SERB) Cov Khoom Siv): Zoo siab txais tos rau thawj qhov kev tawm tsam sab hauv oomlout.com lub Hoobkas. Ntawm oomlout peb tau tsom mus rau tsim "zoo siab lom zem qhib qhov khoom" qhov kev cog lus rau qhib qhov txuas mus rau peb cov txheej txheem tsim khoom ib yam. Yog li dab tsi hauv qab no yog qib