WO2021238942A1 - 防抖方法、防抖装置和电子设备 - Google Patents

防抖方法、防抖装置和电子设备 Download PDF

Info

Publication number
WO2021238942A1
WO2021238942A1 PCT/CN2021/095886 CN2021095886W WO2021238942A1 WO 2021238942 A1 WO2021238942 A1 WO 2021238942A1 CN 2021095886 W CN2021095886 W CN 2021095886W WO 2021238942 A1 WO2021238942 A1 WO 2021238942A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
parameter
camera
picture
cropping
Prior art date
Application number
PCT/CN2021/095886
Other languages
English (en)
French (fr)
Inventor
魏子耘
Original Assignee
维沃移动通信有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Priority to KR1020227044724A priority Critical patent/KR20230012622A/ko
Priority to JP2022570186A priority patent/JP2023526806A/ja
Priority to EP21813197.7A priority patent/EP4161056A4/en
Publication of WO2021238942A1 publication Critical patent/WO2021238942A1/zh
Priority to US17/992,765 priority patent/US11949986B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • H04N23/684Vibration or motion blur correction performed by controlling the image sensor readout, e.g. by controlling the integration time
    • H04N23/6845Vibration or motion blur correction performed by controlling the image sensor readout, e.g. by controlling the integration time by combination of a plurality of images sequentially taken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/633Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
    • H04N23/635Region indicators; Field of view indicators
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/681Motion detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/681Motion detection
    • H04N23/6812Motion detection based on additional sensors, e.g. acceleration sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • H04N23/683Vibration or motion blur correction performed by a processor, e.g. controlling the readout of an image memory
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • H04N23/684Vibration or motion blur correction performed by controlling the image sensor readout, e.g. by controlling the integration time
    • H04N23/6842Vibration or motion blur correction performed by controlling the image sensor readout, e.g. by controlling the integration time by controlling the scanning position, e.g. windowing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/90Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20112Image segmentation details
    • G06T2207/20132Image cropping

Definitions

  • the present invention relates to the technical field of communication equipment, in particular to an anti-shake method, anti-shake device and electronic equipment.
  • electronic anti-shake methods are usually used to achieve the anti-shake effect. Specifically, in the process of the electronic device collecting images, the electronic device will crop the collected images according to fixed cropping parameters to achieve the anti-shake effect.
  • the electronic device can only crop the image according to a fixed cropping parameter, which makes the electronic device less flexible in anti-shake.
  • the purpose of the embodiments of the present application is to provide an anti-shake method, an anti-shake device, and an electronic device, which can solve the problem of poor flexibility when the electronic device is anti-shake.
  • an embodiment of the present application provides an anti-shake method.
  • the method includes: acquiring a jitter parameter of the electronic device when the camera of the electronic device captures a first image in real time; Cutting parameters; according to the first cutting parameters, the first area in the first picture is cut, and the first picture after the cut is displayed; wherein, the first picture includes a first area and a second area, and the second area is A common area between the first picture and N frames of pictures, the N frames of pictures are pictures collected before the first picture is collected, and N is an integer greater than or equal to 1.
  • an embodiment of the present application provides an anti-shake device, the anti-shake device includes: an acquisition module, a cutting module, and a display module; , Obtain the jitter parameter of the electronic device; a cutting module, for cutting the first area in the first screen according to the first cutting parameter corresponding to the jitter parameter determined by the obtaining module; a display module, for displaying the cutting module The first picture after cropping; wherein, the first picture includes a first area and a second area, the second area is the common area of the first picture and N frames of pictures, the N frames of pictures are collected before the first picture is collected , N is an integer greater than or equal to 1.
  • an embodiment of the present application provides an electronic device that includes a processor, a memory, and a program or instruction that is stored on the memory and can run on the processor.
  • the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is used to run a program or an instruction to implement the chip as in the first aspect The method described.
  • the electronic device can obtain the jitter parameter of the electronic device. Then, the electronic device can cut the first area in the first picture according to the first cut parameter corresponding to the dither parameter, and display the cut first picture.
  • the first picture includes a first area and a second area
  • the second area is a common area between the first picture and N frames of pictures
  • the N frames of pictures are pictures collected before the first picture is collected.
  • the electronic device can flexibly obtain different cutting parameters according to the degree of jitter of the electronic device, and then adjust the first image according to the different cutting parameters.
  • the area except the public area in a picture is cropped, so that the purpose of anti-shake of the electronic device can be realized, and the flexibility of the anti-shake of the electronic device can be improved.
  • FIG. 1 is a schematic flowchart of an anti-shake method provided by an embodiment of the application
  • FIG. 2 is one of the schematic diagrams of an interface applied by an anti-shake method provided by an embodiment of the application
  • FIG. 3 is a second schematic diagram of an interface applied by an anti-shake method provided by an embodiment of the application.
  • FIG. 4 is the third schematic diagram of an interface applied by an anti-shake method provided by an embodiment of the application.
  • FIG. 5 is a schematic structural diagram of an anti-shake device provided by an embodiment of the application.
  • FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • FIG. 1 is a schematic flow chart of an anti-shake method provided by an embodiment of the application, including step 201 and step 202:
  • Step 201 In the case where the camera of the electronic device captures the first picture in real time, the electronic device obtains the jitter parameter of the electronic device.
  • the aforementioned jitter parameter is used to indicate the degree of jitter of the electronic device.
  • the aforementioned camera may be a main camera, a wide-angle camera, or a telephoto camera, which is not limited in the embodiment of the present application.
  • the above-mentioned first picture may be a picture collected by the front camera of the electronic device, may also be a picture collected by the rear camera of the electronic device, or may be a picture collected by an external camera of the electronic device.
  • the application embodiment does not limit this.
  • the above-mentioned first picture may include a target object, and the target object may include at least one of the following: a person and a landscape.
  • the above-mentioned jitter parameter and the jitter degree of the electronic device may have a positive correlation or a negative correlation, which is not limited in the embodiment of the present application.
  • the aforementioned jitter parameter includes at least one of the following: the rotation angle of the electronic device, the rotation angular velocity of the electronic device, the rotation direction of the electronic device, the movement speed of the electronic device, and the movement acceleration of the electronic device , The moving direction of the electronic device.
  • the rotation angle of the aforementioned electronic device can be any angle; the rotation angular velocity of the electronic device can be any angular velocity; the rotation direction of the electronic device can be any direction.
  • the jitter parameters include but are not limited to the above six parameters.
  • the jitter parameter may also be the rotation arc length of the electronic device calculated by the rotation angular velocity of the electronic device, or may be the displacement obtained by the electronic device according to the moving speed.
  • the jitter parameter is a rotation angle
  • the above-mentioned rotation angle of the electronic device, the rotation angular velocity of the electronic device, and the rotation direction of the electronic device can be obtained through a gyroscope.
  • Step 202 The electronic device cuts the first area in the first picture according to the first cut parameter corresponding to the dither parameter, and displays the cut first picture.
  • the first picture includes a first area and a second area
  • the second area is a common area between the first picture and N frames of pictures
  • the N frames of pictures are pictures collected before the first picture is collected
  • N is greater than or equal to An integer of 1.
  • the first area is an area other than the second area in the first picture.
  • the cutting parameter in the embodiment of the present application may be a cutting percentage, or a cutting size (for example, cutting length and width, etc.), which is not limited in the embodiment of the present application.
  • the above-mentioned first cropping parameter is a cropping percentage
  • the cropping percentage can be the percentage of the area where the first frame is cropped to the entire first frame, or the first frame after cropping and the percentage of the entire first frame.
  • the percentage of the entire first screen is not limited in this embodiment of the application.
  • the above-mentioned first cutting parameter is a cutting size
  • the cutting size may be the size of the area where the first picture is cut, or the size of the first picture after being cut. The embodiment does not limit this.
  • the first cutting parameter can be determined according to the correspondence between the jitter parameter and the cutting parameter.
  • the above-mentioned corresponding relationship between the jitter parameter and the cutting parameter may be set by the system default value, or may be preset by the user, which is not limited in the embodiment of the present application.
  • the interval value of the rotation angle of the electronic device may correspond to a cutting parameter.
  • the rotation angle of the electronic device is an interval value of 1 degree to 10 degrees, and the corresponding cutting parameter may be 20%; the rotation angle of the electronic device is an interval value of 11 degrees to 20 degrees, and the corresponding cutting parameter may be 25%.
  • the electronic device may compare the first picture with N frames of pictures collected before the first picture collected by the electronic device to obtain a common area between the first picture and the previous picture.
  • the above-mentioned picture before the first picture may be at least one frame of picture collected before the electronic device collects the first picture.
  • the picture before the first picture may be 1 frame of pictures collected by the electronic device before the first picture is collected, or may be 5 frames of pictures collected by the electronic device before the first picture is collected.
  • the electronic device cutting the first area in the first frame may include: the electronic device cutting all or part of the first area.
  • the electronic device may cut the second area.
  • the electronic device may not perform any processing on the first frame of the image collected by the electronic device, or it may crop the first frame of the image according to the default cropping parameters. There is no restriction on this.
  • the electronic device when the electronic device captures the first frame, the electronic device can use the default cropping parameter of 20% to crop the first frame and display the crop After the picture. Then, when the user continues to use the electronic device to capture the second frame of the picture (that is, the above-mentioned first picture), if the electronic device determines that the electronic device has rotated 10 degrees (that is, it detects that the electronic device is slightly shaken), the electronic device can According to the jitter parameter, the cutting parameter is determined to be 20%. Then, the electronic device can cut the second frame of picture according to the cutting parameter 20% and the first frame of picture. At this time, as shown in FIG. 2, the electronic device can display the cropped second frame picture 31.
  • the electronic device determines that the electronic device has rotated 30 degrees (that is, it detects that the electronic device is violently shaking), the electronic device can According to the jitter parameter, the cutting parameter is determined to be 30%. Then, the electronic device may crop the third frame of the picture according to the cropping parameter 30% and the second frame of picture. At this time, as shown in FIG. 3, the electronic device can display the third frame of picture 32 after cropping.
  • the electronic device can obtain the jitter parameter of the electronic device. Then, the electronic device can cut the first area in the first picture according to the first cut parameter corresponding to the dither parameter, and display the cut first picture.
  • the first picture includes a first area and a second area
  • the second area is a common area between the first picture and N frames of pictures
  • the N frames of pictures are pictures collected before the first picture is collected.
  • the electronic device can flexibly obtain different cutting parameters according to the degree of jitter of the electronic device, and then adjust the first image according to the different cutting parameters.
  • the area except the public area in a picture is cropped, so that the purpose of anti-shake of the electronic device can be realized, and the flexibility of the anti-shake of the electronic device can be improved.
  • the electronic device can cut the screen according to the preset cutting parameters to ensure the visible range of the screen.
  • cutting the first area in the first frame according to the first cutting parameter corresponding to the jitter parameter in the foregoing step 202 may specifically include the following step 202a:
  • Step 202a when the first cropping parameter is greater than the first preset cropping parameter, the electronic device crops the first area in the first screen according to the first preset cropping parameter.
  • the above-mentioned first preset cutting parameter may be configured by default by the system, or may be preset by the user, which is not limited in the embodiment of the present application.
  • the aforementioned first preset cutting parameter may be referred to as the maximum cutting parameter.
  • first preset cutting parameters may be the same or different, which is not limited in the embodiment of the present application.
  • the first preset cropping parameter when the camera is a telephoto camera, the first preset cropping parameter can be 25%; when the camera is the main camera, the first preset cropping parameter can be 40%; when the camera is a wide-angle camera In the case, the first preset cutting parameter may be 50%.
  • the anti-shake method provided in this application can be applied to a scene where the visual range of the screen is guaranteed.
  • the electronic device can set the first preset cropping parameter, because the first screen cropped according to the first preset cropping parameter can be in a normal state.
  • the visible range therefore, when the first cropping parameter is greater than the first preset cropping parameter, the electronic device can crop the first screen according to the first preset cropping parameter to ensure the visible range of the screen.
  • the electronic device in the case that the electronic device has at least two cameras, the electronic device can replace the picture of the other camera with the picture collected by one camera to ensure the visual range of the electric picture, and further Improve the anti-shake effect of electronic equipment.
  • the first region in the first screen is cropped according to the first cropping parameter corresponding to the jitter parameter in the above step 202, which can be specifically Including the following steps 202b:
  • Step 202b When the electronic device displays the picture captured by the second camera and the second cropping parameter is greater than the second preset cropping parameter, the electronic device crops the first area in the first picture according to the first cropping parameter .
  • the first camera and the second camera are used to collect images of the same object, and the field of view corresponding to the first picture collected by the first camera is larger than the field of view corresponding to the second picture collected by the second camera.
  • the cropping parameter is a cropping parameter corresponding to the second camera determined according to the jitter parameter, and the first cropping parameter is a cropping parameter corresponding to the first camera.
  • the angle of view corresponding to the first picture collected by the first camera is greater than the angle of view corresponding to the second picture collected by the second camera, that is, the picture content of the first picture is more than the picture content of the second picture.
  • the first camera when the second camera is a telephoto camera, can be the main camera or a wide-angle camera; when the second camera is the main camera, the first camera can be a wide-angle camera, which can be specifically set according to actual needs.
  • the embodiment of the application does not limit this.
  • the first cropping parameter being the cropping parameter corresponding to the first camera may include: the first cropping parameter is the cropping parameter corresponding to the first camera determined according to the second cropping parameter, or the first The cutting parameter is a cutting parameter corresponding to the first camera determined according to the jitter parameter.
  • first cutting parameter determined according to the second cutting parameter and the first cutting parameter determined according to the jitter parameter may be the same or different, which is not limited in the embodiment of the present application.
  • the preset cropping parameter corresponding to the first camera and the preset cropping parameter corresponding to the second camera may be different.
  • the electronic device has a main camera and a wide-angle camera, and the electronic device can use the main camera and the wide-angle camera to capture images at the same time.
  • the screen of the electronic device displays the video taken by the main camera
  • the electronic device can determine that the rotation angle of the electronic device is 40 degrees, and determine the second crop according to the rotation angle The percentage is 45%.
  • the determined second cropping percentage 45% is greater than the second preset cropping parameter 40%, it will cause the main camera to capture a certain screen too much and affect the visibility of the screen.
  • the electronic device can The determined second cropping percentage corresponding to the main camera is 45%, and the first cropping parameter corresponding to the wide-angle camera is determined to be 50%. Then, the electronic device can cut the first picture collected by the wide-angle camera according to the first cropping parameter 50%, and finally, the electronic device can display the first picture collected by the wide-angle camera after the cut.
  • the electronic device can cut the picture captured by the wide-angle camera with a larger cropping percentage to obtain a picture similar to the picture content of the picture captured by the main camera, thereby achieving a smooth switching effect and ensuring the visibility of the picture Range to further improve the anti-shake effect.
  • the second preset cutting parameter and the aforementioned first preset cutting parameter may be the same parameter or different parameters, which is not limited in the embodiment of the present application.
  • the anti-shake method provided in this application can be applied to a scene where multiple cameras are used to improve the anti-shake effect.
  • the electronic device can crop the image captured by the camera with more content to replace the camera with less content.
  • the captured image can ensure the visual range of the image and further improve the anti-shake effect.
  • the cutting parameters may be preset by the user.
  • the method may further include the following steps A1 and A2:
  • Step A1 The electronic device receives the user's first input.
  • the above-mentioned first input may include: a click input by the user on the screen, or a voice command input by the user, or a specific gesture input by the user, which can be specifically determined according to actual usage requirements. Not limited.
  • the specific gesture in the embodiment of the present application may be any one of a single click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double tap gesture; in the embodiments of the present application
  • the click input can be one-click input, double-click input, or any number of click input, etc., and it can also be long-press input or short-press input.
  • Step A2 In response to the above-mentioned first input, the electronic device displays a cutting parameter setting interface.
  • the aforementioned cutting parameter setting interface includes at least one parameter setting box, and each parameter setting box is used to set a cutting parameter.
  • the electronic device displays a cutting parameter setting interface 35.
  • the cutting parameter setting interface 35 displays two parameter setting boxes, which are the default cutting parameter and the maximum cutting parameter.
  • the cutting parameter setting interface 35 also displays a sample image, which is framed by a black frame, and the black frame indicates the original display content of the sample image.
  • the electronic device displays a dashed box 36a at this time to prompt the user to cut the estimated display screen content after 20% of the screen is cropped.
  • the electronic device displays a dotted frame 36b to prompt the user to cut 35% of the screen after the estimated display screen content, so that the user can according to the needs Set cutting parameters.
  • the aforementioned cutting parameter setting interface may include at least two areas, wherein different areas are used to set the cutting parameters of different cameras.
  • the anti-shake method provided in this application can be applied to the scene of setting cutting parameters.
  • the user can trigger the electronic device to display the cutting parameter setting interface. Then, the user can set the cutting parameter displayed in the cutting parameter setting interface according to needs. Enter the cutting parameters in the box, so that the setting of the cutting parameters is more flexible.
  • the execution subject may be an anti-shake device, or a control module in the anti-shake device that is used to load the anti-shake method.
  • the anti-shake device executes the loading anti-shake method as an example to illustrate the anti-shake device provided in the embodiment of the present application.
  • FIG. 5 is a schematic diagram of a possible structure for implementing an anti-shake device provided by an embodiment of the present application.
  • the anti-shake device 400 includes: an acquisition module 401, a cutting module 402, and a display module 403, wherein: acquisition module 401, can be used to obtain the jitter parameter of the electronic device when the camera of the electronic device captures the first picture in real time; the cropping module 402 can be used to obtain the first cropping parameter corresponding to the jitter parameter determined by the obtaining module 401 , Crop the first area in the first picture; the display module 403 can be used to display the first picture cut by the cutting module 402; wherein, the first picture includes a first area and a second area, and the second area is A common area between the first picture and the N frames of pictures, the N frames of pictures are pictures collected before the first picture is collected, and N is an integer greater than or equal to 1.
  • the aforementioned jitter parameter may include at least one of the following: the rotation angle of the electronic device, the rotation angular velocity of the electronic device, the rotation direction of the electronic device, the movement speed of the electronic device, the movement acceleration of the electronic device, and the movement direction of the electronic device.
  • the above-mentioned cutting module 402 may be specifically used to cut the first image in the first screen according to the first preset cutting parameter when the first cutting parameter is greater than the first preset cutting parameter. area.
  • the electronic device includes a first camera and a second camera
  • the first camera and the second camera are used to collect images of the same object
  • the field of view corresponding to the first picture collected by the first camera is larger than that of the second camera.
  • the above-mentioned cropping module 402 can be specifically used to display the image captured by the second camera on the electronic device, and the second cropping parameter is greater than the second preset cropping parameter.
  • the preset cropping parameter corresponding to the first camera is different from the preset cropping parameter corresponding to the second camera.
  • the anti-shake device in the embodiment of the present application may be a device, a component, an integrated circuit, or a chip in a terminal.
  • the device can be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc.
  • Non-mobile electronic devices can be servers, Network Attached Storage (NAS), personal computers (PC), televisions (television, TV), teller machines or self-service machines, etc. This application The embodiments are not specifically limited.
  • the anti-shake device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
  • the anti-shake device provided by the embodiment of the present application can implement the various processes implemented by the electronic device in the method embodiments of FIG. 1 to FIG.
  • the anti-shake device In the anti-shake device provided by the embodiment of the present application, first, in the case that the camera of the electronic device collects the first picture in real time, the anti-shake device can obtain the shaking parameters of the electronic device. Then, the anti-shake device can cut the first area in the first picture according to the first cut parameter corresponding to the jitter parameter, and display the cut first picture.
  • the first picture includes a first area and a second area, the second area is a common area between the first picture and N frames of pictures, and the N frames of pictures are pictures collected before the first picture is collected.
  • the anti-shake device can flexibly obtain different cutting parameters according to the degree of jitter of the electronic device, and then adjust the image according to the different cutting parameters.
  • the area except the public area in the first picture is cropped, so as to realize the purpose of anti-shake of electronic equipment and improve the flexibility of anti-shake of electronic equipment
  • an embodiment of the present application further provides an electronic device, including a processor 110, a memory 109, a program or instruction that is stored on the memory 109 and can run on the processor 110, and the program or instruction is executed by the processor.
  • an electronic device including a processor 110, a memory 109, a program or instruction that is stored on the memory 109 and can run on the processor 110, and the program or instruction is executed by the processor.
  • processor 110 When 110 is executed, each process of the above-mentioned anti-shake method embodiment is realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • Fig. 6 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, etc. part.
  • the input unit 104 may include a graphics processor and a microphone
  • the display unit 106 may include a display panel
  • the user input unit 107 may include a touch panel and other input devices
  • the memory 109 may include an application program and an operating system.
  • the electronic device 100 may also include a power source (such as a battery) for supplying power to various components.
  • the power source may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. Consumption management and other functions.
  • the structure of the electronic device shown in FIG. 6 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than those shown in the figure, or some components may be combined, or different component arrangements, which will not be repeated here. .
  • the processor 110 is configured to obtain the shake parameter of the electronic device when the camera of the electronic device collects the first picture in real time; and according to the first cropping parameter corresponding to the shake parameter, cut the first picture in the first picture.
  • the aforementioned jitter parameter may include at least one of the following: the rotation angle of the electronic device, the rotation angular velocity of the electronic device, the rotation direction of the electronic device, the movement speed of the electronic device, the movement acceleration of the electronic device, and the movement direction of the electronic device.
  • the processor 110 may be specifically configured to cut the first region in the first frame according to the first preset cutting parameter when the first cutting parameter is greater than the first preset cutting parameter.
  • the electronic device includes a first camera and a second camera, the first camera and the second camera are used to collect images of the same object, and the field of view corresponding to the first picture collected by the first camera is larger than that of the second camera.
  • the processor 110 may be specifically configured to display the picture captured by the second camera on the electronic device, and the second cropping parameter is greater than the second preset cropping parameter, The first area in the first picture is cropped according to the first cropping parameter; wherein, the second cropping parameter is a cropping parameter corresponding to the second camera determined according to the shaking parameter, and the first cropping parameter is corresponding to the first camera Cutting parameters.
  • the preset cropping parameter corresponding to the first camera is different from the preset cropping parameter corresponding to the second camera.
  • the electronic device can obtain the jitter parameter of the electronic device. Then, the electronic device can cut the first area in the first picture according to the first cut parameter corresponding to the dither parameter, and display the cut first picture.
  • the first picture includes a first area and a second area
  • the second area is a common area between the first picture and N frames of pictures
  • the N frames of pictures are pictures collected before the first picture is collected.
  • the electronic device can flexibly obtain different cutting parameters according to the degree of jitter of the electronic device, and then adjust the first image according to the different cutting parameters.
  • the area except the public area in a picture is cropped, so that the purpose of anti-shake of the electronic device can be realized, and the flexibility of the anti-shake of the electronic device can be improved.
  • the embodiment of the present application also provides a readable storage medium with a program or instruction stored on the readable storage medium.
  • a program or instruction stored on the readable storage medium.
  • the processor is the processor in the electronic device described in the foregoing embodiment.
  • the readable storage medium includes a computer readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disks, or optical disks.
  • An embodiment of the present application further provides a chip.
  • the chip includes a processor and a communication interface.
  • the communication interface is coupled to the processor.
  • chips mentioned in the embodiments of the present application may also be referred to as system-level chips, system-on-chips, system-on-chips, or system-on-chips.
  • the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present application.
  • a terminal which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)
  • User Interface Of Digital Computer (AREA)
  • Cameras In General (AREA)
  • Adjustment Of Camera Lenses (AREA)

Abstract

本申请公开了一种防抖方法、防抖装置和电子设备,该方法包括:在电子设备的摄像头实时采集第一画面的情况下,获取电子设备的抖动参数;根据与抖动参数对应的第一裁切参数,裁切第一画面中的第一区域,并显示裁切后的第一画面;其中,第一画面包括第一区域和第二区域,该第二区域为第一画面与N帧画面的公共区域,该N帧画面为在采集第一画面之前采集的画面,N为大于或等于1的整数。

Description

防抖方法、防抖装置和电子设备
相关申请的交叉引用
本申请主张在2020年5月27日提交国家知识产权局、申请号为202010463762.0、申请名称为“防抖方法、防抖装置和电子设备”的中国专利申请的优先权,其全部内容通过引用包含于此。
技术领域
本发明涉及通信设备技术领域,尤其涉及一种防抖方法、防抖装置和电子设备。
背景技术
随着电子设备的发展,用户使用电子设备拍摄功能的频率越来越高,用户对电子设备的拍摄画面稳定性的要求也越来越高。
目前,为避免电子设备抖动导致的拍摄画面模糊的问题,通常会采用电子防抖的方式来达到防抖效果。具体的,在电子设备采集图像的过程中,电子设备会根据固定的裁剪参数对采集的图像进行裁剪,以达到防抖效果。
然而,若按照上述的防抖方式,电子设备只能根据固定的裁剪参数对图像进行裁剪,使得电子设备防抖的灵活性差。
发明内容
本申请实施例的目的是提供一种防抖方法、防抖装置及电子设备,能够解决电子设备防抖时所存在的灵活性差的问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本申请实施例提供了一种防抖方法,该方法包括:在电子设备的摄像头实时采集第一画面的情况下,获取电子设备的抖动参数;根据与抖动参数对应的第一裁切参数;根据第一裁切参数,裁切第一画面中的第一区域,并显示裁切后的第一画面;其中,第一画面包括第一区域和第二区域,该第二区域为第一画面与N帧画面的公共区域,该N帧画面为在采集第一画面之前采集的画面,N为大于或等于1的整数。
第二方面,本申请实施例提供了一种防抖装置,该防抖装置包括:获取模块、裁切模块和显示模块;获取模块,用于在电子设备的摄像头实时采集第一画面的情况下,获取电子设备的抖动参数;裁切模块,用于根据与获取模块确定的抖动参数对应的第一裁切参数,裁切第一画面中的第一区域;显示模块,用于显示裁切模块裁切后的第一画面;其中,第一画面包括第一区域和第二区域,该第二区域为第一画面与N帧画面的公共区域,该N帧画面为在采集第一画面之前采集的画面,N为大于或等于1的整数。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
在本申请实施例中,首先,在电子设备的摄像头实时采集第一画面的情况下,电子设备可以获取电子设备的抖动参数。然后,电子设备可以根据与抖动参数对应的第一裁切参数,裁切第一画面中的第一区域,并显示裁切后的第一画面。其中,第一画面包括第一区域和第二区域,该第二区域为第一画面与N帧画面的公共区域,该N帧画面为在采集第一画面之前采集的画面。相比于传统的利用固定的裁切参数对画面进行裁切的方案,通过上述方案,电子设备可以根据电子设备的抖动程度灵活的获取不同的裁切参数,然后根据不同的裁切参数对第一画面中除公共区域以外的区域进行裁切,从而可以实现电子设备防抖的目的,并提高了电子设备防抖的灵活性。
附图说明
图1为本申请实施例提供的一种防抖方法流程示意图;
图2为本申请实施例提供的一种防抖方法所应用的界面的示意图之一;
图3为本申请实施例提供的一种防抖方法所应用的界面的示意图之二;
图4为本申请实施例提供的一种防抖方法所应用的界面的示意图之三;
图5为本申请实施例提供的一种防抖装置的结构示意图;
图6为本申请实施例提供的一种电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的防抖方法进行详细地说明。
图1为本申请实施例提供的一种防抖方法流程示意图,包括步骤201和步骤202:
步骤201:在电子设备的摄像头实时采集第一画面的情况下,电子设备获取电子 设备的抖动参数。
其中,上述的抖动参数用于指示电子设备的抖动程度。
在本申请实施例中,上述的摄像头可以为主摄像头,也可以为广角摄像头,还可以为长焦摄像头,本申请实施例对此不作限定。
在本申请实施例中,上述的第一画面可以为电子设备的前置摄像头采集的画面,也可以为电子设备的后置摄像头采集的画面,还可以为电子设备外接的摄像头采集的画面,本申请实施例对此不作限定。
在本申请实施例中,上述的第一画面可以包含目标对象,该目标对象可以包括以下至少一项:人物,风景。
在本申请实施例中,上述的抖动参数和电子设备的抖动程度间可以存在正相关关系,也可以存在负相关关系,本申请实施例对此不作限定。
可选地,在本申请实施例中,上述的抖动参数包括以下至少一项:电子设备的转动角度,电子设备的转动角速度,电子设备的转动方向,电子设备的移动速度,电子设备的移动加速度,电子设备的移动方向。
示例性的,上述的电子设备的转动角度可以为任意角度;电子设备的转动角速度可以为任意角速度;电子设备的转动方向可以为任意方向。
需要说明的是,抖动参数包括但不限于上述六种参数。例如,抖动参数还可以为电子设备通过转动角速度计算出的电子设备的转动弧长,或者可以为电子设备根据移动速度得到的位移。
在一种示例中,当抖动参数为转动角度时,转动角度和电子设备的抖动程度间可以存在正相关关系。即转动角度越大,电子设备的抖动程度越剧烈,转动角度越小,电子设备的抖动程度越轻微。
需要说明的是,上述的电子设备的转动角度、电子设备的转动角速度和电子设备的转动方向可以通过陀螺仪获取。
步骤202:电子设备根据与抖动参数对应的第一裁切参数,裁切第一画面中的第一区域,并显示裁切后的第一画面。
其中,第一画面包括第一区域和第二区域,该第二区域为第一画面与N帧画面的公共区域,该N帧画面为在采集第一画面之前采集的画面,N为大于或等于1的整数。
可以理解,该第一区域为第一画面中除第二区域以外的其他区域。
在本申请实施例中,本申请实施例中的裁切参数可以为裁切百分比,或者裁切尺寸(例如,裁切长度和宽度等),本申请实施例对此不作限定。
在一种示例中,上述的第一裁切参数为裁切百分比,该裁切百分比可以是裁切第一画面的区域与整个第一画面的百分比,也可以是裁切后的第一画面与整个第一画面的百分比,本申请实施例对此不作限定。
在另一种示例中,上述的第一裁切参数为裁切尺寸,该裁切尺寸可以是裁切第一画面的区域的尺寸,也可以是裁切后的第一画面的尺寸,本申请实施例对此不作限定。
示例性的,当电子设备确定抖动参数后,可以根据抖动参数和裁切参数间的对应关系,确定出第一裁切参数。
其中,上述的抖动参数和裁切参数间的对应关系可以是系统默认值设置的,也可 以是用户预先设置的,本申请实施例对此不作限定。
在一种示例中,在上述的抖动参数为电子设备的转动角度的情况下,电子设备的转动角度的区间值可以对应一个裁切参数。例如,电子设备的转动角度为区间值1度至10度,对应的裁切参数可以为20%;电子设备的转动角度为区间值11度至20度,对应的裁切参数可以为25%。
示例性的,电子设备可以将第一画面和电子设备采集的第一画面之前采集的N帧画面进行比对,以获取第一画面与之前的画面的公共区域。
示例性的,上述的第一画面之前的画面可以为电子设备采集第一画面之前采集的至少一帧画面。例如,第一画面之前的画面可以为电子设备在采集第一画面之前采集的1帧画面,也可以为电子设备在采集第一画面之前采集的5帧画面。
示例性的,电子设备裁切第一画面中的第一区域可以包括:电子设备裁切第一区域中的全部或部分区域。
需要说明的是,在电子设备根据第一裁切参数裁切第一画面,会裁切到第一画面中的第二区域的情况下,电子设备可以裁切第二区域。
需要说明的是,在实际应用中,对于电子设备采集到的第一帧画面,电子设备可以不做任何处理,也可以根据默认的裁切参数对第一帧画面进行裁切,本申请实施例对此不作限定。
举例说明,在用户使用电子设备进行视频拍摄的情况下,当电子设备采集到第一帧画面时,电子设备可以使用默认的裁切参数20%对第一帧画面进行裁切,并显示裁切后的画面。然后,当用户继续使用电子设备拍摄采集到第二帧画面(即上述的第一画面)时,若电子设备确定电子设备转动了10度(即检测到电子设备发生轻微抖动),则电子设备可以根据该抖动参数确定裁切参数为20%。接着,电子设备可以根据裁切参数20%以及第一帧画面,对第二帧画面进行裁切。此时,如图2所示,电子设备可以显示裁切后的第二帧画面31。然后,当用户继续使用电子设备拍摄采集到第三帧画面(即上述的第一画面)时,若电子设备确定电子设备转动了30度(即检测到电子设备发生剧烈抖动),则电子设备可以根据该抖动参数确定裁切参数为30%。接着,电子设备可以根据裁切参数30%以及第二帧画面,对第三帧画面进行裁切。此时,如图3所示,电子设备可以显示裁切后的第三帧画面32。
本申请实施例提供的防抖方法,首先,在电子设备的摄像头实时采集第一画面的情况下,电子设备可以获取电子设备的抖动参数。然后,电子设备可以根据与抖动参数对应的第一裁切参数,裁切第一画面中的第一区域,并显示裁切后的第一画面。其中,第一画面包括第一区域和第二区域,该第二区域为第一画面与N帧画面的公共区域,该N帧画面为在采集第一画面之前采集的画面。相比于传统的利用固定的裁切参数对画面进行裁切的方案,通过上述方案,电子设备可以根据电子设备的抖动程度灵活的获取不同的裁切参数,然后根据不同的裁切参数对第一画面中除公共区域以外的区域进行裁切,从而可以实现电子设备防抖的目的,并提高了电子设备防抖的灵活性。
可选地,在本申请实施例中,当裁切参数过大时,可能会影响裁切后画面的可视范围,不能达到拍摄需求。因此,电子设备可以根据预设的裁切参数对画面进行裁切,以保证画面的可视范围。
示例性的,上述的步骤202中的根据与抖动参数对应的第一裁切参数,裁切第一画面中的第一区域,具体可以包括如下步骤202a:
步骤202a:电子设备在第一裁切参数大于第一预设裁切参数的情况下,根据第一预设裁切参数,裁切第一画面中的第一区域。
示例性的,上述的第一预设裁切参数可以为系统默认配置的,也可以为用户预先设置的,本申请实施例对此不作限定。
示例性的,上述的第一预设裁切参数可以称为最大裁切参数。
需要说明的是,对于不同的摄像头,上述的第一预设裁切参数可以相同,也可以不同,本申请实施例对此不作限定。
例如,在摄像头为长焦摄像头的情况下,第一预设裁切参数可以为25%;在摄像头为主摄像头的情况下,第一预设裁切参数可以为40%;在摄像头为广角摄像头的情况下,第一预设裁切参数可以为50%。
需要说明的是,当裁切参数过大时,会使得裁切后的画面中的有效画面内容过少,从而会影响画面的可视范围。
本申请提供的防抖方法可以应用于保证画面可视范围的场景中,电子设备可以设置第一预设裁切参数,由于根据第一预设裁切参数裁切的第一画面可以处于正常的可视范围,因此,当第一裁切参数大于第一预设裁切参数时,电子设备可以根据第一预设裁切参数对第一画面进行裁切,以保证画面的可视范围。
可选地,在本申请实施例中,在电子设备具有至少两个摄像头的情况下,电子设备可以利用一个摄像头采集的画面替换另一个摄像头的画面,以保证电画面的可视范围,并进一步提高电子设备的防抖效果。
示例性的,在电子设备包括第一摄像头和第二摄像头的情况下,上述的步骤202中的根据与抖动参数对应的第一裁切参数,裁切第一画面中的第一区域,具体可以包括如下步骤202b:
步骤202b:在电子设备显示第二摄像头采集的画面、且第二裁切参数大于第二预设裁切参数的情况下,电子设备根据第一裁切参数裁切第一画面中的第一区域。
其中,第一摄像头和第二摄像头用于采集同一个对象的图像,第一摄像头采集的第一画面对应的视场角大于第二摄像头采集的第二画面对应的视场角,上述的第二裁切参数为根据抖动参数确定的第二摄像头对应的裁切参数,第一裁切参数为与第一摄像头对应的裁切参数。
可以理解,第一摄像头采集的第一画面对应的视场角大于第二摄像头采集的第二画面对应的视场角,即第一画面的画面内容多于第二画面的画面内容。
示例性的,当第二摄像头为长焦摄像头时,第一摄像头可以为主摄像头或广角摄像头;当第二摄像头为主摄像头时,第一摄像头可以为广角摄像头,具体的可以根据实际需求设置,本申请实施例对此不作限定。
示例性的,第一裁切参数为与第一摄像头对应的裁切参数可以包括:第一裁切参数为与根据第二裁切参数确定的第一摄像头对应的裁切参数,或者,第一裁切参数为与根据抖动参数确定的第一摄像头对应的裁切参数。
需要说明的是,根据第二裁切参数确定的第一裁切参数与根据抖动参数确定的第 一裁切参数可以相同,也可以不同,本申请实施例对此不作限定。
在一种示例中,第一摄像头对应的预设裁切参数和第二摄像头对应的预设裁切参数(即第二预设裁切参数)可以不同。
举例说明,电子设备具有主摄像头和广角摄像头,电子设备可以利用主摄像头和广角摄像头同时采集画面。当电子设备的屏幕显示主摄像头拍摄视频画面时,若电子设备的主摄像头采集到某一画面时抖动剧烈,电子设备可以确定电子设备的转动角度为40度,并根据转动角度确定第二裁切百分比为45%。此时,由于确定的第二裁切百分比45%大于第二预设裁切参数40%,会导致主摄像头采集到某一画面裁切过多影响画面的可视性,因此,电子设备可以根据确定的主摄像头对应的第二裁切百分比45%,确定广角摄像头对应的第一裁切参数50%。然后,电子设备可以根据第一裁切参数50%对广角摄像头采集的第一画面进行裁切,最后,电子设备可以显示裁切后的广角摄像头采集的第一画面。
需要说明的是,由于广角摄像头相比于主摄像头拍摄的画面内容更多,在使用相同的裁切百分比,甚至使用比主摄像头对应的裁切百分比更大的裁切百分比时,能够保留的画面内容更多。因此,电子设备可以通过更大的裁切百分比裁切广角摄像头采集的画面,以得到与主摄像头采集的画面的画面内容相近的画面,从而可以达到平滑切换的效果,且可以保证画面的可视范围,进一步提高防抖效果。
需要说明的是,第二预设裁切参数与上述的第一预设裁切参数可以为同一参数,也可以为不同的参数,本申请实施例对此不作限定。
本申请提供的防抖方法可以应用于利用多个摄像头提升防抖效果的场景中,电子设备可以裁切拍摄画面内容更多的摄像头所拍到的画面,来替换拍摄画面内容较少的摄像头所拍到的画面,从而可以保证画面可视范围,还可以进一步提高防抖效果。
可选地,本申请实施例中,裁切参数可以由用户预先设置。
示例性的,在上述的步骤201之前,该方法还可以包括如下步骤A1和步骤A2:
步骤A1:电子设备接收用户的第一输入。
示例性的,上述的第一输入可以包括:用户针对屏幕的点击输入,或者是用户输入的语音指令,或者是用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
本申请实施例中的特定手势可以为单击手势、滑动手势、拖动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种;本申请实施例中的点击输入可以为单击输入、双击输入或任意次数的点击输入等,还可以为长按输入或短按输入。
步骤A2:响应于上述的第一输入,电子设备显示裁切参数设置界面。
其中,上述的裁切参数设置界面包括至少一个参数设置框,每个参数设置框用于设置一个裁切参数。
举例说明,如图4中的(a)所示,在电子设备显示主摄像头的预览界面33的情况下,当用户需求设置主摄像头的默认裁切参数和最大裁切参数时,可以长按“设置”按键34。此时,如图4中的(b)所示,电子设备显示裁切参数设置界面35,该裁切参数设置界面35上显示有两个参数设置框,分别为默认裁切参数和最大裁切参数。该 裁切参数设置界面35上还显示有样图,并以黑框框住,该黑框指示样图的原始显示内容。当用户在默认裁切参数设置框中输入20%,此时,电子设备显示一个虚线框36a,以提示用户裁切20%的画面后的预估显示画面内容。当用户在最大裁切参数设置框中输入35%,此时,电子设备显示一个点线框36b,以提示用户裁切35%的画面后的预估显示画面内容,如此,用户便可根据需求设置裁切参数。
示例性的,在电子设备具有至少两个摄像头的情况下,上述的裁切参数设置界面可以包括至少两个区域,其中,不同区域用于设置不同摄像头的裁切参数。
本申请提供的防抖方法可以应用于设置裁切参数的场景中,用户可以触发电子设备显示裁切参数设置界面,然后,用户可以根据需求,在裁切参数设置界面中显示的裁切参数设置框中输入裁切参数,如此,使得裁切参数的设置更灵活。
需要说明的是,本申请实施例提供的防抖方法,执行主体可以为防抖装置,或者该防抖装置中的用于执行加载防抖方法的控制模块。本申请实施例中以防抖装置执行加载防抖方法为例,说明本申请实施例提供的防抖装置。
图5为实现本申请实施例提供的一种防抖装置的可能的结构示意图,如图5所示,防抖装置400包括:获取模块401、裁切模块402和显示模块403,其中:获取模块401,可以用于在电子设备的摄像头实时采集第一画面的情况下,获取电子设备的抖动参数;裁切模块402,可以用于根据与获取模块401确定的抖动参数对应的第一裁切参数,裁切第一画面中的第一区域;显示模块403可以用于显示裁切模块402裁切后的第一画面;其中,第一画面包括第一区域和第二区域,该第二区域为第一画面与N帧画面的公共区域,N帧画面为在采集第一画面之前采集的画面,N为大于或等于1的整数。
可选地,上述抖动参数可以包括以下至少一项:电子设备的转动角度,电子设备的转动角速度,电子设备的转动方向,电子设备的移动速度,电子设备的移动加速度,电子设备的移动方向。
可选地,上述裁切模块402,具体可以用于在第一裁切参数大于第一预设裁切参数的情况下,根据第一预设裁切参数,裁切第一画面中的第一区域。
可选地,在电子设备包括第一摄像头和第二摄像头,第一摄像头和第二摄像头用于采集同一个对象的图像,第一摄像头采集的第一画面对应的视场角大于第二摄像头采集的第二画面对应的视场角的情况下,上述裁切模块402,具体可以用于在电子设备显示第二摄像头采集的画面、且第二裁切参数大于第二预设裁切参数的情况下,根据第一裁切参数裁切第一画面中的第一区域;其中,第二裁切参数为根据抖动参数确定的第二摄像头对应的裁切参数,第一裁切参数为与第一摄像头对应的裁切参数。
可选地,第一摄像头对应的预设裁切参数和第二摄像头对应的预设裁切参数不同。
本申请实施例中的防抖装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、 电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的防抖装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的防抖装置能够实现图1至图4的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。
本申请实施例提供的防抖装置,首先,在电子设备的摄像头实时采集第一画面的情况下,防抖装置可以获取电子设备的抖动参数。然后,防抖装置可以根据与抖动参数对应的第一裁切参数,裁切第一画面中的第一区域,并显示裁切后的第一画面。其中,第一画面包括第一区域和第二区域,该第二区域为第一画面与N帧画面的公共区域,该N帧画面为在采集第一画面之前采集的画面。相比于传统的利用固定的裁切参数对画面进行裁切的方案,通过上述方案,防抖装置可以根据电子设备的抖动程度灵活的获取不同的裁切参数,然后根据不同的裁切参数对第一画面中除公共区域以外的区域进行裁切,从而可以实现电子设备防抖的目的,并提高了电子设备防抖的灵活性
可选地,本申请实施例还提供一种电子设备,包括处理器110,存储器109,存储在存储器109上并可在所述处理器110上运行的程序或指令,该程序或指令被处理器110执行时实现上述防抖方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图6为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。其中,输入单元104可以包括图形处理器和麦克风,显示单元106可以包括显示面板,用户输入单元107可以包括触控面板以及其他输入设备,存储器109可以包括应用程序和操作系统。
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器110,用于在电子设备的摄像头实时采集第一画面的情况下,获取电子设备的抖动参数;以及根据与抖动参数对应的第一裁切参数,裁切第一画面中的第一区域;显示单元106,用于显示处理器110裁切后的第一画面;其中,第一画面包括第一区域和第二区域,第二区域为第一画面与N帧画面的公共区域,该N帧画面为在采集第一画面之前采集的画面,N为大于或等于1的整数。
可选地,上述抖动参数可以包括以下至少一项:电子设备的转动角度,电子设备的转动角速度,电子设备的转动方向,电子设备的移动速度,电子设备的移动加速度,电子设备的移动方向。
可选地,处理器110,具体可以用于在第一裁切参数大于第一预设裁切参数的情况下,根据第一预设裁切参数,裁切第一画面中的第一区域。
可选地,在电子设备包括第一摄像头和第二摄像头,第一摄像头和第二摄像头用于采集同一个对象的图像,第一摄像头采集的第一画面对应的视场角大于第二摄像头采集的第二画面对应的视场角的情况下,处理器110,具体可以用于在电子设备显示第二摄像头采集的画面、且第二裁切参数大于第二预设裁切参数的情况下,根据第一裁切参数裁切第一画面中的第一区域;其中,第二裁切参数为根据抖动参数确定的第二摄像头对应的裁切参数,第一裁切参数为与第一摄像头对应的裁切参数。
可选地,第一摄像头对应的预设裁切参数和第二摄像头对应的预设裁切参数不同。
本申请实施例提供的电子设备,首先,在电子设备的摄像头实时采集第一画面的情况下,电子设备可以获取电子设备的抖动参数。然后,电子设备可以根据与抖动参数对应的第一裁切参数,裁切第一画面中的第一区域,并显示裁切后的第一画面。其中,第一画面包括第一区域和第二区域,该第二区域为第一画面与N帧画面的公共区域,该N帧画面为在采集第一画面之前采集的画面。相比于传统的利用固定的裁切参数对画面进行裁切的方案,通过上述方案,电子设备可以根据电子设备的抖动程度灵活的获取不同的裁切参数,然后根据不同的裁切参数对第一画面中除公共区域以外的区域进行裁切,从而可以实现电子设备防抖的目的,并提高了电子设备防抖的灵活性。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述防抖方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述防抖方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情 况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (14)

  1. 一种防抖方法,所述方法包括:
    在电子设备的摄像头实时采集第一画面的情况下,获取所述电子设备的抖动参数;
    根据与所述抖动参数对应的第一裁切参数,裁切所述第一画面中的第一区域,并显示裁切后的第一画面;
    其中,所述第一画面包括所述第一区域和第二区域,所述第二区域为所述第一画面与N帧画面的公共区域,所述N帧画面为在采集所述第一画面之前采集的画面,N为大于或等于1的整数。
  2. 根据权利要求1所述的方法,其中,所述抖动参数包括以下至少一项:所述电子设备的转动角度,所述电子设备的转动角速度,所述电子设备的转动方向,所述电子设备的移动速度,所述电子设备的移动加速度,所述电子设备的移动方向。
  3. 根据权利要求1或2所述的方法,其中,所述根据与所述抖动参数对应的第一裁切参数,裁切所述第一画面中的第一区域,包括:
    在所述第一裁切参数大于第一预设裁切参数的情况下,根据所述第一预设裁切参数,裁切所述第一画面中的第一区域。
  4. 根据权利要求1或2所述的方法,其中,所述电子设备包括第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头用于采集同一个对象的图像,所述第一摄像头采集的第一画面对应的视场角大于所述第二摄像头采集的第二画面对应的视场角;
    所述根据与所述抖动参数对应的所述第一裁切参数,裁切所述第一画面中的第一区域,包括:
    在所述电子设备显示所述第二摄像头采集的画面、且第二裁切参数大于第二预设裁切参数的情况下,根据所述第一裁切参数裁切所述第一画面中的第一区域;
    其中,所述第二裁切参数为根据所述抖动参数确定的所述第二摄像头对应的裁切参数,所述第一裁切参数为与所述第一摄像头对应的裁切参数。
  5. 根据权利要求4所述的方法,其中,所述第一摄像头对应的预设裁切参数和所述第二摄像头对应的预设裁切参数不同。
  6. 一种防抖装置,所述防抖装置包括:获取模块、裁切模块和显示模块;
    所述获取模块,用于在电子设备的摄像头实时采集第一画面的情况下,获取所述电子设备的抖动参数;
    所述裁切模块,用于根据与所述获取模块确定的所述抖动参数对应的第一裁切参数,裁切所述第一画面中的第一区域;
    所述显示模块,用于显示所述裁切模块裁切后的第一画面;
    其中,所述第一画面包括所述第一区域和第二区域,所述第二区域为所述第一画面与N帧画面的公共区域,所述N帧画面为在采集所述第一画面之前采集的画面,N为大于或等于1的整数。
  7. 根据权利要求6所述的防抖装置,其中,所述抖动参数包括以下至少一项:所述电子设备的转动角度,所述电子设备的转动角速度,所述电子设备的转动方向,所 述电子设备的移动速度,所述电子设备的移动加速度,所述电子设备的移动方向。
  8. 根据权利要求6或7所述的防抖装置,其中,所述裁切模块,具体用于在所述第一裁切参数大于第一预设裁切参数的情况下,根据所述第一预设裁切参数,裁切所述第一画面中的第一区域。
  9. 根据权利要求6或7所述的防抖装置,其中,所述电子设备包括第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头用于采集同一个对象的图像,所述第一摄像头采集的第一画面的视场角大于所述第二摄像头采集的第二画面的视场角;
    所述裁切模块,具体用于在所述电子设备显示所述第二摄像头采集的画面、且第二裁切参数大于第二预设裁切参数的情况下,根据所述第一裁切参数裁切所述第一画面中的第一区域;
    其中,所述第二裁切参数为根据所述抖动参数确定的所述第二摄像头对应的裁切参数,所述第一裁切参数为与所述第一摄像头对应的裁切参数。
  10. 根据权利要求9所述的防抖装置,其中,所述第一摄像头对应的预设裁切参数和所述第二摄像头对应的预设裁切参数不同。
  11. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至5中任一项所述的防抖方法的步骤。
  12. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至5中任一项所述的防抖方法的步骤。
  13. 一种计算机软件产品,所述计算机软件产品被至少一个处理器执行以实现如权利要求1至5中任一项所述的防抖方法。
  14. 一种电子设备,包括所述电子设备被配置成用于执行如权利要求1至5中任一项所述的防抖方法。
PCT/CN2021/095886 2020-05-27 2021-05-25 防抖方法、防抖装置和电子设备 WO2021238942A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
KR1020227044724A KR20230012622A (ko) 2020-05-27 2021-05-25 떨림방지 방법, 떨림방지 장치와 전자 장치
JP2022570186A JP2023526806A (ja) 2020-05-27 2021-05-25 手振れ防止方法、手振れ防止装置及び電子機器
EP21813197.7A EP4161056A4 (en) 2020-05-27 2021-05-25 ANTI-BLACK METHOD, ANTI-BLACK DEVICE AND ELECTRONIC DEVICE
US17/992,765 US11949986B2 (en) 2020-05-27 2022-11-22 Anti-shake method, anti-shake apparatus, and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010463762.0 2020-05-27
CN202010463762.0A CN111586305B (zh) 2020-05-27 2020-05-27 防抖方法、防抖装置和电子设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/992,765 Continuation US11949986B2 (en) 2020-05-27 2022-11-22 Anti-shake method, anti-shake apparatus, and electronic device

Publications (1)

Publication Number Publication Date
WO2021238942A1 true WO2021238942A1 (zh) 2021-12-02

Family

ID=72119610

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/095886 WO2021238942A1 (zh) 2020-05-27 2021-05-25 防抖方法、防抖装置和电子设备

Country Status (6)

Country Link
US (1) US11949986B2 (zh)
EP (1) EP4161056A4 (zh)
JP (1) JP2023526806A (zh)
KR (1) KR20230012622A (zh)
CN (1) CN111586305B (zh)
WO (1) WO2021238942A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586305B (zh) * 2020-05-27 2021-11-02 维沃移动通信(杭州)有限公司 防抖方法、防抖装置和电子设备
CN112738399B (zh) * 2020-12-29 2022-10-25 维沃移动通信(杭州)有限公司 图像处理方法、装置和电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140300765A1 (en) * 2013-04-05 2014-10-09 JVC Kenwood Corporation Image pickup apparatus, image pickup method, and computer program product
CN104170370A (zh) * 2012-01-16 2014-11-26 谷歌公司 为了稳定而使用动态裁切对视频进行处理的方法和系统
CN110213479A (zh) * 2019-04-30 2019-09-06 北京迈格威科技有限公司 一种视频拍摄防抖方法和装置
CN110771144A (zh) * 2018-08-29 2020-02-07 深圳市大疆创新科技有限公司 电子设备的控制方法、装置、电子设备及存储介质
CN111193866A (zh) * 2020-01-08 2020-05-22 Oppo广东移动通信有限公司 图像处理方法、图像处理器、拍摄装置和电子设备
CN111586305A (zh) * 2020-05-27 2020-08-25 维沃移动通信(杭州)有限公司 防抖方法、防抖装置和电子设备

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5597061B2 (ja) 2010-08-18 2014-10-01 キヤノン株式会社 映像再生装置、及びその制御方法
US10306165B2 (en) * 2013-12-06 2019-05-28 Huawei Device Co., Ltd. Image generating method and dual-lens device
KR102195304B1 (ko) * 2014-01-17 2020-12-24 삼성전자주식회사 영상 처리 방법 및 그 전자 장치
US9912868B2 (en) * 2015-09-15 2018-03-06 Canon Kabushiki Kaisha Image-blur correction apparatus, tilt correction apparatus, method of controlling image-blur correction apparatus, and method of controlling tilt correction apparatus
WO2017149964A1 (ja) * 2016-03-03 2017-09-08 ソニー株式会社 画像処理装置、画像処理方法、コンピュータプログラム及び電子機器
CN110072070B (zh) * 2019-03-18 2021-03-23 华为技术有限公司 一种多路录像方法及设备、介质
CN110213490B (zh) * 2019-06-25 2020-09-29 浙江大华技术股份有限公司 一种图像防抖方法、装置、电子设备及存储介质
CN110166697B (zh) * 2019-06-28 2021-08-31 Oppo广东移动通信有限公司 摄像头防抖方法、装置、电子设备和计算机可读存储介质
CN110278360B (zh) * 2019-06-28 2021-03-23 Oppo广东移动通信有限公司 图像处理方法和装置、电子设备、计算机可读存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104170370A (zh) * 2012-01-16 2014-11-26 谷歌公司 为了稳定而使用动态裁切对视频进行处理的方法和系统
US20140300765A1 (en) * 2013-04-05 2014-10-09 JVC Kenwood Corporation Image pickup apparatus, image pickup method, and computer program product
CN110771144A (zh) * 2018-08-29 2020-02-07 深圳市大疆创新科技有限公司 电子设备的控制方法、装置、电子设备及存储介质
CN110213479A (zh) * 2019-04-30 2019-09-06 北京迈格威科技有限公司 一种视频拍摄防抖方法和装置
CN111193866A (zh) * 2020-01-08 2020-05-22 Oppo广东移动通信有限公司 图像处理方法、图像处理器、拍摄装置和电子设备
CN111586305A (zh) * 2020-05-27 2020-08-25 维沃移动通信(杭州)有限公司 防抖方法、防抖装置和电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4161056A4 *

Also Published As

Publication number Publication date
JP2023526806A (ja) 2023-06-23
EP4161056A4 (en) 2023-09-27
US20230086416A1 (en) 2023-03-23
CN111586305A (zh) 2020-08-25
KR20230012622A (ko) 2023-01-26
CN111586305B (zh) 2021-11-02
EP4161056A1 (en) 2023-04-05
US11949986B2 (en) 2024-04-02

Similar Documents

Publication Publication Date Title
CN113473004B (zh) 拍摄方法及装置
US20230086416A1 (en) Anti-shake method, anti-shake apparatus, and electronic device
US11539888B2 (en) Method and apparatus for processing video data
CN112637500B (zh) 图像处理方法及装置
WO2022161240A1 (zh) 拍摄方法、装置、电子设备及介质
CN112911147B (zh) 显示控制方法、显示控制装置及电子设备
WO2022161340A1 (zh) 图像显示方法、装置及电子设备
WO2022237839A1 (zh) 拍摄方法、装置及电子设备
CN113596294A (zh) 拍摄方法、装置和电子设备
WO2022078241A1 (zh) 拍摄方法、装置及电子设备
EP2613520B1 (en) Apparatus and method of displaying camera view area in portable terminal
CN112437232A (zh) 拍摄方法、装置、电子设备及可读存储介质
CN114422692B (zh) 视频录制方法、装置及电子设备
WO2022156673A1 (zh) 显示控制方法、装置、电子设备及介质
WO2024061134A1 (zh) 拍摄方法、装置、电子设备及介质
WO2023125313A1 (zh) 视频录制方法、装置及电子设备
WO2022095878A1 (zh) 拍摄方法、装置、电子设备及可读存储介质
CN112887624B (zh) 一种拍摄方法、装置和电子设备
CN112291476B (zh) 拍摄防抖处理方法、装置和电子设备
CN112367467B (zh) 显示控制方法、装置、电子设备和介质
CN112153291B (zh) 拍照方法和电子设备
CN114245017A (zh) 一种拍摄方法、装置及电子设备
CN114245018A (zh) 图像拍摄方法及其装置
CN112399092A (zh) 拍摄方法、装置和电子设备
CN112291474A (zh) 图像获取方法、装置及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21813197

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022570186

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20227044724

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021813197

Country of ref document: EP

Effective date: 20230102