CN103472065A - Steel plate surface image acquisition and data transmission method - Google Patents
Steel plate surface image acquisition and data transmission method Download PDFInfo
- Publication number
- CN103472065A CN103472065A CN2013104043942A CN201310404394A CN103472065A CN 103472065 A CN103472065 A CN 103472065A CN 2013104043942 A CN2013104043942 A CN 2013104043942A CN 201310404394 A CN201310404394 A CN 201310404394A CN 103472065 A CN103472065 A CN 103472065A
- Authority
- CN
- China
- Prior art keywords
- data
- frame
- image
- thread
- steel plate
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 20
- 229910000831 Steel Inorganic materials 0.000 title claims abstract description 18
- 239000010959 steel Substances 0.000 title claims abstract description 18
- 238000000034 method Methods 0.000 title claims abstract description 9
- 230000006870 function Effects 0.000 claims abstract description 10
- 238000001514 detection method Methods 0.000 claims abstract description 9
- 239000000284 extract Substances 0.000 claims abstract description 5
- 238000012546 transfer Methods 0.000 claims description 8
- 239000005043 ethylene-methyl acrylate Substances 0.000 claims description 5
- 238000004891 communication Methods 0.000 claims description 3
- 230000007547 defect Effects 0.000 claims description 3
- 238000003909 pattern recognition Methods 0.000 claims description 2
- 238000007781 pre-processing Methods 0.000 abstract 2
- 230000010354 integration Effects 0.000 abstract 1
- 238000013500 data storage Methods 0.000 description 3
- 239000000203 mixture Substances 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- XEEYBQQBJWHFJM-UHFFFAOYSA-N Iron Chemical compound [Fe] XEEYBQQBJWHFJM-UHFFFAOYSA-N 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 101150026173 ARG2 gene Proteins 0.000 description 1
- 101100005166 Hypocrea virens cpa1 gene Proteins 0.000 description 1
- 101100379633 Xenopus laevis arg2-a gene Proteins 0.000 description 1
- 101100379634 Xenopus laevis arg2-b gene Proteins 0.000 description 1
- 239000008186 active pharmaceutical agent Substances 0.000 description 1
- 101150088826 arg1 gene Proteins 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013501 data transformation Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 229910052742 iron Inorganic materials 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000001839 systemic circulation Effects 0.000 description 1
- YLJREFDVOIBQDA-UHFFFAOYSA-N tacrine Chemical compound C1=CC=C2C(N)=C(CCCC3)C3=NC2=C1 YLJREFDVOIBQDA-UHFFFAOYSA-N 0.000 description 1
- 229960001685 tacrine Drugs 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
Abstract
The invention provides a steel plate surface image acquisition and data transmission method, wherein the acquisition, preprocessing and sending of image data adopt multi-thread control, and an NDK library function is utilized to respectively establish a corresponding image data acquisition thread, a data preprocessing thread and a data transmission thread; the embedded platform processes the acquired image data frame by frame and extracts the image data in each frame of data packet according to the CCD camera data; and calculating the total number of data bytes contained in each image and the required data frame number according to the image resolution of the detection system, storing the image data into the distributed SDRAM buffer zone frame by frame, and transmitting the preprocessed image data to an upper computer by the embedded system through a gigabit Ethernet. The invention realizes the acquisition and transmission functions of the embedded platform on the CCD camera image by utilizing the gigabit Ethernet, can improve the integration level of the autonomously developed steel plate surface quality detection system, and can greatly reduce the system cost.
Description
Technical field
The invention belongs to the embedded system industry application, relate in particular to a kind of surface of steel plate image acquisition and data transmission method based on the embedded system Ethernet.
Background technology
Surface Defects in Steel Plate, as one of of paramount importance qualitative factor of band steel, is the main cause caused with steel deep processed product waster, has received increasing concern.The strip surface quality detection system has become and has improved strip quality, promoted the requisite equipment of iron and steel enterprise's product competitiveness.The strip surface quality detection system that current all kinds of production line is used is all the framed structures that adopt ccd image acquisition module+server, as the HTS serial band-steel surface detecting system of German Parsytec company, the cold-strip steel that the iS-2000 automatic checkout system of U.S. Cognex company and the Xu Ke of University of Science & Technology, Beijing etc. develop and Surfaces of Hot Rolled Strip on-line detecting system etc.Said detecting system is all structures that every CCD camera of employing is equipped with a set of image processing server, so system is huge, the cost costliness.
Along with the continuous lifting that improves constantly and image resolution ratio is required of strip speed, the picking rate of view data has also been proposed to new requirement.The DSP flush bonding processor is due to its data processing performance at a high speed, and the advantages such as the operating system of real-time task are widely used in the data acquisition process field.
Summary of the invention
The present invention aims to provide a kind of successful collection and transmission realized the surface of steel plate image, improves the integrated level of detection system, surface of steel plate image acquisition and the data transmission method of cost-saving embedded system Ethernet.
For this reason, the solution that the present invention takes is:
A kind of surface of steel plate image acquisition and data transmission method, adopt the linear CCD camera as the surface of steel plate image collecting device, adopt pattern-recognition and the display platform of server PC as Surface Defects in Steel Plate information, realization is based on NDK(Network Development Kit) the ethernet communication framework carry out collection and the transmission of view data, it is characterized in that, the CCD collected by camera to the surface of steel plate view data transfer to the EMAC interface of dsp processor via switch, denoising through DSP, transfer to the host computer terminal by the EMAC interface again after the pre-service such as splicing, between dsp processor and CCD camera and host computer, all adopt gigabit Ethernet to communicate.Its concrete grammar is:
1, the collection of view data, pre-service and transmission adopt Multi-thread control, utilize the NDK built-in function to set up respectively its corresponding image data acquiring thread, data pre-service thread and data transmission thread.
2, embedded platform is processed frame by frame to the view data collected, and at first, according to CCD camera data transmission Gige-Vision agreement and udp protocol form, extracts view data part in every frame data bag; Then, calculate according to the image resolution ratio of detection system setting data byte sum and the needed data frame number that every width image comprises; Finally view data is deposited in the sdram buffer of allocating in advance frame by frame.
3, embedded platform transfers to host computer by pretreated view data by gigabit Ethernet, total size is set in the SDRAM memory block and is no more than half data buffer area of its capacity, be divided into the M section, be responsible for storage piece image data and image attributes data, determine whether this segment data is transferred to host computer by the status word that judges every section memory block for every section.
Beneficial effect of the present invention is:
The present invention can realize that embedded platform utilizes collection and the transfer function of gigabit Ethernet to the CCD camera image, can improve the integrated level of the plate surface quality detection system of independent research, system cost be can greatly reduce again, and application and the popularization of system are conducive to.
The accompanying drawing explanation
Fig. 1 is the embedded platform hardware configuration;
Fig. 2 is NDK configuration flow figure;
Fig. 3 is single image frame data storage node composition;
Fig. 4 is DDR2 buffer zone view data storage node composition.
Embodiment
As seen from Figure 1, hardware platform of the present invention is mainly formed and is linked in sequence by camera, switch, EMAC interface, DM648 and host computer.
1, the ethernet communication framework of embedded system based on NDK built:
(1) NDK initialization and configuration: at first call NC_SystemOpen () function and come initializtion protocol stack and required memory environment thereof, then call CfgNew () and create the configuration handle, handle calls item value and the label value that CfgAddEntry () adds the configuration entrance successively after creating successfully, Socket buffer size and arp timeout parameter are set, finally call NC_NetStart (Handle, StartEvent, StopEvent, IpaddressEvent) function, ' create the image receiving thread in StartEvent ' function, data pre-service thread and data transmission thread, ' delete created thread in StopEvent ' function.Fig. 2 is shown in by program circuit.
(2) establishment of mission thread: with the abstract API of task of NDK, set up respectively image receiving thread, image pre-service thread and data transmission thread.
hMyTask=TaskCreate(entrypoint,"TaskName",OS_TASKPRINORM,stacksize,arg1,arg2,arg3);
HMyTask is the TSK mission thread handle of DSP/BIOS, and entrypoint is each mission thread entrance function.
2, the frame by frame processing of embedded system to view data:
(1) according to CCD camera data transmission Gige-Vision agreement, extract the UDP view data packet portion of every frame data, Gige-Vision protocol data form is as follows:
Then the head that the UDP message bag is removed to UDP is the view data part.
(2) image resolution ratio of supposing the detection system setting is N*K, be that pixels across point is N, the capable image of K forms a width detected image altogether, view data length after every frame extracts is the L byte, every width image needs N*K/L frame data bag, piece id information according to every two field picture deposits view data in buffer zone successively, and the picture format of composition as shown in Figure 3.
3, embedded system transfers to host computer to pretreated view data by gigabit Ethernet: the data storage area that at first will be not more than 256M is divided into the M section, be responsible for storage piece image data and image attributes data for every section, as shown in Figure 4, the status word of a M byte is set simultaneously, is used for describing the current state of M width image.Systemic circulation reading state word, be illustrated as completion status when the status word that certain width image is corresponding being detected, and log-on data transformation task thread completes the transformation task of this width view data.
Claims (1)
1. a surface of steel plate image acquisition and data transmission method, adopt the linear CCD camera as the surface of steel plate image collecting device, adopt pattern-recognition and the display platform of server PC as Surface Defects in Steel Plate information, the ethernet communication framework of realization based on NDK carries out collection and the transmission of view data, it is characterized in that, the CCD collected by camera to the surface of steel plate view data transfer to the EMAC interface of dsp processor via switch, denoising through DSP, transfer to the host computer terminal by the EMAC interface again after the pre-service such as splicing, between DSP processor and CCD camera and host computer, all adopt gigabit Ethernet to communicate, its concrete grammar is:
(1), the collection of view data, pre-service and send and adopt Multi-thread control, utilize the NDK built-in function to set up respectively its corresponding image data acquiring thread, data pre-service thread and data transmission thread;
(2), embedded platform processed frame by frame to the view data collected, and at first, according to CCD camera data transmission Gige-Vision agreement and udp protocol form, extracts view data part in every frame data bag; Then, calculate according to the image resolution ratio of detection system setting data byte sum and the needed data frame number that every width image comprises; Finally view data is deposited in the sdram buffer of allocating in advance frame by frame;
(3), embedded platform transfers to host computer by pretreated view data by gigabit Ethernet, total size is set in the SDRAM memory block and is no more than half data buffer area of its capacity, be divided into the M section, be responsible for storage piece image data and image attributes data, determine whether this segment data is transferred to host computer by the status word that judges every section memory block for every section.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013104043942A CN103472065A (en) | 2013-09-06 | 2013-09-06 | Steel plate surface image acquisition and data transmission method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013104043942A CN103472065A (en) | 2013-09-06 | 2013-09-06 | Steel plate surface image acquisition and data transmission method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103472065A true CN103472065A (en) | 2013-12-25 |
Family
ID=49797004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013104043942A Pending CN103472065A (en) | 2013-09-06 | 2013-09-06 | Steel plate surface image acquisition and data transmission method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103472065A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105364266A (en) * | 2015-12-18 | 2016-03-02 | 广东省自动化研究所 | Mechanical arm motion trail adjusting system and method |
CN107367232A (en) * | 2016-05-12 | 2017-11-21 | 鞍钢股份有限公司 | Strip steel width detection method based on embedded processing system and gigabit Ethernet |
CN107796309A (en) * | 2016-09-06 | 2018-03-13 | 鞍钢股份有限公司 | Strip steel width information detection method for embedded system and gigabit Ethernet |
CN109596630A (en) * | 2019-01-25 | 2019-04-09 | 上海东震冶金工程技术有限公司 | A kind of hot detection method of flame machine slab upper and lower surface imaging rear clearly |
CN109709099A (en) * | 2018-12-29 | 2019-05-03 | 宝钢湛江钢铁有限公司 | A kind of method and apparatus of intelligent recognition steel strip surface defect |
CN110602462A (en) * | 2019-09-27 | 2019-12-20 | 南京工程学院 | Industrial image detection device and method based on AI |
CN112775182A (en) * | 2020-12-29 | 2021-05-11 | 广州市荻亚机电设备有限公司 | Manufacturing equipment for producing cold-rolled steel plate for manufacturing high-end equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04315950A (en) * | 1991-04-15 | 1992-11-06 | Toshiba Corp | Image processing unit |
CN202083644U (en) * | 2011-05-26 | 2011-12-21 | 杭州浙大精益机电技术工程有限公司 | Steel tube inner wall test system based on panoramic imaging technology |
CN103163141A (en) * | 2011-12-14 | 2013-06-19 | 鞍钢股份有限公司 | Strip steel surface online detection system and method based on embedded image processing system |
CN203057360U (en) * | 2013-02-04 | 2013-07-10 | 南京普爱射线影像设备有限公司 | Image acquisition and gigabit Ethernet transmission device |
-
2013
- 2013-09-06 CN CN2013104043942A patent/CN103472065A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04315950A (en) * | 1991-04-15 | 1992-11-06 | Toshiba Corp | Image processing unit |
CN202083644U (en) * | 2011-05-26 | 2011-12-21 | 杭州浙大精益机电技术工程有限公司 | Steel tube inner wall test system based on panoramic imaging technology |
CN103163141A (en) * | 2011-12-14 | 2013-06-19 | 鞍钢股份有限公司 | Strip steel surface online detection system and method based on embedded image processing system |
CN203057360U (en) * | 2013-02-04 | 2013-07-10 | 南京普爱射线影像设备有限公司 | Image acquisition and gigabit Ethernet transmission device |
Non-Patent Citations (1)
Title |
---|
徐峰等: "基于FPGA和GigE Vision的图像采集***", 《仪器仪表学报》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105364266A (en) * | 2015-12-18 | 2016-03-02 | 广东省自动化研究所 | Mechanical arm motion trail adjusting system and method |
CN107367232A (en) * | 2016-05-12 | 2017-11-21 | 鞍钢股份有限公司 | Strip steel width detection method based on embedded processing system and gigabit Ethernet |
CN107796309A (en) * | 2016-09-06 | 2018-03-13 | 鞍钢股份有限公司 | Strip steel width information detection method for embedded system and gigabit Ethernet |
CN109709099A (en) * | 2018-12-29 | 2019-05-03 | 宝钢湛江钢铁有限公司 | A kind of method and apparatus of intelligent recognition steel strip surface defect |
CN109709099B (en) * | 2018-12-29 | 2022-02-08 | 宝钢湛江钢铁有限公司 | Method and device for intelligently identifying surface defects of strip steel |
CN109596630A (en) * | 2019-01-25 | 2019-04-09 | 上海东震冶金工程技术有限公司 | A kind of hot detection method of flame machine slab upper and lower surface imaging rear clearly |
CN110602462A (en) * | 2019-09-27 | 2019-12-20 | 南京工程学院 | Industrial image detection device and method based on AI |
CN110602462B (en) * | 2019-09-27 | 2020-11-03 | 南京工程学院 | Industrial image detection device and method based on AI |
CN112775182A (en) * | 2020-12-29 | 2021-05-11 | 广州市荻亚机电设备有限公司 | Manufacturing equipment for producing cold-rolled steel plate for manufacturing high-end equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103472065A (en) | Steel plate surface image acquisition and data transmission method | |
CN102222213B (en) | Distributed vision computing method based on open type Web Service framework | |
WO2019015684A1 (en) | Facial image reduplication removing method and apparatus, electronic device, storage medium, and program | |
CN104243481B (en) | A kind of method and system of power information acquisition advance data processing | |
CN208479837U (en) | A kind of real-time target detection device based on raspberry pie | |
CN204667140U (en) | A kind of intelligent home control device | |
CN105119926A (en) | Multichannel duplex communication method based on Socket connection | |
CN104866528B (en) | Multi-platform data acquisition method and system | |
JP2018537777A (en) | Internet of things information system | |
CN110674918A (en) | Information processing method, device, system and storage medium | |
CN201628974U (en) | System for checking inventory in stereoscopic warehouse | |
CN104267834A (en) | Air mouse system and control method thereof | |
CN203299613U (en) | Intelligent building control system | |
US9838495B2 (en) | Managing data acquisition | |
CN102201992B (en) | Stream processor parallel environment-oriented data stream communication system and method | |
CN207717137U (en) | A kind of computer network security monitoring device | |
CN105357387A (en) | Method, apparatus and system for wakening terminal | |
CN102023163A (en) | System and method for detecting connector based on digital signal processor (DSP) | |
CN204795392U (en) | Found equipment of different structure information structure ization of special equipment | |
CN101778139A (en) | Linux cluster monitoring system and realization method based on HTTP protocol | |
CN203399211U (en) | Online monitoring video acquisition invoking system device | |
CN204679804U (en) | A kind of novel building fire protection facility Sampling network system based on mobile phone app | |
CN204667468U (en) | Based on the data integration electronic bin system of ethernet technology | |
CN212463326U (en) | Video acquisition system for intelligent pump room | |
CN113794630B (en) | Multi-mode data acquisition method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20131225 |