WO2017177845A1 - 控制方法、控制装置、电子装置及计算机可读存储介质 - Google Patents
控制方法、控制装置、电子装置及计算机可读存储介质 Download PDFInfo
- Publication number
- WO2017177845A1 WO2017177845A1 PCT/CN2017/079379 CN2017079379W WO2017177845A1 WO 2017177845 A1 WO2017177845 A1 WO 2017177845A1 CN 2017079379 W CN2017079379 W CN 2017079379W WO 2017177845 A1 WO2017177845 A1 WO 2017177845A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- jitter amplitude
- module
- electronic device
- jitter
- 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.)
- Ceased
Links
Images
Classifications
-
- 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/60—Control of cameras or camera modules
- H04N23/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
- H04N23/681—Motion detection
- H04N23/6811—Motion detection based on the image signal
Definitions
- the present invention relates to photographing technology, and in particular, to a control method, a control device, an electronic device, and a computer readable storage medium.
- Embodiments of the present invention provide a control method, a control device, an electronic device, and a computer readable storage medium.
- a control method of an embodiment of the present invention is for controlling an electronic device, the electronic device comprising an imaging device and a motion sensor; the motion sensor is configured to sense a jitter amplitude when the imaging device is imaged; and the control method comprises the following steps :
- a first determining step of determining whether the jitter amplitude corresponding to the exposure image is smaller than the jitter amplitude reference if yes, storing the exposure image in the buffer as a new candidate image and Setting the jitter amplitude of the exposure image to the jitter amplitude reference, and returning to the control step, if not, returning to the control step;
- a control device for controlling an electronic device, the electronic device comprising an imaging device and a motion sensor; the motion sensor for sensing a jitter amplitude when the imaging device is imaged; the control device comprising a determining module And acquiring module, setting module, control module, first judging module, depositing module, triggering module and selecting module.
- the determining module is configured to determine an imaging period; the acquiring module is configured to acquire an candidate image and store the candidate image in a buffer of the electronic device; the setting module is configured to use the candidate image
- the amplitude of the jitter is set as a jitter amplitude reference; the control module is configured to control the imaging device to image an exposure image during the imaging period; and the first determining module is configured to determine the corresponding image of the exposure image Whether the jitter amplitude is smaller than the jitter amplitude reference; the depositing module is configured to store the exposure image into the buffer as a new one when the jitter amplitude corresponding to the exposure image is smaller than the jitter amplitude reference
- the candidate image and the exposed image Setting the jitter amplitude as the jitter amplitude reference and triggering the control module to continue to control the imaging device to image during the imaging period to obtain an exposure image; the triggering module is configured to correspond to the exposure image Triggering the control module to continue to control the imaging device to image during the
- An electronic device includes the control device of the above embodiment.
- a computer readable storage medium has an instruction stored therein, and when the processor of the electronic device executes the instruction, the electronic device performs a control method for performing the above.
- the method of the progressive selection frame used by the control method, the control device and the electronic device of the embodiment of the present invention is essentially the process of finding the minimum value of the jitter amplitude and its corresponding exposure image. All of the exposure images are detected, and once the jitter amplitude is found to be smaller than the current jitter amplitude reference, the corresponding exposure image is stored in the buffer and the jitter amplitude standard is updated. When all the exposure images have been detected, the exposure image with the smallest jitter can be obtained, which can be used as the final image. In this way, screening is performed while taking an exposure image, so that it is not necessary to perform calculation and screening after the end of shooting, thereby saving shooting and processing time. In addition, by traversing a multi-frame exposure image, it is easier to find a higher-definition exposure image, thereby improving the image quality of the final image.
- FIG. 1 is a schematic flow chart of a control method according to an embodiment of the present invention.
- FIG. 2 is a schematic diagram of functional blocks of a control device and an electronic device according to an embodiment of the present invention.
- FIG. 3 is a schematic diagram of functional blocks of a control device and an electronic device according to an embodiment of the present invention.
- FIG. 4 is a schematic diagram showing the principle of a control method according to an embodiment of the present invention.
- FIG. 6 is a schematic diagram of functional blocks of a control device and an electronic device according to an embodiment of the present invention.
- Fig. 7 is a schematic diagram showing the principle of a control method according to an embodiment of the present invention.
- FIG. 9 is a schematic diagram showing functional blocks of a control device and an electronic device according to an embodiment of the present invention.
- FIG. 12 is a schematic diagram showing functional blocks of a control device and an electronic device according to an embodiment of the present invention.
- FIG. 13 is a schematic flow chart of a control method according to an embodiment of the present invention.
- Fig. 14 is a schematic diagram showing the functional blocks of the control device and the electronic device according to the embodiment of the present invention.
- 15 is a flow chart showing a control method of an embodiment of the present invention.
- Fig. 16 is a schematic diagram showing the functional blocks of the control device and the electronic device according to the embodiment of the present invention.
- 17 is a schematic diagram showing the principle of a control method according to an embodiment of the present invention.
- FIG. 18 is a schematic diagram of functional blocks of an electronic device in accordance with some embodiments of the present invention.
- the control method of the embodiment of the present invention can be used to control the electronic device 100.
- the electronic device 100 includes an imaging device 130 and a motion sensor 150.
- the motion sensor 150 can be used to sense the amplitude of the jitter when the imaging device 130 is imaging.
- the control method includes the following steps:
- step S05 determining whether the jitter amplitude corresponding to the exposure image 210 is smaller than the jitter amplitude reference; if yes, proceeding to step S05a, storing the exposure image 210 in the buffer 170 as a new candidate image 230 and setting the jitter amplitude of the exposure image 210 to Shaking the amplitude reference, returning to step S04, and if not, returning to step S04;
- Step S06 The candidate image 230 is taken as the final image 250 after the end of the imaging period.
- control method of the embodiment of the present invention may be implemented by the control device 110 of the embodiment of the present invention.
- the control device 110 includes a determining module 111, an obtaining module 112, a setting module 113, a control module 114, a first determining module 115, a depositing module 115a, a triggering module 115b, and a selecting module 116.
- Step S01 can be implemented by the determining module 111
- step S02 can be implemented by the obtaining module 112
- step S03 can be performed by the setting module 113.
- the step S06 can be implemented by the first determining module 115
- the step S05a can be implemented by the depositing module 115a and the triggering module 115b
- the step S06 can be implemented by the selecting module 116.
- the determination module 111 is used to determine the imaging period.
- the acquisition module 112 can be used to acquire the candidate image 230 and store the candidate image 230 in the buffer 170.
- the setting module 113 can be used to set the jitter amplitude of the candidate image 230 to a jitter amplitude reference.
- Control module 114 can be used to control imaging device 130 to image during the imaging cycle to obtain exposure image 210.
- the first determining module 115 can be configured to determine whether the jitter amplitude corresponding to the exposure image 210 is smaller than the jitter amplitude reference.
- the depositing module 115a can be configured to store the exposed image 210 in the buffer 170 as the new candidate image 230 and set the jitter amplitude of the exposed image 210 as the jitter amplitude reference when the jitter amplitude corresponding to the exposure image 210 is less than the jitter amplitude reference.
- trigger control module 114 continues to control imaging device 130 to image during the imaging cycle to obtain exposure image 210.
- the triggering module 115b can be used to trigger the control module 114 to continue to control the imaging device 130 to image the exposure image 210 during the imaging period when the amplitude of the jitter corresponding to the exposure image 210 is greater than or equal to the jitter amplitude reference.
- the selection module 116 can be used to use the candidate image 230 as the final image 250 after the end of the imaging period.
- the control device 110 or the control method of the embodiment of the present invention can be applied to the electronic device 100 of the embodiment of the present invention. That is, the electronic device 100 of the embodiment of the present invention includes the control device 110 of the embodiment of the present invention.
- the electronic device 100 includes a motion sensor 150, and the motion sensor 150 may be a gyroscope 151 or an acceleration sensor (not shown) or the like.
- the motion sensor 150 can sense the amplitude of the jitter of the electronic device 100, which refers to the severity of the jitter of the electronic device 100.
- the gyroscope 151 can sense the rotation amplitude of the electronic device 100, and the acceleration sensor can sense the motion acceleration of the electronic device 100, and the rotation angular velocity and the motion acceleration can reflect the jitter amplitude of the electronic device 100 to some extent.
- the amplitude of the jitter sensed by the motion sensor 150 may be a single physical quantity, such as a rotational angular velocity or a motion acceleration, or may be a parameter obtained by comprehensively calculating a plurality of physical quantities, for example, giving a rotational angular velocity and a motion acceleration corresponding weights,
- the summation is a physical quantity representing the amplitude of the jitter. Since the general imaging device 130 is integrated in the electronic device 100, the motion sensor 150 senses that the magnitude of the motion of the electronic device 100 can be regarded as equivalent to the amplitude of the jitter of the imaging device 130.
- the amplitude of the shake of the imaging device 130 may reflect the imaging quality of the imaging device 130.
- the motion sensor 130 may also be an image stabilization device 150a, such as an Optical Image Stabilization (OIS).
- the image stabilization device 150a may include a gyroscope 151 or an acceleration sensor or the like to sense the shake of the imaging device 130 and generate a sensing signal.
- Image stabilization device 150a The microprocessor 152 processes the sensed signals and generates corresponding drive signals to drive the lens or image sensor motion to counteract the effects of the shake on the shot, thereby making the captured image sharper.
- the drive signal may be a circuit parameter such as a current of the drive circuit 153.
- the driving signals corresponding to different motion states of the electronic device 100 are different.
- the size of the drive signal (such as the magnitude of the current value) can be used as an indicator to measure the amplitude of the jitter.
- imaging device 130 can include a motor (not shown) for driving a lens or image sensor.
- the drive signal can include a drive current that can be used to drive the motor.
- the magnitude of the drive current reflects the magnitude of the compensating motion of the motor being driven. Since the driving signal is related to the control command and the sensing signal, the magnitude of the driving current may also reflect the magnitude of the intensity of the motion of the imaging device 130 to some extent. Therefore, the magnitude of the drive signal (for example, the magnitude of the current value) can be used as an indicator for measuring the amplitude of the jitter.
- an imaging period is first determined. That is, a period of time during which the imaging device 130 performs shooting after the user presses the shooting button.
- the candidate image 230 is then captured and stored in the buffer 170 of the electronic device 100, for example, stored in a buffer queue, and the jitter amplitude of the candidate image 230 is set to a jitter amplitude reference.
- the first frame image taken during the imaging cycle can be used as the candidate image 230.
- the jitter amplitude reference is not fixed as such.
- the imaging device 130 takes a plurality of frames of photographs during the shooting period. Therefore, after the first candidate image 230 is stored in the buffer 170, whether the amplitude of the jitter corresponding to the exposure image 210 is detected is less than the jitter amplitude reference corresponding to the candidate image 230. If it is not smaller, the next exposure image 210 is continuously detected; if it is smaller, the exposure image 210 is stored in the buffer 170 as a new candidate image 230, and the jitter amplitude is set as the jitter amplitude reference to replace The original jitter amplitude reference.
- the magnitude of the jitter amplitude has a certain degree of correspondence with the sharpness of the photograph.
- the smaller the jitter amplitude of the electronic device 100 the less likely the photograph taken is to cause smearing, and the sharpness is higher.
- the object of the present invention is to improve the sharpness of the image finally taken, it is necessary to find an exposure image 210 having a corresponding small jitter amplitude.
- the embodiment of the present invention adopts a progressive frame selection method, and the essence thereof is to find the minimum jitter amplitude and the corresponding exposure image 210 process.
- All of the exposure images 210 are detected, and once the jitter amplitude is found to be smaller than the current jitter amplitude reference, the corresponding exposure image 210 is stored in the buffer and the jitter amplitude criterion is updated. When all of the exposure images 210 have been detected, an exposure image 210 having the smallest jitter amplitude can be obtained, which can be used as the final image 250.
- the image is taken while the exposure image 210 is being photographed, so that it is not necessary to perform calculation and screening after the end of the shooting, thereby saving the shooting and processing time. Further, by traversing the multi-frame exposure image 210, it is easier to find the higher-definition exposure image 210, thereby improving the image quality of the final image 250.
- multiple imaging cycles can be determined.
- a plurality of imaging periods are divided, and one frame of candidate image 230 is obtained for each imaging period.
- the number of candidate images 230 that need to be obtained can be determined based on the total duration of the shot and the capacity of the buffer 170, thereby determining the number of imaging periods.
- the general imaging cycle is 6-10.
- the control method of the embodiment of the present invention is adopted.
- the candidate image 230 newly stored in the upper cycle is used, and the newly established jitter in the upper cycle is used.
- the amplitude reference is used as the jitter amplitude reference for this cycle.
- the benefit of the segmentation cycle is that it can be screened using traditional shooting and exposure control systems, reducing the difficulty of writing programs.
- the step S02 of acquiring the candidate image 230 and storing the candidate image 230 in the buffer 170 of the electronic device 100 may include:
- S0201 controlling the imaging device 130 to image at the beginning of the imaging cycle to acquire the initial image 211;
- the acquisition module includes a control sub-module 1121 and an establishment sub-module 1123.
- Step S0201 can be implemented by the control sub-module 1121
- step S0203 can be implemented by the establishment sub-module 1123.
- control sub-module 1121 is for controlling the imaging device 130 to image at the beginning of the imaging cycle to acquire the initial image 211; the establishing sub-module 1123 is for using the initial image 211 as the candidate image 230.
- an image taken at the beginning of the imaging period such as the first frame exposure image 210
- the candidate image 230 is taken as the candidate image 230. If the exposure image 210 having a smaller jitter amplitude corresponding to the first frame exposure image 210 is found in the subsequent steps S05 and S05a, the exposure image 210 is stored in the buffer 170 and the jitter amplitude reference is updated. If the amplitude of the jitter of the subsequently taken exposure image 210 is greater than or equal to the jitter amplitude of the first frame exposure image 210, the first frame exposure image 210 is finally used as the final image 250, that is, the captured image that the user can finally see. In this way, it is guaranteed that the final image 250 will be obtained in this shooting, and the result that the shooting fails to obtain any image is avoided.
- the jitter amplitude reference may be preset before the imaging period, and the preset or system preset may be input by the user. If the exposure image 210 whose jitter amplitude reference is smaller than the preset jitter amplitude reference is detected, the exposure is about to be performed. Image 210 is stored in the cache as an alternate image 230 and the jitter amplitude reference is updated. If the exposure image 210 whose jitter amplitude reference is smaller than the preset jitter amplitude reference is not completed at the end of the entire imaging period, the mark fails this time.
- the display fails, so that it does not easily occur.
- a certain definition requirement that is, the jitter amplitude reference is smaller than the preset jitter amplitude reference
- S05c The exposure image 210 is replaced with the candidate image 230 as the new candidate image 230 when the jitter amplitude corresponding to the exposure image 210 is smaller than the jitter amplitude reference.
- control device 10 also includes a replacement module 115c.
- Step S05c can be implemented by the replacement module 115c. That is, the replacement module 115c is for replacing the exposure image 210 with the candidate image 230 as the new candidate image 230 when the jitter amplitude corresponding to the exposure image 210 is less than the jitter amplitude reference.
- the storage space of the buffer 170 is very limited, the number of sheets of the candidate image 230 that can be stored is limited, and the number of sheets of the candidate image 230 stored in the cache queue is generally 6-10 sheets.
- the previous candidate image 230 is replaced with the exposure image 210, or the exposure image 210 is stored in the buffer 170.
- the candidate image 230 simultaneously deletes the original candidate image 230.
- the storage space of the buffer 170 can be greatly saved.
- the candidate image 230 of higher resolution and sharpness can be stored. Therefore, if the resolution that the imaging device 130 can capture is further increased, the buffer space of the buffer 170 does not become a limitation or a technical bottleneck.
- step S07 It is judged whether the amplitude of the jitter corresponding to the final image 250 is smaller than the predetermined jitter amplitude; if so, the process proceeds to step S07a, and the final image 250 is marked as the success image 251, and if not, the capture image S07b is entered, and the final image 250 is marked as the failure image 253.
- control device 10 further includes a second determination module 117, a first indicia module 117a, and a second indicia module 117b.
- Step S07 can be implemented by the second judging module 117
- step S07a can be implemented by the first marking module 117a
- step S07b can be implemented by the second marking module 117b. That is to say, the second determining module 117 is configured to determine whether the jitter amplitude corresponding to the final image 250 is less than a predetermined jitter amplitude.
- the first marking module 117a is for marking the final image 250 as a success image 251 when the magnitude of the jitter corresponding to the final image 250 is less than the predetermined jitter amplitude.
- the second marking module 117b is for marking the final image 250 as the failed image 253 when the jitter amplitude corresponding to the final image 250 is greater than the predetermined jitter amplitude.
- the exposure image 210 corresponding to the relatively small jitter amplitude in the exposure image 210 captured during the imaging period can be selected and used as the final image 250.
- the amplitude of the jitter corresponding to all the exposed images 210 during imaging is generally large, the amplitude of the jitter corresponding to the final image 250 may be large, and there is a possibility that there is a tailing phenomenon or even a blurred image. Therefore, it can be detected whether the amplitude of the jitter of the final image 250 is less than a predetermined jitter amplitude, and the predetermined jitter amplitude may be preset by the system or may be set by a user input.
- the final image 250 satisfies a certain definition requirement, and may be marked as a success image 251; if the jitter amplitude of the final image 250 is greater than or equal to the predetermined jitter amplitude, the final image 250 is illustrated. If the resolution requirement is not met, it can be marked as a failed image 253. In this way, the final image 250 can be distinguished according to the amplitude of the jitter, thereby distinguishing the final image 250 with good quality and quality. Poor final image 250.
- control method of the embodiment of the present invention may include:
- control device 10 also includes a deletion module 118.
- Step S08 can be implemented by the deletion module 118. That is to say, the deletion module 118 is configured to delete the failed image 253 according to the trigger signal.
- the trigger signal may be generated according to user input or automatically generated by the system.
- the user can delete all failed images 253 of the shooting by selecting "select all failed images 253" by input and then selecting "delete” by input.
- the electronic device 100 is made more intelligent, conforms to the user's usage habits and the processing habits of the photos, and improves the user experience.
- the electronic device 100 may include a display 190.
- the control method of the embodiment of the present invention may include:
- S09 A success flag of the success image 251 or/and a failure flag of the display failure image 253 is displayed on the display 190.
- control device also includes a display module 119.
- Step S09 can be implemented by display module 119. That is to say, the display module 119 is used to display the success flag of the success image 251 or/and the failure flag of the display failure image 253 on the display 190.
- display 190 can display whether the final image 250 was a success or a failure.
- the display 10 can include a display screen of a cell phone or tablet. When the user browses the captured image on the display screen, whether the image is "successful in shooting" is clear, and the "successfulness" of the final image 250 can be used as a basis for the user to clean the image, thereby making the electronic device 100 more intelligent and user-friendly. Improved user experience.
- the electronic device 100 may include the control device 110 of the above embodiment.
- the electronic device 100 may include a mobile phone or a tablet.
- the imaging device 130 can include a front camera of a cell phone or tablet.
- processor 40 may perform the following steps:
- step S05 determining whether the jitter amplitude corresponding to the exposure image 210 is smaller than the jitter amplitude reference; if yes, proceeding to step S05a, storing the exposure image 210 in the buffer 170 as a new candidate image 230 and setting the jitter amplitude of the exposure image 210 to Shaking the amplitude reference, returning to step S04, and if not, returning to step S04;
- Step S06 The candidate image 230 is taken as the final image 250 after the end of the imaging period.
- a computer readable storage medium in accordance with an embodiment of the present invention has instructions stored in a computer readable storage medium.
- the processor 40 of the electronic device 100 executes an instruction, the electronic device 100 performs the control method of any of the embodiments of the present invention described above.
- the electronic device 100 may perform the following steps:
- step S05 determining whether the jitter amplitude corresponding to the exposure image 210 is smaller than the jitter amplitude reference; if yes, proceeding to step S05a, storing the exposure image 210 in the buffer 170 as a new candidate image 230 and setting the jitter amplitude of the exposure image 210 to Shaking the amplitude reference, returning to step S04, and if not, returning to step S04;
- Step S06 The candidate image 230 is taken as the final image 250 after the end of the imaging period.
- first and second are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
- features defining “first” or “second” may include one or more of the described features either explicitly or implicitly.
- the meaning of "a plurality" is two or more unless specifically and specifically defined otherwise.
- a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
- computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
- the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
- portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
- multiple steps or methods may be performed by software or firmware stored in a memory and executed by a suitable instruction execution system.
- a suitable instruction execution system For example, if executed in hardware, as in another embodiment, it can be performed by any one of the following techniques or combinations thereof known in the art: having logic gates for performing logic functions on data signals Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
- each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
- the above integrated modules can be executed in the form of hardware or in the form of software functional modules.
- the integrated modules, if executed in the form of software functional modules and sold or used as separate products, may also be stored in a computer readable storage medium.
- the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
本发明公开一种控制方法,用于控制电子装置,电子装置包括成像装置及运动传感器。运动传感器用于感测成像装置成像时的抖动幅度。首先确定成像周期。其次获取备选图像并存入缓存器。接着将备选图像的抖动幅度设定为抖动幅度基准。然后控制成像装置在成像周期内成像以获得曝光图像。然后判断曝光图像对应的抖动幅度是否小于抖动幅度基准。若是,将曝光图像存入缓存器以作为新的备选图像并将曝光图像的抖动幅度设定为抖动幅度基准,再回到控制步骤。最后在成像周期结束后将备选图像作为最终图像。如此,边拍摄曝光图像边进行筛选,节省拍摄及处理时间,并容易找到清晰度较高的曝光图像。本发明还公开一种控制装置、电子装置及计算机可读存储介质。
Description
本发明涉及拍照技术,特别涉及一种控制方法、控制装置、电子装置及计算机可读存储介质。
用户在使用拍照设备拍照时,容易因拍照设备抖动而导致拍出的照片“糊”掉,即有拖尾痕迹,照片不清晰。
发明内容
本发明的实施例提供一种控制方法、控制装置、电子装置及计算机可读存储介质。
本发明实施方式的控制方法,用于控制电子装置,所述电子装置包括成像装置及运动传感器;所述运动传感器用于感测所述成像装置成像时的抖动幅度;所述控制方法包括以下步骤:
确定步骤,确定成像周期;
获取步骤,获取备选图像并将所述备选图像存入所述电子装置的缓存器;
设定步骤,将所述备选图像的抖动幅度设定为抖动幅度基准;
控制步骤,控制所述成像装置在所述成像周期内成像以获得曝光图像;
第一判断步骤,判断所述曝光图像对应的所述抖动幅度是否小于所述抖动幅度基准;若是,将所述曝光图像存入所述缓存器以作为新的所述备选图像并将所述曝光图像的抖动幅度设定为所述抖动幅度基准,再回到所述控制步骤,若否,回到所述控制步骤;及
选择步骤,在所述成像周期结束后将所述备选图像作为最终图像。
本发明实施方式的控制装置,用于控制电子装置,所述电子装置包括成像装置及运动传感器;所述运动传感器用于感测所述成像装置成像时的抖动幅度;所述控制装置包括确定模块、获取模块、设定模块、控制模块、第一判断模块、存入模块、触发模块和选择模块。所述确定模块用于确定成像周期;所述获取模块用于获取备选图像并将所述备选图像存入所述电子装置的缓存器;所述设定模块用于将所述备选图像的抖动幅度设定为抖动幅度基准;所述控制模块用于控制所述成像装置在所述成像周期内成像以获得曝光图像;所述第一判断模块用于判断所述曝光图像对应的所述抖动幅度是否小于所述抖动幅度基准;所述存入模块用于在所述曝光图像对应的所述抖动幅度小于所述抖动幅度基准时将所述曝光图像存入所述缓存器以作为新的所述备选图像并将所述曝光图像
的抖动幅度设定为所述抖动幅度基准并触发所述控制模块继续控制所述成像装置在所述成像周期内成像以获得曝光图像;所述触发模块用于在所述曝光图像对应的所述抖动幅度大于等于所述抖动幅度基准时触发所述控制模块继续控制所述成像装置在所述成像周期内成像以获得曝光图像;所述选择模块用于在所述成像周期结束后将所述备选图像作为最终图像。
本发明实施方式的电子装置包括上述实施方式的控制装置。
本发明实施方式的电子装置,包括壳体、处理器、存储器、电路板和电源电路,其特征在于,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电路板上;所述电源电路用于为所述电子装置的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行上述的控制方法。
本发明实施方式的计算机可读存储介质,具有存储于其中的指令,当电子装置的处理器执行所述指令时,所述电子装置执行用于执行上述的控制方法。
本发明实施方式的控制方法、控制装置和电子装置采用的递进选帧的方式,其实质就是寻找抖动幅度最小值及其对应的曝光图像的过程。检测所有的曝光图像,一旦发现比目前抖动幅度基准小的抖动幅度,便将其对应的曝光图像存入缓存,并更新抖动幅度标准。当检测完所有的曝光图像,即可获得抖动幅度最小的曝光图像,可将其作为最终图像。如此,边拍摄曝光图像边进行筛选,从而不必在拍摄结束后进行计算、筛选,节省了拍摄及处理时间。此外,遍历多帧的曝光图像,更容易找到清晰度较高的曝光图像,从而提升最终图像的画质。
本发明的实施方式的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实施方式的实践了解到。
本发明的上述和/或附加的方面和优点从结合下面附图对实施方式的描述中将变得明显和容易理解,其中:
图1是本发明实施方式的控制方法的流程示意图。
图2是本发明实施方式的控制装置及电子装置的功能模块示意图。
图3是本发明实施方式的控制装置及电子装置的功能模块示意图。
图4是本发明实施方式的控制方法的原理示意图。
图5是本发明实施方式的控制方法的流程示意图。
图6是本发明实施方式的控制装置及电子装置的功能模块示意图。
图7是本发明实施方式的控制方法的原理示意图。
图8是本发明实施方式的控制方法的流程示意图。
图9是本发明实施方式的控制装置及电子装置的功能模块示意图。
图10是本发明实施方式的控制方法的原理示意图。
图11是本发明实施方式的控制方法的流程示意图。
图12是本发明实施方式的控制装置及电子装置的功能模块示意图。
图13是本发明实施方式的控制方法的流程示意图。
图14是本发明实施方式的控制装置及电子装置的功能模块示意图。
图15是本发明实施方式的控制方法的流程示意图。
图16是本发明实施方式的控制装置及电子装置的功能模块示意图。
图17是本发明实施方式的控制方法的原理示意图。
图18是本发明某些实施方式的电子装置的功能模块示意图。
下面详细描述本发明的实施方式,所述实施方式的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。
请一并参阅图1至3,本发明实施方式的控制方法,可用于控制电子装置100。电子装置100包括成像装置130及运动传感器150。运动传感器150可用于感测成像装置130成像时的抖动幅度。控制方法包括以下步骤:
S01:确定成像周期;
S02:获取备选图像230并将备选图像230存入电子装置100的缓存器170;
S03:将备选图像230的抖动幅度设定为抖动幅度基准;
S04:控制成像装置130在成像周期内成像以获得曝光图像210;
S05:判断曝光图像210对应的抖动幅度是否小于抖动幅度基准;若是,进入步骤S05a,将曝光图像210存入缓存器170以作为新的备选图像230并将曝光图像210的抖动幅度设定为抖动幅度基准,再回到步骤S04,若否,回到步骤S04;及
步骤S06:在成像周期结束后将备选图像230作为最终图像250。
请参阅图2,本发明实施方式的控制方法可以由本发明实施方式的控制装置110实现。控制装置110包括确定模块111、获取模块112、设定模块113、控制模块114、第一判断模块115、存入模块115a、触发模块115b及选择模块116。步骤S01可以由确定模块111实现,步骤S02可以由获取模块112实现,步骤S03可以由设定模块113
实现,步骤S04可以由控制模块114实现,步骤S05可以由第一判断模块115实现,步骤S05a可以由存入模块115a和触发模块115b实现,步骤S06可以由选择模块116实现。
也即是说,确定模块111用于确定成像周期。获取模块112可用于获取备选图像230并将备选图像230存入缓存器170。设定模块113可用于将备选图像230的抖动幅度设定为抖动幅度基准。控制模块114可用于控制成像装置130在成像周期内成像以获得曝光图像210。第一判断模块115可用于判断曝光图像210对应的抖动幅度是否小于抖动幅度基准。存入模块115a可用于在曝光图像210对应的抖动幅度小于抖动幅度基准时将曝光图像210存入缓存器170以作为新的备选图像230并将曝光图像210的抖动幅度设定为抖动幅度基准并触发控制模块114继续控制成像装置130在成像周期内成像以获得曝光图像210。触发模块115b可用于在曝光图像210对应的抖动幅度大于等于抖动幅度基准时触发控制模块114继续控制成像装置130在成像周期内成像以获得曝光图像210。选择模块116可用于在成像周期结束后将备选图像230作为最终图像250。
本发明实施方式的控制装置110或控制方法可应用于本发明实施方式的电子装置100。也即是说,本发明实施方式的电子装置100包括本发明实施方式的控制装置110。
用户在使用拍照设备拍照时,容易因拍照设备抖动而导致拍出的照片“糊”掉,即有拖尾痕迹,照片不清晰。在本发明实施方式中,电子装置100包括运动传感器150,运动传感器150可以是陀螺仪151或加速度传感器(图未示)等。运动传感器150可以感测电子装置100的抖动幅度,抖动幅度指的是电子装置100抖动的剧烈程度。例如陀螺仪151可以感测电子装置100的旋转幅度,加速度传感器可感测电子装置100的运动加速度,旋转角速度及运动加速度均可在某种程度上反映电子装置100的抖动幅度。
运动传感器150感测到的抖动幅度可以是单独的物理量,例如旋转角速度或运动加速度,也可以是多种物理量综合计算获得的一个参数,例如赋予旋转角速度和运动加速度以对应的权值,将其加和作为代表抖动幅度的物理量。由于一般成像装置130集成于电子装置100内,运动传感器150感测到电子装置100的运动幅度可视为等同于成像装置130的抖动幅度。成像装置130的抖动幅度可体现成像装置130的成像质量。
请再参阅图3,此外,运动传感器130也可以是图像稳定装置150a,例如光学图像稳定器(OIS,Optical Image Stabilization)。图像稳定装置150a可以包括陀螺仪151或加速度传感器等,以感测成像装置130的抖动并产生感测信号。图像稳定装置150a
的微处理器152处理感测信号并产生相应的驱动信号以驱动镜头或图像传感器运动以抵消抖动对拍摄的影响,从而使拍出的图像更清晰。驱动信号可以是驱动电路153的电流等电路参数。
在本发明实施方式中,由于电子装置100不同的运动状态对应的驱动信号不同的。可将驱动信号的大小(例如电流值的大小)作为衡量抖动幅度的指标。在某些实施方式中,成像装置130可包括用于驱动镜头或图像传感器的电机(图未示)。驱动信号可包括可用于驱动电机的驱动电流。驱动电流的大小可反映驱动的电机的补偿运动剧烈程度的大小。由于驱动信号与控制命令及感测信号有关,驱动电流的大小也可某种程度上反映成像装置130的运动剧烈程度的大小。因此,可将驱动信号的大小(例如电流值的大小)作为衡量抖动幅度的指标。
请参阅图4,在本发明实施方式中,首先确定成像周期。也就是用户按下拍摄键后成像装置130进行拍摄的时间段。然后拍摄获得备选图像230并将备选图像230存入电子装置100的缓存器170,例如,存入缓存队列,并将这张备选图像230的抖动幅度设定为抖动幅度基准。在某些实施方式中,可以将成像周期中拍摄的第一帧图像作为备选图像230。
然而,抖动幅度基准并非就这样固定不变了。成像装置130会在拍摄周期内拍摄多帧照片。因此,在首张备选图像230存入缓存器170后,每拍得一张曝光图像210即检测曝光图像210对应的抖动幅度是否小于备选图像230对应的抖动幅度基准。若不小于,则继续检测下一张曝光图像210;若小于,就将这张曝光图像210存入缓存器170作为新的备选图像230,并将其抖动幅度设定为抖动幅度基准以取代原来的抖动幅度基准。
抖动幅度的大小在某种程度上与照片的清晰度有一定对应关系,一般来说电子装置100的抖动幅度越小,拍出的照片越不容易产生拖尾,同时清晰度越高。而本发明的目的是提升最终拍摄的图像的清晰度,因此要找到对应的抖动幅度较小的曝光图像210。本发明实施方式采用递进选帧的方式,其实质就是寻找抖动幅度最小值及其对应的曝光图像210的过程。检测所有的曝光图像210,一旦发现比目前抖动幅度基准小的抖动幅度,便将其对应的曝光图像210存入缓存,并更新抖动幅度标准。当检测完所有的曝光图像210,即可获得抖动幅度最小的曝光图像210,可将其作为最终图像250。
如此,边拍摄曝光图像210边进行筛选,从而不必再拍摄结束后进行计算、筛选,节省了拍摄及处理时间。此外,遍历多帧曝光图像210,更容易找到清晰度较高的曝光图像210,从而提升最终图像250的画质。
在某些实施方式中,可确定多个成像周期。在传统的拍摄及曝光方式中,往往会
划分多个成像周期,每个成像周期获得一帧备选图像230。根据拍摄总时长及缓存器170的容量可确定需要获得的备选图像230的数量,从而确定成像周期的个数。一般成像周期为6-10个。
以6个成像周期为例。在第1个成像周期采用本发明实施方式的控制方法,在第2至第6个成像周期,成像周期开始时,采用上周期最新存入的备选图像230,并将上周期最新确立的抖动幅度基准作为本周期的抖动幅度基准。划分周期的好处是可沿用传统的拍摄及曝光方式的控制系统筛选,从而降低编写程序的难度。
请一并参阅图5至图6,在某些实施方式中,步骤S02获取备选图像230并将备选图像230存入电子装置100的缓存器170可包括:
S0201:控制成像装置130在成像周期的起点成像以获取初始图像211;及
S0203:将初始图像211作为备选图像230。
在某些实施方式中,获取模块包括控制子模块1121和确立子模块1123。步骤S0201可以由控制子模块1121实现,步骤S0203可以由确立子模块1123实现。
也即是说,控制子模块1121用于控制成像装置130在成像周期的起点成像以获取初始图像211;确立子模块1123用于将初始图像211作为备选图像230。
请结合参阅图7,也就是说,将成像周期的起点拍摄的图像,例如第一帧曝光图像210作为备选图像230。若后续步骤S05和S05a中找到了比第一帧曝光图像210对应的抖动幅度更小的曝光图像210,则将此曝光图像210存入缓存器170并更新抖动幅度基准。若后续拍摄的曝光图像210的抖动幅度均大于或等于第一帧曝光图像210的抖动幅度,则最后将第一帧曝光图像210作为最终图像250,也就是用户最终可看到的拍摄图像。如此,保证了此次拍摄一定会得到最终图像250,避免了拍摄失败得不到任何图像的结果。
在另外某些实施方式中,可在成像周期前就预设抖动幅度基准,由用户输入预设或系统预设,若检测到抖动幅度基准小于预设抖动幅度基准的曝光图像210,即将此曝光图像210存入缓存作为备选图像230并更新抖动幅度基准。若整个成像周期结束均无抖动幅度基准小于预设抖动幅度基准的曝光图像210,即标记本次拍摄失败。如此,可保证最终获得的最终图像250是满足一定清晰度要求的(即抖动幅度基准小于预设抖动幅度基准);若得不到满足要求的图像,即显示拍摄失败,从而不会产生容易引起用户反感的低质图像。
请一并参阅图8至图10,在某些实施方式中,本发明实施方式的控制方法可包括:
S05c:在曝光图像210对应的抖动幅度小于抖动幅度基准时将曝光图像210替换备选图像230以作为新的备选图像230。
在某些实施方式中,控制装置10还包括替换模块115c。步骤S05c可以由替换模块115c实现。也即是说,替换模块115c用于在曝光图像210对应的抖动幅度小于抖动幅度基准时将曝光图像210替换备选图像230以作为新的备选图像230。
一般情况下缓存器170的存储空间是非常有限的,能存储的备选图像230的张数有限,缓存队列中最多存储的备选图像230的张数一般为6-10张。在本发明实施方式中,每检测到一张抖动幅度小于抖动幅度基准的曝光图像210,即用此曝光图像210替换掉上一张备选图像230,或者说将此曝光图像210存入缓存器170作为备选图像230同时删除原备选图像230。
如此,可大大节省缓存器170的存储空间。同时,由于缓存器170的存储空间更为充裕,可存储更高分辨率和清晰度的备选图像230。因此,若成像装置130可拍摄的分辨率进一步提升,缓存器170的缓存空间不会成为限制或技术瓶颈。
请一并参阅图11至图12,在某些实施方式中,本发明实施方式的控制方法可包括:
S07:判断最终图像250对应的抖动幅度是否小于预定抖动幅度;若是,进入步骤S07a,将最终图像250标记为成功图像251,若否,进入捕捉S07b,将最终图像250标记为失败图像253。
在某些实施方式中,控制装置10还包括第二判断模块117、第一标记模块117a和第二标记模块117b。步骤S07可以由第二判断模块117实现,步骤S07a可以由第一标记模块117a实现,步骤S07b可以由第二标记模块117b实现。也即是说,第二判断模块117用于判断最终图像250对应的抖动幅度是否小于预定抖动幅度。第一标记模块117a用于在最终图像250对应的抖动幅度小于预定抖动幅度时将最终图像250标记为成功图像251。第二标记模块117b用于在最终图像250对应的抖动幅度大于预定抖动幅度时将最终图像250标记为失败图像253。
经过本发明实施方式的控制方法的递进选择,只能选择出成像周期内拍摄的曝光图像210中对应的抖动幅度相对较小的曝光图像210,并将其作为最终图像250。换言之,若成像期间的所有曝光图像210对应的抖动幅度普遍较大,则最终图像250对应的抖动幅度有可能较大,也很有可能有拖尾现象,甚至画面模糊。因此,可检测最终图像250的抖动幅度是否小于预定抖动幅度,预定抖动幅度可以是系统预设的,也可以是用户输入设定的。
若最终图像250的抖动幅度小于预定抖动幅度,说明最终图像250满足一定的清晰度要求,可将其标记为成功图像251;若最终图像250的抖动幅度大于等于预定抖动幅度,则说明最终图像250不满足清晰度要求,可将其标记为失败图像253。如此,可对最终图像250根据抖动幅度进行区分,从而区分出质量较好的最终图像250与质量
较差的最终图像250。
如此,帮助用户进行画质的识别与判断,提升用户体验。
请一并参阅图13至14,在某些实施方式中,本发明实施方式的控制方法可包括:
S08:根据触发信号删除失败图像253。
在某些实施方式中,控制装置10还包括删除模块118。步骤S08可以由删除模块118实现。也即是说,删除模块118用于根据触发信号删除失败图像253。
其中,触发信号可以根据用户输入产生,也可以由系统自动产生。请结合参阅图17,例如,用户通过输入选择“全选所有失败图像253”再通过输入选择“删除”,即可删除拍摄的所有失败图像253。如此,使电子装置100更智能化,符合用户的使用习惯及对照片的处理习惯,提升了用户体验。
请一并参阅图15至图17,在某些实施方式中,电子装置100可包括显示器190,本发明实施方式的控制方法可包括:
S09:在显示器190显示成功图像251的成功标记或/及显示失败图像253的失败标记。
在某些实施方式中,控制装置还包括显示模块119。步骤S09可以由显示模块119实现。也即是说,显示模块119用于在显示器190显示成功图像251的成功标记或/及显示失败图像253的失败标记。
也即是说,显示器190可将最终图像250是成功还是失败的显示出来。若电子装置100是手机或平板电脑,显示器10可包括手机或平板电脑的显示屏。用户在显示屏浏览所拍摄的图像时,对图像是否“拍摄成功”一目了然,最终图像250的“成功与否”可作为用户清理图像时的依据,从而使电子装置100更智能性和人性化,提升了用户体验。
本发明实施方式的电子装置100,可包括上述实施方式的控制装置110。
在本实施方式中,电子装置100可包括手机或平板电脑。成像装置130可包括手机或平板电脑的前置相机。
本发明实施方式的电子装置100中未展开的其它部分,可参阅以上实施方式的控制装置110或控制方法的对应部分,在此不再详细展开。
请参阅图18,本发明实施方式的电子装置100包括处理器40、存储器50、电路板60、电源电路70和壳体80。其中,电路板60安置在壳体80围成的空间内部,处理器40和存储器50设置在电路板上;电源电路70用于为电子装置100的各个电路或器件供电;存储器50用于存储可执行程序代码;处理器40通过读取存储器50中存储的可执行代码来运行与可执行程序代码对应的程序以实现上述中本发明任一实施方式的控制方法。
例如,处理器40可执行以下步骤:
S01:确定成像周期;
S02:获取备选图像230并将备选图像230存入电子装置100的缓存器170;
S03:将备选图像230的抖动幅度设定为抖动幅度基准;
S04:控制成像装置130在成像周期内成像以获得曝光图像210;
S05:判断曝光图像210对应的抖动幅度是否小于抖动幅度基准;若是,进入步骤S05a,将曝光图像210存入缓存器170以作为新的备选图像230并将曝光图像210的抖动幅度设定为抖动幅度基准,再回到步骤S04,若否,回到步骤S04;及
步骤S06:在成像周期结束后将备选图像230作为最终图像250。
本发明实施方式的计算机可读存储介质,具有存储于计算机可读存储介质中的指令。当电子装置100的处理器40执行指令时,电子装置100执行上述中本发明任一实施方式的控制方法。
例如,电子装置100可执行以下步骤:
S01:确定成像周期;
S02:获取备选图像230并将备选图像230存入电子装置100的缓存器170;
S03:将备选图像230的抖动幅度设定为抖动幅度基准;
S04:控制成像装置130在成像周期内成像以获得曝光图像210;
S05:判断曝光图像210对应的抖动幅度是否小于抖动幅度基准;若是,进入步骤S05a,将曝光图像210存入缓存器170以作为新的备选图像230并将曝光图像210的抖动幅度设定为抖动幅度基准,再回到步骤S04,若否,回到步骤S04;及
步骤S06:在成像周期结束后将备选图像230作为最终图像250。
在本发明的描述中,需要理解的是,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个所述特征。在本发明的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。
在本说明书的描述中,参考术语“一个实施方式”、“一些实施方式”、“示意性实施方式”、“示例”、“具体示例”、或“一些示例”等的描述意指结合所述实施方式或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施方式或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施方式或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施方式或示例中以合适的方式结合。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于执行特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,
并且本发明的优选实施方式的范围包括另外的执行,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于执行逻辑功能的可执行指令的定序列表,可以具体执行在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来执行。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来执行。例如,如果用硬件来执行,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来执行:具有用于对数据信号执行逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
本技术领域的普通技术人员可以理解执行上述实施方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式执行,也可以采用软件功能模块的形式执行。所述集成的模块如果以软件功能模块的形式执行并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。
Claims (16)
- 一种控制方法,用于控制电子装置,其特征在于,所述电子装置包括成像装置及运动传感器;所述运动传感器用于感测所述成像装置成像时的抖动幅度;所述控制方法包括以下步骤:确定步骤,确定成像周期;获取步骤,获取备选图像并将所述备选图像存入所述电子装置的缓存器;设定步骤,将所述备选图像的抖动幅度设定为抖动幅度基准;控制步骤,控制所述成像装置在所述成像周期内成像以获得曝光图像;第一判断步骤,判断所述曝光图像对应的所述抖动幅度是否小于所述抖动幅度基准;若是,将所述曝光图像存入所述缓存器以作为新的所述备选图像并将所述曝光图像的抖动幅度设定为所述抖动幅度基准,再回到所述控制步骤,若否,回到所述控制步骤;及选择步骤,在所述成像周期结束后将所述备选图像作为最终图像。
- 根据权利要求1所述的控制方法,其特征在于,所述获取步骤包括:控制子步骤,控制所述成像装置在所述成像周期的起点成像以获取初始图像;及确立子步骤,将所述初始图像作为所述备选图像。
- 根据权利要求1或2所述的控制方法,其特征在于,所述控制方法包括:替换步骤,在所述曝光图像对应的所述抖动幅度小于所述抖动幅度基准时将所述曝光图像替换所述备选图像以作为新的所述备选图像并将所述曝光图像的抖动幅度设定为所述抖动幅度基准。
- 根据权利要求1至3任意一项所述的控制方法,其特征在于,所述控制方法包括:第二判断步骤,判断所述最终图像对应的所述抖动幅度是否小于预定抖动幅度;若是,将所述最终图像标记为成功图像,若否,将所述最终图像标记为失败图像。
- 根据权利要求1至4任意一项所述的控制方法,其特征在于,所述控制方法包括:删除步骤,根据触发信号删除所述失败图像。
- 根据权利要求1至5任意一项所述的控制方法,其特征在于,所述电子装置包括显示器,所述控制方法包括:显示步骤,在显示器显示所述成功图像的成功标记或/及显示所述失败图像的失败标 记。
- 一种控制装置,用于控制电子装置,其特征在于,所述电子装置包括成像装置及运动传感器;所述运动传感器用于感测所述成像装置成像时的抖动幅度;所述控制装置包括以下模块:确定模块,用于确定成像周期;获取模块,用于获取备选图像并将所述备选图像存入所述电子装置的缓存器;设定模块,用于将所述备选图像的抖动幅度设定为抖动幅度基准;控制模块,用于控制所述成像装置在所述成像周期内成像以获得曝光图像;第一判断模块,用于判断所述曝光图像对应的所述抖动幅度是否小于所述抖动幅度基准;存入模块,用于在所述曝光图像对应的所述抖动幅度小于所述抖动幅度基准时将所述曝光图像存入所述缓存器以作为新的所述备选图像并将所述曝光图像的抖动幅度设定为所述抖动幅度基准并触发所述控制模块继续控制所述成像装置在所述成像周期内成像以获得曝光图像;触发模块,用于在所述曝光图像对应的所述抖动幅度大于等于所述抖动幅度基准时触发所述控制模块继续控制所述成像装置在所述成像周期内成像以获得曝光图像;及选择模块,用于在所述成像周期结束后将所述备选图像作为最终图像。
- 根据权利要求7所述的控制装置,其特征在于,所述获取模块包括:控制子模块,用于控制所述成像装置在所述成像周期的起点成像以获取初始图像;及确立子模块,用于将所述初始图像确立为所述备选图像。
- 根据权利要求7或8所述的控制装置,其特征在于,所述控制装置还包括替换模块,所述替换模块用于在所述曝光图像对应的所述抖动幅度小于所述抖动幅度基准时将所述曝光图像替换所述备选图像以作为新的所述备选图像并将所述曝光图像的抖动幅度设定为所述抖动幅度基准。
- 根据权利要求7至9任意一项所述的控制装置,其特征在于,所述控制装置包括:第二判断模块,用于判断所述最终图像对应的所述抖动幅度是否小于预定抖动幅度;第一标记模块,用于在所述最终图像对应的所述抖动幅度小于预定抖动幅度时将所述最终图像标记为成功图像;及第二标记模块,用于在所述最终图像对应的所述抖动幅度大于等于预定抖动幅度时将所述最终图像标记为失败图像。
- 根据权利要求7至10任意一项所述的控制装置,其特征在于,所述控制装置包括:删除模块,用于根据触发信号删除所述失败图像。
- 根据权利要求7至11任意一项所述的控制装置,其特征在于,所述电子装置包括显示器,所述控制装置包括:显示模块,在显示器显示所述成功图像的成功标记或/及显示所述失败图像的失败标记。
- 一种电子装置,其特征在于,包括权利要求7至12任意一项所述的控制装置。
- 如权利要求13所述的电子装置,其特征在于,所述电子装置包括手机或平板电脑。
- 一种电子装置,包括壳体、处理器、存储器、电路板和电源电路,其特征在于,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电路板上;所述电源电路用于为所述电子装置的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行权利要求1至6中任意一项所述的控制方法。
- 一种计算机可读存储介质,具有存储于其中的指令,当电子装置的处理器执行所述指令时,所述电子装置执行权利要求1至6中任意一项所述的控制方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610225926.XA CN105872376B (zh) | 2016-04-12 | 2016-04-12 | 控制方法、控制装置及电子装置 |
| CN201610225926.X | 2016-04-12 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017177845A1 true WO2017177845A1 (zh) | 2017-10-19 |
Family
ID=56636741
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/079379 Ceased WO2017177845A1 (zh) | 2016-04-12 | 2017-04-01 | 控制方法、控制装置、电子装置及计算机可读存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105872376B (zh) |
| WO (1) | WO2017177845A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114339015A (zh) * | 2020-09-27 | 2022-04-12 | 北京小米移动软件有限公司 | 一种拍照处理方法、拍照处理装置及存储介质 |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105872376B (zh) * | 2016-04-12 | 2017-10-17 | 广东欧珀移动通信有限公司 | 控制方法、控制装置及电子装置 |
| CN108156362B (zh) * | 2016-12-02 | 2020-02-04 | 杭州海康威视数字技术股份有限公司 | 一种摄像机的防抖方法及摄像机 |
| EP3525448B8 (en) | 2016-12-02 | 2022-02-23 | Hangzhou Hikvision Digital Technology Co., Ltd. | Anti-shake method for camera and camera |
| CN106961560A (zh) * | 2017-04-01 | 2017-07-18 | 上海市静安区市北医院 | 一种眼底血管荧光造影动态视频制作方法 |
| CN107509034B (zh) * | 2017-09-22 | 2019-11-26 | 维沃移动通信有限公司 | 一种拍摄方法及移动终端 |
| CN110674665B (zh) * | 2018-07-03 | 2023-06-30 | 杭州海康威视系统技术有限公司 | 图像处理方法、装置、森林防火系统及电子设备 |
| WO2020042021A1 (zh) | 2018-08-29 | 2020-03-05 | 深圳市大疆创新科技有限公司 | 电子设备的控制方法、装置、电子设备及存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060177209A1 (en) * | 2005-02-09 | 2006-08-10 | Kenichi Miyasako | Imaging apparatus |
| CN103442169A (zh) * | 2013-07-29 | 2013-12-11 | 北京智谷睿拓技术服务有限公司 | 操纵图像采集设备的拍摄功能的方法和图像采集设备 |
| CN104349059A (zh) * | 2013-08-01 | 2015-02-11 | 佳能株式会社 | 图像抖动校正设备及其控制方法、镜筒、光学设备和摄像设备 |
| CN104994305A (zh) * | 2015-06-12 | 2015-10-21 | 青岛海信电器股份有限公司 | 一种拍照方法及设备 |
| CN105872376A (zh) * | 2016-04-12 | 2016-08-17 | 广东欧珀移动通信有限公司 | 控制方法、控制装置及电子装置 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2007108458A1 (ja) * | 2006-03-23 | 2007-09-27 | Matsushita Electric Industrial Co., Ltd. | コンテンツ撮影装置 |
| JP4872797B2 (ja) * | 2007-05-18 | 2012-02-08 | カシオ計算機株式会社 | 撮像装置、撮像方法および撮像プログラム |
| CN102457675B (zh) * | 2010-10-27 | 2014-08-06 | 展讯通信(上海)有限公司 | 防止手持式照像设备在拍照时抖动的方法 |
-
2016
- 2016-04-12 CN CN201610225926.XA patent/CN105872376B/zh not_active Expired - Fee Related
-
2017
- 2017-04-01 WO PCT/CN2017/079379 patent/WO2017177845A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060177209A1 (en) * | 2005-02-09 | 2006-08-10 | Kenichi Miyasako | Imaging apparatus |
| CN103442169A (zh) * | 2013-07-29 | 2013-12-11 | 北京智谷睿拓技术服务有限公司 | 操纵图像采集设备的拍摄功能的方法和图像采集设备 |
| CN104349059A (zh) * | 2013-08-01 | 2015-02-11 | 佳能株式会社 | 图像抖动校正设备及其控制方法、镜筒、光学设备和摄像设备 |
| CN104994305A (zh) * | 2015-06-12 | 2015-10-21 | 青岛海信电器股份有限公司 | 一种拍照方法及设备 |
| CN105872376A (zh) * | 2016-04-12 | 2016-08-17 | 广东欧珀移动通信有限公司 | 控制方法、控制装置及电子装置 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114339015A (zh) * | 2020-09-27 | 2022-04-12 | 北京小米移动软件有限公司 | 一种拍照处理方法、拍照处理装置及存储介质 |
| CN114339015B (zh) * | 2020-09-27 | 2023-08-22 | 北京小米移动软件有限公司 | 一种拍照处理方法、拍照处理装置及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105872376B (zh) | 2017-10-17 |
| CN105872376A (zh) | 2016-08-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017177845A1 (zh) | 控制方法、控制装置、电子装置及计算机可读存储介质 | |
| CN111131698B (zh) | 图像处理方法及装置、计算机可读介质、电子设备 | |
| CN103685952B (zh) | 终端和图像处理方法 | |
| JP5589548B2 (ja) | 撮像装置、画像処理方法、及びプログラム記憶媒体 | |
| US11283987B2 (en) | Focus region display method and apparatus, and storage medium | |
| CN103905716B (zh) | 拍摄照片时动态处理取景画面的照相设备及方法 | |
| JP5536010B2 (ja) | 電子カメラ、撮像制御プログラム及び撮像制御方法 | |
| WO2019119986A1 (zh) | 图像处理方法、装置、计算机可读存储介质和电子设备 | |
| CN103327244A (zh) | 一种基于角速度检测的摄像对焦方法及装置 | |
| CN105391940B (zh) | 一种图像推荐方法及装置 | |
| CN109831704B (zh) | 视频剪辑方法、装置、计算机设备和存储介质 | |
| KR102305118B1 (ko) | 이미지 안정화 방법 및 그 전자 장치 | |
| US9661225B2 (en) | Image capturing apparatus and method thereof | |
| CN105827967A (zh) | 控制方法、控制装置及电子装置 | |
| CN104580890A (zh) | 一种终端 | |
| CN112804463A (zh) | 一种曝光时间控制方法、装置、终端及可读存储介质 | |
| WO2018076710A1 (zh) | 智能拍照方法及装置、存储介质 | |
| JP2018509800A (ja) | ポータブルビデオ取得デバイス上にビデオフレームを表示する方法及び対応するデバイス | |
| CN112702508A (zh) | 摄像头的位置指示方法、装置、移动终端及存储介质 | |
| CN106878616B (zh) | 一种基于移动终端自动确定动态照片焦点的方法及系统 | |
| CN107517305B (zh) | 移动终端及其调整方法、拍摄控制方法和装置 | |
| CN105847686B (zh) | 控制方法、控制装置及电子装置 | |
| CN115088242B (zh) | 用于捕获图像或视频的设备和方法 | |
| JP2015156189A (ja) | 画像評価装置、および画像評価プログラム | |
| JP2025513696A5 (zh) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17781821 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17781821 Country of ref document: EP Kind code of ref document: A1 |