CN111432143B - Control method, system, medium and electronic device for switching camera modules - Google Patents

Control method, system, medium and electronic device for switching camera modules Download PDF

Info

Publication number
CN111432143B
CN111432143B CN202010280338.2A CN202010280338A CN111432143B CN 111432143 B CN111432143 B CN 111432143B CN 202010280338 A CN202010280338 A CN 202010280338A CN 111432143 B CN111432143 B CN 111432143B
Authority
CN
China
Prior art keywords
camera module
current
brightness parameter
switched
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010280338.2A
Other languages
Chinese (zh)
Other versions
CN111432143A (en
Inventor
邓麟
何佳伟
刘小伟
刘艳艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202010280338.2A priority Critical patent/CN111432143B/en
Publication of CN111432143A publication Critical patent/CN111432143A/en
Application granted granted Critical
Publication of CN111432143B publication Critical patent/CN111432143B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/268Signal distribution or switching
    • 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
    • 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/90Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a control method, a system, a medium and electronic equipment for switching a camera module, wherein the control method comprises the following steps: acquiring a first brightness parameter of an image shot by a current camera module; receiving a zoom ratio adjustment instruction and detecting the current zoom ratio of the current camera module in real time; if the deviation between the current zooming ratio and the critical optical zooming ratio is smaller than a first preset threshold value, adjusting a second brightness parameter imaged by the camera module to be switched according to the first brightness parameter so as to enable the second brightness parameter to be consistent with the first brightness parameter; and when the current zooming ratio is equal to the critical optical zooming ratio, switching the current camera module into the camera module to be switched. The scheme solves the problem of brightness mutation caused by switching of a plurality of camera modules in any scene, effectively reduces the cost and improves the user experience.

Description

Control method, system, medium and electronic device for switching camera modules
Technical Field
The invention relates to the technical field of mobile phone cameras, in particular to a control method, a system, a medium and electronic equipment for switching a camera module.
Background
When the mobile phone camera is zoomed, sudden changes of brightness and contrast occur at the moment of switching cameras with different focal lengths and FOVs (field of views), so that the user experience of the mobile phone camera in use is influenced.
In the prior art, a static synchronization scheme and a dynamic synchronization scheme are usually adopted to solve abrupt changes of brightness and contrast in the switching process of different camera modules.
For the static synchronization scheme, the light sensitivity of different camera modules needs to be burned in an OTP (one time programmable device), and then brightness synchronization is performed by multiplying a fixed gain. Because the static synchronization scheme adopts the preset fixed gain, if the brightness gain corresponding to a certain scene is not burnt in the program in advance, the problem of sudden change during the switching of the camera module in the scene cannot be solved, the universality is poor, and the cost is increased invisibly when the advance burning of the gain is required for a plurality of scenes.
For the dynamic synchronization scheme, the content of the new module cannot be displayed immediately when the camera module is switched, but the content displayed by the old module can be maintained for a period of time. This gives the user a visual click-through at the instant of module switching. The longer the camera module is started and synchronized, the more severe the feeling of jamming is, and the user experience is seriously affected.
Disclosure of Invention
The invention provides a camera module switching control method, a system, a medium and electronic equipment, and aims to solve the technical problems that in the prior art, the cost is high and the universality is poor when brightness synchronization is carried out on a display picture when different camera modules are switched.
The invention solves the technical problems through the following technical scheme:
a control method for switching camera modules comprises the following steps:
acquiring a first brightness parameter of an image shot by a current camera module;
receiving a zoom ratio adjusting instruction and detecting the current zoom ratio of the current camera module in real time;
if the deviation between the current zooming ratio and the critical optical zooming ratio is smaller than a first preset threshold value, adjusting a second brightness parameter imaged by the camera module to be switched according to the first brightness parameter so as to enable the second brightness parameter to be consistent with the first brightness parameter; the critical optical zooming ratio is the zooming ratio of the current camera module and the camera module to be switched;
and when the current zooming ratio is equal to the critical optical zooming ratio, switching the current camera module into the camera module to be switched.
Preferably, the control method further includes:
controlling the current camera module and the camera module to be switched to be simultaneously started and simultaneously and independently operated;
or detecting a zoom ratio variation trend in the zoom ratio adjustment instruction, and selecting and opening the to-be-switched camera to be opened according to the variation trend;
or when the deviation of the current zooming ratio and the critical optical zooming ratio is smaller than a second preset threshold value, the camera to be switched is started.
Preferably, the first brightness parameter and/or the second brightness parameter includes an image brightness value and/or a pixel value of each pixel point in an image;
and/or the presence of a gas in the atmosphere,
the step of adjusting the second brightness parameter of the imaging of the camera module to be switched according to the first brightness parameter further comprises the following steps: and adjusting the contrast of the image of the camera module to be switched according to the adjusted second brightness parameter and a gamma curve (a nonlinear curve) in a preset tuning parameter, wherein the current camera module and the camera module to be switched respectively correspond to different preset tuning parameters, and the gamma curves in the different preset tuning parameters are the same.
Preferably, if the current zoom ratio is smaller than the critical optical zoom ratio, the step of obtaining a first brightness parameter of an image captured by the current camera module includes:
acquiring a first brightness parameter of a first region of interest in an image shot by a current camera module, wherein the size of the first region of interest is the same as the size of the image formed by the camera module to be switched.
Preferably, if the current zoom ratio is greater than the critical optical zoom ratio, the step of adjusting the second brightness parameter of the image of the camera module to be switched according to the first brightness parameter includes:
acquiring a second region of interest in the imaging of the camera module to be switched, wherein the second region of interest has the same size as the image shot by the current camera module;
and adjusting a second brightness parameter of the second region of interest imaging according to the first brightness parameter.
A control system for camera module switching, the control system comprising:
the device comprises a brightness parameter acquisition module, a brightness parameter acquisition module and a brightness parameter acquisition module, wherein the brightness parameter acquisition module is used for acquiring a first brightness parameter of an image shot by a current camera module;
the zoom ratio detection module is used for receiving a zoom ratio adjustment instruction and detecting the current zoom ratio of the current camera module in real time;
the adjusting module is used for adjusting a second brightness parameter imaged by the camera module to be switched according to the first brightness parameter when the deviation between the current zooming ratio and the critical optical zooming ratio is smaller than a first preset threshold value, so that the second brightness parameter is consistent with the first brightness parameter; the critical optical zooming ratio is the zooming ratio of the current camera module and the camera module to be switched;
and the switching module is used for switching the current camera module into the camera module to be switched when the current zooming ratio is equal to the critical optical zooming ratio.
Preferably, the control system further comprises a start control module, and the start control module is used for controlling the current camera module and the camera module to be switched to be simultaneously started and simultaneously and independently operated;
or the starting control module is used for detecting the variation trend of the zooming ratio in the zooming ratio adjusting instruction, and selecting and starting the to-be-switched camera to be started according to the variation trend;
or the starting control module is used for starting the camera to be switched when the deviation of the current zooming ratio and the critical optical zooming ratio is smaller than a second preset threshold value.
Preferably, the first brightness parameter and/or the second brightness parameter includes an image brightness value and/or a pixel value of each pixel point in an image;
and/or the presence of a gas in the gas,
the adjusting module is further configured to adjust the contrast of the image formed by the camera module to be switched according to the adjusted second brightness parameter and a gamma curve in the preset tuning parameter, where the current camera module and the camera module to be switched correspond to different preset tuning parameters respectively, and the gamma curves in the different preset tuning parameters are the same.
Preferably, the brightness parameter obtaining module is configured to obtain a first brightness parameter of a first region of interest in an image captured by the current camera module when the current zoom ratio is smaller than the critical optical zoom ratio, where a size of the first region of interest is the same as a size of an image formed by the camera module to be switched.
Preferably, the adjusting module is configured to obtain a second region of interest in the image of the camera module to be switched when the current zoom ratio is greater than the critical optical zoom ratio, and adjust a second brightness parameter of the image of the second region of interest according to the first brightness parameter, where the size of the second region of interest is the same as the size of the image shot by the current camera module.
An electronic device comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the steps of the control method for switching the camera module when executing the computer program.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, realizes the aforementioned steps of the control method of camera module switching.
The positive progress effects of the invention are as follows: the camera module switching control method and the system provided by the invention acquire the first brightness parameter of the image shot by the current camera module; receiving a zoom ratio adjustment instruction and detecting the current zoom ratio of the current camera module in real time; if the deviation between the current zooming ratio and the critical optical zooming ratio is smaller than a first preset threshold value, adjusting a second brightness parameter imaged by the camera module to be switched according to the first brightness parameter so as to enable the second brightness parameter to be consistent with the first brightness parameter; and when the current zooming ratio is equal to the critical optical zooming ratio, switching the current camera module into the camera module to be switched. Therefore, the invention does not need to burn the gain multiple of module switching in various scenes in advance, can solve the problem of brightness mutation caused by switching of a plurality of camera modules in any scene, effectively reduces the cost and improves the user experience.
In addition, the invention can also control the startup of the camera modules, so that the image display of the camera modules during switching has no hysteresis and pause phenomena, and is smooth and natural.
Drawings
Fig. 1 is a flowchart of a control method for switching a camera module according to embodiment 1 of the present invention.
Fig. 2 is a schematic diagram illustrating a variation of zoom ratios among three camera modules in embodiment 1 of the present invention.
Fig. 3 is a block diagram of a control system for switching between camera modules according to embodiment 3 of the present invention.
Fig. 4 is a block diagram of a control system for switching between camera modules according to embodiment 4 of the present invention.
Fig. 5 is a block diagram of an electronic device according to embodiment 5 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
The present embodiment provides a method for controlling switching of a camera module, where the camera module may be a camera module in a mobile terminal (e.g., a mobile phone).
As shown in fig. 1, the control method may include the steps of:
step S10: acquiring a first brightness parameter of an image shot by a current camera module;
the first brightness parameter includes an image brightness value and/or a pixel value of each pixel point in the image, where the image brightness value may be a brightness value that each small-region image has after the captured image is divided into a plurality of small-region images, and the image brightness value may be represented by a bit value. The image brightness value may be calculated by AE (camera automatic exposure control algorithm).
Step S11: receiving a zoom ratio adjustment instruction and detecting the current zoom ratio of the current camera module in real time;
step S12: if the deviation between the current zooming ratio and the critical optical zooming ratio is smaller than a first preset threshold value, adjusting a second brightness parameter imaged by the camera module to be switched according to the first brightness parameter so as to enable the second brightness parameter to be consistent with the first brightness parameter; the critical optical zoom ratio is the zoom ratio of the current camera module to be switched with the camera module to be switched;
step S13: and when the current zooming ratio is equal to the critical optical zooming ratio, switching the current camera module into the camera module to be switched.
In this embodiment, the second brightness parameter includes a brightness value of the image and/or a pixel value of each pixel point in the image; the image brightness value may be a brightness value of each small region image after the captured image is divided into a plurality of small region images, and the image brightness value may be represented by a bit value.
After the brightness adjustment of the camera module to be switched is completed, the contrast of the image of the camera module to be switched can be adjusted according to the adjusted second brightness parameter and a gamma curve in the preset tuning parameter, wherein the current camera module and the camera module to be switched respectively correspond to different preset tuning parameters, and the different gamma curves in the preset tuning parameters are the same. The number of the camera modules to be switched can be multiple, and the embodiment does not specifically limit the number of the camera modules to be switched.
It can be understood that, a person skilled in the art may debug in advance a specific value of a preset tuning parameter that needs to be adopted by each camera module in order to ensure that the contrast does not suddenly change when different camera modules are switched, and store the specific value in an algorithm program, so that when a user subsequently uses the camera modules, the contrast may be automatically adjusted by the algorithm program. The predetermined tuning parameter may include a gamma curve, and the adjusting of the contrast is performed by the gamma curve in the predetermined tuning parameter. Preferably, the gamma curves corresponding to the camera modules can be consistent, so that the arrangement can ensure that the same imaging contrast can be obtained by matching the same gamma curves when the brightness of the input gamma curves is the same. That is, when the imaging brightness of the camera module to be switched is adjusted to be consistent with the current camera module, the brightness is input into the gamma curve, and the imaging contrast consistent with the current camera module can be obtained.
In a specific application scenario, as shown in fig. 2, for example, the mobile phone may include three camera modules, which are an ultra-wide camera module, a wide camera module, and a telephoto camera module.
Wherein the double-headed arrow represents a direction of change of the zoom ratio, the left represents a direction of decrease of the zoom ratio, the right represents a direction of increase of the zoom ratio, the black solid dots represent the critical optical zoom ratio, and the open dots represent the current zoom ratio when the deviation from the critical optical zoom ratio is smaller than the preset threshold value.
Each camera module corresponds to an ISP (image signal processor) hardware module.
In this scenario, if the current zoom ratio is smaller than the critical optical zoom ratio, the zoom ratio adjustment instruction indicates that the zoom ratio is increased, and if the current camera module is a wide-angle camera module, the camera module to be switched is a telephoto camera module. Based on this, the step S10 may specifically include: acquiring a first brightness parameter of a first region of interest in an image shot by a current camera module, wherein the size of the first region of interest is the same as the size of the image formed by the camera module to be switched.
And if the current zooming ratio is larger than the critical optical zooming ratio, the zooming ratio adjusting instruction indicates that the zooming ratio is reduced, and if the current camera module is a wide-angle camera module, the camera module to be switched is an ultra-wide-angle camera module. The step S12 may specifically include: acquiring a second region of interest in the imaging of the camera module to be switched, wherein the second region of interest has the same size as the image shot by the current camera module; then, a second brightness parameter of the second region of interest imaging is adjusted according to the first brightness parameter.
When the control method for switching the camera modules is executed, the gain multiple of the modules in various scenes in the switching process is not required to be burnt in advance, the problem of brightness mutation caused by switching of a plurality of camera modules in any scene can be solved, the cost is effectively reduced, and the user experience is improved.
Example 2
The present embodiment provides a control method for switching a camera module, which is a further improvement on the basis of embodiment 1, and specifically, the control method may further include:
and controlling the current camera module and the to-be-switched camera module to be simultaneously started and simultaneously and independently run. Specifically, all the camera modules can be started simultaneously when the mobile terminal is started, and other camera modules can be controlled to be started simultaneously when a user is detected to actively start one of the camera modules.
Under the condition, the current camera module can operate on the foreground of the mobile phone, one or more to-be-switched camera modules can operate on the background of the mobile phone at the same time, and the frame rate (namely the number of display frames per second) of the to-be-switched camera modules operating on the background can be controlled to be below the preset frame rate threshold value so as to reduce the power consumption of the mobile phone.
In addition, the camera to be switched which needs to be switched on can be selected and switched on according to the variation trend by detecting the variation trend of the zoom ratio in the zoom ratio adjustment instruction. Specifically, if the variation trend is an increasing trend, the to-be-switched camera module with the zooming ratio larger than that corresponding to the current camera module can be selected to be turned on, and the to-be-switched camera module with the zooming ratio smaller than that corresponding to the current camera module is selected to be turned off or not turned on temporarily; if the variation trend is a reduction trend, the to-be-switched camera module with the zooming ratio smaller than that corresponding to the current camera module can be selected to be opened, and the to-be-switched camera module with the zooming ratio larger than that corresponding to the current camera module is selected to be closed or not opened temporarily.
For example, if the current camera module is a wide-angle camera module and the variation trend of the zoom ratio is an increasing trend, it may be determined to open the telephoto camera module without temporarily opening the ultra-wide-angle camera module. If current camera module is wide angle camera module, the rate of change that zooms is the reduction trend, then can confirm to open super wide angle camera module, and does not open long burnt camera module temporarily. This can further reduce the power consumption of the terminal.
Moreover, the to-be-switched camera can be started when the deviation between the current zooming ratio and the critical optical zooming ratio is smaller than a second preset threshold value. In this way, it is required to meet the requirement that the starting process of the camera to be switched can be completed within a time interval from when the deviation between the current zoom ratio and the critical optical zoom ratio is smaller than a second preset threshold value to when the deviation changes to 0. Therefore, the condition that the picture is not blocked when the camera is switched can be ensured, and if the starting performance of the camera to be switched cannot ensure that the starting is finished in the time interval, the other two starting control modes can be adopted. The second preset threshold may be the same as or different from the first preset threshold.
When the control method for switching the camera modules is executed, the starting of the camera modules is controlled, so that the image display of the camera modules during switching is free from hysteresis and pause phenomena, is smooth and natural, and further improves the user experience.
Example 3
The present embodiment provides a control system for switching camera modules, as shown in fig. 3, where the control system 1 may include:
the brightness parameter acquiring module 11 is configured to acquire a first brightness parameter of an image shot by a current camera module;
the first brightness parameter includes an image brightness value and/or a pixel value of each pixel point in the image, where the image brightness value may be a brightness value that each small-region image has after the captured image is divided into a plurality of small-region images, and the image brightness value may be represented by a bit value. The image brightness value may be calculated by AE (camera automatic exposure control algorithm).
The zoom ratio detection module 12 is configured to receive a zoom ratio adjustment instruction and detect a current zoom ratio of the current camera module in real time;
the adjusting module 13 is configured to adjust a second brightness parameter of an image formed by the camera module to be switched according to the first brightness parameter when the deviation between the current zoom ratio and the critical optical zoom ratio is smaller than a first preset threshold value, so that the second brightness parameter is consistent with the first brightness parameter; the critical optical zoom ratio is the zoom ratio of the current camera module to be switched with the camera module to be switched;
in this embodiment, the second brightness parameter includes a brightness value of the image and/or a pixel value of each pixel point in the image; the image brightness value may be a brightness value of each small region image after the captured image is divided into a plurality of small region images, and the image brightness value may be represented by a bit value.
And the switching module 14 is configured to switch the current camera module to the to-be-switched camera module when the current zoom ratio is equal to the critical optical zoom ratio.
In this embodiment, after the brightness adjustment of the to-be-switched camera module is completed, the adjusting module may further adjust the contrast of the image formed by the to-be-switched camera module according to the adjusted second brightness parameter and the gamma curve in the preset tuning parameter, wherein the current camera module and the to-be-switched camera module respectively correspond to different preset tuning parameters, and the different gamma curves in the preset tuning parameters are the same. The number of the camera modules to be switched can be multiple, and the embodiment does not specifically limit the number of the camera modules to be switched.
It can be understood that, a person skilled in the art may debug in advance a specific value of a preset tuning parameter that needs to be adopted by each camera module in order to ensure that the contrast does not suddenly change when different camera modules are switched, and store the specific value in an algorithm program, so that when a user subsequently uses the camera modules, the contrast may be automatically adjusted by the algorithm program. The predetermined tuning parameter may include a gamma curve, and the adjusting of the contrast is performed by the gamma curve in the predetermined tuning parameter. Preferably, the gamma curves corresponding to each camera module can be consistent, so that the arrangement can ensure that the same imaging contrast can be obtained by matching the same gamma curves when the brightness of the input gamma curves is the same. That is, when the imaging brightness of the camera module to be switched is adjusted to be consistent with the current camera module, the brightness is input into the gamma curve, and the imaging contrast consistent with the current camera module can be obtained.
Specifically, the brightness parameter obtaining module 11 is configured to obtain a first brightness parameter of a first region of interest in an image shot by a current camera module when the current zoom ratio is smaller than the critical optical zoom ratio, where a size of the first region of interest is the same as a size of an image formed by the camera module to be switched.
Specifically, the adjusting module 13 is configured to, when the current zoom ratio is greater than the critical optical zoom ratio, obtain a second region of interest in imaging of the camera module to be switched, and adjust a second brightness parameter of imaging of the second region of interest according to the first brightness parameter, where the size of the second region of interest is the same as that of an image shot by the current camera module.
The control system that the camera module that this embodiment provided switches need not burn in advance the gain multiple when the module switches under various scenes when moving, can solve the luminance sudden change problem that brings when a plurality of camera modules switch under any scene, effectively the cost is reduced, has improved user experience.
Example 4
The present embodiment provides a control system for switching a camera module, as shown in fig. 4, the control system is a further improvement on the basis of embodiment 3, specifically, the control system 1 may further include a start control module 15, where the start control module 15 is configured to control the current camera module and the camera module to be switched to be simultaneously started and simultaneously and independently operated; specifically, all the camera modules can be started simultaneously when the mobile terminal is started, and other camera modules can be controlled to be started simultaneously when a user is detected to actively start one of the camera modules.
Under the condition, the current camera module can operate in the foreground of the mobile phone, one or more to-be-switched camera modules can simultaneously operate in the background of the mobile phone, and the frame rate (namely the number of display frames per second) of the to-be-switched camera modules operating in the background can be controlled to be below the preset frame rate threshold so as to reduce the power consumption of the mobile phone.
In addition, the start control module 15 is configured to detect a zoom ratio variation trend in the zoom ratio adjustment instruction, and select and start the to-be-switched camera to be started according to the variation trend. Specifically, if the variation trend is an increasing trend, the to-be-switched camera module with the zooming ratio larger than that corresponding to the current camera module can be selected to be turned on, and the to-be-switched camera module with the zooming ratio smaller than that corresponding to the current camera module is selected to be turned off or not turned on temporarily; if the variation trend is a reduction trend, the to-be-switched camera module with the zooming ratio smaller than that corresponding to the current camera module can be selected to be opened, and the to-be-switched camera module with the zooming ratio larger than that corresponding to the current camera module is selected to be closed or not opened temporarily.
For example, if the current camera module is a wide-angle camera module, the variation trend of the zoom ratio is an increasing trend, then it can be determined to open the telephoto camera module, and not to open the ultra-wide-angle camera module temporarily. If the current camera module is the wide-angle camera module, the variation trend of the zoom ratio is the reduction trend, then can confirm to open the super wide-angle camera module, and does not open the long burnt camera module temporarily. This can further reduce the power consumption of the terminal.
Furthermore, the start control module 15 is configured to start the to-be-switched camera when a deviation between the current zoom ratio and the critical optical zoom ratio is smaller than a second preset threshold. In this way, it is required to meet the requirement that the starting process of the camera to be switched can be completed within a time interval from when the deviation between the current zoom ratio and the critical optical zoom ratio is smaller than a second preset threshold value to when the deviation changes to 0. Therefore, the condition that the picture is not blocked when the camera is switched can be ensured, and if the starting performance of the camera to be switched cannot ensure that the starting is finished in the time interval, the other two starting control modes can be adopted. The second preset threshold may be the same as or different from the first preset threshold.
The control system that the camera module of this embodiment switches is when the operation, controls through the start to a plurality of camera modules for the picture display of camera module when switching does not have hysteresis and stuck phenomenon, and is level and smooth nature, has further improved user experience.
Example 5
The present invention also provides an electronic device, as shown in fig. 5, the electronic device may include a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method for controlling switching of the camera module in embodiment 1 or 2 when executing the computer program.
It should be understood that the electronic device shown in fig. 5 is only an example, and should not bring any limitation to the function and the scope of the application of the embodiment of the present invention.
As shown in fig. 5, the electronic device 2 may be embodied in the form of a general purpose computing device, such as: which may be a server device. The components of the electronic device 2 may include, but are not limited to: the at least one processor 3, the at least one memory 4, and a bus 5 connecting the various system components (including the memory 4 and the processor 3).
The bus 5 may include a data bus, an address bus, and a control bus.
The memory 4 may include volatile memory, such as Random Access Memory (RAM)41 and/or cache memory 42, and may further include Read Only Memory (ROM) 43.
The memory 4 may also include a program tool 45 (or utility tool) having a set (at least one) of program modules 44, such program modules 44 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment.
The processor 3 executes various functional applications and data processing, such as the steps of the control method of camera module switching in the foregoing embodiment 1 or 2 of the present invention, by running the computer program stored in the memory 4.
The electronic device 2 may also communicate with one or more external devices 6, such as a keyboard, pointing device, etc. Such communication may be via an input/output (I/O) interface 7. Also, the model-generated electronic device 2 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network) via the network adapter 8.
As shown in FIG. 5, the network adapter 8 may communicate with other modules of the model-generated electronic device 2 via a bus 5. It will be appreciated by those skilled in the art that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the model-generated electronic device 2, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, to name a few.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module according to embodiments of the invention. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Example 6
The present embodiment provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor, implements the steps of the control method for camera module switching in the foregoing embodiment 1 or 2.
More specific ways in which the computer-readable storage medium may be employed may include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes program codes for causing a terminal device to execute the steps of the control method for implementing the camera module switching in the foregoing embodiment 1 or 2 when the program product runs on the terminal device.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may execute entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on a remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (12)

1. A control method for switching camera modules is characterized by comprising the following steps:
acquiring a first brightness parameter of an image shot by a current camera module;
receiving a zoom ratio adjustment instruction and detecting the current zoom ratio of the current camera module in real time;
if the deviation between the current zooming ratio and the critical optical zooming ratio is smaller than a first preset threshold value, adjusting a second brightness parameter imaged by the camera module to be switched according to the first brightness parameter so as to enable the second brightness parameter to be consistent with the first brightness parameter; the critical optical zooming ratio is the zooming ratio of the current camera module and the camera module to be switched;
and when the current zooming ratio is equal to the critical optical zooming ratio, switching the current camera module into the camera module to be switched.
2. The method for controlling switching of camera modules according to claim 1,
the control method further comprises the following steps:
controlling the current camera module and the camera module to be switched to be simultaneously started and simultaneously and independently operated;
or detecting a zoom ratio variation trend in the zoom ratio adjustment instruction, and selecting and opening the to-be-switched camera to be opened according to the variation trend;
or when the deviation of the current zooming ratio and the critical optical zooming ratio is smaller than a second preset threshold value, the camera to be switched is started.
3. The method according to claim 1, wherein the first brightness parameter and/or the second brightness parameter includes an image brightness value and/or a pixel value of each pixel point in an image;
and/or the presence of a gas in the atmosphere,
the step of adjusting the second brightness parameter of the imaging of the camera module to be switched according to the first brightness parameter further comprises the following steps: adjusting the contrast of imaging of the camera module to be switched according to the adjusted second brightness parameter and a gamma curve in preset tuning parameters, wherein the current camera module and the camera module to be switched respectively correspond to different preset tuning parameters, and the gamma curves in the different preset tuning parameters are the same.
4. The method for controlling switching of camera modules according to any one of claims 1 to 3,
if the current zoom ratio is smaller than the critical optical zoom ratio, the step of obtaining a first brightness parameter of an image shot by the current camera module comprises:
acquiring a first brightness parameter of a first region of interest in an image shot by a current camera module, wherein the size of the first region of interest is the same as the size of the image formed by the camera module to be switched.
5. The method for controlling switching of camera modules according to any one of claims 1 to 3,
if the current zoom ratio is larger than the critical optical zoom ratio, the step of adjusting a second brightness parameter of the to-be-switched camera module to form images according to the first brightness parameter comprises the following steps:
acquiring a second region of interest in the imaging of the camera module to be switched, wherein the second region of interest has the same size as the image shot by the current camera module;
and adjusting a second brightness parameter of the second region of interest imaging according to the first brightness parameter.
6. A control system for camera module switching, the control system comprising:
the device comprises a brightness parameter acquisition module, a brightness parameter acquisition module and a brightness parameter acquisition module, wherein the brightness parameter acquisition module is used for acquiring a first brightness parameter of an image shot by a current camera module;
the zoom ratio detection module is used for receiving a zoom ratio adjustment instruction and detecting the current zoom ratio of the current camera module in real time;
the adjusting module is used for adjusting a second brightness parameter imaged by the camera module to be switched according to the first brightness parameter when the deviation between the current zooming ratio and the critical optical zooming ratio is smaller than a first preset threshold value, so that the second brightness parameter is consistent with the first brightness parameter; the critical optical zooming ratio is the zooming ratio of the current camera module and the camera module to be switched;
and the switching module is used for switching the current camera module into the camera module to be switched when the current zooming ratio is equal to the critical optical zooming ratio.
7. The camera module switching control system according to claim 6,
the control system also comprises a starting control module, and the starting control module is used for controlling the current camera module and the camera module to be switched to be simultaneously started and simultaneously and independently operated;
or the starting control module is used for detecting the variation trend of the zooming ratio in the zooming ratio adjusting instruction, and selecting and starting the to-be-switched camera to be started according to the variation trend;
or the starting control module is used for starting the camera to be switched when the deviation of the current zooming ratio and the critical optical zooming ratio is smaller than a second preset threshold value.
8. The system for controlling switching of camera modules according to claim 6, wherein the first brightness parameter and/or the second brightness parameter comprises a brightness value of an image and/or a pixel value of each pixel point in the image;
and/or the presence of a gas in the gas,
the adjusting module is further configured to adjust the contrast of the image formed by the camera module to be switched according to the adjusted second brightness parameter and a gamma curve in the preset tuning parameter, where the current camera module and the camera module to be switched correspond to different preset tuning parameters respectively, and the gamma curves in the different preset tuning parameters are the same.
9. The control system for switching the camera module according to any one of claims 6 to 8,
the brightness parameter obtaining module is used for obtaining a first brightness parameter of a first region of interest in an image shot by a current camera module when the current zoom ratio is smaller than the critical optical zoom ratio, and the size of the first region of interest is the same as the size of the image formed by the camera module to be switched.
10. The control system for switching the camera module according to any one of claims 6 to 8,
the adjusting module is used for acquiring a second region of interest in the imaging of the camera module to be switched when the current zoom ratio is larger than the critical optical zoom ratio, and adjusting a second brightness parameter of the imaging of the second region of interest according to the first brightness parameter, wherein the size of the second region of interest is the same as that of the image shot by the current camera module.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method for controlling switching of camera modules according to any one of claims 1 to 5 when executing the computer program.
12. A computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the control method for camera module switching according to any one of claims 1 to 5.
CN202010280338.2A 2020-04-10 2020-04-10 Control method, system, medium and electronic device for switching camera modules Active CN111432143B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010280338.2A CN111432143B (en) 2020-04-10 2020-04-10 Control method, system, medium and electronic device for switching camera modules

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010280338.2A CN111432143B (en) 2020-04-10 2020-04-10 Control method, system, medium and electronic device for switching camera modules

Publications (2)

Publication Number Publication Date
CN111432143A CN111432143A (en) 2020-07-17
CN111432143B true CN111432143B (en) 2022-08-16

Family

ID=71552532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010280338.2A Active CN111432143B (en) 2020-04-10 2020-04-10 Control method, system, medium and electronic device for switching camera modules

Country Status (1)

Country Link
CN (1) CN111432143B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073642B (en) * 2020-09-18 2021-09-14 展讯通信(上海)有限公司 Video recording method and device of multi-camera equipment, storage medium and terminal
CN114520870B (en) * 2020-11-20 2023-06-20 华为技术有限公司 Display method and terminal
CN115209062A (en) * 2021-04-13 2022-10-18 华为技术有限公司 Image processing method and device
CN113452915A (en) * 2021-06-29 2021-09-28 展讯通信(天津)有限公司 Camera switching method and electronic equipment
CN117880628A (en) * 2021-08-11 2024-04-12 荣耀终端有限公司 Shooting method and related equipment thereof
CN116095476B (en) * 2021-11-05 2024-04-12 荣耀终端有限公司 Camera switching method and device, electronic equipment and storage medium
CN114125314A (en) * 2021-11-23 2022-03-01 展讯通信(上海)有限公司 Brightness synchronization method, device, storage medium and equipment
CN116708954B (en) * 2022-12-30 2024-06-11 荣耀终端有限公司 Photographing method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106911892A (en) * 2017-02-21 2017-06-30 深圳市金立通信设备有限公司 The method and terminal of a kind of image procossing
CN107343155A (en) * 2017-07-10 2017-11-10 广东欧珀移动通信有限公司 Suppress method and device, the terminal device of AEC saltus steps
CN107483808A (en) * 2017-07-10 2017-12-15 广东欧珀移动通信有限公司 Suppress method and device, the terminal device of AEC saltus steps
CN110351487A (en) * 2019-08-26 2019-10-18 Oppo广东移动通信有限公司 Control method, control device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5941630B2 (en) * 2011-07-14 2016-06-29 オリンパス株式会社 camera
CN104301616B (en) * 2014-10-31 2017-09-12 苏州科达科技股份有限公司 A kind of day of video camera cuts night and night cuts day mode control method and system
CN107343190A (en) * 2017-07-25 2017-11-10 广东欧珀移动通信有限公司 White balance adjusting method, apparatus and terminal device
JP7197981B2 (en) * 2018-01-24 2022-12-28 キヤノン株式会社 Camera, terminal device, camera control method, terminal device control method, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106911892A (en) * 2017-02-21 2017-06-30 深圳市金立通信设备有限公司 The method and terminal of a kind of image procossing
CN107343155A (en) * 2017-07-10 2017-11-10 广东欧珀移动通信有限公司 Suppress method and device, the terminal device of AEC saltus steps
CN107483808A (en) * 2017-07-10 2017-12-15 广东欧珀移动通信有限公司 Suppress method and device, the terminal device of AEC saltus steps
CN110351487A (en) * 2019-08-26 2019-10-18 Oppo广东移动通信有限公司 Control method, control device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111432143A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
CN111432143B (en) Control method, system, medium and electronic device for switching camera modules
JP5514506B2 (en) Intruder monitoring system and intruder monitoring method
CN109040523B (en) Artifact eliminating method and device, storage medium and terminal
CN110691192B (en) Image processing method, image processing device, storage medium and electronic equipment
CN112866576B (en) Image preview method, storage medium and display device
US20230247287A1 (en) Shooting Method and Apparatus, and Electronic Device
WO2023160496A1 (en) Photographing method, photographing apparatus, electronic device and readable storage medium
US20240205361A1 (en) Shooting Method and Electronic Device
CN110493515B (en) High dynamic range shooting mode starting method and device, storage medium and electronic equipment
WO2019179242A1 (en) Image processing method and electronic device
CN111405185A (en) Zoom control method and device for camera, electronic equipment and storage medium
WO2021238942A1 (en) Anti-shake method, anti-shake apparatus, and electronic device
CN112367465B (en) Image output method and device and electronic equipment
CN108495038B (en) Image processing method, image processing device, storage medium and electronic equipment
CN112911132B (en) Photographing control method, photographing control device, electronic equipment and storage medium
CN114286004A (en) Focusing method, shooting device, electronic equipment and medium
CN112399092A (en) Shooting method and device and electronic equipment
CN112887620A (en) Video shooting method and device and electronic equipment
CN112367464A (en) Image output method and device and electronic equipment
CN114500852B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN114866680B (en) Image processing method, device, storage medium and electronic equipment
CN113873161B (en) Shooting method and device and electronic equipment
WO2022001733A1 (en) Method and device for displaying photographing object, storage medium, and terminal
CN110620911B (en) Video stream processing method and device of camera and terminal equipment
CN114157810B (en) Shooting method, shooting device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant