WO2021147911A1 - 移动终端、拍摄模式的检测方法及存储介质 - Google Patents

移动终端、拍摄模式的检测方法及存储介质 Download PDF

Info

Publication number
WO2021147911A1
WO2021147911A1 PCT/CN2021/072902 CN2021072902W WO2021147911A1 WO 2021147911 A1 WO2021147911 A1 WO 2021147911A1 CN 2021072902 W CN2021072902 W CN 2021072902W WO 2021147911 A1 WO2021147911 A1 WO 2021147911A1
Authority
WO
WIPO (PCT)
Prior art keywords
magnetic field
hall sensor
shooting mode
camera module
field strength
Prior art date
Application number
PCT/CN2021/072902
Other languages
English (en)
French (fr)
Inventor
兰永城
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Priority to EP21744020.5A priority Critical patent/EP4096207A4/en
Publication of WO2021147911A1 publication Critical patent/WO2021147911A1/zh
Priority to US17/870,779 priority patent/US20220360709A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V3/00Electric or magnetic prospecting or detecting; Measuring magnetic field characteristics of the earth, e.g. declination, deviation
    • G01V3/08Electric or magnetic prospecting or detecting; Measuring magnetic field characteristics of the earth, e.g. declination, deviation operating with magnetic or electric fields produced or modified by objects or geological structures or by detecting devices
    • G01V3/081Electric or magnetic prospecting or detecting; Measuring magnetic field characteristics of the earth, e.g. declination, deviation operating with magnetic or electric fields produced or modified by objects or geological structures or by detecting devices the magnetic field is produced by the objects or geological structures
    • 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
    • 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
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • 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/66Remote control of cameras or camera parts, e.g. by remote control devices
    • H04N23/663Remote control of cameras or camera parts, e.g. by remote control devices for controlling interchangeable camera parts based on electronic image sensor signals
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B17/00Details of cameras or camera bodies; Accessories therefor
    • G03B17/56Accessories
    • G03B17/561Support related camera accessories
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B17/00Details of cameras or camera bodies; Accessories therefor
    • G03B17/56Accessories
    • G03B17/566Accessory clips, holders, shoes to attach accessories to camera
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0254Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets comprising one or a plurality of mechanically detachable modules
    • H04M1/0256Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets comprising one or a plurality of mechanically detachable modules wherein the modules are operable in the detached state, e.g. one module for the user interface and one module for the transceiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Definitions

  • the present invention relates to the field of communication technology, and in particular to a mobile terminal, a detection method of a shooting mode, and a storage medium.
  • the shooting parameters of the front camera and the rear camera are different, in order to ensure the normal operation of the camera module, it is necessary to detect whether the shooting mode of the camera module is front shooting or rear shooting.
  • a special detection device is usually added to the mobile terminal to identify the shooting mode of the camera module.
  • this method usually requires additional corrections to the appearance of the mobile terminal (such as digging holes, reserved contact points, etc.) Install the detection device.
  • the embodiment of the present invention provides a mobile terminal, a method for detecting a shooting mode, and a storage medium, which can realize the detection of the shooting mode of a mobile terminal with a detachable camera module.
  • a mobile terminal including:
  • a terminal body the terminal body having a placement part where the camera module can be placed;
  • a camera module detachably connected to the terminal body
  • a first Hall sensor and a second Hall sensor, the first Hall sensor and the second Hall sensor are respectively electrically connected to the processor built in the terminal body and fixedly arranged on the terminal body The side where the placement part is located;
  • a magnetic structure element the magnetic structure element is fixed to an end of the camera module close to the placement portion, and when the camera module is placed on the placement portion, the magnetic structure element and the first The Er sensor or the second Hall sensor are opposed to each other.
  • a method for detecting a shooting mode is provided, which is applied to the mobile terminal described in the first aspect, and the method includes:
  • a shooting mode of the camera module is determined, and the shooting mode includes a front shooting mode or a rear shooting mode.
  • An acquiring module configured to acquire a first magnetic field strength signal output by the first Hall sensor and a second magnetic field strength signal output by the second Hall sensor;
  • the determining module is configured to determine a shooting mode of the camera module according to the first magnetic field strength signal and the second magnetic field strength signal, and the shooting mode includes a front shooting mode or a rear shooting mode.
  • a mobile terminal including: a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • the computer program is executed by the processor to implement the first The steps of the method described in the second aspect.
  • a computer-readable storage medium is provided, and a computer program is stored on the computer-readable storage medium, and the computer program implements the steps of the method described in the second aspect when the computer program is executed by a processor.
  • the magnetic structural element is arranged on the camera module that is detachable from the terminal body and only faces one of the Hall sensors when the camera module is placed on the placement part, the camera module is When placed in the placement portion of the terminal body in a different manner, the Hall sensor opposite to the magnetic structure element is different, so the first Hall sensor and the second Hall sensor respectively detect different magnetic field strengths of the magnetic structure element. Therefore, in practical applications, the magnetic field intensity detected by the first Hall sensor and the second Hall sensor can be used to determine the Hall sensor opposite to the magnetic structure element.
  • the built-in processor of the terminal body can be based on the first Hall sensor and the second Hall sensor.
  • the magnetic field intensity signals output by the respective sensors determine the shooting mode of the camera module. That is to say, in the mobile terminal of the embodiment of the present invention, the shooting mode of the camera module can be judged only by setting the Hall sensor and the magnetic structural element, the judgment logic is simple, the cost is low, and there is no need to control the mobile terminal. Make additional changes to the appearance of the mobile terminal to preserve the expressiveness of the mobile terminal.
  • FIG. 1 is a side view of a mobile terminal provided by an embodiment of the present invention
  • FIG. 2 is a top view of a mobile terminal provided by an embodiment of the present invention, wherein the shooting mode of the camera module is a rear shooting mode;
  • FIG. 3 is a top view of a mobile terminal according to an embodiment of the present invention, wherein the shooting mode of the camera module is a front shooting mode;
  • FIG. 4 is a flowchart of a method for detecting a shooting mode according to an embodiment of the present invention
  • FIG. 5 is a flowchart of another method for detecting a shooting mode according to an embodiment of the present invention.
  • FIG. 6 is a block diagram of a mobile terminal provided by an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of the hardware structure of a mobile terminal provided by an embodiment of the present invention.
  • an embodiment of the present invention provides a mobile terminal.
  • the mobile terminal may specifically include: a terminal body 10, a camera module 20 detachably connected to the terminal body 10, a first Hall sensor 31, and a second Hall sensor 32 and magnetic structure element 40.
  • the terminal body 10 has a placement portion 11 where the camera module 20 can be placed, and the terminal body 10 has a built-in processor 12.
  • the first Hall sensor 31 and the second Hall sensor 32 are respectively electrically connected to the processor 12 built in the terminal body 10 and fixedly arranged on the side where the placement portion 11 of the terminal body 10 is located.
  • the magnetic structure element 40 is fixed to an end of the camera module 20 close to the placing portion 11, and when the camera module 20 is placed on the placing portion 11, the magnetic structure element 40 and the first Hall sensor 31 or the second Hall sensor 32 relatively.
  • the magnetic structure element 40 may be a magnet.
  • the magnetic structural element 40 is disposed on the camera module 20 that is detachable from the terminal body 10 and only faces one of the Hall sensors when the camera module 20 is placed on the placement portion 11, In this way, when the camera module 20 is placed on the placement portion 11 of the terminal body 10 in a different manner, the Hall sensor opposite to the magnetic structure element 40 is different, and therefore the first Hall sensor 31 and the second Hall sensor 32 are different.
  • the magnetic field strengths of the magnetic structural elements detected by each are different.
  • the magnetic field intensity detected by the first Hall sensor 31 and the second Hall sensor 32 can be used to determine the Hall sensor opposite to the magnetic structure element. Since the camera module 20 has a front shooting mode and a rear shooting mode, and the Hall sensor opposite to the magnetic structural element 40 is different in different shooting modes, the processor 12 built in the terminal body 10 can be based on the first Hall sensor The magnetic field intensity signal output by 31 and the magnetic field intensity signal output by the second Hall sensor 32 determine the shooting mode of the camera module 20. That is to say, in the mobile terminal of the embodiment of the present invention, the shooting mode of the camera module can be judged only by setting the Hall sensor and the magnetic structural element. The judgment logic is simple, the cost is low, and the appearance of the mobile terminal is not required. Make additional rectifications to preserve the appearance and expressiveness of the mobile terminal.
  • the terminal body 10 further includes a display screen 13, and the camera module 20 includes a camera 21.
  • the orientation of the camera 21 is opposite to the orientation of the display screen 13.
  • the orientation of the camera 21 and the orientation of the display screen 13 are the same.
  • the camera module 20 is placed on the placement part 11.
  • the magnetic structure element 40 is opposite to the first Hall sensor 31;
  • the magnetic structure element 40 is opposite to the second Hall sensor 32.
  • the orientation of the camera 21 is different with respect to the orientation of the display screen 13, and the Hall sensor opposite to the magnetic structure element 40 is different, so the Hall sensor opposite to the magnetic structure element 40 detects The intensity of the magnetic field obtained is higher, while the intensity of the magnetic field detected by the other Hall sensor is smaller.
  • the first Hall sensor 31 and the second Hall sensor 32 respectively output corresponding magnetic field strength signals to the processor 12 based on the respective detected magnetic field strengths of the magnetic structure elements 40.
  • the processor 12 may obtain the first magnetic field strength signal output by the first Hall sensor 31 and the second magnetic field strength signal output by the second Hall sensor 32, and determine the camera module according to the first magnetic field strength signal and the second magnetic field strength signal 20 shooting modes.
  • the first Hall sensor 31 and the second Hall sensor 32 respectively detect that the magnetic field strength E of the magnetic structure element 40 is small At this time, the first magnetic field intensity signal INT1 output by the first Hall sensor 31 and the second magnetic field intensity signal INT2 output by the second Hall sensor 32 are both first-level signals.
  • the first Hall sensor 31 detects that the magnetic field strength of the magnetic structure element 40 increases, and when the magnetic field strength E reaches the trigger threshold field strength E0 of the first Hall sensor 31, the first magnetic field strength output by the first Hall sensor 31
  • the signal INT1 is a second level signal, and at this time the second Hall sensor 32 detects that the magnetic field strength E of the magnetic structure element 40 is small, the output second magnetic field strength signal INT2 is still the first level signal.
  • the second Hall sensor 32 detects the magnetic structure element 40.
  • the second magnetic field strength signal INT2 output by the second Hall sensor 32 is a second level signal.
  • the first Hall sensor 31 detects that the magnetic field strength E of the magnetic structure element 40 is small, and the output first magnetic field strength signal INT1 is still the first level signal.
  • the first level signal and the second level signal are signals of different levels, and when the first level signal is a high level signal, the second level signal is a low level signal; or When the one-level signal is a low-level signal, the second-level signal is a high-level signal.
  • the processor 12 can determine the shooting mode of the camera module 20 according to the first magnetic field intensity signal output by the first Hall sensor 31 and the second magnetic field intensity signal output by the second Hall sensor 32. Specifically, the processor 12 is specifically configured to: when the first magnetic field strength signal is a first level signal and the second magnetic field strength signal is a second level signal, determine that the shooting mode of the camera module 20 is pre-shooting Mode; In the case where the first magnetic field strength signal is a second level signal and the second magnetic field strength signal is a first level signal, it is determined that the shooting mode of the camera module 20 is the post shooting mode.
  • the processor 12 only uses the first magnetic field intensity signal output by the first Hall sensor 31 and the second magnetic field intensity signal output by the second Hall sensor 32 to determine the shooting mode of the camera module 20, and the judgment logic is It is simple, low-cost, and does not require additional rectification of the appearance of the mobile terminal, which retains the appearance and expressiveness of the mobile terminal.
  • the processor 12 may also be configured to provide that the first magnetic field intensity signal output by the first Hall sensor 31 and the second magnetic field intensity signal output by the second sensor 32 are both at the first level. In the case of a signal, turn off the shooting function of the mobile terminal.
  • the magnetic structure element 40 when the camera module 20 is moving away from the terminal body 10, the magnetic structure element 40 is getting farther and farther away from the first Hall sensor 31 and the second Hall sensor 32, and the first Hall sensor 31 And the second hall sensor 32 respectively detect that the magnetic field strength of the magnetic structure element 40 is reduced, and then the first magnetic field strength signal output by the first hall sensor 31 and the second magnetic field strength signal output by the second hall sensor 32 are both It is the first level signal.
  • the processor 12 obtains that the first magnetic field intensity signal output by the first Hall sensor 31 and the second magnetic field intensity signal output by the second Hall sensor 32 are both the first level signal, it can determine the camera module 20 is separated from the terminal body 10. At this time, by turning off the shooting function of the mobile terminal, the power consumption of the mobile terminal by the camera module and the occupation of system resources can be reduced, and the endurance of the mobile terminal can be improved.
  • the processor 12 may also be used to adjust the shooting parameters of the camera module 20 according to the shooting mode after the shooting mode of the camera module 20 is determined.
  • the shooting parameters may include, but are not limited to, at least one of the following: shooting speed, resolution, focal length, viewing angle, and so on.
  • the processor 12 of the mobile terminal adjusts the shooting parameters of the camera module 20 based on the shooting mode of the camera module 20, which can improve the shooting quality and shooting efficiency of the camera module in the corresponding shooting mode.
  • the first Hall sensor 31 and the second Hall sensor 32 may be relative to the terminal body 10.
  • the center line is symmetrically distributed on both sides. Therefore, by separating the first Hall sensor 31 and the second Hall sensor 32, it is possible to prevent the first Hall sensor 31 and the second Hall sensor 32 from being too close to cause the difference in the magnetic field intensity signals output by each. Small, so based on the first magnetic field strength signal output by the first Hall sensor 31 and the second magnetic field strength signal output by the second Hall sensor 32, it can be effectively and accurately identified that the shooting mode of the camera module 20 is the front shooting mode Still the rear shooting mode.
  • an embodiment of the present invention provides a method for detecting a shooting mode.
  • the method can be applied to the mobile terminal described in the foregoing embodiment of the present invention.
  • the method may specifically include:
  • Step 401 Obtain a first magnetic field intensity signal output by the first Hall sensor and a second magnetic field intensity signal output by the second Hall sensor.
  • Step 402 Determine a shooting mode of the camera module according to the first magnetic field strength signal and the second magnetic field strength signal, wherein the shooting mode includes a front shooting mode or a rear shooting mode.
  • the magnetic structural element is arranged on the camera module that is detachable from the terminal body and only faces one of the Hall sensors when the camera module is placed on the placement part, the When the module is placed in the placement part of the terminal body in a different way, the Hall sensor opposite to the magnetic structure element is different, so the magnetic field intensity of the magnetic structure element detected by the first Hall sensor and the second Hall sensor is different. different. Therefore, in practical applications, the magnetic field intensity detected by the first Hall sensor and the second Hall sensor can be used to determine the Hall sensor opposite to the magnetic structure element.
  • the built-in processor of the terminal body can be based on the first Hall sensor and the second Hall sensor.
  • the magnetic field intensity signals output by the respective sensors determine the shooting mode of the camera module. That is to say, in the mobile terminal of the embodiment of the present invention, the shooting mode of the camera module can be judged only by setting the Hall sensor and the magnetic structural element. The judgment logic is simple, the cost is low, and the appearance of the mobile terminal is not required. Make additional rectifications to preserve the appearance and expressiveness of the mobile terminal.
  • the orientation of the camera in the rear shooting mode, is opposite to the orientation of the display screen; in the front shooting mode, the orientation of the camera The same orientation as the display.
  • the camera module is placed on the placement part; when the orientation of the camera of the camera module is opposite to the orientation of the display screen of the terminal body, the magnetic structural element and the first Hall sensor Opposite; when the orientation of the camera is the same as the orientation of the display screen, the magnetic structural element is opposite to the second Hall sensor.
  • step 402 may include:
  • the shooting mode of the module is the front shooting mode.
  • the user can take the camera module close to the placement part of the terminal body. If the orientation of the camera is the same as the orientation of the display screen, the magnetic structure element will be more and more distant from the second Hall sensor as the camera module approaches the terminal body. Recently, the magnetic field strength of the magnetic structure element detected by the second Hall sensor increases. When the magnetic field strength reaches the trigger threshold field strength of the second Hall sensor, the second magnetic field strength signal INT2 output by the second Hall sensor changes from the first The one-level signal changes to the second-level signal. At this time, the magnetic field intensity of the magnetic structure element detected by the first Hall sensor is still small, and the first magnetic field intensity signal INT1 output by the first Hall sensor is still the first-level signal.
  • the shooting mode of the camera module is the rear shooting mode.
  • the user can take the camera module close to the placement part of the terminal body. If the orientation of the camera is opposite to the orientation of the display screen, the magnetic structure element is more and more distant from the first Hall sensor as the camera module approaches the terminal body. Recently, the magnetic field strength of the magnetic structure element detected by the first Hall sensor increases. When the magnetic field strength reaches the trigger threshold field strength of the first Hall sensor, the first magnetic field strength signal INT1 output by the first Hall sensor is changed from the first hall sensor to the first magnetic field strength signal INT1. The one-level signal changes to the second-level signal. At this time, the magnetic field intensity of the magnetic structure element detected by the second Hall sensor is still small, and the second magnetic field intensity signal INT2 output by the second Hall sensor is still the first-level signal.
  • the first level signal and the second level signal are signals of different levels, and when the first level signal is a high level signal, the second level signal is a low level signal. A level signal, or, when the first level signal is a low level signal, the second level signal is a high level signal.
  • the first magnetic field intensity signal output by the first Hall sensor and the second magnetic field intensity signal output by the second Hall sensor are used to determine the shooting mode of the camera module.
  • the judgment logic is simple, the cost is low, and There is no need to make additional rectifications on the appearance of the mobile terminal, and the appearance and expressiveness of the mobile terminal is retained.
  • a method for detecting a shooting mode provided by an embodiment of the present invention, after the above step 402, the method further includes:
  • Step 403 Adjust the shooting parameters of the camera module according to the shooting mode of the camera module.
  • the shooting parameters may include, but are not limited to, at least one of the following: shooting speed, resolution, focal length, viewing angle, and so on.
  • the shooting parameters of the camera module based on the shooting mode of the camera module, the shooting quality and shooting efficiency of the camera module in the corresponding shooting mode can be improved.
  • a method for detecting a shooting mode provided by an embodiment of the present invention, after the above step 402, the method further includes:
  • Step 404 When the first magnetic field strength signal and the second magnetic field strength signal are both the first level signal, turn off the shooting function of the mobile terminal.
  • an embodiment of the present invention also provides a mobile terminal.
  • the mobile terminal may include, but is not limited to, any of a mobile phone, a tablet computer, a smart wearable device, and a personal digital assistant (PDA).
  • the mobile terminal 600 may include: an acquisition module 601 and a determination module 602.
  • the acquiring module 601 is configured to acquire the first magnetic field intensity signal output by the first Hall sensor and the second magnetic field intensity signal output by the second Hall sensor.
  • the determining module 602 is configured to determine a shooting mode of the camera module according to the first magnetic field strength signal and the second magnetic field strength signal, and the shooting mode includes a front shooting mode or a rear shooting mode.
  • the mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of FIGS. 4 to 5, and to avoid repetition, details are not described herein again.
  • the magnetic structural element is arranged on the camera module that is detachable from the terminal body and only faces one of the Hall sensors when the camera module is placed on the placement part, the When the module is placed in the placement part of the terminal body in a different way, the Hall sensor opposite to the magnetic structure element is different, so the first Hall sensor and the second Hall sensor respectively detect the magnetic field strength of the magnetic structure element different. Therefore, in practical applications, the magnetic field intensity detected by the first Hall sensor and the second Hall sensor can be used to determine the Hall sensor opposite to the magnetic structure element.
  • the built-in processor of the terminal body can be based on the first Hall sensor and the second Hall sensor.
  • the magnetic field intensity signals output by the respective sensors determine the shooting mode of the camera module. That is to say, in the mobile terminal of the embodiment of the present invention, the shooting mode of the camera module can be judged only by setting the Hall sensor and the magnetic structural element. The judgment logic is simple, the cost is low, and there is no need to control the mobile terminal. Make additional changes to the appearance of the mobile terminal to preserve the expressiveness of the mobile terminal.
  • the camera module is placed on the placement part; when the orientation of the camera of the camera module is opposite to the orientation of the display screen of the terminal body, the magnetic structural element is A Hall sensor is opposite; when the orientation of the camera is the same as the orientation of the display screen, the magnetic structure element is opposite to the second Hall sensor;
  • the determining module 602 is specifically configured to:
  • the shooting mode of the camera module is the pre-shooting mode
  • the shooting mode of the camera module is the rear Shooting mode
  • the second level signal when the first level signal is a high level signal, the second level signal is a low level signal, or, when the first level signal is a low level signal , The second level signal is a high level signal.
  • the first magnetic field intensity signal output by the first Hall sensor and the second magnetic field intensity signal output by the second Hall sensor are used to determine the shooting mode of the camera module.
  • the judgment logic is simple, the cost is low, and There is no need to make additional corrections to the appearance of the mobile terminal, and the appearance and expressiveness of the mobile terminal is retained.
  • the device 600 further includes:
  • the adjustment module is configured to adjust the shooting parameters of the camera module according to the shooting mode of the camera module, wherein the shooting parameters include at least one of the following: shooting speed, resolution, focal length, and angle of view.
  • the shooting parameters of the camera module based on the shooting mode of the camera module, the shooting quality and shooting efficiency of the camera module in the corresponding shooting mode can be improved.
  • the shutdown module is configured to turn off the shooting function of the mobile terminal when the first magnetic field strength signal and the second magnetic field strength signal are both the first level signal.
  • FIG. 7 is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present invention.
  • the mobile terminal 100 includes the terminal body according to any of the above-mentioned embodiments of the present invention, a camera module detachably connected to the terminal body, and
  • the first Hall sensor, the second Hall sensor and the magnetic structure element also include but are not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107 , The interface unit 108, the memory 109, the processor 110, and the power supply 111, among which these modules or units may be built in the terminal body.
  • the interface unit 108, the memory 109, the processor 110, and the power supply 111 among which these modules or units may be built in the terminal body.
  • mobile terminal 7 does not constitute a limitation on the mobile terminal.
  • the mobile terminal may include more or less components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • mobile terminals include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
  • the processor 110 is configured to obtain a first magnetic field strength signal output by the first Hall sensor and a second magnetic field strength signal output by the second Hall sensor; according to the first magnetic field strength signal and the The second magnetic field strength signal determines the shooting mode of the camera module, and the shooting mode includes a front shooting mode or a rear shooting mode.
  • the magnetic structural element is arranged on the camera module that is detachable from the terminal body and only faces one of the Hall sensors when the camera module is placed on the placement part, the camera module is placed on the terminal body in different ways
  • the Hall sensor opposite to the magnetic structure element is different, and therefore the magnetic field strengths of the magnetic structure element detected by the first Hall sensor and the second Hall sensor are different. Therefore, in practical applications, the magnetic field intensity detected by the first Hall sensor and the second Hall sensor can be used to determine the Hall sensor opposite to the magnetic structure element.
  • the built-in processor of the terminal body can be based on the first Hall sensor and the second Hall sensor.
  • the magnetic field intensity signals output by the respective sensors determine the shooting mode of the camera module. That is to say, in the mobile terminal of the embodiment of the present invention, the shooting mode of the camera module can be judged only by setting the Hall sensor and the magnetic structural element. The judgment logic is simple, the cost is low, and the appearance of the mobile terminal is not required. Make additional rectifications to preserve the appearance and expressiveness of the mobile terminal.
  • the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
  • the mobile terminal provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 104 is used to receive audio or video signals.
  • the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame can be displayed on the display unit 106.
  • the image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102.
  • the microphone 1042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
  • the mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 1061 and the display panel 1061 when the mobile terminal 100 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 106 is used to display information input by the user or information provided to the user.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the mobile terminal.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072.
  • the touch panel 1071 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operate).
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed.
  • the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 107 may also include other input devices 1072.
  • other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 1071 can be overlaid on the display panel 1061.
  • the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 1061.
  • the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated
  • the implementation of the input and output functions of the mobile terminal is not specifically limited here.
  • the interface unit 108 is an interface for connecting an external device with the mobile terminal 100.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the mobile terminal 100 or can be used to connect to the mobile terminal 100 and external Transfer data between devices.
  • the memory 109 can be used to store software programs and various data.
  • the memory 109 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 110 is the control center of the mobile terminal. It uses various interfaces and lines to connect the various parts of the entire mobile terminal, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109. , Perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole.
  • the processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
  • the mobile terminal 100 may also include a power source 111 (such as a battery) for supplying power to various components.
  • a power source 111 such as a battery
  • the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
  • the mobile terminal 100 includes some functional modules not shown, which will not be repeated here.
  • the embodiment of the present invention also provides a mobile terminal, including a processor 110, a memory 109, a computer program stored in the memory 109 and capable of running on the processor 110, and when the computer program is executed by the processor 110
  • a mobile terminal including a processor 110, a memory 109, a computer program stored in the memory 109 and capable of running on the processor 110, and when the computer program is executed by the processor 110
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above-mentioned shooting mode detection method embodiment is realized, and the same can be achieved. In order to avoid repetition, I won’t repeat them here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk, or optical disk, etc.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present invention.
  • a terminal which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Remote Sensing (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Geology (AREA)
  • Electromagnetism (AREA)
  • Environmental & Geological Engineering (AREA)
  • General Life Sciences & Earth Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Geophysics (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)
  • Telephone Function (AREA)

Abstract

本发明公开了一种移动终端、拍摄模式的检测方法及存储介质。所述移动终端包括:终端本体,所述终端本体具有可放置所述摄像头模组的放置部;与所述终端本体可分离连接的摄像头模组;第一霍尔传感器和第二霍尔传感器,所述第一霍尔传感器和所述第二霍尔传感器分别与所述终端本体内置的处理器电连接且固定设置于所述终端本体的所述放置部所在的一侧;磁性结构元件,所述磁性结构元件固定于所述摄像头模组靠近所述放置部的一端,且在所述摄像头模组放置在所述放置部的情况下,所述磁性结构元件与所述第一霍尔传感器或所述第二霍尔传感器相对。

Description

移动终端、拍摄模式的检测方法及存储介质
相关申请的交叉引用
本申请主张在2020年01月22日在中国提交的中国专利申请号No.202010073817.7的优先权,其全部内容通过引用包含于此。
技术领域
本发明涉及通信技术领域,尤其涉及一种移动终端、拍摄模式的检测方法及存储介质。
背景技术
随着无线传输技术的发展,移动终端已成为人们生活中不可或缺的一部分。为了减少摄像头模组对移动终端空间的占用,以实现对整个移动终端的工业设计提供更多表现空间,分离式摄像头的概念应运而生。分离式摄像头,即移动终端只配备一个可分离且可独立工作的摄像头模组,来实现原有的摄像头后置拍摄和前置拍摄功能。
由于摄像头前置拍摄和后置拍摄两者的拍摄参数有差异,为了保证摄像头模组正常工作,需要检测摄像头模组的拍摄模式是前置拍摄还是后置拍摄。相关技术中通常采用在移动终端中增设专用的检测装置来识别摄像头模组的拍摄模式,然而这种方式通常需要对移动终端的外观做额外的整改(如挖孔、预留接触点等)以便安装该检测装置。
发明内容
本发明实施例提供一种移动终端、拍摄模式的检测方法及存储介质,能够实现对具有可分离摄像头模组的移动终端的拍摄模式的检测。
本发明实施例采用下述技术方案:
第一方面,提供了一种移动终端,包括:
终端本体,所述终端本体具有可放置所述摄像头模组的放置部;
与所述终端本体可分离连接的摄像头模组;
第一霍尔传感器和第二霍尔传感器,所述第一霍尔传感器和所述第二霍尔传感器分别与所述终端本体内置的处理器电连接且固定设置于所述终端本体的所述放置部所在的一侧;
磁性结构元件,所述磁性结构元件固定于所述摄像头模组靠近所述放置部的一端,且当所述摄像头模组放置在所述放置部时,所述磁性结构元件与所述第一霍尔传感器或所述第二霍尔传感器相对。
第二方面,提供了一种拍摄模式的检测方法,应用于第一方面所述的移动终端,所述方法包括:
获取所述第一霍尔传感器输出的第一磁场强度信号和所述第二霍尔传感器输出的第二磁场强度信号;
根据所述第一磁场强度信号和所述第二磁场强度信号,确定所述摄像头模组的拍 摄模式,所述拍摄模式包括前置拍摄模式或后置拍摄模式。
第三方面,提供了一种移动终端,所述移动终端为第一方面所述的移动终端,所述移动终端包括:
获取模块,用于获取所述第一霍尔传感器输出的第一磁场强度信号和所述第二霍尔传感器输出的第二磁场强度信号;
确定模块,用于根据所述第一磁场强度信号和所述第二磁场强度信号,确定所述摄像头模组的拍摄模式,所述拍摄模式包括前置拍摄模式或后置拍摄模式。
第四方面,提供了一种移动终端,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现第二方面所述的方法的步骤。
第五方面,提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现第二方面所述的方法的步骤。
在本发明实施例中,由于磁性结构元件设置在与终端本体可分离的摄像头模组上且在摄像头模组放置在放置部上的情况下仅与其中一个霍尔传感器相对,在摄像头模组以不同的方式放置在终端本体的放置部的情况下,与磁性结构元件相对的霍尔传感器不同,因而第一霍尔传感器和第二霍尔传感器各自检测到的磁性结构元件的磁场强度不同。由此,在实际应用中,第一霍尔传感器和第二霍尔传感器各自检测到的磁场强度可以用于确定与磁性结构元件相对的霍尔传感器。由于摄像头模组具有前置拍摄模式和后置拍摄模式,而不同拍摄模式下与磁性结构元件相对的霍尔传感器不同,因而终端本体内置的处理器则可以根据第一霍尔传感器和第二霍尔传感器各自输出的磁场强度信号判断摄像头模组的拍摄模式。也就是说,本发明实施例的移动终端中,仅通过设置霍尔传感器和磁性结构元件就可以判断所述摄像头模组所处的拍摄模式,判断逻辑简单,成本低,且不需要对移动终端的外观做额外的整改,可以保留移动终端的外观表现力。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1为本发明实施例提供的一种移动终端的侧视图;
图2为本发明实施例提供的一种移动终端的俯视图,其中,所述摄像头模组的拍摄模式为后置拍摄模式;
图3为本发明实施例提供的一种移动终端的俯视图,其中,所述摄像头模组的拍摄模式为前置拍摄模式;
图4为本发明实施例提供的一种拍摄模式的检测方法的流程图;
图5为本发明实施例提供的另一种拍摄模式的检测方法的流程图;
图6为本发明实施例提供的一种移动终端的框图;
图7为本发明实施例提供的一种移动终端的硬件结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地 描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
以下结合附图,详细说明本发明各实施例提供的技术方案。
参照图1至图3,本发明实施例提供一种移动终端,该移动终端具体可以包括:终端本体10、与终端本体10可分离连接的摄像头模组20、第一霍尔传感器31、第二霍尔传感器32以及磁性结构元件40。
其中,终端本体10具有可放置摄像头模组20的放置部11且终端本体10内置有处理器12。
第一霍尔传感器31和第二霍尔传感器32分别与终端本体10内置的处理器12电连接且固定设置于终端本体10的放置部11所在的一侧。
磁性结构元件40固定于摄像头模组20靠近放置部11的一端,且在摄像头模组20放置在放置部11的情况下,磁性结构元件40与第一霍尔传感器31或第二霍尔传感器32相对。示例地,磁性结构元件40可以为磁铁。
在本发明实施例中,由于磁性结构元件40设置在与终端本体10可分离的摄像头模组20上且在摄像头模组20放置在放置部11上的情况下仅与其中一个霍尔传感器相对,这样,在摄像头模组20以不同的方式放置在终端本体10的放置部11的情况下,与磁性结构元件40相对的霍尔传感器不同,因而第一霍尔传感器31和第二霍尔传感器32各自检测到的磁性结构元件的磁场强度不同。
由此,在实际应用中,第一霍尔传感器31和第二霍尔传感器32各自检测到的磁场强度可以用于确定与磁性结构元件相对的霍尔传感器。由于摄像头模组20具有前置拍摄模式和后置拍摄模式,而不同拍摄模式下与磁性结构元件40相对的霍尔传感器不同,因而终端本体10内置的处理器12则可以根据第一霍尔传感器31输出的磁场强度信号和第二霍尔传感器32输出的磁场强度信号判断摄像头模组20的拍摄模式。也就是说,本发明实施例的移动终端中,仅通过设置霍尔传感器和磁性结构元件就可以判断所述摄像头模组的拍摄模式,判断逻辑简单,成本低,且不需要对移动终端的外观做额外的整改,可以保留移动终端的外观表现力。
在本发明实施例中,终端本体10还包括显示屏13,摄像头模组20包括摄像头21,其中,如图1所示,在后置拍摄模式下,摄像头21的朝向与显示屏13的朝向相反;在前置拍摄模式下,摄像头21的朝向与显示屏13的朝向相同。如图1和图2所示,摄像头模组20放置在放置部11上,在摄像头21的朝向与显示屏13的朝向相反的情况下,磁性结构元件40与第一霍尔传感器31相对;如图1和图3所示,在摄像头21的朝向与显示屏13的朝向相反的情况下,磁性结构元件40与第二霍尔传感器32相对。
由于在摄像头模组20处于不同的拍摄模式下,摄像头21的朝向相对于显示屏13的朝向不同,与磁性结构元件40相对的霍尔传感器不同,因而与磁性结构元件40相对的霍尔传感器检测到的磁场强度较高,而另一个霍尔传感器检测到的磁场强度较小。相应地,第一霍尔传感器31和第二霍尔传感器32分别基于各自检测到的磁性结构元件40的磁场强度输出相应的磁场强度信号至处理器12。处理器12可获取第一霍尔传感器31输出的第一磁场强度信号和第二霍尔传感器32输出的第二磁场强度信号,并根据第一磁场强度信 号和第二磁场强度信号确定摄像头模组20的拍摄模式。
以图1至图3为例示意,在摄像头模组20距离终端本体10较远时,第一霍尔传感器31和第二霍尔传感器32分别检测到磁性结构元件40的磁场强度E均较小,此时,第一霍尔传感器31输出的第一磁场强度信号INT1和第二霍尔传感器32输出的第二磁场强度信号INT2均为第一电平信号。
如图1和图2所示,在摄像头模组20靠近终端本体10的过程中,若摄像头21的朝向与显示屏13的朝向相反,磁性结构元件40与第一霍尔传感器31的距离减小,第一霍尔传感器31检测到磁性结构元件40的磁场强度增大,当磁场强度E达到第一霍尔传感器31的触发门限场强E0时,第一霍尔传感器31输出的第一磁场强度信号INT1为第二电平信号,而此时第二霍尔传感器32检测到磁性结构元件40的磁场强度E较小,则输出的第二磁场强度信号INT2仍为第一电平信号。
如图1和图3所示,若摄像头21的朝向与显示屏13的朝向相同,磁性结构元件40与第二霍尔传感器31的距离减小,第二霍尔传感器32检测到磁性结构元件40的磁场强度E增大,当磁场强度E达到第二霍尔传感器32的触发门限场强E0时,第二霍尔传感器32输出的第二磁场强度信号INT2为第二电平信号,而此时第一霍尔传感器31检测到磁性结构元件40的磁场强度E较小,则输出的第一磁场强度信号INT1仍为第一电平信号。其中,第一电平信号和第二电平信号为不同的电平信号,在第一电平信号为高电平信号的情况下,第二电平信号为低电平信号;或者,在第一电平信号为低电平信号的情况下,第二电平信号为高电平信号。
相应地,处理器12可根据第一霍尔传感器31输出的第一磁场强度信号和第二霍尔传感器32输出的第二磁场强度信号来判断摄像头模组20的拍摄模式。具体地,处理器12具体用于:在第一磁场强度信号为第一电平信号且第二磁场强度信号为第二电平信号的情况下,确定摄像头模组20的拍摄模式为前置拍摄模式;在第一磁场强度信号为第二电平信号且第二磁场强度信号为第一电平信号的情况下,确定摄像头模组20的拍摄模式为后置拍摄模式。
在本发明实施例中,处理器12仅通过第一霍尔传感器31输出的第一磁场强度信号和第二霍尔传感器32输出的第二磁场强度信号确定摄像头模组20的拍摄模式,判断逻辑简单,成本低,且无需对移动终端外观进行额外的整改,保留了移动终端的外观表现力。
进一步地,在本发明实施例中,处理器12还可用于在第一霍尔传感器31输出的第一磁场强度信号和第二传感器32输出的第二磁场强度信号均为所述第一电平信号的情况下,关闭移动终端的拍摄功能。
继续参见图1至图3,在摄像头模组20远离终端本体10的过程中,磁性结构元件40距离第一霍尔传感器31和第二霍尔传感器32越来越远,第一霍尔传感器31和第二霍尔传感器32分别检测到磁性结构元件40的磁场强度均减小,进而第一霍尔传感器31输出的第一磁场强度信号和第二霍尔传感器32输出的第二磁场强度信号均为第一电平信号。基于此,处理器12在获取到第一霍尔传感器31输出的第一磁场强度信号和第二霍尔传感器32输出的第二磁场强度信号均为第一电平信号时,可判断摄像头模组20与终端本体10相分离,此时,通过关闭移动终端的拍摄功能可以减少摄像头模组对移动终端电量的消耗以及系统资源的占用,提升移动终端续航能力。
进一步地,在本发明实施例中,处理器12还可用于在确定出摄像头模组20的拍摄模式后,根据所述拍摄模式调整摄像头模组20的拍摄参数。其中,拍摄参数可以例如包括但不限于以下至少一项:拍摄速度、分辨率、焦距、视角等。
由此,移动终端的处理器12基于摄像头模组20的拍摄模式调整摄像头模组20的拍摄参数,可以提升摄像头模组在相应拍摄模式下的拍摄质量和拍摄效率。
在本发明实施例中,如图2和图3所示,为了提升对摄像头模组所处的拍摄模式的准确性,第一霍尔传感器31和第二霍尔传感器32可相对于终端本体10的中心线两侧对称分布。由此,通过将第一霍尔传感器31和第二霍尔传感器32分隔开,可以避免第一霍尔传感器31和第二霍尔传感器32因距离过近而导致各自输出的磁场强度信号差别较小,从而基于第一霍尔传感器31输出的第一磁场强度信号和第二霍尔传感器32输出的第二磁场强度信号能够有效且准确识别出摄像头模组20的拍摄模式是前置拍摄模式还是后置拍摄模式。
参照图4,本发明实施例提供一种拍摄模式的检测方法,该方法可应用于本发明上述实施例所述的移动终端,该方法具体可以包括:
步骤401、获取所述第一霍尔传感器输出的第一磁场强度信号和所述第二霍尔传感器输出的第二磁场强度信号。
步骤402、根据所述第一磁场强度信号和所述第二磁场强度信号,确定所述摄像头模组的拍摄模式,其中,所述拍摄模式包括前置拍摄模式或后置拍摄模式。
在本发明实施例中,由于磁性结构元件设置在与终端本体可分离的摄像头模组上且在摄像头模组放置在放置部上的情况下仅与其中一个霍尔传感器相对,由此,在摄像头模组以不同的方式放置在终端本体的放置部的情况下,与磁性结构元件相对的霍尔传感器不同,因而第一霍尔传感器和第二霍尔传感器各自检测到的磁性结构元件的磁场强度不同。由此,在实际应用中,第一霍尔传感器和第二霍尔传感器各自检测到的磁场强度可以用于确定与磁性结构元件相对的霍尔传感器。由于摄像头模组具有前置拍摄模式和后置拍摄模式,而不同拍摄模式下与磁性结构元件相对的霍尔传感器不同,因而终端本体内置的处理器则可以根据第一霍尔传感器和第二霍尔传感器各自输出的磁场强度信号判断摄像头模组所处的拍摄模式。也就是说,本发明实施例的移动终端中,仅通过设置霍尔传感器和磁性结构元件就可以判断所述摄像头模组的拍摄模式,判断逻辑简单,成本低,且不需要对移动终端的外观做额外的整改,可以保留移动终端的外观表现力。
在本发明的一种可选的实施方式中,如上述图1至图3所示,在后置拍摄模式下,摄像头的朝向与显示屏的朝向相反;在前置拍摄模式下,摄像头的朝向与显示屏的朝向相同。所述摄像头模组放置在所述放置部;在所述摄像头模组的摄像头的朝向与所述终端本体的显示屏的朝向相反的情况下,所述磁性结构元件与所述第一霍尔传感器相对;在所述摄像头的朝向与所述显示屏的朝向相同的情况下,所述磁性结构元件与所述第二霍尔传感器相对。
相应地,上述步骤402可以包括:
在所述第一霍尔传感器输出的第一磁场强度信号为第一电平信号且所述第二霍尔传感器输出的第二磁场强度信号为第二电平信号的情况下,确定所述摄像头模组的拍摄模式为所述前置拍摄模式。
示例地,用户可取摄像头模组靠近终端本体的放置部,若摄像头的朝向与显示屏的朝向相同,则在摄像头模组靠近终端本体的过程中,磁性结构元件距离第二霍尔传感器越来越近,第二霍尔传感器检测到的磁性结构元件的磁场强度增大,当磁场强度达到第二霍尔传感器的触发门限场强时,第二霍尔传感器输出的第二磁场强度信号INT2由第一电平信号变化到第二电平信号,而此时第一霍尔传感器检测到的磁性结构元件的磁场强度仍较小,其输出的第一磁场强度信号INT1仍为第一电平信号。
在所述第一霍尔传感器输出的第一磁场强度信号为所述第二电平信号且所述第二霍尔传感器输出的第二磁场强度信号为所述第一电平信号的情况下,确定所述摄像头模组的拍摄模式为所述后置拍摄模式。
示例地,用户可取摄像头模组靠近终端本体的放置部,若摄像头的朝向与显示屏的朝向相反,则在摄像头模组靠近终端本体的过程中,磁性结构元件距离第一霍尔传感器越来越近,第一霍尔传感器检测到的磁性结构元件的磁场强度增大,当磁场强度达到第一霍尔传感器的触发门限场强时,第一霍尔传感器输出的第一磁场强度信号INT1由第一电平信号变化到第二电平信号,而此时第二霍尔传感器检测到的磁性结构元件的磁场强度仍较小,其输出的第二磁场强度信号INT2仍为第一电平信号。
其中,所述第一电平信号和所述第二电平信号为不同的电平信号,在所述第一电平信号为高电平信号的情况下,所述第二电平信号为低电平信号,或者,在所述第一电平信号为低电平信号的情况下,所述第二电平信号为高电平信号。
在本发明实施例中,仅通过第一霍尔传感器输出的第一磁场强度信号和第二霍尔传感器输出的第二磁场强度信号确定摄像头模组的拍摄模式,判断逻辑简单,成本低,且无需对移动终端外观进行额外的整改,保留了移动终端的外观表现力。
如图5所示,在本发明的另一个实施例中,本发明实施例提供的一种拍摄模式的检测方法,在上述步骤402之后,所述方法还包括:
步骤403、根据所述摄像头模组所处的拍摄模式,调整所述摄像头模组的拍摄参数。
其中,拍摄参数可以例如包括但不限于以下至少一项:拍摄速度、分辨率、焦距、视角等。
可以理解,通过基于摄像头模组的拍摄模式调整摄像头模组的拍摄参数,可以提升摄像头模组在相应拍摄模式下的拍摄质量和拍摄效率。
如图5所示,在本发明的另一个实施例中,本发明实施例提供的一种拍摄模式的检测方法,在上述步骤402之后,所述方法还包括:
步骤404、在所述第一磁场强度信号和所述第二磁场强度信号均为所述第一电平信号的情况下,关闭所述移动终端的拍摄功能。
可以理解,通过在获取到第一霍尔传感器输出的第一磁场强度信号和第二霍尔传感器输出的第二磁场强度信号均为第一电平信号的情况下,可判定摄像头模组与终端本体相分离,此时,通过关闭移动终端的拍摄功能可以减少摄像头模组对移动终端电量的消耗以及系统资源的占用,提升移动终端续航能力。
需要说明的是,对于方法实施例而言,由于其与上述实施例所述的移动终端基本相似,故在此只做简单描述,相关之处可参见上述实施例的部分说明即可。
参照图6,本发明实施例还提供一种移动终端,具体地,所述移动终端可以包括但不 限于手机、平板电脑、智能可穿戴设备、个人数字助理(PDA)中的任一种。移动终端600可以包括:获取模块601和确定模块602。
获取模块601,用于获取所述第一霍尔传感器输出的第一磁场强度信号和所述第二霍尔传感器输出的第二磁场强度信号。
确定模块602,用于根据所述第一磁场强度信号和所述第二磁场强度信号,确定所述摄像头模组的拍摄模式,所述拍摄模式包括前置拍摄模式或后置拍摄模式。
本发明实施例提供的移动终端能够实现图4至图5的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。
在本发明实施例中,由于磁性结构元件设置在与终端本体可分离的摄像头模组上且在摄像头模组放置在放置部上的情况下仅与其中一个霍尔传感器相对,由此,在摄像头模组以不同的方式放置在终端本体的放置部的情况下,与磁性结构元件相对的霍尔传感器不同,因而第一霍尔传感器和第二霍尔传感器各自检测到的磁性结构元件的磁场强度不同。由此,在实际应用中,第一霍尔传感器和第二霍尔传感器各自检测到的磁场强度可以用于确定与磁性结构元件相对的霍尔传感器。由于摄像头模组具有前置拍摄模式和后置拍摄模式,而不同拍摄模式下与磁性结构元件相对的霍尔传感器不同,因而终端本体内置的处理器则可以根据第一霍尔传感器和第二霍尔传感器各自输出的磁场强度信号判断摄像头模组的拍摄模式。也就是说,本发明实施例的移动终端中,仅通过设置霍尔传感器和磁性结构元件就可以判断所述摄像头模组所处的拍摄模式,判断逻辑简单,成本低,且不需要对移动终端的外观做额外的整改,可以保留移动终端的外观表现力。
可选地,所述摄像头模组放置在所述放置部;在所述摄像头模组的摄像头的朝向与所述终端本体的显示屏的朝向相反的情况下,所述磁性结构元件与所述第一霍尔传感器相对;在所述摄像头的朝向与所述显示屏的朝向相同的情况下,所述磁性结构元件与所述第二霍尔传感器相对;
所述确定模块602具体用于:
在所述第一磁场强度信号为第一电平信号且所述第二磁场强度信号为第二电平信号的情况下,确定所述摄像头模组的拍摄模式为所述前置拍摄模式;
在所述第一磁场强度信号为所述第二电平信号且所述第二磁场强度信号为所述第一电平信号的情况下,确定所述摄像头模组的拍摄模式为所述后置拍摄模式;
其中,在所述第一电平信号为高电平信号的情况下,所述第二电平信号为低电平信号,或者,再所述第一电平信号为低电平信号的情况下,所述第二电平信号为高电平信号。
在本发明实施例中,仅通过第一霍尔传感器输出的第一磁场强度信号和第二霍尔传感器输出的第二磁场强度信号确定摄像头模组的拍摄模式,判断逻辑简单,成本低,且无需对移动终端外观进行额外的整改,保留了移动终端的外观表现力。
在本发明的另一个实施例中,所述装置600还包括:
调整模块,用于根据所述摄像头模组的拍摄模式,调整所述摄像头模组的拍摄参数,其中,所述拍摄参数包括以下至少一项:拍摄速度、分辨率、焦距、视角。
可以理解,通过基于摄像头模组所处的拍摄模式调整摄像头模组的拍摄参数,可以提升摄像头模组在相应拍摄模式下的拍摄质量和拍摄效率。
在本发明的另一个实施例中,所述装置600还包括:
关闭模块,用于在所述第一磁场强度信号和所述第二磁场强度信号均为所述第一电平信号的情况下,关闭所述移动终端的拍摄功能。
可以理解,通过在获取到第一霍尔传感器输出的第一磁场强度信号和第二霍尔传感器输出的第二磁场强度信号均为第一电平信号的情况下,可判定摄像头模组与终端本体相分离,此时,通过关闭移动终端的拍摄功能可以减少摄像头模组对移动终端电量的消耗以及系统资源的占用,提升移动终端续航能力。
关于上述实施例中的移动终端,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
图7为实现本发明各个实施例的一种移动终端的硬件结构示意图,该移动终端100包括本发明上述任一实施例所述的终端本体、与所述终端本体可分离连接的摄像头模组、第一霍尔传感器、第二霍尔传感器以及磁性结构元件,还包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件,其中,这些模块或单元可以内置于终端本体内。本领域技术人员可以理解,图7中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。
其中,处理器110,用于获取所述第一霍尔传感器输出的第一磁场强度信号和所述第二霍尔传感器输出的第二磁场强度信号;根据所述第一磁场强度信号和所述第二磁场强度信号,确定所述摄像头模组的拍摄模式,所述拍摄模式包括前置拍摄模式或后置拍摄模式。
由于磁性结构元件设置在与终端本体可分离的摄像头模组上且在摄像头模组放置在放置部上的情况下仅与其中一个霍尔传感器相对,在摄像头模组以不同的方式放置在终端本体的放置部的情况下,与磁性结构元件相对的霍尔传感器不同,因而第一霍尔传感器和第二霍尔传感器各自检测到的磁性结构元件的磁场强度不同。由此,在实际应用中,第一霍尔传感器和第二霍尔传感器各自检测到的磁场强度可以用于确定与磁性结构元件相对的霍尔传感器。由于摄像头模组具有前置拍摄模式和后置拍摄模式,而不同拍摄模式下与磁性结构元件相对的霍尔传感器不同,因而终端本体内置的处理器则可以根据第一霍尔传感器和第二霍尔传感器各自输出的磁场强度信号判断摄像头模组所处的拍摄模式。也就是说,本发明实施例的移动终端中,仅通过设置霍尔传感器和磁性结构元件就可以判断所述摄像头模组的拍摄模式,判断逻辑简单,成本低,且不需要对移动终端的外观做额外的整改,可以保留移动终端的外观表现力。
应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。
移动终端通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存 储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与移动终端100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。
移动终端100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在移动终端100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。
用户输入单元107可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图7中,触控面板1071与显示面板1061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现移动终端的输入和输出功能,具体此处不做限定。
接口单元108为外部装置与移动终端100连接的接口。例如,外部装置可以包括有线 或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端100内的一个或多个元件或者可以用于在移动终端100和外部装置之间传输数据。
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器110是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器110可包括一个或多个处理单元;优选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
移动终端100还可以包括给各个部件供电的电源111(比如电池),优选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,移动终端100包括一些未示出的功能模块,在此不再赘述。
优选的,本发明实施例还提供一种移动终端,包括处理器110,存储器109,存储在存储器109上并可在所述处理器110上运行的计算机程序,该计算机程序被处理器110执行时实现上述拍摄模式的检测方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述拍摄模式的检测方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机, 服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。

Claims (14)

  1. 一种移动终端,包括:
    终端本体,所述终端本体具有可放置摄像头模组的放置部;
    与所述终端本体可分离连接的摄像头模组;
    第一霍尔传感器和第二霍尔传感器,所述第一霍尔传感器和所述第二霍尔传感器分别与所述终端本体内置的处理器电连接且固定设置于所述终端本体的所述放置部所在的一侧;
    磁性结构元件,所述磁性结构元件固定于所述摄像头模组靠近所述放置部的一端,且在所述摄像头模组放置在所述放置部的情况下,所述磁性结构元件与所述第一霍尔传感器或所述第二霍尔传感器相对。
  2. 根据权利要求1所述的移动终端,其中,所述第一霍尔传感器和所述第二霍尔传感器相对于所述终端本体的中心线两侧对称分布。
  3. 根据权利要求1所述的移动终端,其中,所述终端本体包括显示屏,所述摄像头模组包括摄像头;
    所述摄像头模组具有前置拍摄模式和后置拍摄模式;在所述前置拍摄模式下,所述摄像头的朝向与所述显示屏的朝向相同;在所述后置拍摄模式下,所述摄像头的朝向与所述显示屏的朝向相反。
  4. 根据权利要求3所述的移动终端,其中,所述处理器用于:
    获取所述第一霍尔传感器输出的第一磁场强度信号和所述第二霍尔传感器输出的第二磁场强度信号;
    根据所述第一磁场强度信号和所述第二磁场强度信号,确定所述摄像头模组的拍摄模式。
  5. 根据权利要求4所述的移动终端,其中,所述摄像头模组放置在所述放置部;
    在所述摄像头的朝向与所述显示屏的朝向相反的情况下,所述磁性结构元件与所述第一霍尔传感器相对;
    在所述摄像头的朝向与所述显示屏的朝向相同的情况下,所述磁性结构元件与所述第二霍尔传感器相对;
    所述处理器具体用于:
    在所述第一磁场强度信号为第一电平信号且所述第二磁场强度信号为第二电平信号的情况下,确定所述摄像头模组的拍摄模式为前置拍摄模式;
    在所述第一磁场强度信号为所述第二电平信号且所述第二磁场强度信号为所述第一电平信号的情况下,确定所述摄像头模组的拍摄模式为后置拍摄模式;
    其中,在所述第一电平信号为高电平信号的情况下,所述第二电平信号为低电平信号,或者,在所述第一电平信号为低电平信号的情况下,所述第二电平信号为高电平信号。
  6. 根据权利要求5所述的移动终端,其中,
    所述处理器,还用于在所述第一磁场强度信号和所述第二磁场强度信号均为所述第一电平信号的情况下,关闭所述移动终端的拍摄功能。
  7. 根据权利要求4所述的移动终端,其中,
    所述处理器,还用于根据所述拍摄模式调整所述摄像头模组的拍摄参数,其中,所述拍摄参数包括以下至少一项:拍摄速度、分辨率、焦距、视角。
  8. 一种拍摄模式的检测方法,应用于如权利要求1至7中任一项所述的移动终端,所述方法包括:
    获取所述第一霍尔传感器输出的第一磁场强度信号和所述第二霍尔传感器输出的第二磁场强度信号;
    根据所述第一磁场强度信号和所述第二磁场强度信号,确定所述摄像头模组的拍摄模式,所述拍摄模式包括前置拍摄模式或后置拍摄模式。
  9. 根据权利要求8所述的方法,其中,所述摄像头模组放置在所述放置部;在所述摄像头模组的摄像头的朝向与所述终端本体的显示屏的朝向相反的情况下,所述磁性结构元件与所述第一霍尔传感器相对;在所述摄像头的朝向与所述显示屏的朝向相同的情况下,所述磁性结构元件与所述第二霍尔传感器相对;
    所述根据所述第一磁场强度信号和所述第二磁场强度信号,确定所述摄像头模组的拍摄模式,包括:
    在所述第一磁场强度信号为第一电平信号且所述第二磁场强度信号为第二电平信号的情况下,确定所述摄像头模组的拍摄模式为前置拍摄模式;
    在所述第一磁场强度信号为所述第二电平信号且所述第二磁场强度信号为所述第一电平信号的情况下,确定所述摄像头模组的拍摄模式为后置拍摄模式;
    其中,在所述第一电平信号为高电平信号的情况下,所述第二电平信号为低电平信号,或者,在所述第一电平信号为低电平信号的情况下,所述第二电平信号为高电平信号。
  10. 根据权利要求9所述的方法,其中,所述方法还包括:
    在所述第一磁场强度信号和所述第二磁场强度信号均为所述第一电平信号的情况下,关闭所述移动终端的拍摄功能。
  11. 根据权利要求8所述的方法,其中,所述方法还包括:
    根据所述摄像头模组的拍摄模式,调整所述摄像头模组的拍摄参数;
    其中,所述拍摄参数包括以下至少一项:拍摄速度、分辨率、焦距、视角。
  12. 一种移动终端,所述移动终端包括:
    获取模块,用于获取第一霍尔传感器输出的第一磁场强度信号和第二霍尔传感器输出的第二磁场强度信号;
    确定模块,用于根据第一磁场强度信号和第二磁场强度信号,确定摄像头模组的拍摄模式,所述拍摄模式包括前置拍摄模式或后置拍摄模式。
  13. 一种移动终端,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求8至11中任一项所述的方法的步骤。
  14. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求8至11中任一项所述的方法的步骤。
PCT/CN2021/072902 2020-01-22 2021-01-20 移动终端、拍摄模式的检测方法及存储介质 WO2021147911A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP21744020.5A EP4096207A4 (en) 2020-01-22 2021-01-20 MOBILE DEVICE, PROCEDURE FOR DETECTING IMAGE CAPTURE MODE AND STORAGE MEDIA
US17/870,779 US20220360709A1 (en) 2020-01-22 2022-07-21 Mobile terminal, shooting mode detection method, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010073817.7A CN111246061B (zh) 2020-01-22 2020-01-22 移动终端、拍摄模式的检测方法及存储介质
CN202010073817.7 2020-01-22

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/870,779 Continuation US20220360709A1 (en) 2020-01-22 2022-07-21 Mobile terminal, shooting mode detection method, and storage medium

Publications (1)

Publication Number Publication Date
WO2021147911A1 true WO2021147911A1 (zh) 2021-07-29

Family

ID=70876363

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/072902 WO2021147911A1 (zh) 2020-01-22 2021-01-20 移动终端、拍摄模式的检测方法及存储介质

Country Status (4)

Country Link
US (1) US20220360709A1 (zh)
EP (1) EP4096207A4 (zh)
CN (1) CN111246061B (zh)
WO (1) WO2021147911A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111246061B (zh) * 2020-01-22 2021-08-06 维沃移动通信有限公司 移动终端、拍摄模式的检测方法及存储介质
WO2022082465A1 (zh) * 2020-10-20 2022-04-28 深圳市大疆创新科技有限公司 传声组件、传声器、防风件、传声设备以及传声方法
WO2022082464A1 (zh) * 2020-10-20 2022-04-28 深圳市大疆创新科技有限公司 摄像组件、相机、滤镜模组、云台相机以及拍摄方法

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618634A (zh) * 2015-02-12 2015-05-13 深圳市欧珀通信软件有限公司 移动终端及校准摄像头旋转角度的方法
CN106453694A (zh) * 2015-08-10 2017-02-22 华为终端(东莞)有限公司 终端设备
CN106790778A (zh) * 2016-11-16 2017-05-31 广东欧珀移动通信有限公司 一种移动终端的摄像头安装结构及移动终端
CN108924282A (zh) * 2018-06-08 2018-11-30 Oppo广东移动通信有限公司 电子装置和跌落保护控制方法
KR20190021550A (ko) * 2017-08-23 2019-03-06 주식회사 하미코리아 나노 흡착패드를 이용한 이동단말기용 자석 거치대
CN109951702A (zh) * 2019-03-29 2019-06-28 华为技术有限公司 位置检测机构、移动终端及位置检测方法
CN110620830A (zh) * 2018-06-19 2019-12-27 Oppo广东移动通信有限公司 电子装置和跌落保护控制方法
CN111246061A (zh) * 2020-01-22 2020-06-05 维沃移动通信有限公司 移动终端、拍摄模式的检测方法及存储介质

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006295838A (ja) * 2005-04-14 2006-10-26 Fuji Photo Film Co Ltd カメラシステム
CN103475782B (zh) * 2013-09-13 2015-09-30 广东欧珀移动通信有限公司 提供快捷控制功能的方法及移动终端
CN104023105A (zh) * 2014-06-13 2014-09-03 广东欧珀移动通信有限公司 一种移动终端摄像头角度旋转检测装置及其检测方法
CN104320508A (zh) * 2014-10-27 2015-01-28 广东欧珀移动通信有限公司 一种具有旋转摄像头的移动终端及其摄像头角度控制方法
CN104320591B (zh) * 2014-11-21 2018-07-03 广东欧珀移动通信有限公司 一种控制摄像头前后切换的方法、装置和一种智能终端
KR20160085553A (ko) * 2015-01-08 2016-07-18 엘지전자 주식회사 회전 접속부 및 이를 구비한 이동 단말기
CN104601895B (zh) * 2015-02-12 2017-10-17 广东欧珀移动通信有限公司 应用于移动终端的跳闪控制方法及移动终端
CN107613185B (zh) * 2017-11-07 2021-01-26 广东天波信息技术股份有限公司 一种摄像头360°翻转装置
CN107819907B (zh) * 2017-11-14 2019-12-27 维沃移动通信有限公司 一种摄像头控制方法及移动终端
CN109873949A (zh) * 2019-01-31 2019-06-11 维沃移动通信有限公司 一种摄像头控制系统、摄像头控制方法及移动终端
CN110581938B (zh) * 2019-08-06 2024-05-03 深圳传音控股股份有限公司 移动终端及移动终端控制方法、计算机存储介质
CN110581952A (zh) * 2019-09-17 2019-12-17 深圳市万普拉斯科技有限公司 摄像头升降控制方法、装置和移动终端

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618634A (zh) * 2015-02-12 2015-05-13 深圳市欧珀通信软件有限公司 移动终端及校准摄像头旋转角度的方法
CN106453694A (zh) * 2015-08-10 2017-02-22 华为终端(东莞)有限公司 终端设备
CN106790778A (zh) * 2016-11-16 2017-05-31 广东欧珀移动通信有限公司 一种移动终端的摄像头安装结构及移动终端
KR20190021550A (ko) * 2017-08-23 2019-03-06 주식회사 하미코리아 나노 흡착패드를 이용한 이동단말기용 자석 거치대
CN108924282A (zh) * 2018-06-08 2018-11-30 Oppo广东移动通信有限公司 电子装置和跌落保护控制方法
CN110620830A (zh) * 2018-06-19 2019-12-27 Oppo广东移动通信有限公司 电子装置和跌落保护控制方法
CN109951702A (zh) * 2019-03-29 2019-06-28 华为技术有限公司 位置检测机构、移动终端及位置检测方法
CN111246061A (zh) * 2020-01-22 2020-06-05 维沃移动通信有限公司 移动终端、拍摄模式的检测方法及存储介质

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
EP4096207A4 (en) 2023-08-09
EP4096207A1 (en) 2022-11-30
US20220360709A1 (en) 2022-11-10
CN111246061B (zh) 2021-08-06
CN111246061A (zh) 2020-06-05

Similar Documents

Publication Publication Date Title
WO2021098678A1 (zh) 投屏控制方法及电子设备
WO2021104195A1 (zh) 图像显示方法及电子设备
WO2021057267A1 (zh) 图像处理方法及终端设备
WO2021147911A1 (zh) 移动终端、拍摄模式的检测方法及存储介质
US20200257433A1 (en) Display method and mobile terminal
WO2021057735A1 (zh) 图像处理方法、装置、电子设备和介质
WO2021013009A1 (zh) 拍照方法和终端设备
WO2020216129A1 (zh) 参数获取方法及终端设备
WO2021233176A1 (zh) 环境光检测方法及电子设备
WO2020156123A1 (zh) 信息处理方法及终端设备
WO2021036623A1 (zh) 显示方法及电子设备
WO2021104357A1 (zh) 电子设备和拍摄方法
US11842029B2 (en) Image display method and mobile terminal
WO2020199986A1 (zh) 视频通话方法及终端设备
WO2020238562A1 (zh) 显示方法及终端
WO2021057222A1 (zh) 显示方法及终端
WO2021115172A1 (zh) 显示方法及电子设备
WO2020220893A1 (zh) 截图方法及移动终端
WO2021190390A1 (zh) 调焦的方法、电子设备、存储介质及程序产品
WO2021185254A1 (zh) 内容共享方法及电子设备
WO2021083090A1 (zh) 消息发送方法及移动终端
CN108881721B (zh) 一种显示方法及终端
WO2021104232A1 (zh) 显示方法及电子设备
WO2021082772A1 (zh) 截屏方法及电子设备
WO2021104159A1 (zh) 显示控制方法及电子设备

Legal Events

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

Ref document number: 21744020

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021744020

Country of ref document: EP

Effective date: 20220822