CN101325656A - Image processing method and image picking device - Google Patents
Image processing method and image picking device Download PDFInfo
- Publication number
- CN101325656A CN101325656A CNA2008100294584A CN200810029458A CN101325656A CN 101325656 A CN101325656 A CN 101325656A CN A2008100294584 A CNA2008100294584 A CN A2008100294584A CN 200810029458 A CN200810029458 A CN 200810029458A CN 101325656 A CN101325656 A CN 101325656A
- Authority
- CN
- China
- Prior art keywords
- image
- coke number
- image frame
- reality
- threshold 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
Images
Landscapes
- Studio Devices (AREA)
Abstract
The invention relates to a image processing method, which comprises: generating an ideal focusing value for picking an object; picking up a image picture including the object which corresponds with a real focusing value; comparing the difference between the ideal and real focusing value and the first door bank value; and saving the image picture while the difference is not larger than the door bank value. In the image processing method provided by the invention, that the difference is not larger than the door bank value means the image picture corresponding to the real focusing value is clear enough. Consequently, the method reduces product cost for it can realize the hand-shaking proof function without adding extra assembly.
Description
Technical field
The invention relates to a kind of image treatment method and image capture unit, and particularly relevant for a kind of image treatment method and image capture unit with anti-hand shake function.
Background technology
When using image capture unit such as digital camera, user regular meeting shoots smudgy clear image because of hand shake, and has reduced the quality of image.Cause the problem of fuzzy image for reduction factor sign indicating number camera rocks, digital camera has the function of anti-hand shake usually.In general, present digital camera on the market is to prevent that by the anti-hand shake of optics, the anti-hand shake of electronics or ISO hand shakes the purpose that reaches anti-hand shake.
The anti-hand shake of optics is by the position of movable image transducer or the path of utilization activity eyeglass change light, is adjusted to the image position.Yet the anti-hand shake of this kind optics not only needs suitable precision and complicated mechanical design, more needs sizable space to come ccontaining mechanical component, and makes the volume of digital camera increase many.In addition, in order to reach accurate Machine Design, the cost system of the anti-hand shake of this kind optics is quite high.
The anti-hand shake of electronics is to utilize movable sensor or software to reach anti-hand shake function.For example, by rocking of movable sensor detecting digital camera, and acquisition rocks a minimum image as image output, or utilizes the vibrating locus of movable sensor detecting digital camera, and the image that shakes by the no hand of algorithm reduction.In addition, the image that the anti-hand shake of another kind of electronics system utilizes memory storage to take, and export a minimum image of vibrations in these images, or by algorithm with in these a little images more clearly object be reassembled into a new image.Yet the anti-hand shake of this kind electronics not only needs sizable memory headroom to store the image of having taken, more needs special image processor to carry out hand shake reduction computing.In addition, usually can cause the presentation content distortion by the algorithm process image.
The anti-hand shake of ISO is to detect at movable sensor to improve the susceptibility of image sensor to light when digital camera rocks, and reaches anti-hand shake function to shorten aperture time.Yet, quite be easy to generate noise with the captured image frame of digital camera, and significantly reduce the quality of image with the anti-hand shake function of this kind ISO.
Summary of the invention
Shoot the problem of smudgy clear image in order to solve user regular meeting because of hand shake, the method for a kind of anti-hand shake and simple possible need be provided.
In order to reach above purpose, a kind of image treatment method is provided, may further comprise the steps: the ideal when producing acquisition one object is to coke number; Acquisition has an image frame of object, image frame corresponding to a reality to coke number; Judge desirable to coke number and actual difference to coke number whether greater than one first threshold value; When ideal is less than or equal to first threshold value to coke number and actual difference to coke number, store image frame.
The present invention also proposes a kind of image capture unit.Image capture unit is in order to taking an object, and comprises a processing unit, an image sensor and a storage element.Ideal when processing unit captures object in order to produce is to coke number.Image sensor has an image frame of object in order to acquisition.Image frame is to coke number corresponding to a reality.Judge ideal when processing unit coke number and actual difference to coke number are less than or equal to one first threshold value, processing unit is stored in storage element with image frame.
A kind of image treatment method provided by the invention and image capture unit, when reality is less than or equal to predetermined threshold value to coke number and desirable difference to coke number, expression is enough clear to the image frame of coke number corresponding to this reality, then stores this image frame.Therefore, need not set up extra assembly and can reach anti-hand shake function, make the present invention have advantage cheaply.
Description of drawings
Fig. 1 is the calcspar of a kind of image capture unit of preferred embodiment of the present invention.
Fig. 2 is an example of the image treatment method flow chart of preferred embodiment of the present invention.
Fig. 3 is another example of the image treatment method flow chart of preferred embodiment of the present invention.
Embodiment
Image capture unit of the present invention is in order to taking an object, and comprises a processing unit, an image sensor and a storage element.Ideal when processing unit captures object in order to produce is to coke number.Image sensor has an image frame of object in order to acquisition.Image frame corresponding to a reality to coke number.Judge ideal when processing unit coke number and actual difference to coke number are less than or equal to one first threshold value, processing unit is stored in storage element with image frame.Embodiment is as follows.
Please refer to Fig. 1, Fig. 1 is the calcspar of a kind of image capture unit 100 of preferred embodiment of the present invention.Image capture unit 100 is an example with a digital camera, comprises a processing unit 110, a stepper motor 120, a focus lens 130, an image sensor 140, a shutter 150 and a storage element 160.Processing unit 110 is controlled the position of focus lens 130 with respect to image sensor 140 in order to drive stepper motor 120.Image sensor 140 is photoelectric coupling assembly (CCD) or CMOS (Complementary Metal Oxide Semiconductor) (CMOS) image sensor.When shutter 150 was pressed, light saw through focus lens 130 and images in image sensor 140, made image sensor 140 light sensings and converted image frame accordingly to.Storage element 160 is as non-voltile memory (as flash memory), in order to store the image frame of desire output.Storage element 160 stored a plurality of image frames are many sheet photos that the user can watch.
Preferably, shutter 150 comprises one first section shutter S1 and one second section shutter S2, and first section shutter S1 is in order to trigger the action of automatic focusing, and second section shutter S2 is in order to trigger the action of actual photographed.Ideal when in the present embodiment, processing unit 110 captures an object (not illustrating) in order to produce when first section shutter S1 is triggered is to coke number Vi.In more detail, when first section shutter S1 is triggered, processing unit 110 is constantly to drive stepper motor 120 to control the position of focus lens 130 with respect to image sensor 140.Image sensor 140 is to produce several image frames when focus lens 130 moves.Processing unit 110 calculates the quantity and the readability summation of the contour of object in these image frames respectively, obtains the image sharpness of these a little image frames respectively.Processing unit 110 and image sharpness that will be the highest as ideal to coke number Vi.At this moment, stepper motor 120 is that focus lens 130 is held in the position that can obtain sharp image with respect to the location dimension of image sensor 140, just maintains to obtain desirable position during to coke number Vi, to finish automatic focusing.
On the other hand, when processing unit 110 judge desirable to coke number Vi and actual difference to coke number Va greater than the first threshold value Th1, Im is clear inadequately for the expression image frame, the vibrations that produced when just obtaining image frame Im exceed tolerance interval.So, image sensor 140 captures another image frame Im ' with object once more, and image frame Im ' is to coke number Va ' corresponding to another reality.Processing unit 110 and according to ideal to coke number Vi and actual difference to coke number Va ' whether greater than the first threshold value Th1, decide to store image frame Im ' or take again next time.
Generally speaking, image capture unit can produce desirable to coke number in shooting process.The image capture unit 100 of present embodiment promptly is according to ideal coke number Vi to be determined whether storing the image frame Im that is produced when this time taking with actual difference to coke number Va.When ideal is less than or equal to the first threshold value Th1 to coke number Vi with actual difference to coke number Va, represent that image frame Im is enough clear, then store image frame Im.When ideal to coke number Vi and actual difference to coke number Va greater than the first threshold value Th1, Im is clear inadequately for the expression image frame, then takes next time again.Therefore, image capture unit 100 need not set up other assembly and can reach anti-hand shake function.By this, can reduce the cost of image capture unit 100.
In addition, processing unit 110 comprises a storage element 112.Storage element 112 for example is a buffer.After image sensor 140 pick-up image picture Im, processing unit 110 is that image frame Im is stored in storage element 112.When processing unit 110 judge desirable to coke number Vi and actual difference to coke number Va greater than the first threshold value Th1, then processing unit 110 is stored to storage element 160 with image frame Im from storage element 112.Judge ideal when processing unit 110 coke number Vi is less than or equal to the first threshold value Th1 with actual difference to coke number Va, image sensor 140 can capture another image frame Im ', and another image frame Im ' that processing unit 110 then can be captured image sensor 140 is stored to storage element 112.Thus, the capacity of the storage element 112 of processing unit 110 only needs enough to store the capacity of an image frame, can reach the image capture unit 100 of the anti-hand shake of having of present embodiment effect, to reach the effect of saving storage element 112 sizes.
Preferably, processing unit 110 more comprises a counter 111, takes time numerical value in order to produce one.Whether processing unit 110 more in order to judge to take time numerical value less than one second threshold value Th2, judges whether be triggered between these image sensor 140 pick-up image pictures institute's elapsed time from second section shutter S2 long.Judge ideal when processing unit 110 coke number Vi is taken inferior numerical value less than the second threshold value Th2 with actual difference to coke number Va greater than the first threshold value Th1 and judgement, then image sensor 140 acquisitions have another image frame Im ' of object.On the other hand, when processing unit 110 judges that shooting time numerical value is more than or equal to the second threshold value Th2, it is long that expression is triggered between these image sensor 140 pick-up image pictures institute's elapsed time from second section shutter S2, then processing unit 110 directly will be stored in the storage element 112, and 140 picked image pictures of last image sensor Im is stored to storage element 160.Thus, after second section shutter S2 is triggered a period of time,, image frame Im output can be arranged still if can't produce desirable sharp image picture when coke number Vi is less than or equal to the first threshold value Th1 with actual difference to coke number Va always.
In the present embodiment, processing unit 110 for example is by using a Gradian filter (not illustrating), a Sobel filter (not illustrating) or other filter that can seek the edge to calculate the clear-cut margin degree of image frame Im, and is actual in coke number Va to obtain.The filter factor of Gradian filter can be:
In the image after the Gradian filter process of example thus, the GTG value of a certain picture element is that the GTG of corresponding original picture element is on duty with after 8, and the GTG of eight picture elements that are adjacent is on duty with-1 back sum.The filter factor of Sobel filter can be:
In the image after routine thus Sobel filter process, the GTG value of a certain picture element is that the GTG value of three picture elements of the previous column of corresponding original picture element multiply by-1 ,-2 and-1 respectively, and the GTG value of three picture elements of next column multiply by 1,2 and 1 back sum respectively.
Please refer to Fig. 2, Fig. 2 is an example of the image treatment method flow chart of preferred embodiment of the present invention.At first, shown in step S210, the ideal when processing unit 110 produces the acquisition object is to coke number Vi.Processing unit 110 is desirable to coke number Vi as producing when first section shutter S1 is triggered.In the present embodiment, processing unit 110 is quantity and a readability summation of calculating the contour of object of the image frame that is produced when focus lens 130 moves, obtain the image sharpness of these a little image frames, and image sharpness that will be the highest as ideal to coke number Vi.
Then, shown in step S220, image sensor 140 acquisitions have the image frame Im of object.Image frame Im corresponding to reality to coke number Va.Actual for example is that processing unit 110 calculates the image sharpness of image frame Im and gets to coke number Va.
Secondly, shown in step S230, processing unit 110 judge desirable to coke number Vi and actual difference to coke number Va whether greater than the first threshold value Th1.In step S230, when processing unit 110 judge desirable to coke number Vi and actual difference to coke number Va greater than the first threshold value Th1, Im is clear inadequately for the expression image frame, then repeated execution of steps S220; Judge ideal when processing unit 110 coke number Vi is less than or equal to the first threshold value Th1 with actual difference to coke number Va, expression image frame Im is enough clear, then execution in step S240.In step S240, processing unit 110 stores image frame Im in storage element 160.
Please refer to Fig. 3, Fig. 3 is another example of the image treatment method flow chart of preferred embodiment of the present invention.At first, shown in step S310, first section shutter S1 is triggered.Secondly, shown in step S320, object is carried out focusing automatically.In the present embodiment, focusing program automatically is quantity and the readability summation that processing unit 110 calculates the contour of object in several the image frames that produced when focus lens 130 moves, and obtains the image sharpness of these a little image frames respectively.
Then, shown in step S330, finish the ideal of automatic focusing when producing the acquisition object to coke number Vi, and send prompt tone.Desirable for example is peak in the image sharpness of many image frames calculating of processing unit 110 to coke number Vi.At this moment, stepper motor 120 is held in the position that can obtain sharp image with focus lens 130 with respect to the location dimension of image sensor 140, just maintains and obtains desirable position to coke number Vi.
Afterwards, shown in step S340, second section shutter S2 is triggered.In step S340, counter 111 preferably will be taken time numerical value and be made as 1.
Then, shown in step S350, image sensor 140 acquisitions have the image frame Im of object, and image frame Im is to coke number Va corresponding to reality.Actual for example is that processing unit 110 calculates the image sharpness of image frame Im and gets to coke number Va.
Afterwards, shown in step S360, processing unit 110 judge desirable to coke number Vi and actual difference to coke number Va whether greater than the first threshold value Th1, and judge and whether take time numerical value less than the second threshold value Th2.In step S360, judge ideal when processing unit 110 coke number Vi is taken inferior numerical value less than the second threshold value Th2, then execution in step S370 with actual difference to coke number Va greater than the first threshold value Th1 and judgement.In step S370, will take time numerical value and add repeated execution of steps S350 in the lump, have another image frame Im ' of object with acquisition.
In step S360, judge ideal when processing unit 110 coke number Vi is less than or equal to the first threshold value Th1 with actual difference to coke number Va, or judge and take inferior numerical value more than or equal to the second threshold value Th2, then execution in step S380.In step S380, store image frame Im in storage element 160 to finish actual photographed.
The image treatment method of present embodiment is to utilize image capture unit 100 among Fig. 1 to carry out each step among the 2nd or the 3rd figure, but not as restriction.Have in this technical field know usually the knowledgeable should understand image acquisition method step and the order also can modify and adjust according to the practical application situation.
The reality that disclosed image treatment method of the above embodiment of the present invention and image capture unit are the ideals that produced according to automatic focusing to be produced coke number and actual photographed judges to the difference of coke number whether this time take the image frame that is produced enough clear.When reality is less than or equal to first threshold value to coke number and desirable difference to coke number, represent that this image frame is enough clear, then store image frame with as image output.When ideal to coke number and actual difference to coke number greater than first threshold value, the expression image frame is clear inadequately, then takes next time again.Thus, image capture unit need not increase other nextport hardware component NextPort and can reach anti-hand shake function.Thereby can reduce the cost of image capture unit.
In addition, image capture unit is stored in buffer with the image frame of this shooting after shooting, and judges this image frame as image output or take next time.Thus, the capacity register of image capture unit only needs enough that the size of an image frame of storage gets final product, and can save the buffer space and can save required cost further.
In sum, though the present invention discloses as above with preferred embodiment, so it is not in order to limit the present invention.The persond having ordinary knowledge in the technical field of the present invention, without departing from the spirit and scope of the present invention, when doing various changes and retouching.Therefore, protection scope of the present invention is as the criterion when looking accompanying the claim person of defining.
Claims (10)
1. an image treatment method is characterized in that, comprising:
Ideal when a. producing acquisition one object is to coke number;
B. acquisition has an image frame of this object, this image frame corresponding to a reality to coke number;
C. judge this ideal to coke number and this reality to the difference of coke number whether greater than one first threshold value, when this ideal is less than or equal to this first threshold value, execution in step d to coke number and this reality to the difference of coke number; And
D. store this image frame.
2. image treatment method as claimed in claim 1 is characterized in that, in step c, when this ideal to coke number and this reality to the difference of coke number greater than this first threshold value, then repeated execution of steps b.
3. image treatment method as claimed in claim 1, it is characterized in that, in this step c, judge that more whether one take time numerical value less than one second threshold value, when this ideal to coke number and this reality to the difference of coke number greater than this first threshold value, and should take time numerical value less than this second threshold value, repeated execution of steps b then, this method more comprises:
E. before repeated execution of steps b, should take time numerical value and add one.
4. image treatment method as claimed in claim 3, it is characterized in that, in step c, when this ideal is less than or equal to this first threshold value to coke number and this reality to the difference of coke number, maybe should take time numerical value more than or equal to this second threshold value, then execution in step d.
5. image treatment method as claimed in claim 1 is characterized in that this reality is to obtain by the clear-cut margin degree that calculates this image frame to coke number.
6. image treatment method as claimed in claim 1 is characterized in that this reality is the clear-cut margin degree that corresponds to this image frame to coke number.
7. an image capture unit in order to take an object, is characterized in that, this image capture unit comprises:
One processing unit, the ideal when capturing this object in order to produce is to coke number;
One image sensor has an image frame of this object in order to acquisition, this image frame system corresponding to a reality to coke number; And
One storage element is judged this ideal when this processing unit coke number and this reality is less than or equal to one first threshold value to the difference of coke number that this processing unit is stored in this storage element with this image frame.
8. image capture unit as claimed in claim 7 is characterized in that this processing unit comprises:
One counter is taken time numerical value in order to produce one;
Wherein, when this processing unit judge this ideal to coke number and this reality to the difference of coke number greater than this first threshold value and judge that this shooting time numerical value is less than one second threshold value, this image sensor acquisition has another image frame of this object, and this image frame is to coke number corresponding to another reality in addition.
9. image capture unit as claimed in claim 7 is characterized in that this processing unit system produces this reality to coke number according to the clear-cut margin degree of this image frame.
10. image capture unit as claimed in claim 7 is characterized in that this image capture unit is a digital camera.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008100294584A CN101325656A (en) | 2008-07-10 | 2008-07-10 | Image processing method and image picking device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008100294584A CN101325656A (en) | 2008-07-10 | 2008-07-10 | Image processing method and image picking device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101325656A true CN101325656A (en) | 2008-12-17 |
Family
ID=40188959
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008100294584A Pending CN101325656A (en) | 2008-07-10 | 2008-07-10 | Image processing method and image picking device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101325656A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246131A (en) * | 2013-05-20 | 2013-08-14 | 爱佩仪光电技术(深圳)有限公司 | Method of realizing three-dimensional multi-region automatic focusing by utilizing lens-incline-controllable focusing motor |
-
2008
- 2008-07-10 CN CNA2008100294584A patent/CN101325656A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246131A (en) * | 2013-05-20 | 2013-08-14 | 爱佩仪光电技术(深圳)有限公司 | Method of realizing three-dimensional multi-region automatic focusing by utilizing lens-incline-controllable focusing motor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101300830B (en) | System and method for implementing stability of a plurality of pick-up images driven by movement | |
JP5444562B2 (en) | Digital camera that captures and organizes images before and after shutter signals | |
US8229172B2 (en) | Algorithms for estimating precise and relative object distances in a scene | |
JP6271990B2 (en) | Image processing apparatus and image processing method | |
EP1988705A1 (en) | Improvements in or relating to image sensors | |
JP5536010B2 (en) | Electronic camera, imaging control program, and imaging control method | |
JP6824664B2 (en) | Imaging device and its control method, program | |
US7688360B2 (en) | Imaging apparatus control unit and digital camera | |
US20120307009A1 (en) | Method and apparatus for generating image with shallow depth of field | |
CN101272455A (en) | Image taking apparatus | |
US20150195482A1 (en) | Method, system and smartphone that chooses optimal image to reduce shutter shake | |
CN110266966A (en) | Image generating method and device, electronic equipment, computer readable storage medium | |
CN106488137A (en) | Dual camera focusing method, device and terminal unit | |
CN109559352B (en) | Camera calibration method, device, electronic equipment and computer-readable storage medium | |
CN110430370A (en) | Image processing method, device, storage medium and electronic equipment | |
US20140118606A1 (en) | Smart cameras | |
JP6432723B2 (en) | Imaging apparatus and imaging method | |
CN105120153B (en) | A kind of image capturing method and device | |
KR20100035381A (en) | Image processing method and apparatus, and digital photographing apparatus | |
CN107180417B (en) | Photo processing method and device, computer readable storage medium and electronic equipment | |
CN116308992A (en) | Image processing method and device, electronic equipment and computer readable storage medium | |
TWI420899B (en) | Image processing apparatus and image processing method and storage medium | |
JP6645711B2 (en) | Image processing apparatus, image processing method, and program | |
CN101325656A (en) | Image processing method and image picking device | |
CN112954204B (en) | Photographing control method and device, storage medium and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20081217 |