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

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

Info

Publication number
WO2020108008A1
WO2020108008A1 PCT/CN2019/105425 CN2019105425W WO2020108008A1 WO 2020108008 A1 WO2020108008 A1 WO 2020108008A1 CN 2019105425 W CN2019105425 W CN 2019105425W WO 2020108008 A1 WO2020108008 A1 WO 2020108008A1
Authority
WO
WIPO (PCT)
Prior art keywords
face recognition
camera module
component
sliding
application
Prior art date
Application number
PCT/CN2019/105425
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 EP19888545.1A priority Critical patent/EP3883219A4/en
Publication of WO2020108008A1 publication Critical patent/WO2020108008A1/zh
Priority to US17/331,566 priority patent/US11438500B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • 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/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
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • 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 with the sliding component
  • the method includes the following steps: after receiving the face sent by the face recognition application After the recognition request, control the driving component to drive the sliding component to drive the camera module to slide out to the second position; after obtaining the release request of the face recognition application for the camera module, according to A preset delay strategy, sending a delayed retraction instruction with a preset duration to the drive component to maintain the sliding component in the second position within the preset duration; during the preset duration Within, it is detected
  • 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 for receiving After the face recognition request sent by the face recognition application, control the driving component to drive the sliding component to drive the camera module to slide out to the second position;
  • the sending module is used to obtain the face After recognizing the release request of the camera module by the application, according to a preset delay strategy, a delay recovery command with a preset duration is sent to the drive component to maintain the sliding component for the preset duration Is in the
  • 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 is maintained in the slide-out state to avoid related components. Multiple operations in a short time, high flexibility and practicality.
  • 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 flowchart of a camera module control method according to another specific embodiment of the present invention.
  • FIG. 11 is a schematic structural view of a camera module control device according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a camera module control device according to another 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, many users like to encrypt some applications, such as WeChat. When the screen is directly off from the WeChat interface, the first interface after the successful unlocking of the bright screen face is the application encryption.
  • the present invention accurately recognizes the scene of calling the camera module multiple times in a short time. For the operation of calling the camera module multiple times in a short time, only the call to the camera is released, and the delay slide component slides in, 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 After receiving the face recognition request sent by the face recognition application, control the driving component to drive the sliding component to drive the camera module to slide out to the second position.
  • the face recognition application When the face recognition application is enabled, it will send a call request for the camera module. After receiving the request, control the driving component to drive the sliding component to drive the camera module to slide out from the first position to the second position, thinking that the face
  • the recognition application provides a face image collection service.
  • the face recognition application in the embodiment of the present invention may be any application that uses face encryption, including file applications that use face encryption, WeChat applications, and lock screens.
  • Step 102 After obtaining the release request for the camera module from the face recognition application, according to a preset delay strategy, send a delay recovery command with a delay of a preset duration to the drive component to maintain the sliding component for a preset duration In the second position.
  • the release request of the camera module by the face recognition application when the release request of the camera module by the face recognition application is obtained, it does not immediately slide into the sliding component, but sends a delay recovery with a delay of a preset duration to the drive component according to a preset delay strategy Instruction to maintain the sliding component in the second position within a preset duration, that is to say, in the embodiment of the present invention, in order to avoid a continuous face in a short period of time, the camera module is called by the application, in the previous person After the face recognition application releases the call to the camera module, it does not slide into the sliding component immediately to avoid receiving the face recognition request sent by the next face recognition application within a short time after sliding in, resulting in the sliding component in a short time Hardware loss caused by sliding in and out multiple times.
  • the preset duration is calibrated based on a large amount of experimental data.
  • the preset duration can also be According to the user's operation habit setting, for example, after the user unlocks the mobile phone, first check the news of the day, and then enter the face encryption unlock application, the preset duration set for the corresponding electronic device of the user is longer.
  • the lock screen application directly controls the sliding component to slide in and out.
  • improve the service quality of the camera module because the lock screen application is known before the face recognition module after the bright screen, and the lock screen application will also be known in advance when the sliding component slides in, so that the sliding component can be lowered before the face recognition service Or the recognition failure controls the sliding component to keep rising.
  • a lock screen application can learn about the slide earlier than the face recognition module
  • the control requirements of the component therefore, a lock screen application can also be set to control the driving operation of the driving component driving the sliding component, thereby improving the control efficiency of the sliding component and facilitating the rapid sliding in and sliding out of the sliding component.
  • the release request of the face recognition application to the camera module is obtained, the first is that the face recognition is successful, and the face recognition application is released Another call to the camera module is that face recognition has been failed.
  • the reason for face recognition failure may be caused by the corresponding face recognition application, such as a stuck, in this case, in order to Does not affect the call of other face recognition applications to the camera module.
  • the face recognition application occupies the camera module for more than the preset time, such as more than 30 seconds, or the number of face recognition failures exceeds the preset number, it is mandatory
  • the face recognition application releases the call to the camera module.
  • Step 103 Detect whether a face recognition request is obtained within a preset duration. If no face recognition request is obtained, control the driving component to drive the sliding component to drive the camera module to the first position after the preset duration.
  • the application can use the camera module normally.
  • the sliding component is always kept in the second position to minimize the loss of the sliding component as much as possible.
  • the above method for detecting whether to obtain a face recognition request is different within a preset duration.
  • a counter that records the request of the sliding component is created in advance. The initial value of the counter is zero. After the face recognition request is obtained, the counter is increased by one. After the release request for the camera module, the counter is decremented by one. From this, it is obvious that when the count value of the counter is zero, it means that no face recognition application is occupying the camera module at this time. When the count value of the counter is one , Indicating that the face recognition application occupies the camera module at this time. Therefore, it is possible to detect whether the face recognition request is obtained by detecting whether the count value of the counter changes from zero to one within a preset duration.
  • a counter for recording the request of the sliding component is created in advance, and the initial value of the counter is 0.
  • the sliding component receives the sliding out instruction, At this time, the sliding component drives the camera module to slide to the second position, and the count value of the counter is increased by one.
  • the lock screen application releases the occupation of the camera module, a release request for the camera module sent by the camera module is received.
  • the slip component receives the slip-in instruction, it delays the slip-in of the slip component according to a preset delay strategy, but at this time, the count value of the counter decrements by one and becomes zero.
  • the driving component is controlled to drive the sliding component to drive the camera module to the first position after a preset duration.
  • 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 , Maintain the camera module in the slide-out state, avoid related components to perform multiple operations in a short time, and have high flexibility and practicality.
  • 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. 11 is a schematic structural diagram of a camera module control device according to an embodiment of the present invention. As shown in FIG. 11, the device includes a control module 10, a sending module 20, and a processing module 30. among them,
  • the control module 10 is configured to, after receiving the face recognition request sent by the face recognition application, control the driving component to drive the sliding component to drive the camera module to slide out to the second position.
  • the sending module 20 is used to send a delay recovery instruction with a delay of a preset duration to the drive component according to a preset delay strategy after obtaining the release request of the face recognition application to the camera module to maintain the sliding component at It is in the second position within the preset duration.
  • the processing module 30 is configured to detect whether a face recognition request is obtained within a preset duration, and if no face recognition request is obtained, control the driving component to drive the sliding component to drive the camera module to the One location.
  • the processing module 30 includes a creation unit 31 and a detection unit 32, wherein the creation unit 31 is used to create a record sliding component in advance
  • the requested counter where the initial value of the counter is zero, after the face recognition request is obtained, the counter is incremented by one, and when the release request to the camera module is obtained, the counter is decremented by one.
  • the detection unit 32 is configured to detect whether the count value of the counter changes from zero to one within a preset duration.
  • 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 , Maintain the camera module in the slide-out state, avoid related components to perform multiple operations in a short time, and have high flexibility and practicality.
  • 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.

Abstract

本发明提出一种摄像模组控制方法和装置,其中,方法包括:在接收到人脸识别应用发送的人脸识别请求后,控制驱动组件驱动滑动组件带动摄像模组滑出至第二位置;在获取到人脸识别应用对摄像模组的释放请求后,根据预设的延时策略,向驱动组件发送延时预设时长的延时收回指令,以维持滑动组件在预设时长内处于第二位置;在预设时长内,检测是否获取到人脸识别请求,若没有获取到人脸识别请求,则控制驱动组件驱动滑动组件带动摄像模组滑入至第一位置。由此,通过滑动组件降低相关组件对屏幕占比的影响,且降低了相关组件的损耗,提升了滑动组件的应用灵活性。

Description

摄像模组控制方法和装置
相关申请的交叉引用
本申请要求OPPO广东移动通信有限公司于2018年11月30日提交的、申请名称为“摄像模组控制方法和装置”的、中国专利申请号“201811457820.8”的优先权。
技术领域
本发明涉及电子技术领域,尤其涉及一种摄像模组控制方法和装置。
背景技术
随着智能手机等便携式电子装置的普及,电子装置的美观性和功能性的优化也成为大趋势,比如,电子装置的屏幕占比的提高就是其中一种流行趋势。
相关技术中,电子装置的前面板中安装有摄像模组等设备以为用户提供前置摄像服务,因而,摄像模组的在前面板上的安装空间的占用与屏幕占比的提高的矛盾亟待解决。
发明内容
本发明旨在至少在一定程度上解决相关技术中的技术问题之一。
为此,本发明提出一种摄像模组控制方法和装置。
为达上述目的,本发明第一方面实施例提出了一种摄像模组控制方法,所述摄像模组用于电子装置,所述电子装置包括本体、检测组件、滑动组件和驱动组件,所述驱动组件用于控制所述滑动组件在收容于所述本体的第一位置和自所述本体露出的第二位置之间滑动,所述检测组件包括磁场产生元件和霍尔元件,所述磁场产生元件和所述霍尔元件分别固定在所述滑动组件和所述本体上,所述摄像模组与所述滑动组件硬连接,所述包括以下步骤:在接收到人脸识别应用发送的人脸识别请求后,控制所述驱动组件驱动所述滑动组件带动所述摄像模组滑出至所述第二位置;在获取到所述人脸识别应用对所述摄像模组的释放请求后,根据预设的延时策略,向所述驱动组件发送延时预设时长的延时收回指令,以维持所述滑动组件在所述预设时长内处于所述第二位置;在所述预设时长内,检测是否获取到人脸识别请求,若没有获取到所述人脸识别请求,则控制所述驱动组件在所述预设时长后驱动所述滑动组件带动所述摄像模组滑入至所述第一位置。
为达上述目的,本发明第二方面实施例提出了一种摄像模组控制装置,所述摄像模组用于电子装置,所述电子装置包括本体、检测组件、滑动组件和驱动组件,所述驱动组件用于控制所述滑动组件在收容于所述本体的第一位置和自所述本体露出的第二位置之间滑 动,所述检测组件包括磁场产生元件和霍尔元件,所述磁场产生元件和所述霍尔元件分别固定在所述滑动组件和所述本体上,所述摄像模组与所述滑动组件硬连接,所述摄像模组控制装置,包括:控制模块,用于在接收到人脸识别应用发送的人脸识别请求后,控制所述驱动组件驱动所述滑动组件带动所述摄像模组滑出至所述第二位置;发送模块,用于在获取到所述人脸识别应用对所述摄像模组的释放请求后,根据预设的延时策略,向所述驱动组件发送延时预设时长的延时收回指令,以维持所述滑动组件在所述预设时长内处于所述第二位置;处理模块,用于在所述预设时长内,检测是否获取到人脸识别请求,若没有获取到所述人脸识别请求,则控制所述驱动组件在所述预设时长后驱动所述滑动组件带动所述摄像模组滑入至所述第一位置。
为达上述目的,本发明第三方面实施例提出了一种电子装置,所述电子装置包括本体、摄像模组、滑动组件、检测组件和驱动组件,所述驱动组件用于控制所述滑动组件在收容于所述本体的第一位置和自所述本体露出的第二位置之间滑动,所述检测组件包括磁场产生元件和霍尔元件,所述磁场产生元件和所述霍尔元件分别固定在所述滑动组件和所述本体上,所述摄像模组与所述滑动组件硬连接,所述电子装置还包括:存储器、与所述滑动组件电性连接的处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如上述实施例所述的摄像模组控制方法。
为达上述目的,本发明第四方面实施例提出了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,实现如前述方法实施例所述的摄像模组控制方法。
本发明提供的技术方案,至少包括如下有益效果:
通过滑动组件降低相关组件对屏幕占比的影响,且在降低了滑动组件的损耗,当在短时间内具有对摄像模组的控制请求时,维持摄像模组处于滑出状态,避免相关组件在短时间内进行多次操作,灵活性和实用性较高。
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。
附图说明
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:
图1是本发明实施方式的电子装置在第二位置时的状态示意图;
图2是本发明实施方式的电子装置在第一位置时的状态示意图;
图3是本发明实施方式的电子装置在第三位置时的状态示意图;
图4是本发明实施方式的检测组件的结构示意图;
图5是本发明实施方式的电子装置的使用场景图;
图6是本发明实施方式的电子装置的另一使用场景图;
图7是本发明实施方式的电子装置的结构示意图;
图8是根据本发明一个实施例的摄像模组控制方法的流程图;
图9是根据本发明一个具体实施例的摄像模组控制方法的流程图;
图10是根据本发明另一个具体实施例的摄像模组控制方法的流程图;
图11是根据本发明一个实施例的摄像模组控制装置的结构示意图;以及
图12是根据本发明另一个实施例的摄像模组控制装置的结构示意图。
具体实施方式
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。
在本发明的描述中,需要理解的是,术语“中心”、“纵向”、“横向”、“长度”、“宽度”、“厚度”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”、“内”、“外”、“顺时针”、“逆时针”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个所述特征。在本发明的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。
在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接或可以相互通讯;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。
在本发明中,除非另有明确的规定和限定,第一特征在第二特征之“上”或之“下”可以包括第一和第二特征直接接触,也可以包括第一和第二特征不是直接接触而是通过它们之间的另外的特征接触。而且,第一特征在第二特征“之上”、“上方”和“上面”包括第一特征在第二特征正上方和斜上方,或仅仅表示第一特征水平高度高于第二特征。第一特征在第二特征“之下”、“下方”和“下面”包括第一特征在第二特征正下方和斜下方,或仅仅表示第一特 征水平高度小于第二特征。
下文的公开提供了许多不同的实施方式或例子用来实现本发明的不同结构。为了简化本发明的公开,下文中对特定例子的部件和设置进行描述。当然,它们仅仅为示例,并且目的不在于限制本发明。此外,本发明可以在不同例子中重复参考数字和/或参考字母,这种重复是为了简化和清楚的目的,其本身不指示所讨论各种实施方式和/或设置之间的关系。此外,本发明提供了的各种特定的工艺和材料的例子,但是本领域普通技术人员可以意识到其他工艺的应用和/或其他材料的使用。
下面参考附图描述本发明实施例的摄像模组控制方法和装置。
为了更加清楚的描述本发明实施例的摄像模组控制方法,下面首先对本发明的电子装置进行结构上的描述。
具体地,为了降低摄像模组等安装在电子装置前置面板上的硬件设备对屏幕占比的影响,本发明提出了一种滑动组件,通过滑动组件的滑动控制摄像模组等在需要的时候滑出,在不需要的时候收容于电子装置本体内,由此,在不进行摄像模组等组件的功能服务时,使其不占用电子装置前置面板。
具体而言,如图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,在获取到人脸识别应用对摄像模组的释放请求后,根据预设的延时策略,向驱动组件发送延时预设时长的延时收回指令,以维持滑动组件在预设时长内处于第二位置。
可以理解,当获取到人脸识别应用对摄像模组的释放请求后,并不立即滑入滑动组件,而是根据预设的延时策略,向驱动组件发送延时预设时长的延时收回指令,以维持滑动组件在预设时长内处于第二位置,也就是说,在本发明的实施例中,为了避免短时间内存在连续的人脸是被应用调用摄像模组,在前一个人脸识别应用释放对摄像模组的调用后,并不立即滑入滑动组件,以避免在滑入后短时间内收到下一个人脸识别应用发送的人脸识别请求,导致滑动组件在短时间内多次滑入滑出导致的硬件损耗。
其中,预设时长根据大量实验数据标定,通常,在预设时长内,还以涵盖顿时间内两个人脸识别应用调用摄像模组的场景,当然,在本实施例中,预设时长还可以通过用户的操作习惯设置,比如,用户的操作习惯为在解锁手机后,先查看当日新闻,再进入人脸加密的解锁应用,则针对该用户对应的电子装置设置的预设时长较长。
在实际执行过程中,申请人发现在针对灭屏的电子装置进行人脸识别解锁过程中,除了人脸识别服务去控制滑动组件外,锁屏应用直接去控制滑动组件的滑入滑出将会提高摄像模组的服务质量,因为亮屏后锁屏应用是提前于人脸识别模块知道的,同理滑动组件滑入时锁屏应用也会提前知道,以便提前于人脸识别服务降下滑动组件或者识别失败控制滑动组件维持升起,因此,当根据人脸识别应用的应用标识,确定人脸识别应用是否是锁屏 应用时,由于锁屏应用相对人脸识别模块可以较早的获知对滑动组件的控制需求,因而,还可以设置锁屏应用控制驱动滑动组件的驱动组件的驱动操作,由此,提高了对滑动组件的控制效率,便于提高滑动组件的快速滑入滑出。
在本发明的一个实施例中,如图9所示,获取到人脸识别应用对摄像模组的释放请求的场景包括两种,第一种为人脸识别成功,此时人脸识别应用释放掉对摄像模组的调用,还有一种是人脸识别一直失败,此时造成人脸识别一直失败的原因可能的是对应的人脸识别应用个卡顿等原因导致,在这种情况下,为了不影响其他人脸识别应用对摄像模组的调用,在检测到人脸识别应用占用摄像模组的时长超过预设时长,比如超过30秒,或者人脸识别失败次数超过预设次数,则强制该人脸识别应用释放对摄像模组的调用。
步骤103,在预设时长内,检测是否获取到人脸识别请求,若没有获取到人脸识别请求,则控制驱动组件在预设时长后驱动滑动组件带动摄像模组滑入至第一位置。
具体地,在预设时长内,检测是否获取到人脸识别请求,若在预设时长内,获取到人脸识别请求,则移除延时收回指令,使得发送人脸识别请求的人脸识别应用可以正常使用摄像模组。
如果在预设时长内,没有获取到人脸识别请求,则表明没有对摄像模组的调用需求,从而控制驱动组件驱动滑动组件带动摄像模组滑入至第一位置,以避免摄像模组滑出时间较长,导致资源浪费,以及增加被碰撞的机会。
当然,在一种可能的实现方式中,可以在系统前台运行的应用为人脸识别应用且电子装置亮屏时,始终保持滑动组件处于第二位置,以尽可能最大化的减小滑动组件的损耗,在本实施例中,继续参照图9,可以在控制驱动组件在预设时长后驱动滑动组件带动摄像模组滑入至第一位置之前,确定当前系统前台运行的应用类型是不是人脸识别应用类型(比如根据前台应用的应用标识与预存的人脸识别应用的应用标识进行比对,根据比对结果来确定当前系统前台运行的应用类型是不是人脸识别应用类型),或者,电子装置是否灭屏,若在预设时长内,确定当前系统前台运行的应用类型不是人脸识别应用类型,或者,电子装置灭屏,则驱动滑动组件带动所述摄像模组滑入至第一位置,若确定当前系统前台运行的应用类型为人脸识别应用类型,和,电子装置亮屏,则为了随时为相关人脸识别应用提供人脸识别服务,维持滑动组件在预设时长内处于第二位置。
需要说明的是,根据应用场景的不同,上述在预设时长内,检测是否获取到人脸识别请求的方式不同,作为一种可能的实现方式,参照上述实施例,根据是否获取到具体的人脸识别请求来确定,作为另一种可能的实现方式,预先创建记录滑动组件请求的计数器,其中,计数器的初始值为零,在获取到人脸识别请求后,计数器加一处理,当获取到对摄像模组的释放请求后,计数器减一处理,由此,显而易见的是,当计数器的计数值为零时, 表示此时没有人脸识别应用占用摄像模组,当计数器的计数值为一时,表示此时有人脸识别应用占用摄像模组。因而,可以通过在预设时长内,检测是否存在计数器的计数值由零变化为一,检测是否获取到人脸识别请求。
举例而言,如图10所示,预先创建记录滑动组件请求的计数器,该计数器的初始值为0,当接收到锁屏应用对摄像模组的调用请求后,滑动组件接收到滑出指令,此时滑动组件带动摄像模组滑动到第二位置,计数器的计数值加一,当锁屏应用释放对摄像模组的占用后,接收到摄像模组发送的对摄像模组的释放请求,此时滑动组件虽然接收滑入指令,但是根据预设的延时策略,延时滑动组件的滑入,但此时计数器的计数值减一处理变为零,当所述计数器的计数值为零时,在预设时长内(在本实例中,预设时长为400ms),检测是否获取到人脸识别请求,如果没有获取到人脸识别请求,则在400ms内,检测计数器的计数值为零,不存在由零变为一的情况,因而,控制驱动组件在预设时长后驱动滑动组件带动摄像模组滑入至第一位置。
综上,本发明实施例的摄像模组控制方法,通过滑动组件降低相关组件对屏幕占比的影响,且在降低了滑动组件的损耗,当在短时间内具有对摄像模组的控制请求时,维持摄像模组处于滑出状态,避免相关组件在短时间内进行多次操作,灵活性和实用性较高。
为了实现上述实施例,本发明还提出了一种摄像模组控制装置,摄像模组用于电子装置,电子装置包括本体、检测组件、滑动组件和驱动组件,驱动组件用于控制滑动组件在收容于本体的第一位置和自本体露出的第二位置之间滑动,检测组件包括磁场产生元件和霍尔元件,磁场产生元件和霍尔元件分别固定在滑动组件和本体上,摄像模组与滑动组件硬连接,图11是根据本发明一个实施例的摄像模组控制装置的结构示意图,如图11所示,该装置包括:控制模块10、发送模块20和处理模块30。其中,
控制模块10,用于在接收到人脸识别应用发送的人脸识别请求后,控制驱动组件驱动滑动组件带动摄像模组滑出至第二位置。
发送模块20,用于在获取到人脸识别应用对摄像模组的释放请求后,根据预设的延时策略,向驱动组件发送延时预设时长的延时收回指令,以维持滑动组件在预设时长内处于第二位置。
处理模块30,用于在预设时长内,检测是否获取到人脸识别请求,若没有获取到人脸识别请求,则控制驱动组件在预设时长后驱动滑动组件带动摄像模组滑入至第一位置。
在本发明的一个实施例中,如图12所示,在如图11所示的基础上,处理模块30包括创建单元31和检测单元32,其中,创建单元31,用于预先创建记录滑动组件请求的计数器,其中,计数器的初始值为零,在获取到人脸识别请求后,计数器加一处理,当获取到 对摄像模组的释放请求后,计数器减一处理。
检测单元32,用于在预设时长内,检测是否存在计数器的计数值由零变化为一。
需要说明的是,前述集中在摄像模组控制方法实施例中的描述,也适用于本发明实施例的摄像模组控制装置,在此不再对其实施细节赘述。
综上,本发明实施例的摄像模组控制装置,通过滑动组件降低相关组件对屏幕占比的影响,且在降低了滑动组件的损耗,当在短时间内具有对摄像模组的控制请求时,维持摄像模组处于滑出状态,避免相关组件在短时间内进行多次操作,灵活性和实用性较高。
为了实现上述实施例,本发明还提出了一种电子装置,其中,参照图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. 如权利要求1-5任一所述的方法,其特征在于,所述获取到所述人脸识别应用对所述摄像模组的释放请求,包括:获取到人脸识别成功请求;或者,
    在获取到所述人脸识别成功请求后,所述人脸识别应用占用所述摄像模组的时长超过预设时长。
  7. 如权利要求1-6任一所述的方法,其特征在于,所述获取到所述人脸识别应用对所述摄像模组的释放请求,包括:
    获取到所述人脸识别失败请求后,监测到所述人脸识别应用占用所述摄像模组的时长超过预设时长。
  8. 如权利要求1-7任一所述的方法,其特征在于,所述获取到所述人脸识别应用对所述摄像模组的释放请求,包括:
    获取到所述人脸识别失败请求的次数超过预设次数。
  9. 一种摄像模组控制装置,其特征在于,摄像组件用于电子装置,所述电子装置包括本体、检测组件、滑动组件和驱动组件,所述驱动组件用于控制所述滑动组件在收容于所述本体的第一位置和自所述本体露出的第二位置之间滑动,所述检测组件包括磁场产生元件和霍尔元件,所述磁场产生元件和所述霍尔元件分别固定在所述滑动组件和所述本体上,所述摄像模组与所述滑动组件硬连接,所述摄像模组控制装置,包括:
    控制模块,用于在接收到人脸识别应用发送的人脸识别请求后,控制所述驱动组件驱动所述滑动组件带动所述摄像模组滑出至所述第二位置;
    发送模块,用于在获取到所述人脸识别应用对所述摄像模组的释放请求后,根据预设的延时策略,向所述驱动组件发送延时预设时长的延时收回指令,以维持所述滑动组件在所述预设时长内处于所述第二位置;
    处理模块,用于在所述预设时长内,检测是否获取到人脸识别请求,若没有获取到所述人脸识别请求,则控制所述驱动组件在所述预设时长后驱动所述滑动组件带动所述摄像模组滑入至所述第一位置。
  10. 如权利要求9所述的装置,其特征在于,所述处理模块,包括:创建单元,用于预先创建记录滑动组件请求的计数器,其中,所述计数器的初始值为零,在获取到所述人脸识别请求后,所述计数器加一处理,当获取到对所述摄像模组的释放请求后,所述计数器减一处理;
    检测单元,用于在所述预设时长内,检测是否存在所述计数器的计数值由零变化为一。
  11. 如权利要求9或10所述的装置,其特征在于,还包括:
    第一确定模块,用于在所述控制所述驱动组件在所述预设时长后驱动所述滑动组件带动所述摄像模组滑入至所述第一位置之前,确定当前系统前台运行的应用类型不是人脸识 别应用类型,或者,所述电子装置灭屏。
  12. 如权利要求11所述的装置,其特征在于,所述处理模块,还用于:
    若确定当前系统前台运行的应用类型为人脸识别应用类型,和,所述电子装置亮屏时,维持所述滑动组件在所述预设时长内处于所述第二位置。
  13. 如权利要求9-12任一所述的装置,其特征在于,还包括:
    第二确定模块,用于在所述在接收到人脸识别应用发送的人脸识别请求之前,根据所述人脸识别应用的应用标识,确定所述人脸识别应用是否是锁屏应用;
    设置模块,用于在所述人脸识别应用是所述锁屏应用时,设置所述锁屏应用控制所述驱动组件的驱动操作。
  14. 如权利要求9-13任一所述的装置,其特征在于,所述处理模块,用于:
    获取到人脸识别成功请求;或者,
    在获取到所述人脸识别成功请求后,所述人脸识别应用占用所述摄像模组的时长超过预设时长。
  15. 如权利要求9-14任一所述的装置,其特征在于,所述处理模块,用于:
    获取到所述人脸识别失败请求后,监测到所述人脸识别应用占用所述摄像模组的时长超过预设时长。
  16. 如权利要求9-15任一所述的装置,其特征在于,所述处理模块,用于:
    获取到所述人脸识别失败请求的次数超过预设次数。
  17. 一种电子装置,其特征在于,所述电子装置包括本体、摄像模组、滑动组件、检测组件和驱动组件,所述驱动组件用于控制所述滑动组件在收容于所述本体的第一位置和自所述本体露出的第二位置之间滑动,所述检测组件包括磁场产生元件和霍尔元件,所述磁场产生元件和所述霍尔元件分别固定在所述滑动组件和所述本体上,所述摄像模组与所述滑动组件硬连接,所述电子装置还包括:存储器、与所述滑动组件电性连接的处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如权利要求1-8中任一所述的摄像模组控制方法。
  18. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-8中任一所述的摄像模组控制方法。
PCT/CN2019/105425 2018-11-30 2019-09-11 摄像模组控制方法和装置 WO2020108008A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP19888545.1A EP3883219A4 (en) 2019-09-11 Camera module control method and apparatus
US17/331,566 US11438500B2 (en) 2018-11-30 2021-05-26 Method for controlling camera module, electronic device, and storage medium

Applications Claiming Priority (2)

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

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/331,566 Continuation US11438500B2 (en) 2018-11-30 2021-05-26 Method for controlling camera module, electronic device, and storage medium

Publications (1)

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

Family

ID=65074374

Family Applications (1)

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

Country Status (3)

Country Link
US (1) US11438500B2 (zh)
CN (1) CN109246361B (zh)
WO (1) WO2020108008A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019233199A1 (zh) 2018-06-06 2019-12-12 Oppo广东移动通信有限公司 验证方法、验证装置及计算机可读存储介质
CN109547598B (zh) * 2018-11-30 2020-06-26 Oppo广东移动通信有限公司 摄像模组控制方法和装置
CN109246361B (zh) 2018-11-30 2020-05-12 Oppo广东移动通信有限公司 摄像模组控制方法和装置
CN112382843B (zh) * 2020-11-03 2022-12-23 上海闻泰信息技术有限公司 天线及电子设备
CN112989926B (zh) * 2021-02-03 2024-03-22 深圳达实智能股份有限公司 一种延长监控摄像头寿命方法和系统
CN113079292B (zh) * 2021-03-29 2022-12-02 北京小米移动软件有限公司 摄像模组及电子设备

Citations (9)

* 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
CN104038698A (zh) * 2014-06-25 2014-09-10 深圳市中兴移动通信有限公司 后台拍摄方法和拍摄装置
CN104918309A (zh) * 2015-06-08 2015-09-16 青岛海信移动通信技术股份有限公司 一种移动终端的节电方法及装置
CN108471493A (zh) * 2018-06-02 2018-08-31 Oppo广东移动通信有限公司 成像组件及电子设备
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 (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3713594C1 (en) * 1987-04-23 1988-08-18 Hanke & Thomas Hama Hamaphot Device for covering the eyepiece of a reflex camera
JP5359762B2 (ja) * 2009-10-15 2013-12-04 ソニー株式会社 情報処理装置、表示制御方法及び表示制御プログラム
CN106856516A (zh) 2015-12-09 2017-06-16 小米科技有限责任公司 电子设备
CN105554196A (zh) 2016-01-26 2016-05-04 孔岳 一种全屏手机
CN107259891B (zh) * 2017-06-12 2018-07-10 美的集团股份有限公司 控制方法、控制装置、智能镜子和计算机可读存储介质
CN108196621A (zh) * 2017-12-29 2018-06-22 上海与德科技有限公司 一种移动终端及移动终端的控制方法
CN108804894B (zh) * 2018-04-26 2021-01-26 Oppo广东移动通信有限公司 屏幕解锁方法、装置、移动终端及计算机可读介质
CN108833623B (zh) * 2018-06-08 2020-12-29 Oppo广东移动通信有限公司 滑动组件的滑动控制方法、装置和电子装置
CN108833699B (zh) * 2018-06-08 2021-04-13 Oppo广东移动通信有限公司 电子装置及其滑动组件的控制方法和装置
CN108834206B (zh) * 2018-06-08 2021-05-25 Oppo广东移动通信有限公司 电子装置的控制方法及电子装置
CN108810203B (zh) 2018-06-12 2021-03-09 Oppo广东移动通信有限公司 滑动机构的控制方法、装置和电子设备
CN109359458B (zh) * 2018-10-19 2021-06-29 北京小米移动软件有限公司 应用解锁方法、装置及计算机可读存储介质

Patent Citations (9)

* 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
CN104038698A (zh) * 2014-06-25 2014-09-10 深圳市中兴移动通信有限公司 后台拍摄方法和拍摄装置
CN104918309A (zh) * 2015-06-08 2015-09-16 青岛海信移动通信技术股份有限公司 一种移动终端的节电方法及装置
CN108471493A (zh) * 2018-06-02 2018-08-31 Oppo广东移动通信有限公司 成像组件及电子设备
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广东移动通信有限公司 摄像模组控制方法和装置

Also Published As

Publication number Publication date
CN109246361A (zh) 2019-01-18
US20210289129A1 (en) 2021-09-16
CN109246361B (zh) 2020-05-12
EP3883219A1 (en) 2021-09-22
US11438500B2 (en) 2022-09-06

Similar Documents

Publication Publication Date Title
WO2020108008A1 (zh) 摄像模组控制方法和装置
WO2020108007A1 (zh) 摄像模组控制方法和装置
US10719119B2 (en) Mobile terminal and method for controlling the same
RU2669063C2 (ru) Способ и устройство получения изображений
KR101295583B1 (ko) 이동 단말기 및 그 동작 제어 방법
KR20190107490A (ko) 이동 단말기 및 그 제어 방법
KR20130093071A (ko) 잠금-위 카메라 액세스
CN108833623B (zh) 滑动组件的滑动控制方法、装置和电子装置
CN104202483A (zh) 移动终端的显示屏开关控制
CN107391063A (zh) 信息显示方法、装置及计算机可读存储介质
US20170075448A1 (en) Mobile terminal and control method for the mobile terminal
CN108833699B (zh) 电子装置及其滑动组件的控制方法和装置
CN108051370A (zh) 环境光检测方法及装置、电子设备
WO2022160638A1 (zh) 目标对象曝光方法、装置、存储介质、设备及程序
CN104461367A (zh) 一种终端前置摄像头的影像显示方法及装置
JP2022508287A (ja) スライドコンポーネントのスライド補正方法及び装置
CN103577096B (zh) 移动终端装置、操作方法、程序和存储介质
CN105824474A (zh) 一种控制方法、装置及移动设备
US20200057543A1 (en) Electronic device and control method
CN108924284B (zh) 电子装置及其滑动组件的控制方法和装置
CN108924286B (zh) 电子装置及其滑动组件的控制方法和装置
CN207424472U (zh) 背光模组、显示装置及电子设备
WO2018157652A1 (zh) 一种拍照提醒方法及移动终端
CN108124098B (zh) 电子设备和用于自动聚焦的方法
CN106201611A (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: 19888545

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

Country of ref document: EP

Effective date: 20210617