WO2021043172A1 - 摄像头控制方法、装置、存储介质及电子设备 - Google Patents

摄像头控制方法、装置、存储介质及电子设备 Download PDF

Info

Publication number
WO2021043172A1
WO2021043172A1 PCT/CN2020/113057 CN2020113057W WO2021043172A1 WO 2021043172 A1 WO2021043172 A1 WO 2021043172A1 CN 2020113057 W CN2020113057 W CN 2020113057W WO 2021043172 A1 WO2021043172 A1 WO 2021043172A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
focus distance
focal length
change trend
electronic device
Prior art date
Application number
PCT/CN2020/113057
Other languages
English (en)
French (fr)
Inventor
华峰
Original Assignee
RealMe重庆移动通信有限公司
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 RealMe重庆移动通信有限公司 filed Critical RealMe重庆移动通信有限公司
Priority to EP20860761.4A priority Critical patent/EP4007257A4/en
Publication of WO2021043172A1 publication Critical patent/WO2021043172A1/zh
Priority to US17/676,508 priority patent/US20220182546A1/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/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/73Deblurring; Sharpening
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0277Details of the structure or mounting of specific components for a printed circuit board assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/45Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • 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
    • 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
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing 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/67Focus control based on electronic image sensor signals
    • 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
    • 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/20172Image enhancement details
    • G06T2207/20201Motion blur correction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera

Definitions

  • This application relates to the field of camera technology, in particular to a camera control method, device, storage medium and electronic equipment.
  • electronic devices such as smart phones and tablet computers are usually equipped with multiple cameras, and take advantage of the characteristics of these cameras to shoot in order to obtain the best shooting effect.
  • the user can switch any one of the multiple cameras to run in the foreground according to actual needs, preview through the camera running in the foreground, and then shoot.
  • the present application provides a camera control method, device, storage medium, and electronic equipment, which can solve the problem of freezing of preview images in the process of switching cameras.
  • the present application provides a camera control method applied to an electronic device, the electronic device includes a plurality of cameras with different focal lengths, and the camera control method includes:
  • the second camera is switched to the foreground operation, and the image collected by the second camera is set as a preview image.
  • the present application provides a camera control device, which is applied to an electronic device, the electronic device includes a plurality of cameras with different focal lengths, and the camera control device includes:
  • the trend determination module is used to detect the change trend of the focus distance of the first camera running in the foreground when the camera is in the shooting preview mode, and the image collected by the first camera is set as the preview image;
  • the background determining module is configured to determine the second camera corresponding to the changing trend of the focusing distance according to the preset corresponding relationship between the changing trend of the focusing distance and the camera;
  • a background starting module configured to start the determined second camera in the background
  • the switching control module is configured to switch the second camera to the foreground operation when the real-time focusing distance of the first camera is within the focusing distance interval corresponding to the second camera, and to collect the data collected by the second camera
  • the image is set as a preview image.
  • the present application provides a storage medium on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the camera control method provided in the embodiments of the present application.
  • this application provides an electronic device, including:
  • each camera has a different focal length, and each camera collects preview images for preview when it is in the shooting preview mode and the foreground is running;
  • the display screen is used to display the preview image collected by the camera running in the foreground
  • Memory used to store computer programs
  • a processor which is electrically connected to the multiple cameras and the display screen, respectively, and is used for: by invoking the computer program:
  • the second camera is switched to the foreground operation, and the image collected by the second camera is set as a preview image.
  • FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of the structure of a circuit board in the electronic device shown in FIG. 1.
  • FIG. 2 is a schematic diagram of the structure of a circuit board in the electronic device shown in FIG. 1.
  • Fig. 3 is a rear view of the electronic device shown in Fig. 1.
  • FIG. 4 is a schematic diagram of the structure of the camera module in the electronic device shown in FIG. 3.
  • FIG. 5 is a schematic flowchart of a camera control method provided by an embodiment of the present application.
  • FIG. 6 is another schematic flowchart of a camera control method provided by an embodiment of the present application.
  • Fig. 7 is a schematic structural diagram of a camera control device provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another structure of an electronic device provided by an embodiment of the present application.
  • the embodiment of the present application first provides a camera control method, which is applied to an electronic device.
  • the electronic device 20 may be a computing device such as a laptop computer, a computer monitor containing an embedded computer, a tablet computer, a cell phone, a media player, or other handheld or portable electronic devices, smaller devices (such as a wrist Watch devices, hanging devices, earphones or earpiece devices, devices embedded in glasses or other devices worn on the user’s head, or other wearable or micro devices), televisions, and those that do not contain embedded computers Computer monitors, game devices, navigation devices, embedded systems (such as systems in which electronic devices with displays are installed in kiosks or cars), devices that implement the functions of two or more of these devices, or Other electronic equipment.
  • a computing device such as a laptop computer, a computer monitor containing an embedded computer, a tablet computer, a cell phone, a media player, or other handheld or portable electronic devices, smaller devices (such as a wrist Watch devices, hanging devices, earphones or earpiece devices, devices embedded in glasses
  • the electronic device 20 is a portable device, such as a cell phone, a media player, a tablet computer, or other portable computing device. Other configurations can be used for the electronic device 20 if necessary. It should be noted that the structure shown in FIG. 1 is only exemplary.
  • the electronic device 20 includes a housing such as a housing 200.
  • the housing 200 may be formed of plastic, glass, ceramic, fiber composite material, metal (for example, stainless steel, aluminum, etc.), other suitable materials, or a combination of any two or more of these materials.
  • the housing 200 may be formed using a one-piece configuration in which some or all of the housing 200 is processed or molded into a single structure, or multiple structures (for example, an inner frame structure, a surface forming an outer housing) may be used. One or more structures, etc.) are formed.
  • the housing 200 can be used as a carrier of the electronic device 20 and can carry components of the electronic device 20.
  • the electronic device 20 may also include a circuit board such as a circuit board 400.
  • the circuit board 400 can be used as the main board of the electronic device 20, and the circuit board 400 can integrate a processor, a memory, a camera, and other devices.
  • the memory of the electronic device 20 can store various computer programs and data of the electronic device 20.
  • the processor of the electronic device 20 can be the control center of the electronic device 20, which can connect various parts of the entire electronic device 20 by using various excuses and lines, by running or calling the computer program stored in the memory, and calling the computer program stored in the memory.
  • the data performs various functions of the electronic device 20 and processes the data, for example, the processor can control the camera of the electronic device 20 to take pictures.
  • FIG. 2 is a schematic diagram of the structure of the circuit board in the electronic device shown in FIG. 1.
  • the circuit board 400 may integrate multiple functional devices of the electronic device 20, such as a camera, a sensor, and the like.
  • one or more mounting areas such as the mounting area 440 may be provided on the circuit board 400.
  • the installation area 440 can install various functional devices of the electronic device 20, such as a camera.
  • one or more storage spaces such as storage space 420 may also be provided on the circuit board 400.
  • the storage space 420 can store functional devices of the electronic device 20, or in other words, the storage space 420 can avoid functional devices of the electronic device 20, such as a camera.
  • the storage space 420 may be a notch or a groove provided on the edge of the circuit board 400.
  • the storage space 420 may also be a through hole penetrating the circuit board 400 in the thickness direction of the circuit board 400, or hollowed out.
  • the installation area 440 can arrange the circuits of the circuit board 400.
  • the installation area 440 and the storage space 420 on the electronic device 400 may be spaced apart from each other. It should be noted that one of the installation areas 440 and one of the storage spaces 420 on the electronic device 400 may be arranged adjacent to each other.
  • the electronic device 20 may also include a camera module 40.
  • the camera module 40 may be arranged on the housing 200 of the electronic device 20, for example, the camera module 40 may be arranged at the back cover of the housing 200, and the camera module 40 may be used as a rear camera of the electronic device 20. It should be noted that the camera module 40 can also be used as a front camera of the electronic device 20, and the camera module 40 can be set at the position of the display screen of the electronic device 20.
  • FIG. 4 is a schematic structural diagram of the camera module in the electronic device shown in FIG.
  • the camera module 40 may include at least two cameras. At least one camera is disposed on the circuit board 400, for example, at least one camera may be disposed on the mounting area 440 of the circuit board 400. At least one camera may be arranged in the storage space 420 opened on the circuit board 400.
  • each of the multiple cameras of the camera module 40 has a different function, and the size of each camera is also different.
  • some cameras in the camera module 40 have a higher height, and some cameras have a lower height.
  • a camera with a higher height can be arranged in the storage space 420 opened on the circuit board 400, and a camera with a lower height can be arranged in the mounting area 440 on the circuit board 400.
  • the thickness of the circuit board 400 and the camera module 40 stacked on each other can be reduced.
  • the wiring arrangement on the circuit board 400 can be increased.
  • the space of the circuit board 400 is becoming more and more limited.
  • the present application not only does not increase the thickness of the complete electronic device 20 as a whole, but also increases the size of the circuit board to arrange circuits, so as to realize more functions and control of the circuit board 400.
  • the camera module 40 may include an A camera 42, a B camera 44, a C camera 46 and a D camera 48.
  • the height of at least one of the A camera 42 and the D camera 48 is greater than the height of the B camera 44 and the C camera 46.
  • the height of the A camera 42 is greater than the height of the B camera 44 and the C camera 46
  • the height of the D camera 48 is substantially equal to the height of the B camera 44 or the C camera 46.
  • the heights of both the A camera 42 and the D camera 48 are greater than the heights of the B camera 44 and the C camera 46.
  • the heights of the B camera 44 and the C camera 46 are approximately the same.
  • the A camera 42 and the D camera 48 can be arranged in the storage space 420 opened by the circuit board 400, and the B camera 44 and the C camera 46 can be arranged in the mounting area 46 of the circuit board 400. This facilitates the overall height arrangement of the camera module 40 and can reduce the thickness of the electronic device 20 to a greater extent.
  • the present application provides a camera control method, which is applied to an electronic device, the electronic device includes a plurality of cameras with different focal lengths, and the camera control method includes:
  • the second camera is switched to the foreground operation, and the image collected by the second camera is set as a preview image.
  • the determining the second camera corresponding to the changing trend of the focusing distance according to the preset corresponding relationship between the changing trend of the focusing distance and the camera includes:
  • the camera whose focal length is greater than that of the first camera is determined as the second camera;
  • a camera with a focal length smaller than the first camera is determined as the second camera.
  • the determining a camera with a focal length greater than the first camera as the second camera when the change trend of the focus distance is continuously increasing within a preset time period includes:
  • the camera with the smallest focal length among the multiple cameras with a focal length greater than the first camera is determined as The second camera;
  • the determining that a camera with a focal length smaller than the first camera as the second camera when the change trend of the focus distance continues to decrease within a preset time period includes:
  • the camera with the largest focal length among the multiple cameras with a focal length smaller than the first camera is determined as The second camera.
  • the method further includes:
  • the third camera When the focal length of the second camera is greater than the first camera, and a third camera with a focal length smaller than the first camera is also activated in the background, the third camera is turned off; or
  • the fourth camera When the focal length of the second camera is smaller than the first camera, and a fourth camera with a focal length larger than the first camera is also activated in the background, the fourth camera is turned off.
  • the second camera when the real-time focusing distance of the first camera is within the focusing distance interval corresponding to the second camera, the second camera is switched to the foreground operation, and the The image collected by the second camera is set as a preview image, including:
  • the real-time focus distance of the first camera is within the focus distance interval corresponding to the second camera, and the image collected by the second camera overlaps the content of the preview image collected by the first camera, the The second camera is switched to run in the foreground, and the image collected by the second camera is set as a preview image.
  • the method further includes:
  • the second camera is directly started to run in the foreground.
  • the camera control method further includes:
  • blur processing is performed on the preview image collected by the first camera.
  • the performing blur processing on the preview image collected by the first camera includes:
  • Gaussian blur processing is performed on the preview image collected by the first camera.
  • the detecting the change trend of the focus distance of the first camera running in the foreground includes:
  • the change trend of the focus distance is obtained according to the relationship between the focus distances at two adjacent moments.
  • FIG. 5 is a schematic flowchart of the camera control method provided by the embodiment of the present application.
  • the camera control method is applied to the electronic device provided by the embodiment of the present application.
  • the electronic device includes multiple cameras with different focal lengths.
  • the process of the camera control method provided by the embodiment of the present application may be as follows:
  • the electronic device includes multiple cameras with different focal lengths, such as two cameras, three cameras, four cameras, and so on. Taking four cameras as an example, please refer to Figure 4.
  • the electronic equipment includes A camera 42, B camera 44, C camera 46, and D camera 48, where the focal length of D camera 48 is smaller than that of C camera 46, and the focal length of C camera 46 It is smaller than the focal length of the A camera 42, and the focal length of the A camera 42 is smaller than the focal length of the B camera. It is understandable that cameras with different focal lengths are suitable for different shooting distances.
  • the electronic device can turn on the shooting preview mode according to the user's operating instructions.
  • the electronic device starts the user-configured or default-configured camera to run in the foreground, so as to collect preview images through the camera running in the foreground and pass the display screen Display the preview image collected by the camera running in the foreground.
  • the electronic device can also adjust the focus distance of the camera running in the foreground according to the user's operation to shoot objects at different distances. For example, the focus distance can be increased to shoot objects at a longer distance, and the focus distance can be reduced. Shoot closer objects.
  • the camera running in the foreground of the electronic device for collecting preview images is recorded as the first camera, and the first camera may be any one of the multiple cameras included in the electronic device.
  • the camera that is started to run in the foreground when the shooting preview mode is turned on in the default configuration of the electronic device is the A camera 42.
  • the electronic device detects the change trend of the focus distance of the first camera running in the foreground, and obtains the detection result.
  • the electronic device when detecting the change trend of the focus distance of the first camera running in the foreground, can follow a preset time interval (the preset time interval can be empirically set by a person of ordinary skill in the art according to actual needs, for example, set to 500 Seconds), sample the focus distance of the first camera at two adjacent moments, and then compare the relationship between the focus distances at the two adjacent moments. If the focus distance at the next moment is greater than the focus distance at the previous moment, you can It is obtained that the change trend of the focus distance of the first camera is larger, and if the focus distance of the next moment is smaller than the focus distance of the previous moment, it can be obtained that the change trend of the focus distance of the first camera is smaller.
  • the preset time interval can be empirically set by a person of ordinary skill in the art according to actual needs, for example, set to 500 Seconds
  • the second camera corresponding to the change trend of the focus distance is determined according to the preset corresponding relationship between the change trend of the focus distance and the camera.
  • the multiple cameras included in the electronic device are respectively suitable for shooting scenes at different distances. It can be understood that when the focus distance of the first camera running at the current station becomes larger, it indicates that the user wants to shoot at a longer distance. The focus distance change trend of the first camera running at the current station is getting smaller, indicating that the user wants to shoot closer objects. Based on this, the focus distance change trend and the camera correspondence are also preset in the electronic device relationship.
  • the electronic device detects the change trend of the focus distance of the first camera running in the foreground, it further determines the camera corresponding to the change trend of the focus distance of the first camera according to the preset change trend of the focus distance and the correspondence between the cameras. Recorded as the second camera.
  • the determined second camera is started in the background.
  • the electronic device After determining the second camera, the electronic device starts the determined second camera in the background, waiting to be switched to the foreground to run. It should be noted that when the second camera is started in the background, it will collect images in real time, but the electronic device does not use the image collected by the second camera as a preview image, but uses the image collected by the first camera in real time as a preview image.
  • the second camera is switched to the foreground operation, and the image collected by the second camera is set as the preview image.
  • each camera is divided into a corresponding focus distance interval.
  • the focus distance interval divided for each camera does not exceed the actual focus distance that can be achieved.
  • the focusing distance interval corresponding to the D camera 48 is [a, b)
  • the focusing distance interval corresponding to the A camera 42 is [b, c)
  • the focusing distance corresponding to the C camera 46 is The distance interval is [c, d)
  • the focus distance interval corresponding to the B camera 44 is [d, e], where the focus distance a ⁇ b ⁇ c ⁇ d ⁇ e.
  • the second camera when the electronic device detects that the real-time focusing distance of the first camera is within the focusing distance interval corresponding to the second camera, the second camera is switched to the foreground operation and becomes the new first camera. At the same time, Switch the previous first camera to run in the background, and set the image captured by the second camera as the preview image, that is, use the new first camera to capture the preview image for preview to display the captured preview on the screen image.
  • the first camera activated by default is the A camera 42. If the determined second camera is the B camera 44, while the B camera 44 is switched to the foreground operation, The A camera 42 is switched to run in the background. After the switching is completed, the B camera 44 becomes the new first camera.
  • the electronic device includes multiple cameras with different focal lengths.
  • it detects the change trend of the focus distance of the first camera running in the foreground and changes according to the preset focus distance.
  • the corresponding relationship between the trend and the camera determine the second camera corresponding to the change trend of the focus distance, and then start the determined second camera in the background.
  • the real-time focus distance of the first camera is within the focus distance interval corresponding to the second camera
  • the second camera is set
  • the second camera is switched to the foreground operation, and the image collected by the second camera is set as the preview image. Therefore, by starting the cameras that need to be switched in advance, there is no need to start the cameras that need to be switched in real time during the switching, which can save the waiting time during the switching and avoid the freeze of the preview image.
  • the second camera is switched to the foreground operation, and Set the image captured by the second camera as the preview image.
  • the electronic device does not immediately switch the second camera to the foreground operation when the real-time focus distance of the first camera is within the focus distance interval corresponding to the second camera, but first determines the content of the images collected by the first camera and the second camera Whether to overlap or not, if the content of the images collected by the first camera and the second camera overlap, the second camera is switched to the foreground and becomes a new first camera, so that the new first camera collects preview images for previewing.
  • determining the second camera corresponding to the change trend of the focus distance according to the preset corresponding relationship between the change trend of the focus distance and the camera includes:
  • the camera with the focal length greater than the first camera among the plurality of cameras is determined as the second camera.
  • the preset change trend of the focus distance and the object relationship of the camera include:
  • the corresponding camera is a camera with a focal length greater than that of the first camera.
  • the preset duration is at least two preset time intervals as a constraint, and the value of the preset duration can be obtained by those of ordinary skill in the art according to actual needs.
  • the preset time interval is configured to be 500 milliseconds
  • the preset duration can be configured as 1 second.
  • the electronic device determines the second camera corresponding to the change trend of the focus distance according to the corresponding relationship between the change trend of the focus distance and the camera, it first obtains the change trend of the focus distance of the first camera within a preset time period.
  • the preset time interval for adopting the change trend of the focus distance is configured to be 500 milliseconds, and the preset time period is configured to be 1 second, the electronic device can obtain the two focus distances sampled in the nearest 1 second from the current time. Change trend. If both the acquired two focus distance change trends become larger, it can be determined that the focus distance change trend continues to increase within the preset time period.
  • the electronic device determines the camera with the focal length greater than the first camera among the plurality of cameras as the second camera.
  • the electronic device determines the camera with the smallest focal length among the multiple cameras with a focal length greater than the first camera as the second camera , That is, the camera whose focal length is closest to the first camera is determined as the second camera.
  • the first camera is the D camera 48 with the smallest focal length.
  • the camera with a focal length greater than the first camera is not unique, including A camera 42, B camera 44, and C camera 46.
  • the electronic device determines the C camera 46 with the smallest focal length as the second camera.
  • the method further includes:
  • a third camera with a focal length smaller than the first camera is also activated in the background, the third camera is turned off.
  • the second camera after the camera with the focal length greater than the first camera among the multiple cameras included in the electronic device is determined as the second camera, and the second camera is switched to the foreground to run, it is recognized whether the background is still activated with a focal length smaller than the first camera.
  • the camera of the previous first camera is recorded as the third camera.
  • the electronic device turns off the third camera to save power consumption.
  • determining the second camera corresponding to the changing trend of the focusing distance according to the preset corresponding relationship between the changing trend of the focusing distance and the camera includes:
  • the camera with the focal length smaller than the first camera among the plurality of cameras is determined as the second camera.
  • the preset change trend of the focus distance and the object relationship of the camera further include:
  • the changing trend of the focus distance is that it continues to decrease within a preset time period, and the corresponding camera is a camera with a focal length smaller than that of the first camera.
  • the preset duration is at least two preset time intervals as a constraint, and the value of the preset duration can be obtained by those of ordinary skill in the art according to actual needs.
  • the preset time interval is configured to be 500 milliseconds
  • the preset duration can be configured as 1 second.
  • the electronic device determines the second camera corresponding to the change trend of the focus distance according to the corresponding relationship between the change trend of the focus distance and the camera, it first obtains the change trend of the focus distance of the first camera within a preset time period.
  • the preset time interval for adopting the change trend of the focus distance is configured to be 500 milliseconds, and the preset time period is configured to be 1 second, the electronic device can obtain the two focus distances sampled in the nearest 1 second from the current time. Change trend, if both the acquired two focus distance change trends become smaller, it can be determined that the focus distance change trend continues to decrease within the preset time period.
  • the electronic device determines the camera with the focal length smaller than the first camera among the plurality of cameras as the second camera.
  • the electronic device determines the camera with the largest focal length among the multiple cameras with a focal length smaller than the first camera as the second camera , That is, the camera whose focal length is closest to the first camera is determined as the second camera.
  • the first camera is the B camera 44 with the largest focal length.
  • the camera with a focal length smaller than the first camera is not unique, including the A camera 42, C camera 46, and D camera 48.
  • the electronic device determines the A camera 42 with the largest focal length as the second camera.
  • the method further includes:
  • the second camera after the camera with the focal length smaller than the first camera among the multiple cameras included in the electronic device is determined as the second camera, and the second camera is switched to the foreground to run, it is recognized whether the background is still activated with a focal length larger than that of the first camera.
  • the camera of the previous first camera is recorded as the fourth camera.
  • the electronic device turns off the fourth camera to save power consumption.
  • the method further includes:
  • the second camera is directly started to run in the foreground.
  • the electronic device when the user adjusts the focus distance of the first camera too quickly, or directly adjusts the focus distance to within the focus distance interval corresponding to the second camera, the electronic device will not be able to start the determined second camera in time in the background. webcam. In view of the situation that the real-time focusing distance of the first camera is within the focusing distance interval corresponding to the second camera, and the second camera is not activated in the background, the electronic device directly activates the second camera to run in the foreground.
  • the camera control method provided in the embodiment of the present application further includes:
  • blur processing is performed on the preview image collected by the first camera.
  • the preview image collected by the first camera is also blurred.
  • the electronic device performs Gaussian blur processing on the preview image collected by the first camera, so that the cutting process of the camera is smoother.
  • FIG. 6 is a schematic flowchart of another camera control method provided by an embodiment of the application.
  • the camera control method is applied to the electronic device provided by the embodiment of the application.
  • the electronic device includes a plurality of cameras with different focal lengths.
  • the process of the camera control method may include:
  • the electronic device starts the default-configured camera as the first camera to run to the foreground, and collects a preview image for preview through the first camera.
  • the electronic device can turn on the shooting preview mode according to the user's operation instruction.
  • the shooting preview mode is turned on, the electronic device starts the camera with the default configuration to run in the foreground, so as to collect the preview image through the camera running in the foreground and display it on the display screen.
  • the preview image collected by the camera running in the foreground is not limited to the shooting preview mode.
  • the camera running in the foreground of the electronic device for collecting preview images is recorded as the first camera, and the first camera may be any one of the multiple cameras included in the electronic device.
  • the camera that is started to run in the foreground when the shooting preview mode is turned on in the default configuration of the electronic device is the A camera 42.
  • the electronic device detects the change trend of the focus distance of the first camera running in the foreground, and if the change trend of the focus distance continues to increase within the preset time period, then proceeds to 203, if the change trend of the focus distance continues within the preset time period If it becomes smaller, go to 204.
  • the electronic device detects the change trend of the focus distance of the first camera running in the foreground, and obtains the detection result.
  • the electronic device when detecting the change trend of the focus distance of the first camera running in the foreground, can follow a preset time interval (the preset time interval can be empirically set by a person of ordinary skill in the art according to actual needs, for example, set to 500 Seconds), sample the focus distance of the first camera at two adjacent moments, and then compare the relationship between the focus distances at the two adjacent moments. If the focus distance at the next moment is greater than the focus distance at the previous moment, you can It is obtained that the change trend of the focus distance of the first camera is larger, and if the focus distance of the next moment is smaller than the focus distance of the previous moment, it can be obtained that the change trend of the focus distance of the first camera is smaller.
  • the preset time interval can be empirically set by a person of ordinary skill in the art according to actual needs, for example, set to 500 Seconds
  • the electronic device determines the camera with a focal length greater than the first camera among the multiple cameras as the second camera to be switched to the foreground to run, and then proceeds to 205.
  • the preset change trend of the focus distance and the object relationship of the camera include:
  • the corresponding camera is a camera with a focal length greater than that of the first camera.
  • the preset duration is at least two preset time intervals as a constraint, and the value of the preset duration can be obtained by those of ordinary skill in the art according to actual needs.
  • the preset time interval is configured to be 500 milliseconds
  • the preset duration can be configured as 1 second.
  • the electronic device determines the second camera corresponding to the change trend of the focus distance according to the corresponding relationship between the change trend of the focus distance and the camera, it first obtains the change trend of the focus distance of the first camera within a preset time period.
  • the preset time interval for adopting the change trend of the focus distance is configured to be 500 milliseconds, and the preset time period is configured to be 1 second, the electronic device can obtain the two focus distances sampled in the nearest 1 second from the current time. Change trend. If both the acquired two focus distance change trends become larger, it can be determined that the focus distance change trend continues to increase within the preset time period.
  • the electronic device determines the camera with the focal length greater than the first camera among the plurality of cameras as the second camera.
  • the electronic device determines the camera with the smallest focal length among the multiple cameras with a focal length greater than the first camera as the second camera , That is, the camera whose focal length is closest to the first camera is determined as the second camera.
  • the first camera is the D camera 48 with the smallest focal length.
  • the camera with a focal length greater than the first camera is not unique, including A camera 42, B camera 44, and C camera 46.
  • the electronic device determines the C camera 46 with the smallest focal length as the second camera.
  • the electronic device determines a camera with a focal length smaller than the first camera among the plurality of cameras as a second camera to be switched to a foreground operation.
  • the preset change trend of the focus distance and the object relationship of the camera further include:
  • the changing trend of the focus distance is that it continues to decrease within a preset time period, and the corresponding camera is a camera with a focal length smaller than that of the first camera.
  • the preset duration is at least two preset time intervals as a constraint, and the value of the preset duration can be obtained by those of ordinary skill in the art according to actual needs.
  • the preset time interval is configured to be 500 milliseconds
  • the preset duration can be configured as 1 second.
  • the electronic device determines the second camera corresponding to the change trend of the focus distance according to the corresponding relationship between the change trend of the focus distance and the camera, it first obtains the change trend of the focus distance of the first camera within a preset time period.
  • the preset time interval for adopting the change trend of the focus distance is configured to be 500 milliseconds, and the preset time period is configured to be 1 second, the electronic device can obtain the two focus distances sampled in the nearest 1 second from the current time. Change trend, if both the acquired two focus distance change trends become smaller, it can be determined that the focus distance change trend continues to decrease within the preset time period.
  • the electronic device determines that the focus distance change trend of the first camera continues to decrease within the preset time period, and the electronic device is that the focal length of the multiple cameras is less than The camera of the first camera is determined to be the second camera.
  • the electronic device determines the camera with the largest focal length among the multiple cameras with a focal length smaller than the first camera as the second camera , That is, the camera whose focal length is closest to the first camera is determined as the second camera.
  • the first camera is the B camera 44 with the largest focal length.
  • the camera with a focal length smaller than the first camera is not unique, including the A camera 42, C camera 46, and D camera 48.
  • the electronic device determines the A camera 42 with the largest focal length as the second camera.
  • the electronic device starts the second camera in the background.
  • the electronic device After determining the second camera, the electronic device starts the determined second camera in the background, waiting to be switched to the foreground to run.
  • the electronic device switches the second camera to a foreground operation, and collects a preview image for preview through the second camera.
  • each camera is divided into a corresponding focus distance interval.
  • the focus distance interval divided for each camera does not exceed the actual focus distance that can be achieved.
  • the focusing distance interval corresponding to the D camera 48 is [a, b)
  • the focusing distance interval corresponding to the A camera 42 is [b, c)
  • the focusing distance corresponding to the C camera 46 is The distance interval is [c, d)
  • the focus distance interval corresponding to the B camera 44 is [d, e], where the focus distance a ⁇ b ⁇ c ⁇ d ⁇ e.
  • the second camera when the electronic device detects that the real-time focusing distance of the first camera is within the focusing distance interval corresponding to the second camera, the second camera is switched to the foreground operation and becomes the new first camera. At the same time, The previous first camera is switched to run in the background, so that a preview image for preview is collected through the new first camera, and the collected preview image is displayed on the screen.
  • the first camera activated by default is the A camera 42. If the determined second camera is the B camera 44, while the B camera 44 is switched to the foreground operation, The A camera 42 is switched to run in the background. After the switching is completed, the B camera 44 becomes the new first camera.
  • the embodiment of the present application also provides a camera control device.
  • FIG. 7 is a schematic structural diagram of a camera control device provided by an embodiment of the application.
  • the camera control device is applied to an electronic device, and the electronic device includes a plurality of cameras with different focal lengths.
  • the camera control device includes a trend determination module 301, a background determination module 302, a background activation module 303, and a switching control module 304, as follows:
  • the trend determination module 301 is used to detect the change trend of the focus distance of the first camera running in the foreground when the camera is in the shooting preview mode, and the image collected by the first camera is set as the preview image;
  • the background determining module 302 is configured to determine the second camera corresponding to the change trend of the focus distance according to the preset corresponding relationship between the change trend of the focus distance and the camera;
  • the background starting module 303 is used to start the determined second camera in the background
  • the switching control module 304 is configured to switch the second camera to the foreground operation when the real-time focusing distance of the first camera is within the focusing distance interval corresponding to the second camera, and set the image collected by the second camera as the preview image.
  • the background determining module 302 when determining the second camera corresponding to the changing trend of the focusing distance according to the preset corresponding relationship between the changing trend of the focusing distance and the camera, is configured to:
  • the camera with the focal length greater than the first camera among the multiple cameras is determined as the second camera;
  • the camera with the focal length smaller than the first camera among the plurality of cameras is determined as the second camera.
  • the background determining module 302 is configured to:
  • the camera with the smallest focal length among the multiple cameras with a focal length greater than the first camera is determined as the second camera;
  • the background determining module 302 is configured to:
  • the camera with the largest focal length among the multiple cameras with a focal length smaller than the first camera is determined as the second camera.
  • the switching control module 304 is further configured to:
  • the fourth camera When the focal length of the second camera is smaller than the first camera, and a fourth camera with a focal length larger than the first camera is also activated in the background, the fourth camera is turned off.
  • the switching control Module 304 is used to:
  • the switching control module 304 is further configured to:
  • the second camera is directly started to run in the foreground.
  • the camera control device provided by the embodiment of the present application further includes an image blurring module for:
  • blur processing is performed on the preview image collected by the first camera.
  • the camera control device provided in this embodiment of the application belongs to the same concept as the camera control method in the above embodiment. Any method provided in the camera control method embodiment can be run on the camera control device, and its specific implementation For details of the process, refer to the embodiment of the camera control method, which will not be repeated here.
  • the embodiment of the present application provides a computer-readable storage medium on which a computer program is stored.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (Read Only Memory, ROM,), or a random access device (Random Access Memory, RAM), etc.
  • the electronic device includes a processor 401, a memory 402, a plurality of cameras 403 with different focal lengths, and a display screen 404.
  • the processor 401 is electrically connected to the memory 402, multiple cameras 403, and the display screen 404.
  • the processor 401 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device. It executes the electronic device by running or loading the computer program stored in the memory 402 and calling the data stored in the memory 402. Various functions and process data.
  • the memory 402 may be used to store software programs and modules.
  • the processor 401 executes various functional applications and data processing by running the computer programs and modules stored in the memory 402.
  • the memory 402 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, a computer program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of electronic equipment, etc.
  • the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the memory 402 may further include a memory controller to provide the processor 401 with access to the memory 402.
  • Each camera 403 collects a preview image for preview when it is in the shooting preview mode and the foreground is running.
  • the display screen 404 is used to display preview images collected by a camera running in the foreground.
  • the processor 401 in the electronic device will load the instructions corresponding to the process of one or more computer programs into the memory 402 according to the following steps, and run the instructions by the processor 401 and store them in the memory 402
  • the computer program to achieve various functions, as follows:
  • the second camera 403 When the real-time focusing distance of the first camera 403 is within the focusing distance interval corresponding to the second camera 403, the second camera 403 is switched to the foreground operation, and the image collected by the second camera 403 is set as a preview image.
  • the processor 401 executes:
  • the camera 403 with a focal length greater than that of the first camera 403 among the plurality of cameras 403 is determined as the second camera 403;
  • the camera 403 with a focal length smaller than the first camera 403 among the plurality of cameras 403 is determined as the second camera 403.
  • the processor 401 when the focus distance change trend continues to increase within a preset time period, and the camera 403 with a focal length larger than the first camera 403 among the plurality of cameras 403 is determined to be the second camera 403, the processor 401 further executes:
  • the camera 403 with the smallest focal length among the multiple cameras 403 with a focal length greater than the first camera 403 is determined as the first camera 403.
  • the processor 401 executes:
  • the camera 403 with the largest focal length among the multiple cameras 403 with a focal length smaller than the first camera 403 is determined as the first camera 403 Two cameras 403.
  • the processor 401 further executes:
  • the third camera 403 When the focal length of the second camera 403 is greater than that of the first camera 403, and a third camera 403 with a focal length smaller than that of the first camera 403 is activated in the background, the third camera 403 is turned off; or
  • the fourth camera 403 When the focal length of the second camera 403 is smaller than the first camera 403, and a fourth camera 403 with a focal length larger than the first camera 403 is also activated in the background, the fourth camera 403 is turned off.
  • the processor 401 when the real-time focusing distance of the first camera is within the focusing distance interval corresponding to the second camera, the second camera is switched to the foreground operation, and the image collected by the second camera is set as the preview image, the processor 401 also executes:
  • the processor 401 further executes:
  • blur processing is performed on the preview image collected by the first camera 403.
  • the electronic device provided in the embodiments of this application belongs to the same concept as the camera control method in the above embodiments. Any method provided in the camera control method embodiment can be run on the electronic device. The specific implementation process is detailed. See the embodiment of the feature extraction method, which will not be repeated here.
  • the camera control method of the embodiment of the present application ordinary testers in the field can understand that all or part of the process of implementing the camera control method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program.
  • the computer program may be stored in a computer readable storage medium, such as stored in the memory of an electronic device, and executed by at least one processor in the electronic device.
  • the execution process may include such as the camera control method.
  • the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, and the like.
  • the camera control device of the embodiment of the present application its functional modules may be integrated into one processing chip, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, etc. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

本申请公开了一种摄像头控制方法、装置、存储介质及电子设备,其中,通过侦测前台运行的第一摄像头的对焦距离变化趋势;然后确定对应对焦距离变化趋势的第二摄像头,并在后台启动确定的第二摄像头,当第一摄像头的实时对焦距离位于第二摄像头对应的对焦距离区间内时,将第二摄像头切换至前台运行。

Description

摄像头控制方法、装置、存储介质及电子设备
本申请要求于2019年09月03日提交中国专利局、申请号为201910878336.0、发明名称为“摄像头控制方法、装置、存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及摄像技术领域,具体涉及一种摄像头控制方法、装置、存储介质及电子设备。
背景技术
目前,如智能手机、平板电脑等电子设备通常配备了多个摄像头,并利用这些摄像头的特性进行拍摄,以获得最优的拍摄效果。比如,在预览时,用户可以根据实际需要来切换多个摄像头中的任一摄像头至前台运行,通过前台运行的摄像头进行预览,进而拍摄等。
发明内容
本申请提供了一种摄像头控制方法、装置、存储介质及电子设备,能够解决切换摄像头过程中预览图像卡顿的问题。
第一方面,本申请提供了一种摄像头控制方法,应用于电子设备,所述电子设备包括多个焦距不同的摄像头,所述摄像头控制方法包括:
在处于拍摄预览模式时,侦测前台运行的第一摄像头的对焦距离变化趋势,所述第一摄像头采集的图像被设为预览图像;
根据预设的对焦距离变化趋势和摄像头的对应关系,确定对应所述对焦距离变化趋势的第二摄像头;
在后台启动确定的所述第二摄像头;
当所述第一摄像头的实时对焦距离位于所述第二摄像头对应的对焦距离区间内时,将所述第二摄像头切换至前台运行,并将所述第二摄像头采集的图像设为预览图像。
第二方面,本申请提供了一种摄像头控制装置,应用于电子设备,所述电子设备包括多个焦距不同的摄像头,所述摄像头控制装置包括:
趋势确定模块,用于在处于拍摄预览模式时,侦测前台运行的第一摄像头的对焦距离变化趋势,所述第一摄像头采集的图像被设为预览图像;
后台确定模块,用于根据预设的对焦距离变化趋势和摄像头的对应关系,确定对应所述对焦距离变化趋势的第二摄像头;
后台启动模块,用于在后台启动确定的所述第二摄像头;
切换控制模块,用于当所述第一摄像头的实时对焦距离位于所述第二摄像头对应的对焦距离区间内时,将所述第二摄像头切换至前台运行,并将所述第二摄像头采集的图像设为预览图像。
第三方面,本申请提供了一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运 行时,使得所述计算机执行如本申请实施例提供的摄像头控制方法。
第四方面,本申请提供了一种电子设备,包括:
多个摄像头,每一摄像头的焦距不同,每一摄像头在拍摄预览模式下且前台运行时采集用于预览的预览图像;
显示屏,用于显示前台运行的摄像头所采集的预览图像;
存储器,用于存储计算机程序;
处理器,所述处理器分别与所述多个摄像头及所述显示屏电性连接,通过调用所述计算机程序,用于:
在处于拍摄预览模式时,侦测前台运行的第一摄像头的对焦距离变化趋势;
根据预设的对焦距离变化趋势和摄像头的对应关系,确定对应所述对焦距离变化趋势的第二摄像头;
在后台启动确定的所述第二摄像头;
当所述第一摄像头的实时对焦距离位于所述第二摄像头对应的对焦距离区间内时,将所述第二摄像头切换至前台运行,并将所述第二摄像头采集的图像设为预览图像。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的电子设备的一结构示意图。
图2为图1所示电子设备中电路板的结构示意图。
图3为图1所示电子设备的后视图。
图4为图3所示电子设备中摄像头模组的结构示意图。
图5是本申请实施例提供的摄像头控制方法的一流程示意图。
图6是本申请实施例提供的摄像头控制方法的另一流程示意图。
图7是本申请实施例提供的摄像头控制装置的一结构示意图。
图8是本申请实施例提供的电子设备的另一结构示意图。
具体实施方式
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。
本申请实施例首先提供一种摄像头控制方法,该摄像头控制方法应用于电子设备。请参照图1,图1为摄像头控制方法所应用的电子设备的一结构示意图。其中,电子设备20可为计算设备诸如膝上型计算机、包含嵌入式计算机的计算机监视器、平板电脑、蜂窝电话、媒体播放器、或其他手持式或便携式电子设备、较小的设备(诸如腕表设备、挂式设备、耳机或听筒设备、被嵌入在眼镜中的设备或者佩戴 在用户的头部上的其他设备,或其他可佩戴式或微型设备)、电视机、不包含嵌入式计算机的计算机显示器、游戏设备、导航设备、嵌入式系统(诸如其中具有显示器的电子设备被安装在信息亭或汽车中的系统)、实现这些设备中的两个或更多个设备的功能的设备、或其他电子设备。在图1的示例性配置中,电子设备20是便携式设备,诸如蜂窝电话、媒体播放器、平板电脑、或者其他便携式计算设备。如果需要,其他配置可用于电子设备20。应当说明的是,图1所示出的结构仅是示例性的。
如图1所示,电子设备20包括壳体诸如壳体200。壳体200可由塑料、玻璃、陶瓷、纤维复合材料、金属(例如,不锈钢、铝等)、其他合适的材料、或这些材料的任意两种或更多种的组合形成。壳体200可使用一体式配置形成,在该一体式配置中,一些或全部壳体200被加工或模制成单一结构,或者可使用多个结构(例如,内框架结构、形成外部外壳表面的一种或多种结构等)形成。
壳体200可以作为电子设备20的载体,可以承载电子设备20的器件。
如图1所示,电子设备20还可以包括电路板诸如电路板400。电路板400可以作为电子设备20的主板,电路板400上可以集成处理器、存储器、摄像头等器件。电子设备20的存储器可以存储电子设备20的各种计算机程序和数据。电子设备20的处理器可以是电子设备20的控制中心,可以利用各种借口和线路连接整个电子设备20的各个部分,通过运行或调用存储在存储器内的计算机程序,以及调用存储在存储器内的数据,执行电子设备20的各种功能和处理数据,诸如处理器可以控制电子设备20的摄像头拍照等。
如图2所示,图2为图1所示电子设备中电路板的结构示意图。电路板400上可以集成多个电子设备20的功能器件,诸如摄像头、传感器等。在一些实施例中,电路板400上可以设置一个或多个安装区诸如安装区440。安装区440可以安装电子设备20的各种功能器件,诸如摄像头。在一些实施例中,电路板400上也可以设置一个或多个收纳空间诸如收纳空间420。收纳空间420可以收纳电子设备20的功能器件,或者说收纳空间420可以避让电子设备20的功能器件,诸如摄像头。
其中,收纳空间420可以为设置在电路板400边缘的缺口,或者说凹槽。收纳空间420也可以为在电路板400厚度方向上贯穿电路板400的通孔,或者说镂空设置。其中,安装区440可以排布电路板400的线路。
可以理解的是,电子设备400上的安装区440和收纳空间420可以相互间隔开设置。需要说明的是,电子设备400上的其中一个安装区440和其中一个收纳空间420可以相邻设置。
请参阅图3,图3为图1所示电子设备的后视图。电子设备20还可以包括摄像头模组40。摄像头模组40可设置在电子设备20的壳体200上,诸如摄像头模组40可以设置在壳体200的后盖位置,摄像头模组40可以作为电子设备20的后置摄像头。需要说明的是,摄像头模组40也可以作为电子设备20的前置摄像头,可以将摄像头模组40设置在电子设备20的显示屏位置。
请参阅图4,图4为图3所示电子设备中摄像头模组的结构示意图。摄像头模组40可包括至少两个摄像头。至少一个摄像头设置在电路板400上,诸如至少一个摄像头可以设置在电路板400的安装区440上。至少一个摄像头可以设置在电路板400上开设的收纳空间420内。
可以理解的是,通常摄像头模组40的多个摄像头中各个摄像头的功能作用不同,各个摄像头的尺 寸也不同。诸如摄像头模组40中有些摄像头的高度较高,有些摄像头的高度较低。本申请实施例可以将高度较高的摄像头设置在电路板400上开设的收纳空间420内,可以将高度较低的摄像头设置在电路板400上的安装区440。相比将所有的摄像头都安装在电路板400上可以减少电路板400和摄像头模组40相互层叠的厚度。而且相比将所有摄像头都安装在电路板400开设的收纳空间420内可以增加电路板400上的线路排布。
需要说明的是,在电子设备功能越来越多,内部器件越来越多的情况下,电路板400的空间越来越有限。本申请不仅可以在整体上不会额外整机电子设备20的厚度,而且还可以增加电路板的尺寸,以排布线路,实现电路板400更多的功能和控制。
示例性的,摄像头模组40可以包括A摄像头42、B摄像头44、C摄像头46和D摄像头48。其中,A摄像头42和D摄像头48至少有一个的高度大于B摄像头44和C摄像头46的高度。比如:A摄像头42的高度均大于B摄像头44和C摄像头46的高度,D摄像头48的高度与B摄像头44或C摄像头46的高度基本相等。再比如:A摄像头42和D摄像头48两者的高度均大于B摄像头44和C摄像头46的高度。其中,B摄像头44和C摄像头46两者的高度大致相等。本申请实施例可以将A摄像头42和D摄像头48设置在电路板400开设的收纳空间420内,可以将B摄像头44和C摄像头46设置在电路板400的安装区46。这样有利于摄像头模组40整体高度的排布,可以更大程度上减少电子设备20的厚度。
本申请提供一种摄像头控制方法,应用于电子设备,所述电子设备包括多个焦距不同的摄像头,所述摄像头控制方法包括:
在处于拍摄预览模式时,侦测前台运行的第一摄像头的对焦距离变化趋势,所述第一摄像头采集的图像被设为预览图像;
根据预设的对焦距离变化趋势和摄像头的对应关系,确定对应所述对焦距离变化趋势的第二摄像头;
在后台启动确定的所述第二摄像头;
当所述第一摄像头的实时对焦距离位于所述第二摄像头对应的对焦距离区间内时,将所述第二摄像头切换至前台运行,并将所述第二摄像头采集的图像设为预览图像。
可选地,在一实施例中,所述根据预设的对焦距离变化趋势和摄像头的对应关系,确定对应所述对焦距离变化趋势的第二摄像头,包括:
当所述对焦距离变化趋势为预设时长内持续变大时,将焦距大于所述第一摄像头的摄像头确定为所述第二摄像头;或者
当所述对焦距离变化趋势为预设时长内持续变小时,将焦距小于所述第一摄像头的摄像头确定为所述第二摄像头。
可选地,在一实施例中,所述当所述对焦距离变化趋势为预设时长内持续变大时,将焦距大于所述第一摄像头的摄像头确定为所述第二摄像头,包括:
当所述对焦距离变化趋势为预设时长内持续变大,且焦距大于所述第一摄像头的摄像头为多个时, 将焦距大于所述第一摄像头的多个摄像头中焦距最小的摄像头确定为所述第二摄像头;
所述当所述对焦距离变化趋势为预设时长内持续变小时,将焦距小于所述第一摄像头的摄像头确定为所述第二摄像头,包括:
当所述对焦距离变化趋势为预设时长内持续变小,且焦距小于所述第一摄像头的摄像头为多个时,将焦距小于所述第一摄像头的多个摄像头中焦距最大的摄像头确定为所述第二摄像头。
可选地,在一实施例中,所述将所述第二摄像头切换至前台运行之后,还包括:
当所述第二摄像头的焦距大于所述第一摄像头,且后台还启动有焦距小于所述第一摄像头的第三摄像头时,关闭所述第三摄像头;或者
当所述第二摄像头的焦距小于所述第一摄像头,且后台还启动有焦距大于所述第一摄像头的第四摄像头时,关闭所述第四摄像头。
可选地,在一实施例中,所述当所述第一摄像头的实时对焦距离位于所述第二摄像头对应的对焦距离区间内时,将所述第二摄像头切换至前台运行,并将所述第二摄像头采集的图像设为预览图像,包括:
当所述第一摄像头的实时对焦距离位于所述第二摄像头对应的对焦距离区间内,且所述第二摄像头采集的图像与所述第一摄像头采集的预览图像的内容重叠时,将所述第二摄像头切换至前台运行,并将所述第二摄像头采集的图像设为预览图像。
可选地,在一实施例中,所述确定对应所述对焦距离变化趋势的第二摄像头之后,还包括:
当所述第一摄像头的实时对焦距离位于所述第二摄像头对应的对焦距离区间内,且所述第二摄像头未在后台启动时,则直接启动所述第二摄像头至前台运行。
可选地,在一实施例中,所述摄像头控制方法还包括:
在启动所述第二摄像头期间,对所述第一摄像头采集的预览图像进行模糊处理。
可选地,在一实施例中,所述对所述第一摄像头采集的预览图像进行模糊处理,包括:
对所述第一摄像头采集的预览图像进行高斯模糊处理。
可选地,在一实施例中,所述侦测前台运行的第一摄像头的对焦距离变化趋势,包括:
按照预设时间间隔采样得到第一摄像头在相邻两个时刻的对焦距离;
根据相邻两个时刻的对焦距离的大小关系得到所述对焦距离变化趋势。
基于以上电子设备的结构,对本申请实施例提供的摄像头控制方法进行说明,请参照图5,图5为本申请实施例提供的摄像头控制方法的流程示意图。该摄像头控制方法应用于本申请实施例提供的电子设备,该电子设备包括多个焦距不同的摄像头,如图5所示,本申请实施例提供的摄像头控制方法的流程可以如下:
101,在处于拍摄预览模式时,侦测前台运行的第一摄像头的对焦距离变化趋势,第一摄像头采集的图像被设为预览图像。
应当说明的是,在本申请实施例中,电子设备包括多个焦距不同的摄像头,比如两个摄像头、三个摄像头、四个摄像头等。以四个摄像头为例,请参照图4,电子设备包括A摄像头42、B摄像头44、C摄像头46以及D摄像头48,其中,D摄像头48的焦距小于C摄像头46的焦距,C摄像头46的焦距 小于A摄像头42的焦距,A摄像头42的焦距小于B摄像头的焦距。可以理解的是,不同焦距的摄像头所适于拍摄的距离不同。
电子设备可以根据用户的操作指令开启拍摄预览模式,在开启拍摄预览模式时,电子设备启动用户配置或者缺省配置的摄像头至前台运行,从而通过该前台运行的摄像头采集预览图像,并通过显示屏显示前台运行的摄像头所采集的预览图像。此外,电子设备还可以根据用户操作,对前台运行的摄像头的对焦距离进行调整,以对不同距离对象进行拍摄,比如,可以增大对焦距离以拍摄更远距离的对象,可以减小对焦距离以拍摄更近距离的对象。
应当说明的是,本申请实施例中将电子设备前台运行的用于采集预览图像的摄像头的记为第一摄像头,该第一摄像头可以为电子设备包括的多个摄像头中的任一摄像头。
比如,以图4所示的四个摄像头为例,电子设备缺省配置的在开启拍摄预览模式时启动至前台运行的摄像头为A摄像头42。
在拍摄预览模式下,电子设备对前台运行的第一摄像头的对焦距离变化趋势进行侦测,得到侦测结果。
其中,在侦测前台运行的第一摄像头的对焦距离变化趋势时,电子设备可以按照预设时间间隔(该预设时间间隔可由本领域普通技术人员根据实际需要取经验值,比如设置为500耗秒),采样得到第一摄像头在相邻两个时刻的对焦距离,然后,比较相邻两个时刻的对焦距离的大小关系,若后一时刻的对焦距离大于前一时刻的对焦距离,则可得到第一摄像头的对焦距离变化趋势为变大,若后一时刻的对焦距离小于前一时刻的对焦距离,则可得到第一摄像头的对焦距离变化趋势为变小。
在102中,根据预设的对焦距离变化趋势和摄像头的对应关系,确定对应对焦距离变化趋势的第二摄像头。
如上所述,电子设备包括的多个摄像头分别适用于不同距离场景的拍摄,可以理解的是,当前台运行的第一摄像头的对焦距离变化趋势为变大时,说明用户想要拍摄更远距离的对象,而当前台运行的第一摄像头的对焦距离变化趋势为变小时,说明用户想要拍摄更近距离的对象,基于此,还在电子设备中预先设置有对焦距离变化趋势和摄像头的对应关系。
相应的,电子设备在侦测到前台运行的第一摄像头的对焦距离变化趋势之后,进一步根据预设的对焦距离变化趋势和摄像头的对应关系,确定对应第一摄像头的对焦距离变化趋势的摄像头,记为第二摄像头。
在103中,在后台启动确定的第二摄像头。
电子设备在确定出第二摄像头之后,在后台启动确定的第二摄像头,以待切换至前台运行。应当说明的是,当第二摄像头在后台启动后,其将实时采集图像,但电子设备并不将第二摄像头采集到的图像作为预览图像,而是进行将第一摄像头实时采集的图像作为预览图像。
在104中,当第一摄像头的实时对焦距离位于第二摄像头对应的对焦距离区间内时,将第二摄像头切换至前台运行,并将第二摄像头采集的图像设为预览图像。
应当说明的是,根据电子设备所包括的多个摄像头适于拍摄距离场景的不同,为每一摄像头划分有 对应的对焦距离区间。其中,针对每一摄像头所划分的对焦距离区间不超过其实际所能达到的对焦距离。
比如,以图4所示的四个摄像头为例,D摄像头48对应的对焦距离区间为[a,b),A摄像头42对应的对焦距离区间为[b,c),C摄像头46对应的对焦距离区间为[c,d),B摄像头44对应的对焦距离区间为[d,e],其中,对焦距离a<b<c<d<e。
本申请实施例中,电子设备在侦测到第一摄像头的实时对焦距离位于第二摄像头对应的对焦距离区间内时,即将第二摄像头切换切换至前台运行,成为新的第一摄像头,同时,将之前的第一摄像头切换至后台运行,并将第二摄像头采集的图像设为预览图像,即通过该新的第一摄像头采集用于预览的预览图像,以通过屏幕显示其所采集到的预览图像。
比如,以图4所示的四个摄像头为例,缺省启动的第一摄像头为A摄像头42,若确定的第二摄像头为B摄像头44,则在将B摄像头44切换至前台运行的同时,将A摄像头42切换至后台运行,在完成切换后,B摄像头44即成为新的第一摄像头。
由上可知,本申请实施例中,电子设备包括多个焦距不同的摄像头,通过在处于拍摄预览模式时,侦测前台运行的第一摄像头的对焦距离变化趋势,并根据预设的对焦距离变化趋势和摄像头的对应关系,确定对应对焦距离变化趋势的第二摄像头,然后在后台启动确定的第二摄像头,当第一摄像头的实时对焦距离位于第二摄像头对应的对焦距离区间内时,将第二摄像头切换至前台运行,并将第二摄像头采集的图像设为预览图像。由此,通过提前启动需要切换的摄像头,从而无需在切换时实时启动需要切换的摄像头,能够节省切换时的等待时间,从而避免了预览图像的卡顿。
在一实施例中,“当第一摄像头的实时对焦距离位于第二摄像头对应的对焦距离区间内时,将第二摄像头切换至前台运行,并将第二摄像头采集的图像设为预览图像”,包括:
当第一摄像头的实时对焦距离位于第二摄像头对应的对焦距离区间内,且第二摄像头采集的图像与第一摄像头与采集的预览图像的内容重叠时,将第二摄像头切换至前台运行,并将第二摄像头采集的图像设为预览图像。
其中,电子设备并不在第一摄像头的实时对焦距离位于第二摄像头对应的对焦距离区间内时立即将第二摄像头切换至前台运行,而是先判断第一摄像头和第二摄像头采集的图像的内容是否重叠,若第一摄像头与第二摄像头采集的图像内容重叠,在将第二摄像头切换至前台运行,成为新的第一摄像头,从而通过该新的第一摄像头采集用于预览的预览图像。
由于本申请实施例中切换摄像头时不会存在预览图像内容的跳变,能够实现摄像头的无痕切换。
在一实施例中,“根据预设的对焦距离变化趋势和摄像头的对应关系,确定对应对焦距离变化趋势的第二摄像头”,包括:
当对焦距离变化趋势为预设时长内持续变大时,将多个摄像头中焦距大于第一摄像头的摄像头确定为第二摄像头。
本申请实施例中,预设的对焦距离变化趋势和摄像头的对象关系包括:
对焦距离变化趋势为预设时长内持续变大时,对应的摄像头为焦距大于第一摄像头的摄像头。
其中,以预设时长为至少两个预设时间间隔为约束,预设时长的取值可由本领域普通技术人员根据 实际需要取经验值,比如,当预设时间间隔被配置为500毫秒时,可以将预设时长配置为1秒。
相应的,电子设备在根据对焦距离变化趋势和摄像头的对应关系,确定对应对焦距离变化趋势的第二摄像头时,首先获取到第一摄像头在预设时长内的对焦距离变化趋势。比如,用于采用对焦距离变化趋势的预设时间间隔被配置为500毫秒,预设时长被配置为1秒,电子设备可以获取到距离当前时刻最近的1秒内所采样得到的两个对焦距离变化趋势,若获取到的两个对焦距离变化趋势均为变大,则可以判定对焦距离变化趋势在预设时长内持续变大。
当判定第一摄像头的对焦距离变化趋势在预设时长内持续变大时,电子设备即将多个摄像头中焦距大于第一摄像头的摄像头确定为第二摄像头。其中,若焦距大于第一摄像头的摄像头不唯一,也即是焦距大于第一摄像头的摄像头为多个时,电子设备将焦距大于第一摄像头的多个摄像头中焦距最小的摄像头确定为第二摄像头,也即是将其中焦距与第一摄像头最接近的摄像头确定为第二摄像头。
比如,以图4所示的4个摄像头为例,第一摄像头为焦距最小的D摄像头48,此时焦距大于第一摄像头的摄像头不唯一,包括A摄像头42、B摄像头44以及C摄像头46,此时电子设备将其中焦距最小的C摄像头46确定为第二摄像头。
在一实施例中,在将第二摄像头切换至前台运行之后,还包括:
若后台还启动有焦距小于第一摄像头的第三摄像头,则关闭第三摄像头。
本申请实施例中,在将电子设备所包括的多个摄像头中焦距大于第一摄像头的摄像头确定为第二摄像头,并将该第二摄像头切换至前台运行后,识别后台是否还启动有焦距小于之前的第一摄像头的摄像头,记为第三摄像头。
若识别到后台还启动有第三摄像头,则电子设备关闭该第三摄像头,以节省电量消耗。
在一实施例中,“根据预设的对焦距离变化趋势和摄像头的对应关系,确定对应对焦距离变化趋势的第二摄像头”,包括:
当对焦距离变化趋势为预设时长内持续变小时,将多个摄像头中焦距小于第一摄像头的摄像头确定为第二摄像头。
本申请实施例中,预设的对焦距离变化趋势和摄像头的对象关系还包括:
对焦距离变化趋势为预设时长内持续变小时,对应的摄像头为焦距小于第一摄像头的摄像头。
其中,以预设时长为至少两个预设时间间隔为约束,预设时长的取值可由本领域普通技术人员根据实际需要取经验值,比如,当预设时间间隔被配置为500毫秒时,可以将预设时长配置为1秒。
相应的,电子设备在根据对焦距离变化趋势和摄像头的对应关系,确定对应对焦距离变化趋势的第二摄像头时,首先获取到第一摄像头在预设时长内的对焦距离变化趋势。比如,用于采用对焦距离变化趋势的预设时间间隔被配置为500毫秒,预设时长被配置为1秒,电子设备可以获取到距离当前时刻最近的1秒内所采样得到的两个对焦距离变化趋势,若获取到的两个对焦距离变化趋势均为变小,则可以判定对焦距离变化趋势在预设时长内持续变小。
当判定第一摄像头的对焦距离变化趋势在预设时长内持续变小时,电子设备即将多个摄像头中焦距小于第一摄像头的摄像头确定为第二摄像头。其中,若焦距小于第一摄像头的摄像头不唯一,也即是焦 距小于第一摄像头的摄像头为多个时,电子设备将焦距小于第一摄像头的多个摄像头中焦距最大的摄像头确定为第二摄像头,也即是将其中焦距与第一摄像头最接近的摄像头确定为第二摄像头。
比如,以图4所示的4个摄像头为例,第一摄像头为焦距最大的B摄像头44,此时焦距小于第一摄像头的摄像头不唯一,包括A摄像头42、C摄像头46以及D摄像头48,此时电子设备将其中焦距最大的A摄像头42确定为第二摄像头。
在一实施例中,在将第二摄像头切换至前台运行之后,还包括:
若后台还启动有焦距大于第一摄像头的第四摄像头,则关闭第四摄像头。
本申请实施例中,在将电子设备所包括的多个摄像头中焦距小于第一摄像头的摄像头确定为第二摄像头,并将该第二摄像头切换至前台运行后,识别后台是否还启动有焦距大于之前的第一摄像头的摄像头,记为第四摄像头。
若识别到后台还启动有第四摄像头,则电子设备关闭该第四摄像头,以节省电量消耗。
在一实施例中,在“确定对应对焦距离变化趋势的第二摄像头”之后,还包括:
当第一摄像头的实时对焦距离位于第二摄像头对应的对焦距离区间内,且第二摄像头未在后台启动时,则直接启动第二摄像头至前台运行。
需要说明的是,当用户对第一摄像头的对焦距离的调整过快,或者直接将对焦距离调整至第二摄像头对应的对焦距离区间内时,将导致电子设备无法及时在后台启动确定的第二摄像头。针对于这种第一摄像头的实时对焦距离位于第二摄像头对应的对焦距离区间内,且第二摄像头未在后台启动的情况,电子设备直接启动第二摄像头至前台运行。
在一实施例中,本申请实施例提供的摄像头控制方法还包括:
在启动第二摄像头期间,对第一摄像头采集的预览图像进行模糊处理。
应当说明的是,启动摄像头需要花费一定时间,本申请实施例中为了降低启动第二摄像头所带来的卡顿感,在启动第二摄像头期间,还对第一摄像头采集的预览图像进行模糊处理。
其中,对于采用何种方式对第一摄像头采集的预览图像进行模糊处理,本申请实施例中不做具体限制,可由本领域普通技术人员根据实际需要选取模糊处理方式,比如,本申请实施例中,电子设备对第一摄像头采集的预览图像进行高斯模糊处理,使得摄像头的切过程更为平滑。
请参照图6,图6为本申请实施例提供的摄像头控制方法的另一种流程示意图,该摄像头控制方法应用于本申请实施例提供的电子设备,如该电子设备包括多个焦距不同的摄像头,该摄像头控制方法的流程可以包括:
201,在开启拍摄预览模式时,电子设备启动缺省配置的摄像头作为第一摄像头至前台运行,并通过第一摄像头采集用于预览的预览图像。
其中,电子设备可以根据用户的操作指令开启拍摄预览模式,在开启拍摄预览模式时,电子设备启动缺省配置的摄像头至前台运行,从而通过该前台运行的摄像头采集预览图像,并通过显示屏显示前台运行的摄像头所采集的预览图像。
应当说明的是,本申请实施例中将电子设备前台运行的用于采集预览图像的摄像头的记为第一摄像头,该第一摄像头可以为电子设备包括的多个摄像头中的任一摄像头。
比如,以图4所示的四个摄像头为例,电子设备缺省配置的在开启拍摄预览模式时启动至前台运行的摄像头为A摄像头42。
202,电子设备侦测前台运行的第一摄像头的对焦距离变化趋势,若该对焦距离变化趋势为预设时长内持续变大,则转入203,若该对焦距离变化趋势为预设时长内持续变小,则转入204。
在拍摄预览模式下,电子设备对前台运行的第一摄像头的对焦距离变化趋势进行侦测,得到侦测结果。
其中,在侦测前台运行的第一摄像头的对焦距离变化趋势时,电子设备可以按照预设时间间隔(该预设时间间隔可由本领域普通技术人员根据实际需要取经验值,比如设置为500耗秒),采样得到第一摄像头在相邻两个时刻的对焦距离,然后,比较相邻两个时刻的对焦距离的大小关系,若后一时刻的对焦距离大于前一时刻的对焦距离,则可得到第一摄像头的对焦距离变化趋势为变大,若后一时刻的对焦距离小于前一时刻的对焦距离,则可得到第一摄像头的对焦距离变化趋势为变小。
203,电子设备将多个摄像头中焦距大于第一摄像头的摄像头确定为待切换至前台运行的第二摄像头,转入205。
本申请实施例中,预设的对焦距离变化趋势和摄像头的对象关系包括:
对焦距离变化趋势为预设时长内持续变大时,对应的摄像头为焦距大于第一摄像头的摄像头。
其中,以预设时长为至少两个预设时间间隔为约束,预设时长的取值可由本领域普通技术人员根据实际需要取经验值,比如,当预设时间间隔被配置为500毫秒时,可以将预设时长配置为1秒。
相应的,电子设备在根据对焦距离变化趋势和摄像头的对应关系,确定对应对焦距离变化趋势的第二摄像头时,首先获取到第一摄像头在预设时长内的对焦距离变化趋势。比如,用于采用对焦距离变化趋势的预设时间间隔被配置为500毫秒,预设时长被配置为1秒,电子设备可以获取到距离当前时刻最近的1秒内所采样得到的两个对焦距离变化趋势,若获取到的两个对焦距离变化趋势均为变大,则可以判定对焦距离变化趋势在预设时长内持续变大。
当判定第一摄像头的对焦距离变化趋势在预设时长内持续变大时,电子设备即将多个摄像头中焦距大于第一摄像头的摄像头确定为第二摄像头。其中,若焦距大于第一摄像头的摄像头不唯一,也即是焦距大于第一摄像头的摄像头为多个时,电子设备将焦距大于第一摄像头的多个摄像头中焦距最小的摄像头确定为第二摄像头,也即是将其中焦距与第一摄像头最接近的摄像头确定为第二摄像头。
比如,以图4所示的4个摄像头为例,第一摄像头为焦距最小的D摄像头48,此时焦距大于第一摄像头的摄像头不唯一,包括A摄像头42、B摄像头44以及C摄像头46,此时电子设备将其中焦距最小的C摄像头46确定为第二摄像头。
204,电子设备将多个摄像头中焦距小于第一摄像头的摄像头确定为待切换至前台运行的第二摄像头。
本申请实施例中,预设的对焦距离变化趋势和摄像头的对象关系还包括:
对焦距离变化趋势为预设时长内持续变小时,对应的摄像头为焦距小于第一摄像头的摄像头。
其中,以预设时长为至少两个预设时间间隔为约束,预设时长的取值可由本领域普通技术人员根据实际需要取经验值,比如,当预设时间间隔被配置为500毫秒时,可以将预设时长配置为1秒。
相应的,电子设备在根据对焦距离变化趋势和摄像头的对应关系,确定对应对焦距离变化趋势的第二摄像头时,首先获取到第一摄像头在预设时长内的对焦距离变化趋势。比如,用于采用对焦距离变化趋势的预设时间间隔被配置为500毫秒,预设时长被配置为1秒,电子设备可以获取到距离当前时刻最近的1秒内所采样得到的两个对焦距离变化趋势,若获取到的两个对焦距离变化趋势均为变小,则可以判定对焦距离变化趋势在预设时长内持续变小。
当判定第一摄像头的对焦距离变化趋势在预设时长内持续变小时,电子设备即当判定第一摄像头的对焦距离变化趋势在预设时长内持续变小时,电子设备即将多个摄像头中焦距小于第一摄像头的摄像头确定为第二摄像头。其中,若焦距小于第一摄像头的摄像头不唯一,也即是焦距小于第一摄像头的摄像头为多个时,电子设备将焦距小于第一摄像头的多个摄像头中焦距最大的摄像头确定为第二摄像头,也即是将其中焦距与第一摄像头最接近的摄像头确定为第二摄像头。
比如,以图4所示的4个摄像头为例,第一摄像头为焦距最大的B摄像头44,此时焦距小于第一摄像头的摄像头不唯一,包括A摄像头42、C摄像头46以及D摄像头48,此时电子设备将其中焦距最大的A摄像头42确定为第二摄像头。
205,电子设备在后台启动第二摄像头。
电子设备在确定出第二摄像头之后,在后台启动确定的第二摄像头,以待切换至前台运行。
206,当第一摄像头的实时对焦距离位于第二摄像头对应的对焦距离区间内时,电子设备将第二摄像头切换至前台运行,通过第二摄像头采集用于预览的预览图像。
应当说明的是,根据电子设备所包括的多个摄像头适于拍摄距离场景的不同,为每一摄像头划分有对应的对焦距离区间。其中,针对每一摄像头所划分的对焦距离区间不超过其实际所能达到的对焦距离。
比如,以图4所示的四个摄像头为例,D摄像头48对应的对焦距离区间为[a,b),A摄像头42对应的对焦距离区间为[b,c),C摄像头46对应的对焦距离区间为[c,d),B摄像头44对应的对焦距离区间为[d,e],其中,对焦距离a<b<c<d<e。
本申请实施例中,电子设备在侦测到第一摄像头的实时对焦距离位于第二摄像头对应的对焦距离区间内时,即将第二摄像头切换切换至前台运行,成为新的第一摄像头,同时,将之前的第一摄像头切换至后台运行,从而通过新的第一摄像头采集用于预览的预览图像,并通过屏幕显示所采集到的预览图像。
比如,以图4所示的四个摄像头为例,缺省启动的第一摄像头为A摄像头42,若确定的第二摄像头为B摄像头44,则在将B摄像头44切换至前台运行的同时,将A摄像头42切换至后台运行,在完成切换后,B摄像头44即成为新的第一摄像头。
本申请实施例还提供一种摄像头控制装置。请参照图7,图7为本申请实施例提供的摄像头控制装置的结构示意图。其中该摄像头控制装置应用于电子设备,该电子设备包括多个焦距不同的摄像头,该 摄像头控制装置包括趋势确定模块301、后台确定模块302、后台启动模块303以及切换控制模块304,如下:
趋势确定模块301,用于在处于拍摄预览模式时,侦测前台运行的第一摄像头的对焦距离变化趋势,第一摄像头采集的图像被设为预览图像;
后台确定模块302,用于根据预设的对焦距离变化趋势和摄像头的对应关系,确定对应对焦距离变化趋势的第二摄像头;
后台启动模块303,用于在后台启动确定的第二摄像头;
切换控制模块304,用于当第一摄像头的实时对焦距离位于第二摄像头对应的对焦距离区间内时,将第二摄像头切换至前台运行,并将第二摄像头采集的图像设为预览图像。
在一实施例中,在根据预设的对焦距离变化趋势和摄像头的对应关系,确定对应对焦距离变化趋势的第二摄像头时,后台确定模块302用于:
当对焦距离变化趋势为预设时长内持续变大时,将多个摄像头中焦距大于第一摄像头的摄像头确定为第二摄像头;或者
当对焦距离变化趋势为预设时长内持续变小时,将多个摄像头中焦距小于第一摄像头的摄像头确定为第二摄像头。
在一实施例中,当对焦距离变化趋势为预设时长内持续变大时,将多个摄像头中焦距大于第一摄像头的摄像头确定为第二摄像头时,后台确定模块302用于:
当对焦距离变化趋势为预设时长内持续变大,且焦距大于第一摄像头的摄像头为多个时,将焦距大于第一摄像头的多个摄像头中焦距最小的摄像头确定为第二摄像头;
当对焦距离变化趋势为预设时长内持续变小时,将焦距小于第一摄像头的摄像头确定为第二摄像头时,后台确定模块302用于:
当对焦距离变化趋势为预设时长内持续变小,且焦距小于第一摄像头的摄像头为多个时,将焦距小于第一摄像头的多个摄像头中焦距最大的摄像头确定为第二摄像头。
在一实施例中,在将第二摄像头切换至前台运行之后,切换控制模块304还用于:
当第二摄像头的焦距大于第一摄像头,且后台还启动有焦距小于第一摄像头的第三摄像头时,关闭第三摄像头;或者
当第二摄像头的焦距小于第一摄像头,且后台还启动有焦距大于第一摄像头的第四摄像头时,关闭第四摄像头。
在一实施例中,在第一摄像头的实时对焦距离位于第二摄像头对应的对焦距离区间内,将第二摄像头切换至前台运行,并将第二摄像头采集的图像设为预览图像时,切换控制模块304用于:
当第一摄像头的实时对焦距离位于第二摄像头对应的对焦距离区间内,且第二摄像头采集的图像与第一摄像头采集的预览图像的内容重叠时,将第二摄像头切换至前台运行,并将第二摄像头采集的图像设为预览图像。
在一实施例中,在确定对应对焦距离变化趋势的第二摄像头之后,切换控制模块304还用于:
当第一摄像头的实时对焦距离位于第二摄像头对应的对焦距离区间内,且第二摄像头未在后台启动时,则直接启动第二摄像头至前台运行。
在一实施例中,本申请实施例提供的摄像头控制装置还包括图像模糊模块,用于:
在启动第二摄像头期间,对第一摄像头采集的预览图像进行模糊处理。
应当说明的是,本申请实施例提供的摄像头控制装置与上文实施例中的摄像头控制方法属于同一构思,在摄像头控制装置上可以运行摄像头控制方法实施例中提供的任一方法,其具体实现过程详见摄像头控制方法实施例,此处不再赘述。
本申请实施例提供一种计算机可读的存储介质,其上存储有计算机程序,当其存储的计算机程序在计算机上执行时,使得计算机执行如本申请实施例提供的摄像头控制方法中的步骤。其中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM,)或者随机存取器(Random Access Memory,RAM)等。
本申请实施例还提供一种电子设备,请参照图8,电子设备包括处理器401、存储器402、多个焦距不同的摄像头403、显示屏404。其中,处理器401与存储器402、多个摄像头403以及显示屏404电性连接。
处理器401是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器402内的计算机程序,以及调用存储在存储器402内的数据,执行电子设备的各种功能并处理数据。
存储器402可用于存储软件程序以及模块,处理器401通过运行存储在存储器402的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器402可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器402可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器402还可以包括存储器控制器,以提供处理器401对存储器402的访问。
每一摄像头403在拍摄预览模式下且前台运行时采集用于预览的预览图像。
显示屏404,用于显示前台运行的摄像头所采集的预览图像。
在本申请实施例中,电子设备中的处理器401会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器402中,并由处理器401运行存储在存储器402中的计算机程序,从而实现各种功能,如下:
在处于拍摄预览模式时,侦测前台运行的第一摄像头403的对焦距离变化趋势;
根据预设的对焦距离变化趋势和摄像头403的对应关系,确定对应对焦距离变化趋势的第二摄像头403;
在后台启动确定的第二摄像头403;
当第一摄像头403的实时对焦距离位于第二摄像头403对应的对焦距离区间内时,将第二摄像头403 切换至前台运行,并将第二摄像头403采集的图像设为预览图像。
在一实施例中,在根据预设的对焦距离变化趋势和摄像头403的对应关系,确定对应对焦距离变化趋势的第二摄像头403时,处理器401执行:
当对焦距离变化趋势为预设时长内持续变大时,将多个摄像头403中焦距大于第一摄像头403的摄像头403确定为第二摄像头403;或者
当对焦距离变化趋势为预设时长内持续变小时,将多个摄像头403中焦距小于第一摄像头403的摄像头403确定为第二摄像头403。
在一实施例中,在对焦距离变化趋势为预设时长内持续变大,将多个摄像头403中焦距大于第一摄像头403的摄像头403确定为第二摄像头403时,处理器401还执行:
当对焦距离变化趋势为预设时长内持续变大,且焦距大于第一摄像头403的摄像头403为多个时,将焦距大于第一摄像头403的多个摄像头403中焦距最小的摄像头403确定为第二摄像头403;
在对焦距离变化趋势为预设时长内持续变小时,将焦距小于第一摄像头403的摄像头403确定为第二摄像头403时,处理器401还执行:
当对焦距离变化趋势为预设时长内持续变小,且焦距小于第一摄像头403的摄像头403为多个时,将焦距小于第一摄像头403的多个摄像头403中焦距最大的摄像头403确定为第二摄像头403。
在一实施例中,在将第二摄像头403切换至前台运行之后,处理器401还执行:
当第二摄像头403的焦距大于第一摄像头403,且后台还启动有焦距小于第一摄像头403的第三摄像头403时,关闭第三摄像头403;或者
当第二摄像头403的焦距小于第一摄像头403,且后台还启动有焦距大于第一摄像头403的第四摄像头403时,关闭第四摄像头403。
在一实施例中,在第一摄像头的实时对焦距离位于第二摄像头对应的对焦距离区间内,将第二摄像头切换至前台运行,并将第二摄像头采集的图像设为预览图像时,处理器401还执行:
当第一摄像头的实时对焦距离位于第二摄像头对应的对焦距离区间内,且第二摄像头采集的图像与第一摄像头采集的预览图像的内容重叠时,将第二摄像头切换至前台运行,并将第二摄像头采集的图像设为预览图像。
在一实施例中,处理器401还执行:
在启动第二摄像头403期间,对第一摄像头403采集的预览图像进行模糊处理。
应当说明的是,本申请实施例提供的电子设备与上文实施例中的摄像头控制方法属于同一构思,在电子设备上可以运行摄像头控制方法实施例中提供的任一方法,其具体实现过程详见特征提取方法实施例,此处不再赘述。
需要说明的是,对本申请实施例的摄像头控制方法而言,本领域普通测试人员可以理解实现本申请实施例的摄像头控制方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如摄像头控制方法的实施例的流程。其中,所述的存储介质可 为磁碟、光盘、只读存储器、随机存取记忆体等。
对本申请实施例的摄像头控制装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。
以上对本申请实施例所提供的一种摄像头控制方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种摄像头控制方法,应用于电子设备,其中,所述电子设备包括多个焦距不同的摄像头,所述摄像头控制方法包括:
    在处于拍摄预览模式时,侦测前台运行的第一摄像头的对焦距离变化趋势,所述第一摄像头采集的图像被设为预览图像;
    根据预设的对焦距离变化趋势和摄像头的对应关系,确定对应所述对焦距离变化趋势的第二摄像头;
    在后台启动确定的所述第二摄像头;
    当所述第一摄像头的实时对焦距离位于所述第二摄像头对应的对焦距离区间内时,将所述第二摄像头切换至前台运行,并将所述第二摄像头采集的图像设为预览图像。
  2. 根据权利要求1所述的摄像头控制方法,其中,所述根据预设的对焦距离变化趋势和摄像头的对应关系,确定对应所述对焦距离变化趋势的第二摄像头,包括:
    当所述对焦距离变化趋势为预设时长内持续变大时,将焦距大于所述第一摄像头的摄像头确定为所述第二摄像头;或者
    当所述对焦距离变化趋势为预设时长内持续变小时,将焦距小于所述第一摄像头的摄像头确定为所述第二摄像头。
  3. 根据权利要求2所述的摄像头控制方法,其中,所述当所述对焦距离变化趋势为预设时长内持续变大时,将焦距大于所述第一摄像头的摄像头确定为所述第二摄像头,包括:
    当所述对焦距离变化趋势为预设时长内持续变大,且焦距大于所述第一摄像头的摄像头为多个时,将焦距大于所述第一摄像头的多个摄像头中焦距最小的摄像头确定为所述第二摄像头;
    所述当所述对焦距离变化趋势为预设时长内持续变小时,将焦距小于所述第一摄像头的摄像头确定为所述第二摄像头,包括:
    当所述对焦距离变化趋势为预设时长内持续变小,且焦距小于所述第一摄像头的摄像头为多个时,将焦距小于所述第一摄像头的多个摄像头中焦距最大的摄像头确定为所述第二摄像头。
  4. 根据权利要求2所述的摄像头控制方法,其中,所述将所述第二摄像头切换至前台运行之后,还包括:
    当所述第二摄像头的焦距大于所述第一摄像头,且后台还启动有焦距小于所述第一摄像头的第三摄像头时,关闭所述第三摄像头;或者
    当所述第二摄像头的焦距小于所述第一摄像头,且后台还启动有焦距大于所述第一摄像头的第四摄像头时,关闭所述第四摄像头。
  5. 根据权利要求1所述的摄像头控制方法,其中,所述当所述第一摄像头的实时对焦距离位于所述第二摄像头对应的对焦距离区间内时,将所述第二摄像头切换至前台运行,并将所述第二摄像头采集的图像设为预览图像,包括:
    当所述第一摄像头的实时对焦距离位于所述第二摄像头对应的对焦距离区间内,且所述第二摄像头 采集的图像与所述第一摄像头采集的预览图像的内容重叠时,将所述第二摄像头切换至前台运行,并将所述第二摄像头采集的图像设为预览图像。
  6. 根据权利要求1所述的摄像头控制方法,其中,所述确定对应所述对焦距离变化趋势的第二摄像头之后,还包括:
    当所述第一摄像头的实时对焦距离位于所述第二摄像头对应的对焦距离区间内,且所述第二摄像头未在后台启动时,则直接启动所述第二摄像头至前台运行。
  7. 根据权利要求6所述的摄像头控制方法,其中,所述摄像头控制方法还包括:
    在启动所述第二摄像头期间,对所述第一摄像头采集的预览图像进行模糊处理。
  8. 根据权利要求7所述的摄像头控制方法,其中,所述对所述第一摄像头采集的预览图像进行模糊处理,包括:
    对所述第一摄像头采集的预览图像进行高斯模糊处理。
  9. 根据权利要求1所述的摄像头控制方法,其中,所述侦测前台运行的第一摄像头的对焦距离变化趋势,包括:
    按照预设时间间隔采样得到第一摄像头在相邻两个时刻的对焦距离;
    根据相邻两个时刻的对焦距离的大小关系得到所述对焦距离变化趋势。
  10. 一种摄像头控制装置,应用于电子设备,其中,所述电子设备包括多个焦距不同的摄像头,所述摄像头控制装置包括:
    趋势确定模块,用于在处于拍摄预览模式时,侦测前台运行的第一摄像头的对焦距离变化趋势,所述第一摄像头采集的图像被设为预览图像;
    后台确定模块,用于根据预设的对焦距离变化趋势和摄像头的对应关系,确定对应所述对焦距离变化趋势的第二摄像头;
    后台启动模块,用于在后台启动确定的所述第二摄像头;
    切换控制模块,用于当所述第一摄像头的实时对焦距离位于所述第二摄像头对应的对焦距离区间内时,将所述第二摄像头切换至前台运行,并将所述第二摄像头采集的图像设为预览图像。
  11. 一种存储介质,其上存储有计算机程序,其中,当所述计算机程序被包括多个焦距不同的摄像头的电子设备的处理器调用时,使得所述处理器执行:
    在处于拍摄预览模式时,侦测前台运行的第一摄像头的对焦距离变化趋势,所述第一摄像头采集的图像被设为预览图像;
    根据预设的对焦距离变化趋势和摄像头的对应关系,确定对应所述对焦距离变化趋势的第二摄像头;
    在后台启动确定的所述第二摄像头;
    当所述第一摄像头的实时对焦距离位于所述第二摄像头对应的对焦距离区间内时,将所述第二摄像头切换至前台运行,并将所述第二摄像头采集的图像设为预览图像。
  12. 一种电子设备,其中,包括:
    多个摄像头,每一摄像头的焦距不同,每一摄像头在拍摄预览模式下且前台运行时采集用于预览的预览图像;
    显示屏,用于显示前台运行的摄像头所采集的预览图像;
    存储器,用于存储计算机程序;
    处理器,分别与所述多个摄像头、所述显示屏及所述存储器电性连接,通过调用所述计算机程序,用于执行:
    在处于拍摄预览模式时,侦测前台运行的第一摄像头的对焦距离变化趋势;
    根据预设的对焦距离变化趋势和摄像头的对应关系,确定对应所述对焦距离变化趋势的第二摄像头;
    在后台启动确定的所述第二摄像头;
    当所述第一摄像头的实时对焦距离位于所述第二摄像头对应的对焦距离区间内时,将所述第二摄像头切换至前台运行,并将所述第二摄像头采集的图像设为预览图像。
  13. 根据权利要求12所述的电子设备,其中,在根据预设的对焦距离变化趋势和摄像头的对应关系,确定对应所述对焦距离变化趋势的第二摄像头时,所述处理器用于执行:
    当所述对焦距离变化趋势为预设时长内持续变大时,将焦距大于所述第一摄像头的摄像头确定为所述第二摄像头;或者
    当所述对焦距离变化趋势为预设时长内持续变小时,将焦距小于所述第一摄像头的摄像头确定为所述第二摄像头。
  14. 根据权利要求13所述的电子设备,其中,在所述对焦距离变化趋势为预设时长内持续变大,将焦距大于所述第一摄像头的摄像头确定为所述第二摄像头时,所述处理器用于执行:
    当所述对焦距离变化趋势为预设时长内持续变大,且焦距大于所述第一摄像头的摄像头为多个时,将焦距大于所述第一摄像头的多个摄像头中焦距最小的摄像头确定为所述第二摄像头;
    所述当所述对焦距离变化趋势为预设时长内持续变小时,将焦距小于所述第一摄像头的摄像头确定为所述第二摄像头,包括:
    当所述对焦距离变化趋势为预设时长内持续变小,且焦距小于所述第一摄像头的摄像头为多个时,将焦距小于所述第一摄像头的多个摄像头中焦距最大的摄像头确定为所述第二摄像头。
  15. 根据13所述的电子设备,其中,在将所述第二摄像头切换至前台运行之后,所述处理器还用于执行:
    当所述第二摄像头的焦距大于所述第一摄像头,且后台还启动有焦距小于所述第一摄像头的第三摄像头时,关闭所述第三摄像头;或者
    当所述第二摄像头的焦距小于所述第一摄像头,且后台还启动有焦距大于所述第一摄像头的第四摄像头时,关闭所述第四摄像头。
  16. 根据权利要求12所述的电子设备,其中,在所述第一摄像头的实时对焦距离位于所述第二摄像头对应的对焦距离区间内,将所述第二摄像头切换至前台运行,并将所述第二摄像头采集的图像设为预 览图像时,所述处理器用于执行:
    当所述第一摄像头的实时对焦距离位于所述第二摄像头对应的对焦距离区间内,且所述第二摄像头采集的图像与所述第一摄像头采集的预览图像的内容重叠时,将所述第二摄像头切换至前台运行,并将所述第二摄像头采集的图像设为预览图像。
  17. 根据权利要求12所述的电子设备,其中,在确定对应所述对焦距离变化趋势的第二摄像头之后,所述处理器还用于执行:
    当所述第一摄像头的实时对焦距离位于所述第二摄像头对应的对焦距离区间内,且所述第二摄像头未在后台启动时,则直接启动所述第二摄像头至前台运行。
  18. 根据权利要求17所述的电子设备,其中,所述处理器还用于执行:
    在启动所述第二摄像头期间,对所述第一摄像头采集的预览图像进行模糊处理。
  19. 根据权利要求18所述的电子设备,其中,在对所述第一摄像头采集的预览图像进行模糊处理时,所述处理器用于执行:
    对所述第一摄像头采集的预览图像进行高斯模糊处理。
  20. 根据权利要求12所述的电子设备,其中,在侦测前台运行的第一摄像头的对焦距离变化趋势时,所述处理器用于执行:
    按照预设时间间隔采样得到第一摄像头在相邻两个时刻的对焦距离;
    根据相邻两个时刻的对焦距离的大小关系得到所述对焦距离变化趋势。
PCT/CN2020/113057 2019-09-03 2020-09-02 摄像头控制方法、装置、存储介质及电子设备 WO2021043172A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20860761.4A EP4007257A4 (en) 2019-09-03 2020-09-02 CAMERA CONTROL METHOD AND DEVICE, STORAGE MEDIA AND ELECTRONIC DEVICE
US17/676,508 US20220182546A1 (en) 2019-09-03 2022-02-21 Camera control method, device, storage medium and electronic equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910878336.0 2019-09-03
CN201910878336.0A CN110505389B (zh) 2019-09-03 2019-09-03 摄像头控制方法、装置、存储介质及电子设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/676,508 Continuation US20220182546A1 (en) 2019-09-03 2022-02-21 Camera control method, device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
WO2021043172A1 true WO2021043172A1 (zh) 2021-03-11

Family

ID=68592075

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/113057 WO2021043172A1 (zh) 2019-09-03 2020-09-02 摄像头控制方法、装置、存储介质及电子设备

Country Status (4)

Country Link
US (1) US20220182546A1 (zh)
EP (1) EP4007257A4 (zh)
CN (1) CN110505389B (zh)
WO (1) WO2021043172A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023044789A1 (zh) * 2021-09-24 2023-03-30 深圳市大疆创新科技有限公司 图像采集装置的变焦方法及装置

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110505389B (zh) * 2019-09-03 2021-03-02 RealMe重庆移动通信有限公司 摄像头控制方法、装置、存储介质及电子设备
CN111641777A (zh) * 2020-02-28 2020-09-08 北京爱芯科技有限公司 图像处理方法、装置、图像处理器、电子设备及存储介质
CN111225157B (zh) * 2020-03-03 2022-01-14 Oppo广东移动通信有限公司 追焦方法及相关设备
CN111654629B (zh) * 2020-06-11 2022-06-24 展讯通信(上海)有限公司 摄像头切换方法、装置、电子设备及可读存储介质
CN114422687B (zh) * 2020-10-28 2024-01-19 北京小米移动软件有限公司 预览图像切换方法及装置、电子设备及存储介质
CN114650363B (zh) * 2020-12-18 2023-07-21 华为技术有限公司 一种图像显示的方法及电子设备
CN112822403B (zh) * 2021-01-11 2023-02-03 深圳智优停科技有限公司 沿路边停车位前后排布相邻两个车位感应器的自启动方法
CN113473002A (zh) * 2021-05-21 2021-10-01 闻泰通讯股份有限公司 一种预览图像的显示方法、装置、计算机设备和存储介质
CN115514871A (zh) * 2022-09-30 2022-12-23 读书郎教育科技有限公司 一种基于智能终端的翻转摄像头预览优化系统及方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080030592A1 (en) * 2006-08-01 2008-02-07 Eastman Kodak Company Producing digital image with different resolution portions
CN104980644A (zh) * 2014-04-14 2015-10-14 华为技术有限公司 一种拍摄方法及装置
CN105959553A (zh) * 2016-05-30 2016-09-21 维沃移动通信有限公司 一种摄像头的切换方法及终端
CN107343190A (zh) * 2017-07-25 2017-11-10 广东欧珀移动通信有限公司 白平衡调节方法、装置和终端设备
CN110505389A (zh) * 2019-09-03 2019-11-26 RealMe重庆移动通信有限公司 摄像头控制方法、装置、存储介质及电子设备

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5267149B2 (ja) * 2009-01-19 2013-08-21 ソニー株式会社 表示制御装置、表示制御方法及びプログラム
US8896655B2 (en) * 2010-08-31 2014-11-25 Cisco Technology, Inc. System and method for providing depth adaptive video conferencing
US9749543B2 (en) * 2015-07-21 2017-08-29 Lg Electronics Inc. Mobile terminal having two cameras and method for storing images taken by two cameras
CN106303227A (zh) * 2016-08-01 2017-01-04 乐视控股(北京)有限公司 一种智能终端的拍照方法和装置
CN106197382B (zh) * 2016-08-25 2018-06-05 北方电子研究院安徽有限公司 一种车载单摄像头目标动态测距方法
CN106791378A (zh) * 2016-11-29 2017-05-31 广东欧珀移动通信有限公司 控制方法、控制装置和电子装置
KR102426728B1 (ko) * 2017-04-10 2022-07-29 삼성전자주식회사 포커스 제어 방법 및 이를 지원하는 전자 장치
CN108769485A (zh) * 2018-06-27 2018-11-06 北京小米移动软件有限公司 电子设备
CN110351487A (zh) * 2019-08-26 2019-10-18 Oppo广东移动通信有限公司 控制方法、控制装置、电子设备和存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080030592A1 (en) * 2006-08-01 2008-02-07 Eastman Kodak Company Producing digital image with different resolution portions
CN104980644A (zh) * 2014-04-14 2015-10-14 华为技术有限公司 一种拍摄方法及装置
CN105959553A (zh) * 2016-05-30 2016-09-21 维沃移动通信有限公司 一种摄像头的切换方法及终端
CN107343190A (zh) * 2017-07-25 2017-11-10 广东欧珀移动通信有限公司 白平衡调节方法、装置和终端设备
CN110505389A (zh) * 2019-09-03 2019-11-26 RealMe重庆移动通信有限公司 摄像头控制方法、装置、存储介质及电子设备

Non-Patent Citations (1)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023044789A1 (zh) * 2021-09-24 2023-03-30 深圳市大疆创新科技有限公司 图像采集装置的变焦方法及装置

Also Published As

Publication number Publication date
EP4007257A1 (en) 2022-06-01
EP4007257A4 (en) 2022-09-14
CN110505389B (zh) 2021-03-02
US20220182546A1 (en) 2022-06-09
CN110505389A (zh) 2019-11-26

Similar Documents

Publication Publication Date Title
WO2021043172A1 (zh) 摄像头控制方法、装置、存储介质及电子设备
EP3116215B1 (en) Mobile terminal and method for controlling the same
EP3936992A1 (en) Control method and electronic device
KR102076771B1 (ko) 다수의 이미지 동시 포착
JP7005646B2 (ja) 撮影方法及び端末
US9069407B2 (en) Display control apparatus and display control method
US9360962B2 (en) Electronic apparatus and a method for controlling the same
KR102023179B1 (ko) 듀얼 카메라를 포함하는 전자장치에서 듀얼 리코딩 촬영을 위한 방법 및 장치
US20120146924A1 (en) Electronic apparatus, electronic apparatus controlling method, and program
CN109547598B (zh) 摄像模组控制方法和装置
US9571739B2 (en) Camera timer
JP7139440B2 (ja) ビデオ記録方法および電子デバイス
TW201248454A (en) Image display control apparatus and image display control method
CN112866576B (zh) 图像预览方法、存储介质及显示设备
WO2021013147A1 (zh) 视频处理方法、装置、终端及存储介质
CN112714253B (zh) 视频录制方法、装置、电子设备和可读存储介质
US9535604B2 (en) Display device, method for controlling display, and recording medium
EP3627816A1 (en) Mobile terminal
EP3855713B1 (en) Mobile terminal
JP7352733B2 (ja) 撮影方法及び電子機器
CN110661971A (zh) 图像拍摄方法、装置、存储介质及电子设备
CN104580874A (zh) 一种摄像设备及其实现拍照的方法
CN110661970A (zh) 拍照方法、装置、存储介质及电子设备
JP7404563B2 (ja) 画像取得方法、装置と電子機器
US20240022815A1 (en) Electronic Devices and Corresponding Methods for Performing Image Stabilization Processes as a Function of Touch Input Type

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: 20860761

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020860761

Country of ref document: EP

Effective date: 20220224

NENP Non-entry into the national phase

Ref country code: DE