WO2021238942A1 - 防抖方法、防抖装置和电子设备 - Google Patents
防抖方法、防抖装置和电子设备 Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 230000001133 acceleration Effects 0.000 claims description 5
- 230000000694 effects Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000000007 visual effect Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 2
- 238000007599 discharging Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
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/80—Camera processing pipelines; Components thereof
-
- 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/682—Vibration or motion blur correction
- H04N23/684—Vibration or motion blur correction performed by controlling the image sensor readout, e.g. by controlling the integration time
- H04N23/6845—Vibration 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- 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/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/631—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
-
- 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/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/633—Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
- H04N23/635—Region indicators; Field of view indicators
-
- 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
-
- 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/6812—Motion detection based on additional sensors, e.g. acceleration sensors
-
- 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/682—Vibration or motion blur correction
-
- 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/682—Vibration or motion blur correction
- H04N23/683—Vibration or motion blur correction performed by a processor, e.g. controlling the readout of an image memory
-
- 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/682—Vibration or motion blur correction
- H04N23/684—Vibration or motion blur correction performed by controlling the image sensor readout, e.g. by controlling the integration time
- H04N23/6842—Vibration 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
-
- 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/90—Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
-
- 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/95—Computational photography systems, e.g. light-field imaging systems
- H04N23/951—Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20112—Image segmentation details
- G06T2207/20132—Image 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
Description
Claims (14)
- 一种防抖方法,所述方法包括:在电子设备的摄像头实时采集第一画面的情况下,获取所述电子设备的抖动参数;根据与所述抖动参数对应的第一裁切参数,裁切所述第一画面中的第一区域,并显示裁切后的第一画面;其中,所述第一画面包括所述第一区域和第二区域,所述第二区域为所述第一画面与N帧画面的公共区域,所述N帧画面为在采集所述第一画面之前采集的画面,N为大于或等于1的整数。
- 根据权利要求1所述的方法,其中,所述抖动参数包括以下至少一项:所述电子设备的转动角度,所述电子设备的转动角速度,所述电子设备的转动方向,所述电子设备的移动速度,所述电子设备的移动加速度,所述电子设备的移动方向。
- 根据权利要求1或2所述的方法,其中,所述根据与所述抖动参数对应的第一裁切参数,裁切所述第一画面中的第一区域,包括:在所述第一裁切参数大于第一预设裁切参数的情况下,根据所述第一预设裁切参数,裁切所述第一画面中的第一区域。
- 根据权利要求1或2所述的方法,其中,所述电子设备包括第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头用于采集同一个对象的图像,所述第一摄像头采集的第一画面对应的视场角大于所述第二摄像头采集的第二画面对应的视场角;所述根据与所述抖动参数对应的所述第一裁切参数,裁切所述第一画面中的第一区域,包括:在所述电子设备显示所述第二摄像头采集的画面、且第二裁切参数大于第二预设裁切参数的情况下,根据所述第一裁切参数裁切所述第一画面中的第一区域;其中,所述第二裁切参数为根据所述抖动参数确定的所述第二摄像头对应的裁切参数,所述第一裁切参数为与所述第一摄像头对应的裁切参数。
- 根据权利要求4所述的方法,其中,所述第一摄像头对应的预设裁切参数和所述第二摄像头对应的预设裁切参数不同。
- 一种防抖装置,所述防抖装置包括:获取模块、裁切模块和显示模块;所述获取模块,用于在电子设备的摄像头实时采集第一画面的情况下,获取所述电子设备的抖动参数;所述裁切模块,用于根据与所述获取模块确定的所述抖动参数对应的第一裁切参数,裁切所述第一画面中的第一区域;所述显示模块,用于显示所述裁切模块裁切后的第一画面;其中,所述第一画面包括所述第一区域和第二区域,所述第二区域为所述第一画面与N帧画面的公共区域,所述N帧画面为在采集所述第一画面之前采集的画面,N为大于或等于1的整数。
- 根据权利要求6所述的防抖装置,其中,所述抖动参数包括以下至少一项:所述电子设备的转动角度,所述电子设备的转动角速度,所述电子设备的转动方向,所 述电子设备的移动速度,所述电子设备的移动加速度,所述电子设备的移动方向。
- 根据权利要求6或7所述的防抖装置,其中,所述裁切模块,具体用于在所述第一裁切参数大于第一预设裁切参数的情况下,根据所述第一预设裁切参数,裁切所述第一画面中的第一区域。
- 根据权利要求6或7所述的防抖装置,其中,所述电子设备包括第一摄像头和第二摄像头,所述第一摄像头和所述第二摄像头用于采集同一个对象的图像,所述第一摄像头采集的第一画面的视场角大于所述第二摄像头采集的第二画面的视场角;所述裁切模块,具体用于在所述电子设备显示所述第二摄像头采集的画面、且第二裁切参数大于第二预设裁切参数的情况下,根据所述第一裁切参数裁切所述第一画面中的第一区域;其中,所述第二裁切参数为根据所述抖动参数确定的所述第二摄像头对应的裁切参数,所述第一裁切参数为与所述第一摄像头对应的裁切参数。
- 根据权利要求9所述的防抖装置,其中,所述第一摄像头对应的预设裁切参数和所述第二摄像头对应的预设裁切参数不同。
- 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至5中任一项所述的防抖方法的步骤。
- 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至5中任一项所述的防抖方法的步骤。
- 一种计算机软件产品,所述计算机软件产品被至少一个处理器执行以实现如权利要求1至5中任一项所述的防抖方法。
- 一种电子设备,包括所述电子设备被配置成用于执行如权利要求1至5中任一项所述的防抖方法。
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)
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)
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)
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广东移动通信有限公司 | 图像处理方法和装置、电子设备、计算机可读存储介质 |
-
2020
- 2020-05-27 CN CN202010463762.0A patent/CN111586305B/zh active Active
-
2021
- 2021-05-25 WO PCT/CN2021/095886 patent/WO2021238942A1/zh unknown
- 2021-05-25 EP EP21813197.7A patent/EP4161056A4/en active Pending
- 2021-05-25 KR KR1020227044724A patent/KR20230012622A/ko active Search and Examination
- 2021-05-25 JP JP2022570186A patent/JP2023526806A/ja active Pending
-
2022
- 2022-11-22 US US17/992,765 patent/US11949986B2/en active Active
Patent Citations (6)
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)
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 |