CN107147901A - A kind of sensor calibration method, device, equipment and storage medium - Google Patents
A kind of sensor calibration method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN107147901A CN107147901A CN201710301462.0A CN201710301462A CN107147901A CN 107147901 A CN107147901 A CN 107147901A CN 201710301462 A CN201710301462 A CN 201710301462A CN 107147901 A CN107147901 A CN 107147901A
- Authority
- CN
- China
- Prior art keywords
- length
- target image
- default step
- predetermined luminance
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
-
- 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/024—Details of scanning heads ; Means for illuminating the original
- H04N1/028—Details of scanning heads ; Means for illuminating the original for picture information pick-up
- H04N1/03—Details of scanning heads ; Means for illuminating the original for picture information pick-up with photodetectors arranged in a substantially linear array
- H04N1/031—Details of scanning heads ; Means for illuminating the original for picture information pick-up with photodetectors arranged in a substantially linear array the photodetectors having a one-to-one and optically positive correspondence with the scanned picture elements, e.g. linear contact sensors
Abstract
The embodiment of the invention discloses a kind of sensor calibration method, device, equipment and storage medium, this method includes:First object image is gathered, the present intensity of first object image and the magnitude relationship of predetermined luminance is judged;First step direction is pressed according to magnitude relationship and the first default step-length adjusts the value of constant-current source, and the second target image is gathered after each regulation, until the magnitude relationship reversion of the present intensity and predetermined luminance of the second target image;The value of constant-current source is adjusted by the second step direction and the second default step-length, and the 3rd target image is gathered after each regulation, until the present intensity of the 3rd target image with the difference of predetermined luminance less than or equal to predetermined threshold value;Wherein, the first step direction and the second stepping are in opposite direction;First default step-length is more than the second default step-length.By technical scheme, enable to sensor when gathering same target image, the brightness value of acquisition is same or like.
Description
Technical field
The present embodiments relate to correct field, more particularly to a kind of sensor calibration method, device, equipment and storage
Medium.
Background technology
Contact-type image sensor (Contact Lmage Sensor, CIS) is the one kind occurred at the beginning of the nineties in last century
Novel sensor, it extensively should at present due to having the advantages that small volume, speed are fast, cost is low and installation and debugging are simple
For in image scanning field.
Due to being had differences between the contact-type image sensor that dispatches from the factory, to same target (such as blank sheet of paper) contact figure
As the brightness value of blank sheet of paper that sensor is obtained would also vary from, therefore how contact-type image sensor is corrected and turned into
Nowadays in the urgent need to address the problem of.
The content of the invention
The embodiment of the present invention provides a kind of sensor calibration method, device, equipment and storage medium, to realize to sensing
Device is corrected, and eliminates the difference between different sensors so that sensor is when gathering same target, the brightness of acquisition
Value is same or like.
In a first aspect, the embodiments of the invention provide a kind of sensor calibration method, including:
First object image is gathered, the present intensity of the first object image and the magnitude relationship of predetermined luminance is judged;
The value of constant-current source is adjusted by the first step direction and the first default step-length according to the magnitude relationship, and adjusted every time
The second target image is gathered after section, until the magnitude relationship reversion of the present intensity and predetermined luminance of second target image;
The value of the constant-current source is adjusted by the second step direction and the second default step-length, and the 3rd is gathered after each regulation
Target image, until the 3rd target image present intensity and predetermined luminance difference be less than or equal to predetermined threshold value;
Wherein, first step direction and the second stepping are in opposite direction;Described first default step-length is more than second and preset
Step-length.
Further, it is described that constant-current source is adjusted by the first step direction and the first default step-length according to the magnitude relationship
Value, and the second target image is gathered after each regulation, until the present intensity and predetermined luminance of second target image
Magnitude relationship is inverted, including:
If the present intensity of the second target image is less than predetermined luminance and difference is more than predetermined threshold value, by the value of constant-current source
Increase by the described first default step-length successively, and the second target image is gathered after increasing by the described first default step-length every time, until
The present intensity of second target image of collection is more than predetermined luminance;
If the present intensity of the second target image is more than predetermined luminance and difference is more than predetermined threshold value, by the value of constant-current source
The described first default step-length is sequentially reduced, and the second target image is gathered after the described first default step-length is reduced every time, until
The present intensity of the second target image obtained is less than predetermined luminance.
Further, the value for pressing the second step direction and the second default step-length regulation constant-current source, and each
The 3rd target image is gathered after regulation, until the present intensity of the 3rd target image and the difference of predetermined luminance are less than or equal to
Predetermined threshold value, including:
If first step direction is increases successively, the value of constant-current source is sequentially reduced the described second default step-length,
And gather the 3rd target image after the described second default step-length is reduced every time, until collection the 3rd target image it is current bright
The difference of degree and predetermined luminance is less than or equal to predetermined threshold value;
If first step direction is is sequentially reduced, the value of constant-current source is increased into by the described second default step-length successively,
And gather the 3rd target image after increasing by the described second default step-length every time, until collection the 3rd target image it is current bright
The difference of degree and predetermined luminance is less than or equal to predetermined threshold value.
Further, methods described also includes:
Receive the first default step-length and the second default step-length.
Second aspect, the embodiment of the present invention additionally provides a kind of sensor calibration device, and the device includes:
Judge module, for gathering first object image, judges that the present intensity of the first object image is bright with presetting
The magnitude relationship of degree;
First adjustment module, for adjusting constant current by the first step direction and the first default step-length according to the magnitude relationship
The value in source, and the second target image is gathered after each regulation, until the present intensity of second target image is bright with presetting
The magnitude relationship reversion of degree;
Second adjustment module, the value for adjusting the constant-current source by the second step direction and the second default step-length, and
Gather the 3rd target image after regulation every time, be less than until the present intensity of the 3rd target image and the difference of predetermined luminance or
Equal to predetermined threshold value;
Wherein, first step direction and the second stepping are in opposite direction;Described first default step-length is more than second and preset
Step-length.
Further, first adjustment module includes:
Step-length adding unit, if the present intensity for the second target image is less than predetermined luminance and difference is more than default threshold
Value, then increase by the described first default step-length, and gathered after increasing by the described first default step-length every time successively by the value of constant-current source
Second target image, until the present intensity of the second target image of collection is more than predetermined luminance;
Step-length reduction unit, if the present intensity for the second target image is more than predetermined luminance and difference is more than default threshold
Value, then be sequentially reduced the described first default step-length, and gathered after the described first default step-length is reduced every time by the value of constant-current source
Second target image, until the present intensity of the second target image of acquisition is less than predetermined luminance.
Further, second adjustment module specifically for:
If first step direction is increases successively, the value of constant-current source is sequentially reduced the described second default step-length,
And gather the 3rd target image after the described second default step-length is reduced every time, until collection the 3rd target image it is current bright
The difference of degree and predetermined luminance is less than or equal to predetermined threshold value;
If first step direction is is sequentially reduced, the value of constant-current source is increased into by the described second default step-length successively,
And gather the 3rd target image after increasing by the described second default step-length every time, until collection the 3rd target image it is current bright
The difference of degree and predetermined luminance is less than or equal to predetermined threshold value.
Further, described device also includes:
Receiving module, for receiving the first default step-length and the second default step-length.
The third aspect, the embodiment of the present invention additionally provides a kind of computer equipment, including memory, processor and is stored in
Realized on memory and described in the computer program that can run on a processor during computing device described program as the present invention is real
Apply any described sensor calibration method in example.
Fourth aspect, the embodiment of the present invention additionally provides a kind of computer-readable recording medium, is stored thereon with computer
Program, realizes the sensor calibration method as described in any in the embodiment of the present invention when program is executed by processor.
The embodiment of the present invention judges the present intensity and predetermined luminance of first object image by gathering first object image
Magnitude relationship, the value of constant-current source is adjusted by the first step direction and the first default step-length according to magnitude relationship, and adjusting every time
The second target image is gathered after section, until the present intensity of the second target image and the magnitude relationship of predetermined luminance are inverted, by the
Two step directions and the second default step-length adjust the value of constant-current source, and gather the 3rd target image, Zhi Dao after each regulation
The present intensity of three target images and the difference of predetermined luminance are less than or equal to predetermined threshold value;Wherein, the first step direction and second
Step direction is on the contrary, the first default step-length can be realized and sensor is corrected, eliminate different more than the second default step-length
Difference between sensor so that sensor is when gathering same target image, and the brightness value of acquisition is same or like.
Brief description of the drawings
Fig. 1 is a kind of flow chart of sensor calibration method in the embodiment of the present invention one;
Fig. 2 is a kind of flow chart of sensor calibration method in the embodiment of the present invention two;
Fig. 3 is a kind of structural representation of sensor calibration device in the embodiment of the present invention three;
Fig. 4 is a kind of structural representation of computer equipment in the embodiment of the present invention four.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just
Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 is a kind of flow chart for sensor calibration method that the embodiment of the present invention one is provided, and the present embodiment is applicable to
The situation of sensor calibration, this method can be performed by the device with sensor calibration function in the embodiment of the present invention,
The device can be realized by the way of software and/or hardware, as shown in figure 1, this method specifically includes following steps:
S110, gathers first object image, judges the present intensity of first object image and the magnitude relationship of predetermined luminance.
Wherein, the first object image is the initial image gathered by contact-type image sensor.It is described default bright
Degree can be the first object figure for brightness or other contact-type image sensors collection being manually set based on experience value
The brightness of picture.
Specifically, gathering first object image by contact-type image sensor, the current bright of first object image is judged
The size of degree and predetermined luminance.For example can be, if the first object image collected by contact-type image sensor work as
Preceding brightness is 150, and predetermined luminance is 170, it is determined that the present intensity of first object image is less than predetermined luminance;If passing through contact
The present intensity for the first object image that formula imaging sensor is collected is 170, and predetermined luminance is 150, it is determined that first object
The present intensity of image is more than predetermined luminance.
S120, the value of constant-current source is adjusted according to magnitude relationship by the first step direction and the first default step-length, and each
The second target image is gathered after regulation, until the magnitude relationship reversion of the present intensity and predetermined luminance of the second target image.
Wherein, the magnitude relationship can be more than predetermined luminance for the present intensity of first object image, or the
The present intensity of one target image is less than predetermined luminance.
Wherein, first step direction can be to increase successively, or reduce successively.
Wherein, the first default step-length is big step-length.
Wherein, the magnitude relationship reversion of the present intensity of second target image and predetermined luminance refers to adjusting constant current
The present intensity of first object image is more than predetermined luminance before the value in source, adjusts second target image after the value of constant-current source
Present intensity is less than predetermined luminance;Or the present intensity of first object image is less than in advance before referring to the value of regulation constant-current source
If brightness, the present intensity of the second target image is more than predetermined luminance after the value of regulation constant-current source.
Specifically, according to the magnitude relationship of the present intensity of first object image and predetermined luminance by the value of constant-current source successively
Increase or be sequentially reduced the first default step-length, and the second target image is gathered after each regulation, until the second target image
Present intensity and predetermined luminance magnitude relationship invert.By taking aforesaid way to know the corresponding constant current of predetermined luminance
The interval of the value in source, realizes the coarse adjustment to the value of constant-current source.
S130, the value of constant-current source is adjusted by the second step direction and the second default step-length, and gathers after each regulation the
Three target images, until the 3rd target image present intensity and predetermined luminance difference be less than or equal to predetermined threshold value.
Wherein, the first step direction and the second stepping are in opposite direction;First default step-length is more than the second default step-length.
Wherein, second step direction and the first stepping are in opposite direction, if then the first step direction refers to increasing successively
Plus, then the second step direction refers to reducing successively;If the first step direction refers to reducing successively, the second step direction refers to
Be to increase successively.
Wherein, the second default step-length is small step-length.
Wherein, the present intensity of the 3rd target image and the difference of predetermined luminance are referred to less than or equal to predetermined threshold value
The present intensity of 3rd target image is equal or close with predetermined luminance.Wherein, the predetermined threshold value can rule of thumb people
For setting, the present embodiment is not limited to this.
Specifically, determined according to above-mentioned steps the value of constant-current source it is interval after, increase successively or be sequentially reduced second
Default step-length adjusts the value of constant-current source, and gathers the 3rd target image after each regulation, current until the 3rd target image
The difference of brightness and predetermined luminance is less than or equal to predetermined threshold value.By taking aforesaid way to realize the essence to the value of constant-current source
Really regulation.
Optionally, in addition to:
Receive the first default step-length and the second default step-length.
The technical scheme of the embodiment of the present invention, by gathering first object image, judges the current bright of first object image
The magnitude relationship of degree and predetermined luminance, constant-current source is adjusted according to magnitude relationship by the first step direction and the first default step-length
Value, and the second target image is gathered after each regulation, until the present intensity and the size of predetermined luminance of the second target image
Relation is inverted, and the value of constant-current source is adjusted by the second step direction and the second default step-length, and gathers the 3rd mesh after each regulation
Logo image, until the 3rd target image present intensity and predetermined luminance difference be less than or equal to predetermined threshold value;Wherein, described
One step direction and the second stepping are in opposite direction, and the described first default step-length is more than the second default step-length, can realize to sensing
Device is corrected, and eliminates the difference between different sensors so that sensor when gathering same target image, acquisition
Brightness value is same or like.
Embodiment two
Fig. 2 be the embodiment of the present invention two in a kind of sensor calibration method flow chart, on the basis of above-described embodiment
On, it is described that the value of constant-current source is adjusted by the first step direction and the first default step-length according to the magnitude relationship, and adjusting every time
The second target image is gathered after section, until the magnitude relationship reversion of the present intensity and predetermined luminance of the second target image, including:
If the present intensity of the second target image is less than predetermined luminance and difference is more than predetermined threshold value, the value of constant-current source is increased successively
First default step-length, and the second target image is gathered after the default step-length of each increase by first, until the second target figure of collection
The present intensity of picture is more than predetermined luminance;If the present intensity of the second target image is more than predetermined luminance and difference is more than default threshold
Value, then be sequentially reduced the first default step-length, and gather the second target after the default step-length of each reduction first by the value of constant-current source
Image, until the present intensity of the second target image of acquisition is less than predetermined luminance.
As shown in Fig. 2 the method for the present embodiment specifically includes following steps:
S210, gathers first object image, judges the present intensity of first object image and the magnitude relationship of predetermined luminance.
S220, if the present intensity of the second target image is less than predetermined luminance and difference is more than predetermined threshold value, by constant current
The value in source increases by the first default step-length successively, and gathers the second target image after the default step-length of each increase by first, until adopting
The present intensity of second target image of collection is more than predetermined luminance.
S230, if the present intensity of the second target image is more than predetermined luminance and difference is more than predetermined threshold value, by constant current
The value in source is sequentially reduced the first default step-length, and gathers the second target image after the default step-length of each reduction first, until obtaining
The present intensity of the second target image taken is less than predetermined luminance.
During actually implementing, the second target that collection is determined whether after the first default step-length can be adjusted every time
Whether the present intensity of image and the difference of predetermined luminance are less than predetermined threshold value, during being adjusted with the first default step-length
Desired adjustment structure is just had been realized in, the value that can directly confirm current constant-current source is the desired target of trimming process
Value.
Specifically, first adjusting the changing value of constant-current source according to big step-length, the interval of the corresponding constant-current source of predetermined luminance is found out;
Then the value of which constant-current source is specifically corresponded to further according to the lookup predetermined luminance of small step-length finely.
S240, is sequentially reduced the described second default step-length, and reducing the described second default step every time by the value of constant-current source
The 3rd target image is gathered after length, until the present intensity of the 3rd target image and the difference of predetermined luminance of collection are less than or equal to
Predetermined threshold value;
S250, increases by the described second default step-length, and increasing by the described second default step every time successively by the value of constant-current source
The 3rd target image is gathered after length, until the present intensity of the 3rd target image and the difference of predetermined luminance of collection are less than or equal to
Predetermined threshold value.
S240 and S250 are subsequently adjusted for the first step direction and the first correspondence for implementing progress for presetting step-length
It is whole, i.e., the follow-up adjustment corresponding to S220 and S230;For the trimming process of single CIS sensors, S220 and S230 are only
Perform once, S240 and S250 are also only corresponded to and performed once, and which is specifically performed and determined by adjustment process before.
In a specific example, the brightness of blank sheet of paper is gathered by contact-type image sensor to be corrected, if blank sheet of paper
Brightness be less than predetermined luminance, according to big step-length (such as 10) increase constant-current source value, collection several times, until the blank sheet of paper of collection is bright
Degree is more than predetermined luminance.If the brightness of blank sheet of paper is more than predetermined luminance, reduce the value of constant-current source according to big step-length (such as 10), if collection
Dry time, until the blank sheet of paper brightness of collection is less than predetermined luminance.According to above-mentioned steps, predetermined luminance correspondence constant current source value can be known
Interval (siding-to-siding block length is 10), in this minizone according to small step-length (such as 1 or 2) adjust constant-current source value.Such as from
Minimum constant current source value in the interval of constant current source value increases the value that small step-length adjusts constant-current source successively, until the blank sheet of paper collected is bright
The value of degree constant-current source equal with predetermined luminance or close with predetermined luminance, is used as final corrected value.For example can be,
Predetermined luminance is 170, and the present intensity of first object image is 150, and the value of constant-current source is 100.When the value of constant-current source is increased to
When 180, the brightness of collection is 170.According to former correcting mode, we increase the value of constant-current source, it is necessary to adjust 80 times successively
The value of constant-current source.According to immediate mode, we first carry out 7 coarse regulation, it is known that the corresponding constant-current source of predetermined luminance is interval.Then
, can the accurate corresponding constant current source value of a predetermined luminance value further according to most 5 fine controls.Only needing to most 12 corrections can be accurate
Really obtain the constant current source value required for predetermined luminance.
The technical scheme of the embodiment of the present invention, by gathering first object image, judges the current bright of first object image
The magnitude relationship of degree and predetermined luminance, constant-current source is adjusted according to magnitude relationship by the first step direction and the first default step-length
Value, and the second target image is gathered after each regulation, until the present intensity and the size of predetermined luminance of the second target image
Relation is inverted, and the value of constant-current source is adjusted by the second step direction and the second default step-length, and gathers the 3rd mesh after each regulation
Logo image, until the 3rd target image present intensity and predetermined luminance difference be less than or equal to predetermined threshold value;Wherein, the first step
Enter direction and the second stepping is in opposite direction, the first default step-length is more than the second default step-length, can realize and carry out school to sensor
Just, the difference between different sensors is eliminated so that sensor is when gathering same target image, the brightness value phase of acquisition
It is same or close.
Embodiment three
Fig. 3 is a kind of structural representation of sensor calibration device of the embodiment of the present invention three.The present embodiment is applicable to
The situation of sensor calibration, the device can realize that the device can be integrated in any offer biography by the way of software and/or hardware
In the equipment of sensor correction, as shown in figure 3, the sensor calibration device is specifically included:Judge module 310, first adjusts mould
The adjustment module 330 of block 320 and second.
Wherein, judge module 310, for gathering first object image, judge the present intensity of first object image with it is pre-
If the magnitude relationship of brightness;
First adjustment module 320, for being adjusted according to the magnitude relationship by the first step direction and the first default step-length
The value of constant-current source, and the second target image is gathered after each regulation, until the present intensity of the second target image is bright with presetting
The magnitude relationship reversion of degree;
Second adjustment module 330, the value for adjusting the constant-current source by the second step direction and the second default step-length, and
The 3rd target image is gathered after each regulation, until the present intensity of the 3rd target image and the difference of predetermined luminance are less than or wait
In predetermined threshold value;
Wherein, the first step direction and the second stepping are in opposite direction;First default step-length is more than the second default step-length.
Optionally, first adjustment module 320 includes:
Step-length adding unit, if the present intensity for the second target image is less than predetermined luminance and difference is more than default threshold
Value, then increase by the described first default step-length, and gathered after increasing by the described first default step-length every time successively by the value of constant-current source
Second target image, until the present intensity of the second target image of collection is more than predetermined luminance;
Step-length reduction unit, if the present intensity for the second target image is more than predetermined luminance and difference is more than default threshold
Value, then be sequentially reduced the described first default step-length, and gathered after the described first default step-length is reduced every time by the value of constant-current source
Second target image, until the present intensity of the second target image of acquisition is less than predetermined luminance.
Optionally, second adjustment module 330 specifically for:
If first step direction is increases successively, the value of constant-current source is sequentially reduced the described second default step-length,
And gather the 3rd target image after the described second default step-length is reduced every time, until collection the 3rd target image it is current bright
The difference of degree and predetermined luminance is less than or equal to predetermined threshold value;
If first step direction is is sequentially reduced, the value of constant-current source is increased into by the described second default step-length successively,
And gather the 3rd target image after increasing by the described second default step-length every time, until collection the 3rd target image it is current bright
The difference of degree and predetermined luminance is less than or equal to predetermined threshold value.
Optionally, described device also includes:
Receiving module, for receiving the first default step-length and the second default step-length.
The technical scheme of the present embodiment, by gathering first object image, judge the present intensity of first object image with
The magnitude relationship of predetermined luminance, the value of constant-current source is adjusted according to magnitude relationship by the first step direction and the first default step-length, and
The second target image is gathered after each regulation, until the present intensity of the second target image and the magnitude relationship of predetermined luminance are anti-
Turn, the value of constant-current source adjusted by the second step direction and the second default step-length, and the 3rd target image is gathered after each regulation,
Until the present intensity of the 3rd target image and the difference of predetermined luminance are less than or equal to predetermined threshold value;Wherein, the first step direction
In opposite direction with the second stepping, the first default step-length is more than the second default step-length, can realize and sensor is corrected, eliminate
Difference between different sensors so that sensor is when gathering same target image, and the brightness value of acquisition is identical or phase
Closely.
Example IV
Fig. 4 is a kind of structural representation for computer equipment that the embodiment of the present invention four is provided.Fig. 4 is shown suitable for being used for
Realize the block diagram of the exemplary computer device 12 of embodiment of the present invention.The computer equipment 12 that Fig. 4 is shown is only one
Example, should not carry out any limitation to the function of the embodiment of the present invention and using range band.
As shown in figure 4, computer equipment 12 is showed in the form of universal computing device.The component of computer equipment 12 can be with
Including but not limited to:One or more processor or processing unit 16, system storage 28 connect different system component
The bus 18 of (including system storage 28 and processing unit 16).
Bus 18 represents the one or more in a few class bus structures, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.Lift
For example, these architectures include but is not limited to industry standard architecture (ISA) bus, MCA (MAC)
Bus, enhanced isa bus, VESA's (VESA) local bus and periphery component interconnection (PCI) bus.
Computer equipment 12 typically comprises various computing systems computer-readable recording medium.These media can be it is any can be by
The usable medium that computer equipment 12 is accessed, including volatibility and non-volatile media, moveable and immovable medium.
System storage 28 can include the computer system readable media of form of volatile memory, such as arbitrary access
Memory (RAM) 30 and/or cache memory 32.Computer equipment 12 may further include it is other it is removable/can not
Mobile, volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for read-write not
Movably, non-volatile magnetic media (Fig. 4 is not shown, is commonly referred to as " hard disk drive ").Although not shown in Fig. 4, can with
There is provided for the disc driver to may move non-volatile magnetic disk (such as " floppy disk ") read-write, and to removable non-volatile
The CD drive of CD (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driving
Device can be connected by one or more data media interfaces with bus 18.Memory 28 can include the production of at least one program
Product, the program product has one group of (for example, at least one) program module, and these program modules are configured to perform of the invention each
The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42, can be stored in such as memory 28
In, such program module 42 includes --- but being not limited to --- operating system, one or more application program, other programs
The realization of network environment is potentially included in each or certain combination in module and routine data, these examples.Program mould
Block 42 generally performs function and/or method in embodiment described in the invention.
Computer equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24
Deng) communication, the equipment communication interacted with the computer equipment 12 can be also enabled a user to one or more, and/or with making
Obtain any equipment (such as network interface card, modulatedemodulate that the computer equipment 12 can be communicated with one or more of the other computing device
Adjust device etc.) communication.This communication can be carried out by input/output (I/O) interface 22.Also, computer equipment 12 may be used also
To pass through network adapter 20 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network
Network, such as internet) communication.As illustrated, network adapter 20 is led to by other modules of bus 18 and computer equipment 12
Letter.It should be understood that although not shown in the drawings, can combine computer equipment 12 use other hardware and/or software module, including
But it is not limited to:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive
And data backup storage system etc..
Processing unit 16 is stored in program in system storage 28 by operation, thus perform various function application and
Data processing, for example, realize the sensor calibration method that the embodiment of the present invention is provided:First object image is gathered, judges described
The present intensity of first object image and the magnitude relationship of predetermined luminance;According to the magnitude relationship by the first step direction and the
One default step-length adjusts the value of constant-current source, and gathers the second target image after each regulation, until second target image
Present intensity and predetermined luminance magnitude relationship invert;The constant-current source is adjusted by the second step direction and the second default step-length
Value, and the 3rd target image is gathered after each regulation, until the present intensity and predetermined luminance of the 3rd target image
Difference be less than or equal to predetermined threshold value;Wherein, first step direction and the second stepping are in opposite direction;Described first default step
It is long to be more than the second default step-length.
Embodiment five
The embodiment of the present invention five provides a kind of computer-readable recording medium, is stored thereon with computer program, the journey
Sequence is executed by processor the sensor calibration method realized and provided such as all inventive embodiments of the application:Gather first object figure
Picture, judges the present intensity of the first object image and the magnitude relationship of predetermined luminance;First is pressed according to the magnitude relationship
Step direction and the first default step-length adjust the value of constant-current source, and gather the second target image after each regulation, until described
The present intensity of second target image and the magnitude relationship of predetermined luminance are inverted;Adjusted by the second step direction and the second default step-length
Save the value of the constant-current source, and the 3rd target image is gathered after each regulation, it is current bright until the 3rd target image
The difference of degree and predetermined luminance is less than or equal to predetermined threshold value;Wherein, first step direction and the second stepping are in opposite direction;Institute
State the first default step-length and be more than the second default step-length.
Any combination of one or more computer-readable media can be used.Computer-readable medium can be calculated
Machine readable signal medium or computer-readable recording medium.Computer-readable recording medium for example can be --- but do not limit
In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or it is any more than combination.Calculate
The more specifically example (non exhaustive list) of machine readable storage medium storing program for executing includes:Electrical connection with one or more wires, just
Take formula computer disk, hard disk, random access memory (RAM), read-only storage (ROM), erasable type and may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In this document, computer-readable recording medium can any include or store journey
The tangible medium of sequence, the program can be commanded execution system, device or device and use or in connection.
Computer-readable signal media can be included in a base band or as the data-signal of carrier wave part propagation,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but
It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be
Any computer-readable medium beyond computer-readable recording medium, the computer-readable medium can send, propagate or
Transmit for being used or program in connection by instruction execution system, device or device.
The program code included on computer-readable medium can be transmitted with any appropriate medium, including --- but do not limit
In --- wireless, electric wire, optical cable, RF etc., or above-mentioned any appropriate combination.
It can be write with one or more programming languages or its combination for performing the computer that the present invention is operated
Program code, described program design language includes object oriented program language-such as Java, Smalltalk, C++,
Also include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
Fully perform, partly perform on the user computer on the user computer, as independent software kit execution, a portion
Divide part execution or the execution completely on remote computer or server on the remote computer on the user computer.
Be related in the situation of remote computer, remote computer can be by the network of any kind --- including LAN (LAN) or
Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (is for example carried using Internet service
Come for business by Internet connection).
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art it is various it is obvious change,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (10)
1. a kind of sensor calibration method, it is characterised in that including:
First object image is gathered, the present intensity of the first object image and the magnitude relationship of predetermined luminance is judged;
The value of constant-current source is adjusted by the first step direction and the first default step-length according to the magnitude relationship, and after each regulation
The second target image is gathered, until the magnitude relationship reversion of the present intensity and predetermined luminance of second target image;
The value of the constant-current source is adjusted by the second step direction and the second default step-length, and the 3rd target is gathered after each regulation
Image, until the 3rd target image present intensity and predetermined luminance difference be less than or equal to predetermined threshold value;
Wherein, first step direction and the second stepping are in opposite direction;Described first default step-length is more than the second default step-length.
2. according to the method described in claim 1, it is characterised in that it is described according to the magnitude relationship by the first step direction and
First default step-length adjusts the value of constant-current source, and gathers the second target image after each regulation, until the second target figure
The present intensity of picture and the magnitude relationship of predetermined luminance are inverted, including:
If the present intensity of the second target image is less than predetermined luminance and difference is more than predetermined threshold value, by the value of constant-current source successively
Increase by the described first default step-length, and the second target image is gathered after increasing by the described first default step-length every time, until collection
The second target image present intensity be more than predetermined luminance;
If the present intensity of the second target image is more than predetermined luminance and difference is more than predetermined threshold value, by the value of constant-current source successively
Reduce the described first default step-length, and the second target image is gathered after the described first default step-length is reduced every time, until obtaining
The second target image present intensity be less than predetermined luminance.
3. method according to claim 2, it is characterised in that described to press the second step direction and the second default step-length regulation
The value of the constant-current source, and the 3rd target image is gathered after each regulation, until the present intensity of the 3rd target image
And the difference of predetermined luminance is less than or equal to predetermined threshold value, including:
If first step direction is increases successively, the value of constant-current source is sequentially reduced the described second default step-length, and
Gather the 3rd target image after reducing the described second default step-length every time, until collection the 3rd target image present intensity with
The difference of predetermined luminance is less than or equal to predetermined threshold value;
If first step direction is is sequentially reduced, the value of constant-current source is increased into by the described second default step-length successively, and
Gather the 3rd target image after increasing by the described second default step-length every time, until collection the 3rd target image present intensity with
The difference of predetermined luminance is less than or equal to predetermined threshold value.
4. the method according to claim any one of 1-3, it is characterised in that methods described also includes:
Receive the first default step-length and the second default step-length.
5. a kind of sensor calibration device, it is characterised in that including:
Judge module, for gathering first object image, judges the present intensity and predetermined luminance of the first object image
Magnitude relationship;
First adjustment module, for adjusting constant-current source by the first step direction and the first default step-length according to the magnitude relationship
Value, and the second target image is gathered after each regulation, until the present intensity and predetermined luminance of second target image
Magnitude relationship is inverted;
Second adjustment module, the value for adjusting the constant-current source by the second step direction and the second default step-length, and each
The 3rd target image is gathered after regulation, until the present intensity of the 3rd target image and the difference of predetermined luminance are less than or equal to
Predetermined threshold value;
Wherein, first step direction and the second stepping are in opposite direction;Described first default step-length is more than the second default step-length.
6. device according to claim 5, it is characterised in that first adjustment module includes:
Step-length adding unit, if the present intensity for the second target image is less than predetermined luminance and difference is more than predetermined threshold value,
The value of constant-current source is then increased into by the described first default step-length successively, and second is gathered after increasing by the described first default step-length every time
Target image, until the present intensity of the second target image of collection is more than predetermined luminance;
Step-length reduction unit, if the present intensity for the second target image is more than predetermined luminance and difference is more than predetermined threshold value,
The value of constant-current source is then sequentially reduced the described first default step-length, and second is gathered after the described first default step-length is reduced every time
Target image, until the present intensity of the second target image of acquisition is less than predetermined luminance.
7. device according to claim 6, it is characterised in that second adjustment module specifically for:
If first step direction is increases successively, the value of constant-current source is sequentially reduced the described second default step-length, and
Gather the 3rd target image after reducing the described second default step-length every time, until collection the 3rd target image present intensity with
The difference of predetermined luminance is less than or equal to predetermined threshold value;
If first step direction is is sequentially reduced, the value of constant-current source is increased into by the described second default step-length successively, and
Gather the 3rd target image after increasing by the described second default step-length every time, until collection the 3rd target image present intensity with
The difference of predetermined luminance is less than or equal to predetermined threshold value.
8. the device according to claim any one of 5-7, it is characterised in that described device also includes:
Receiving module, for receiving the first default step-length and the second default step-length.
9. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor
Calculation machine program, it is characterised in that the side as described in any in claim 1-4 is realized during the computing device described program
Method.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor
The method as described in any in claim 1-4 is realized during execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710301462.0A CN107147901A (en) | 2017-05-02 | 2017-05-02 | A kind of sensor calibration method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710301462.0A CN107147901A (en) | 2017-05-02 | 2017-05-02 | A kind of sensor calibration method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107147901A true CN107147901A (en) | 2017-09-08 |
Family
ID=59775100
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710301462.0A Pending CN107147901A (en) | 2017-05-02 | 2017-05-02 | A kind of sensor calibration method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107147901A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108055530A (en) * | 2017-12-26 | 2018-05-18 | 深圳怡化电脑股份有限公司 | Bearing calibration, device, atm device and the storage medium of imaging sensor |
CN111970463A (en) * | 2020-08-24 | 2020-11-20 | 浙江大华技术股份有限公司 | Aperture correction method and apparatus, storage medium, and electronic apparatus |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1798242A (en) * | 2004-12-29 | 2006-07-05 | 虹光精密工业(苏州)有限公司 | Method for correcting brightness value of image |
JP2007336548A (en) * | 2006-06-14 | 2007-12-27 | Toshiba Corp | Image reading apparatus, image forming apparatus, and image forming method |
JP2008271418A (en) * | 2007-04-24 | 2008-11-06 | Canon Inc | Image forming unit |
CN101557455A (en) * | 2008-04-10 | 2009-10-14 | 致伸科技股份有限公司 | Method for compensating image data illumination and paper feeding type scanning device applying same |
CN102821224A (en) * | 2011-06-09 | 2012-12-12 | 汉王科技股份有限公司 | Method and device for brightness balance of scan imagery |
CN104538005A (en) * | 2014-12-16 | 2015-04-22 | 深圳市金立通信设备有限公司 | Method for adjusting screen brightness |
CN104580701A (en) * | 2014-12-16 | 2015-04-29 | 深圳市金立通信设备有限公司 | Terminal |
CN105574457A (en) * | 2015-12-15 | 2016-05-11 | 东软集团股份有限公司 | Light supplementing method and device for scanning terminal |
CN106231212A (en) * | 2016-09-13 | 2016-12-14 | 深圳怡化电脑股份有限公司 | A kind of method and device of image procossing |
CN106506897A (en) * | 2016-12-06 | 2017-03-15 | 深圳怡化电脑股份有限公司 | A kind of automatic compensating method of the light-source brightness of imageing sensor and device |
-
2017
- 2017-05-02 CN CN201710301462.0A patent/CN107147901A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1798242A (en) * | 2004-12-29 | 2006-07-05 | 虹光精密工业(苏州)有限公司 | Method for correcting brightness value of image |
JP2007336548A (en) * | 2006-06-14 | 2007-12-27 | Toshiba Corp | Image reading apparatus, image forming apparatus, and image forming method |
JP2008271418A (en) * | 2007-04-24 | 2008-11-06 | Canon Inc | Image forming unit |
CN101557455A (en) * | 2008-04-10 | 2009-10-14 | 致伸科技股份有限公司 | Method for compensating image data illumination and paper feeding type scanning device applying same |
CN102821224A (en) * | 2011-06-09 | 2012-12-12 | 汉王科技股份有限公司 | Method and device for brightness balance of scan imagery |
CN104538005A (en) * | 2014-12-16 | 2015-04-22 | 深圳市金立通信设备有限公司 | Method for adjusting screen brightness |
CN104580701A (en) * | 2014-12-16 | 2015-04-29 | 深圳市金立通信设备有限公司 | Terminal |
CN105574457A (en) * | 2015-12-15 | 2016-05-11 | 东软集团股份有限公司 | Light supplementing method and device for scanning terminal |
CN106231212A (en) * | 2016-09-13 | 2016-12-14 | 深圳怡化电脑股份有限公司 | A kind of method and device of image procossing |
CN106506897A (en) * | 2016-12-06 | 2017-03-15 | 深圳怡化电脑股份有限公司 | A kind of automatic compensating method of the light-source brightness of imageing sensor and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108055530A (en) * | 2017-12-26 | 2018-05-18 | 深圳怡化电脑股份有限公司 | Bearing calibration, device, atm device and the storage medium of imaging sensor |
CN111970463A (en) * | 2020-08-24 | 2020-11-20 | 浙江大华技术股份有限公司 | Aperture correction method and apparatus, storage medium, and electronic apparatus |
CN111970463B (en) * | 2020-08-24 | 2022-05-03 | 浙江大华技术股份有限公司 | Aperture correction method and apparatus, storage medium, and electronic apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11496696B2 (en) | Digital photographing apparatus including a plurality of optical systems for acquiring images under different conditions and method of operating the same | |
US8525752B2 (en) | System and method for automatically adjusting electronic display settings | |
KR102423175B1 (en) | An apparatus for editing images using depth map and a method thereof | |
EP2800352A1 (en) | Image pickup apparatus and image processing apparatus | |
KR102598104B1 (en) | Method for displaying text information on an object contained in an image by compensating for motion generated during time of receiving text information from an external electronic device and electronic device thereof | |
CN111862875A (en) | Display method, display panel, display control device, and storage medium | |
US10848686B2 (en) | Method of providing image and electronic device for supporting the method | |
CN107147901A (en) | A kind of sensor calibration method, device, equipment and storage medium | |
US11258954B2 (en) | Image processing method and apparatus, and electronic device and storage medium | |
US20100085451A1 (en) | Signal processing apparatus, signal processing method, and image pickup apparatus | |
CN107077824B (en) | Image display control apparatus, transmission apparatus, image display control method | |
CN110933304B (en) | Method and device for determining to-be-blurred region, storage medium and terminal equipment | |
US9292912B2 (en) | Display apparatus and method for image output thereof | |
WO2020037630A1 (en) | Image processing method, image processing device, electronic device, and storage medium | |
US20230410706A1 (en) | Method for image rendering, terminal device and non-transitory computer-readable storage medium | |
KR102643243B1 (en) | Electronic device to support improved visibility for user interface | |
JP2019028537A (en) | Image processing apparatus and image processing method | |
CN113766139A (en) | Focusing device and method | |
US20220038636A1 (en) | Autofocus method and electronic device performing same | |
KR102457559B1 (en) | Electronic device and method for correcting image based on object included image | |
CN112367399A (en) | Filter effect generation method and device, electronic device and storage medium | |
JP2008122953A (en) | Apparatus for controlling brightness of display using diffractive optical modulator | |
CN112243118A (en) | White balance correction method, device, equipment and storage medium | |
CN113822940B (en) | Flat field correction calibration method, device and system, computer equipment and medium | |
CN110728934B (en) | Holographic projection brightness adjusting system and method, vehicle and storage 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170908 |