CN106934318A - Barcode scanning processing method, apparatus and system - Google Patents
Barcode scanning processing method, apparatus and system Download PDFInfo
- Publication number
- CN106934318A CN106934318A CN201710146573.9A CN201710146573A CN106934318A CN 106934318 A CN106934318 A CN 106934318A CN 201710146573 A CN201710146573 A CN 201710146573A CN 106934318 A CN106934318 A CN 106934318A
- Authority
- CN
- China
- Prior art keywords
- frame data
- image frame
- barcode scanning
- buffer area
- predetermined buffer
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Facsimiles In General (AREA)
Abstract
The invention discloses a kind of barcode scanning processing method, apparatus and system, it is related to barcode scanning technical field, the efficiency of barcode scanning treatment can be improved, methods described includes:When the barcode scanning for receiving barcode scanning application program is asked, triggering image capture engine is acquired image frame data;The image frame data that described image acquisition engine is collected every time are stored in predetermined buffer area and decoding request is sent to bar code decoder, the image frame data of identification are needed and is carried out corresponding decoding to cause the bar code decoder to be obtained from the predetermined buffer area.The present invention is suitable for barcode scanning treatment.
Description
Technical field
The present invention relates to a kind of barcode scanning technical field, more particularly to a kind of barcode scanning processing method, apparatus and system.
Background technology
With the high speed development of information age, image Bar Code is increasingly favored by all trades and professions, example
Such as, storage or the outbound operation of mail package can be carried out by the bar code scanned on express delivery list, can also be used by scanning
The Quick Response Code of family on-line payment account is collected money or payment operation etc..Quickly, efficiently and accurately barcode scanning also becomes intelligent knowledge
The key of other equipment Industry competition.
At present, existing barcode scanning processing procedure is essentially all serialization, specifically barcode scanning application requests first
Barcode scanning, then carries out upper electricity and initialization operation to image capture engine, then gathers barcode image, finally the bar to collecting
Code image decode and obtains corresponding decoding data, and is passed it to barcode scanning application program and processed.
However, when needing to carry out multiple barcode scanning task, each barcode scanning is required for repeating above-mentioned barcode scanning handling process,
The barcode image for once collecting is being successfully decoded and bar code shadow next time can be just being carried out after passing to barcode scanning application program
As collection, i.e., upper electricity and initialization operation etc. are carried out to image capture engine again, and then have impact on the efficiency of barcode scanning treatment.
The content of the invention
In view of this, the invention provides a kind of barcode scanning processing method, apparatus and system, main purpose is to improve
The efficiency of barcode scanning treatment.
According to one aspect of the invention, there is provided a kind of barcode scanning processing method, service end is applied to, the method includes:
When the barcode scanning for receiving barcode scanning application program is asked, triggering image capture engine is acquired image frame data;
The image frame data that described image acquisition engine is collected every time are stored in predetermined buffer area and to bar code solution
Code device sends decoding request, and the image frame number of identification is needed to cause that the bar code decoder is obtained from the predetermined buffer area
According to and carry out corresponding decoding.
Further, methods described also includes:The described image collection preserved in predetermined buffer area described in real time record is drawn
The use state information of the image frame data for collecting every time is held up, to cause that the bar code decoder is believed according to the use state
Breath, being obtained from the predetermined buffer area needs the image frame data of identification and carries out corresponding decoding.
Further, before the triggering image capture engine is acquired image frame data, methods described also includes:
Upper electricity and initialization process are carried out to described image acquisition engine, and trigger described image acquisition engine to maintain upper electricity
With the state of initialization process.
Further, methods described also includes:
It is spaced to schedule and decoded image frame data is deleted from the predetermined buffer area.
According to another aspect of the invention, there is provided a kind of barcode scanning processing method, bar code decoder, the method bag are applied to
Include:
The decoding request that service end sends is received, the decoding request is that the service end collects image capture engine
Image frame data be stored in what is sent behind predetermined buffer area, preserve described image acquisition engine in the predetermined buffer area every
The secondary image frame data for collecting;
Being obtained from the predetermined buffer area needs the image frame data of identification;
The image frame data for needing identification are decoded.
Specifically, the service end real time record has the use state of the image frame data preserved in the predetermined buffer area
Information, described acquisition from the predetermined buffer area needs the image frame data of identification, specifically includes:
According to the use state information, being obtained from the predetermined buffer area needs the image frame data of identification.
Specifically, the use state information is specially just being read status information or is just being written into status information or
Expired state information is ready for read status information, described according to the use state information, from the predetermined buffer area
The image frame data for needing identification are obtained, is specifically included:
It is the image frame number for being ready for read status information that the use state information is obtained from the predetermined buffer area
According to.
Further, after the image frame data by the needs identification are decoded, methods described also includes:
If decoding failure to the image frame data for needing identification, being obtained from the predetermined buffer area needs identification
Next frame image frame data decoded, repeat this decoding process, until successfully decoded or decoding time-out;
If successfully decoded, barcode scanning application program is given by the data is activation after successfully decoded;
If decoding time-out, the response message of decoding failure is sent to the service end, to cause that the service end is triggered
The prompt message of output decoding failure.
According to another aspect of the present invention, there is provided a kind of service end, including:
Trigger element, for when the barcode scanning for receiving barcode scanning application program is asked, triggering image capture engine to be adopted
Collection image frame data;
Storage unit, for the image frame data that described image acquisition engine is collected every time to be stored in into predetermined buffer area
In;
Transmitting element, for sending decoding request to bar code decoder, to cause that the bar code decoder makes a reservation for from described
Being obtained in buffering area needs the image frame data of identification and carries out corresponding decoding.
Further, the service end also includes:
Recording unit, the described image acquisition engine for being preserved in predetermined buffer area described in real time record is collected every time
Image frame data use state information, to cause the bar code decoder according to the use state information, from described pre-
Being obtained in buffer set needs the image frame data of identification and carries out corresponding decoding.
Further, the service end also includes:
Processing unit, adopts for carrying out upper electricity and initialization process to described image acquisition engine, and triggering described image
Collection engine maintains the state of upper electricity and initialization process.
Further, the service end also includes:
Unit is deleted, decoded image frame number is deleted from the predetermined buffer area for being spaced to schedule
According to.
According to another aspect of the present invention, there is provided a kind of bar code decoder, including:
Receiving unit, the decoding request for receiving service end transmission, the decoding request is the service end by image
The image frame data that acquisition engine is collected are stored in what is sent behind predetermined buffer area, preserve described in the predetermined buffer area
The image frame data that image capture engine is collected every time;
Acquiring unit, the image frame data of identification are needed for being obtained from the predetermined buffer area;
Decoding unit, for the image frame data for needing identification to be decoded.
Specifically, the service end real time record has the use state of the image frame data preserved in the predetermined buffer area
Information,
The acquiring unit, specifically for according to the use state information, being obtained from the predetermined buffer area needs
The image frame data of identification.
Specifically, the use state information is specially just being read status information or is just being written into status information or
Expired state information is ready for read status information,
The acquiring unit, specifically for obtaining the use state information from the predetermined buffer area to be ready for reading
Take the image frame data of status information.
Further, the bar code decoder also includes:Transmitting element;
The decoding unit, if being additionally operable to decode failure to the image frame data for needing identification, makes a reservation for from described
Being obtained in buffering area needs the next frame image frame data of identification to be decoded, and this decoding process is repeated, until successfully decoded
Or decoding time-out;
The transmitting element, if for successfully decoded, barcode scanning application program is given by the data is activation after successfully decoded;
The transmitting element, if for decoding time-out, the response message of decoding failure is sent to the service end, so that
Obtain the prompt message of the service end triggering output decoding failure.
According to another aspect of the present invention, there is provided a kind of barcode scanning processing system, including:Service end and bar code decoder;
The service end, for when the barcode scanning for receiving barcode scanning application program is asked, triggering image capture engine to be carried out
Collection image frame data;By the image frame data that described image acquisition engine is collected every time be stored in predetermined buffer area and to
The bar code decoder sends decoding request;
The bar code decoder, for receiving the decoding request that the service end sends;Obtained from the predetermined buffer area
Take the image frame data for needing identification;The image frame data for needing identification are decoded.
By a kind of barcode scanning processing method, apparatus and system that above-mentioned technical proposal, the present invention are provided, with serialization at present
Barcode scanning processing procedure compare, the present invention when service end receive barcode scanning application program barcode scanning ask when, image can be triggered
Acquisition engine is acquired barcode image, collection complete an image frame data after, without waiting for the image frame data whether
It is successfully decoded, it is possible to directly carry out barcode image collection next time, and the image frame data that will be collected every time are stored in
In predetermined buffer area, can notify that bar code decoder obtains corresponding data and solved from predetermined buffer area while IMAQ
Code, and then the parallel processing of IMAQ and barcode image decoding can be accomplished, the time of multiple barcode scanning treatment can be saved, enter
And the efficiency of barcode scanning treatment can be improved.
Described above is only the general introduction of technical solution of the present invention, in order to better understand technological means of the invention,
And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by specific embodiment of the invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area
Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of barcode scanning process flow schematic diagram provided in an embodiment of the present invention;
Fig. 2 shows another barcode scanning process flow schematic diagram provided in an embodiment of the present invention;
Fig. 3 shows a kind of barcode scanning handling process schematic diagram provided in an embodiment of the present invention;
Fig. 4 shows a kind of service end structural representation provided in an embodiment of the present invention;
Fig. 5 shows another service end structural representation provided in an embodiment of the present invention;
Fig. 6 shows a kind of bar code decoder structural representation provided in an embodiment of the present invention;
Fig. 7 shows another bar code decoder structural representation provided in an embodiment of the present invention;
Fig. 8 shows a kind of barcode scanning processing system structural representation provided in an embodiment of the present invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.Conversely, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
A kind of barcode scanning processing method is the embodiment of the invention provides, service end is applied to, the effect of barcode scanning treatment can be improved
Rate, as shown in figure 1, the method includes:
101st, when the barcode scanning that service end receives barcode scanning application program is asked, triggering image capture engine is acquired shadow
As frame data.
Can be the service end for barcode image identifying processing for the executive agent of the embodiment of the present invention, it is right when needing
When two-dimension code image carries out barcode scanning, after the service end receives the barcode scanning request of barcode scanning application program, detection image collection first
Whether engine in collection image, if image capture engine does not gather image, adopted by triggering image capture engine
Collect the image frame data of two-dimension code image, in embodiments of the present invention, after collection completes an image frame data, without waiting for
Whether the image frame data are successfully decoded, it is possible to directly carry out barcode image collection next time, improve barcode image and adopt
The efficiency of collection;If detecting that image capture engine gathers image, whether lookup predetermined buffer has what is be collected in area
Image frame data, wherein, predetermined buffer area can be the image frame data collected every time for cache image acquisition engine
Specific region.If there are the image frame data that have been collected in predetermined buffer area, can directly notify bar code decoder from
The image frame data being collected are obtained in predetermined buffer area carries out decoding identification, and then gathers figure without waiting for image capture engine
As data, such that it is able to improve the efficiency of barcode scanning treatment.
In an alternate embodiment of the present invention where, before step 101, can also include:IMAQ is drawn in advance
Holding up carries out electricity and initialization process, and triggers the state that image capture engine maintains upper electricity and initialization process.
In for the barcode scanning processing procedure of current serialization, it is time-consuming most it is long be image capture engine upper electricity and initialization
The link for the treatment of, in embodiments of the present invention, can carry out upper electricity and initialization process, then trigger to image capture engine in advance
Image capture engine maintains the state of upper electricity and initialization process, that is, be set as holding state, and then when receiving barcode scanning application
When the barcode scanning of program is asked, can directly trigger image capture engine carries out IMAQ, without entering to image capture engine again
Electricity and initialization process on row, save the time of barcode scanning treatment, such that it is able to improve the efficiency of barcode scanning treatment.
102nd, the image frame data for collecting image capture engine every time are stored in predetermined buffer area and to bar code solution
Code device sends decoding request.
Further, need the image frame data of identification and carry out to cause bar code decoder to be obtained from predetermined buffer area
Corresponding decoding.
During the image frame data for collecting image capture engine every time are stored in predetermined buffer area, can cover
The expired image frame data of lid, the i.e. holding time in predetermined buffer area are more than the image frame data of certain threshold value, with
Just the space resources of buffering area is saved.And can every time be gathered with the image capture engine preserved in real time record predetermined buffer area
The use state information of the image frame data for arriving, to cause bar code decoder according to use state information, from predetermined buffer area
Obtain the image frame data of needs identification and carry out corresponding decoding, so that bar code decoder can exactly from predetermined buffer area
The image frame data for needing identification are obtained, and then decoding accuracy rate can be improved, wherein, use state information can be just to be read
Take status information or be just written into status information or status information out of date or be ready for read status information etc..
If for example, in predetermined buffer area preserve image frame data read by bar code decoder, will pass through bar code
Decoder is decoded to the image frame data, then the use state of the image frame data is just to be read state;If predetermined slow
Rush the image frame data preserved in area just to be write at being serviced end, then the use state of the image frame data is just to be written into shape
State;If preservation duration of the image frame data in predetermined buffer area is more than certain threshold value, illustrate that the image frame data are expired,
Then the use state of the image frame data is state out of date;If preservation duration of the image frame data in predetermined buffer area is less than
Or equal to certain threshold value, and currently without being read or be written into, the state in being prepared for being read, then the image frame number
According to use state to be ready for reading state, bar code decoder is protected after decoding request is received according in predetermined buffer area
The use state information of the image frame data deposited, can obtain the image frame data for being prepared for being read from predetermined buffer area
Decoded.
In embodiments of the present invention, the decoding operate of barcode image can be jointly carried out by multiple bar code decoders, when
When needing the quantity of the barcode image frame of decoding more, overall decoding operate process can be accelerated, and then can improve at barcode scanning
Reason efficiency.Service end specifically can be according to the working condition of each bar code decoder, to the bar code solution currently without decoding task
Code device sends decoding request, to cause that this carries out subsequent decoding operations currently without the bar code decoder of decoding task.
Further, in order to avoid same image frame data are carried out with repeat decoding, the decoding effect of image frame data is improved
Rate, can also to schedule be spaced and decoded image frame data are deleted from predetermined buffer area.Wherein, between the scheduled time
Every can according to the decoding speed of bar code decoder, the storage size in predetermined buffer area and image capture engine gather shadow
The factors such as the speed as frame data are set in advance, for example, predetermined time interval can be redefined for 5 milliseconds, 8 milliseconds
Deng.
For example, decoded image frame data are deleted from predetermined buffer area every 5 milliseconds, either successfully decoded or
Decoding failure, and then the space resources in predetermined buffer area can be ensured, the image frame data for newly collecting can be stored in predetermined
In buffering area.
If the follow-up barcode scanning request for receiving barcode scanning application program again, and image capture engine currently gathers figure
Picture, can directly notify that bar code decoder is obtained from predetermined buffer area needs the image frame data of identification to be solved next time
Code, if successfully decoded, barcode scanning application program is given by decoded data is activation;If decoding failure, again from predetermined
A frame image frame data are obtained in buffering area again to continue to decode, this decoding process is repeated, until successfully decoded or decoding are super
When, if successfully decoded, the data is activation after being successfully decoded gives barcode scanning application program.
A kind of barcode scanning processing method provided in an embodiment of the present invention, compared with the barcode scanning processing procedure of current serialization, this
Inventive embodiments can carry out upper electricity and initialization process to image capture engine in advance, and trigger in image capture engine maintenance
State after electricity and initialization process so that when each barcode scanning is processed, it is upper electric and initial without being carried out to image capture engine again
Change is processed, and saves the time of barcode scanning treatment, and during decoding, can accomplish that IMAQ is decoded with barcode image
Parallel processing, can save the process time of multiple barcode scanning, and then the efficiency of barcode scanning treatment can be improved, improve barcode scanning
Can, particularly have to batch barcode scanning performance and more significantly lifted.
Accordingly, another barcode scanning processing method is the embodiment of the invention provides, bar code decoder is applied to, such as Fig. 2 institute
Show, the method includes:
201st, bar code decoder receives the decoding request that service end sends.
Wherein, decoding request is that the image frame data that service end collects image capture engine are stored in predetermined buffer area
Send afterwards, the image frame data that image capture engine is collected every time are preserved in predetermined buffer area.
Executive agent in embodiments of the present invention can be the bar code decoder for barcode image decoding, in bar code solution
Code device is received after the decoding request of service end transmission, and triggering carries out dependent decoding operations, that is, perform step 202 to step
203。
202nd, being obtained from predetermined buffer area needs the image frame data of identification.
Wherein, service end real time record has the use state information of the image frame data preserved in predetermined buffer area.Step
202 can specifically include:According to the use state information of the image frame data preserved in predetermined buffer area, from predetermined buffer area
The image frame data for needing identification are obtained, identification is needed so that bar code decoder can be obtained from predetermined buffer area exactly
Image frame data, and then decoding accuracy rate can be improved.
Use state information is specifically as follows and be just read status information or be just written into status information or shape out of date
State information is ready for read status information, according in predetermined buffer area preserve image frame data use state information, from
The image frame data that needs identification is obtained in predetermined buffer area can specifically include:Use state letter is obtained from predetermined buffer area
Cease to be ready for the image frame data of read status information.For example, obtaining the image frame for being ready for reading from predetermined buffer area
Data, do not obtain and are read by other bar code decoders, just write and the preservation in predetermined buffer area at being serviced end
Duration needs to know more than the image frame data of certain threshold value so that bar code decoder can be obtained from predetermined buffer area exactly
Effective image frame data are carried out decoding identification, and then can improve decoding accuracy rate by other image frame data.
203rd, the image frame data of identification will be needed to be decoded.
After step 203, can also include:It is slow from making a reservation for if the image frame data to needing identification decode failure
Rush in area obtain need identification next frame image frame data decoded, repeat this decoding process, until successfully decoded or
Decoding time-out, compared with the barcode scanning processing procedure of current serialization, next frame image frame is gathered without waiting for image capture engine
Data, directly can obtain next frame image frame data from predetermined buffer area and be decoded, and save the time of IMAQ,
And then the efficiency of barcode scanning treatment can be improved.
If successfully decoded, barcode scanning application program is given by the data is activation after successfully decoded;If decoding time-out, to service
End sends the response message of decoding failure, to cause the prompt message of service end triggering output decoding failure.Wherein, prompt message
Can be text prompt information, picture prompting information, audio prompt information, visual prompts information etc., for example, service end is being received
To after the response message of decoding failure, the audio prompt of the audio output apparatus output decoding failure of barcode scanning equipment can be triggered
Information.
During decoding, after the completion of to the image frame data decoding for needing identification, either successfully decoded is still
Decoding failure, can delete the image frame data for having decoded completion, or will decode completion from predetermined buffer area
Image frame data markers are invalid data, can by subsequent acquisition to image frame data directly cover, and then can save pre-
The memory space of buffer set, mitigates the storage pressure in predetermined buffer area, and ensures that bar code decoder can be obtained down accurately
One frame image frame data, it is to avoid repeat acquisition same image frame data and decoded, accelerate barcode scanning treatment progress, and then improve
Barcode scanning treatment effeciency.
In order to illustrate the embodiment of the present invention, with reference to barcode scanning processing method provided in an embodiment of the present invention, after providing improvement
Barcode scanning handling process, for example, as shown in figure 3, wherein Service part can be the embodiment of the present invention in service end, changing
In barcode scanning handling process before entering, it is time-consuming it is most long be the upper electricity of image capture engine and the link of initialization process, consume respectively
When 90 milliseconds, 150 milliseconds, image capture engine collection image section is taken as between 16.6 milliseconds to 33 milliseconds, bar code solution
Code device part is taken as between 16 milliseconds to 50 milliseconds.
In barcode scanning handling process after improvement, Service first start when, just image capture engine is carried out it is upper electricity with
Initialization process, then set it to holding state, it is therefore an objective to so that after image capture engine maintains upper electricity and initialization process
State, when Service receive barcode scanning application program barcode scanning request 2. when, Service can be with fast wake-up IMAQ
Engine carries out IMAQ, then will collect image frame data and is stored in the frame buffer zone of image frame supervisor and (makes a reservation for slow
Rush area) in, and notify that bar code decoder carries out bar code decoding;If bar code decoder decoding failure, can be without waiting for bar code
The next frame image frame data that decoder directly obtains collection from frame buffer zone are decoded;If successfully decoded, bar code
Decoder directly returns to decoding data to application program, this processing procedure due to reducing to the upper electricity of image capture engine and
The link of initialization process, saves the consumption of 240 (90+150) milliseconds, it is only necessary to consume the time portion of IMAQ.And
And when needing to carry out multiple barcode scanning task, Service can trigger image capture engine and carry out continuous acquisition, and will adopt every time
The image frame data for collecting are stored in the frame buffer zone of image frame supervisor, and bar code decoder is according to the barcode scanning for receiving every time
The barcode scanning request of application program, the image frame data obtained in requisition for identification from the frame buffer zone of image frame supervisor are carried out
Decoding, wherein, it is right except the request of first time barcode scanning needs to expend IMAQ part-time and in addition to the bar code decoder decoding time
Subsequent barcode scanning request, the time-consuming of IMAQ part can be omitted, and the main time-consuming of each barcode scanning treatment is only bar code solution
Code device decodes the time (16 milliseconds to 50 milliseconds), so as to greatly save the time of barcode scanning treatment.
Another barcode scanning processing method provided in an embodiment of the present invention, compared with the barcode scanning processing procedure of current serialization,
The embodiment of the present invention can accomplish the parallel processing of IMAQ and barcode image decoding, during decoding, if to needing
Identification image frame data decoding failure, without waiting for image capture engine gather next frame image frame data, can directly from
Next frame image frame data are obtained in predetermined buffer area to be decoded, and save the time of IMAQ, and then can improve and sweep
The efficiency of code treatment.
Further, implementing as Fig. 1 methods describeds, the embodiment of the invention provides a kind of service end, such as Fig. 4
Shown, the service end includes:Trigger element 31, storage unit 32, transmitting element 33.
Trigger element 31, can be used for, when the barcode scanning for receiving barcode scanning application program is asked, triggering image capture engine
It is acquired image frame data.Trigger element 31 is to trigger image capture engine in this service end to be acquired the master of barcode image
Want functional module.In embodiments of the present invention, after collection completes an image frame data, it is without waiting for the image frame data
It is no to be successfully decoded, it is possible to directly to carry out barcode image collection next time, improve the efficiency of barcode image collection, Jin Erke
To improve the efficiency of barcode scanning treatment.
Storage unit 32, can be used for being stored in the image frame data that described image acquisition engine is collected every time predetermined
In buffering area.Wherein, predetermined buffer area can be the spy of the image frame data collected every time for cache image acquisition engine
Determine region.During image frame data are preserved, image frame data out of date are covered, so that the space for saving buffering area provides
Source.
Transmitting element 33, can be used for sending decoding request to bar code decoder.Further, with so that the bar code solution
Code device obtains the image frame data of needs identification from the predetermined buffer area and carries out corresponding decoding.Transmitting element 33 is towards bar
Code decoder, is the main functional modules carried out data transmission between bar code decoder in this service end.
If the follow-up barcode scanning request for receiving barcode scanning application program again, and image capture engine currently gathers figure
Picture, can directly be obtained from predetermined buffer area with bar code decoder needs the image frame data of identification to be decoded next time, such as
Fruit successfully decoded, the then data is activation that will be successfully decoded gives barcode scanning application program;If decoding failure, again from predetermined buffer
A frame image frame data are obtained in area again to continue to decode, this decoding process is repeated, until successfully decoded or decoding time-out.
Further, the image frame number of identification is needed in order to bar code decoder can be obtained from predetermined buffer area exactly
According to improve decoding accuracy rate, as shown in figure 5, the service end can also include:Recording unit 34.
Recording unit 34, the described image acquisition engine that can be used for being preserved in predetermined buffer area described in real time record is each
The use state information of the image frame data for collecting.And then the bar code decoder is caused according to the use state information,
Being obtained from the predetermined buffer area needs the image frame data of identification and carries out corresponding decoding.
Further, in order to save the time that barcode scanning is processed, the efficiency of barcode scanning treatment is improved, as shown in figure 5, the service
End can also include:Processing unit 35.
Processing unit 35, can be used for carrying out described image acquisition engine upper electricity and initialization process, and trigger described
Image capture engine maintains the state of upper electricity and initialization process.And then when the barcode scanning for receiving barcode scanning application program is asked,
Image capture engine can directly be triggered carries out IMAQ, without being carried out to image capture engine again at upper electricity and initialization
Reason, saves the time of barcode scanning treatment, such that it is able to improve the efficiency of barcode scanning treatment.
Further, in order to avoid same image frame data are carried out with repeat decoding, the decoding effect of image frame data is improved
Rate, as shown in figure 5, the service end can also include:Delete unit 36.
Unit 36 is deleted, be can be used for being spaced to schedule and deleted decoded image from the predetermined buffer area
Frame data.For example, decoded image frame data are deleted from predetermined buffer area every 6 milliseconds, either successfully decoded or
Decoding failure, and then the space resources in predetermined buffer area can be ensured, the image frame data for newly collecting can be stored in predetermined
In buffering area.
It should be noted that other of each functional unit involved by a kind of service end provided in an embodiment of the present invention are accordingly retouched
State, may be referred to the correspondence description in Fig. 1, will not be repeated here.
A kind of service end provided in an embodiment of the present invention, including:Trigger element, storage unit, transmitting element, record
Unit, processing unit, deletion unit etc., compared with the barcode scanning processing procedure of current serialization, the embodiment of the present invention can be by place
Manage unit carries out upper electricity and initialization process to image capture engine in advance, and it is upper electric and initial to trigger image capture engine maintenance
State after change treatment so that when each barcode scanning is processed, without carrying out upper electricity and initialization process, section to image capture engine again
The time of barcode scanning treatment is saved, and during decoding, the parallel place of IMAQ and barcode image decoding can have been accomplished
Reason, can save the process time of multiple barcode scanning, and then can improve the efficiency that barcode scanning is processed, and improve barcode scanning performance, especially
It is have more significantly to be lifted to batch barcode scanning performance.
Further, implementing as Fig. 2 methods describeds, the embodiment of the invention provides a kind of bar code decoder,
As shown in fig. 6, the bar code decoder includes:Receiving unit 41, acquiring unit 42, decoding unit 43.
Receiving unit 41, can be used for receiving the decoding request that service end sends, and the decoding request is the service end
The image frame data that image capture engine is collected are stored in what is sent behind predetermined buffer area, are preserved in the predetermined buffer area
There are the image frame data that the image capture engine is collected every time.The service-oriented end of receiving unit 41, is this bar code decoder
In the main functional modules that carry out data transmission between service end.
Acquiring unit 42, can be used for being obtained from the predetermined buffer area image frame data of needs identification.Obtain single
Unit 42 can be to obtain the main functional modules of data to be decoded in this bar code decoder.
Decoding unit 43, can be used for being decoded the image frame data that the needs are recognized.Decoding unit 43 is this
The main functional modules of data decoding are carried out in bar code decoder.
Alternatively, the service end real time record has the use state of the image frame data preserved in the predetermined buffer area
Information, the acquiring unit 42 specifically can be used for according to the use state information, and being obtained from the predetermined buffer area needs
The image frame data to be recognized, the image frame of identification is needed so that bar code decoder can be obtained from predetermined buffer area exactly
Data, and then decoding accuracy rate can be improved.
The use state information is specially just being read status information or is just being written into status information or shape out of date
State information is ready for read status information, the acquiring unit 42, specifically can be used for being obtained from the predetermined buffer area
The use state information is the image frame data for being ready for read status information, so that bar code decoder can exactly from pre-
Being obtained in buffer set needs the image frame data of identification, carries out decoding identification to effective image frame data, and then can carry
Height decoding accuracy rate.
Further, in order to realize the data transfer between bar code decoder and barcode scanning application program, as shown in fig. 7, institute
Stating bar code decoder can also include:Transmitting element 44.
The decoding unit 43, if can be also used for decoding failure to the image frame data for needing identification, from institute
Acquisition needs the next frame image frame data of identification to be decoded in stating predetermined buffer area, repeats this decoding process, until solution
Code success or decoding time-out.
The transmitting element 44, if can be used for successfully decoded, barcode scanning application is given by the data is activation after successfully decoded
Program.
The transmitting element 44, if can be used for decoding time-out, the response for sending decoding failure to the service end is believed
Breath, further, to cause the prompt message of the service end triggering output decoding failure.Wherein, prompt message can be text
This prompt message, picture prompting information, audio prompt information, visual prompts information etc..
It should be noted that other phases of each functional unit involved by a kind of bar code decoder provided in an embodiment of the present invention
Should describe, may be referred to the correspondence description in Fig. 2, will not be repeated here.
A kind of bar code decoder provided in an embodiment of the present invention, including:Receiving unit, acquiring unit, decoding unit, transmission
Unit etc., compared with the barcode scanning processing procedure of current serialization, the embodiment of the present invention can accomplish IMAQ and barcode image
The parallel processing of decoding, during decoding, if the image frame data to needing identification decode failure, adopts without waiting for image
Collection engine collection next frame image frame data, directly can obtain next frame image frame data from predetermined buffer area and be solved
Code, saves the time of IMAQ, and then can improve the efficiency of barcode scanning treatment.
Further, a kind of barcode scanning processing system is the embodiment of the invention provides, as shown in figure 8, the system includes:Clothes
Business end 51 and bar code decoder 52.
The service end 51, can be used for when the barcode scanning for receiving barcode scanning application program is asked, and triggering IMAQ draws
Hold up and be acquired image frame data;The image frame data that described image acquisition engine is collected every time are stored in predetermined buffer area
In and to the bar code decoder 52 send decoding request.
The bar code decoder 52, can be used for receiving the decoding request of the transmission of the service end 51;Make a reservation for delay from described
Rush to be obtained in area and need the image frame data of identification;The image frame data for needing identification are decoded.
A kind of barcode scanning processing system provided in an embodiment of the present invention, compared with the barcode scanning processing procedure of current serialization, this
Inventive embodiments can trigger image capture engine and be acquired when the barcode scanning that service end receives barcode scanning application program is asked
Whether barcode image, after collection completes an image frame data, be successfully decoded, it is possible to straight without waiting for the image frame data
Row barcode image collection next time is tapped into, and the image frame data that will be collected every time are stored in predetermined buffer area, in figure
Can notify that bar code decoder obtains corresponding data and decoded from predetermined buffer area while as collection, and then figure can be accomplished
As collection and the parallel processing of barcode image decoding, the time of multiple barcode scanning treatment can be saved, and then can improved at barcode scanning
The efficiency of reason.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion described in detail in certain embodiment
Point, may refer to the associated description of other embodiment.
It is understood that the correlated characteristic in the above method and device can be referred to mutually.In addition, in above-described embodiment
" first ", " second " etc. be, for distinguishing each embodiment, and not represent the quality of each embodiment.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system
Structure be obvious.Additionally, the present invention is not also directed to any certain programmed language.It is understood that, it is possible to use it is various
Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this hair
Bright preferred forms.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify one or more that the disclosure and helping understands in each inventive aspect, exist
Above to the description of exemplary embodiment of the invention in, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, and wherein each claim is in itself
All as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Unit or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, can use any
Combine to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit is required, summary and accompanying drawing) disclosed in each feature can the alternative features of or similar purpose identical, equivalent by offer carry out generation
Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection is appointed
One of meaning mode can be used in any combination.
All parts embodiment of the invention can be realized with hardware, or be run with one or more processor
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor (DSP) realize a kind of barcode scanning processing method, device according to embodiments of the present invention
And some or all functions of some or all parts in system.The present invention is also implemented as performing institute here
Some or all equipment or program of device of the method for description are (for example, computer program and computer program are produced
Product).It is such to realize that program of the invention be stored on a computer-readable medium, or can have one or more
The form of signal.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal, or to appoint
What other forms is provided.
It should be noted that above-described embodiment the present invention will be described rather than limiting the invention, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol being located between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element listed in the claims or step.Word "a" or "an" before element is not excluded the presence of as multiple
Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer
It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
Claims (10)
1. a kind of barcode scanning processing method, is applied to service end, it is characterised in that including:
When the barcode scanning for receiving barcode scanning application program is asked, triggering image capture engine is acquired image frame data;
The image frame data that described image acquisition engine is collected every time are stored in predetermined buffer area and to bar code decoder
Decoding request is sent, to cause that the bar code decoder obtains the image frame data for needing identification simultaneously from the predetermined buffer area
Carry out corresponding decoding.
2. barcode scanning processing method according to claim 1, it is characterised in that methods described also includes:
The each image frame data for collecting of the described image acquisition engine of preservation makes in predetermined buffer area described in real time record
With status information, to cause the bar code decoder according to the use state information, being obtained from the predetermined buffer area needs
The image frame data to be recognized simultaneously carry out corresponding decoding.
3. a kind of barcode scanning processing method, is applied to bar code decoder, it is characterised in that including:
The decoding request that service end sends is received, the decoding request is the shadow that the service end collects image capture engine
Sent after being stored in predetermined buffer area as frame data, preserve described image acquisition engine in the predetermined buffer area and adopt every time
The image frame data for collecting;
Being obtained from the predetermined buffer area needs the image frame data of identification;
The image frame data for needing identification are decoded.
4. barcode scanning processing method according to claim 3, it is characterised in that the service end real time record has described predetermined
The use state information of the image frame data preserved in buffering area, described acquisition from the predetermined buffer area needs the shadow of identification
As frame data, specifically include:
According to the use state information, being obtained from the predetermined buffer area needs the image frame data of identification.
5. a kind of service end, it is characterised in that including:
Trigger element, for when the barcode scanning for receiving barcode scanning application program is asked, triggering image capture engine to be acquired shadow
As frame data;
Storage unit, for the image frame data that described image acquisition engine is collected every time to be stored in predetermined buffer area;
Transmitting element, for sending decoding request to bar code decoder, to cause the bar code decoder from the predetermined buffer
Being obtained in area needs the image frame data of identification and carries out corresponding decoding.
6. service end according to claim 5, it is characterised in that the service end also includes:
Recording unit, the shadow that the described image acquisition engine for being preserved in predetermined buffer area described in real time record is collected every time
As the use state information of frame data, to cause that the bar code decoder, according to the use state information, makes a reservation for delay from described
Rushing in area to obtain needs the image frame data of identification and carries out corresponding decoding.
7. a kind of bar code decoder, it is characterised in that including:
Receiving unit, the decoding request for receiving service end transmission, the decoding request is the service end by IMAQ
The image frame data that engine is collected are stored in what is sent behind predetermined buffer area, and described image is preserved in the predetermined buffer area
The image frame data that acquisition engine is collected every time;
Acquiring unit, the image frame data of identification are needed for being obtained from the predetermined buffer area;
Decoding unit, for the image frame data for needing identification to be decoded.
8. bar code decoder according to claim 7, it is characterised in that the service end real time record has described predetermined slow
The use state information of the image frame data preserved in area is rushed,
The acquiring unit, specifically for according to the use state information, being obtained from the predetermined buffer area needs identification
Image frame data.
9. bar code decoder according to claim 8, it is characterised in that the use state information is specially just being read
Status information is just being written into status information or status information out of date or is being ready for read status information,
The acquiring unit, specifically for obtaining the use state information from the predetermined buffer area to be ready for reading shape
The image frame data of state information.
10. a kind of barcode scanning processing system, it is characterised in that including:Service end as described in any one of claim 5 to 6 and such as
Bar code decoder described in any one of claim 7 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710146573.9A CN106934318B (en) | 2017-03-13 | 2017-03-13 | Code scanning processing method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710146573.9A CN106934318B (en) | 2017-03-13 | 2017-03-13 | Code scanning processing method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106934318A true CN106934318A (en) | 2017-07-07 |
CN106934318B CN106934318B (en) | 2020-03-06 |
Family
ID=59432210
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710146573.9A Active CN106934318B (en) | 2017-03-13 | 2017-03-13 | Code scanning processing method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106934318B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107609434A (en) * | 2017-07-28 | 2018-01-19 | 福建联迪商用设备有限公司 | A kind of method and its system for testing barcode scanning equipment performance |
CN110555326A (en) * | 2019-09-19 | 2019-12-10 | 福州符号信息科技有限公司 | Bar code decoding method and system based on multi-core processor |
CN111353320A (en) * | 2018-12-24 | 2020-06-30 | 中移(杭州)信息技术有限公司 | Code scanning identification method and device |
CN113297866A (en) * | 2021-05-21 | 2021-08-24 | 苏州视印智能系统有限公司 | Industrial code reader based on deep learning and heat map technology |
CN113297867A (en) * | 2021-05-21 | 2021-08-24 | 苏州视印智能系统有限公司 | On-site distributed deployment self-adaptive learning industrial code reader |
CN115034247A (en) * | 2022-08-11 | 2022-09-09 | 无锡盈达聚力科技有限公司 | Optical information collector and method |
CN115081467A (en) * | 2022-07-22 | 2022-09-20 | 深圳市成为信息股份有限公司 | Method for collecting original image by handset, handset and storage medium |
CN115426442A (en) * | 2022-08-11 | 2022-12-02 | 无锡盈达聚力科技有限公司 | Optical information collector and method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001375A (en) * | 2007-01-18 | 2007-07-18 | 北京中星微电子有限公司 | Method and device for collecting image |
CN103207982A (en) * | 2012-01-13 | 2013-07-17 | 鸿富锦精密工业(深圳)有限公司 | Two-dimensional bar code scanning method and system |
CN103955835A (en) * | 2014-04-22 | 2014-07-30 | 广州宽度信息技术有限公司 | Method and system for live fowl source tracing anti-fake management |
CN104408394A (en) * | 2014-10-28 | 2015-03-11 | 广东欧珀移动通信有限公司 | Two-dimensional code information processing method and communication terminal |
US20160307015A1 (en) * | 2012-03-01 | 2016-10-20 | Honeywell International, Inc. | Method of using camera sensor interface to transfer multiple channels of scan data using an image format |
CN205721814U (en) * | 2016-04-06 | 2016-11-23 | 广东中泽自动识别技术有限公司 | A kind of portable scan code system |
-
2017
- 2017-03-13 CN CN201710146573.9A patent/CN106934318B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001375A (en) * | 2007-01-18 | 2007-07-18 | 北京中星微电子有限公司 | Method and device for collecting image |
CN103207982A (en) * | 2012-01-13 | 2013-07-17 | 鸿富锦精密工业(深圳)有限公司 | Two-dimensional bar code scanning method and system |
US20160307015A1 (en) * | 2012-03-01 | 2016-10-20 | Honeywell International, Inc. | Method of using camera sensor interface to transfer multiple channels of scan data using an image format |
CN103955835A (en) * | 2014-04-22 | 2014-07-30 | 广州宽度信息技术有限公司 | Method and system for live fowl source tracing anti-fake management |
CN104408394A (en) * | 2014-10-28 | 2015-03-11 | 广东欧珀移动通信有限公司 | Two-dimensional code information processing method and communication terminal |
CN205721814U (en) * | 2016-04-06 | 2016-11-23 | 广东中泽自动识别技术有限公司 | A kind of portable scan code system |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107609434B (en) * | 2017-07-28 | 2020-05-19 | 福建联迪商用设备有限公司 | Method and system for testing performance of code scanning equipment |
CN107609434A (en) * | 2017-07-28 | 2018-01-19 | 福建联迪商用设备有限公司 | A kind of method and its system for testing barcode scanning equipment performance |
CN111353320A (en) * | 2018-12-24 | 2020-06-30 | 中移(杭州)信息技术有限公司 | Code scanning identification method and device |
CN110555326A (en) * | 2019-09-19 | 2019-12-10 | 福州符号信息科技有限公司 | Bar code decoding method and system based on multi-core processor |
CN113297866A (en) * | 2021-05-21 | 2021-08-24 | 苏州视印智能系统有限公司 | Industrial code reader based on deep learning and heat map technology |
CN113297867A (en) * | 2021-05-21 | 2021-08-24 | 苏州视印智能系统有限公司 | On-site distributed deployment self-adaptive learning industrial code reader |
CN115081467B (en) * | 2022-07-22 | 2023-02-03 | 深圳市成为信息股份有限公司 | Method for collecting original image by handset, handset and storage medium |
CN115081467A (en) * | 2022-07-22 | 2022-09-20 | 深圳市成为信息股份有限公司 | Method for collecting original image by handset, handset and storage medium |
CN115034247A (en) * | 2022-08-11 | 2022-09-09 | 无锡盈达聚力科技有限公司 | Optical information collector and method |
CN115426442A (en) * | 2022-08-11 | 2022-12-02 | 无锡盈达聚力科技有限公司 | Optical information collector and method |
CN115034247B (en) * | 2022-08-11 | 2022-11-08 | 无锡盈达聚力科技有限公司 | Optical information collector and method |
CN115426442B (en) * | 2022-08-11 | 2023-06-27 | 无锡盈达聚力科技有限公司 | Optical information collector and method |
WO2024032379A1 (en) * | 2022-08-11 | 2024-02-15 | 无锡盈达聚力科技有限公司 | Optical information collector and method therefor |
Also Published As
Publication number | Publication date |
---|---|
CN106934318B (en) | 2020-03-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106934318A (en) | Barcode scanning processing method, apparatus and system | |
CN108536532B (en) | Batch task processing method and system | |
CN109358602A (en) | A kind of failure analysis methods, device and relevant device | |
CN105893225A (en) | Automatic error processing method and device | |
CN107450971A (en) | Task processing method and device | |
CN1831840A (en) | Controller for accessing multiple radio frequency identification (rfid) readers | |
CA2626068A1 (en) | Method and system for detecting undesired email containing image-based messages | |
US9355250B2 (en) | Method and system for rapidly scanning files | |
CN109918141A (en) | Thread execution method, device, terminal and storage medium | |
CN108428074A (en) | A kind of processing method and processing device cancelled an order in order honours an agreement flow | |
CN110119931A (en) | Authorize the method and system, server and machine readable storage medium for picking | |
CN110851324B (en) | Log-based routing inspection processing method and device, electronic equipment and storage medium | |
CN107979490A (en) | The recording method of daily record data and server cluster | |
US10957032B2 (en) | Flexible visual inspection model composition and model instance scheduling | |
CN111782431A (en) | Exception processing method, exception processing device, terminal and storage medium | |
CN103645892B (en) | A kind of image processing method and system | |
CN110472246A (en) | Work order classification method, device and storage medium | |
CN108830833B (en) | Online evaluation method of workpiece identification project, server and terminal | |
US20180039778A1 (en) | Method and device for scanning virus | |
CN110972086A (en) | Short message processing method and device, electronic equipment and computer readable storage medium | |
CN109284483B (en) | Text processing method and device, storage medium and electronic equipment | |
CN107437174A (en) | virtual card management method and device | |
CN110650126A (en) | Method and device for preventing website traffic attack, intelligent terminal and storage medium | |
CN106446221B (en) | Data analysing method and device | |
CN107608858A (en) | Information processing system, method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |