版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
機(jī)器視覺(jué)與機(jī)器學(xué)習(xí)應(yīng)用ApplicationsofMachineVisionandMachineLearning條形碼識(shí)別應(yīng)用ApplicationsofBarcodeRecognition條形碼識(shí)別應(yīng)用ApplicationsofBarcodeRecognition陳雨ChenYu主講教師Teacher課程導(dǎo)入CourseIntroduction超市結(jié)賬
Supermarketcheckout藥品溯源
Pharmaceuticaltraceability條形碼識(shí)別應(yīng)用ApplicationsofBarcodeRecognition陳雨ChenYu主講教師Teacher課程導(dǎo)入CourseIntroduction???如何實(shí)現(xiàn)高效精準(zhǔn)的識(shí)別?Howtoachieveefficientandaccuraterecognition?課程導(dǎo)入CourseIntroduction陳雨ChenYu主講教師Teacher條形碼識(shí)別技術(shù)
Barcoderecognitiontechnology條形碼識(shí)別應(yīng)用ApplicationsofBarcodeRecognition課程導(dǎo)入CourseIntroduction陳雨ChenYu主講教師Teacher藥盒條形碼識(shí)別Medicineboxbarcoderecognition數(shù)據(jù)上傳任務(wù)Datauploadtask條形碼識(shí)別應(yīng)用ApplicationsofBarcodeRecognition案例導(dǎo)入Caseintroduction任務(wù)描述TaskDescription手動(dòng)輸入:耗時(shí)
易出錯(cuò)。Manualenter:time-consuming,error-prone.條形碼識(shí)別系統(tǒng):方便,快速。Barcoderecognitionsystem:convenientandfast.任務(wù)描述TaskDescription任務(wù):識(shí)別藥盒條形碼,通過(guò)TCP協(xié)議將數(shù)據(jù)發(fā)送給上位機(jī)。Task:RecognizethebarcodeonthemedicineboxandsendthedatatothehostcomputerthroughtheTCPprotocol.檢測(cè)對(duì)象
Detectionobject條形碼Barcode條形碼Barcode條形碼是以表面上的條和空格的形式可視化表示信息,是由黑白條紋進(jìn)行組成的,主要由大小不一的寬度的黑條與空白進(jìn)行組成,黑條與空白位置根據(jù)相應(yīng)的編碼規(guī)律進(jìn)行排列,其包含相關(guān)的信息在內(nèi)。Abarcodevisuallyrepresentsinformationintheformofbarsandspacesonitssurface.Itiscomposedofblackandwhitestripes,mainlyblackbarsandspacesofvaryingwidths.Thepositionsoftheblackbarsandspacesarearrangedaccordingtocorrespondingcodingrules,andcontainrelevantinformation.條形碼Barcode條形碼Barcode世界各國(guó)都公認(rèn)的條形碼系統(tǒng)數(shù)量已多達(dá)160多種。Therearemorethan160barcodesystemsrecognizedbycountriesaroundtheworld.條形碼的種類和特點(diǎn)
TypesandCharacteristicsofBarcodesEAN條形碼EANbarcodeEAN條形碼,即國(guó)際物品條形碼(InternationalProductCode),EAN條形碼可分為兩類:一類是EAN-13,字元數(shù)量為13。另一類為EAN-8,字元數(shù)量為8。較小的商品就可使用EAN-8條形碼。EANbarcode,thatis,theInternationalProductCode.EANbarcodescanbedividedintotwocategories:OneisEAN-13,whichhas13characters.TheotherisEAN-8,whichhas8characters.SmalleritemscanuseEAN-8barcodes.EAN-13碼EAN-13codeEAN-8碼EAN-8code條形碼Barcode條形碼的種類和特點(diǎn)
TypesandCharacteristicsofBarcodesEAN條形碼EANbarcode通用商品條形碼EAN-13碼是我國(guó)主要采取的編碼標(biāo)準(zhǔn),由國(guó)家代碼、制造商代碼、商品代碼和校驗(yàn)碼組成。TheuniversalproductbarcodeEAN-13codeisthemaincodingstandardadoptedinChina.Itconsistsofacountrycode,amanufacturercode,aproductcodeandacheckcode.國(guó)家代碼
Countrycode制造商代碼
Manufacturercode商品代碼
Productcode校驗(yàn)碼
CheckcodeEAN-13條形碼的結(jié)構(gòu)ThestructureoftheEAN-13barcode條形碼Barcode條形碼的種類和特點(diǎn)
TypesandCharacteristicsofBarcodesEAN條形碼EANbarcodeEAN-13條形碼是一種(7,2)碼,包含了13位數(shù)據(jù)字符,其中第1~3位為國(guó)家代碼,中國(guó)的代碼為690~695。第4~8位為制造商代碼。第9~12位為商品代碼。第13位為校驗(yàn)碼,用來(lái)保證條形碼識(shí)別的正確性。TheEAN-13barcodeisa(7,2)codeconsistingof13datacharacters.Thefirstthreecharactersarethecountrycode(690-695forChina).Thefourththrougheighthcharactersarethemanufacturercode.Theninththroughtwelfthcharactersaretheproductcode.Thethirteenthcharacterisacheckcode,usedtoensurecorrectbarcoderecognition.國(guó)家代碼
Countrycode制造商代碼
Manufacturercode商品代碼
Productcode校驗(yàn)碼
CheckcodeEAN-13條形碼的結(jié)構(gòu)ThestructureoftheEAN-13barcode條形碼Barcode條形碼的種類和特點(diǎn)
TypesandCharacteristicsofBarcodesEAN條形碼EANbarcode國(guó)家代碼
Countrycode制造商代碼
Manufacturercode商品代碼
Productcode校驗(yàn)碼
CheckcodeEAN-13條形碼的結(jié)構(gòu)ThestructureoftheEAN-13barcode不同寬度的條空組合,對(duì)應(yīng)不同數(shù)字。Barandspacecombinationsofdifferentwidthscorrespondtodifferentnumbers.條形碼Barcode二五條形碼(code25)Code25二五條形碼有許多種類,例如,插入式二五碼、矩陣式二五碼、工業(yè)式二五碼。TherearemanytypesofCode25,suchasinsertedCode25,matrixCode25,andindustrialCode25.128條形碼Code128128條形碼是一種長(zhǎng)度不一定的條形碼,128個(gè)ASCLL字符,分別代表0~127,在128條形碼的字符集都包括。TheCode128isabarcodeofindefinitelength,consistingof128ASCIIcharactersrepresenting0to127,allofwhichareincludedintheCode128characterset.128條形碼Code128條形碼的種類和特點(diǎn)
TypesandCharacteristicsofBarcodes條形碼BarcodeUPC條形碼UPCUPC條形碼(UniformProductCode),即通用產(chǎn)品條形碼;它是一種不斷裂的,長(zhǎng)度不會(huì)變化的條形碼。UPCistheuniformproductcode;itisabarcodethatdoesnotbreakanddoesnotchangeinlength.UPC條形碼UPC條形碼的種類和特點(diǎn)
TypesandCharacteristicsofBarcodes條形碼Barcode條形碼識(shí)別流程
BarcodeRecognitionProcess
獲取圖像Imageacquisition工業(yè)相機(jī)采集包含待檢測(cè)外觀信息的圖像。Industrialcamerascaptureimagescontainingappearanceinformationtobedetected.圖像預(yù)處理一般采取的操作有:灰度變換、二值化、旋轉(zhuǎn)變換、濾波去噪等。Theoperationsgenerallytakenforimagepreprocessinginclude:grayscaletransformation,binarization,rotationtransformation,filteringanddenoising,etc.圖像分析主要是進(jìn)行ROI分割。ImageanalysismainlyinvolvesROIsegmentation.常用的條形碼識(shí)別算法有寬度測(cè)量法、平均值法、相似邊距離測(cè)量法等。Commonlyusedbarcoderecognitionalgorithmsincludewidthmeasurementmethod,averagemethod,similaredgedistancemeasurementmethod,etc.圖像預(yù)處理Imagepreprocessing圖像分析Imageanalysis條形碼識(shí)別Barcoderecognition條形碼Barcode條形碼的應(yīng)用
ApplicationofBarcodes條形碼的應(yīng)用
ApplicationofBarcodes01020304零售業(yè)
Retail
零售業(yè)是條形碼應(yīng)用最為成熟的領(lǐng)域。EAN商品條形碼為零售業(yè)應(yīng)用條形碼進(jìn)行銷售奠定了基礎(chǔ)。
Theretailindustryisthemostmaturefieldforbarcodeapplication.TheEANbarcodehaslaidthefoundationfortheapplicationofbarcodesinsalesintheretailindustry.圖書館
Library
條形碼也被廣泛用于圖書館中的圖書流通環(huán)節(jié)中,圖書和借書證上都貼上了條形碼,借書時(shí)只要掃描一下借書證上的條形碼,再掃一下借出的圖書上的條形碼,相關(guān)的信息就被自動(dòng)記錄人數(shù)據(jù)庫(kù)中。
Barcodesarealsowidelyusedinthebookcirculationprocessinlibraries.Barcodesareaffixedtoboththebooksandthelibrarycards.Whenborrowingabook,youonlyneedtoscanthebarcodeonthelibrarycardandthenscanthebarcodeontheborrowedbook,andtherelevantinformationwillbeautomaticallyrecordedinthedatabase.倉(cāng)儲(chǔ)管理與物流跟蹤
Warehousemanagementandlogisticstracking
對(duì)于大宗物品流動(dòng)的場(chǎng)合,應(yīng)用條形碼技術(shù),可以實(shí)現(xiàn)快速、準(zhǔn)確地記錄每一件物品,采集到的各種數(shù)據(jù)可實(shí)時(shí)地由計(jì)算機(jī)系統(tǒng)進(jìn)行處理.使得各種統(tǒng)計(jì)數(shù)據(jù)能夠準(zhǔn)確、及時(shí)地反映物品的狀態(tài)。Forsituationswherebulkgoodsareflowing,theapplicationofbarcodetechnologycanachieverapidandaccuraterecordingofeachitem.Thecollecteddatacanbeprocessedbythecomputersysteminrealtime,sothatvariousstatisticaldatacanaccuratelyandtimelyreflectthestatusoftheitems.質(zhì)量跟蹤管理
QualitytrackingmanagementISO9000質(zhì)量保證體系強(qiáng)調(diào)質(zhì)睦管理的可追溯性,也就是說(shuō),對(duì)于出現(xiàn)質(zhì)量問(wèn)題的產(chǎn)品,應(yīng)當(dāng)可以追溯出它的生產(chǎn)時(shí)間、操作者等信息。TheISO9000qualityassurancesystememphasizesthetraceabilityofqualitymanagement,thatis,forproductswithqualityproblems,itshouldbepossibletotracebackinformationsuchasproductiontimeandoperator.條形碼BarcodeTCP通信
TCPCommunicationTCP協(xié)議是面向連接的通信協(xié)議,即傳輸數(shù)據(jù)之前,在發(fā)送端和接收端建立邏輯連接,然后再傳輸數(shù)據(jù),它提供了設(shè)備之間可靠無(wú)差錯(cuò)的數(shù)據(jù)傳輸。TCP通信能實(shí)現(xiàn)兩臺(tái)設(shè)備之間的數(shù)據(jù)交互,通信的兩端,要嚴(yán)格區(qū)分為客戶端(Client)與服務(wù)端(Server)。TheTCPprotocolisaconnection-orientedcommunicationprotocol,thatis,beforetransmittingdata,alogicalconnectionisestablishedbetweenthesenderandthereceiver,andthenthedataistransmitted.Itprovidesreliableanderror-freedatatransmissionbetweendevices.TCPcommunicationenablesdataexchangebetweentwodevices.Thetwoendsofthecommunicationmustbestrictlydistinguishedastheclientandtheserver.客戶端
Client發(fā)送請(qǐng)求給服務(wù)器端處理。
Sendtherequesttotheserverforprocessing.服務(wù)端
Server客戶端發(fā)送的請(qǐng)求交給服務(wù)器端處理,服務(wù)器端處理完畢后反饋給客戶端。
Therequestsentbytheclientishandedovertotheserverforprocessing,andtheserverfeedsbacktotheclientafterprocessing.條形碼BarcodeTCP通信
TCPCommunicationTCP協(xié)議中,在發(fā)送數(shù)據(jù)的準(zhǔn)備階段,客戶端與服務(wù)器之間的三次交互,以保證連接的可靠。IntheTCPprotocol,duringthepreparationphaseforsendingdata,therearethreeinteractionsbetweentheclientandtheservertoensureareliableconnection.客戶端
Client服務(wù)端
Server客戶端向服務(wù)器端發(fā)出連接請(qǐng)求,等待服務(wù)器確認(rèn)。
Theclientsendsaconnectionrequesttotheserverandwaitsfortheservertoconfirm.服務(wù)器端向客戶端回送一個(gè)響應(yīng),通知客戶端收到了連接請(qǐng)求。
Theserversendsaresponsebacktotheclient,notifyingtheclientthatithasreceivedtheconnectionrequest.客戶端再次向服務(wù)器端發(fā)送確認(rèn)信息,確認(rèn)連接。
Theclientsendsaconfirmationmessagetotheserveragaintoconfirmtheconnection.客戶端
Client服務(wù)端
Server客戶端
Client服務(wù)端
ServerStepsforcommunicationbetweenthetwoends:兩端通信時(shí)的步驟:1)Theserverprogramneedstobestartedinadvanceandwaitfortheclienttoconnect.1)服務(wù)端程序,需要事先啟動(dòng),等待客戶端的連接。2)Theclientactivelyconnectstotheserver,andcommunicationcanonlybeachievedaftertheconnectionissuccessful.Theservercannotactivelyconnecttotheclient.2)客戶端主動(dòng)連接服務(wù)器端,連接成功才能通信。服務(wù)端不可以主動(dòng)連接客戶端。藥盒條形碼識(shí)別MedicineBoxBarcodeRecognition打開DobotVisionStudio1.4.2,選擇通用方案。OpenDobotVisionStudio1.4.2andselecttheGeneralOption.任務(wù)實(shí)施TaskImplementation步驟1Step1在工具箱的“采集”模塊選擇“相機(jī)圖像”,拖拽到流程編輯區(qū)。Select"CameraImage"inthe"Acquisition"moduleofthetoolboxanddragittotheprocesseditingarea.步驟2Step2相機(jī)圖像CameraImage雙擊“相機(jī)圖像”模塊,進(jìn)行參數(shù)設(shè)置。Double-clickthe"CameraImage"moduletosettheparameters.任務(wù)實(shí)施TaskImplementation步驟2Step2相機(jī)圖像基本參數(shù)設(shè)置Cameraimagebasicparametersettings相機(jī)圖像觸發(fā)參數(shù)設(shè)置Cameraimagetriggerparametersettings相機(jī)采集到的圖形Graphicscapturedbythecamera將“條形碼識(shí)別”拖拽到流程編輯區(qū),并與“0相機(jī)圖像”相連。Drag"BarcodeRecognition"totheprocesseditingareaandconnectitto"0CameraImage".任務(wù)實(shí)施TaskImplementation步驟3Step3方案流程Programprocess任務(wù)實(shí)施TaskImplementation步驟3Step3雙擊“1條形碼識(shí)別”進(jìn)行參數(shù)設(shè)置。Double-click"1BarcodeRecognition"tosetparameters.運(yùn)行參數(shù)設(shè)置Operatingparametersettings任務(wù)實(shí)施TaskImplementation步驟3Step3雙擊“1條形碼識(shí)別”進(jìn)行參數(shù)設(shè)置。Double-click"1BarcodeRecognition"tosetparameters.點(diǎn)擊“單次執(zhí)行”查看結(jié)果。Click"SingleExecution"toviewtheresults.條形碼識(shí)別結(jié)果Barcoderecognitionresults將邏輯工具欄的“格式化”拖拽到流程編輯區(qū),并與“1條碼識(shí)別”相連。Drag"Format"fromthelogictoolbartotheprocesseditingarea,andconnectitwith"1BarcodeRecognition".任務(wù)實(shí)施TaskImplementation步驟4Step4方案流程Programprocess雙擊“2格式化”進(jìn)行參數(shù)設(shè)置。Double-click"2Format"tosetparameters.任務(wù)實(shí)施TaskImplementation步驟4Step4基本參數(shù)設(shè)置BasicparametersettingsTheformattingtoolcanbeusedtoconsolidateandformatdataintoastringforoutput,withamaximumlengthof256bytes.Click“”ontherighttoselectthedatatobeformatted.Youcanselectmultipledataitemsandsetappropriateseparatorsbetweendifferentdataitemsinthedataframe.Youcanalsoselecttheappropriateoutputendsymbolasneededbelow.通過(guò)格式化工具可以把數(shù)據(jù)整合并格式化成字符串輸出,格式最大長(zhǎng)度256字節(jié)。在右側(cè)處單擊“”選擇需要格式化的數(shù)據(jù),可以選擇多個(gè)需要的數(shù)據(jù),在數(shù)據(jù)框中不同數(shù)據(jù)間設(shè)置合適的間隔符即可,在下方可以按照需要選擇合適的輸出結(jié)束符號(hào)。格式化Format點(diǎn)擊“單次執(zhí)行”查看結(jié)果。Click"SingleExecution"toviewtheresults.任務(wù)實(shí)施TaskImplementation步驟4Step4圖像顯示區(qū)結(jié)果Resultsoftheimagedisplayarea結(jié)果顯示區(qū)結(jié)果Resultsoftheresultdisplayarea將通信管理欄的“發(fā)送數(shù)據(jù)”拖拽到流程編輯區(qū),并與“2格式化”相連。Drag"SendData"fromthecommunicationmanagementcolumntotheprocesseditingareaandconnectitto"2Format".任務(wù)實(shí)施TaskImplementationSendData:Youcansenddatafromtheprocesstoadataqueue,communicationdevice,orglobalvariable.Whenconfiguringoutputtoadataqueueorglobalvariable,youcanconfigureupto16outputs.Whenconfiguringoutputtoacommunicationdevice,youcanonlyconfigureoneoutput.發(fā)送數(shù)據(jù):可將流程中的數(shù)據(jù)發(fā)送到數(shù)據(jù)隊(duì)列、通信設(shè)備或全局變量中。當(dāng)配置輸出至數(shù)據(jù)隊(duì)列或全局變量時(shí),最多可配置16個(gè)輸出。當(dāng)配置輸出至通信設(shè)備時(shí),僅能配置1個(gè)輸出。步驟5Step5方案流程Programprocess任務(wù)實(shí)施TaskImplementation步驟6Step6單擊“”創(chuàng)建TCP服務(wù)端。ClicktocreateaTCPserver.TCP服務(wù)端TCPServer任務(wù)實(shí)施TaskImplementation步驟6Step6雙擊“3發(fā)送數(shù)據(jù)”進(jìn)行參數(shù)設(shè)置。Double-click"3SendData"tosetparameters.發(fā)送數(shù)據(jù)參數(shù)設(shè)置Senddataparametersettings點(diǎn)擊“單次執(zhí)行”查看結(jié)果。Click"SingleExecution"toviewtheresults.任務(wù)實(shí)施TaskImplementation步驟6Step6圖像顯示區(qū)結(jié)果Resultsoftheimagedisplayarea結(jié)果顯示區(qū)結(jié)果Resultsoftheresultdisplayarea課程小結(jié)CourseSummary原理認(rèn)知Principlerecognition實(shí)戰(zhàn)應(yīng)用Practic
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2026年度內(nèi)蒙古自治區(qū)行政執(zhí)法人員專場(chǎng)招收備考題庫(kù)及一套完整答案詳解
- 2026年中煤科工集團(tuán)唐山研究院有限公司招聘?jìng)淇碱}庫(kù)及1套完整答案詳解
- 2026年蘇州工藝美術(shù)職業(yè)技術(shù)學(xué)院高職單招職業(yè)適應(yīng)性測(cè)試參考題庫(kù)有答案解析
- 2026年?yáng)|莞市道滘鎮(zhèn)中心幼兒園招聘編外教師備考題庫(kù)完整參考答案詳解
- 2026年成都傳媒集團(tuán)人力資源服務(wù)中心關(guān)于(高級(jí))項(xiàng)目經(jīng)理崗位的招聘?jìng)淇碱}庫(kù)及一套答案詳解
- 2026年北京市大興區(qū)衛(wèi)生健康委員會(huì)面向應(yīng)屆畢業(yè)生公開招聘工作人員備考題庫(kù)附答案詳解
- 2026年中核金辰(江蘇)核技術(shù)發(fā)展有限公司海南分公司招聘?jìng)淇碱}庫(kù)及一套答案詳解
- 2026年中化學(xué)交通建設(shè)集團(tuán)招聘?jìng)淇碱}庫(kù)及答案詳解一套
- 2026年憑祥市應(yīng)急管理局招聘編外人員招聘?jìng)淇碱}庫(kù)及參考答案詳解1套
- 2026年廣東省廣業(yè)檢驗(yàn)檢測(cè)集團(tuán)有限公司面向社會(huì)招聘黨群人力部(董事會(huì)辦公室)董辦經(jīng)理備考題庫(kù)及1套完整答案詳解
- 搶劫案件偵查課件
- 2025中國(guó)企業(yè)軟件出海報(bào)告
- 2025年大學(xué)《農(nóng)藥化肥-農(nóng)藥殘留檢測(cè)》考試模擬試題及答案解析
- DB14T2163-2020 《信息化項(xiàng)目軟件運(yùn)維費(fèi)用測(cè)算指南》
- 二氧化碳爆破施工技術(shù)方案
- 安全生產(chǎn)工作成效總結(jié)
- 16《我的叔叔于勒》公開課一等獎(jiǎng)創(chuàng)新教學(xué)設(shè)計(jì)
- 骨科備皮課件
- 商品有機(jī)肥施肥施工方案
- 2025至2030中國(guó)酒店行業(yè)市場(chǎng)現(xiàn)狀分析及有效策略與實(shí)施路徑評(píng)估報(bào)告
- 黑龍江省安全文明施工費(fèi)管理辦法
評(píng)論
0/150
提交評(píng)論