Cov txheej txheem:

Ntxiv Cov Ntawv rau Cov Duab Nrog Linux 'hloov pauv' Hais kom ua: 3 Cov Kauj Ruam
Ntxiv Cov Ntawv rau Cov Duab Nrog Linux 'hloov pauv' Hais kom ua: 3 Cov Kauj Ruam

Video: Ntxiv Cov Ntawv rau Cov Duab Nrog Linux 'hloov pauv' Hais kom ua: 3 Cov Kauj Ruam

Video: Ntxiv Cov Ntawv rau Cov Duab Nrog Linux 'hloov pauv' Hais kom ua: 3 Cov Kauj Ruam
Video: Lo lus, ntxig rau cov duab, duab qhov chaw yooj yim heev. 2024, Kaum ib hlis
Anonim
Ntxiv Cov Ntawv rau Duab Nrog Linux 'hloov pauv' Hais kom ua
Ntxiv Cov Ntawv rau Duab Nrog Linux 'hloov pauv' Hais kom ua

Cov lus qhia no yuav qhia koj yuav ua li cas ntxiv cov ntawv rau ib daim duab siv cov lus hloov pauv hauv Linux. Ib qho muaj txiaj ntsig siv ntawm qhov no yog kev tso cov lus piav qhia ntawm daim duab rau cov ntaub ntawv. Lwm qhov kev siv yuav yog kev tso lub sijhawm thwj rau ntawm daim duab uas tau tsim los ntawm lub vev xaib. Muaj ntau txoj kev hloov pauv uas koj tuaj yeem siv los tso cov ntawv ntawm daim duab. Koj tuaj yeem xaiv qhov pib taw qhia rau cov ntawv (ntawm qhov siab/dav sib koom ua ke), sau cov xim ntawm cov ntawv, cov ntsiab lus me me ntawm cov ntawv, thiab siv cov font. Cov lus qhia no yuav qhia koj yuav ua li cas tag nrho. Qhov tseem ceeb nrog cov lus qhia no yog tias koj yuav tsum ua txhua yam no hauv Linux operating system. Kuv tsis paub txog kev siv hluav taws xob xws li hloov pauv hauv Microsoft Windows tab sis leej twg puas tau ua dab tsi nrog kab hais kom ua hauv Windows? Cov lus qhia no yog tsom rau Linux cov neeg siv uas xav tau ntau dua ntawm lawv lub khoos phis tawj. Yog tias koj yog tus siv Windows thiab tseem raug ntxias kom nyeem phau ntawv qhia no, koj yuav raug ntxias kom rub tawm thiab teeb tsa Linux. Kuv tuaj yeem sau cov lus qhia yuav ua li cas tom qab hnub tom qab tab sis yog tias koj xav nrhiav qhov no ntawm koj tus kheej, koj tuaj yeem mus rau https://www.ubuntu.com/ thiab pib txheej txheem. Koj tuaj yeem tig koj lub khoos phis tawj ua lub tshuab khau raj ob zaug (Kuv xav qhia tiag tias koj nruab ib lub hard disk thib ob hauv koj lub tshuab-txhua qhov loj yuav ua). BTW, Linux yog DAWB, nrog rau txhua yam muaj rau nws. Tsis tas li, txog tam sim no, nws tsis tuaj yeem tiv thaiv kab mob.

Kauj Ruam 1: Lub Linux 'hloov pauv' Utility

Txhawm rau ua txoj haujlwm ntawm kev ntxiv daim ntawv lo rau daim duab, peb yuav ua haujlwm tag nrho hauv Linux qhov rai davhlau ya nyob twg. Windows hu qhov no hais kom ua lub qhov rai tab sis nws tsis tshua siv hauv Windows tshwj tsis yog cov neeg laus uas nco nws los ntawm DOS hnub. Linux cov neeg siv hnyav siv nws. Ua ntej tshaj plaws, nqa lub qhov rai davhlau ya nyob twg. Nrog Ubuntu Linux, koj ua qhov no los ntawm kev xaiv Cov Ntawv Thov-> Terminal. Lub qhov rai yuav qhib nrog kab hais kom ua sai. Nws yuav muab koj tso rau hauv koj phau ntawv teev npe hauv tsev. Cia peb xav tias daim duab koj xav ua si nrog yog nyob hauv "cov duab" subdirectory. Txhawm rau nkag mus rau phau ntawv ntawd, ntaus "cd images". Tshaj tawm cov ntawv "ls" kom pom cov ntaub ntawv twg nyob ntawd. Hauv kuv qhov xwm txheej, kuv xav ua haujlwm nrog cov ntawv hu ua "sunset1.jpg". Koj kuj tseem xav kom paub tseeb tias cov lus txib hloov pauv muaj nyob ntawm koj li kab ke. Ib txoj hauv kev los ua qhov no yog muab cov lus txib "uas hloov pauv". Yog tias nws muaj, nws qhov chaw yuav raug luam tawm rau lub vijtsam. Hauv kuv qhov xwm txheej, nws nyob ntawm "/usr/bin/convert". Lwm txoj hauv kev kom paub seb nws puas muaj, tsuas yog muab cov lus txib "hloov pauv" ntawm kab hais kom ua. Yog tias nws nyob ntawd, cov lus piav qhia ntev ntawm cov lus txib yuav luam tawm nrog txhua qhov kev xaiv muaj. Yog tias nws tsis nyob ntawd, koj yuav pom "hloov pauv: hais kom ua tsis pom". Cia peb xav tias nws muaj nyob. Cov lus piav qhia ntau ntxiv ntawm cov lus txib hloov pauv tuaj yeem pom ntawm: https://linux.about.com/od/commands/l/blcmdl1_convert.htm Rau peb lub hom phiaj, peb tsuas yog xav siv qhov "-draw" sib cav los sau cov lus rau daim duab.

Kauj Ruam 2: Ntxiv cov lus piav qhia

Ntxiv ib kab lus
Ntxiv ib kab lus
Ntxiv ib kab lus
Ntxiv ib kab lus
Ntxiv ib kab lus
Ntxiv ib kab lus

Kuv daim duab yuav yog daim ntawv hu ua sunset1.jpg. Nov yog daim duab uas kuv tau thaij thaum mus txawv tebchaws rau Egypt thiab Jordan (Koj tuaj yeem pom txhua daim duab ntawm https://www.datasink.com/egypt2009.shtml). Kuv yuav khaws cov duab qub nyob hauv qhov chaw thiab txuag kev hloov pauv rau cov npe tshiab rau kev nyab xeeb. Qhov duab thawj yog qhov txo qis ntawm cov duab loj dua uas yog 7 megapixel duab. Kuv siv lwm qhov peev xwm ntawm "hloov" cov lus txib kom hloov kho nws me dua rau qhov kev qhia no. Cov duab no yog 640x480. Qhov ntawd txhais tau tias nws yog 640 pixels dav thiab 480 pixels siab. Peb yuav siv cov ntaub ntawv no los txiav txim qhov twg peb xav tso cov lus piav qhia. Nov yog cov lus txib uas ua rau hnub poob hnub poob.jpg: hloov pauv -size 20 -cov daj -draw 'ntawv 270, 460 "Sunset hla Nile"' sunset1-j.webp

Kauj Ruam 3: Siv Lub Tshuab Luam Ntawv ntawm Cov Duab

Automating Labeling ntawm Cov Duab
Automating Labeling ntawm Cov Duab

Koj tau pom li cas koj tus kheej ntxiv cov npe kab lus rau cov duab los ntawm kab hais kom ua. Qhov no ua haujlwm tau zoo yog tias koj tsuas muaj ob peb daim duab los ua haujlwm nrog tab sis nws tuaj yeem ua rau kom zoo nkauj ua haujlwm li no. Yog tias koj muaj ntau cov duab los ua, koj yuav xav siv qee yam ntawm cov lus sau hauv Linux. Ib qhov muaj peev xwm yog siv lub plhaub tsab ntawv. Qhov kuv siv yog cov lus sau ua lus Perl. Nov yog qhov kuv siv rau txhua yam CGI cov ntawv hauv web. Lwm qhov muaj peev xwm yog Java, C ++, PHP, thiab Python. Xijpeem koj siv, koj yuav tsum muaj peev xwm tsim cov kab hais kom ua kab thiab lub plhaub tawm kom ua nws. Ib txoj hauv kev uas kuv siv qhov no yog qhov uas kuv cia li muab lub sijhawm sau tseg rau ntawm daim duab uas kuv lub vev xaib tsim ib zaug ib feeb. Hauv Perl tsab ntawv kuv tsim lub sijhawm tam sim no (hnub thiab sijhawm) thiab tom qab ntawd muab nws tso rau ntawm daim duab tam sim no. Kuv kuj muab kuv lub vev xaib chaw nyob ntawm daim duab. Koj tuaj yeem pom tias daim duab txuas tau muab rau Lub Ob Hlis 2 ntawm 13:07. Kuv muaj ib tsab ntawv ntawm kuv lub computer uas khiav ib pliag ib pliag. Nws tuav cov duab los ntawm lub vev xaib, ntxig rau lub vev xaib lub npe thiab lub sijhawm, thiab tom qab ntawd rub nws mus rau kuv lub vev xaib. Tej zaum koj tuaj yeem pom qhov no hauv kev nqis tes ua ntawm https://www.datasink.com/webcam.shtml. Kuv hais "yuav" vim qhov no tsuas yog tshwm sim thaum kuv lub khoos phis tawj qhib. Kuv tsis tso nws ib hmo lossis thaum kuv nyob deb. Yog tias kuv xav sau tag nrho cov npe ntawm cov duab, kuv yuav tsim tsab ntawv Perl los ua nws. Ib txoj hauv kev los ua qhov no yog tsim cov ntawv kab ntawv uas muaj tag nrho cov npe ntawm cov duab hauv cov npe, ib qho ntawm kab. Ua raws li lub npe duab ntawm txhua kab yuav yog cov ntawv ntawm kab lus. Kuv yuav tsim lub voj uas yuav siv daim ntawv lo thiab siv nws rau daim duab. Tau kawg, yuav muaj teeb meem kom tau txais daim ntawv lo rau nruab nrab kab rov tav. Kuv yuav zaum yuav tsum xam qhov dav ntawm kab lus thiab tom qab ntawd kho qhov kab lus sib cav.

Pom zoo: