CN106941579B - The method and device of image scanning - Google Patents
The method and device of image scanning Download PDFInfo
- Publication number
- CN106941579B CN106941579B CN201710125087.9A CN201710125087A CN106941579B CN 106941579 B CN106941579 B CN 106941579B CN 201710125087 A CN201710125087 A CN 201710125087A CN 106941579 B CN106941579 B CN 106941579B
- Authority
- CN
- China
- Prior art keywords
- light compensating
- compensating lamp
- image
- built
- scan image
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/04—Scanning arrangements, i.e. arrangements for the displacement of active reading or reproducing elements relative to the original or reproducing medium, or vice versa
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/74—Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Input (AREA)
Abstract
The problem of the invention discloses a kind of method and devices of image scanning, are related to technical field of data processing, solve existing probe when scanning longer-distance image, can not obtain more visible image.The method comprise the steps that when treating scan image and being scanned, determine whether the exposure brightness of the built-in light compensating lamp based on probe can obtain the scan image for meeting pre-set image decoding request, the pre-set image decoding request is that image definition meets preset threshold;If the exposure brightness of the built-in light compensating lamp based on probe can not obtain the scan image for meeting pre-set image decoding request, opens the external light compensating lamp of probe while carrying out image scanning using built-in light compensating lamp and external light compensating lamp.During the present invention is applied to bar code scan.
Description
Technical field
The present invention relates to technical field of data processing more particularly to a kind of method and devices of image scanning.
Background technique
Scanner is that one kind can obtain scanned image by the sensor of probe, then carry out image data
Decoded equipment.In general, being decoded to image must be set up on the basis of the image clearly of scanning, i.e., probe will be accomplished
Effective scanning.In order to obtain the image being more clear, the probe that existing scanner uses, the usually needs when being scanned
Control the exposure brightness of the included built-in light compensating lamp of probe.However, when the distance of scanning can not obtain clearly image farther out
When, even if maximum value is transferred in the exposure brightness for the built-in light compensating lamp that probe carries, clearly image still can not be got.
Clear image, which can not be got, will lead to decoding failure.
Summary of the invention
In view of the above problems, the present invention provides a kind of method and device of image scanning, to solve existing probe
When scanning longer-distance image, the problem of more visible image can not be obtained.
In order to solve the above technical problems, in a first aspect, the present invention provides a kind of method of image scanning, the method packet
It includes:
When treating scan image and being scanned, determine whether the exposure brightness of the built-in light compensating lamp based on probe can obtain
Meet the scan image of pre-set image decoding request, the pre-set image decoding request is that image definition meets preset threshold;
If the exposure brightness of the built-in light compensating lamp based on probe can not obtain the scanning for meeting pre-set image decoding request
Image then opens the external light compensating lamp of probe while carrying out image scanning using built-in light compensating lamp and external light compensating lamp.
Optionally, the method also includes:
If the exposure brightness of the built-in light compensating lamp based on probe can obtain the scanning figure for meeting pre-set image decoding request
The external light compensating lamp of probe is then set to off closed state by picture, carries out image scanning using built-in light compensating lamp.
Optionally, described when treating scan image and being scanned, determine that the exposure of the built-in light compensating lamp based on probe is bright
Whether degree can obtain the scan image for meeting pre-set image decoding request, comprising:
The scan image scanned when obtaining light compensating lamp exposure brightness maximum built in probe;
Image quality analysis is carried out to scan image;
Judge whether the scan image meets pre-set image decoding request.
Optionally, image is carried out using built-in light compensating lamp and external light compensating lamp simultaneously in the external light compensating lamp for opening probe
After scanning, the method also includes:
After obtaining scan image, judge whether the scan image obtained meets pre-set image decoding request;
If meeting pre-set image decoding request, scan image is decoded and obtains image decoding result.
Optionally, the method also includes:
If the scan image obtained is unsatisfactory for pre-set image decoding request, extremely by the exposure brightness adjustment of external light compensating lamp
After maximum value, dynamic adjusts the exposure brightness of built-in light compensating lamp to reacquire scan image, until the scan image of acquisition is full
Until sufficient pre-set image decoding request;Or,
If the scan image obtained is unsatisfactory for pre-set image decoding request, extremely by the exposure brightness adjustment of built-in light compensating lamp
After maximum value, the exposure brightness of external light compensating lamp is dynamically adjusted to reacquire scan image, until the scan image of acquisition is full
Until sufficient pre-set image decoding request;
The scan image for meeting pre-set image decoding request of acquisition is decoded and obtains image decoding result.
Optionally, the method also includes:
If the exposure brightness of external light compensating lamp and the exposure brightness of built-in light compensating lamp are all adjusted to maximum value, acquisition is swept
Tracing then exports the prompt information of scanning failure as being also unable to satisfy pre-set image decoding request.
Second aspect, the present invention also provides a kind of device of image scanning, described device includes:
Determination unit when being scanned for treating scan image, determines the exposure of the built-in light compensating lamp based on probe
Whether brightness can obtain the scan image for meeting pre-set image decoding request, and the pre-set image decoding request is image definition
Meet preset threshold;
Opening unit, if the exposure brightness for the built-in light compensating lamp based on probe, which can not obtain, meets pre-set image solution
The scan image that code requires, the then external light compensating lamp for opening probe carry out figure using built-in light compensating lamp and external light compensating lamp simultaneously
As scanning.
Optionally, described device further include:
Scanning element, if the exposure brightness for the built-in light compensating lamp based on probe, which can obtain, meets pre-set image decoding
It is required that scan image, then the external light compensating lamp of probe is set to off closed state, using built-in light compensating lamp carry out image sweep
It retouches.
Optionally, the determination unit includes:
Module is obtained, for obtaining the scan image scanned when light compensating lamp built in probe exposes brightness maximum;
Analysis module, for carrying out image quality analysis to scan image;
Judgment module, for judging whether the scan image meets pre-set image decoding request.
Optionally, described device further include:
Judging unit, for the external light compensating lamp for opening probe simultaneously using built-in light compensating lamp and external light compensating lamp into
After row image scanning, after obtaining scan image, judge whether the scan image obtained meets pre-set image decoding request;
Decoding unit, if being decoded acquisition image decoding to scan image for meeting pre-set image decoding request
As a result.
Optionally, described device further include:
Adjustment unit, if the scan image for acquisition is unsatisfactory for pre-set image decoding request, by external light compensating lamp
After exposing brightness adjustment to maximum value, dynamic adjusts the exposure brightness of built-in light compensating lamp to reacquire scan image, until obtaining
Until the scan image taken meets pre-set image decoding request;
The adjustment unit, if the scan image for being also used to obtain is unsatisfactory for pre-set image decoding request, by built-in benefit
After the exposure brightness adjustment to maximum value of light lamp, the exposure brightness of external light compensating lamp is adjusted dynamically to reacquire scan image,
Until the scan image of acquisition meets pre-set image decoding request;
The decoding unit is also used to be decoded acquisition to the scan image for meeting pre-set image decoding request of acquisition
Image decoding result.
Optionally, described device further include:
Output unit, if being all adjusted to maximum for the exposure brightness of external light compensating lamp and the exposure brightness of built-in light compensating lamp
When value, the scan image of acquisition is also unable to satisfy pre-set image decoding request, then exports the prompt information of decoding failure.
By above-mentioned technical proposal, the method and device of image scanning provided by the invention, based on built in probe
Light compensating lamp can not be got meet image definition requirements in the case where, the external light compensating lamp of probe can be automatically turned on, together
When obtain the image being more clear using built-in light compensating lamp and external light compensating lamp, therefore in the farther away situation of scanning distance,
It is no longer limited by the exposure brightness of built-in light compensating lamp, the image being more clear can be got by the auxiliary of external light compensating lamp.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of flow chart of the method for image scanning provided in an embodiment of the present invention;
Fig. 2 shows the flow charts of the method for another image scanning provided in an embodiment of the present invention;
Fig. 3 shows the flow chart of a kind of method of existing image scanning;
Fig. 4 shows the flow chart of the method for another image scanning provided in an embodiment of the present invention;
Fig. 5 shows a kind of composition block diagram of the device of image scanning provided in an embodiment of the present invention;
Fig. 6 shows the composition block diagram of the device of another image scanning provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
To solve the problem of that existing probe can not obtain more visible image when scanning longer-distance image, this
Inventive embodiments provide a kind of method of image scanning, as shown in Figure 1, this method comprises:
Firstly the need of explanation, the embodiment of the present invention is mainly used in barcode scanner, is with barcode scanner below
Example is illustrated.
101, when treating scan image and being scanned, determine that the exposure brightness of the built-in light compensating lamp based on probe whether may be used
Obtain the scan image for meeting pre-set image decoding request.
Wherein, image to be scanned is bar code to be scanned, and the built-in light compensating lamp of probe refers to the included light filling of probe
Lamp.Pre-set image decoding request is that image definition meets preset threshold.It should be noted that including weight in image to be scanned
The information that the needs wanted obtain, only in the case that the scan image that gets of scanning enough clearly, will be to be scanned after ability
Image in include information parse.The principle specifically parsed to image is decoded to image, after decoding
It then carries out being transmitted to the subsequent processing of receiving end (usually computer etc.) progress to digital signal.
It should be noted that the clarity of image can specifically pass through any one existing evaluation image definition
The clarity of function evaluation image.The function of common evaluation image definition has image entropy function, image sharpness function etc..
If the exposure brightness of the built-in light compensating lamp 102, based on probe, which can not obtain, meets pre-set image decoding request
Scan image then opens the external light compensating lamp of probe while carrying out image scanning using built-in light compensating lamp and external light compensating lamp.
" the exposure brightness of the built-in light compensating lamp based on probe can not obtain the scanning figure for meeting pre-set image decoding request
Picture " refers to when the exposure brightness of built-in light compensating lamp is in the case where maximum value, still can not obtain described in above-mentioned steps 101
Meet the scan image of pre-set image decoding request.In practical applications, such case usually occur when probe distance to
In the farther away situation of scan image.
When the exposure brightness of built-in light compensating lamp is in the case where maximum value, still can not obtain described in above-mentioned steps 101
The scan image for meeting pre-set image decoding request when, automatically turn on external light compensating lamp, make the cooperation of external light compensating lamp is built-in to mend
Light lamp is scanned, and the cooperation performance in the application between built-in light compensating lamp and external light compensating lamp can be with are as follows: keeps a benefit
In the case that the exposure brightness of light lamp is constant, the exposure brightness of another light compensating lamp is adjusted, or adjusts two light compensating lamps simultaneously
Exposure brightness, until the scan image of acquisition meets pre-set image decoding request.
It should be noted that the exposure brightness of the usually included built-in light compensating lamp of probe all will not be very high, mainly there is two
The reason of aspect, first be built-in light compensating lamp be not can meet the needs of most of user in very high situation;The
The exposure brightness more large volume of light compensating lamp built in two is bigger, and cost is also higher.More scanning at a distance is carried out for some needs
For the user of (higher exposure brightness), the exposure brightness of built-in light compensating lamp is unable to satisfy use demand in existing probe.
The method of image scanning provided by the invention can not get in the built-in light compensating lamp based on probe and meet image
In the case that clarity requires, the external light compensating lamp of probe can be automatically turned on, while using built-in light compensating lamp and external benefit
Light lamp obtains the image being more clear, therefore in the farther away situation of scanning distance, is no longer exposed brightness by built-in light compensating lamp
Limitation, the image being more clear can be got by the auxiliary of external light compensating lamp.
The embodiment of the invention also provides a kind of methods of image scanning, as shown in Fig. 2, this method comprises:
201, probe is opened, scan image is treated with the exposure brightness of the built-in light compensating lamp of current setting and is scanned,
Obtain scan image.
When usually opening probe, the brightness of built-in light compensating lamp is default default value, then in the state of the default value,
Carry out the scanning of image.It should be noted that above-mentioned default default value can be the default value of user setting in practical applications,
Or the history value that last time uses.
202, image quality analysis is carried out to scan image.
Carrying out image quality analysis to scan image is the clarity for analyzing scan image.The present embodiment is commented with image entropy
The clarity of valence image, image entropy characterize the aggregation properties of image intensity profile, and the bit for being expressed as image gray levels set is flat
Mean, per bit/pixel also illustrate the average information of video source.Usual image entropy is bigger, and image definition is got over
Height, image entropy is smaller, and image definition is lower.The calculation method of specific image entropy is calculated according to existing image entropy function
's.
If 203, scan image meets pre-set image decoding request, acquisition decoding result is decoded to scan image.
" scan image meets pre-set image decoding request " can be " clarity of scan image meets preset requirement ", phase
Method for evaluating image definition in step 202, the clarity of scan image meet the preset requirement i.e. figure of scan image
As entropy meets the requirement that clarity requires corresponding image entropy.In practical applications, it will usually according to actual image definition
It is required that an image entropy threshold is preset, if the image entropy of Current Scan image is more than or equal to preset image entropy threshold,
Indicate that scan image meets pre-set image decoding request, if the image entropy of Current Scan image is less than preset image entropy threshold,
Then indicate that scan image is unsatisfactory for pre-set image decoding request.
If 204, scan image is unsatisfactory for pre-set image decoding request, the exposure brightness of built-in light compensating lamp is adjusted.
Adjust the exposure brightness of built-in light compensating lamp specifically: by the increase of the exposure brightness of built-in light compensating lamp gradually, until
The scan image finally got meets pre-set image decoding request, or built-in light compensating lamp is exposed brightness adjustment to maximum value
When, it still can not get the scan image for meeting pre-set image decoding request.
205, if built-in light compensating lamp is adjusted to maximum value, the scan image got is also unable to satisfy pre-set image decoding
It is required that then open external light compensating lamp while carrying out image scanning using built-in light compensating lamp and external light compensating lamp.
It specifically opens external light compensating lamp while using built-in light compensating lamp and the progress image scanning of external light compensating lamp, including with
Lower three kinds of situations: the first situation is straight with the default value of the exposure brightness of built-in light compensating lamp and the exposure brightness of external light compensating lamp
It connects and is scanned, wherein the default value of the exposure brightness of the exposure brightness and external light compensating lamp of light compensating lamp built in this case is all
Less than the maximum value of corresponding exposure brightness;Second situation is opened the exposure brightness of external light compensating lamp after external light compensating lamp
It is set as maximum value and sets a lower exposure brightness for the exposure brightness of built-in light compensating lamp being scanned;The third
Situation opens after external light compensating lamp and to set maximum value for the exposure brightness of built-in light compensating lamp and by the exposure of external light compensating lamp
Brightness is set as being scanned with a lower exposure brightness.Three cases above can be according to reality in actual application
The user demand on border is designed as any one.
206, after obtaining scan image, judge whether the scan image obtained meets pre-set image decoding request.
Obtain the scan image opened and obtained after external light compensating lamp." judge whether the scan image obtained is full in this step
The implementation of sufficient pre-set image decoding request " is to carry out quality analysis to scan image according to the method in step 202, is obtained
Then the clarity of scan image judges whether scan image meets pre-set image decoding request according to the method in step 203.
If 207, meeting pre-set image decoding request, scan image is decoded and obtains image decoding result.
If opening the scan image obtained after external light compensating lamp is unsatisfactory for pre-set image decoding request, need to adjust built-in
The exposure brightness of light compensating lamp and/or external light compensating lamp, it is specific to adjust process not to the utmost corresponding to three kinds of situations in step 206
It is identical.For the first case, the process specifically adjusted can be with are as follows: at the same increase two light compensating lamps exposure brightness or two
The exposure brightness of light compensating lamp alternately increases, until the scan image of acquisition meets pre-set image decoding request;For
Two kinds of situations, then keeping the exposure brightness of external light compensating lamp is maximum value, and dynamic increases the exposure brightness of built-in light compensating lamp, until
Until the scan image of acquisition meets pre-set image decoding request;For the third situation, then the exposure of built-in light compensating lamp is kept
Brightness is maximum value, dynamically increases the exposure brightness of external light compensating lamp to reacquire scan image, until the scanning figure of acquisition
As until meeting pre-set image decoding request.
It is further to note that being swept with built-in light compensating lamp in cooperation in actual application due to external light compensating lamp
When retouching, since the incident angle to correspond to each other is of different sizes, so the range of adjustable exposure brightness is different, it is usually built-in to mend
The adjustable range of exposure brightness of light lamp is larger, therefore usually second situation can be selected to be adjusted in practical application, real
Border proves that effect in this case is more preferable.
In addition, in actual application, since the exposure brightness of external light compensating lamp is also to have certain range,
There can be the scanning of acquisition when the exposure brightness of external light compensating lamp and the exposure brightness of built-in light compensating lamp are all adjusted to maximum
Image is also unable to satisfy pre-set image decoding request, then exports the prompt information of scanning failure in this case.
Method in order to more clearly describe above-mentioned image scanning provides existing image scanning in a kind of practical application
The flow chart (Fig. 3) of method and the flow chart (Fig. 4) of the method using above-mentioned image scanning being scanned compare and analyze,
The method of image scanning in Fig. 4 is illustrated by taking above-mentioned second situation as an example.It can be seen in figure 3 that carrying out image
During scanning, only built-in light compensating lamp, in the case that maximum value is transferred in the exposure brightness of built-in light compensating lamp, if can not
The scan image for meeting pre-set image decoding request is got, then returns to scanning failure.And in fig. 4 it can be seen that when built-in
In the case that the brightness of light compensating lamp is transferred to maximum value also and can not obtain the scan image for meeting pre-set image decoding request, Ke Yitong
It crosses and opens external light compensating lamp, continue the scanning of image, obtain the scan image for meeting pre-set image decoding request, centainly
Expand the range of scanning in degree, i.e., compared to existing only included built-in light compensating lamp in the case where the method that scans,
It can guarantee in larger distance also available to meeting the scan image of decoding requirements, and obtain decoding result.
Finally, it should be noted that in actual application, when the method for the image scanning in Fig. 2 is embodied, in order to
It determines the need for opening external light compensating lamp, it can also be when opening probe, first by the exposure brightness tune of built-in light compensating lamp
To maximum value, if the exposure brightness of built-in light compensating lamp is transferred to the scan image that maximum value is got and is all unable to satisfy clarity
It is required that then opening external light filling, lamp uses built-in light compensating lamp and the progress image scanning of external light compensating lamp simultaneously;If built-in light filling
The scan image got when the exposure brightness adjustment of lamp is to maximum value meets pre-set image decoding request, then built-in benefit is used only
Light lamp carries out the scanning of image, specific scanning process are as follows: usually first sets default silent for the exposure brightness of built-in light compensating lamp
Recognize value (being specifically as follows half or one third of maximum value etc.), then obtains scan image, then carry out to scan image
Quality analysis judges whether to meet pre-set image decoding request, and the scan image that will acquire if meeting is decoded, and will solve
Code result is transmitted to receiving end (usually computer etc.) and carries out subsequent processing;Light compensating lamp built in increase if being unsatisfactory for gradually
Exposure brightness until the scan image got meets pre-set image decoding request.
Further, as the realization to the various embodiments described above, another embodiment of the embodiment of the present invention additionally provides one
The device of kind image scanning, for realizing method described in above-mentioned Fig. 1 and Fig. 2.As shown in figure 5, the device comprises determining that
Unit 31 and opening unit 32.
Determination unit 31 when being scanned for treating scan image, determines the exposure of the built-in light compensating lamp based on probe
Whether brightness can obtain the scan image for meeting pre-set image decoding request, and pre-set image decoding request is image definition symbol
Close preset threshold;
Wherein, image to be scanned is bar code to be scanned, and the built-in light compensating lamp of probe refers to the included light filling of probe
Lamp.Pre-set image decoding request is that image definition meets preset threshold.It should be noted that including weight in image to be scanned
The information that the needs wanted obtain, only in the case that the scan image that gets of scanning enough clearly, will be to be scanned after ability
Image in include information parse.The principle specifically parsed to image is decoded to image, after decoding
It then carries out being transmitted to the subsequent processing of receiving end (usually computer etc.) progress to digital signal.
It should be noted that the clarity of image can specifically pass through any one existing evaluation image definition
The clarity of function evaluation image.The function of common evaluation image definition has image entropy function, image sharpness function etc..
Opening unit 32, if the exposure brightness for the built-in light compensating lamp based on probe, which can not obtain, meets pre-set image
The scan image of decoding request is then opened the external light compensating lamp of probe while being carried out using built-in light compensating lamp and external light compensating lamp
Image scanning.
" the exposure brightness of the built-in light compensating lamp based on probe can not obtain the scanning figure for meeting pre-set image decoding request
Picture " refers to when the exposure brightness of built-in light compensating lamp is in the case where maximum value, still can not obtain institute in above-mentioned determination unit 31
That states meets the scan image of pre-set image decoding request.In practical applications, such case usually occur when probe away from
From in the farther away situation of image to be scanned.
When the exposure brightness of built-in light compensating lamp is in the case where maximum value, institute in above-mentioned determination unit 31 still can not be obtained
When that states meets the scan image of pre-set image decoding request, external light compensating lamp is automatically turned on, is made built in external light compensating lamp cooperation
Light compensating lamp is scanned, and the cooperation performance in the application between built-in light compensating lamp and external light compensating lamp can be with are as follows: is kept for one
In the case that the exposure brightness of light compensating lamp is constant, the exposure brightness of another light compensating lamp is adjusted, or adjusts two light fillings simultaneously
The exposure brightness of lamp, until the scan image of acquisition meets pre-set image decoding request.
It should be noted that the exposure brightness of the usually included built-in light compensating lamp of probe all will not be very high, mainly there is two
The reason of aspect, first be built-in light compensating lamp be not can meet the needs of most of user in very high situation;The
The exposure brightness more large volume of light compensating lamp built in two is bigger, and cost is also higher.More scanning at a distance is carried out for some needs
For the user of (higher exposure brightness), the exposure brightness of built-in light compensating lamp is unable to satisfy use demand in existing probe.
As shown in fig. 6, device further include:
Scanning element 33, if the exposure brightness for the built-in light compensating lamp based on probe, which can obtain, meets pre-set image solution
The scan image that code requires, then be set to off closed state for the external light compensating lamp of probe, carries out image using built-in light compensating lamp
Scanning.
As shown in fig. 6, determination unit 31 includes:
Module 311 is obtained, for obtaining the scan image scanned when light compensating lamp built in probe exposes brightness maximum;
Analysis module 312, for carrying out image quality analysis to scan image;
Carrying out image quality analysis to scan image is the clarity for analyzing scan image.The present embodiment is commented with image entropy
The clarity of valence image, image entropy characterize the aggregation properties of image intensity profile, and the bit for being expressed as image gray levels set is flat
Mean, per bit/pixel also illustrate the average information of video source.Usual image entropy is bigger, and image definition is got over
Height, image entropy is smaller, and image definition is lower.The calculation method of specific image entropy is calculated according to existing image entropy function
's.
Judgment module 313, for judging whether scan image meets pre-set image decoding request.
" scan image meets pre-set image decoding request " can be " clarity of scan image meets preset requirement ", phase
For evaluating the mode of image definition in analysis module 312, the clarity of scan image meets preset requirement i.e. scan image
Image entropy meet the requirement that clarity requires corresponding image entropy.In practical applications, it will usually clear according to actual image
Clear degree requirement, presets an image entropy threshold, if the image entropy of Current Scan image is more than or equal to preset image entropy threshold
Value, then it represents that scan image meets pre-set image decoding request, if the image entropy of Current Scan image is less than preset image entropy
Threshold value, then it represents that scan image is unsatisfactory for pre-set image decoding request.
As shown in fig. 6, device further include:
Judging unit 34, for using built-in light compensating lamp and external light compensating lamp simultaneously in the external light compensating lamp for opening probe
After carrying out image scanning, after obtaining scan image, judge whether the scan image obtained meets pre-set image decoding request;
Decoding unit 35, if being decoded to scan image for meeting pre-set image decoding request and obtaining image solution
Code result.
As shown in fig. 6, device further include:
Adjustment unit 36, if the scan image for acquisition is unsatisfactory for pre-set image decoding request, by external light compensating lamp
Exposure brightness adjustment to maximum value after, dynamic adjusts the exposure brightness of built-in light compensating lamp to reacquire scan image, until
Until the scan image of acquisition meets pre-set image decoding request;
Adjustment unit 36, if the scan image for being also used to obtain is unsatisfactory for pre-set image decoding request, by built-in light filling
After the exposure brightness adjustment to maximum value of lamp, the exposure brightness of external light compensating lamp is dynamically adjusted to reacquire scan image, directly
Until the scan image of acquisition meets pre-set image decoding request;
Decoding unit 35 is also used to be decoded acquisition figure to the scan image for meeting pre-set image decoding request of acquisition
As decoding result.
As shown in fig. 6, device further include:
Output unit 37, if being all adjusted to most for the exposure brightness of external light compensating lamp and the exposure brightness of built-in light compensating lamp
When big value, the scan image of acquisition is also unable to satisfy pre-set image decoding request, then exports the prompt information of decoding failure.
The method of image scanning provided by the invention can not get in the built-in light compensating lamp based on probe and meet image
In the case that clarity requires, the external light compensating lamp of probe can be automatically turned on, while using built-in light compensating lamp and external benefit
Light lamp obtains the image being more clear, therefore in the farther away situation of scanning distance, is no longer exposed brightness by built-in light compensating lamp
Limitation, the image being more clear can be got by the auxiliary of external light compensating lamp.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
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 and not represent the superiority and inferiority of each embodiment for distinguishing 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, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, 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, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize denomination of invention according to an embodiment of the present invention (such as image scanning
Device) in some or all components some or all functions.The present invention is also implemented as executing institute here
Some or all device or device programs of the method for description are (for example, computer program and computer program produce
Product).It is such to realize that program of the invention can store on a computer-readable medium, or can have one or more
The form of signal.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or to appoint
What other forms provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
Claims (10)
1. a kind of method of image scanning, which is characterized in that the described method includes:
When treating scan image and being scanned, determine whether the exposure brightness of the built-in light compensating lamp based on probe can obtain satisfaction
The scan image of pre-set image decoding request, the pre-set image decoding request are that image definition meets preset threshold;
If the exposure brightness of the built-in light compensating lamp based on probe can not obtain the scan image for meeting pre-set image decoding request,
It then opens the external light compensating lamp of probe while carrying out image scanning using built-in light compensating lamp and external light compensating lamp, wherein is described
The external light compensating lamp for opening probe carries out image scanning using built-in light compensating lamp and external light compensating lamp simultaneously specifically: keeps institute
The exposure brightness for stating any one light compensating lamp in built-in light compensating lamp and external light compensating lamp is constant, adjusts the exposure of another light compensating lamp
Brightness meets pre-set image decoding request until the scan image of acquisition;Alternatively, adjusting the built-in light compensating lamp and external simultaneously
The exposure brightness of two light compensating lamps in light compensating lamp, until the scan image of acquisition meets pre-set image decoding request.
2. the method according to claim 1, wherein the method also includes:
If the exposure brightness of the built-in light compensating lamp based on probe can obtain the scan image for meeting pre-set image decoding request,
The external light compensating lamp of probe is set to off closed state, carries out image scanning using built-in light compensating lamp.
3. determination is based on the method according to claim 1, wherein described when treating scan image and being scanned
Whether the exposure brightness of the built-in light compensating lamp of probe can obtain the scan image for meeting pre-set image decoding request, comprising:
The scan image scanned when obtaining light compensating lamp exposure brightness maximum built in probe;
Image quality analysis is carried out to scan image;
Judge whether the scan image meets pre-set image decoding request.
4. according to the method described in claim 3, it is characterized in that, opening built in the external light compensating lamp use simultaneously of probe
After light compensating lamp and external light compensating lamp carry out image scanning, the method also includes:
After obtaining scan image, judge whether the scan image obtained meets pre-set image decoding request;
If meeting pre-set image decoding request, scan image is decoded and obtains image decoding result.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
If the scan image obtained is unsatisfactory for pre-set image decoding request, by the exposure brightness adjustment of external light compensating lamp to maximum
After value, dynamic adjusts the exposure brightness of built-in light compensating lamp to reacquire scan image, until the scan image of acquisition meets in advance
Until if image decoding requires;Or,
If the scan image obtained is unsatisfactory for pre-set image decoding request, by the exposure brightness adjustment of built-in light compensating lamp to maximum
After value, the exposure brightness of external light compensating lamp is dynamically adjusted to reacquire scan image, until the scan image of acquisition meets in advance
Until if image decoding requires;
The scan image for meeting pre-set image decoding request of acquisition is decoded and obtains image decoding result.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
If the exposure brightness of external light compensating lamp and the exposure brightness of built-in light compensating lamp are all adjusted to maximum value, the scanning figure of acquisition
As being also unable to satisfy pre-set image decoding request, then the prompt information of scanning failure is exported.
7. a kind of device of image scanning, which is characterized in that described device includes:
Determination unit when being scanned for treating scan image, determines the exposure brightness of the built-in light compensating lamp based on probe
Whether the scan image that meets pre-set image decoding request can be obtained, and the pre-set image decoding request meets for image definition
Preset threshold;
Opening unit, if the exposure brightness for the built-in light compensating lamp based on probe can not obtain meet pre-set image decoding want
The scan image asked, the then external light compensating lamp for opening probe carry out image using built-in light compensating lamp and external light compensating lamp simultaneously and sweep
It retouches, wherein the external light compensating lamp for opening probe carries out image scanning using built-in light compensating lamp and external light compensating lamp simultaneously
Specifically: it keeps the exposure brightness of any one light compensating lamp in the built-in light compensating lamp and external light compensating lamp constant, adjusts another
The exposure brightness of a light compensating lamp meets pre-set image decoding request until the scan image of acquisition;Alternatively, being adjusted in described simultaneously
The exposure brightness for setting two light compensating lamps in light compensating lamp and external light compensating lamp, until the scan image of acquisition meets pre-set image decoding
It is required that.
8. device according to claim 7, which is characterized in that described device further include:
Scanning element, if the exposure brightness for the built-in light compensating lamp based on probe, which can obtain, meets pre-set image decoding request
Scan image, then the external light compensating lamp of probe is set to off closed state, use built-in light compensating lamp carry out image scanning.
9. device according to claim 7, which is characterized in that the determination unit includes:
Module is obtained, for obtaining the scan image scanned when light compensating lamp built in probe exposes brightness maximum;
Analysis module, for carrying out image quality analysis to scan image;
Judgment module, for judging whether the scan image meets pre-set image decoding request.
10. device according to claim 9, which is characterized in that described device further include:
Judging unit, for carrying out figure using built-in light compensating lamp and external light compensating lamp simultaneously in the external light compensating lamp for opening probe
After scanning, after obtaining scan image, judge whether the scan image obtained meets pre-set image decoding request;
Decoding unit, if being decoded to scan image for meeting pre-set image decoding request and obtaining image decoding result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710125087.9A CN106941579B (en) | 2017-03-03 | 2017-03-03 | The method and device of image scanning |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710125087.9A CN106941579B (en) | 2017-03-03 | 2017-03-03 | The method and device of image scanning |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106941579A CN106941579A (en) | 2017-07-11 |
CN106941579B true CN106941579B (en) | 2019-03-15 |
Family
ID=59468628
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710125087.9A Active CN106941579B (en) | 2017-03-03 | 2017-03-03 | The method and device of image scanning |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106941579B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107358135B (en) * | 2017-08-28 | 2020-11-27 | 北京奇艺世纪科技有限公司 | Two-dimensional code scanning method and device |
CN108227336B (en) * | 2018-03-19 | 2024-07-02 | 浙江国自机器人技术有限公司 | Light supplementing lamp panel |
CN108965691B (en) * | 2018-06-12 | 2021-03-02 | Oppo广东移动通信有限公司 | Camera control method and device, mobile terminal and storage medium |
CN108900781B (en) * | 2018-07-26 | 2020-11-27 | 珠海格力电器股份有限公司 | Light supplement control method and device for image acquisition device and image acquisition system |
CN109934034A (en) * | 2019-02-22 | 2019-06-25 | 无锡盈达聚力科技有限公司 | A kind of scanning means and barcode scanning method of Parameter adjustable |
CN110012235B (en) * | 2019-05-24 | 2020-09-25 | 上海商米科技集团股份有限公司 | Imaging exposure control method and device, computer readable storage medium and system |
CN110348262A (en) * | 2019-06-20 | 2019-10-18 | 苏州视印智能系统有限公司 | A kind of scanning device, barcode scanning platforms automatic capture system and method |
CN110472455A (en) * | 2019-08-16 | 2019-11-19 | 广州南沙珠江啤酒有限公司 | A kind of two-dimensional code scanning method and system based on background color identification |
CN110855900B (en) * | 2019-11-20 | 2021-04-20 | 何建军 | Photographing control method and system based on external flash light source and storage medium |
CN111881698A (en) * | 2020-06-11 | 2020-11-03 | 上海祥承通讯技术有限公司 | Wharf scanning module multithreading code scanning processing method based on android system |
CN113810553B (en) * | 2021-08-10 | 2023-10-31 | 浪潮金融信息技术有限公司 | Method, system and medium for regulating brightness of light supplementing lamp |
CN114554091B (en) * | 2022-02-23 | 2023-10-20 | 中国计量大学 | Quick image acquisition method for express mobile terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201974815U (en) * | 2011-01-18 | 2011-09-14 | 深圳市民德电子科技有限公司 | Position prompting device of read bar code and bar code reading equipment |
CN102737218A (en) * | 2011-03-10 | 2012-10-17 | 计量仪器公司 | Dual laser scanning code symbol reading system employing automatic object presence detector for automatic laser source selection |
CN103218596A (en) * | 2013-04-17 | 2013-07-24 | 苏州斯普锐智能系统有限公司 | Bar-code scanner with dynamic multi-angle illuminating system and bar-code scanning method thereof |
CN105574457A (en) * | 2015-12-15 | 2016-05-11 | 东软集团股份有限公司 | Light supplementing method and device for scanning terminal |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7398927B2 (en) * | 2005-01-26 | 2008-07-15 | Datalogic Scanning, Inc. | Data reader and methods for imaging targets subject to specular reflection |
US7866557B2 (en) * | 2007-09-27 | 2011-01-11 | Symbol Technologies, Inc. | Imaging-based bar code reader utilizing modified rolling shutter operation |
JP5132363B2 (en) * | 2008-02-29 | 2013-01-30 | パナソニック株式会社 | Light guide device, non-contact communication medium reader / writer device, and electronic apparatus |
CN201576291U (en) * | 2009-12-28 | 2010-09-08 | 天津优尼莱博泰克电子科技发展有限公司 | High-speed two-dimensional barcode scanner |
EP2916258B1 (en) * | 2014-03-06 | 2018-08-01 | Skidata Ag | 2d barcode scanner |
CN105243350A (en) * | 2014-05-28 | 2016-01-13 | 腾讯科技(深圳)有限公司 | Code scanning method and code scanning device |
CN105138940A (en) * | 2015-08-14 | 2015-12-09 | 福建联迪商用设备有限公司 | Light supplementing method in two-dimensional code scanning and system thereof |
-
2017
- 2017-03-03 CN CN201710125087.9A patent/CN106941579B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201974815U (en) * | 2011-01-18 | 2011-09-14 | 深圳市民德电子科技有限公司 | Position prompting device of read bar code and bar code reading equipment |
CN102737218A (en) * | 2011-03-10 | 2012-10-17 | 计量仪器公司 | Dual laser scanning code symbol reading system employing automatic object presence detector for automatic laser source selection |
CN103218596A (en) * | 2013-04-17 | 2013-07-24 | 苏州斯普锐智能系统有限公司 | Bar-code scanner with dynamic multi-angle illuminating system and bar-code scanning method thereof |
CN105574457A (en) * | 2015-12-15 | 2016-05-11 | 东软集团股份有限公司 | Light supplementing method and device for scanning terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106941579A (en) | 2017-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106941579B (en) | The method and device of image scanning | |
CN105745914B (en) | Method and system for inverse tone mapping (ITM) | |
CA2462486C (en) | Automatic color correction for sequences of images | |
US8831343B2 (en) | Image processing and displaying methods for devices that implement color appearance models | |
WO2017165388A1 (en) | Determining a hair color treatment option | |
KR20180091108A (en) | Tone mastering system with creative in-tent metadata | |
US7636098B2 (en) | Salience preserving image fusion | |
US7787710B2 (en) | Image transform apparatus and image transform program | |
JP5529548B2 (en) | Multiple modulator display systems and related methods | |
US9152839B2 (en) | Method and apparatus for optical fingerprint recognition using multiple exposure | |
CN101039439A (en) | Method and apparatus for realizing correction of white balance | |
CN101079954A (en) | Method and device for realizing white balance correction | |
US20040120599A1 (en) | Detection and enhancement of backlit images | |
CN110502942A (en) | Scanning means and its light filling lamp control method | |
JP2011076517A (en) | Optical information reading device and method for setting imaging condition thereof | |
Wang et al. | Endoscopic image luminance enhancement based on the inverse square law for illuminance and retinex | |
US20190213433A1 (en) | Image processing system and method | |
US11830171B2 (en) | Reducing image artifacts in images | |
US9292726B2 (en) | System and method for imaging evidence deposited on curved surfaces | |
JP4652535B2 (en) | Image processing apparatus and method | |
Knecht et al. | Adaptive camera-based color mapping for mixed-reality applications | |
CN104462601B (en) | File scanning method, device and system | |
US11303868B1 (en) | Image quality detection and correction system | |
KR101798215B1 (en) | System and Method for Acquiring and Analizing 3D Fluorescent Image | |
KR102460390B1 (en) | Image processing apparatus, method for processing image and computer-readable recording medium |
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 |