WO2021023035A1 - Lens switching method and apparatus - Google Patents

Lens switching method and apparatus Download PDF

Info

Publication number
WO2021023035A1
WO2021023035A1 PCT/CN2020/104722 CN2020104722W WO2021023035A1 WO 2021023035 A1 WO2021023035 A1 WO 2021023035A1 CN 2020104722 W CN2020104722 W CN 2020104722W WO 2021023035 A1 WO2021023035 A1 WO 2021023035A1
Authority
WO
WIPO (PCT)
Prior art keywords
lens
switched
image sensor
switching
position corresponding
Prior art date
Application number
PCT/CN2020/104722
Other languages
French (fr)
Chinese (zh)
Inventor
冯帅
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021023035A1 publication Critical patent/WO2021023035A1/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/50Constructional details
    • H04N23/54Mounting of pick-up tubes, electronic image sensors, deviation or focusing coils
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • 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/50Constructional details
    • H04N23/55Optical parts specially adapted for electronic image sensors; Mounting thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/58Means for changing the camera field of view without moving the camera body, e.g. nutating or panning of optics or image sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • 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

Definitions

  • This application relates to the field of communication technology, and in particular to a lens switching method and device.
  • the camera function is increasingly being valued by users and has become one of the core functions of mobile terminal devices.
  • current mobile terminal devices are equipped with multiple independent cameras (camera modules) to adapt to different shooting scenarios.
  • cameras camera modules
  • a camera includes an image sensor and a lens.
  • Equipping mobile terminal equipment with multiple independent cameras will result in a significant increase in equipment manufacturing costs. Therefore, how to reduce the manufacturing cost of the equipment while meeting the shooting requirements of different shooting scenes becomes a problem to be solved.
  • the embodiments of the present application provide a lens switching method and device, which can reduce the number of image sensors while meeting the shooting needs of users, and reduce the cost of terminal equipment.
  • an embodiment of the present application provides a lens switching method, which can be executed by a lens switching device.
  • the lens switching device includes a camera module.
  • the camera module includes M lenses, N image sensors, and one Motor;
  • the M is a positive integer greater than or equal to 2
  • the N is a positive integer greater than or equal to 1
  • the M is greater than N.
  • the lens switching device determines the lens to be switched, and then switches the lens to be switched to a position corresponding to the target image sensor to complete the recombination of the lens and the image sensor to realize the shooting function.
  • the number of image sensors can be less than the number of lenses, and reducing the number of image sensors will help reduce the cost of the terminal device.
  • the lens switching device may determine the rotation angle between the to-be-switched lens and the position corresponding to the target image sensor, and according to the rotation angle, move the to-be-switched lens in a counterclockwise or clockwise direction. Switch the lens to switch to the position corresponding to the target image sensor.
  • determining the rotation angle of the lens can more accurately switch the lens to the position corresponding to the target sensor according to the rotation angle.
  • the rotation angle includes a first rotation angle of the lens to be switched in a clockwise direction and a second rotation angle of the lens to be switched in a counterclockwise direction. If the first rotation angle is smaller than the second rotation angle, switch the lens to be switched to the position corresponding to the target image sensor in a clockwise direction; if the second rotation angle is smaller than the first rotation angle, Then, the to-be-switched lens is switched to the position corresponding to the target image sensor in a counterclockwise direction.
  • the lens switching device may determine shooting parameters, where the shooting parameters include a shooting scene and a shooting mode, and then determine the lens to be switched according to the shooting parameters.
  • the lens switching device can automatically determine the lens to be switched by determining the shooting parameters.
  • the lens switching device may output an analog interface to the camera module and receive a user's operation on the analog interface.
  • the operation is that the user drags the target lens to the target
  • the drag operation of the position corresponding to the image sensor, or the operation is a click operation on the target lens; and then the target lens is determined as the lens to be switched.
  • the lens switching device can determine the lens to be switched according to the user's selection, which is beneficial to satisfy the user's shooting needs.
  • the lens switching device may output the selection items of the lens and receive the user's selection operation of the lens; and then determine that the lens selected by the selection operation is the lens to be switched.
  • the lens switching device can determine the lens to be switched according to the user's selection, which is beneficial to satisfy the user's shooting needs.
  • the lens switching device may perform switching prompts during the process of switching the to-be-switched lens to the position corresponding to the target image sensor.
  • the camera switching process can be displayed more vividly and the user's operating experience can be improved.
  • the switching prompt includes an audio prompt and/or a vibration prompt.
  • an embodiment of the present application provides a lens switching device, which has the function of implementing the lens switching method provided in the first aspect.
  • This function can be realized by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • an embodiment of the present application provides a terminal device including a processor and a memory; the memory is used to store a computer program, and the processor executes the computer program stored in the memory, so that the terminal device executes the first Aspect or the method in any possible implementation manner of the first aspect.
  • an embodiment of the present application provides a readable storage medium that includes a program or instruction, and when the program or instruction runs on a computer, the computer executes the first aspect or any of the first aspects.
  • a readable storage medium that includes a program or instruction, and when the program or instruction runs on a computer, the computer executes the first aspect or any of the first aspects.
  • the chip system in the foregoing aspect may be a system on chip (SOC), or a baseband chip, etc., where the baseband chip may include a processor, a channel encoder, a digital signal processor, a modem, and an interface module.
  • SOC system on chip
  • baseband chip may include a processor, a channel encoder, a digital signal processor, a modem, and an interface module.
  • Fig. 1 is a schematic diagram of a camera module provided in the prior art
  • Figure 2a is a schematic diagram of a camera module provided by an embodiment of the present application.
  • Figure 2b is a schematic diagram of another camera module provided by an embodiment of the present application.
  • Figure 2c is a schematic diagram of another camera module provided by an embodiment of the present application.
  • Figure 3a is a schematic diagram of another camera module provided by an embodiment of the present application.
  • Figure 3b is a schematic diagram of another camera module provided by an embodiment of the present application.
  • Figure 4a is a schematic diagram of another camera module provided by an embodiment of the present application.
  • Figure 4b is a schematic diagram of another camera module provided by an embodiment of the present application.
  • Figure 5a is a diagram of the correspondence between a lens and an image sensor provided in the prior art
  • FIG. 5b is a diagram of the correspondence between a lens and an image sensor according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • FIG. 7a is a schematic structural diagram of a software system and hardware layer of a terminal device provided by an embodiment of the present application.
  • FIG. 7b is a schematic diagram of a software and hardware processing flow of a terminal device according to an embodiment of the present application.
  • FIG. 8 is a schematic flowchart of a lens switching method provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of an application scenario of a lens switching method provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of an application scenario of another lens switching method provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of an application scenario of another lens switching method provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of an application scenario of another lens switching method provided by an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of a lens switching device provided by an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of another lens switching device provided by an embodiment of the present application.
  • the current terminal equipment usually adopts a system design of multiple cameras to meet the shooting needs in different scenes. For example, when the shooting scene requires a wider field of view, a wide-angle camera is used. Shooting; when the shooting target is far away, use the telephoto camera to shoot; when shooting close-up close-ups, use the macro camera to shoot to achieve the best shooting experience.
  • the existing terminal equipment needs to be equipped with multiple independent cameras to adapt to different scenarios, that is, the terminal equipment needs to be equipped with multiple lenses and a corresponding number of image sensors, as shown in Figure 1.
  • the terminal equipment includes three independent cameras, and each camera includes a lens and a corresponding image sensor.
  • the use of the multi-camera solution shown in Figure 1 will increase the manufacturing cost of the terminal equipment, and the scalability of the multi-camera solution is poor.
  • the embodiments of the present application provide a lens switching method and device, wherein the lens switching device may be a terminal device or a device for terminal equipment.
  • the lens switching method realizes the free combination of M lenses and N image sensors by decoupling the fixed correspondence between the image sensor and the lens in the camera module, and by rotating the lens.
  • M is greater than N, the number of image sensors can be reduced and the cost of terminal equipment can be reduced.
  • the lens switching method can be applied to a lens switching device, where the lens switching device can be a terminal device or a device used for a terminal device.
  • the lens switching device includes a camera module, the camera module includes M lenses, N image sensors, and a motor; the M is a positive integer greater than or equal to 2, and the N is a positive integer greater than or equal to 1. ,
  • the M is greater than N.
  • the number of image sensors can be less than the number of lenses.
  • the lens switching device can switch the to-be-switched lens to a designated position to be buckled and reassembled with the image sensor according to the user's shooting requirements, and meets the user's shooting requirements while reducing the manufacturing cost of the terminal equipment.
  • a camera module provided by an embodiment of the present application is shown in Figures 2a, 2b, and 2c.
  • the camera module includes 3 lenses and 1 image sensor, that is, M is 3 and N is 1.
  • the position of the image sensor in this embodiment is fixed, and the three lenses can be rotated by the motor to realize the switching of the lens.
  • the lens is rotated to the corresponding position of the image sensor, the optical axis alignment is completed, and the lens and the image sensor are buckled. Reorganization.
  • each lens can be rotated in two directions clockwise or counterclockwise, and the rotation angle is at most 90 degrees.
  • Figure 2a and Figure 2b show two different positional relationships between the motor and the image sensor.
  • the motor in Figure 2a is located above the image sensor, and the motor in Figure 2b is located below the image sensor.
  • the lens 2 can be rotated counterclockwise to the position corresponding to the image sensor, and the lens 1 and the lens 3 can also be rotated counterclockwise.
  • the angle between the three lenses can be changed.
  • each lens can rotate 360 degrees omnidirectionally, and the angle between the three lenses can be changed, then lens 2 can be rotated clockwise to the position corresponding to the image sensor, and lens 1 and lens The position of 3 can be constant. It is understandable that the multiple lenses shown in this embodiment can all be independently placed in parallel without affecting the thickness of the whole machine.
  • FIGS. 3a and 3b another camera module provided by an embodiment of the present application is shown in FIGS. 3a and 3b.
  • the camera module includes 5 lenses and 2 image sensors, that is, M is 5 and N is 2.
  • the position of the image sensor is fixed, the 5 lenses can be rotated by a motor to realize the switching of the lenses, and each lens can be rotated 360 degrees in an omni-directional manner.
  • the angle between the five lenses may be constant.
  • the image sensor corresponding to lens 2 is sensor 1
  • the image sensor corresponding to lens 3 is sensor 2
  • lens 2 can be rotated clockwise to the position corresponding to sensor 1
  • lens 3 can be rotated clockwise to sensor 2
  • the other lenses also rotate correspondingly, as shown in Figure 3a.
  • the angle between the five lenses can be changed.
  • the lens 2 can be rotated in a clockwise direction to the position corresponding to the sensor 1
  • the lens 3 can be rotated in a clockwise direction to the position corresponding to the sensor 2, and the positions of other lenses remain unchanged, as shown in FIG. 3b.
  • the camera module provided in this embodiment can support N image sensors to match the lens to produce images at the same time to achieve corresponding functions (such as picture-in-picture functions, etc.).
  • the lenses and image sensors in a camera module provided in this embodiment may also be arranged in rows or columns.
  • the camera module includes two lenses and an image sensor.
  • the sensors are arranged in rows (such as from left to right), as shown in Figure 4a.
  • each lens or the to-be-switched lens moves horizontally to the left or right to the position corresponding to the image sensor.
  • the lens 1 in FIG. 4a can move horizontally to the right to the position corresponding to the image sensor.
  • the camera module includes three lenses and one image sensor, and each lens and image sensor are arranged in a row (such as from top to bottom), as shown in FIG. 4b.
  • each lens or the to-be-switched lens moves vertically upward or downward to the position corresponding to the image sensor.
  • the lens 1 in FIG. 4b can be moved vertically upward to the position corresponding to the image sensor.
  • the camera module provided in this embodiment can realize dynamic matching of lenses and image sensors, and can realize that the number of image sensors is less than the number of lenses to reduce equipment cost. And when the number of image sensors is reduced, the terminal device can choose to install an image sensor with a higher image resolution, then different lenses can be matched with the image sensor with a higher image resolution, thereby also improving the shooting quality of the camera.
  • the image sensor corresponding to the medium-focus lens has the highest image resolution
  • the image sensor corresponding to the wide-angle lens has the second highest image resolution
  • the image sensor corresponding to the tele-focus lens has the lowest image resolution.
  • the camera module shown in FIGS. 2a to 2c includes 3 lenses and 1 image sensor, where the image sensor may be an image sensor with a higher image resolution.
  • the image sensor may be an image sensor with a higher image resolution.
  • any lens is switched to the image sensor corresponding It can be combined with the image sensor to realize the shooting function.
  • all three lenses can be matched with the image sensor to produce a picture, which is beneficial to improve the shooting quality of the camera.
  • the terminal device described in this embodiment can be a device with a wireless transceiver function, which can be deployed on land, including indoor or outdoor, handheld, wearable, or vehicle-mounted; it can also be deployed on water (such as ships); Deploy in the air (for example, on airplanes, balloons, satellites, etc.).
  • the terminal device may be a mobile phone (mobile phone), a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, an industrial control ( Wireless terminals in industrial control, in-vehicle terminal equipment, wireless terminals in self-driving, wireless terminals in remote medical, wireless terminals in smart grid, transportation safety (transportation) Wireless terminals in safety), wireless terminals in smart cities, wireless terminals in smart homes, wearable terminal devices, and so on.
  • the embodiment of this application does not limit the application scenario.
  • Terminal equipment can also be called user equipment (UE), access terminal equipment, vehicle-mounted terminal, industrial control terminal, UE unit, UE station, mobile station, mobile station, remote station, remote terminal equipment, mobile equipment, UE Terminal equipment, terminal equipment, wireless communication equipment, UE agent or UE device, etc.
  • the terminal can also be fixed or mobile.
  • the terminal device of the present application may also be an on-board module, on-board module, on-board component, on-board chip, or on-board unit built into a vehicle as one or more components or units. The vehicle passes through the built-in on-board module, on-board module, An on-board component, on-board chip, or on-board unit can implement the method of the present application.
  • the terminal device is a mobile phone as an example for description.
  • the embodiment of the present application provides a schematic structural diagram of a terminal device.
  • FIG. 6 is a schematic structural diagram of the terminal device 600.
  • the terminal device 600 may include a processor 610, an external memory interface 620, an internal memory 621, and a universal serial bus. (universal serial bus, USB) interface 630, charging management module 640, power management module 641, battery 642, antenna 1, antenna 2, mobile communication module 650, wireless communication module 660, audio module 670, speaker 670A, receiver 670B, microphone 670C, headphone interface 670D, sensor module 680, buttons 690, motor 691, indicator 692, camera 693, display screen 694, subscriber identification module (subscriber identification module, SIM) card interface 695, etc.
  • universal serial bus universal serial bus, USB
  • the sensor module 680 can include pressure sensor 680A, gyroscope sensor 680B, air pressure sensor 680C, magnetic sensor 680D, acceleration sensor 680E, distance sensor 680F, proximity light sensor 680G, fingerprint sensor 680H, temperature sensor 680J, touch sensor 680K, ambient light Sensor 680L, bone conduction sensor 680M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 600.
  • the terminal device 600 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 610 may include one or more processing units.
  • the processor 610 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 610 to store instructions and data.
  • the memory in the processor 610 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 610. If the processor 610 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 610 is reduced, and the efficiency of the system is improved.
  • the processor 610 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 610 may include multiple sets of I2C buses.
  • the processor 610 may couple the touch sensor 680K, charger, flash, camera 693, etc., respectively through different I2C bus interfaces.
  • the processor 610 may couple the touch sensor 680K through an I2C interface, so that the processor 610 and the touch sensor 680K communicate through the I2C bus interface to realize the touch function of the terminal device 600.
  • the I2S interface can be used for audio communication.
  • the processor 610 may include multiple sets of I2S buses.
  • the processor 610 may be coupled with the audio module 670 through an I2S bus to implement communication between the processor 610 and the audio module 670.
  • the audio module 670 may transmit audio signals to the wireless communication module 660 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 670 and the wireless communication module 660 may be coupled through a PCM bus interface.
  • the audio module 670 may also transmit audio signals to the wireless communication module 660 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is usually used to connect the processor 610 and the wireless communication module 660.
  • the processor 610 communicates with the Bluetooth module in the wireless communication module 660 through the UART interface to implement the Bluetooth function.
  • the audio module 670 may transmit audio signals to the wireless communication module 660 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 610 with the display screen 694, the camera 693 and other peripheral devices.
  • the MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 610 and the camera 693 communicate through a CSI interface to implement the shooting function of the terminal device 600.
  • the processor 610 and the display screen 694 communicate through the DSI interface to realize the display function of the terminal device 600.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 610 with the camera 693, the display screen 694, the wireless communication module 660, the audio module 670, the sensor module 680, and so on.
  • GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 630 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 630 can be used to connect a charger to charge the terminal device 600, and can also be used to transfer data between the terminal device 600 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. This interface can also be used to connect to other terminal devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic description, and does not constitute a structural limitation of the terminal device 600.
  • the terminal device 600 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 640 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 640 may receive the charging input of the wired charger through the USB interface 630.
  • the charging management module 640 may receive the wireless charging input through the wireless charging coil of the terminal device 600. While charging the battery 642, the charging management module 640 can also supply power to the terminal device through the power management module 641.
  • the power management module 641 is used to connect the battery 642, the charging management module 640 and the processor 610.
  • the power management module 641 receives input from the battery 642 and/or the charge management module 640, and supplies power to the processor 610, the internal memory 621, the display screen 694, the camera 693, and the wireless communication module 660.
  • the power management module 641 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 641 may also be provided in the processor 610.
  • the power management module 641 and the charging management module 640 may also be provided in the same device.
  • the wireless communication function of the terminal device 600 can be implemented by the antenna 1, the antenna 2, the mobile communication module 650, the wireless communication module 660, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the terminal device 600 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 650 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the terminal device 600.
  • the mobile communication module 650 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 650 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 650 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 650 may be provided in the processor 610.
  • at least part of the functional modules of the mobile communication module 650 and at least part of the modules of the processor 610 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
  • the application processor outputs sound signals through audio equipment (not limited to the speaker 670A, the receiver 670B, etc.), or displays images or videos through the display screen 694.
  • the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 610 and be provided in the same device as the mobile communication module 650 or other functional modules.
  • the wireless communication module 660 can provide applications on the terminal device 600 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 660 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 660 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 610.
  • the wireless communication module 660 may also receive the signal to be sent from the processor 610, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the terminal device 600 is coupled with the mobile communication module 650, and the antenna 2 is coupled with the wireless communication module 660, so that the terminal device 600 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the terminal device 600 implements a display function through a GPU, a display screen 694, and an application processor.
  • the GPU is a microprocessor for image processing, connected to the display 694 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 610 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 694 is used to display images, videos, etc.
  • the display screen 694 includes a display panel.
  • the display screen may specifically include a folding screen, a special-shaped screen, etc.
  • the display panel may use a liquid crystal display (LCD), organic light emitting diode (organic light-emitting diode, OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (AMOLED), flexible light-emitting diode (FLED) ), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc.
  • the terminal device 600 may include one or N display screens 694, and N is a positive integer greater than one.
  • the terminal device 600 can realize a shooting function through an ISP, a camera module 693, a video codec, a GPU, a display screen 694, and an application processor.
  • the camera module 693 can include a lens and an image sensor.
  • the shutter when taking a picture, the shutter is opened, and light is transmitted to the image sensor through the lens.
  • the image sensor can convert the light signal into an electric signal, and transfer the electric signal to the ISP for processing, and convert it into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the lens is used to obtain a static image or video, and the object generates an optical image through the lens and is projected to the image sensor.
  • the image sensor can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor. CMOS) phototransistor.
  • CCD charge coupled device
  • CMOS complementary metal-oxide-semiconductor
  • the image sensor converts the light signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal device 600 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the terminal device 600 may support one or more video codecs. In this way, the terminal device 600 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the NPU can realize applications such as intelligent cognition of the terminal device 600, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 620 may be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the terminal device 600.
  • the external memory card communicates with the processor 610 through the external memory interface 620 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 621 may be used to store computer executable program code, where the executable program code includes instructions.
  • the internal memory 621 may include a program storage area and a data storage area.
  • the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the terminal device 600.
  • the internal memory 621 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, a universal flash storage (UFS), and the like.
  • the processor 610 executes various functional applications and data processing of the terminal device 600 by running instructions stored in the internal memory 621 and/or instructions stored in a memory provided in the processor.
  • the terminal device 600 can implement audio functions through an audio module 670, a speaker 670A, a receiver 670B, a microphone 670C, a headset interface 670D, and an application processor. For example, music playback, recording, etc.
  • the audio module 670 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 670 can also be used to encode and decode audio signals.
  • the audio module 670 may be disposed in the processor 610, or part of the functional modules of the audio module 670 may be disposed in the processor 610.
  • the speaker 670A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the terminal device 600 can listen to music through the speaker 670A, or listen to a hands-free call.
  • the receiver 670B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the terminal device 600 answers a call or voice message, it can receive the voice by bringing the receiver 670B close to the human ear.
  • Microphone 670C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 670C through the human mouth, and input the sound signal into the microphone 670C.
  • the terminal device 600 may be provided with at least one microphone 670C. In other embodiments, the terminal device 600 may be provided with two microphones 670C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the terminal device 600 may also be provided with three, four or more microphones 670C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 670D is used to connect wired earphones.
  • the earphone interface 670D may be a USB interface 630, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association
  • the pressure sensor 680A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 680A may be provided on the display screen 694.
  • the capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 680A, the capacitance between the electrodes changes. The terminal device 600 determines the strength of the pressure according to the change in capacitance. When a touch operation acts on the display screen 694, the terminal device 600 detects the intensity of the touch operation according to the pressure sensor 680A.
  • the terminal device 600 may also calculate the touched position according to the detection signal of the pressure sensor 680A.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 680B may be used to determine the motion posture of the terminal device 600.
  • the angular velocity of the terminal device 600 around three axes ie, x, y, and z axes
  • the gyro sensor 680B can be used for image stabilization.
  • the gyroscope sensor 680B detects the shaking angle of the terminal device 600, and calculates the distance that the lens module needs to compensate according to the angle, so that the lens can counteract the shaking of the terminal device 600 through reverse movement to achieve anti-shake.
  • the gyro sensor 680B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 680C is used to measure air pressure.
  • the terminal device 600 calculates the altitude based on the air pressure value measured by the air pressure sensor 680C, and assists positioning and navigation.
  • the magnetic sensor 680D includes a Hall sensor.
  • the terminal device 600 may use the magnetic sensor 680D to detect the opening and closing of the flip holster.
  • the terminal device 600 when the terminal device 600 is a flip machine, the terminal device 600 can detect the opening and closing of the flip according to the magnetic sensor 680D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 680E can detect the magnitude of the acceleration of the terminal device 600 in various directions (generally three axes). When the terminal device 600 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the terminal device, and is used in applications such as horizontal and vertical screen switching, and pedometer.
  • the terminal device 600 can measure the distance by infrared or laser. In an embodiment, for shooting a scene, the terminal device 600 may use the distance sensor 680F to measure the distance to achieve rapid focusing.
  • the proximity light sensor 680G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the terminal device 600 emits infrared light to the outside through the light emitting diode.
  • the terminal device 600 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 600. When insufficient reflected light is detected, the terminal device 600 can determine that there is no object near the terminal device 600.
  • the terminal device 600 can use the proximity light sensor 680G to detect that the user holds the terminal device 600 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 680G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 680L is used to sense the brightness of the ambient light.
  • the terminal device 600 can adaptively adjust the brightness of the display screen 694 according to the perceived brightness of the ambient light.
  • the ambient light sensor 680L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 680L can also cooperate with the proximity light sensor 680G to detect whether the terminal device 600 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 680H is used to collect fingerprints.
  • the terminal device 600 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 680J is used to detect temperature.
  • the terminal device 600 uses the temperature detected by the temperature sensor 680J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 680J exceeds a threshold value, the terminal device 600 executes to reduce the performance of the processor located near the temperature sensor 680J, so as to reduce power consumption and implement thermal protection.
  • the terminal device 600 when the temperature is lower than another threshold, the terminal device 600 heats the battery 642 to avoid abnormal shutdown of the terminal device 600 due to low temperature.
  • the terminal device 600 boosts the output voltage of the battery 642 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 680K is also called “touch device”.
  • the touch sensor 680K can be arranged on the display screen 694, and the touch screen is composed of the touch sensor 680K and the display screen 694, which is also called a “touch screen”.
  • the touch sensor 680K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 694.
  • the touch sensor 680K may also be disposed on the surface of the terminal device 600, which is different from the position of the display screen 694.
  • the bone conduction sensor 680M can acquire vibration signals.
  • the bone conduction sensor 680M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 680M can also contact the human pulse and receive blood pressure pulse signals.
  • the bone conduction sensor 680M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 670 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 680M, and realize the voice function.
  • the application processor may analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 680M, and realize the heart rate detection function.
  • the button 690 includes a power button, a volume button and so on.
  • the button 690 may be a mechanical button. It can also be a touch button.
  • the terminal device 600 may receive key input, and generate key signal input related to user settings and function control of the terminal device 600.
  • the motor 691 can generate vibration prompts.
  • the motor 691 can be used for incoming call vibrating prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 694, the motor 691 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 692 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 695 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 695 or pulled out from the SIM card interface 695 to achieve contact and separation with the terminal device 600.
  • the terminal device 600 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 695 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 695 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 695 can also be compatible with different types of SIM cards.
  • the SIM card interface 695 can also be compatible with external memory cards.
  • the terminal device 600 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the terminal device 600 adopts eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the terminal device 600 and cannot be separated from the terminal device 600.
  • the software system of the terminal device in this embodiment can adopt a layered architecture. From top to bottom, they are the application layer, application framework layer and The core layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications in the application layer.
  • the application framework layer includes some predefined functions. As shown in Figure 7a, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and a system application program interface.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text and controls that display pictures.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the telephone manager is used to provide the communication function of the terminal device. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can disappear automatically after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
  • the status bar to prompt text information, sound a prompt tone, terminal equipment vibration, flashing lights, etc.
  • API System Application Programming Interface
  • API also known as application programming interface
  • One of the main functions of the API is to provide a common set of functions.
  • API is also a kind of middleware, providing data sharing for various platforms.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the kernel layer is the layer between hardware and software.
  • the core layer can include lens rotation drive, image data drive, display drive, sensor drive, audio drive, and motor drive.
  • the driver program Through the driver program, the corresponding hardware device can be driven to work normally, for example, the lens rotation drive is used to drive the motor of the hardware layer or manually trigger the switch to complete the lens switch.
  • the hardware layer in this embodiment may include multiple devices, for example, motors, manual trigger switches, motor devices, audio devices, image sensors, and lenses.
  • Each device is used to perform the corresponding function, for example, the lens and the image sensor can be combined to realize the shooting function, and the audio device can play the prompt sound.
  • the camera application of the application layer can call the camera device control module to issue the lens switching control flow
  • the application framework layer receives the lens switching control flow issued by the application layer, and transmits the lens switching control flow to the kernel layer by calling the API;
  • the lens switching driver program of the kernel layer receives the lens switching control flow, and generates a switching control signal to control a motor or manually trigger a switch to rotate the lens;
  • the motor or the manual trigger switch of the hardware layer receives the switching control signal, and the motor or the manual trigger switch starts to run to rotate the to-be-switched lens to the position corresponding to the target image sensor.
  • the camera application program includes a camera device control module and a camera data flow module.
  • the camera device control module is used to control the switch and lens switching of the camera device.
  • the camera data flow module is used to receive image data;
  • the application framework layer includes the camera device API And data flow API, used to transmit control flow or data flow;
  • the kernel layer includes lens switching driver and image data driver, the lens switching driver is used to generate control signals to drive the motor to achieve lens switching, and the image data driver is used to drive
  • the camera module is used to obtain image data;
  • the hardware layer includes a motor, a manual trigger switch, a lens and an image sensor, and the lens and image sensor are recombined for imaging.
  • the audio driver and/or the motor driver of the kernel layer may also receive the lens switching control stream, wherein the audio driver may generate an audio control signal according to the lens switching control stream to control the audio device to play the prompt sound;
  • the motor drive can generate a vibration control signal according to the lens switching control flow to control the vibration of the motor.
  • the hardware layer also includes audio devices and/or motor devices.
  • the image sensor can re-imaging according to the matched lens, generate a data stream, and transmit the data stream to the image data driver of the kernel layer, and the image data driver of the kernel layer passes the data stream through
  • the data flow API of the kernel layer is passed to the camera data flow module of the application layer to provide shooting data for the camera application.
  • the steps of the lens switching method provided in the embodiment of the present application will be described in detail below. Please refer to FIG. 8.
  • the method specifically includes the following steps:
  • the lens switching device determines a lens to be switched, and the lens to be switched is a lens among the M lenses.
  • the lens switching device can select the lens in the camera module for shooting according to the user's shooting needs, and the lens to be shot is the lens to be switched. Among them, there may be one or more lenses to be switched. For example, when the user's shooting requirement requires a wider field of view (for example, when shooting a wider landscape), a wide-angle lens is required for shooting, and the lens switching device determines that the lens to be switched is a wide-angle lens. For another example, when the user's shooting requirement is to shoot close-up close-ups (for example, when shooting close-up close-ups of people), a macro lens is needed for shooting, and the lens switching device determines that the lens to be switched is a macro lens.
  • each lens in the camera module may correspond to each lens identifier.
  • determining the lens to be switched may be determining the lens identifier of the lens to be switched.
  • the lens identifier corresponding to each lens can be preset by the lens switching device.
  • the camera module includes 3 lenses, namely a wide-angle lens, a telephoto lens, and a macro lens. You can set the lens identification of the wide-angle lens as lens 1, the lens identification of the telephoto lens as lens 2, and the lens identification of the macro lens as lens 3.
  • the lens switching device can determine the lens to be switched in the following three ways, of course, it can also determine the lens to be switched in other ways, which is not limited in the embodiment of the application.
  • the lens switching device in mode 1, can automatically determine the lens to be switched according to the shooting parameters.
  • the lens switching device may determine the lens to be switched according to the user's selection operation.
  • Manner 1 Determine shooting parameters, where the shooting parameters include shooting scenes and shooting modes; determine the lens to be switched according to the shooting parameters.
  • the lens switching device may determine the shooting scene according to the image shooting preview screen, and then determine the lens to be switched according to the shooting scene.
  • the lens switching device can automatically recognize the shooting scene according to the content in the image shooting preview screen.
  • the lens switching device can analyze which type of image the image in the preview screen is, such as a landscape image or a character image; and then determine the depth of field of the image in the preview screen.
  • Image parameters such as shooting distance.
  • the lens switching device can determine the shooting scene according to the image type and image parameters in the preview screen. After the shooting scene is determined, the lens to be switched can be determined according to the correspondence between the shooting scene and the lens.
  • the corresponding relationship between the shooting scene and the lens may be preset and stored in the lens switching device.
  • the correspondence between the shooting scene and the lens stored in the lens switching device may be as shown in Table 1 below. Among them, the lenses and corresponding shooting scenes shown in Table 1 are only some examples, which are used for illustration and do not limit the application scenes of this embodiment.
  • Table 1 Correspondence table of shooting scene and lens
  • Wide-angle lens Suitable for scenes requiring a wide field of view such as shooting scenes such as architecture and landscape Telephoto lens Suitable for scenes far away from the shooting target, such as distant scenes, aerial photography, etc.
  • the user opens the camera application, and the display interface of the lens switching device displays an image shooting preview screen; the lens switching device determines the shooting scene according to the preview screen. For example, if the preview screen in Figure 8 shows a portrait, you can determine that the image type in the preview screen is a person; then analyze that the person in the preview screen occupies about two-thirds of the preview screen, and you can determine that the shooting distance is closer .
  • the lens switching device determines that the shooting scene is a close-up shooting scene of a person.
  • the shooting scene can use a macro lens for shooting close-up of a person, and the lens to be switched is determined to be a macro lens.
  • the selection of the shooting mode can be output on the display interface, and the user's selection operation of the shooting mode can be received, and then the lens to be switched is determined according to the shooting mode selected by the selection operation.
  • the shooting mode to be used can usually be determined according to the shooting target. For example, when the user needs to use the camera to shoot a landscape, the user usually chooses to use the landscape shooting mode to make the captured image more perfect.
  • the shooting mode usually corresponds to a kind of lens, and the lens switching device can determine that the lens corresponding to the shooting mode is the lens to be switched.
  • the correspondence between the shooting mode and the lens may be preset and stored in the lens switching device.
  • the corresponding relationship between the shooting mode and the lens stored in the lens switching device may be shown in Table 2 below. Among them, the lenses and corresponding shooting modes shown in Table 2 are only some examples, which are used for illustration and do not limit the application scenarios of this embodiment.
  • Table 2 Correspondence table of shooting mode and lens
  • Wide-angle lens Suitable for night scene mode, landscape mode, large aperture mode, etc.
  • Telephoto lens Suitable for remote view mode, aerial mode, etc.
  • Macro lens Suitable for portrait mode etc.
  • the user opens the camera application, and the display interface will display options for shooting modes; the user clicks to select one of the shooting modes. For example, if the user currently needs to take a portrait, he can click to select the portrait shooting mode.
  • the display interface displays the options of the shooting mode, all the options of the shooting mode can be displayed by sliding left and right in the option bar.
  • the lens switching device After receiving the user's selection operation of the shooting mode, the lens switching device searches the correspondence table between the shooting mode and the lens according to the selected shooting mode, and determines the lens to be switched. For example, if the lens corresponding to the portrait shooting mode is a macro lens, it is determined that the lens to be switched is a macro lens.
  • the analog interface to the camera module can be output on the display interface of the lens switching device, and the user's operation on the analog interface can be received.
  • the user's operation on the simulation interface may be a drag operation of dragging the target lens to a position corresponding to the target image sensor, or a clicking operation on the target lens. According to the user's operation on the simulation interface, the target lens is determined as the lens to be switched.
  • the simulation interface of the camera module is the simulation visualization interface of the camera module of the lens switching device.
  • the user can manually select and switch the lens through the visualization interface, and the corresponding hardware device will correspond to the hardware layer according to the user's operation on the simulation interface. Perform related operations, such as completing lens switching.
  • the user's operation on the simulation interface may be a drag operation of dragging the target lens to a position corresponding to the target image sensor, for example, dragging the target lens clockwise or counterclockwise to the position corresponding to the image sensor.
  • the user's operation on the simulation interface can also be a click operation on the target lens. For example, the user clicks on the target lens in the simulation interface. After receiving the user's click operation on the target lens, the lens switching device can automatically switch the target lens to The location corresponding to the target sensor.
  • the user opens the camera application, clicks on the setting item, and can choose to display the simulation interface of the camera module.
  • the simulation interface will display the simulation structure of the camera module inside the lens switching device, where the simulation structure is the structure displayed after visualizing the hardware structure of the camera module.
  • the simulation interface shown in FIG. 11 includes 3 lenses and an image sensor, and each lens corresponds to a lens identifier (such as lens 1).
  • the simulation interface can also display detailed information of each lens, such as lens parameters and shooting scenes applicable to the lens.
  • the user can determine that the target lens is lens 1 according to the detailed information of each lens displayed in the simulation interface shown in FIG. 11 in combination with shooting requirements. After determining the target lens, the user can drag and rotate lens 1 to the position corresponding to the sensor, that is, determine that the lens to be switched is lens 1.
  • the simulation interface can be closed.
  • a close option can be set in the upper right corner of the simulation interface, and when the lens switching device detects that the user clicks the close option, the simulation interface will be closed.
  • the lens switching device detects that the user clicks the close option, the simulation interface will be closed.
  • the lens switching device defaults that the lens switching has been completed and the simulation interface will be automatically closed.
  • the selection items of the lens can be output on the display interface of the lens switching device, and the user's selection operation of the lens can be received, and then the lens selected by the user is determined as the lens to be switched.
  • the selection item of the lens may include a lens identification and detailed information of the lens corresponding to the identification.
  • the lens switching device includes multiple lenses, and each lens corresponds to different lens detailed information.
  • the detailed information of each lens can be displayed on the display interface.
  • the detailed information of lens 1 is that the focal length of the lens is 8 mm, and the suitable shooting scene of the lens is architecture. Shoot the scene.
  • the user opens the camera application and clicks the lens selection item, and the display interface of the lens switching device will display the lens selection item.
  • the camera module of the lens switching device includes 3 lenses, and the display interface will display the lens parameters and applicable shooting scenes of the 3 lenses.
  • the lens switching device switches the to-be-switched lens to a position corresponding to a target image sensor, where the target image sensor is a sensor of the N image sensors.
  • the target image sensor can be any one of the N image sensors.
  • the position of any one of the image sensors in this embodiment is fixed, and the position to which the lens to be switched is determined after the target image sensor is determined is also determined.
  • the target image sensor is an image sensor in the camera module.
  • the lens to be switched can be directly switched to the position corresponding to the image sensor. For example, in the camera module shown in FIG. 2a, if the lens to be switched is lens 2, then lens 2 is directly switched to the position corresponding to the sensor.
  • the target image sensor may also be multiple image sensors among the N image sensors.
  • the camera module includes multiple image sensors and multiple lenses, a free combination of multiple image sensors and multiple lenses can be realized. After determining multiple lenses to be switched, it is also necessary to determine the image sensor corresponding to each lens to be switched, so as to switch each lens to be switched to the corresponding position of the corresponding image sensor.
  • the lens switching device may pre-store the correspondence between the lens and the image sensor.
  • the lens switching device acquires the image sensor corresponding to the lens to be switched as the target sensor according to the pre-stored correspondence between the lens and the image sensor, and then switches the lens to be switched to the position corresponding to the target sensor.
  • the camera module includes two image sensors, where the image resolution of sensor 1 is higher, and the image resolution of sensor 2 is lower.
  • the lens 1 is a wide-angle lens, which needs to match an image sensor with a higher image resolution
  • lens 2 is a telephoto lens, which requires lower image resolution Lens 1.
  • the lens switching device can determine that the corresponding relationship between each lens to be switched and each image sensor is that lens 1 matches sensor 1, and lens 2 matches sensor 2, thereby determining that lens 1 is switched to the position corresponding to sensor 1, and lens 2 is switched to the position corresponding to sensor 2. position.
  • the lens to be switched when the lens to be switched is switched to the position corresponding to the target image sensor, it can be switched according to the rotation angle, which specifically includes the following steps: determining the rotation angle between the lens to be switched to the position corresponding to the target image sensor, and according to the rotation angle Switch the to-be-switched lens to a position corresponding to the target image sensor in a counterclockwise direction or a clockwise direction.
  • the first angle of rotation is an angle of rotation in a clockwise direction
  • the second angle of rotation is an angle of rotation in a counterclockwise direction. Specifically, it may include the following steps: if the first rotation angle is smaller than the second rotation angle, switching the to-be-switched lens to the position corresponding to the target image sensor in a clockwise direction; if the second rotation angle is smaller than the According to the first rotation angle, the lens to be switched is switched to the position corresponding to the target image sensor in a counterclockwise direction.
  • the lens to be switched is lens 2
  • the first rotation angle of lens 2 is about 270 degrees
  • the second rotation angle of lens 2 is about 30 degrees. Rotate counterclockwise to the position corresponding to the target image sensor.
  • the lens to be switched can be switched to the position corresponding to the target image sensor by rotating the lens by the motor.
  • a switching control signal can be sent to the motor, and after the motor receives the switching control signal, it can drive the lens to be switched The lens rotates to the position corresponding to the target sensor.
  • the user can manually switch the lens to be switched to the position corresponding to the target image sensor.
  • a manual trigger switch (such as a manual knob) can be installed on the terminal device.
  • the camera module can be visible (for example, the camera module area of the terminal is a transparent shell, or the display interface of the terminal Display the analog interface of the camera).
  • the user can directly operate the manual trigger switch to rotate the lens to be switched to the position corresponding to the target image sensor, and the entire switching process is a visualization process to ensure that the lens to be switched is accurately switched to the position corresponding to the target image sensor.
  • a switching prompt may be performed at the same time, wherein the switching prompt may include, but is not limited to, an audio prompt, a vibration prompt, and the like.
  • prompt sounds such as playing music, playing lens switching voice, etc.
  • the terminal device can be vibrated to remind the user that the camera is switching, and the user experience in the switching process can be improved.
  • the embodiment of the present application provides a lens switching method.
  • the method determines the lens to be switched, and then switches the lens to be switched to a position corresponding to the target image sensor, so as to realize the snapping and reassembly of the lens and the image sensor.
  • the method can be applied to a lens switching device, where the lens switching device includes a camera module in which the lens and the image sensor are decoupled, and the free combination of multiple lenses and sensors can be realized through lens switching, which reduces The number of sensors to reduce the manufacturing cost of the terminal equipment; optionally, the peripherals (such as audio devices and motor devices) can be linked during the lens switching process, so that the user can perceive the lens switching process and improve the user's use Experience.
  • An embodiment of the present application provides a lens switching device, as shown in FIG. 13.
  • the lens switching device 1300 may be used to execute the lens switching method described in FIG. 8, and the lens switching device includes:
  • the determining unit 1301 is configured to determine a lens to be switched, and the lens to be switched is one of the M lenses;
  • the switching unit 1302 is configured to switch the lens to be switched to a position corresponding to a target image sensor, and the target image sensor is one of the N image sensors.
  • the switching unit 1302 may be specifically used for:
  • the to-be-switched lens is switched to the position corresponding to the target image sensor in a counterclockwise direction or a clockwise direction.
  • the rotation angle includes a first rotation angle of the lens to be switched in a clockwise direction and a second rotation angle of the lens to be switched in a counterclockwise direction; the switching unit 1302 may specifically use in:
  • the lens to be switched is switched to a position corresponding to the target image sensor in a counterclockwise direction.
  • the determining unit 1301 may be specifically configured to:
  • the shooting parameters include a shooting scene and a shooting mode
  • the determining unit 1301 may be specifically configured to:
  • the operation is a drag operation in which the user drags the target lens to a position corresponding to the target image sensor, or the operation is a click operation on the target lens;
  • the target lens is determined as the lens to be switched.
  • the determining unit 1301 may be specifically configured to:
  • the lens selected by the selection operation is the lens to be switched.
  • the lens switching device further includes a prompt unit 1303, which is used to perform a switching prompt during the process of switching the lens to be switched to a position corresponding to the target image sensor.
  • the switching prompt includes an audio prompt and/or a vibration prompt.
  • the lens switching device 1400 may include a processor 1401 for determining the lens to be switched or switching the lens to be switched to a position corresponding to the target sensor; wherein the determining unit 1301, the switching unit 1302, and the prompt unit 1303 shown in FIG. 13
  • the implemented related functions can all be implemented by the processor 1401.
  • the processor 1401 may include one or more processors.
  • the processor 1401 may be one or more central processing units (CPUs), network processors (NPs), hardware chips, or any combination thereof .
  • the processor 1401 is a CPU
  • the CPU may be a single-core CPU or a multi-core CPU.
  • the lens switching device 1400 may further include a memory 1402, and the memory 1402 is used to store program codes and the like.
  • the memory 1402 may include a volatile memory (volatile memory), such as a random access memory (random access memory, RAM); the memory 1402 may also include a non-volatile memory (non-volatile memory), such as a read-only memory (read-only memory). Only memory (ROM), flash memory (flash memory), hard disk drive (HDD) or solid-state drive (SSD); the memory 1402 may also include a combination of the foregoing types of memories.
  • the above-mentioned processor 1401 and memory 1402 may be used to implement the lens switching method described in FIG. 8, wherein the processor 1401 is used to determine the lens to be switched, and is also used to switch the lens to be switched to a position corresponding to the target image sensor.
  • processor 1401 may be specifically used to:
  • the lens to be switched is switched to a position corresponding to the target image sensor in a counterclockwise direction or a clockwise direction.
  • the rotation angle includes a first rotation angle of the lens to be switched in a clockwise direction and a second rotation angle of the lens to be switched in a counterclockwise direction; the processor 1401 may specifically use in:
  • the lens to be switched is switched to a position corresponding to the target image sensor in a counterclockwise direction.
  • processor 1401 may be specifically used to:
  • the shooting parameters include a shooting scene and a shooting mode
  • processor 1401 may be specifically used to:
  • the operation is a drag operation in which the user drags the target lens to a position corresponding to the target image sensor, or the operation is a click operation on the target lens;
  • the target lens is determined as the lens to be switched.
  • processor 1401 may be specifically used to:
  • the lens selected by the selection operation is the lens to be switched.
  • processor 1401 may be specifically used to:
  • the switching prompt includes an audio prompt and/or a vibration prompt.
  • the device in the foregoing embodiment may be a terminal device, or a chip applied to a terminal device or other combination devices or components with the foregoing terminal functions.
  • the embodiment of the present application also provides a readable storage medium, which includes a program or instruction, when the program or instruction runs on a computer, the computer executes the lens executed by the lens switching device in the above method embodiment. Switch method.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a high-density digital video disc (Digital Video Disc, DVD)), or a semiconductor medium (for example, a solid state disk (Solid State Disk, SSD)) etc.

Abstract

Provided in the embodiments of the present application are a lens switching method and apparatus. The lens switching apparatus comprises a camera module, wherein the camera module comprises M lenses, N image sensors, and an electric motor, M being a positive integer greater than or equal to 2, N being a positive integer greater than or equal to 1, and M being greater than N. The method comprises: determining a lens to be switched, and switching said lens to a position corresponding to a target sensor to achieve snap-fit fastening and recombination of the lens and the image sensor. On the basis of this method, the number of image sensors can be less than the number of lenses, so as to reduce the number of image sensors while meeting the photographing demand of a user, thereby reducing the cost of a terminal device.

Description

一种镜头切换方法及装置Method and device for switching lens
本申请要求于2019年8月6日提交中国专利局、申请号为201910721605.2、申请名称为“一种镜头切换方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 201910721605.2, and the application name is "a lens switching method and device" on August 6, 2019, the entire content of which is incorporated into this application by reference .
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种镜头切换方法及装置。This application relates to the field of communication technology, and in particular to a lens switching method and device.
背景技术Background technique
目前,相机功能越来越受到用户的重视,成为移动终端设备的核心功能之一。为了满足用户在不同场景下的拍照需求,当前的移动终端设备通过配备多个独立的摄像头(摄像头模组)来适应不同的拍摄场景。例如,当拍摄目标距离较远时,使用远焦摄像头进行拍摄;当拍摄目标距离很近时,使用微距摄像头进行拍摄。通常一个摄像头包括一个图像传感器和一个镜头。为移动终端设备配备多个独立的摄像头将导致设备的制造成本显著增加。因此,如何降低设备的制造成本,同时满足不同拍摄场景的拍摄需求成为待解决的问题。At present, the camera function is increasingly being valued by users and has become one of the core functions of mobile terminal devices. In order to meet the needs of users for taking pictures in different scenarios, current mobile terminal devices are equipped with multiple independent cameras (camera modules) to adapt to different shooting scenarios. For example, when the shooting target is far away, use a telephoto camera to shoot; when the shooting target is very close, use a macro camera to shoot. Usually a camera includes an image sensor and a lens. Equipping mobile terminal equipment with multiple independent cameras will result in a significant increase in equipment manufacturing costs. Therefore, how to reduce the manufacturing cost of the equipment while meeting the shooting requirements of different shooting scenes becomes a problem to be solved.
发明内容Summary of the invention
本申请实施例提供了一种镜头切换方法及装置,可以在满足用户的拍摄需求的同时减少图像传感器的数量,降低终端设备的成本。The embodiments of the present application provide a lens switching method and device, which can reduce the number of image sensors while meeting the shooting needs of users, and reduce the cost of terminal equipment.
第一方面,本申请实施例提供一种镜头切换方法,该方法可以由镜头切换装置所执行,该镜头切换装置包括摄像头模组,所述摄像头模组包括M个镜头、N个图像传感器和一个电机;所述M为大于或等于2的正整数,所述N为大于或等于1的正整数,所述M大于N。其中,镜头切换装置通过确定待切换镜头,再将所述待切换镜头切换到目标图像传感器对应的位置以完成镜头和图像传感器的重组,实现拍摄功能。In a first aspect, an embodiment of the present application provides a lens switching method, which can be executed by a lens switching device. The lens switching device includes a camera module. The camera module includes M lenses, N image sensors, and one Motor; The M is a positive integer greater than or equal to 2, the N is a positive integer greater than or equal to 1, and the M is greater than N. Wherein, the lens switching device determines the lens to be switched, and then switches the lens to be switched to a position corresponding to the target image sensor to complete the recombination of the lens and the image sensor to realize the shooting function.
可见,图像传感器的数量可以少于镜头数量,通过减少图像传感器的数量有利于降低终端设备的成本。It can be seen that the number of image sensors can be less than the number of lenses, and reducing the number of image sensors will help reduce the cost of the terminal device.
在一种可能的设计中,镜头切换装置可以确定所述待切换镜头到目标图像传感器对应的位置之间的旋转角度,并根据所述旋转角度,沿逆时针方向或顺时针方向将所述待切换镜头切换到目标图像传感器对应的位置。In a possible design, the lens switching device may determine the rotation angle between the to-be-switched lens and the position corresponding to the target image sensor, and according to the rotation angle, move the to-be-switched lens in a counterclockwise or clockwise direction. Switch the lens to switch to the position corresponding to the target image sensor.
可见,确定镜头的旋转角度,可以根据旋转角度更准确地切换镜头至目标传感器对应的位置。It can be seen that determining the rotation angle of the lens can more accurately switch the lens to the position corresponding to the target sensor according to the rotation angle.
在一种可能的设计中,旋转角度包括所述待切换镜头沿顺时针方向旋转的第一旋转角度和所述待切换镜头沿逆时针方向旋转的第二旋转角度。若所述第一旋转角度小于所述第二旋转角度,则按照顺时针方向将所述待切换镜头切换到目标图像传感器对应的位置;若所述第二旋转角度小于所述第一旋转角度,则按照逆时针方向将所述待切换镜头切换到目标图像传感器对应的位置。In a possible design, the rotation angle includes a first rotation angle of the lens to be switched in a clockwise direction and a second rotation angle of the lens to be switched in a counterclockwise direction. If the first rotation angle is smaller than the second rotation angle, switch the lens to be switched to the position corresponding to the target image sensor in a clockwise direction; if the second rotation angle is smaller than the first rotation angle, Then, the to-be-switched lens is switched to the position corresponding to the target image sensor in a counterclockwise direction.
可见,将镜头沿顺时方向或逆时针方向旋转的角度进行比较,选择更小的角度进行旋转有利于简化镜头切换过程。It can be seen that comparing the angle of the lens rotating in the clockwise direction or the counterclockwise direction, choosing a smaller angle to rotate is beneficial to simplify the lens switching process.
在一种可能的设计中,镜头切换装置可以确定拍摄参数,所述拍摄参数包括拍摄场景和拍摄模式,再根据拍摄参数确定待切换镜头。In a possible design, the lens switching device may determine shooting parameters, where the shooting parameters include a shooting scene and a shooting mode, and then determine the lens to be switched according to the shooting parameters.
可见,镜头切换装置可以通过确定拍摄参数自动确定待切换镜头。It can be seen that the lens switching device can automatically determine the lens to be switched by determining the shooting parameters.
在一种可能的设计中,镜头切换装置可以输出对所述摄像头模组的模拟界面,并接收用户对所述模拟界面的操作,所述操作为用户将所述目标镜头拖动至所述目标图像传感器对应的位置的拖动操作,或所述操作为对目标镜头的点击操作;再将所述目标镜头确定为待切换镜头。In a possible design, the lens switching device may output an analog interface to the camera module and receive a user's operation on the analog interface. The operation is that the user drags the target lens to the target The drag operation of the position corresponding to the image sensor, or the operation is a click operation on the target lens; and then the target lens is determined as the lens to be switched.
可见,镜头切换装置可以根据用户的选择确定待切换镜头,有利于满足用户的拍摄需求。It can be seen that the lens switching device can determine the lens to be switched according to the user's selection, which is beneficial to satisfy the user's shooting needs.
在一种可能的设计中,镜头切换装置可以输出镜头的选择项,并接收用户对镜头的选择操作;再确定所述选择操作选择的镜头为待切换镜头。In a possible design, the lens switching device may output the selection items of the lens and receive the user's selection operation of the lens; and then determine that the lens selected by the selection operation is the lens to be switched.
可见,镜头切换装置可以根据用户的选择确定待切换镜头,有利于满足用户的拍摄需求。It can be seen that the lens switching device can determine the lens to be switched according to the user's selection, which is beneficial to satisfy the user's shooting needs.
在一种可能的设计中,镜头切换装置在将所述待切换镜头切换到目标图像传感器对应的位置的过程中,可以进行切换提示。In a possible design, the lens switching device may perform switching prompts during the process of switching the to-be-switched lens to the position corresponding to the target image sensor.
可见,通过切换提示,可以更形象地展示镜头切换过程,提升用户的操作体验。It can be seen that through the switching prompt, the camera switching process can be displayed more vividly and the user's operating experience can be improved.
在一种可能的设计中,切换提示包括音频提示和/或震动提示。In one possible design, the switching prompt includes an audio prompt and/or a vibration prompt.
第二方面,本申请实施例提供一种镜头切换装置,该装置具有实现第一方面所提供的镜头切换方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a second aspect, an embodiment of the present application provides a lens switching device, which has the function of implementing the lens switching method provided in the first aspect. This function can be realized by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.
第三方面,本申请实施例提供一种终端设备,该终端设备包括处理器和存储器;该存储器用于存储计算机程序,该处理器执行存储器中存储的计算机程序,以使该终端设备执行第一方面或第一方面中任一种可能实现方式中的方法。In a third aspect, an embodiment of the present application provides a terminal device including a processor and a memory; the memory is used to store a computer program, and the processor executes the computer program stored in the memory, so that the terminal device executes the first Aspect or the method in any possible implementation manner of the first aspect.
第四方面,本申请实施例提供一种可读存储介质,该可读存储介质包括程序或指令,当所述程序或指令在计算机上运行时,使得计算机执行第一方面或第一方面中任一种可能实现方式中的方法。In a fourth aspect, an embodiment of the present application provides a readable storage medium that includes a program or instruction, and when the program or instruction runs on a computer, the computer executes the first aspect or any of the first aspects. One of the possible implementation methods.
上述方面中的芯片系统可以是片上系统(system on chip,SOC),也可以是基带芯片等,其中基带芯片可以包括处理器、信道编码器、数字信号处理器、调制解调器和接口模块等。The chip system in the foregoing aspect may be a system on chip (SOC), or a baseband chip, etc., where the baseband chip may include a processor, a channel encoder, a digital signal processor, a modem, and an interface module.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative work, other drawings can be obtained based on these drawings.
图1是现有技术中提供的一种摄像头模组的示意图;Fig. 1 is a schematic diagram of a camera module provided in the prior art;
图2a是本申请实施例提供的一种摄像头模组的示意图;Figure 2a is a schematic diagram of a camera module provided by an embodiment of the present application;
图2b是本申请实施例提供的另一种摄像头模组的示意图;Figure 2b is a schematic diagram of another camera module provided by an embodiment of the present application;
图2c是本申请实施例提供的另一种摄像头模组的示意图;Figure 2c is a schematic diagram of another camera module provided by an embodiment of the present application;
图3a是本申请实施例提供的另一种摄像头模组的示意图;Figure 3a is a schematic diagram of another camera module provided by an embodiment of the present application;
图3b是本申请实施例提供的另一种摄像头模组的示意图;Figure 3b is a schematic diagram of another camera module provided by an embodiment of the present application;
图4a是本申请实施例提供的另一种摄像头模组的示意图;Figure 4a is a schematic diagram of another camera module provided by an embodiment of the present application;
图4b是本申请实施例提供的另一种摄像头模组的示意图;Figure 4b is a schematic diagram of another camera module provided by an embodiment of the present application;
图5a是现有技术中提供的一种镜头和图像传感器的对应关系图;Figure 5a is a diagram of the correspondence between a lens and an image sensor provided in the prior art;
图5b是本申请实施例提供的一种镜头和图像传感器的对应关系图;FIG. 5b is a diagram of the correspondence between a lens and an image sensor according to an embodiment of the present application;
图6是本申请实施例提供的一种终端设备的结构示意图;FIG. 6 is a schematic structural diagram of a terminal device provided by an embodiment of the present application;
图7a是本申请实施例提供的一种终端设备的软件系统和硬件层的结构示意图;FIG. 7a is a schematic structural diagram of a software system and hardware layer of a terminal device provided by an embodiment of the present application;
图7b是本申请实施例提供的一种终端设备的软硬件处理流程的示意图;FIG. 7b is a schematic diagram of a software and hardware processing flow of a terminal device according to an embodiment of the present application;
图8是本申请实施例提供的一种镜头切换方法的流程示意图;FIG. 8 is a schematic flowchart of a lens switching method provided by an embodiment of the present application;
图9是本申请实施例提供的一种镜头切换方法的应用场景的示意图;FIG. 9 is a schematic diagram of an application scenario of a lens switching method provided by an embodiment of the present application;
图10是本申请实施例提供的另一种镜头切换方法的应用场景的示意图;FIG. 10 is a schematic diagram of an application scenario of another lens switching method provided by an embodiment of the present application;
图11是本申请实施例提供的另一种镜头切换方法的应用场景的示意图;11 is a schematic diagram of an application scenario of another lens switching method provided by an embodiment of the present application;
图12是本申请实施例提供的另一种镜头切换方法的应用场景的示意图;FIG. 12 is a schematic diagram of an application scenario of another lens switching method provided by an embodiment of the present application;
图13是本申请实施例提供的一种镜头切换装置的结构示意图;FIG. 13 is a schematic structural diagram of a lens switching device provided by an embodiment of the present application;
图14是本申请实施例提供的另一种镜头切换装置的结构示意图。FIG. 14 is a schematic structural diagram of another lens switching device provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
随着相机功能越来越受到用户重视,目前的终端设备通常采用多个摄像头的系统设计,来满足不同场景下的拍摄需求,例如,当拍照场景要求视场角更宽阔时,使用广角摄像头进行拍摄;当拍摄目标距离较远时,使用远焦摄像头进行拍摄;当拍摄近距离特写时,使用微距摄像头进行拍摄,以达到拍照体验最优的目的。As the function of the camera attracts more and more attention from users, the current terminal equipment usually adopts a system design of multiple cameras to meet the shooting needs in different scenes. For example, when the shooting scene requires a wider field of view, a wide-angle camera is used. Shooting; when the shooting target is far away, use the telephoto camera to shoot; when shooting close-up close-ups, use the macro camera to shoot to achieve the best shooting experience.
但是,现有的终端设备需要配备多个独立的摄像头来适应不同的场景,即终端设备需要配备多个镜头以及对应数量的图像传感器,如图1所示。该终端设备包括三个独立的摄像头,每个摄像头包括一个镜头及对应的图像传感器。但是采用图1所示的多摄像头方案,将提高终端设备的制造成本,并且该多摄像头方案的可扩展性较差,当已有的多个摄像头均不能满足新的拍摄场景的需求时,可以通过增加摄像头来实现。However, the existing terminal equipment needs to be equipped with multiple independent cameras to adapt to different scenarios, that is, the terminal equipment needs to be equipped with multiple lenses and a corresponding number of image sensors, as shown in Figure 1. The terminal equipment includes three independent cameras, and each camera includes a lens and a corresponding image sensor. However, the use of the multi-camera solution shown in Figure 1 will increase the manufacturing cost of the terminal equipment, and the scalability of the multi-camera solution is poor. When the existing multiple cameras cannot meet the needs of the new shooting scene, you can This is achieved by adding cameras.
为了解决上述问题,本申请实施例提供了一种镜头切换方法及装置,其中,镜头切换装置可以为终端设备或用于终端设备的装置。该镜头切换方法通过解耦合摄像头模组中的图像传感器和镜头之间的固定对应关系,并通过旋转镜头,实现M个镜头和N个图像传感器的自由组合。当M大于N时,可以减少图像传感器的数量,降低终端设备的成本。In order to solve the above problems, the embodiments of the present application provide a lens switching method and device, wherein the lens switching device may be a terminal device or a device for terminal equipment. The lens switching method realizes the free combination of M lenses and N image sensors by decoupling the fixed correspondence between the image sensor and the lens in the camera module, and by rotating the lens. When M is greater than N, the number of image sensors can be reduced and the cost of terminal equipment can be reduced.
该镜头切换方法可以应用于镜头切换装置中,其中,所述镜头切换装置可以为终端设备或用于终端设备的装置。该镜头切换装置包括摄像头模组,所述摄像头模组包括M个镜头、N个图像传感器和一个电机;所述M为大于或等于2的正整数,所述N为大于或等于1的正整数,所述M大于N。也就是说,该摄像头模组中,图像传感器的数量可以小于镜头的数量。该镜头切换装置可以根据用户的拍摄需求将待切换镜头切换至指定位置与图像传感器进行扣合重组,在满足用户的拍摄需求的同时降低终端设备的制造成本。The lens switching method can be applied to a lens switching device, where the lens switching device can be a terminal device or a device used for a terminal device. The lens switching device includes a camera module, the camera module includes M lenses, N image sensors, and a motor; the M is a positive integer greater than or equal to 2, and the N is a positive integer greater than or equal to 1. , The M is greater than N. In other words, in the camera module, the number of image sensors can be less than the number of lenses. The lens switching device can switch the to-be-switched lens to a designated position to be buckled and reassembled with the image sensor according to the user's shooting requirements, and meets the user's shooting requirements while reducing the manufacturing cost of the terminal equipment.
在一种示例中,本申请实施例提供的一种摄像头模组如图2a、图2b和图2c所示,该摄像头模组包括3个镜头和1个图像传感器,即M为3,N为1。本实施例中的图像传感器的位置是固定不变的,3个镜头可以通过电机旋转以实现镜头的切换,当镜头旋转到图 像传感器对应的位置时,完成光轴对齐,使镜头和图像传感器扣合重组。In an example, a camera module provided by an embodiment of the present application is shown in Figures 2a, 2b, and 2c. The camera module includes 3 lenses and 1 image sensor, that is, M is 3 and N is 1. The position of the image sensor in this embodiment is fixed, and the three lenses can be rotated by the motor to realize the switching of the lens. When the lens is rotated to the corresponding position of the image sensor, the optical axis alignment is completed, and the lens and the image sensor are buckled. Reorganization.
在一种可行的实现方式中,3个镜头之间的夹角是保持不变的;各个镜头可以分别沿顺时针或逆时针两种方向旋转,旋转角度至多为90度。如图2a和图2b所示。其中,图2a和图2b示出了电机和图像传感器的两种不同的位置关系,图2a中的电机位于图像传感器的上方,图2b中的电机位于图像传感器的下方。以图2a为例,镜头2可以沿逆时针方旋转至图像传感器对应的位置,同时镜头1和镜头3也沿逆时针旋转。In a feasible implementation manner, the included angle between the three lenses remains unchanged; each lens can be rotated in two directions clockwise or counterclockwise, and the rotation angle is at most 90 degrees. As shown in Figure 2a and Figure 2b. Figures 2a and 2b show two different positional relationships between the motor and the image sensor. The motor in Figure 2a is located above the image sensor, and the motor in Figure 2b is located below the image sensor. Taking FIG. 2a as an example, the lens 2 can be rotated counterclockwise to the position corresponding to the image sensor, and the lens 1 and the lens 3 can also be rotated counterclockwise.
在另一种可行的实现方式中,3个镜头之间的夹角可以是变化的。如图2c所示,各个镜头均可以360度全向旋转,且3个镜头之间的夹角可以是变化的,则镜头2可以沿顺时针旋转至图像传感器对应的位置,而镜头1和镜头3的位置可以是不变的。可以理解的是,本实施例所示的多个镜头均可以独立地平行放置,不影响整机厚度。In another feasible implementation manner, the angle between the three lenses can be changed. As shown in Figure 2c, each lens can rotate 360 degrees omnidirectionally, and the angle between the three lenses can be changed, then lens 2 can be rotated clockwise to the position corresponding to the image sensor, and lens 1 and lens The position of 3 can be constant. It is understandable that the multiple lenses shown in this embodiment can all be independently placed in parallel without affecting the thickness of the whole machine.
在一种示例中,本申请实施例提供的另一种摄像头模组如图3a和图3b所示,该摄像头模组包括5个镜头和2个图像传感器,即M为5,N为2。该示例中,图像传感器的位置是固定不变的,5个镜头可以通过电机旋转以实现镜头的切换,各个镜头均可以360度全向旋转。In an example, another camera module provided by an embodiment of the present application is shown in FIGS. 3a and 3b. The camera module includes 5 lenses and 2 image sensors, that is, M is 5 and N is 2. In this example, the position of the image sensor is fixed, the 5 lenses can be rotated by a motor to realize the switching of the lenses, and each lens can be rotated 360 degrees in an omni-directional manner.
在一种可行的实现方式中,5个镜头的之间的夹角可以是不变的。例如,镜头2对应的图像传感器为传感器1,镜头3对应的图像传感器为传感器2,则镜头2可以沿顺时针方向旋转至传感器1对应的位置,镜头3可以沿顺时针方向旋转至传感器2对应的位置,其他镜头也对应地旋转,如图3a所示。In a feasible implementation manner, the angle between the five lenses may be constant. For example, the image sensor corresponding to lens 2 is sensor 1, and the image sensor corresponding to lens 3 is sensor 2, then lens 2 can be rotated clockwise to the position corresponding to sensor 1, and lens 3 can be rotated clockwise to sensor 2 The other lenses also rotate correspondingly, as shown in Figure 3a.
在另一种可行的实现方式中,5个镜头之间的夹角可以改变。例如,镜头2可以沿顺时针方向旋转至传感器1对应的位置,镜头3可以沿顺时针方向旋转至传感器2对应的位置,其他镜头的位置保持不变,如图3b所示。可以理解的是,本实施例提供的摄像头模组可以同时支持N个图像传感器匹配镜头出图,实现对应的功能(如画中画功能等)。In another feasible implementation, the angle between the five lenses can be changed. For example, the lens 2 can be rotated in a clockwise direction to the position corresponding to the sensor 1, and the lens 3 can be rotated in a clockwise direction to the position corresponding to the sensor 2, and the positions of other lenses remain unchanged, as shown in FIG. 3b. It is understandable that the camera module provided in this embodiment can support N image sensors to match the lens to produce images at the same time to achieve corresponding functions (such as picture-in-picture functions, etc.).
需要说明的是,本实施例提供的一种摄像头模组中的镜头和图像传感器还可以是按行或列排列,举例来说,摄像头模组包括2个镜头和一个图像传感器,各个镜头和图像传感器按行排列(如从左到右排列),如图4a所示。该摄像头模组进行镜头切换时各个镜头或待切换镜头水平向左或向右移动至图像传感器对应的位置,例如,图4a中的镜头1可以水平向右移动至图像传感器对应的位置。It should be noted that the lenses and image sensors in a camera module provided in this embodiment may also be arranged in rows or columns. For example, the camera module includes two lenses and an image sensor. The sensors are arranged in rows (such as from left to right), as shown in Figure 4a. When the camera module performs lens switching, each lens or the to-be-switched lens moves horizontally to the left or right to the position corresponding to the image sensor. For example, the lens 1 in FIG. 4a can move horizontally to the right to the position corresponding to the image sensor.
举例来说,摄像头模组包括3个镜头和一个图像传感器,各个镜头和图像传感器按列排列(如从上到下排列),如图4b所示。该摄像头模组进行镜头切换时各个镜头或待切换镜头竖直向上或向下移动至图像传感器对应的位置,例如,图4b中的镜头1可以竖直向上移动至图像传感器对应的位置。For example, the camera module includes three lenses and one image sensor, and each lens and image sensor are arranged in a row (such as from top to bottom), as shown in FIG. 4b. When the camera module performs lens switching, each lens or the to-be-switched lens moves vertically upward or downward to the position corresponding to the image sensor. For example, the lens 1 in FIG. 4b can be moved vertically upward to the position corresponding to the image sensor.
需要说明的是,本实施例提供的一种摄像头模组可以实现镜头和图像传感器的动态匹配,并且可以实现图像传感器的数量少于镜头的数量以降低设备成本。并且当图像传感器数量减少时,终端设备可以选择安装图像分辨率较高的图像传感器,那么不同的镜头均可以与图像分辨率较高的图像传感器进行匹配,从而也提高相机的拍摄质量。It should be noted that the camera module provided in this embodiment can realize dynamic matching of lenses and image sensors, and can realize that the number of image sensors is less than the number of lenses to reduce equipment cost. And when the number of image sensors is reduced, the terminal device can choose to install an image sensor with a higher image resolution, then different lenses can be matched with the image sensor with a higher image resolution, thereby also improving the shooting quality of the camera.
例如,图1所示的多摄像头方案中,由于每个摄像头均为独立的摄像头,在考虑终端设备的制造成本时,不会为每个镜头都匹配图像分辨率较高的图像传感器。如图5a所示,中焦镜头对应的图像传感器的图像分辨率最高,广角镜头对应的图像传感器的图像分辨率 次之,远焦镜头对应的图像传感器的图像分辨率最低。For example, in the multi-camera solution shown in FIG. 1, since each camera is an independent camera, when considering the manufacturing cost of the terminal device, an image sensor with a higher image resolution will not be matched for each lens. As shown in Figure 5a, the image sensor corresponding to the medium-focus lens has the highest image resolution, the image sensor corresponding to the wide-angle lens has the second highest image resolution, and the image sensor corresponding to the tele-focus lens has the lowest image resolution.
又例如,图2a至图2c所示的摄像头模组包括3个镜头和1个图像传感器,其中,该图像传感器可以是图像分辨率较高的图像传感器,当任意一个镜头切换至该图像传感器对应的位置时,均可以与该图像传感器扣合重组以实现拍摄功能。如图5b所示,3个镜头都可以与该图像传感器匹配出图,有利于提高相机的拍摄质量。For another example, the camera module shown in FIGS. 2a to 2c includes 3 lenses and 1 image sensor, where the image sensor may be an image sensor with a higher image resolution. When any lens is switched to the image sensor corresponding It can be combined with the image sensor to realize the shooting function. As shown in Figure 5b, all three lenses can be matched with the image sensor to produce a picture, which is beneficial to improve the shooting quality of the camera.
本实施例所述的终端设备可以是一种具有无线收发功能的设备,可以部署在陆地上,包括室内或室外、手持、穿戴或车载;也可以部署在水面上(如轮船等);还可以部署在空中(例如飞机、气球和卫星上等)。所述终端设备可以是手机(mobile phone)、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、车载终端设备、无人驾驶(self driving)中的无线终端、远程医疗(remote medical)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端、可穿戴终端设备等等。本申请的实施例对应用场景不做限定。终端设备也可以称为用户设备(user equipment,UE)、接入终端设备、车载终端、工业控制终端、UE单元、UE站、移动站、移动台、远方站、远程终端设备、移动设备、UE终端设备、终端设备、无线通信设备、UE代理或UE装置等。终端也可以是固定的或者移动的。本申请的终端设备还可以是作为一个或多个部件或者单元而内置于车辆的车载模块、车载模组、车载部件、车载芯片或者车载单元,车辆通过内置的所述车载模块、车载模组、车载部件、车载芯片或者车载单元可以实施本申请的方法。The terminal device described in this embodiment can be a device with a wireless transceiver function, which can be deployed on land, including indoor or outdoor, handheld, wearable, or vehicle-mounted; it can also be deployed on water (such as ships); Deploy in the air (for example, on airplanes, balloons, satellites, etc.). The terminal device may be a mobile phone (mobile phone), a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, an industrial control ( Wireless terminals in industrial control, in-vehicle terminal equipment, wireless terminals in self-driving, wireless terminals in remote medical, wireless terminals in smart grid, transportation safety (transportation) Wireless terminals in safety), wireless terminals in smart cities, wireless terminals in smart homes, wearable terminal devices, and so on. The embodiment of this application does not limit the application scenario. Terminal equipment can also be called user equipment (UE), access terminal equipment, vehicle-mounted terminal, industrial control terminal, UE unit, UE station, mobile station, mobile station, remote station, remote terminal equipment, mobile equipment, UE Terminal equipment, terminal equipment, wireless communication equipment, UE agent or UE device, etc. The terminal can also be fixed or mobile. The terminal device of the present application may also be an on-board module, on-board module, on-board component, on-board chip, or on-board unit built into a vehicle as one or more components or units. The vehicle passes through the built-in on-board module, on-board module, An on-board component, on-board chip, or on-board unit can implement the method of the present application.
为了方便说明,在以下实施例中,以终端设备为手机为例进行说明。For the convenience of description, in the following embodiments, the terminal device is a mobile phone as an example for description.
本申请实施例提供一种终端设备的结构示意图,请参见图6,该终端设备600的结构示意图,其中,终端设备600可以包括处理器610,外部存储器接口620,内部存储器621,通用串行总线(universal serial bus,USB)接口630,充电管理模块640,电源管理模块641,电池642,天线1,天线2,移动通信模块650,无线通信模块660,音频模块670,扬声器670A,受话器670B,麦克风670C,耳机接口670D,传感器模块680,按键690,马达691,指示器692,摄像头693,显示屏694,以及用户标识模块(subscriber identification module,SIM)卡接口695等。其中传感器模块680可以包括压力传感器680A,陀螺仪传感器680B,气压传感器680C,磁传感器680D,加速度传感器680E,距离传感器680F,接近光传感器680G,指纹传感器680H,温度传感器680J,触摸传感器680K,环境光传感器680L,骨传导传感器680M等。The embodiment of the present application provides a schematic structural diagram of a terminal device. Please refer to FIG. 6, which is a schematic structural diagram of the terminal device 600. The terminal device 600 may include a processor 610, an external memory interface 620, an internal memory 621, and a universal serial bus. (universal serial bus, USB) interface 630, charging management module 640, power management module 641, battery 642, antenna 1, antenna 2, mobile communication module 650, wireless communication module 660, audio module 670, speaker 670A, receiver 670B, microphone 670C, headphone interface 670D, sensor module 680, buttons 690, motor 691, indicator 692, camera 693, display screen 694, subscriber identification module (subscriber identification module, SIM) card interface 695, etc. The sensor module 680 can include pressure sensor 680A, gyroscope sensor 680B, air pressure sensor 680C, magnetic sensor 680D, acceleration sensor 680E, distance sensor 680F, proximity light sensor 680G, fingerprint sensor 680H, temperature sensor 680J, touch sensor 680K, ambient light Sensor 680L, bone conduction sensor 680M, etc.
可以理解的是,本申请实施例示意的结构并不构成对终端设备600的具体限定。在本申请另一些实施例中,终端设备600可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 600. In other embodiments of the present application, the terminal device 600 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
处理器610可以包括一个或多个处理单元,例如:处理器610可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器 (digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 610 may include one or more processing units. For example, the processor 610 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc. Among them, the different processing units may be independent devices or integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器610中还可以设置存储器,用于存储指令和数据。在一种实施例中,处理器610中的存储器为高速缓冲存储器。该存储器可以保存处理器610刚用过或循环使用的指令或数据。如果处理器610需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器610的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 610 to store instructions and data. In an embodiment, the memory in the processor 610 is a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 610. If the processor 610 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 610 is reduced, and the efficiency of the system is improved.
在一种实施例中,处理器610可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In an embodiment, the processor 610 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface. receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一种实施例中,处理器610可以包含多组I2C总线。处理器610可以通过不同的I2C总线接口分别耦合触摸传感器680K,充电器,闪光灯,摄像头693等。例如:处理器610可以通过I2C接口耦合触摸传感器680K,使处理器610与触摸传感器680K通过I2C总线接口通信,实现终端设备600的触摸功能。The I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In an embodiment, the processor 610 may include multiple sets of I2C buses. The processor 610 may couple the touch sensor 680K, charger, flash, camera 693, etc., respectively through different I2C bus interfaces. For example, the processor 610 may couple the touch sensor 680K through an I2C interface, so that the processor 610 and the touch sensor 680K communicate through the I2C bus interface to realize the touch function of the terminal device 600.
I2S接口可以用于音频通信。在一种实施例中,处理器610可以包含多组I2S总线。处理器610可以通过I2S总线与音频模块670耦合,实现处理器610与音频模块670之间的通信。在一种实施例中,音频模块670可以通过I2S接口向无线通信模块660传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In an embodiment, the processor 610 may include multiple sets of I2S buses. The processor 610 may be coupled with the audio module 670 through an I2S bus to implement communication between the processor 610 and the audio module 670. In an embodiment, the audio module 670 may transmit audio signals to the wireless communication module 660 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一种实施例中,音频模块670与无线通信模块660可以通过PCM总线接口耦合。在一种实施例中,音频模块670也可以通过PCM接口向无线通信模块660传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. In an embodiment, the audio module 670 and the wireless communication module 660 may be coupled through a PCM bus interface. In an embodiment, the audio module 670 may also transmit audio signals to the wireless communication module 660 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一种实施例中,UART接口通常被用于连接处理器610与无线通信模块660。例如:处理器610通过UART接口与无线通信模块660中的蓝牙模块通信,实现蓝牙功能。在一种实施例中,音频模块670可以通过UART接口向无线通信模块660传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication. In an embodiment, the UART interface is usually used to connect the processor 610 and the wireless communication module 660. For example, the processor 610 communicates with the Bluetooth module in the wireless communication module 660 through the UART interface to implement the Bluetooth function. In an embodiment, the audio module 670 may transmit audio signals to the wireless communication module 660 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器610与显示屏694,摄像头693等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一种实施例中,处理器610和摄像头693通过CSI接口通信,实现终端设备600的拍摄功能。处理器610和显示屏694通过DSI接口通信,实现终端设备600 的显示功能。The MIPI interface can be used to connect the processor 610 with the display screen 694, the camera 693 and other peripheral devices. The MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc. In an embodiment, the processor 610 and the camera 693 communicate through a CSI interface to implement the shooting function of the terminal device 600. The processor 610 and the display screen 694 communicate through the DSI interface to realize the display function of the terminal device 600.
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一种实施例中,GPIO接口可以用于连接处理器610与摄像头693,显示屏694,无线通信模块660,音频模块670,传感器模块680等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In an embodiment, the GPIO interface may be used to connect the processor 610 with the camera 693, the display screen 694, the wireless communication module 660, the audio module 670, the sensor module 680, and so on. GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口630是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口630可以用于连接充电器为终端设备600充电,也可以用于终端设备600与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他终端设备,例如AR设备等。The USB interface 630 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 630 can be used to connect a charger to charge the terminal device 600, and can also be used to transfer data between the terminal device 600 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. This interface can also be used to connect to other terminal devices, such as AR devices.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端设备600的结构限定。在本申请另一些实施例中,终端设备600也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic description, and does not constitute a structural limitation of the terminal device 600. In other embodiments of the present application, the terminal device 600 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
充电管理模块640用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一种有线充电的实施例中,充电管理模块640可以通过USB接口630接收有线充电器的充电输入。在一种无线充电的实施例中,充电管理模块640可以通过终端设备600的无线充电线圈接收无线充电输入。充电管理模块640为电池642充电的同时,还可以通过电源管理模块641为终端设备供电。The charging management module 640 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In an embodiment of wired charging, the charging management module 640 may receive the charging input of the wired charger through the USB interface 630. In an embodiment of wireless charging, the charging management module 640 may receive the wireless charging input through the wireless charging coil of the terminal device 600. While charging the battery 642, the charging management module 640 can also supply power to the terminal device through the power management module 641.
电源管理模块641用于连接电池642,充电管理模块640与处理器610。电源管理模块641接收电池642和/或充电管理模块640的输入,为处理器610,内部存储器621,显示屏694,摄像头693,和无线通信模块660等供电。电源管理模块641还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在一种实施例中,电源管理模块641也可以设置于处理器610中。在另一种实施例中,电源管理模块641和充电管理模块640也可以设置于同一个器件中。The power management module 641 is used to connect the battery 642, the charging management module 640 and the processor 610. The power management module 641 receives input from the battery 642 and/or the charge management module 640, and supplies power to the processor 610, the internal memory 621, the display screen 694, the camera 693, and the wireless communication module 660. The power management module 641 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In an embodiment, the power management module 641 may also be provided in the processor 610. In another embodiment, the power management module 641 and the charging management module 640 may also be provided in the same device.
终端设备600的无线通信功能可以通过天线1,天线2,移动通信模块650,无线通信模块660,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal device 600 can be implemented by the antenna 1, the antenna 2, the mobile communication module 650, the wireless communication module 660, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。终端设备600中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal device 600 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块650可以提供应用在终端设备600上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块650可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(lownoise amplifier,LNA)等。移动通信模块650可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块650还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一种实施例中,移动通信模块650的至少部分功能模块可以被设置于处理器610中。在一种实施例中,移动通信模块650的至少部分功能模块可以与处理器610的至少部分模块被设置在同一个器件中。The mobile communication module 650 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the terminal device 600. The mobile communication module 650 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 650 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 650 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1. In an embodiment, at least part of the functional modules of the mobile communication module 650 may be provided in the processor 610. In an embodiment, at least part of the functional modules of the mobile communication module 650 and at least part of the modules of the processor 610 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器 将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器670A,受话器670B等)输出声音信号,或通过显示屏694显示图像或视频。在一种实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器610,与移动通信模块650或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then passed to the application processor. The application processor outputs sound signals through audio equipment (not limited to the speaker 670A, the receiver 670B, etc.), or displays images or videos through the display screen 694. In an embodiment, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 610 and be provided in the same device as the mobile communication module 650 or other functional modules.
无线通信模块660可以提供应用在终端设备600上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块660可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块660经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器610。无线通信模块660还可以从处理器610接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 660 can provide applications on the terminal device 600 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 660 may be one or more devices integrating at least one communication processing module. The wireless communication module 660 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 610. The wireless communication module 660 may also receive the signal to be sent from the processor 610, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
在一种实施例中,终端设备600的天线1和移动通信模块650耦合,天线2和无线通信模块660耦合,使得终端设备600可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In an embodiment, the antenna 1 of the terminal device 600 is coupled with the mobile communication module 650, and the antenna 2 is coupled with the wireless communication module 660, so that the terminal device 600 can communicate with the network and other devices through wireless communication technology. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
终端设备600通过GPU,显示屏694,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏694和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器610可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal device 600 implements a display function through a GPU, a display screen 694, and an application processor. The GPU is a microprocessor for image processing, connected to the display 694 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 610 may include one or more GPUs, which execute program instructions to generate or change display information.
显示屏694用于显示图像,视频等,其中,显示屏694包括显示面板,显示屏具体可以包括折叠屏、异形屏等,显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一种实施例中,终端设备600可以包括1个或N个显示屏694,N为大于1的正整数。The display screen 694 is used to display images, videos, etc. The display screen 694 includes a display panel. The display screen may specifically include a folding screen, a special-shaped screen, etc. The display panel may use a liquid crystal display (LCD), organic light emitting diode (organic light-emitting diode, OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (AMOLED), flexible light-emitting diode (FLED) ), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc. In an embodiment, the terminal device 600 may include one or N display screens 694, and N is a positive integer greater than one.
终端设备600可以通过ISP,摄像头模组693,视频编解码器,GPU,显示屏694以及应用处理器等实现拍摄功能,其中,摄像头模组693可以包括镜头和图像传感器。The terminal device 600 can realize a shooting function through an ISP, a camera module 693, a video codec, a GPU, a display screen 694, and an application processor. The camera module 693 can include a lens and an image sensor.
例如,拍照时,打开快门,光线通过镜头被传递到图像传感器上,图像传感器可以将光信号转换为电信号,并将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可 以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。For example, when taking a picture, the shutter is opened, and light is transmitted to the image sensor through the lens. The image sensor can convert the light signal into an electric signal, and transfer the electric signal to the ISP for processing, and convert it into an image visible to the naked eye. ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
其中,镜头用于获取静态图像或视频,物体通过镜头生成光学图像投射到图像传感器,图像传感器可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。图像传感器把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。Among them, the lens is used to obtain a static image or video, and the object generates an optical image through the lens and is projected to the image sensor. The image sensor can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor. CMOS) phototransistor. The image sensor converts the light signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当终端设备600在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal device 600 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。终端设备600可以支持一种或多种视频编解码器。这样,终端设备600可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The terminal device 600 may support one or more video codecs. In this way, the terminal device 600 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现终端设备600的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, for example, the transfer mode between human brain neurons, it can quickly process input information and can continuously learn by itself. The NPU can realize applications such as intelligent cognition of the terminal device 600, such as image recognition, face recognition, voice recognition, text understanding, and so on.
外部存储器接口620可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备600的存储能力。外部存储卡通过外部存储器接口620与处理器610通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 620 may be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the terminal device 600. The external memory card communicates with the processor 610 through the external memory interface 620 to realize the data storage function. For example, save music, video and other files in an external memory card.
内部存储器621可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器621可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端设备600使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器621可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器610通过运行存储在内部存储器621的指令,和/或存储在设置于处理器中的存储器的指令,执行终端设备600的各种功能应用以及数据处理。The internal memory 621 may be used to store computer executable program code, where the executable program code includes instructions. The internal memory 621 may include a program storage area and a data storage area. Among them, the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function. The data storage area can store data (such as audio data, phone book, etc.) created during the use of the terminal device 600. In addition, the internal memory 621 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, a universal flash storage (UFS), and the like. The processor 610 executes various functional applications and data processing of the terminal device 600 by running instructions stored in the internal memory 621 and/or instructions stored in a memory provided in the processor.
终端设备600可以通过音频模块670,扬声器670A,受话器670B,麦克风670C,耳机接口670D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal device 600 can implement audio functions through an audio module 670, a speaker 670A, a receiver 670B, a microphone 670C, a headset interface 670D, and an application processor. For example, music playback, recording, etc.
音频模块670用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块670还可以用于对音频信号编码和解码。在一种实施例中,音频模块670可以设置于处理器610中,或将音频模块670的部分功能模块设置于处理器610中。The audio module 670 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 670 can also be used to encode and decode audio signals. In an embodiment, the audio module 670 may be disposed in the processor 610, or part of the functional modules of the audio module 670 may be disposed in the processor 610.
扬声器670A,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备600可以通过扬声器670A收听音乐,或收听免提通话。The speaker 670A, also called "speaker", is used to convert audio electrical signals into sound signals. The terminal device 600 can listen to music through the speaker 670A, or listen to a hands-free call.
受话器670B,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备600接听电话或语音信息时,可以通过将受话器670B靠近人耳接听语音。The receiver 670B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the terminal device 600 answers a call or voice message, it can receive the voice by bringing the receiver 670B close to the human ear.
麦克风670C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风670C发声,将声音信号输入到麦克风670C。终端设备600可以设置至少一个麦克风670C。在另一些实施例中,终端设备600可以设置两个麦克风670C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端设备600还可以设置三个,四个或更多麦克风670C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。 Microphone 670C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 670C through the human mouth, and input the sound signal into the microphone 670C. The terminal device 600 may be provided with at least one microphone 670C. In other embodiments, the terminal device 600 may be provided with two microphones 670C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the terminal device 600 may also be provided with three, four or more microphones 670C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
耳机接口670D用于连接有线耳机。耳机接口670D可以是USB接口630,也可以是3.5mm的开放移动终端设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 670D is used to connect wired earphones. The earphone interface 670D may be a USB interface 630, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
压力传感器680A用于感受压力信号,可以将压力信号转换成电信号。在一种实施例中,压力传感器680A可以设置于显示屏694。压力传感器680A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器680A,电极之间的电容改变。终端设备600根据电容的变化确定压力的强度。当有触摸操作作用于显示屏694,终端设备600根据压力传感器680A检测所述触摸操作强度。终端设备600也可以根据压力传感器680A的检测信号计算触摸的位置。在一种实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 680A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In an embodiment, the pressure sensor 680A may be provided on the display screen 694. There are many types of pressure sensor 680A, such as resistive pressure sensor, inductive pressure sensor, capacitive pressure sensor and so on. The capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 680A, the capacitance between the electrodes changes. The terminal device 600 determines the strength of the pressure according to the change in capacitance. When a touch operation acts on the display screen 694, the terminal device 600 detects the intensity of the touch operation according to the pressure sensor 680A. The terminal device 600 may also calculate the touched position according to the detection signal of the pressure sensor 680A. In an embodiment, touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
陀螺仪传感器680B可以用于确定终端设备600的运动姿态。在一种实施例中,可以通过陀螺仪传感器680B确定终端设备600围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器680B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器680B检测终端设备600抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消终端设备600的抖动,实现防抖。陀螺仪传感器680B还可以用于导航,体感游戏场景。The gyro sensor 680B may be used to determine the motion posture of the terminal device 600. In an embodiment, the angular velocity of the terminal device 600 around three axes (ie, x, y, and z axes) can be determined by the gyroscope sensor 680B. The gyro sensor 680B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyroscope sensor 680B detects the shaking angle of the terminal device 600, and calculates the distance that the lens module needs to compensate according to the angle, so that the lens can counteract the shaking of the terminal device 600 through reverse movement to achieve anti-shake. The gyro sensor 680B can also be used for navigation and somatosensory game scenes.
气压传感器680C用于测量气压。在一种实施例中,终端设备600通过气压传感器680C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 680C is used to measure air pressure. In an embodiment, the terminal device 600 calculates the altitude based on the air pressure value measured by the air pressure sensor 680C, and assists positioning and navigation.
磁传感器680D包括霍尔传感器。终端设备600可以利用磁传感器680D检测翻盖皮套的开合。在一种实施例中,当终端设备600是翻盖机时,终端设备600可以根据磁传感器680D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 680D includes a Hall sensor. The terminal device 600 may use the magnetic sensor 680D to detect the opening and closing of the flip holster. In an embodiment, when the terminal device 600 is a flip machine, the terminal device 600 can detect the opening and closing of the flip according to the magnetic sensor 680D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器680E可检测终端设备600在各个方向上(一般为三轴)加速度的大小。当终端设备600静止时可检测出重力的大小及方向。还可以用于识别终端设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 680E can detect the magnitude of the acceleration of the terminal device 600 in various directions (generally three axes). When the terminal device 600 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the terminal device, and is used in applications such as horizontal and vertical screen switching, and pedometer.
距离传感器680F,用于测量距离。终端设备600可以通过红外或激光测量距离。在一种实施例中,拍摄场景,终端设备600可以利用距离传感器680F测距以实现快速对焦。Distance sensor 680F, used to measure distance. The terminal device 600 can measure the distance by infrared or laser. In an embodiment, for shooting a scene, the terminal device 600 may use the distance sensor 680F to measure the distance to achieve rapid focusing.
接近光传感器680G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。终端设备600通过发光二极管向外发射红外光。终端 设备600使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定终端设备600附近有物体。当检测到不充分的反射光时,终端设备600可以确定终端设备600附近没有物体。终端设备600可以利用接近光传感器680G检测用户手持终端设备600贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器680G也可用于皮套模式,口袋模式自动解锁与锁屏。The proximity light sensor 680G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode. The light emitting diode may be an infrared light emitting diode. The terminal device 600 emits infrared light to the outside through the light emitting diode. The terminal device 600 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 600. When insufficient reflected light is detected, the terminal device 600 can determine that there is no object near the terminal device 600. The terminal device 600 can use the proximity light sensor 680G to detect that the user holds the terminal device 600 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 680G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
环境光传感器680L用于感知环境光亮度。终端设备600可以根据感知的环境光亮度自适应调节显示屏694亮度。环境光传感器680L也可用于拍照时自动调节白平衡。环境光传感器680L还可以与接近光传感器680G配合,检测终端设备600是否在口袋里,以防误触。The ambient light sensor 680L is used to sense the brightness of the ambient light. The terminal device 600 can adaptively adjust the brightness of the display screen 694 according to the perceived brightness of the ambient light. The ambient light sensor 680L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 680L can also cooperate with the proximity light sensor 680G to detect whether the terminal device 600 is in the pocket to prevent accidental touch.
指纹传感器680H用于采集指纹。终端设备600可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 680H is used to collect fingerprints. The terminal device 600 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
温度传感器680J用于检测温度。在一种实施例中,终端设备600利用温度传感器680J检测的温度,执行温度处理策略。例如,当温度传感器680J上报的温度超过阈值,终端设备600执行降低位于温度传感器680J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,终端设备600对电池642加热,以避免低温导致终端设备600异常关机。在其他一些实施例中,当温度低于又一阈值时,终端设备600对电池642的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 680J is used to detect temperature. In an embodiment, the terminal device 600 uses the temperature detected by the temperature sensor 680J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 680J exceeds a threshold value, the terminal device 600 executes to reduce the performance of the processor located near the temperature sensor 680J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the terminal device 600 heats the battery 642 to avoid abnormal shutdown of the terminal device 600 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the terminal device 600 boosts the output voltage of the battery 642 to avoid abnormal shutdown caused by low temperature.
触摸传感器680K,也称“触控器件”。触摸传感器680K可以设置于显示屏694,由触摸传感器680K与显示屏694组成触摸屏,也称“触控屏”。触摸传感器680K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏694提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器680K也可以设置于终端设备600的表面,与显示屏694所处的位置不同。The touch sensor 680K is also called "touch device". The touch sensor 680K can be arranged on the display screen 694, and the touch screen is composed of the touch sensor 680K and the display screen 694, which is also called a “touch screen”. The touch sensor 680K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. The visual output related to the touch operation can be provided through the display screen 694. In other embodiments, the touch sensor 680K may also be disposed on the surface of the terminal device 600, which is different from the position of the display screen 694.
骨传导传感器680M可以获取振动信号。在一种实施例中,骨传导传感器680M可以获取人体声部振动骨块的振动信号。骨传导传感器680M也可以接触人体脉搏,接收血压跳动信号。在一种实施例中,骨传导传感器680M也可以设置于耳机中,结合成骨传导耳机。音频模块670可以基于所述骨传导传感器680M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器680M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 680M can acquire vibration signals. In an embodiment, the bone conduction sensor 680M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 680M can also contact the human pulse and receive blood pressure pulse signals. In an embodiment, the bone conduction sensor 680M may also be provided in the earphone, combined with the bone conduction earphone. The audio module 670 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 680M, and realize the voice function. The application processor may analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 680M, and realize the heart rate detection function.
按键690包括开机键,音量键等。按键690可以是机械按键。也可以是触摸式按键。终端设备600可以接收按键输入,产生与终端设备600的用户设置以及功能控制有关的键信号输入。The button 690 includes a power button, a volume button and so on. The button 690 may be a mechanical button. It can also be a touch button. The terminal device 600 may receive key input, and generate key signal input related to user settings and function control of the terminal device 600.
马达691可以产生振动提示。马达691可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏694不同区域的触摸操作,马达691也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 691 can generate vibration prompts. The motor 691 can be used for incoming call vibrating prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as photographing, audio playback, etc.) can correspond to different vibration feedback effects. Acting on touch operations in different areas of the display screen 694, the motor 691 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminding, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器692可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 692 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, and so on.
SIM卡接口695用于连接SIM卡。SIM卡可以通过插入SIM卡接口695,或从SIM卡 接口695拔出,实现和终端设备600的接触和分离。终端设备600可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口695可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口695可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口695也可以兼容不同类型的SIM卡。SIM卡接口695也可以兼容外部存储卡。终端设备600通过SIM卡和网络交互,实现通话以及数据通信等功能。在一种实施例中,终端设备600采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端设备600中,不能和终端设备600分离。The SIM card interface 695 is used to connect to the SIM card. The SIM card can be inserted into the SIM card interface 695 or pulled out from the SIM card interface 695 to achieve contact and separation with the terminal device 600. The terminal device 600 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 695 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. The same SIM card interface 695 can insert multiple cards at the same time. The types of the multiple cards can be the same or different. The SIM card interface 695 can also be compatible with different types of SIM cards. The SIM card interface 695 can also be compatible with external memory cards. The terminal device 600 interacts with the network through the SIM card to implement functions such as call and data communication. In an embodiment, the terminal device 600 adopts eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the terminal device 600 and cannot be separated from the terminal device 600.
以下对终端设备的软件系统和硬件层进行详细介绍,请参见图7a,本实施例中的终端设备的软件系统可以采用分层架构,从上至下分别为应用程序层,应用程序框架层和内核层。The following is a detailed introduction to the software system and hardware layer of the terminal device. Please refer to Figure 7a. The software system of the terminal device in this embodiment can adopt a layered architecture. From top to bottom, they are the application layer, application framework layer and The core layer.
应用程序层可以包括一系列应用程序包。如图7a所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。The application layer can include a series of application packages. As shown in Figure 7a, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。如图7a所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器、系统应用程序接口等。The application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 7a, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and a system application program interface.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。The content provider is used to store and retrieve data and make these data accessible to applications. The data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text and controls that display pictures. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
电话管理器用于提供终端设备的通信功能。例如通话状态的管理(包括接通,挂断等)。The telephone manager is used to provide the communication function of the terminal device. For example, the management of the call status (including connecting, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, in the status bar to prompt text information, sound a prompt tone, terminal equipment vibration, flashing lights, etc.
系统应用程序接口(API)又称为应用编程接口,是一组定义、程序及协议的集合,通过API接口实现计算机软件之间的相互通信。API的一个主要功能是提供通用功能集。API同时也是一种中间件,为各种不同平台提供数据共享。System Application Programming Interface (API), also known as application programming interface, is a collection of definitions, procedures and protocols, through which the mutual communication between computer software is realized. One of the main functions of the API is to provide a common set of functions. API is also a kind of middleware, providing data sharing for various platforms.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
内核层是硬件和软件之间的层。内核层可以包括镜头旋转驱动,图像数据驱动,显示驱动,传感器驱动,音频驱动,和马达驱动等。通过驱动程序,可以驱动对应的硬件设备正常工作,例如,镜头旋转驱动用于驱动硬件层的电机或手动触发开关完成镜头的切换。The kernel layer is the layer between hardware and software. The core layer can include lens rotation drive, image data drive, display drive, sensor drive, audio drive, and motor drive. Through the driver program, the corresponding hardware device can be driven to work normally, for example, the lens rotation drive is used to drive the motor of the hardware layer or manually trigger the switch to complete the lens switch.
本实施例中的硬件层可以包括多种器件,例如,电机,手动触发开关,马达器件、音频器件,图像传感器和镜头等。各个器件用于执行对应的功能,例如,镜头和图像传感器扣合重组后可以实现拍摄功能,音频器件可以播放提示音等。The hardware layer in this embodiment may include multiple devices, for example, motors, manual trigger switches, motor devices, audio devices, image sensors, and lenses. Each device is used to perform the corresponding function, for example, the lens and the image sensor can be combined to realize the shooting function, and the audio device can play the prompt sound.
结合上述对软件系统和硬件层的描述,详细介绍本实施例所述的一种镜头切换方法在终端设备的中的软硬件处理流程,如图7b所示,具体可以包括以下步骤:Combining the above description of the software system and the hardware layer, the software and hardware processing flow of the lens switching method described in this embodiment in the terminal device is introduced in detail, as shown in FIG. 7b, which may specifically include the following steps:
根据用户的拍摄需求,可以使应用层的相机应用程序调用相机设备控制模块,下发镜头切换控制流;According to the user's shooting needs, the camera application of the application layer can call the camera device control module to issue the lens switching control flow;
应用程序框架层接收应用层下发的镜头切换控制流,通过调用API将所述镜头切换控制流传输至内核层;The application framework layer receives the lens switching control flow issued by the application layer, and transmits the lens switching control flow to the kernel layer by calling the API;
内核层的镜头切换驱动程序接收所述镜头切换控制流,生成切换控制信号以控制电机或手动触发开关旋转镜头;The lens switching driver program of the kernel layer receives the lens switching control flow, and generates a switching control signal to control a motor or manually trigger a switch to rotate the lens;
硬件层的电机或手动触发开关接收所述切换控制信号,电机或手动触发开关启动运行,使待切换镜头旋转至目标图像传感器对应的位置。The motor or the manual trigger switch of the hardware layer receives the switching control signal, and the motor or the manual trigger switch starts to run to rotate the to-be-switched lens to the position corresponding to the target image sensor.
其中,相机应用程序包括相机设备控制模块和相机数据流模块,相机设备控制模块用于控制相机设备的开关、镜头切换等,相机数据流模块用于接收图像数据;应用程序框架层包括相机设备API和数据流API,用于传输控制流或数据流;内核层包括镜头切换驱动程序和图像数据驱动程序,镜头切换驱动程序用于生成控制信号以驱动电机实现镜头切换,图像数据驱动程序用于驱动摄像头模组以获取图像数据;硬件层包括电机、手动触发开关、镜头和图像传感器,镜头和图像传感器重新组合后用于成像。Among them, the camera application program includes a camera device control module and a camera data flow module. The camera device control module is used to control the switch and lens switching of the camera device. The camera data flow module is used to receive image data; the application framework layer includes the camera device API And data flow API, used to transmit control flow or data flow; the kernel layer includes lens switching driver and image data driver, the lens switching driver is used to generate control signals to drive the motor to achieve lens switching, and the image data driver is used to drive The camera module is used to obtain image data; the hardware layer includes a motor, a manual trigger switch, a lens and an image sensor, and the lens and image sensor are recombined for imaging.
在一种示例中,内核层的音频驱动和/或马达驱动也可以接收所述镜头切换控制流,其中,音频驱动可以根据所述镜头切换控制流生成音频控制信号以控制音频器件播放提示音;马达驱动可以根据所述镜头切换控制流生成震动控制信号以控制马达的震动。相应的,硬件层还包括音频器件和/或马达器件。In an example, the audio driver and/or the motor driver of the kernel layer may also receive the lens switching control stream, wherein the audio driver may generate an audio control signal according to the lens switching control stream to control the audio device to play the prompt sound; The motor drive can generate a vibration control signal according to the lens switching control flow to control the vibration of the motor. Correspondingly, the hardware layer also includes audio devices and/or motor devices.
相对应地,当镜头切换完成后,图像传感器可以按照匹配的镜头重新成像,生成数据流,并将数据流传输至内核层的图像数据驱动,内核层的图像数据驱动再将所述数据流通过内核层的数据流API传递给应用层的相机数据流模块,为相机应用程序提供拍摄数据。Correspondingly, when the lens switch is completed, the image sensor can re-imaging according to the matched lens, generate a data stream, and transmit the data stream to the image data driver of the kernel layer, and the image data driver of the kernel layer passes the data stream through The data flow API of the kernel layer is passed to the camera data flow module of the application layer to provide shooting data for the camera application.
下面将详细介绍本申请实施例提供的镜头切换方法的步骤,请参见图8,该方法具体包括以下步骤:The steps of the lens switching method provided in the embodiment of the present application will be described in detail below. Please refer to FIG. 8. The method specifically includes the following steps:
S801,镜头切换装置确定待切换镜头,所述待切换镜头为所述M个镜头中的镜头。S801: The lens switching device determines a lens to be switched, and the lens to be switched is a lens among the M lenses.
镜头切换装置可以根据用户的拍摄需求选择摄像头模组中的镜头进行拍摄,则进行拍摄的镜头即为待切换镜头。其中,待切换镜头可以为一个或多个。例如,当用户的拍摄需求为要求视场角更宽阔时(如拍摄较为宽广的风景时),需要使用广角镜头进行拍摄,则镜头切换装置确定待切换镜头为广角镜头。又例如,当用户的拍摄需求为拍摄近距离特写时(如拍摄近距离人物特写时),需要使用微距镜头进行拍摄,则镜头切换装置确定待切换镜 头为微距镜头。The lens switching device can select the lens in the camera module for shooting according to the user's shooting needs, and the lens to be shot is the lens to be switched. Among them, there may be one or more lenses to be switched. For example, when the user's shooting requirement requires a wider field of view (for example, when shooting a wider landscape), a wide-angle lens is required for shooting, and the lens switching device determines that the lens to be switched is a wide-angle lens. For another example, when the user's shooting requirement is to shoot close-up close-ups (for example, when shooting close-up close-ups of people), a macro lens is needed for shooting, and the lens switching device determines that the lens to be switched is a macro lens.
在一种示例中,摄像头模组中的各个镜头可以分别对应各个镜头标识。具体地,确定待切换镜头可以是确定待切换镜头的镜头标识。其中,各个镜头对应的镜头标识可以由镜头切换装置预先设置。例如,摄像头模组包括3个镜头,分别为广角镜头、长焦镜头和微距镜头,可以设置广角镜头的镜头标识为镜头1,长焦镜头的镜头标识为镜头2,微距镜头的镜头标识为镜头3。In an example, each lens in the camera module may correspond to each lens identifier. Specifically, determining the lens to be switched may be determining the lens identifier of the lens to be switched. Wherein, the lens identifier corresponding to each lens can be preset by the lens switching device. For example, the camera module includes 3 lenses, namely a wide-angle lens, a telephoto lens, and a macro lens. You can set the lens identification of the wide-angle lens as lens 1, the lens identification of the telephoto lens as lens 2, and the lens identification of the macro lens as lens 3.
其中,镜头切换装置可通过以下三种方式来确定待切换镜头,当然还可通过其他方式来确定待切换镜头,本申请实施例不做限定。其中,在方式一中,镜头切换装置可以根据拍摄参数自动地确定待切换镜头。在方式二和方式三中,镜头切换装置可以根据用户的选择操作确定待切换镜头。Among them, the lens switching device can determine the lens to be switched in the following three ways, of course, it can also determine the lens to be switched in other ways, which is not limited in the embodiment of the application. Among them, in mode 1, the lens switching device can automatically determine the lens to be switched according to the shooting parameters. In the second and third modes, the lens switching device may determine the lens to be switched according to the user's selection operation.
方式一:确定拍摄参数,所述拍摄参数包括拍摄场景和拍摄模式;根据拍摄参数确定待切换镜头。Manner 1: Determine shooting parameters, where the shooting parameters include shooting scenes and shooting modes; determine the lens to be switched according to the shooting parameters.
例如,拍摄参数包括拍摄场景时,镜头切换装置可以根据图像拍摄预览画面确定拍摄场景,再根据拍摄场景确定待切换镜头。其中,镜头切换装置可以根据图像拍摄预览画面中的内容自动识别拍摄场景。例如,当图像拍摄预览画面被打开时,镜头切换装置可以分析该预览画面中的图像为哪一种类型的图像,如为风景类型图像或人物类型图像;再确定预览画面中的图像的景深、拍摄距离等图像参数。For example, when the shooting parameters include the shooting scene, the lens switching device may determine the shooting scene according to the image shooting preview screen, and then determine the lens to be switched according to the shooting scene. Among them, the lens switching device can automatically recognize the shooting scene according to the content in the image shooting preview screen. For example, when the image shooting preview screen is opened, the lens switching device can analyze which type of image the image in the preview screen is, such as a landscape image or a character image; and then determine the depth of field of the image in the preview screen. Image parameters such as shooting distance.
基于上述对图像拍摄预览画面中内容的识别,镜头切换装置可以根据该预览画面中的图像类型和图像参数确定拍摄场景。在确定拍摄场景后,可以根据拍摄场景与镜头的对应关系确定待切换镜头。其中,拍摄场景与镜头的对应关系可以是预先设置并储存在镜头切换装置中的。举例来说,镜头切换装置中存储的拍摄场景与镜头的对应关系可如下表1所示。其中,该表1所示的镜头以及对应的拍摄场景仅为部分示例,用于举例说明,不限制本实施例的应用场景。Based on the foregoing recognition of the content in the image shooting preview screen, the lens switching device can determine the shooting scene according to the image type and image parameters in the preview screen. After the shooting scene is determined, the lens to be switched can be determined according to the correspondence between the shooting scene and the lens. The corresponding relationship between the shooting scene and the lens may be preset and stored in the lens switching device. For example, the correspondence between the shooting scene and the lens stored in the lens switching device may be as shown in Table 1 below. Among them, the lenses and corresponding shooting scenes shown in Table 1 are only some examples, which are used for illustration and do not limit the application scenes of this embodiment.
表1:拍摄场景与镜头的对应关系表Table 1: Correspondence table of shooting scene and lens
广角镜头Wide-angle lens 适用于要求视场角宽广的场景,例如建筑、风景等拍摄场景Suitable for scenes requiring a wide field of view, such as shooting scenes such as architecture and landscape
远焦镜头Telephoto lens 适用于距离拍摄目标较远的场景,例如远景、航拍等拍摄场景Suitable for scenes far away from the shooting target, such as distant scenes, aerial photography, etc.
微距镜头Macro lens 适用于近距离拍摄的场景,例如人物特写、景物特写等拍摄场景Suitable for close-up shooting scenes, such as close-ups of people, close-ups and other shooting scenes
举例来说,如图9所示,用户打开相机应用程序,镜头切换装置的显示界面将显示图像拍摄预览画面;镜头切换装置根据预览画面确定拍摄场景。例如,图8中的预览画面所显示的是人像,则可以确定预览画面中的图像类型为人物;再分析预览画面中的人物占据预览画面的约三分之二,则可以确定拍摄距离较近。For example, as shown in FIG. 9, the user opens the camera application, and the display interface of the lens switching device displays an image shooting preview screen; the lens switching device determines the shooting scene according to the preview screen. For example, if the preview screen in Figure 8 shows a portrait, you can determine that the image type in the preview screen is a person; then analyze that the person in the preview screen occupies about two-thirds of the preview screen, and you can determine that the shooting distance is closer .
根据上述内容识别结果,镜头切换装置确定拍摄场景为人物特写拍摄场景,根据表1可知该拍摄场景可以使用微距镜头进行人物特写的拍摄,则确定待切换镜头为微距镜头。According to the above content recognition result, the lens switching device determines that the shooting scene is a close-up shooting scene of a person. According to Table 1, it can be known that the shooting scene can use a macro lens for shooting close-up of a person, and the lens to be switched is determined to be a macro lens.
再如,拍摄参数包括拍摄模式时,可以在显示界面输出拍摄模式的选择项,并接收用户对拍摄模式的选择操作,再根据该选择操作选择的拍摄模式确定待切换镜头。例如,当用户需要使用相机进行拍照时,通常可以根据拍摄目标确定需要使用的拍摄模式,如用户需要使用相机拍摄风景时,通常会选择使用风景拍摄模式以使拍出来的图像更完美。For another example, when the shooting parameters include a shooting mode, the selection of the shooting mode can be output on the display interface, and the user's selection operation of the shooting mode can be received, and then the lens to be switched is determined according to the shooting mode selected by the selection operation. For example, when a user needs to take a photo with a camera, the shooting mode to be used can usually be determined according to the shooting target. For example, when the user needs to use the camera to shoot a landscape, the user usually chooses to use the landscape shooting mode to make the captured image more perfect.
当用户确定需要使用的拍摄模式时,拍摄模式通常对应一种镜头,则镜头切换装置可 以确定该拍摄模式对应的镜头为待切换镜头。其中,拍摄模式与镜头的对应关系可以是预先设置并储存在镜头切换装置中的。举例来说,镜头切换装置中存储的拍摄模式与镜头的对应关系可如下表2所示。其中,该表2所示的镜头以及对应的拍摄模式仅为部分示例,用于举例说明,不限制本实施例的应用场景。When the user determines the shooting mode to be used, the shooting mode usually corresponds to a kind of lens, and the lens switching device can determine that the lens corresponding to the shooting mode is the lens to be switched. Wherein, the correspondence between the shooting mode and the lens may be preset and stored in the lens switching device. For example, the corresponding relationship between the shooting mode and the lens stored in the lens switching device may be shown in Table 2 below. Among them, the lenses and corresponding shooting modes shown in Table 2 are only some examples, which are used for illustration and do not limit the application scenarios of this embodiment.
表2:拍摄模式与镜头的对应关系表Table 2: Correspondence table of shooting mode and lens
广角镜头Wide-angle lens 适用于夜景模式、风景模式、大光圈模式等Suitable for night scene mode, landscape mode, large aperture mode, etc.
远焦镜头Telephoto lens 适用于远景模式、航拍模式等Suitable for remote view mode, aerial mode, etc.
微距镜头Macro lens 适用于人像模式等Suitable for portrait mode etc.
举例来说,如图10所示,用户打开相机应用程序,显示界面将显示拍摄模式的选择项;用户点击选择其中一种拍摄模式。例如,用户当前需要拍摄人像,可以点击选择人像拍摄模式。其中,显示界面显示拍摄模式的选择项时,在选项栏可以通过左右滑动显示全部的拍摄模式可选项。镜头切换装置接收用户对拍摄模式的选择操作后,根据被选择的拍摄模式查找拍摄模式与镜头的对应关系表,确定待切换镜头。例如,人像拍摄模式对应的镜头为微距镜头,则确定待切换镜头为微距镜头。For example, as shown in FIG. 10, the user opens the camera application, and the display interface will display options for shooting modes; the user clicks to select one of the shooting modes. For example, if the user currently needs to take a portrait, he can click to select the portrait shooting mode. Among them, when the display interface displays the options of the shooting mode, all the options of the shooting mode can be displayed by sliding left and right in the option bar. After receiving the user's selection operation of the shooting mode, the lens switching device searches the correspondence table between the shooting mode and the lens according to the selected shooting mode, and determines the lens to be switched. For example, if the lens corresponding to the portrait shooting mode is a macro lens, it is determined that the lens to be switched is a macro lens.
方式二:可以在镜头切换装置的显示界面输出对摄像头模组的模拟界面,并接收用户对模拟界面的操作。其中,用户对模拟界面的操作可以是将目标镜头拖动至目标图像传感器对应的位置的拖动操作,或者是对目标镜头的点击操作。根据用户对模拟界面的操作确定目标镜头为待切换镜头。Method 2: The analog interface to the camera module can be output on the display interface of the lens switching device, and the user's operation on the analog interface can be received. The user's operation on the simulation interface may be a drag operation of dragging the target lens to a position corresponding to the target image sensor, or a clicking operation on the target lens. According to the user's operation on the simulation interface, the target lens is determined as the lens to be switched.
其中,对摄像头模组的模拟界面为镜头切换装置的摄像头模组的模拟可视化界面,用户通过该可视化界面可以手动选择切换镜头,对应的硬件设备将根据用户对模拟界面的操作在硬件层对应地执行相关操作,如完成镜头切换。Among them, the simulation interface of the camera module is the simulation visualization interface of the camera module of the lens switching device. The user can manually select and switch the lens through the visualization interface, and the corresponding hardware device will correspond to the hardware layer according to the user's operation on the simulation interface. Perform related operations, such as completing lens switching.
其中,用户对模拟界面的操作可以是将目标镜头拖动至目标图像传感器对应的位置的拖动操作,例如,将目标镜头沿顺时针方向或逆时针方向拖动至图像传感器对应的位置。用户对模拟界面的操作也可以是对目标镜头的点击操作,例如,用户点击模拟界面中的目标镜头,镜头切换装置接收到用户对目标镜头的点击操作后,可以自动将所述目标镜头切换到目标传感器对应的位置。The user's operation on the simulation interface may be a drag operation of dragging the target lens to a position corresponding to the target image sensor, for example, dragging the target lens clockwise or counterclockwise to the position corresponding to the image sensor. The user's operation on the simulation interface can also be a click operation on the target lens. For example, the user clicks on the target lens in the simulation interface. After receiving the user's click operation on the target lens, the lens switching device can automatically switch the target lens to The location corresponding to the target sensor.
举例来说,如图11所示,用户打开相机应用程序,点击设置项,可以选择显示摄像头模组的模拟界面。进入模拟界面后,模拟界面将显示该镜头切换装置内部的摄像头模组的模拟结构,其中,该模拟结构即为对摄像头模组的硬件结构进行可视化操作后显示的结构。图11所示的模拟界面中包括3个镜头和一个图像传感器,并且每个镜头对应一个镜头标识(如镜头1)。For example, as shown in Figure 11, the user opens the camera application, clicks on the setting item, and can choose to display the simulation interface of the camera module. After entering the simulation interface, the simulation interface will display the simulation structure of the camera module inside the lens switching device, where the simulation structure is the structure displayed after visualizing the hardware structure of the camera module. The simulation interface shown in FIG. 11 includes 3 lenses and an image sensor, and each lens corresponds to a lens identifier (such as lens 1).
可选的,该模拟界面还可以显示各个镜头的详细信息,如镜头的参数和镜头适用的拍摄场景等。用户可以根据图11所示的模拟界面中显示的各个镜头的详细信息,并结合拍摄需求,确定目标镜头为镜头1。确定目标镜头后,用户可以将镜头1拖动旋转至传感器对应的位置,即确定待切换镜头为镜头1。Optionally, the simulation interface can also display detailed information of each lens, such as lens parameters and shooting scenes applicable to the lens. The user can determine that the target lens is lens 1 according to the detailed information of each lens displayed in the simulation interface shown in FIG. 11 in combination with shooting requirements. After determining the target lens, the user can drag and rotate lens 1 to the position corresponding to the sensor, that is, determine that the lens to be switched is lens 1.
可选的,当用户在模拟界面对镜头的操作完成后,可以关闭该模拟界面。例如,可以在该模拟界面的右上角设置关闭选项,当镜头切换装置检测到用户点击该关闭选项时,将关闭该模拟界面。又如,在镜头切换装置检测到用户对模拟界面的操作后的一段时间内, 若没有再次检测到用户对模拟界面的操作,则镜头切换装置默认镜头切换已完成,将自动关闭该模拟界面。Optionally, after the user completes the operation of the lens in the simulation interface, the simulation interface can be closed. For example, a close option can be set in the upper right corner of the simulation interface, and when the lens switching device detects that the user clicks the close option, the simulation interface will be closed. For another example, within a period of time after the lens switching device detects the user's operation on the simulation interface, if the user's operation on the simulation interface is not detected again, the lens switching device defaults that the lens switching has been completed and the simulation interface will be automatically closed.
方式三:可以在镜头切换装置的显示界面输出镜头的选择项,并接收用户对镜头的选择操作,再将用户选择的镜头确定为待切换镜头。Manner 3: The selection items of the lens can be output on the display interface of the lens switching device, and the user's selection operation of the lens can be received, and then the lens selected by the user is determined as the lens to be switched.
其中,镜头的选择项可以包括镜头标识以及该标识对应的镜头的详细信息。例如,镜头切换装置包括多个镜头,各个镜头对应不同的镜头详细信息,可以在显示界面显示各个镜头的详细信息,如镜头1的详细信息为镜头焦距为8毫米,镜头适用的拍摄场景为建筑拍摄场景。Wherein, the selection item of the lens may include a lens identification and detailed information of the lens corresponding to the identification. For example, the lens switching device includes multiple lenses, and each lens corresponds to different lens detailed information. The detailed information of each lens can be displayed on the display interface. For example, the detailed information of lens 1 is that the focal length of the lens is 8 mm, and the suitable shooting scene of the lens is architecture. Shoot the scene.
举例来说,如图12所示,用户打开相机应用程序,点击镜头选择项,则镜头切换装置的显示界面将显示镜头的选择项。例如,该镜头切换装置的摄像头模组包括3个镜头,显示界面将显示3个镜头各自的镜头参数和适用的拍摄场景。用户根据拍摄需求,点击选择其中一种镜头。例如,用户当前需要拍摄人像,可以选择微距镜头,则确定待切换镜头为微距镜头。For example, as shown in FIG. 12, the user opens the camera application and clicks the lens selection item, and the display interface of the lens switching device will display the lens selection item. For example, the camera module of the lens switching device includes 3 lenses, and the display interface will display the lens parameters and applicable shooting scenes of the 3 lenses. The user clicks to select one of the lenses according to the shooting needs. For example, if the user currently needs to take a portrait, he can select a macro lens, and the lens to be switched is determined to be a macro lens.
S802,镜头切换装置将所述待切换镜头切换到目标图像传感器对应的位置,所述目标图像传感器为所述N个图像传感器中的传感器。S802: The lens switching device switches the to-be-switched lens to a position corresponding to a target image sensor, where the target image sensor is a sensor of the N image sensors.
其中,目标图像传感器可以是N个图像传感器中的任意一个图像传感器,本实施例中的任意一个图像传感器的位置是固定的,则确定目标图像传感器后待切换镜头切换至的位置也是确定的。举例来说,当摄像头模组包括一个图像传感器和多个镜头时,目标图像传感器该摄像头模组中的一个图像传感器。确定待切换镜头后,可以直接将所述待切换镜头切换至该图像传感器对应的位置。例如,如图2a所示的摄像头模组中,待切换镜头为镜头2,则直接将镜头2切换至传感器对应的位置。The target image sensor can be any one of the N image sensors. The position of any one of the image sensors in this embodiment is fixed, and the position to which the lens to be switched is determined after the target image sensor is determined is also determined. For example, when the camera module includes one image sensor and multiple lenses, the target image sensor is an image sensor in the camera module. After the lens to be switched is determined, the lens to be switched can be directly switched to the position corresponding to the image sensor. For example, in the camera module shown in FIG. 2a, if the lens to be switched is lens 2, then lens 2 is directly switched to the position corresponding to the sensor.
其中,目标图像传感器也可以是N个图像传感器中的多个图像传感器。举例来说,当摄像头模组包括多个图像传感器和多个镜头时,可以实现多个图像传感器与多个镜头的自由组合。确定多个待切换镜头后,还需要确定各个待切换镜头对应的图像传感器,从而将各个待切换镜头切换至对应图像传感器相应的位置。Wherein, the target image sensor may also be multiple image sensors among the N image sensors. For example, when the camera module includes multiple image sensors and multiple lenses, a free combination of multiple image sensors and multiple lenses can be realized. After determining multiple lenses to be switched, it is also necessary to determine the image sensor corresponding to each lens to be switched, so as to switch each lens to be switched to the corresponding position of the corresponding image sensor.
例如,镜头切换装置可以预先存储镜头与图像传感器的对应关系。镜头切换装置根据预先存储的镜头与图像传感器的对应关系,获取待切换镜头对应的图像传感器为目标传感器,再将待切换镜头切换到该目标传感器对应的位置。For example, the lens switching device may pre-store the correspondence between the lens and the image sensor. The lens switching device acquires the image sensor corresponding to the lens to be switched as the target sensor according to the pre-stored correspondence between the lens and the image sensor, and then switches the lens to be switched to the position corresponding to the target sensor.
例如,摄像头模组包括两个图像传感器,其中,传感器1的图像分辨率较高,传感器2的图像分辨率较低。根据用户的拍摄需求,确定待切换镜头为镜头1和镜头2,其中,镜头1为广角镜头,需要匹配图像分辨率较高的图像传感器,镜头2为长焦镜头,对图像分辨率的要求低于镜头1。那么镜头切换装置可以确定各个待切换镜头与各个图像传感器的对应关系为镜头1匹配传感器1,镜头2匹配传感器2,从而确定镜头1切换至传感器1对应的位置,镜头2切换至传感器2对应的位置。For example, the camera module includes two image sensors, where the image resolution of sensor 1 is higher, and the image resolution of sensor 2 is lower. According to the user's shooting needs, determine the lenses to be switched as lens 1 and lens 2. Among them, lens 1 is a wide-angle lens, which needs to match an image sensor with a higher image resolution, and lens 2 is a telephoto lens, which requires lower image resolution Lens 1. Then the lens switching device can determine that the corresponding relationship between each lens to be switched and each image sensor is that lens 1 matches sensor 1, and lens 2 matches sensor 2, thereby determining that lens 1 is switched to the position corresponding to sensor 1, and lens 2 is switched to the position corresponding to sensor 2. position.
其中,将待切换镜头切换到目标图像传感器对应的位置时,可以根据旋转角度进行切换,具体包括以下步骤:确定待切换镜头到目标图像传感器对应的位置之间的旋转角度,根据所述旋转角度沿逆时针方向或顺时针方向将所述待切换镜头切换到目标图像传感器对应的位置。Wherein, when the lens to be switched is switched to the position corresponding to the target image sensor, it can be switched according to the rotation angle, which specifically includes the following steps: determining the rotation angle between the lens to be switched to the position corresponding to the target image sensor, and according to the rotation angle Switch the to-be-switched lens to a position corresponding to the target image sensor in a counterclockwise direction or a clockwise direction.
进一步,可以根据第一旋转角度和第二旋转角度来确定沿哪个方向将待切换镜头切换到目标图像传感器对应的位置。其中,第一旋转角度为沿顺时针方向旋转的角度,第二旋转角度为沿逆时针方向旋转的角度。具体可以包括以下步骤:若所述第一旋转角度小于所述第二旋转角度,则按照顺时针方向将所述待切换镜头切换到目标图像传感器对应的位置;若所述第二旋转角度小于所述第一旋转角度,则按照逆时针方向将所述待切换镜头切换到目标图像传感器对应的位置。Further, it may be determined according to the first rotation angle and the second rotation angle in which direction to switch the lens to be switched to the position corresponding to the target image sensor. Wherein, the first angle of rotation is an angle of rotation in a clockwise direction, and the second angle of rotation is an angle of rotation in a counterclockwise direction. Specifically, it may include the following steps: if the first rotation angle is smaller than the second rotation angle, switching the to-be-switched lens to the position corresponding to the target image sensor in a clockwise direction; if the second rotation angle is smaller than the According to the first rotation angle, the lens to be switched is switched to the position corresponding to the target image sensor in a counterclockwise direction.
举例来说,如图2a所示的摄像头模组中,待切换镜头为镜头2,镜头2的第一旋转角度约为270度,镜头2的第二旋转角度约为30度,则镜头2将沿逆时针方向旋转至目标图像传感器对应的位置。For example, in the camera module shown in FIG. 2a, the lens to be switched is lens 2, and the first rotation angle of lens 2 is about 270 degrees, and the second rotation angle of lens 2 is about 30 degrees. Rotate counterclockwise to the position corresponding to the target image sensor.
在一种示例中,可以通过电机带动镜头旋转的方式将待切换镜头切换到目标图像传感器对应的位置,例如,可以向电机发送切换控制信号,电机接收到该切换控制信号后,可以带动待切换镜头旋转至目标传感器对应的位置。In an example, the lens to be switched can be switched to the position corresponding to the target image sensor by rotating the lens by the motor. For example, a switching control signal can be sent to the motor, and after the motor receives the switching control signal, it can drive the lens to be switched The lens rotates to the position corresponding to the target sensor.
在一种示例中,可以通过用户手动的方式将待切换镜头切换到目标图像传感器对应的位置。例如,可以在终端设备上安装手动触发开关(如手动旋钮),采用手动的方式切换镜头时,摄像头模组可以是可见的(如终端的摄像头模组区域为透明外壳,或者终端的显示界面将显示摄像头的模拟界面)。用户可以通过直接操作手动触发开关使待切换镜头旋转至目标图像传感器对应的位置,并且整个切换过程为可视化过程,以确保将待切换镜头准确切换至目标图像传感器对应位置。In an example, the user can manually switch the lens to be switched to the position corresponding to the target image sensor. For example, a manual trigger switch (such as a manual knob) can be installed on the terminal device. When the lens is switched manually, the camera module can be visible (for example, the camera module area of the terminal is a transparent shell, or the display interface of the terminal Display the analog interface of the camera). The user can directly operate the manual trigger switch to rotate the lens to be switched to the position corresponding to the target image sensor, and the entire switching process is a visualization process to ensure that the lens to be switched is accurately switched to the position corresponding to the target image sensor.
在一种示例中,在将待切换镜头切换到目标图像传感器对应的位置的过程中,可以同时进行切换提示,其中,所述切换提示可以包括但不限于音频提示、震动提示等。例如,在切换过程中,可以播放提示音(如播放音乐,播放镜头切换语音等),也可以使终端设备震动以提示用户正在切换镜头,提升切换过程中的用户体验。In an example, in the process of switching the to-be-switched lens to the position corresponding to the target image sensor, a switching prompt may be performed at the same time, wherein the switching prompt may include, but is not limited to, an audio prompt, a vibration prompt, and the like. For example, during the switching process, prompt sounds (such as playing music, playing lens switching voice, etc.) can be played, or the terminal device can be vibrated to remind the user that the camera is switching, and the user experience in the switching process can be improved.
可见,本申请实施例提供一种镜头切换方法,该方法通过确定待切换镜头,再将待切换镜头切换至目标图像传感器对应的位置,从而实现镜头和图像传感器的扣合重组。该方法可以应用于镜头切换装置,其中,镜头切换装置包括摄像头模组,该摄像头模组中镜头和图像传感器解耦合,可以通过镜头的切换实现多个镜头和传感器之间的自由组合,通过减少传感器的数量以降低终端设备的制造成本;可选的,在镜头切换的过程中还可以通过外设(如音频器件和马达器件)联动,使用户可以感知到镜头的切换过程,提升用户的使用体验。It can be seen that the embodiment of the present application provides a lens switching method. The method determines the lens to be switched, and then switches the lens to be switched to a position corresponding to the target image sensor, so as to realize the snapping and reassembly of the lens and the image sensor. The method can be applied to a lens switching device, where the lens switching device includes a camera module in which the lens and the image sensor are decoupled, and the free combination of multiple lenses and sensors can be realized through lens switching, which reduces The number of sensors to reduce the manufacturing cost of the terminal equipment; optionally, the peripherals (such as audio devices and motor devices) can be linked during the lens switching process, so that the user can perceive the lens switching process and improve the user's use Experience.
本申请实施例提供一种镜头切换装置,如图13所示。该镜头切换装置1300可以用于执行图8所述的镜头切换方法,该镜头切换装置包括:An embodiment of the present application provides a lens switching device, as shown in FIG. 13. The lens switching device 1300 may be used to execute the lens switching method described in FIG. 8, and the lens switching device includes:
确定单元1301,用于确定待切换镜头,所述待切换镜头为所述M个镜头中的一个;The determining unit 1301 is configured to determine a lens to be switched, and the lens to be switched is one of the M lenses;
切换单元1302,用于将所述待切换镜头切换到目标图像传感器对应的位置,所述目标图像传感器为所述N个图像传感器中的一个。The switching unit 1302 is configured to switch the lens to be switched to a position corresponding to a target image sensor, and the target image sensor is one of the N image sensors.
在一种实现方式中,切换单元1302具体可以用于:In an implementation manner, the switching unit 1302 may be specifically used for:
确定所述待切换镜头到目标图像传感器对应的位置之间的旋转角度;Determining the rotation angle between the lens to be switched and the position corresponding to the target image sensor;
根据所述旋转角度,沿逆时针方向或顺时针方向将所述待切换镜头切换到目标图像传 感器对应的位置。According to the rotation angle, the to-be-switched lens is switched to the position corresponding to the target image sensor in a counterclockwise direction or a clockwise direction.
在一种实现方式中,所述旋转角度包括所述待切换镜头沿顺时针方向旋转的第一旋转角度和所述待切换镜头沿逆时针方向旋转的第二旋转角度;切换单元1302具体可以用于:In one implementation, the rotation angle includes a first rotation angle of the lens to be switched in a clockwise direction and a second rotation angle of the lens to be switched in a counterclockwise direction; the switching unit 1302 may specifically use in:
若所述第一旋转角度小于所述第二旋转角度,则按照顺时针方向将所述待切换镜头切换到目标图像传感器对应的位置;If the first rotation angle is smaller than the second rotation angle, switching the to-be-switched lens to a position corresponding to the target image sensor in a clockwise direction;
若所述第二旋转角度小于所述第一旋转角度,则按照逆时针方向将所述待切换镜头切换到目标图像传感器对应的位置。If the second rotation angle is smaller than the first rotation angle, the lens to be switched is switched to a position corresponding to the target image sensor in a counterclockwise direction.
在一种实现方式中,确定单元1301具体可以用于:In an implementation manner, the determining unit 1301 may be specifically configured to:
确定拍摄参数,所述拍摄参数包括拍摄场景和拍摄模式;Determine shooting parameters, where the shooting parameters include a shooting scene and a shooting mode;
根据拍摄参数确定待切换镜头。Determine the lens to be switched according to the shooting parameters.
在一种实现方式中,确定单元1301具体可以用于:In an implementation manner, the determining unit 1301 may be specifically configured to:
输出对所述摄像头模组的模拟界面;Output an analog interface to the camera module;
接收用户对所述模拟界面的操作,所述操作为用户将所述目标镜头拖动至所述目标图像传感器对应的位置的拖动操作,或所述操作为对目标镜头的点击操作;Receiving a user's operation on the simulation interface, where the operation is a drag operation in which the user drags the target lens to a position corresponding to the target image sensor, or the operation is a click operation on the target lens;
将所述目标镜头确定为待切换镜头。The target lens is determined as the lens to be switched.
在一种实现方式中,确定单元1301具体可以用于:In an implementation manner, the determining unit 1301 may be specifically configured to:
输出镜头的选择项;Options for output lens;
接收用户对镜头的选择操作;Receive the user's selection operation on the lens;
确定所述选择操作选择的镜头为待切换镜头。It is determined that the lens selected by the selection operation is the lens to be switched.
在一种实现方式中,所述镜头切换装置还包括提示单元1303,所述提示单元用于在将所述待切换镜头切换到目标图像传感器对应的位置的过程中,进行切换提示。In an implementation manner, the lens switching device further includes a prompt unit 1303, which is used to perform a switching prompt during the process of switching the lens to be switched to a position corresponding to the target image sensor.
在一种实现方式中,所述切换提示包括音频提示和/或震动提示。In an implementation manner, the switching prompt includes an audio prompt and/or a vibration prompt.
本申请实施例提供另一种镜头切换装置,如图14所示。该镜头切换装置1400可以包括处理器1401,用于确定待切换镜头或将所述待切换镜头切换到目标传感器对应的位置;其中,图13所示的确定单元1301、切换单元1302和提示单元1303所实现的相关功能均可以通过处理器1401来实现。处理器1401可以包括一个或多个处理器,例如该处理器1401可以是一个或多个中央处理器(central processing unit,CPU),网络处理器(network processor,NP),硬件芯片或者其任意组合。在处理器1401是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。An embodiment of the present application provides another lens switching device, as shown in FIG. 14. The lens switching device 1400 may include a processor 1401 for determining the lens to be switched or switching the lens to be switched to a position corresponding to the target sensor; wherein the determining unit 1301, the switching unit 1302, and the prompt unit 1303 shown in FIG. 13 The implemented related functions can all be implemented by the processor 1401. The processor 1401 may include one or more processors. For example, the processor 1401 may be one or more central processing units (CPUs), network processors (NPs), hardware chips, or any combination thereof . In the case where the processor 1401 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.
镜头切换装置1400还可以包括存储器1402,存储器1402用于存储程序代码等。存储器1402可以包括易失性存储器(volatile memory),例如随机存取存储器(random access memory,RAM);存储器1402也可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器1402还可以包括上述种类的存储器的组合。The lens switching device 1400 may further include a memory 1402, and the memory 1402 is used to store program codes and the like. The memory 1402 may include a volatile memory (volatile memory), such as a random access memory (random access memory, RAM); the memory 1402 may also include a non-volatile memory (non-volatile memory), such as a read-only memory (read-only memory). Only memory (ROM), flash memory (flash memory), hard disk drive (HDD) or solid-state drive (SSD); the memory 1402 may also include a combination of the foregoing types of memories.
上述处理器1401和存储器1402可以用于实现图8所述的镜头切换方法,其中,处理器1401用于确定待切换镜头,还用于将所述待切换镜头切换到目标图像传感器对应的位置。The above-mentioned processor 1401 and memory 1402 may be used to implement the lens switching method described in FIG. 8, wherein the processor 1401 is used to determine the lens to be switched, and is also used to switch the lens to be switched to a position corresponding to the target image sensor.
在一种实现方式中,处理器1401具体可以用于:In an implementation manner, the processor 1401 may be specifically used to:
确定所述待切换镜头到目标图像传感器对应的位置之间的旋转角度;Determining the rotation angle between the lens to be switched and the position corresponding to the target image sensor;
根据所述旋转角度,沿逆时针方向或顺时针方向将所述待切换镜头切换到目标图像传感器对应的位置。According to the rotation angle, the lens to be switched is switched to a position corresponding to the target image sensor in a counterclockwise direction or a clockwise direction.
在一种实现方式中,所述旋转角度包括所述待切换镜头沿顺时针方向旋转的第一旋转角度和所述待切换镜头沿逆时针方向旋转的第二旋转角度;处理器1401具体可以用于:In one implementation, the rotation angle includes a first rotation angle of the lens to be switched in a clockwise direction and a second rotation angle of the lens to be switched in a counterclockwise direction; the processor 1401 may specifically use in:
若所述第一旋转角度小于所述第二旋转角度,则按照顺时针方向将所述待切换镜头切换到目标图像传感器对应的位置;If the first rotation angle is smaller than the second rotation angle, switching the to-be-switched lens to a position corresponding to the target image sensor in a clockwise direction;
若所述第二旋转角度小于所述第一旋转角度,则按照逆时针方向将所述待切换镜头切换到目标图像传感器对应的位置。If the second rotation angle is smaller than the first rotation angle, the lens to be switched is switched to a position corresponding to the target image sensor in a counterclockwise direction.
在一种实现方式中,处理器1401具体可以用于:In an implementation manner, the processor 1401 may be specifically used to:
确定拍摄参数,所述拍摄参数包括拍摄场景和拍摄模式;Determine shooting parameters, where the shooting parameters include a shooting scene and a shooting mode;
根据拍摄参数确定待切换镜头。Determine the lens to be switched according to the shooting parameters.
在一种实现方式中,处理器1401具体可以用于:In an implementation manner, the processor 1401 may be specifically used to:
输出对所述摄像头模组的模拟界面;Output an analog interface to the camera module;
接收用户对所述模拟界面的操作,所述操作为用户将所述目标镜头拖动至所述目标图像传感器对应的位置的拖动操作,或所述操作为对目标镜头的点击操作;Receiving a user's operation on the simulation interface, where the operation is a drag operation in which the user drags the target lens to a position corresponding to the target image sensor, or the operation is a click operation on the target lens;
将所述目标镜头确定为待切换镜头。The target lens is determined as the lens to be switched.
在一种实现方式中,处理器1401具体可以用于:In an implementation manner, the processor 1401 may be specifically used to:
输出镜头的选择项;Options for output lens;
接收用户对镜头的选择操作;Receive the user's selection operation on the lens;
确定所述选择操作选择的镜头为待切换镜头。It is determined that the lens selected by the selection operation is the lens to be switched.
在一种实现方式中,处理器1401具体可以用于:In an implementation manner, the processor 1401 may be specifically used to:
在将所述待切换镜头切换到目标图像传感器对应的位置的过程中,进行切换提示。In the process of switching the to-be-switched lens to the position corresponding to the target image sensor, a switching prompt is performed.
在一种实现方式中,切换提示包括音频提示和/或震动提示。In one implementation, the switching prompt includes an audio prompt and/or a vibration prompt.
需要说明的是,上述实施例中的装置可以是终端设备,也可以是应用于终端设备中的芯片或者其他具有上述终端功能的组合器件、部件等。It should be noted that the device in the foregoing embodiment may be a terminal device, or a chip applied to a terminal device or other combination devices or components with the foregoing terminal functions.
本申请实施例还提供一种可读存储介质,该可读存储介质包括程序或指令,当所述程序或指令在计算机上运行时,使得计算机执行上述方法实施例中镜头切换装置所执行的镜头切换方法。The embodiment of the present application also provides a readable storage medium, which includes a program or instruction, when the program or instruction runs on a computer, the computer executes the lens executed by the lens switching device in the above method embodiment. Switch method.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(Digital Subscriber Line,DSL))或无线(例如红外、无线、微波等)方式向另 一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(Digital Video Disc,DVD))、或者半导体介质(例如,固态硬盘(Solid State Disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server, or data center via wired (for example, coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (for example, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a high-density digital video disc (Digital Video Disc, DVD)), or a semiconductor medium (for example, a solid state disk (Solid State Disk, SSD)) etc.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may realize that the units and algorithm steps of the examples described in the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the hardware and software Interchangeability. In the above description, the composition and steps of each example have been generally described in terms of function. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application. Should be covered within the scope of protection of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (17)

  1. 一种镜头切换方法,其特征在于,应用于镜头切换装置,所述镜头切换装置包括摄像头模组,所述摄像头模组包括M个镜头、N个图像传感器和一个电机;所述M为大于或等于2的正整数,所述N为大于或等于1的正整数,所述M大于N,所述方法包括:A lens switching method, characterized in that it is applied to a lens switching device, the lens switching device includes a camera module, the camera module includes M lenses, N image sensors and a motor; the M is greater than or A positive integer equal to 2, the N is a positive integer greater than or equal to 1, and the M is greater than N, the method includes:
    确定待切换镜头,所述待切换镜头为所述M个镜头中的镜头;Determining a lens to be switched, where the lens to be switched is a lens of the M lenses;
    将所述待切换镜头切换到目标图像传感器对应的位置,所述目标图像传感器为所述N个图像传感器中的传感器。Switching the to-be-switched lens to a position corresponding to a target image sensor, where the target image sensor is a sensor of the N image sensors.
  2. 根据权利要求1所述的方法,其特征在于,所述将所述待切换镜头切换到目标图像传感器对应的位置,包括:The method according to claim 1, wherein the switching the to-be-switched lens to a position corresponding to the target image sensor comprises:
    确定所述待切换镜头到目标图像传感器对应的位置之间的旋转角度;Determining the rotation angle between the lens to be switched and the position corresponding to the target image sensor;
    根据所述旋转角度,沿逆时针方向或顺时针方向将所述待切换镜头切换到目标图像传感器对应的位置。According to the rotation angle, the lens to be switched is switched to a position corresponding to the target image sensor in a counterclockwise direction or a clockwise direction.
  3. 根据权利要求2所述的方法,其特征在于,所述旋转角度包括所述待切换镜头沿顺时针方向旋转的第一旋转角度和所述待切换镜头沿逆时针方向旋转的第二旋转角度;The method according to claim 2, wherein the rotation angle comprises a first rotation angle of the lens to be switched in a clockwise direction and a second rotation angle of the lens to be switched in a counterclockwise direction;
    所述根据所述旋转角度,沿逆时针方向或顺时针方向将所述待切换镜头切换到目标图像传感器对应的位置,包括:The switching the lens to be switched to a position corresponding to the target image sensor in a counterclockwise or clockwise direction according to the rotation angle includes:
    若所述第一旋转角度小于所述第二旋转角度,则按照顺时针方向将所述待切换镜头切换到目标图像传感器对应的位置;If the first rotation angle is smaller than the second rotation angle, switching the to-be-switched lens to a position corresponding to the target image sensor in a clockwise direction;
    若所述第二旋转角度小于所述第一旋转角度,则按照逆时针方向将所述待切换镜头切换到目标图像传感器对应的位置。If the second rotation angle is smaller than the first rotation angle, the lens to be switched is switched to a position corresponding to the target image sensor in a counterclockwise direction.
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述确定待切换镜头,包括:The method according to any one of claims 1 to 3, wherein the determining the lens to be switched comprises:
    确定拍摄参数,所述拍摄参数包括拍摄场景和拍摄模式;Determine shooting parameters, where the shooting parameters include a shooting scene and a shooting mode;
    根据拍摄参数确定待切换镜头。Determine the lens to be switched according to the shooting parameters.
  5. 根据权利要求1至3中任一项所述的方法,其特征在于,所述确定待切换镜头之前,所述方法还包括:The method according to any one of claims 1 to 3, characterized in that, before the determining the lens to be switched, the method further comprises:
    输出对所述摄像头模组的模拟界面;Output an analog interface to the camera module;
    接收用户对所述模拟界面的操作,所述操作为用户将所述目标镜头拖动至所述目标图像传感器对应的位置的拖动操作,或所述操作为对目标镜头的点击操作;Receiving a user's operation on the simulation interface, where the operation is a drag operation in which the user drags the target lens to a position corresponding to the target image sensor, or the operation is a click operation on the target lens;
    所述确定待切换镜头,包括:The determining the lens to be switched includes:
    将所述目标镜头确定为待切换镜头。The target lens is determined as the lens to be switched.
  6. 根据权利要求1至3中任一项所述的方法,其特征在于,所述确定待切换镜头之前, 所述方法还包括:The method according to any one of claims 1 to 3, characterized in that, before the determining the lens to be switched, the method further comprises:
    输出镜头的选择项;Options for output lens;
    接收用户对镜头的选择操作;Receive the user's selection operation on the lens;
    所述确定待切换镜头,包括:The determining the lens to be switched includes:
    确定所述选择操作选择的镜头为待切换镜头。It is determined that the lens selected by the selection operation is the lens to be switched.
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 6, wherein the method further comprises:
    在将所述待切换镜头切换到目标图像传感器对应的位置的过程中,进行切换提示。In the process of switching the to-be-switched lens to the position corresponding to the target image sensor, a switching prompt is performed.
  8. 根据权利要求7所述的方法,其特征在于,所述切换提示包括音频提示和/或震动提示。The method according to claim 7, wherein the switching prompt comprises an audio prompt and/or a vibration prompt.
  9. 一种镜头切换装置,其特征在于,所述镜头切换装置包括摄像头模组,所述摄像头模组包括M个镜头、N个图像传感器和一个电机;所述M为大于或等于2的正整数,所述N为大于或等于1的正整数,所述M大于N;所述镜头切换装置还包括:A lens switching device, wherein the lens switching device includes a camera module, the camera module includes M lenses, N image sensors, and a motor; the M is a positive integer greater than or equal to 2, The N is a positive integer greater than or equal to 1, and the M is greater than N; the lens switching device further includes:
    确定单元,用于确定待切换镜头,所述待切换镜头为所述M个镜头中的镜头;A determining unit, configured to determine a lens to be switched, and the lens to be switched is a lens among the M lenses;
    切换单元,用于将所述待切换镜头切换到目标图像传感器对应的位置,所述目标图像传感器为所述N个图像传感器中的传感器。The switching unit is configured to switch the lens to be switched to a position corresponding to a target image sensor, and the target image sensor is a sensor among the N image sensors.
  10. 根据权利要求9所述的装置,其特征在于,所述切换单元用于将所述待切换镜头切换到目标图像传感器对应的位置时,具体用于:The device according to claim 9, wherein the switching unit is configured to switch the to-be-switched lens to a position corresponding to the target image sensor, and is specifically configured to:
    确定所述待切换镜头到目标图像传感器对应的位置之间的旋转角度;Determining the rotation angle between the lens to be switched and the position corresponding to the target image sensor;
    根据所述旋转角度,沿逆时针方向或顺时针方向将所述待切换镜头切换到目标图像传感器对应的位置。According to the rotation angle, the lens to be switched is switched to a position corresponding to the target image sensor in a counterclockwise direction or a clockwise direction.
  11. 根据权利要求10所述的装置,其特征在于,所述旋转角度包括所述待切换镜头沿顺时针方向旋转的第一旋转角度和所述待切换镜头沿逆时针方向旋转的第二旋转角度;The device according to claim 10, wherein the rotation angle comprises a first rotation angle of the lens to be switched in a clockwise direction and a second rotation angle of the lens to be switched in a counterclockwise direction;
    所述切换单元用于根据所述旋转角度,沿逆时针方向或顺时针方向将所述待切换镜头切换到目标图像传感器对应的位置时,具体用于:The switching unit is configured to switch the lens to be switched to the position corresponding to the target image sensor in a counterclockwise or clockwise direction according to the rotation angle, specifically:
    若所述第一旋转角度小于所述第二旋转角度,则按照顺时针方向将所述待切换镜头切换到目标图像传感器对应的位置;If the first rotation angle is smaller than the second rotation angle, switching the to-be-switched lens to a position corresponding to the target image sensor in a clockwise direction;
    若所述第二旋转角度小于所述第一旋转角度,则按照逆时针方向将所述待切换镜头切换到目标图像传感器对应的位置。If the second rotation angle is smaller than the first rotation angle, the lens to be switched is switched to a position corresponding to the target image sensor in a counterclockwise direction.
  12. 根据权利要求9至11中任一项所述的装置,其特征在于,所述确定单元用于确定待切换镜头时,具体用于:The device according to any one of claims 9 to 11, wherein the determining unit is configured to determine the lens to be switched, specifically:
    确定拍摄参数,所述拍摄参数包括拍摄场景和拍摄模式;Determine shooting parameters, where the shooting parameters include a shooting scene and a shooting mode;
    根据拍摄参数确定待切换镜头。Determine the lens to be switched according to the shooting parameters.
  13. 根据权利要求9至11中任一项所述的装置,其特征在于,所述确定单元用于确定待切换镜头时,具体用于:The device according to any one of claims 9 to 11, wherein the determining unit is configured to determine the lens to be switched, specifically:
    输出对所述摄像头模组的模拟界面;Output an analog interface to the camera module;
    接收用户对所述模拟界面的操作,所述操作为用户将所述目标镜头拖动至所述目标图像传感器对应的位置的拖动操作,或所述操作为对目标镜头的点击操作;Receiving a user's operation on the simulation interface, where the operation is a drag operation in which the user drags the target lens to a position corresponding to the target image sensor, or the operation is a click operation on the target lens;
    将所述目标镜头确定为待切换镜头。The target lens is determined as the lens to be switched.
  14. 根据权利要求9至11中任一项所述的装置,其特征在于,所述确定单元用于确定待切换镜头时,具体用于:The device according to any one of claims 9 to 11, wherein the determining unit is configured to determine the lens to be switched, specifically:
    输出镜头的选择项;Options for output lens;
    接收用户对镜头的选择操作;Receive the user's selection operation on the lens;
    确定所述选择操作选择的镜头为待切换镜头。It is determined that the lens selected by the selection operation is the lens to be switched.
  15. 根据权利要求9至14中任一项所述的装置,其特征在于,所述装置还包括提示单元,所述提示单元用于在将所述待切换镜头切换到目标图像传感器对应的位置的过程中,进行切换提示。The device according to any one of claims 9 to 14, wherein the device further comprises a prompting unit, the prompting unit is used to switch the to-be-switched lens to a position corresponding to the target image sensor. , Prompt for switching.
  16. 根据权利要求15所述的装置,其特征在于,所述切换提示包括音频提示和/或震动提示。The device according to claim 15, wherein the switching prompt comprises an audio prompt and/or a vibration prompt.
  17. 一种可读存储介质,其特征在于,包括程序或指令,当所述程序或指令在计算机上运行时,如权利要求1至8中任一项所述的方法被执行。A readable storage medium, characterized by comprising a program or instruction, when the program or instruction is run on a computer, the method according to any one of claims 1 to 8 is executed.
PCT/CN2020/104722 2019-08-06 2020-07-27 Lens switching method and apparatus WO2021023035A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910721605.2A CN112351156B (en) 2019-08-06 2019-08-06 Lens switching method and device
CN201910721605.2 2019-08-06

Publications (1)

Publication Number Publication Date
WO2021023035A1 true WO2021023035A1 (en) 2021-02-11

Family

ID=74366509

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/104722 WO2021023035A1 (en) 2019-08-06 2020-07-27 Lens switching method and apparatus

Country Status (2)

Country Link
CN (1) CN112351156B (en)
WO (1) WO2021023035A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115236920A (en) * 2021-04-22 2022-10-25 华为技术有限公司 Imaging device, electronic apparatus, imaging device control method, and imaging device control apparatus

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113395435A (en) * 2020-03-11 2021-09-14 北京芯海视界三维科技有限公司 Device for realizing 3D shooting and 3D display terminal
CN113055599B (en) * 2021-03-29 2023-02-07 维沃软件技术有限公司 Camera switching method and device, electronic equipment and readable storage medium
CN113660402A (en) * 2021-08-19 2021-11-16 南昌逸勤科技有限公司 Camera module and electronic equipment
CN113766109A (en) * 2021-09-02 2021-12-07 成都中科创达软件有限公司 Camera module, lens switching control method, device and equipment
CN218830168U (en) * 2021-09-26 2023-04-07 深圳市道通智能航空技术股份有限公司 Ultra-high definition multi-camera input switching device
CN113784052B (en) * 2021-09-26 2023-09-15 深圳市道通智能航空技术股份有限公司 Ultra-high definition multi-shot input switching device, method and system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004208176A (en) * 2002-12-26 2004-07-22 Matsushita Electric Ind Co Ltd Portable terminal device
CN2666062Y (en) * 2003-11-20 2004-12-22 明基电通股份有限公司 Mobile phone and digital camera thereof
JP2005249824A (en) * 2004-03-01 2005-09-15 Casio Comput Co Ltd Imaging apparatus
US20060187322A1 (en) * 2005-02-18 2006-08-24 Janson Wilbert F Jr Digital camera using multiple fixed focal length lenses and multiple image sensors to provide an extended zoom range
CN101551581A (en) * 2008-03-31 2009-10-07 纬创资通股份有限公司 Protecting shell applied to electronic device
CN102854593A (en) * 2012-09-17 2013-01-02 吴江市聚力机械有限公司 Rotary disc type mobile phone lens
CN203643672U (en) * 2013-11-25 2014-06-11 中兴通讯股份有限公司 Electronic device
CN107800942A (en) * 2017-12-14 2018-03-13 信利光电股份有限公司 A kind of camera and terminal
CN109729246A (en) * 2018-11-27 2019-05-07 努比亚技术有限公司 A kind of multi-camera circuit structure, terminal and computer readable storage medium
CN109922179A (en) * 2019-03-21 2019-06-21 维沃移动通信(杭州)有限公司 A kind of camera module, camera control method and terminal
CN110881100A (en) * 2019-12-31 2020-03-13 华勤通讯技术有限公司 Lens module

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231097A (en) * 2011-07-28 2011-11-02 青岛海信移动通信技术股份有限公司 Method and device for unlocking screen
JP6281562B2 (en) * 2013-02-21 2018-02-21 日本電気株式会社 Image processing apparatus, image processing method, and program
CN105242485B (en) * 2015-11-20 2018-01-09 重庆盾银科技有限公司 A kind of multispectral optical filter switching device for image image device
CN105979157B (en) * 2016-06-30 2019-12-03 维沃移动通信有限公司 A kind of screening-mode switching method and mobile terminal
CN107800951B (en) * 2016-09-07 2020-07-14 深圳富泰宏精密工业有限公司 Electronic device and lens switching method thereof
US10871628B2 (en) * 2017-10-31 2020-12-22 Pony Ai Inc. Camera multi-lens mount for assisted-driving vehicle

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004208176A (en) * 2002-12-26 2004-07-22 Matsushita Electric Ind Co Ltd Portable terminal device
CN2666062Y (en) * 2003-11-20 2004-12-22 明基电通股份有限公司 Mobile phone and digital camera thereof
JP2005249824A (en) * 2004-03-01 2005-09-15 Casio Comput Co Ltd Imaging apparatus
US20060187322A1 (en) * 2005-02-18 2006-08-24 Janson Wilbert F Jr Digital camera using multiple fixed focal length lenses and multiple image sensors to provide an extended zoom range
CN101551581A (en) * 2008-03-31 2009-10-07 纬创资通股份有限公司 Protecting shell applied to electronic device
CN102854593A (en) * 2012-09-17 2013-01-02 吴江市聚力机械有限公司 Rotary disc type mobile phone lens
CN203643672U (en) * 2013-11-25 2014-06-11 中兴通讯股份有限公司 Electronic device
CN107800942A (en) * 2017-12-14 2018-03-13 信利光电股份有限公司 A kind of camera and terminal
CN109729246A (en) * 2018-11-27 2019-05-07 努比亚技术有限公司 A kind of multi-camera circuit structure, terminal and computer readable storage medium
CN109922179A (en) * 2019-03-21 2019-06-21 维沃移动通信(杭州)有限公司 A kind of camera module, camera control method and terminal
CN110881100A (en) * 2019-12-31 2020-03-13 华勤通讯技术有限公司 Lens module

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115236920A (en) * 2021-04-22 2022-10-25 华为技术有限公司 Imaging device, electronic apparatus, imaging device control method, and imaging device control apparatus

Also Published As

Publication number Publication date
CN112351156B (en) 2023-02-14
CN112351156A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
WO2021023035A1 (en) Lens switching method and apparatus
CN111316598B (en) Multi-screen interaction method and equipment
WO2020244623A1 (en) Air-mouse mode implementation method and related device
CN113542839B (en) Screen projection method of electronic equipment and electronic equipment
WO2021042978A1 (en) Theme switching method and theme switching apparatus
CN113923230B (en) Data synchronization method, electronic device, and computer-readable storage medium
WO2021197139A1 (en) Service recommending method, electronic device, and system
US20220174143A1 (en) Message notification method and electronic device
WO2021036898A1 (en) Application activation method for apparatus having foldable screen, and related device
WO2021052204A1 (en) Address book-based device discovery method, audio and video communication method, and electronic device
WO2021083128A1 (en) Sound processing method and apparatus thereof
CN113961157B (en) Display interaction system, display method and equipment
CN114125130B (en) Method for controlling communication service state, terminal device and readable storage medium
EP4036842A1 (en) Image flooding processing method and apparatus, and storage medium
WO2021208723A1 (en) Full-screen display method and apparatus, and electronic device
CN111835907A (en) Method, equipment and system for switching service across electronic equipment
WO2023103951A1 (en) Display method for foldable screen and related apparatus
WO2022022319A1 (en) Image processing method, electronic device, image processing system and chip system
WO2021052388A1 (en) Video communication method and video communication apparatus
WO2021037034A1 (en) Method for switching state of application, and terminal device
US20230350629A1 (en) Double-Channel Screen Mirroring Method and Electronic Device
CN116048436B (en) Application interface display method, electronic device and storage medium
CN114006698B (en) token refreshing method and device, electronic equipment and readable storage medium
WO2021052408A1 (en) Electronic device display method and electronic device
CN114489876A (en) Text input method, electronic equipment and system

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20849877

Country of ref document: EP

Kind code of ref document: A1