WO2020108007A1 - 摄像模组控制方法和装置 - Google Patents

摄像模组控制方法和装置 Download PDF

Info

Publication number
WO2020108007A1
WO2020108007A1 PCT/CN2019/105424 CN2019105424W WO2020108007A1 WO 2020108007 A1 WO2020108007 A1 WO 2020108007A1 CN 2019105424 W CN2019105424 W CN 2019105424W WO 2020108007 A1 WO2020108007 A1 WO 2020108007A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
camera module
component
preset time
current application
Prior art date
Application number
PCT/CN2019/105424
Other languages
English (en)
French (fr)
Inventor
钟朋
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to EP19890249.6A priority Critical patent/EP3883220A4/en
Publication of WO2020108007A1 publication Critical patent/WO2020108007A1/zh
Priority to US17/332,387 priority patent/US11228703B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • 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/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/51Housings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
    • 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/0206Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
    • H04M1/0208Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings characterized by the relative motions of the body parts
    • H04M1/0235Slidable or telescopic telephones, i.e. with a relative translation movement of the body parts; Telephones using a combination of translation and other relative motions of the body parts
    • H04M1/0237Sliding mechanism with one degree of freedom
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera

Definitions

  • the invention relates to the field of electronic technology, and in particular to a camera module control method and device.
  • devices such as camera modules are installed in the front panel of the electronic device to provide users with front camera services. Therefore, the contradiction between the occupation of the installation space of the camera module on the front panel and the increase of the screen ratio needs to be resolved .
  • the present invention aims to solve one of the technical problems in the related art at least to a certain extent.
  • the present invention provides a camera module control method and device.
  • an embodiment of the first aspect of the present invention provides a camera module control method.
  • the camera module is used in an electronic device.
  • the electronic device includes a body, a detection component, a sliding component, and a driving component.
  • the driving assembly is used to control the sliding assembly to slide between a first position accommodated in the body and a second position exposed from the body
  • the detection assembly includes a magnetic field generating element and a Hall element, the magnetic field generating The element and the Hall element are respectively fixed on the sliding component and the body
  • the camera module is hard-connected to the sliding component, and the following steps are included: when the camera application is running in the foreground of the system, according to the camera
  • the calling request for the camera module sent by the application controls the driving component to drive the sliding component to drive the camera module to slide out to the second position; when the system foreground application is detected by the camera
  • the application is switched to the current application, determine whether the current application belongs to the preset application; if the current application belongs to the preset application, determine whether to
  • an embodiment of the second aspect of the present invention provides a camera module control device.
  • the camera module is used in an electronic device.
  • the electronic device includes a body, a detection component, a sliding component, and a driving component.
  • the driving assembly is used to control the sliding assembly to slide between a first position accommodated in the body and a second position exposed from the body
  • the detection assembly includes a magnetic field generating element and a Hall element, the magnetic field generating The element and the Hall element are respectively fixed on the sliding component and the body
  • the camera module is hard connected with the sliding component
  • the camera module control device includes: a control module, which is used as a camera When the application is running in the foreground of the system, according to the call request for the camera module sent by the camera application, the driving component is driven to drive the sliding component to drive the camera module to slide out to the second position; first judgment A module, used to determine whether the current application belongs to a preset application when it is detected that the system foreground application is switched from the camera application to the current application
  • an embodiment of the third aspect of the present invention provides an electronic device, the electronic device includes a body, a camera module, a sliding component, a detection component and a driving component, the driving component is used to control the sliding component Sliding between a first position housed in the body and a second position exposed from the body, the detection assembly includes a magnetic field generating element and a Hall element, the magnetic field generating element and the Hall element are fixed respectively On the sliding component and the body, the camera module is hard connected to the sliding component, and the electronic device further includes: a memory, a processor electrically connected to the sliding component, and stored on the memory and A computer program that can run on a processor. When the processor executes the computer program, the camera module control method described in the above embodiment is implemented.
  • an embodiment of the fourth aspect of the present invention provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the camera mode as described in the foregoing method embodiment is implemented Group control method.
  • the sliding component reduces the influence of related components on the screen ratio, and reduces the loss of the sliding component.
  • the camera module When there is a control request for the camera module in a short time, the camera module is maintained in the slide-out state to avoid related components. Perform multiple operations in a short period of time, and control the duration of the camera module to maintain the slide-out state, to avoid the waste of resources due to the long duration and the increased chance of the camera module being collided, and to avoid the short duration due to the short duration
  • the problem of multiple operations of related components within a time period is highly flexible.
  • FIG. 1 is a schematic diagram of a state when an electronic device according to an embodiment of the present invention is in a second position;
  • FIG. 2 is a schematic diagram of the state of the electronic device according to the embodiment of the present invention when it is in the first position;
  • FIG. 3 is a schematic view of the electronic device according to an embodiment of the present invention when it is in a third position;
  • FIG. 4 is a schematic structural diagram of a detection assembly according to an embodiment of the present invention.
  • FIG. 5 is a usage scene diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 6 is a diagram of another usage scenario of an electronic device according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of a camera module control method according to an embodiment of the present invention.
  • FIG. 9 is a flowchart of a camera module control method according to a specific embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a camera module control device according to an embodiment of the present invention.
  • first and second are used for description purposes only, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
  • features defined as “first” and “second” may explicitly or implicitly include one or more of the features.
  • the meaning of “plurality” is two or more, unless otherwise specifically limited.
  • connection should be understood in a broad sense, for example, it can be a fixed connection or a detachable Connected, or integrally connected; may be mechanical, electrical, or may communicate with each other; may be directly connected, or may be indirectly connected through an intermediary, may be the connection between two elements or the interaction of two elements relationship.
  • the first feature “above” or “below” the second feature may include the direct contact of the first and second features, or may include the first and second features Contact not directly but through another feature between them.
  • the first feature is “above”, “above” and “above” the second feature includes that the first feature is directly above and obliquely above the second feature, or simply means that the first feature is higher in level than the second feature.
  • the first feature is “below”, “below” and “below” the second feature includes that the first feature is directly below and obliquely below the second feature, or simply means that the first feature level is less than the second feature.
  • the present invention proposes a sliding component, which controls the camera module and the like through the sliding of the sliding component when needed Slide it out and store it in the body of the electronic device when it is not needed, so that it does not occupy the front panel of the electronic device when the functional service of the camera module and other components is not performed.
  • the electronic device 100 includes a body 10, a sliding assembly 20, and a driving assembly 50.
  • the slide assembly 20 is used to slide between a first position A housed in the body 10 and a second position B exposed from the body 10.
  • the driving assembly 50 is used to drive the sliding assembly 20 to slide between a first position accommodated in the body and a second position exposed from the body.
  • the electronic device in order for the driving component 50 to know that the sliding component 20 is slid to a corresponding position, the electronic device must also include a detecting component 30 that detects the current position of the sliding component 20.
  • the detecting component 30 is used to detect sliding The position of the assembly 20.
  • the detection assembly 30 includes a magnetic field generating element 32, a Hall element 34, and a processor 60.
  • the magnetic field generating element 32 and the Hall element 34 are fixed on the body 10 and the sliding assembly 20, respectively.
  • the processor 60 is used to receive The detection signal value output by the element 34 and used to determine the current relative position of the sliding assembly 20 relative to the body 10 according to the detection signal value.
  • the magnetic field generating element 32 and the Hall element 34 are respectively fixed on the body 10 and the sliding assembly 20" include two cases, one is that the magnetic field generating element 32 is fixed on the body 10, and the Hall element 34 is fixed On the sliding assembly 20, the second is that the magnetic field generating element 32 is fixed on the sliding assembly 20, and the Hall element 34 is fixed on the body 10.
  • the magnetic field generating element 32 and the Hall element 34 may be placed relatively in the vertical direction or may be placed relatively in the horizontal direction. That is to say, as long as the magnetic field generating element 32 and the Hall element 34 can generate relative motion, the specific positions of the magnetic field generating element 32 and the Hall element 34 are not limited.
  • the body 10 is formed with a slide slot 16, and the slide assembly 20 is received in the slide slot 16 in the first position A. In this way, the sliding assembly 20 can slide between the first position A and the second position B through the sliding groove 16.
  • the body 10 includes a housing 12 and a display assembly 14, and the housing 12 and the display assembly 14 are combined together to form a closed structure.
  • the sliding groove 16 is opened in the casing 12, so that the sliding assembly 20 can slide back and out.
  • the chute 16 may be opened on any side of the housing 12.
  • the chute 16 is opened on the top edge of the housing 12. This can meet the user's usage habits.
  • the display assembly 14 includes a touch panel (not shown) and a cover 142.
  • the touch panel includes a display module (not shown) and a touch layer (not shown) provided on the display module.
  • the display module is, for example, a liquid crystal display module (LCD module, LCM). Of course, the display module may also be a flexible display module.
  • the touch layer is used to receive a user's touch input to generate a signal for controlling the content displayed by the display module and a signal for controlling the sliding of the sliding component 20.
  • the material of the cover plate 142 may be made of light-transmitting materials such as glass, ceramics, or sapphire. Since the cover plate 142 serves as an input component of the electronic device 100, the cover plate 142 is often exposed to collision, scratches, or the like. For example, when a user puts the electronic device 100 in a pocket, the cover 142 may be scratched by the key in the user's pocket and damaged. Therefore, the material of the cover plate 142 may be a material with a relatively high hardness, such as the above sapphire material. Or a hardened layer is formed on the surface of the cover plate 142 to improve the scratch resistance of the cover plate 142.
  • the touch panel and the cover 142 are fixed together by optical adhesive (Optically Clear, Adhesive, OCA), for example.
  • optical adhesive Optically Clear, Adhesive, OCA
  • the optical adhesive not only adheres and fixes the touch panel and the cover 142, but also transmits light emitted from the touch panel.
  • the electronic device 100 includes a camera module 42
  • the sliding assembly 20 includes a carrier 22, and the camera module 42 is provided On the carrier 22.
  • the camera module 42 can slide with the sliding component 20.
  • the user can turn on the camera module 42 and close the camera module 42 as trigger signals, that is, when the user opens the camera module 42, the sliding component 20 is triggered to slide out, and when the user closes the camera module 42, Trigger the slide assembly 20 to slide back.
  • the user only needs to open or close the camera module according to the existing habit, without performing additional operations on the sliding assembly 20, which can facilitate the user's use.
  • the carrier 22 may also carry other functional devices 40, such as a light sensor, a proximity sensor, an earpiece 44, etc., as shown in FIG.
  • These functional devices 40 may be exposed from the body 10 as the slide assembly 20 slides out according to user input to operate normally, or may be housed in the body 10 as the slide assembly 20 slides back according to user input.
  • the display assembly 14 may be provided with as few through holes as possible, which is beneficial to meet the design requirements of the full screen of the electronic device 100.
  • the light sensor when a light sensor is carried on the carrier 22, the light sensor may be disposed on the top of the carrier 22, that is, when the sliding assembly 20 is completely accommodated in the slide slot 16, the light sensor may still be The top of the piece 22 is exposed to sense light in real time.
  • the user can answer the phone and hang up the phone as a trigger signal, that is, when the user answers the phone, the sliding component 20 is triggered to slide out, When the user hangs up the phone, the sliding component 20 is triggered to slide back. In this way, the user only needs to answer or hang up the phone according to the existing habit, without performing additional operations on the sliding assembly 20, which can facilitate the user's use.
  • multiple functional devices 40 may be carried on the same carrier 22 or on multiple carriers.
  • the multiple functional devices 40 can be arranged longitudinally, and the processor 60 can control whether the functional device 40 disposed under the carrier 22 can be controlled by controlling the sliding distance of the sliding assembly 20 Exposed.
  • the processor 60 can select the functional devices 40 that need to be exposed by controlling the sliding of a certain carrier 22.
  • the sliding assembly 20 includes a threaded hole 24 provided in the middle of the carrier 22 and a rotating screw 26 cooperating with the threaded hole 24.
  • the chute 16 includes a groove 162 opposite to the screw hole 24 and located at the bottom of the chute 16.
  • the electronic device 100 includes a driving assembly 50 disposed in the groove 162.
  • the driving assembly 50 includes a driving motor 52 connected to the processor 60 and an output shaft (not shown) connected to the bottom of the rotating screw 26.
  • the processor 60 can control the sliding of the sliding assembly 20 by controlling the driving motor 52.
  • the processor 60 controls the drive motor 52 to rotate forward, so that the output shaft drives the rotating screw 26 to rotate in the threaded hole 24, thereby causing the sliding assembly 20 Slide from the first position A to the second position B.
  • the processor 60 controls the drive motor 52 to reverse, so that the output shaft drives the rotating screw 26 to rotate in the threaded hole 24, thereby causing the sliding assembly 20 Slide from the second position B to the first position A.
  • "from the first position A to the second position B" and "from the second position B to the first position A” here refer to the direction of sliding, rather than the starting point and end point of sliding.
  • the electronic device 100 uses the Hall element 34 and the magnetic field generating element 32 to determine the current relative position of the sliding assembly 20.
  • a functional device 40 such as a front camera is carried on the sliding assembly 20
  • the sliding assembly 20 can be detected in real time To determine the position of the functional device 40.
  • the electronic device 100 carries the functional device 40 on the sliding assembly, so that the functional device 40 is accommodated in the body 10 when no work is required, and is exposed from the body 10 with the sliding assembly 20 when the work is required. In this way, there is no need to create a through hole in the display assembly 14 to expose the functional device 40 such as the camera module 42, thereby increasing the screen ratio and further improving the user experience.
  • both the driving component and the sliding component have a life span. If the use of the driving component and the sliding component can be reduced under unnecessary circumstances, its life span will be greatly improved and the user experience will be improved. For example, in the actual execution process, if the camera application calls the camera module, the driving component will drive the sliding component to drive the camera module to slide out. When the user switches to another application, the call to the camera module will be released immediately. Controlling the driving component will drive the sliding component to drive the camera module to slide in. However, when the user only stays in other applications for a short time and then returns to the camera application, the sliding component needs to be driven again to drive the camera module to slide out.
  • the camera module is controlled to slide in and out in a short period of time, which causes losses to the driving component and the sliding component.
  • the present invention recognizes such a scene that briefly leaves the camera application, and delays the time of the camera module. Slide in to avoid multiple slide-in and slide-out control of the camera module in a short time.
  • FIG. 8 is a flowchart of a camera module control method according to an embodiment of the present invention. As shown in FIG. 8, the method includes:
  • Step 101 When the camera application is running in the foreground of the system, according to the call request for the camera module sent by the camera application, the driving component is controlled to drive the sliding component to drive the camera module to slide out to the second position.
  • the camera application when the camera application is activated, it will send a call request for the camera module. After receiving the request, the driving component is driven to drive the sliding component to drive the camera module to slide out from the first position to the second position, which is the camera application Provide photo service.
  • the camera application can also provide applications that require camera modules to provide related functional services, such as live broadcast applications and short video applications.
  • Step 102 when it is detected that the system foreground application is switched from the camera application to the current application, it is determined whether the current application belongs to the preset application.
  • the foreground application of the system when it is detected that the foreground application of the system is switched from the camera application to the current application, it does not immediately control the camera module to slide in, but determines whether the user has a demand to return to the camera application in a short time according to the current application. In an embodiment of the invention, it is determined whether the user has the above requirements based on whether the current application belongs to a preset application.
  • Step 103 If the current application belongs to the preset application, determine whether a call request for the camera module sent by the current application is obtained.
  • the current application does not belong to the preset application, it indicates that the user will not return to the camera application in a short time, so that the driving component is driven to drive the sliding component to drive the camera module to slide into the first position.
  • step 104 if no calling request is obtained, a delayed retraction instruction delayed by a preset time is sent to the drive component to maintain the sliding component in the second position within the preset time.
  • the current application belongs to a preset application, it indicates that the user has a need to quickly return to the camera application, thereby delaying the sliding in of the camera module.
  • a delayed retraction instruction delayed by a preset time is sent to the drive component, so that the position sliding component is in the first position within the preset time Two positions, that is, the camera module is not retracted within a preset time.
  • the preset time is calibrated according to a large amount of experimental data, according to the usual residence time setting of the preset application, as a possible implementation, based on the user's usual call duration and the duration of viewing the album, the preset duration is set to One minute.
  • the application characteristics of the current application may also be extracted, and the preset time corresponding to each current application may be determined according to the application characteristics of the current application.
  • the user's operation intention may be analyzed according to the user's use operation information when using the camera application, and the preset time may be determined according to the user's operation intention. For example, according to the user's voice information to identify the user's current operation intention is to browse the photo just taken in the album, the predetermined time is determined to be short. For photos of people, the preset time is longer.
  • the sliding component is maintained at the second position, and when the current application release request to the camera module is obtained, a delay is sent to the drive component At a preset time delay to retract the command to maintain the sliding assembly in the second position within the preset time.
  • the current application is an album application
  • the execution time of the delayed slide-in is determined to avoid that the camera module is occupied by the current application for a long time, causing the camera module to be retracted after returning to the camera application. Avoid the camera module sliding out for a long time, causing waste of resources and increasing the chance of being collided.
  • the sliding assembly is directly retracted.
  • the camera module is controlled not to be retracted within the preset and time, if it is switched to the background, it is removed
  • This delay request controls the camera module to determine the state according to whether it is called. Therefore, if the camera module is switched to, the camera module does not need to be called again to provide services according to the camera module, if it is not the camera application, then When the call request to the camera module is not obtained, control the camera module to slide in, or whether the electronic device is turned off.
  • the camera application does not have the function of the camera module at this time, so To monitor whether the current application is switched to the background operation within the preset time, or whether the electronic device is off the screen, and determine that the current application is not switched to the background operation within the preset time, or the electronic device is on the screen within the preset time Maintain the sliding component in the second position. If the current application is switched to the background operation within a preset time, or the electronic device is turned off, the driving component is controlled to drive the sliding component to drive the camera module to the first position.
  • the preset application is an album application
  • the album application The call request is a face recognition request
  • the release request to the camera module is that the face recognition is successful
  • the preset time is one minute.
  • the camera module control method of the embodiment of the present invention reduces the influence of related components on the screen ratio through the sliding component, and reduces the loss of the sliding component when there is a control request for the camera module in a short time , To maintain the camera module in the slide-out state, to prevent related components from performing multiple operations in a short time, and to control the duration of the camera module to maintain the slide-out state, to avoid waste of resources and collision of the camera module due to the long time The probability is increased, and the problem that the related components cannot perform multiple operations in a short period of time due to the short duration is avoided, and the flexibility is strong.
  • the present invention also provides a camera module control device.
  • the camera module is used in an electronic device.
  • the electronic device includes a body, a detection component, a sliding component, and a driving component.
  • the driving component is used to control the sliding component Slide between the first position of the body and the second position exposed from the body.
  • the detection component includes a magnetic field generating element and a Hall element. The magnetic field generating element and the Hall element are fixed on the sliding element and the body, respectively.
  • the components are hard connected.
  • FIG. 10 is a schematic structural diagram of a camera module control device according to an embodiment of the present invention. As shown in FIG. 10, the device includes: a control module 10, a first judgment module 20, a second judgment module 30, and a process Module 40.
  • the control module 10 is used to control the driving component to drive the sliding component to drive the camera module to the second position according to the call request for the camera module sent by the camera application when the camera application is running in the foreground of the system.
  • control module 10 is further configured to control the driving component to drive the sliding component to drive the camera module to the first position when the current application does not belong to the preset application.
  • the first judgment module 20 is used to judge whether the current application belongs to the preset application when it is detected that the foreground application of the system is switched from the camera application to the current application.
  • the second judgment module 30 is configured to judge whether the call request to the camera module sent by the current application is obtained when the current application belongs to the preset application.
  • the processing module 40 is configured to send a delayed retraction instruction delayed by a preset time to the driving component when the calling request is not obtained, so as to maintain the sliding component in the second position within the preset time.
  • the camera module control device of the embodiment of the present invention reduces the influence of related components on the screen ratio through the sliding component, and reduces the loss of the sliding component when there is a control request for the camera module in a short time , To maintain the camera module in the slide-out state, to prevent related components from performing multiple operations in a short time, and to control the duration of the camera module to maintain the slide-out state, to avoid waste of resources and collision of the camera module due to the long time The probability is increased, and the problem that the related components cannot perform multiple operations in a short period of time due to the short duration is avoided, and the flexibility is strong.
  • the present invention also provides an electronic device, wherein, referring to FIGS. 1-4, the electronic device includes a body 10, a detection component 30 and a driving component 50, the driving component 50 is used to control the sliding component to drive the camera module
  • the group 42 slides between a first position accommodated in the body and a second position exposed from the body
  • the detection assembly includes a magnetic field generating element 32 and a Hall element 34
  • the magnetic field generating element 32 and the Hall element 34 are respectively fixed
  • the electronic device further includes: a memory 70, a processor electrically connected to the sliding assembly, and a computer program stored on the memory 70 and running on the processor 60, When the processor executes the program, the camera module control method as described in the foregoing embodiment is implemented.
  • an embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the camera module control method described in the foregoing method embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Studio Devices (AREA)

Abstract

本发明提出一种摄像模组控制方法和装置,其中,方法包括:当相机应用在系统前台运行时,根据相机应用发送的针对摄像模组的调用请求,控制驱动组件驱动滑动组件带动摄像模组滑出至第二位置;在检测到系统前台应用由相机应用切换到当前应用时,判断当前应用是否属于预设应用;若当前应用属于预设应用,则判断是否获取到当前应用发送的对摄像模组的调用请求;若没有获取到调用请求,则向驱动组件发送延时预设时间的延时收回指令,以在预设时间内维持滑动组件处于第二位置。由此,通过滑动组件降低相关组件对屏幕占比的影响,且降低了相关组件的损耗,提升了滑动组件的应用灵活性。

Description

摄像模组控制方法和装置
相关申请的交叉引用
本申请要求OPPO广东移动通信有限公司于2018年11月30日提交的、申请名称为“摄像模组控制方法和装置”的、中国专利申请号“201811459606.6”的优先权。
技术领域
本发明涉及电子技术领域,尤其涉及一种摄像模组控制方法和装置。
背景技术
随着智能手机等便携式电子装置的普及,电子装置的美观性和功能性的优化也成为大趋势,比如,电子装置的屏幕占比的提高就是其中一种流行趋势。
相关技术中,电子装置的前面板中安装有摄像模组等设备以为用户提供前置摄像服务,因而,摄像模组的在前面板上的安装空间的占用与屏幕占比的提高的矛盾亟待解决。
发明内容
本发明旨在至少在一定程度上解决相关技术中的技术问题之一。
为此,本发明提出一种摄像模组控制方法和装置。
为达上述目的,本发明第一方面实施例提出了一种摄像模组控制方法,所述摄像模组用于电子装置,所述电子装置包括本体、检测组件、滑动组件和驱动组件,所述驱动组件用于控制所述滑动组件在收容于所述本体的第一位置和自所述本体露出的第二位置之间滑动,所述检测组件包括磁场产生元件和霍尔元件,所述磁场产生元件和所述霍尔元件分别固定在所述滑动组件和所述本体上,所述摄像模组与所述滑动组件硬连接,所述包括以下步骤:当相机应用在系统前台运行时,根据相机应用发送的针对所述摄像模组的调用请求,控制所述驱动组件驱动所述滑动组件带动所述摄像模组滑出至所述第二位置;在检测到所述系统前台应用由所述相机应用切换到当前应用时,判断所述当前应用是否属于预设应用;若所述当前应用属于所述预设应用,则判断是否获取到所述当前应用发送的对所述摄像模组的调用请求;若没有获取到所述调用请求,则向所述驱动组件发送延时预设时间的延时收回指令,以在所述预设时间内维持所述滑动组件处于所述第二位置。
为达上述目的,本发明第二方面实施例提出了一种摄像模组控制装置,所述摄像模组用于电子装置,所述电子装置包括本体、检测组件、滑动组件和驱动组件,所述驱动组件用于控制所述滑动组件在收容于所述本体的第一位置和自所述本体露出的第二位置之间滑 动,所述检测组件包括磁场产生元件和霍尔元件,所述磁场产生元件和所述霍尔元件分别固定在所述滑动组件和所述本体上,所述摄像模组与所述滑动组件硬连接,所述摄像模组控制装置,包括:控制模块,用于当相机应用在系统前台运行时,根据相机应用发送的针对所述摄像模组的调用请求,控制所述驱动组件驱动所述滑动组件带动所述摄像模组滑出至所述第二位置;第一判断模块,用于在检测到所述系统前台应用由所述相机应用切换到当前应用时,判断所述当前应用是否属于预设应用;第二判断模块,用于在所述当前应用属于所述预设应用时,判断是否获取到所述当前应用发送的对所述摄像模组的调用请求;处理模块,用于在没有获取到所述调用请求时,向所述驱动组件发送延时预设时间的延时收回指令,以在所述预设时间内维持所述滑动组件处于所述第二位置。
为达上述目的,本发明第三方面实施例提出了一种电子装置,所述电子装置包括本体、摄像模组、滑动组件、检测组件和驱动组件,所述驱动组件用于控制所述滑动组件在收容于所述本体的第一位置和自所述本体露出的第二位置之间滑动,所述检测组件包括磁场产生元件和霍尔元件,所述磁场产生元件和所述霍尔元件分别固定在所述滑动组件和所述本体上,所述摄像模组与所述滑动组件硬连接,所述电子装置还包括:存储器、与所述滑动组件电性连接的处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如上述实施例所述的摄像模组控制方法。
为达上述目的,本发明第四方面实施例提出了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,实现如前述方法实施例所述的摄像模组控制方法。
本发明提供的技术方案,至少包括如下有益效果:
通过滑动组件降低相关组件对屏幕占比的影响,且在降低了滑动组件的损耗,当在短时间内具有对摄像模组的控制请求时,维持摄像模组处于滑出状态,避免相关组件在短时间内进行多次操作,且控制摄像模组维持滑出状态的时长,避免由于时长较长导致资源浪费以及摄像模组的被碰撞的几率的增加,且避免由于时长较短导致不能解决短时间内相关组件进行多次操作的问题,灵活性较强。
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。
附图说明
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:
图1是本发明实施方式的电子装置在第二位置时的状态示意图;
图2是本发明实施方式的电子装置在第一位置时的状态示意图;
图3是本发明实施方式的电子装置在第三位置时的状态示意图;
图4是本发明实施方式的检测组件的结构示意图;
图5是本发明实施方式的电子装置的使用场景图;
图6是本发明实施方式的电子装置的另一使用场景图;
图7是本发明实施方式的电子装置的结构示意图;
图8是根据本发明一个实施例的摄像模组控制方法的流程图;
图9是根据本发明一个具体实施例的摄像模组控制方法的流程图;
图10是根据本发明一个实施例的摄像模组控制装置的结构示意图。
具体实施方式
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。
在本发明的描述中,需要理解的是,术语“中心”、“纵向”、“横向”、“长度”、“宽度”、“厚度”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”、“内”、“外”、“顺时针”、“逆时针”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个所述特征。在本发明的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。
在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接或可以相互通讯;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。
在本发明中,除非另有明确的规定和限定,第一特征在第二特征之“上”或之“下”可以包括第一和第二特征直接接触,也可以包括第一和第二特征不是直接接触而是通过它们之间的另外的特征接触。而且,第一特征在第二特征“之上”、“上方”和“上面”包括第一特征在第二特征正上方和斜上方,或仅仅表示第一特征水平高度高于第二特征。第一特征在第二特征“之下”、“下方”和“下面”包括第一特征在第二特征正下方和斜下方,或仅仅表示第一特 征水平高度小于第二特征。
下文的公开提供了许多不同的实施方式或例子用来实现本发明的不同结构。为了简化本发明的公开,下文中对特定例子的部件和设置进行描述。当然,它们仅仅为示例,并且目的不在于限制本发明。此外,本发明可以在不同例子中重复参考数字和/或参考字母,这种重复是为了简化和清楚的目的,其本身不指示所讨论各种实施方式和/或设置之间的关系。此外,本发明提供了的各种特定的工艺和材料的例子,但是本领域普通技术人员可以意识到其他工艺的应用和/或其他材料的使用。
下面参考附图描述本发明实施例的摄像模组控制方法和装置。
为了更加清楚的描述本发明实施例的摄像模组控制方法,下面首先对本发明的电子装置进行结构上的描述。
具体地,为了降低摄像模组等安装在电子装置前置面板上的硬件设备对屏幕占比的影响,本发明提出了一种滑动组件,通过滑动组件的滑动控制摄像模组等在需要的时候滑出,在不需要的时候收容于电子装置本体内,由此,在不进行摄像模组等组件的功能服务时,使其不占用电子装置前置面板。
具体而言,如图1-图4所示,本发明实施例的电子装置100包括本体10、滑动组件20和驱动组件50。滑动组件20用于在收容于本体10的第一位置A和自本体10露出的第二位置B之间滑动。驱动组件50用于驱动滑动组件20在收容于本体的第一位置和自本体露出的第二位置之间滑动。
当然,为了使得驱动组件50获知驱动滑动组件20滑动至相应位置,该电子装置中还必然包括检测滑动组件20当前位置的检测组件30,在本发明的实施例中,检测组件30用于检测滑动组件20的位置,检测组件30包括磁场产生元件32、霍尔元件34和处理器60,磁场产生元件32和霍尔元件34分别固定在本体10和滑动组件20上,处理器60用于接收霍尔元件34输出的检测信号值,以及用于根据检测信号值确定滑动组件20相对于本体10的当前相对位置。
值得注意的是,此处“磁场产生元件32和霍尔元件34分别固定在本体10和滑动组件20上”包括两种情况,一是磁场产生元件32固定在本体10上,霍尔元件34固定在滑动组件20上,二是磁场产生元件32固定在滑动组件20上,霍尔元件34固定在本体10上。此外,磁场产生元件32和霍尔元件34可以在竖直方向上相对放置,也可以在水平方向上相对放置。也即是说,只要磁场产生元件32和霍尔元件34可以产生相对运动,不对磁场产生元件32和霍尔元件34的具体位置做限制。
在某些实施方式中,本体10形成有滑槽16,滑动组件20在第一位置A时收容于滑槽16内。如此,可以使得滑动组件20通过滑槽16在第一位置A和第二位置B之间滑动。
具体地,本体10包括壳体12和显示组件14,壳体12和显示组件14组合在一起构成封闭式结构。滑槽16开设在壳体12,从而实现滑动组件20的滑回与滑出。可以理解,滑槽16可以开设在壳体12的任意一条侧边。优选地,滑槽16开设在壳体12的顶边。如此可以符合用户的使用习惯。
显示组件14包括触控面板(图未示)和盖板142。触控面板包括显示模组(图未示)和设置在显示模组上的触控层(图未示)。显示模组例如为液晶显示模组(LCD Module,LCM),当然,显示模组也可以为柔性的显示模组。触控层用于接收用户的触控输入,以产生用于控制显示模组显示的内容的信号和控制滑动组件20滑动的信号。
盖板142的材料可以由玻璃、陶瓷或蓝宝石等透光材料制成。由于盖板142由于作为电子装置100的输入零件,盖板142经常受到碰撞或刮划等接触。例如,用户将电子装置100放入口袋时,盖板142可能被用户口袋中的钥匙刮划而损伤。因此,盖板142的材料可以采用硬度较大的材料,例如以上的蓝宝石材料。或者在盖板142的表面形成硬化层以提高盖板142的抗刮能力。
触控面板与盖板142例如通过光学胶(Optically Clear Adhesive,OCA)粘接固定在一起,光学胶不仅粘接固定触控面板及盖板142,还可以透过触控面板发出的光线。
为了更加清楚的说明本发明实施例的滑动组件20的功能,参照图5,当在某些实施方式中,电子装置100包括摄像模组42,滑动组件20包括承载件22,摄像模组42设置在承载件22上。如此,摄像模组42可以随着滑动组件20滑动。当然,可以将用户打开摄像模组42和关闭摄像模组42作为触发信号,也即是说,当用户打开摄像模组42时,触发滑动组件20滑出,当用户关闭摄像模组42时,触发滑动组件20滑回。如此用户只需依照现有的习惯打开或关闭摄像模组,而无需针对滑动组件20进行另外的操作,可以方便用户的使用。
除摄像模组42之外,承载件22上也可以承载其他的功能器件40,功能器件40比如为光线传感器、接近传感器和听筒44等,如图1所示。这些功能器件40可以根据用户的输入随着滑动组件20的滑出而从本体10露出从而正常工作,也可以根据用户的输入随着滑动组件20的滑回而收容在本体10内。如此,可以尽量少地在显示组件14上设置通孔,有利于满足电子装置100全面屏的设计需求。
具体地,当承载件22上承载有光线传感器时,可以将光线传感器设置在承载件22的顶部,也即是说,当滑动组件20完全收容于滑槽16内时,光线传感器依旧可以从承载件22的顶部露出,从而实时感应光线。
请参阅图6,当承载件22上承载有接近传感器和听筒44时,可以将用户接听电话和挂断电话作为触发信号,也即是说,当用户接听电话时,触发滑动组件20滑出,当用户挂 断电话时,触发滑动组件20滑回。如此用户只需依照现有的习惯接听或挂断电话,而无需针对滑动组件20进行另外的操作,可以方便用户的使用。
可以理解,多个功能器件40可以承载在同一个承载件22上,也可以承载在多个承载件上。当多个功能器件40承载在同一个承载件22上时,多个功能器件40可以纵向排列,处理器60可以通过控制滑动组件20滑出的距离控制设置在承载件22下部的功能器件40是否露出。当多个功能器件40承载在同多个承载件22上时,处理器60可以通过控制某个承载件22的滑动从而选择需要露出的功能器件40。
请参阅图7,在某些实施方式中,滑动组件20包括设置在承载件22中部的螺纹孔24和与螺纹孔24配合的转动丝杆26。滑槽16包括与螺纹孔24相对设置且位于滑槽16底部的凹槽162。电子装置100包括设置在凹槽162的驱动组件50。驱动组件50包括与处理器60连接的驱动电机52和与转动丝杆26的底部连接的输出轴(图未示)。
可以理解,处理器60可以通过控制驱动电机52来控制滑动组件20的滑动。当用户命令滑动组件20从第一位置A向第二位置B滑动时,处理器60控制驱动电机52正转,从而使得输出轴带动转动丝杆26在螺纹孔24内转动,进而使得滑动组件20从第一位置A向第二位置B滑动。当用户命令滑动组件20从第二位置B向第一位置A滑动时,处理器60控制驱动电机52反转,从而使得输出轴带动转动丝杆26在螺纹孔24内转动,进而使得滑动组件20从第二位置B向第一位置A滑动。值得注意的是,此处的“从第一位置A向第二位置B”和“从第二位置B向第一位置A”是指滑动的方向,而不是指滑动的起点和终点。
本发明实施方式的电子装置100利用霍尔元件34和磁场产生元件32确定滑动组件20的当前相对位置,在前置相机等功能器件40承载在滑动组件20上时,可以实时地检测滑动组件20的状态,从而确定功能器件40的位置。
可以理解,摄像模组42等功能器件40需要自本体10露出,否则无法正常工作。本发明实施方式的电子装置100通过在滑动组件上承载功能器件40,使得功能器件40在不需要工作时收容在本体10内,在需要工作时随着滑动组件20从本体10露出。如此,无需在显示组件14上开设用以露出摄像模组42等功能器件40的通孔,从而增大屏占比,进而提高用户的体验。
然而,驱动组件和滑动组件等都是有寿命的,如果能够在非必要的情况下,减少对驱动组件以及滑动组件的使用,则会大大提高其寿命,提升用户的使用体验。比如,在实际执行过程中,若相机应用调用了摄像模组,则驱动组件会驱动滑动组件带动摄像模组滑出,当用户切换到其他应用时,则会立即释放对摄像模组的调用,控制驱动组件会驱动滑动组件带动摄像模组滑入,然而,当用户仅仅在其他应用停留很短的时间后,就返回到相机应用,则还需要再次驱动滑动组件带动摄像模组滑出,由此,在短时间内控制摄像模组滑入 滑出,对驱动组件、滑动组件等造成了损耗,为了避免这种损耗,本发明识别这种短暂离开相机应用的场景,延时摄像模组的滑入,避免短时间内对摄像模组的多次滑入和滑出控制。
下面具体描述对摄像模组控制方法。
图8是根据本发明一个实施例的摄像模组控制方法的流程图,如图8所示,该方法包括:
步骤101,当相机应用在系统前台运行时,根据相机应用发送的针对摄像模组的调用请求,控制驱动组件驱动滑动组件带动摄像模组滑出至第二位置。
其中,相机应用在启用时,会发送针对摄像模组的调用请求,在接收到该请求后,控制驱动组件驱动滑动组件带动摄像模组由第一位置滑出至第二位置,以为该相机应用提供照相服务。
需要说明的是,相机应用除了包含普通的相机应用外,还可以为直播应用、短视频应用等需要摄像模组提供相关功能服务的应用。
步骤102,在检测到系统前台应用由相机应用切换到当前应用时,判断当前应用是否属于预设应用。
具体地,在检测到系统前台应用由相机应用切换到当前应用时,并不立即控制摄像模组滑入,而是根据当前应用确定用户是否具有在短时间内回到相机应用的需求,在本发明的实施例中,基于当前应用是否属于预设的应用来确定用户是否具有上述需求。
其中,在实际应用中,用户在使用相机应用时,为了查看照片的质量等,可能会切换到相册应用,然后会在短时间内回到相机应用继续拍照,或者,用户在使用相机应用时,进入了一个通话请求,则用户在通话结束后,会回到相机应用,又或者,在用户使用直播应用时,若接收到打赏消息,则可能会切换到支付宝应用等,在查看金额后,回到直播应用,因而,这些由相机应用切换的目的应用均应当属于预设应用。
步骤103,若当前应用属于预设应用,则判断是否获取到当前应用发送的对摄像模组的调用请求。
在本发明的一个实施例中,如果当前应用不属于预设应用,则表明用户不会在短时间内回到相机应用,从而,控制驱动组件驱动滑动组件带动摄像模组滑入第一位置。
步骤104,若没有获取到调用请求,则向驱动组件发送延时预设时间的延时收回指令,以在预设时间内维持滑动组件处于第二位置。
在本发明的一个实施例中,若当前应用属于预设应用,则表明用户具有快速回到相机应用的需求,从而,延迟对摄像模组的滑入。
当然,在本实施例中,若当前应用仍然具有对摄像模组的调用需求,则为了保证在回 到相机应用时,摄像模组仍然没有滑入电子装置的本体内,还需要保证摄像模组对当前应用提供完毕功能服务。
在本发明的一个实施例中,若没有获取到当前应用对摄像模组的调用请求,则向驱动组件发送延时预设时间的延时收回指令,以在预设时间内位置滑动组件处于第二位置,即在预设时间内不收回摄像模组。其中,预设时间是根据大量实验数据标定的,根据预设应用的通常停留时间设定,作为一种可能的实现方式,基于用户通常通话时长以及查看相册的时长,将该预设时长设置为一分钟。作为一种可能的实现方式,为了进一步提高摄像模组控制方法的灵活性,还可提取当前应用的应用特征,根据当前应用的应用特征确定与每一个当前应用对应的预设时间。作为又一种可能的实现方式,也可以根据用户在使用相机应用时的使用操作信息,分析用户的操作意图,根据用户操作意图确定预设时间。比如,根据用户的语音信息识别用户当前操作意图是浏览相册中刚刚拍摄的照片,则确定的预设时间较短,若根据用户的语音信息识别用户当前操作意图是在相册中寻找多个包含某人物的照片,则设定的预设时间较长。
在本发明的一个实施例中,若获取到当前应用对摄像模组的调用请求,则维持滑动组件处于第二位置,当获取到当前应用对摄像模组的释放请求后,向驱动组件发送延时预设时间的延时收回指令,以在预设时间内维持滑动组件处于第二位置。
比如,在当前应用为相册应用时,检测相册应用是否使用人脸加密,若使用人脸加密,则相册应用发送对摄像模组的调用请求,在人脸识别成功后,则发送对摄像模组的释放请求,此时,向驱动组件发送延时预设时间的延时收回指令,以在预设时间内维持滑动组件处于第二位置。
由此,基于当前应用是否具有调用摄像模组的请求,决定延时滑入的执行时间,避免由于摄像模组被当前应用占用时间较长,导致摄像模组在回到相机应用后收回,也避免摄像模组滑出时间较长,导致资源浪费,以及增加被碰撞的机会。
为了进一步提高摄像模组控制方法的灵活性,在预设时间内,如果相机应用没有对摄像模组的功能需要,即使没有达到预设时间,也直接收回滑动组件。
在本发明的一个实施例中,检测在预设时间内当前应用是否切换到后台运行,如果仍然在前台,则控制摄像模组在预设和时间内不收回,如果切换到后台,则移除该延时请求,控制摄像模组根据是否被调用来确定状态,由此,如果切换到相机应用,则摄像模组不需要再次调用即可根据摄像模组提供服务,如果不是相机应用,则在没有获取到对摄像模组的调用请求时,控制摄像模组滑入,或者,电子设备是否灭屏,如果电子设备灭屏,显然此时相机应用也不具有对摄像模组的功能需要,因而,监测在预设时间内当前应用是否切换到后台运行,或者,电子装置是否灭屏,确定在预设时间内当前应用没有切换到后台运 行,或者,电子装置亮屏,则在预设时间内维持滑动组件处于第二位置,若在预设时间内当前应用切换到后台运行,或者,电子装置灭屏,则控制驱动组件驱动滑动组件带动摄像模组滑入至第一位置。
为了使得本领域的技术人员对本发明实施例的摄像模组控制方法更加轻清楚,下面结合具体地应用场景进行举例,在该应用场景中,预设应用为相册应用,相册应用对摄像模组的调用请求为人脸识别请求,对摄像模组的释放请求为人脸识别成功,预设时间为一分钟。
如图9所示,在检测到当前前台运行的应用由相机应用切换为相册应用时,判断相册是否加密,若不是人脸加密或者没有加密,则向驱动组件发送延时一分钟的延时收回指令,如果相册采用了人脸加密,则维持摄像模组处于滑出状态采集人脸信息提供给相册应用,直至相册应用根据当前人脸信息识别人脸成功。
在本示例中,在发送延时一分钟的延时收回指令后,在一分钟内检测相册应用是否切换到后台,以及电子装置是是否黑屏,如果电子装置在一分钟内黑屏,或者相册应用切换至后台,则释放掉该一分钟延时收回指令,当然,在一分钟后,如果相册应用仍然运行在前台且电子装置亮屏,则表明摄像模组被再次使用,控制滑动组件滑入到第一位置。
综上,本发明实施例的摄像模组控制方法,通过滑动组件降低相关组件对屏幕占比的影响,且在降低了滑动组件的损耗,当在短时间内具有对摄像模组的控制请求时,维持摄像模组处于滑出状态,避免相关组件在短时间内进行多次操作,且控制摄像模组维持滑出状态的时长,避免由于时长较长导致资源浪费以及摄像模组的被碰撞的几率的增加,且避免由于时长较短导致不能解决短时间内相关组件进行多次操作的问题,灵活性较强。
为了实现上述实施例,本发明还提出了一种摄像模组控制装置,摄像模组用于电子装置,电子装置包括本体、检测组件、滑动组件和驱动组件,驱动组件用于控制滑动组件在收容于本体的第一位置和自本体露出的第二位置之间滑动,检测组件包括磁场产生元件和霍尔元件,磁场产生元件和霍尔元件分别固定在滑动组件和本体上,摄像模组与滑动组件硬连接,图10是根据本发明一个实施例的摄像模组控制装置的结构示意图,如图10所示,该装置包括:控制模块10、第一判断模块20、第二判断模块30和处理模块40。
其中,控制模块10,用于当相机应用在系统前台运行时,根据相机应用发送的针对摄像模组的调用请求,控制驱动组件驱动滑动组件带动摄像模组滑出至第二位置。
在本发明的一个实施例中,控制模块10还用于在当前应用不属于预设应用时,控制驱动组件驱动滑动组件带动摄像模组滑入至第一位置。
第一判断模块20,用于在检测到系统前台应用由相机应用切换到当前应用时,判断当 前应用是否属于预设应用。
第二判断模块30,用于在当前应用属于预设应用时,判断是否获取到当前应用发送的对摄像模组的调用请求。
处理模块40,用于在没有获取到调用请求时,向驱动组件发送延时预设时间的延时收回指令,以在预设时间内维持滑动组件处于第二位置。
需要说明的是,前述集中在摄像模组控制方法实施例中的描述,也适用于本发明实施例的摄像模组控制装置,在此不再对其实施细节赘述。
综上,本发明实施例的摄像模组控制装置,通过滑动组件降低相关组件对屏幕占比的影响,且在降低了滑动组件的损耗,当在短时间内具有对摄像模组的控制请求时,维持摄像模组处于滑出状态,避免相关组件在短时间内进行多次操作,且控制摄像模组维持滑出状态的时长,避免由于时长较长导致资源浪费以及摄像模组的被碰撞的几率的增加,且避免由于时长较短导致不能解决短时间内相关组件进行多次操作的问题,灵活性较强。
为了实现上述实施例,本发明还提出了一种电子装置,其中,参照图1-图4,电子装置包括本体10、检测组件30和驱动组件50,驱动组件50用于控制滑动组件带动摄像模组42在收容于本体的第一位置和自本体露出的第二位置之间滑动,检测组件包括磁场产生元件32和霍尔元件34,所述磁场产生元件32和所述霍尔元件34分别固定在所述滑动组件20和所述本体10上,所述电子装置还包括:存储器70,与滑动组件电性连接的处理器及存储在存储器70上并可在处理器60上运行的计算机程序,处理器执行程序时,实现如前述实施例描述的摄像模组控制方法。
需要说明的是,前述集中在摄像模组控制方法实施例中描述的电子装置,也适用于本发明实施例的电子装置,在此不再对其实施细节和技术效果赘述。
为了实现上述实施例,本发明实施例还提出一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如前述方法实施例所述的摄像模组控制方法。
在本说明书的描述中,参考术语“一个实施方式”、“某些实施方式”、“示意性实施方式”、“示例”、“具体示例”、或“一些示例”等的描述意指结合实施方式或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施方式或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施方式或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施方式或示例中以合适的方式结合。
尽管已经示出和描述了本发明的实施方式,本领域的普通技术人员可以理解:在不脱 离本发明的原理和宗旨的情况下可以对这些实施方式进行多种变化、修改、替换和变型,本发明的范围由权利要求及其等同物限定。

Claims (18)

  1. 一种摄像模组控制方法,其特征在于,所述摄像模组用于电子装置,所述电子装置包括本体、检测组件、滑动组件和驱动组件,所述驱动组件用于控制所述滑动组件在收容于所述本体的第一位置和自所述本体露出的第二位置之间滑动,所述检测组件包括磁场产生元件和霍尔元件,所述磁场产生元件和所述霍尔元件分别固定在所述滑动组件和所述本体上,所述摄像模组与所述滑动组件硬连接,所述包括以下步骤:
    当相机应用在系统前台运行时,根据相机应用发送的针对所述摄像模组的调用请求,控制所述驱动组件驱动所述滑动组件带动所述摄像模组滑出至所述第二位置;
    在检测到所述系统前台应用由所述相机应用切换到当前应用时,判断所述当前应用是否属于预设应用;
    若所述当前应用属于所述预设应用,则判断是否获取到所述当前应用发送的对所述摄像模组的调用请求;
    若没有获取到所述调用请求,则向所述驱动组件发送延时预设时间的延时收回指令,以在所述预设时间内维持所述滑动组件处于所述第二位置。
  2. 如权利要求1所述的方法,其特征在于,在所述判断所述当前应用是否属于预设应用之后,还包括:
    若所述当前应用不属于所述预设应用,则控制所述驱动组件驱动所述滑动组件带动所述摄像模组滑入至所述第一位置。
  3. 如权利要求1或2所述的方法,其特征在于,在所述判断是否获取到所述当前应用发送的对所述摄像模组的调用请求之后,还包括:
    若获取到所述调用请求,则维持所述滑动组件处于所述第二位置;
    当获取到所述当前应用对所述摄像模组的释放请求后,向所述驱动组件发送延时预设时间的延时收回指令,以在所述预设时间内维持所述滑动组件处于所述第二位置。
  4. 如权利要求3所述的方法,其特征在于,当所述当前应用为相册应用时,则所述调用请求为人脸识别请求,所述获取到所述当前应用对所述摄像模组的释放请求,包括:
    获取到所述相册应用发送的人脸识别成功请求。
  5. 如权利要求1-4任一所述的方法,其特征在于,在所述预设时间内维持所述滑动组件处于所述第二位置之前,还包括:
    监测在所述预设时间内所述当前应用是否切换到后台运行,或者,所述电子装置是否灭屏;
    确定在所述预设时间内所述当前应用没有切换到后台运行,或者,所述电子装置亮屏。
  6. 如权利要求5所述的方法,其特征在于,在所述监测在所述预设时间内所述当前应用是否切换到后台运行,或者,所述电子装置是否灭屏之后,还包括:
    若确定在所述预设时间内所述当前应用切换到后台运行,或者,所述电子装置灭屏,则控制所述驱动组件驱动所述滑动组件带动所述摄像模组滑入至所述第一位置。
  7. 如权利要求1-6任一所述的方法,其特征在于,在所述则向所述驱动组件发送延时预设时间的延时收回指令之前,包括:
    获取用户对所述相机应用的操作信息;
    根据所述操作信息确定所述操作意图;
    根据所述操作意图确定所述预设时间。
  8. 如权利要求1-7任一所述的方法,其特征在于,在所述则向所述驱动组件发送延时预设时间的延时收回指令之前,包括:
    获取所述当前应用的应用特征;
    根据所述应用特征确定所述预设时间。
  9. 一种摄像模组控制装置,其特征在于,所述摄像模组用于电子装置,所述电子装置包括本体、检测组件、滑动组件和驱动组件,所述驱动组件用于控制所述滑动组件在收容于所述本体的第一位置和自所述本体露出的第二位置之间滑动,所述检测组件包括磁场产生元件和霍尔元件,所述磁场产生元件和所述霍尔元件分别固定在所述滑动组件和所述本体上,所述摄像模组与所述滑动组件硬连接,所述摄像模组控制装置,包括:
    控制模块,用于当相机应用在系统前台运行时,根据相机应用发送的针对所述摄像模组的调用请求,控制所述驱动组件驱动所述滑动组件带动所述摄像模组滑出至所述第二位置;
    第一判断模块,用于在检测到所述系统前台应用由所述相机应用切换到当前应用时,判断所述当前应用是否属于预设应用;
    第二判断模块,用于在所述当前应用属于所述预设应用时,判断是否获取到所述当前应用发送的对所述摄像模组的调用请求;
    处理模块,用于在没有获取到所述调用请求时,向所述驱动组件发送延时预设时间的延时收回指令,以在所述预设时间内维持所述滑动组件处于所述第二位置。
  10. 如权利要求9所述的装置,其特征在于,
    所述控制模块,还用于在所述当前应用不属于所述预设应用时,控制所述驱动组件驱动所述滑动组件带动所述摄像模组滑入至所述第一位置。
  11. 如权利要求9或10所述的装置,其特征在于,所述处理模块,还用于:
    若获取到所述调用请求,则维持所述滑动组件处于所述第二位置;
    当获取到所述当前应用对所述摄像模组的释放请求后,向所述驱动组件发送延时预设时间的延时收回指令,以在所述预设时间内维持所述滑动组件处于所述第二位置。
  12. 如权利要求11所述的装置,其特征在于,所述处理模块,还用于:
    获取到所述相册应用发送的人脸识别成功请求。
  13. 如权利要求9-12任一所述的装置,其特征在于,还包括:
    监测模块,用于监测在所述预设时间内所述当前应用是否切换到后台运行,或者,所述电子装置是否灭屏;
    第一确定模块,用于确定在所述预设时间内所述当前应用没有切换到后台运行,或者,所述电子装置亮屏。
  14. 如权利要求13所述的装置,其特征在于,还包括:
    所述控制模块,还用于在所述监测在所述预设时间内所述当前应用是否切换到后台运行,或者,所述电子装置是否灭屏之后,若确定在所述预设时间内所述当前应用切换到后台运行,或者,所述电子装置灭屏,则控制所述驱动组件驱动所述滑动组件带动所述摄像模组滑入至所述第一位置。
  15. 如权利要求9-14任一所述的装置,其特征在于,还包括:
    第二确定模块,用于获取用户对所述相机应用的操作信息,根据所述操作信息确定所述操作意图;根据所述操作意图确定所述预设时间。
  16. 如权利要求9-15任一所述的装置,其特征在于,还包括:
    第三确定模块,用于获取所述当前应用的应用特征,根据所述应用特征确定所述预设时间。
  17. 一种电子装置,其特征在于,所述电子装置包括本体、摄像模组、滑动组件、检测组件和驱动组件,所述驱动组件用于控制所述滑动组件在收容于所述本体的第一位置和自所述本体露出的第二位置之间滑动,所述检测组件包括磁场产生元件和霍尔元件,所述磁场产生元件和所述霍尔元件分别固定在所述滑动组件和所述本体上,所述摄像模组与所述滑动组件硬连接,所述电子装置还包括:存储器、与所述滑动组件电性连接的处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如权利要求1-8中任一所述的摄像模组控制方法。
  18. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-8中任一所述的摄像模组控制方法。
PCT/CN2019/105424 2018-11-30 2019-09-11 摄像模组控制方法和装置 WO2020108007A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP19890249.6A EP3883220A4 (en) 2019-09-11 Camera module control method and device
US17/332,387 US11228703B2 (en) 2018-11-30 2021-05-27 Method for controlling camera module, electronic device, and computer-readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811459606.6 2018-11-30
CN201811459606.6A CN109547598B (zh) 2018-11-30 2018-11-30 摄像模组控制方法和装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/332,387 Continuation US11228703B2 (en) 2018-11-30 2021-05-27 Method for controlling camera module, electronic device, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2020108007A1 true WO2020108007A1 (zh) 2020-06-04

Family

ID=65851728

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/105424 WO2020108007A1 (zh) 2018-11-30 2019-09-11 摄像模组控制方法和装置

Country Status (3)

Country Link
US (1) US11228703B2 (zh)
CN (1) CN109547598B (zh)
WO (1) WO2020108007A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113784025A (zh) * 2021-08-20 2021-12-10 科沃斯机器人股份有限公司 智能清洁设备

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109547598B (zh) * 2018-11-30 2020-06-26 Oppo广东移动通信有限公司 摄像模组控制方法和装置
CN109246361B (zh) * 2018-11-30 2020-05-12 Oppo广东移动通信有限公司 摄像模组控制方法和装置
CN112019766B (zh) * 2019-05-31 2022-03-18 比亚迪股份有限公司 中央控制台和车辆
CN110248007A (zh) * 2019-06-28 2019-09-17 Oppo广东移动通信有限公司 电子设备及功能组件的控制方法
CN110365840B (zh) * 2019-07-05 2021-04-13 Oppo广东移动通信有限公司 滑块控制方法及相关产品
CN110519511A (zh) * 2019-08-12 2019-11-29 Oppo广东移动通信有限公司 摄像装置控制方法、终端、服务器及存储介质
CN113690085B (zh) * 2021-08-09 2024-06-14 维沃移动通信有限公司 电子设备
US20230083653A1 (en) * 2021-09-14 2023-03-16 Tdk Taiwan Corp. Driving mechanism
US11902664B2 (en) * 2021-09-22 2024-02-13 Adam A. Locke Cellular telephone with protracting monitor screen and camera

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050014527A1 (en) * 2003-07-18 2005-01-20 Agere Systems Incorporated Retractable rotatable camera module for mobile communication device and method of operation thereof
CN104918309A (zh) * 2015-06-08 2015-09-16 青岛海信移动通信技术股份有限公司 一种移动终端的节电方法及装置
CN108196621A (zh) * 2017-12-29 2018-06-22 上海与德科技有限公司 一种移动终端及移动终端的控制方法
CN108829461A (zh) * 2018-06-12 2018-11-16 Oppo广东移动通信有限公司 相机启动控制方法、装置及电子设备
CN108845836A (zh) * 2018-06-12 2018-11-20 Oppo广东移动通信有限公司 滑动机构的控制方法、装置和电子设备
CN108897375A (zh) * 2018-06-12 2018-11-27 Oppo广东移动通信有限公司 滑动机构的控制方法、装置、电子设备及存储介质
CN109246361A (zh) * 2018-11-30 2019-01-18 Oppo广东移动通信有限公司 摄像模组控制方法和装置
CN109547598A (zh) * 2018-11-30 2019-03-29 Oppo广东移动通信有限公司 摄像模组控制方法和装置

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9437132B2 (en) * 2011-11-30 2016-09-06 Apple Inc. Devices and methods for providing access to internal component
CN104038698A (zh) * 2014-06-25 2014-09-10 深圳市中兴移动通信有限公司 后台拍摄方法和拍摄装置
KR102418520B1 (ko) * 2015-09-04 2022-07-08 삼성디스플레이 주식회사 표시 장치
CN106856516A (zh) 2015-12-09 2017-06-16 小米科技有限责任公司 电子设备
CN105554196A (zh) 2016-01-26 2016-05-04 孔岳 一种全屏手机
CN107426471B (zh) * 2017-05-03 2021-02-05 Oppo广东移动通信有限公司 相机模组和电子装置
CN107589600B (zh) * 2017-09-22 2021-03-02 京东方科技集团股份有限公司 一种像素结构、显示面板及显示装置
CN110290235B (zh) * 2018-03-19 2022-11-18 华为技术有限公司 电子设备
CN108833623B (zh) * 2018-06-08 2020-12-29 Oppo广东移动通信有限公司 滑动组件的滑动控制方法、装置和电子装置
CN112104807B (zh) * 2019-06-17 2023-07-04 北京小米移动软件有限公司 前置摄像头的控制方法、系统及装置

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050014527A1 (en) * 2003-07-18 2005-01-20 Agere Systems Incorporated Retractable rotatable camera module for mobile communication device and method of operation thereof
CN104918309A (zh) * 2015-06-08 2015-09-16 青岛海信移动通信技术股份有限公司 一种移动终端的节电方法及装置
CN108196621A (zh) * 2017-12-29 2018-06-22 上海与德科技有限公司 一种移动终端及移动终端的控制方法
CN108829461A (zh) * 2018-06-12 2018-11-16 Oppo广东移动通信有限公司 相机启动控制方法、装置及电子设备
CN108845836A (zh) * 2018-06-12 2018-11-20 Oppo广东移动通信有限公司 滑动机构的控制方法、装置和电子设备
CN108897375A (zh) * 2018-06-12 2018-11-27 Oppo广东移动通信有限公司 滑动机构的控制方法、装置、电子设备及存储介质
CN109246361A (zh) * 2018-11-30 2019-01-18 Oppo广东移动通信有限公司 摄像模组控制方法和装置
CN109547598A (zh) * 2018-11-30 2019-03-29 Oppo广东移动通信有限公司 摄像模组控制方法和装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113784025A (zh) * 2021-08-20 2021-12-10 科沃斯机器人股份有限公司 智能清洁设备
CN113784025B (zh) * 2021-08-20 2023-09-22 科沃斯机器人股份有限公司 智能清洁设备

Also Published As

Publication number Publication date
CN109547598B (zh) 2020-06-26
US20210289130A1 (en) 2021-09-16
US11228703B2 (en) 2022-01-18
CN109547598A (zh) 2019-03-29
EP3883220A1 (en) 2021-09-22

Similar Documents

Publication Publication Date Title
WO2020108007A1 (zh) 摄像模组控制方法和装置
WO2020108008A1 (zh) 摄像模组控制方法和装置
US10901574B2 (en) Mobile terminal and method for multi-tasking using an extended region to display related content
CN108702446B (zh) 一种拍照方法和终端
RU2637474C2 (ru) Способ и устройство для управления фоновым приложением и терминальным устройством
EP3518526B1 (en) Mobile terminal with touch screen and method of capturing image using the same
RU2669063C2 (ru) Способ и устройство получения изображений
CN105677460A (zh) 应用程序处理方法以及装置
WO2018103497A1 (en) Mobile terminal
CN112136100A (zh) 一种拍摄的方法及电子设备
CN105491113A (zh) 迁移方法、装置及终端
CN107391063A (zh) 信息显示方法、装置及计算机可读存储介质
KR20110063202A (ko) 영상 프로젝터를 구비한 이동 단말기 및 그 제어 방법
CN101552818A (zh) 使用接近传感器的移动终端及其控制方法
CN110262692B (zh) 一种触摸屏扫描方法、装置及介质
CN104202483A (zh) 移动终端的显示屏开关控制
US20200310600A1 (en) Interactive interface display method, apparatus and storage medium
US10055124B2 (en) Mobile terminal and display operating method thereof
KR20170038178A (ko) 지문 인식 방법, 장치, 이동 단말기, 프로그램 및 컴퓨터 판독가능한 기록매체
CN105487680A (zh) 用于终端截屏的方法、装置及终端
CN105430715A (zh) 控制wifi扫描的方法及装置
CN104461367A (zh) 一种终端前置摄像头的影像显示方法及装置
CN104703255A (zh) 驻网调整方法及装置、电子设备
CN104991699A (zh) 一种视频显示控制的方法和装置
WO2020038149A1 (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: 19890249

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

Country of ref document: EP

Effective date: 20210617