CN110149427B - Camera control method and related product - Google Patents

Camera control method and related product Download PDF

Info

Publication number
CN110149427B
CN110149427B CN201910407323.5A CN201910407323A CN110149427B CN 110149427 B CN110149427 B CN 110149427B CN 201910407323 A CN201910407323 A CN 201910407323A CN 110149427 B CN110149427 B CN 110149427B
Authority
CN
China
Prior art keywords
target
camera
preset
touch duration
working state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201910407323.5A
Other languages
Chinese (zh)
Other versions
CN110149427A (en
Inventor
候祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910407323.5A priority Critical patent/CN110149427B/en
Publication of CN110149427A publication Critical patent/CN110149427A/en
Application granted granted Critical
Publication of CN110149427B publication Critical patent/CN110149427B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0262Details of the structure or mounting of specific components for a battery compartment
    • 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
    • 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/0266Details of the structure or mounting of specific components for a display module assembly
    • 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/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image

Landscapes

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

Abstract

The embodiment of the application provides a camera control method and a related product, which are applied to an electronic device, wherein the electronic device comprises a camera and a lifting power key, the camera is arranged on the lifting power key, and when the camera is not started, the camera is hidden in the electronic device; the method comprises the following steps: acquiring a target touch parameter of the lifting power key and acquiring a target working state of the electronic device; if the target working state is a preset working state, generating a camera starting instruction according to the target touch parameter; and controlling the lifting power key to lift outwards according to the camera starting instruction so as to pop up the camera, and starting the camera. Therefore, the practicability of the electronic device can be improved.

Description

Camera control method and related product
Technical Field
The application relates to the technical field of control, in particular to a camera control method and a related product.
Background
With the continuous development of the internet, intelligent electronic devices such as mobile phones have gradually become essential products in the life of people. The screen area full-screen of present intelligent electronic device is in order to obtain better screen demand, accounts for than in order to bring bigger screen for electronic device, thereby can reserve some camera entity spaces with the regional setting of camera at electronic device's top usually, leads to the screen to account for than can not reach the maximize to lead to electronic device's practicality to reduce.
Disclosure of Invention
The embodiment of the application provides a camera control method and a related product, which can improve the practicability of an electronic device.
A first aspect of an embodiment of the present application provides a camera control method, which is applied to an electronic device, where the electronic device includes a camera and a power-up/down key, the camera is disposed in the power-up/down key, and when the camera is not started, the camera is hidden inside the electronic device; the method comprises the following steps:
acquiring a target touch parameter of the lifting power key and acquiring a target working state of the electronic device;
if the target working state is a preset working state, generating a camera starting instruction according to the target touch parameter;
and controlling the lifting power key to lift outwards according to the camera starting instruction so as to pop up the camera, and starting the camera.
A second aspect of the embodiments of the present application provides a camera control device, where the camera control device is applied to an electronic device, where the electronic device includes a camera and a power-up/down key, the camera is disposed in the power-up/down key, and when the camera is not started, the camera is hidden inside the electronic device; the device comprises an acquisition unit, a generation unit and a starting unit, wherein,
the acquisition unit is used for acquiring a target touch parameter of the lifting power key and acquiring a target working state of the electronic device;
the generating unit is used for generating a camera starting instruction according to the target touch parameter if the target working state is a preset working state;
and the starting unit is used for controlling the lifting power key to carry out lifting operation according to the camera starting instruction so as to pop up the camera and start the camera.
A third aspect of the embodiments of the present application provides an electronic apparatus, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the step instructions in the first aspect of the embodiments of the present application.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps as described in the first aspect of embodiments of the present application.
A fifth aspect of embodiments of the present application provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps as described in the first aspect of embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has at least the following beneficial effects:
by arranging the camera on the lifting power key, when the camera is not started, the camera is hidden in the electronic device, the target touch parameter of the lifting power key is obtained, and the target working state of the electronic device is obtained; if the target working state is a preset working state, generating a camera starting instruction according to the target touch parameter; according to the camera starting instruction, the lifting power key is controlled to perform lifting operation to pop up the camera, and the camera is started, so that compared with the prior art, the camera is arranged at the top of the electronic device in a region, a part of entity space of the camera is reserved, screen occupation ratio cannot reach the maximum, when the camera is used, the camera is arranged on the lifting power key, whether the camera is started or not is determined according to the target working state of the electronic device, the electronic device can obtain larger screen occupation ratio, and whether the camera is started or not can be determined according to the working state of the electronic device, and further the practicability of the electronic device is improved to a certain degree.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2A is a schematic flowchart of a camera control method according to an embodiment of the present application;
FIG. 2B is a schematic diagram of a coordinate system provided in an embodiment of the present application;
fig. 2C is a schematic diagram of a touch time point according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another camera control method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another camera control method provided in the embodiment of the present application;
fig. 5 is a schematic flowchart of another camera control method provided in the embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a camera control device according to an embodiment of the present application.
Detailed Description
The technical solution in the embodiment of the present application will be clearly and completely described below with reference to the drawings in the embodiment of the present application, and the embodiment of the present application is to improve the screen occupation ratio of the electronic device, and meanwhile, the camera entity space is not arranged at the top end of the electronic device, so that the practicability of the electronic device can be improved. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device according to the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal equipment (terminal device), and so on. For convenience of description, the above-mentioned apparatuses are collectively referred to as electronic devices.
In order to better understand the camera control method provided by the embodiment of the application. First, an electronic device to which the camera control method is applied will be briefly described. Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in a of fig. 1, the state of the electronic device is a camera non-activated state, and the camera 102 is hidden inside the electronic device 100, as shown in b of fig. 1, the state of the electronic device is a camera activated state, and the power up-down key 101 pops up to show and activate the camera 102. The method for starting the camera comprises the following steps: the method includes the steps of obtaining a target touch parameter of a lifting power key 101 and obtaining a target working state of an electronic device 100, if the target working state of the electronic device 100 is a preset working state, for example, a display screen is unlocked and bright and then a display screen is turned off and a human face unlocking function is started, the display screen is turned off and the like, generating a camera starting instruction according to the target touch parameter of the lifting power key 101, and controlling the lifting power key 101 to perform a lifting operation to pop up a camera 102 and start the camera 102 by the electronic device 100 according to the camera starting instruction. Therefore, for among the current scheme, thereby the regional setting of camera reserves some camera entity spaces at electronic device's top, lead to the screen to account for and can not reach the maximize, can set up the camera in the lift power key when using the camera, and confirm whether to open the camera according to electronic device's target operating condition, thereby can make electronic device obtain great screen and account for when comparing, also can confirm whether to open the camera according to electronic device's operating condition, and then promoted electronic device's practicality to a certain extent.
Referring to fig. 2A, fig. 2A is a schematic flowchart of a camera control method according to an embodiment of the present disclosure. As shown in fig. 2A, the camera control method is applied to an electronic device, the electronic device includes a camera and a power key, the camera is disposed in the power key, and when the camera is not started, the camera is hidden inside the electronic device, the camera control method includes steps 201 and 203, which are as follows:
201. and acquiring a target touch parameter of the lifting power key and acquiring a target working state of the electronic device.
The target touch parameter may be: the target touch control duration can be understood as the duration of the user when the power key is lifted in the touch control process, the duration can be acquired by using a pressure sensor in a collection mode and the like, and the target touch control duration is determined according to the duration of the pressure sensor for collecting pressure value changes. The target working state may be, for example, a state in which the display screen is unlocked and bright and then the display screen is turned off and the face unlocking function is started, a state in which the display screen is turned off and the face unlocking function is not started, an interface state in which the face unlocking operation is executed, and the like. The interface state for executing the face unlocking operation may be understood as a state in which the face unlocking payment information is adopted, and specifically may be a state in which the face recognition is started for identity authentication when the mobile payment is adopted. There are, of course, other situations that are merely illustrative and not intended to be limiting.
202. And if the target working state is a preset working state, generating a camera starting instruction according to the target touch parameter.
Optionally, a possible method for generating a camera start instruction according to a target touch parameter includes steps a1-A3, which are specifically as follows:
a1, when the target working state is a screen state after the display screen is unlocked and bright, judging whether the target touch duration is in a preset touch duration interval;
if the target touch duration is within the preset touch duration interval, generating a camera starting instruction;
a2, or, when the target working state is a state that a display screen is turned off and a face unlocking function is started, if the target touch duration is less than a first preset touch duration threshold, generating a camera starting instruction, wherein the first preset touch duration threshold is a left end point of a preset touch duration interval;
and A3, or when the target working state is a screen-off state of the display screen, if the target touch duration is greater than a second preset touch duration threshold, generating a camera starting instruction.
The preset touch duration interval and the second preset touch duration threshold are set by experience values or historical data or by a user, the second preset touch duration threshold may be within the preset touch duration interval or outside the preset touch duration interval, and if the second preset touch duration threshold is outside the preset touch duration interval, the second preset touch duration threshold is usually smaller than the first preset touch duration threshold.
The steps A1, A2 and A3 are executed without the execution sequence, and are three alternative schemes in parallel.
Optionally, the camera start instruction is used to start the camera.
203. And controlling the lifting power key to lift outwards according to the camera starting instruction so as to pop up the camera, and starting the camera.
Optionally, the starting mode of the camera may be that the power key is lifted, and the camera is started after the lifting operation is completed, or the camera is started gradually in the process of lifting.
Optionally, the electronic device may further include a plurality of cameras, the cameras may be front cameras or rear cameras, each camera may be disposed on the lifting power key, and pixels of each camera may be different. When the camera is started, the camera can be started in different modes, for example, when the power key is raised, the camera which is exposed first can be started first, or after the raising operation is completed, the camera with lower pixels can be started first, and when the camera with lower pixels cannot complete the operation performed by the user, the camera with higher pixels can be started again, or all the cameras can be started simultaneously.
Optionally, the process of the electronic device performing the lifting operation may further include: the lifting power key can determine the lifting speed according to an application program started by a user, for example, when the human face is unlocked, the lifting operation can be quickly completed by adopting the speed V1 as the lifting speed or adopting a pop-up mode; when the user is taking a self-timer, the speed V2 can be adopted as the rising speed, the slow rising speed can give a dynamic feeling to people, and the user experience can be improved, wherein V1 is larger than V2, and the speed V1 and the speed V2 can be set through experience values.
Optionally, the camera can also be a rotary camera, when people's face is unlocked, the rotary camera rotates to the front of the electronic device and can be used as a front camera, when people take pictures, the camera can rotate to the back of the electronic device and can be used as a rear camera, the front of the electronic device can be understood as the side where the display screen of the electronic device is located, and the back of the electronic device is the side opposite to the display screen of the electronic device.
Optionally, after the camera is used, the camera may further perform retraction operation on the power key, and during retraction, the camera may retract at a constant speed, may retract at a variable speed, or may retract in other ways, which is only an example and is not limited specifically here.
In this example, when the electronic device is in different states, the camera start instruction is generated according to different touch durations, the start instruction can be generated in different durations, and camera control can be performed in a good fit with the use habits of the user, so that the user experience can be improved to a certain extent.
In a possible embodiment, since different users have different accuracies of time control when performing touch operations, the accuracy of generating the camera start instruction based on the touch duration may be low. A possible method for improving the accuracy of the camera in generating the command comprises steps B1-B4, which are as follows:
b1, the target working state is a screen-on state after the display screen is unlocked, and if the target touch duration is outside the preset touch duration interval, a target difference value of an interval midpoint between the target touch duration and the preset touch duration interval is obtained;
b2, if the absolute value of the target difference is smaller than a preset difference threshold, acquiring an action information set of a target user, wherein the target user is a user touching the lifting power key;
b3, determining a target starting probability value of the camera according to the action information set;
and B4, if the target starting probability value is larger than a preset probability value threshold, generating a camera starting instruction.
The target difference between the target touch duration and the midpoint of the preset touch duration interval may be positive or negative, and if the target difference is positive, the target touch duration may be greater than the value of the right endpoint of the preset touch duration interval, and if the target difference is negative, the target touch duration may be less than the value of the left endpoint of the preset touch duration interval. The preset difference threshold and the preset probability value threshold can be set through experience values or historical data.
Optionally, if the target difference is smaller than the preset difference threshold, the touch operation of the user may be determined as a suspected trigger operation, and the user may open the camera for use, but the camera is not recognized due to inaccurate control of the touch time.
In this example, the target touch duration which does not satisfy the preset touch duration interval may be determined again, and when the condition is satisfied, the operation corresponding to the target touch duration may be identified as the camera start behavior, so that the accuracy in generating the camera start instruction may be improved to a certain extent.
Alternatively, the motion information of the target user may be facial expression information and facial orientation. A possible method for determining the target starting probability value of the camera according to the action information comprises the following steps C1-C5:
c1, determining a target included angle between the sight of the target user and the display screen according to the face orientation;
c2, determining a first sub-starting probability value according to the target included angle;
c3, obtaining the target similarity between the facial expression information and preset facial expression information;
c4, determining a second sub-starting probability value according to the target similarity;
and C5, acquiring weights of the first sub starting probability value and the second sub starting probability value, and performing weight operation on the first sub starting probability value and the second sub starting probability value by adopting the weights to obtain the target starting probability value.
When determining a target included angle between the sight of the target user and the display screen, as shown in fig. 2B, the plane where the display screen is located is used as an xoy plane, one vertex of the display screen is used as an origin, the direction where the long edge of the display screen is located is an x axis, the direction where the short edge is located is a y axis, a straight line passing through the vertex and perpendicular to the plane where the display screen is located is used as a z axis to establish a coordinate system, the sight direction of the target user is the direction where the straight line passing through the point where the eyes are located and perpendicular to the plane where the face of the target user is located, and the direction is the direction in which the face faces.
Optionally, the method for determining the first sub-starting probability value according to the target included angle may be: the closer the target included angle is to ninety degrees, the greater the first child firing probability value is; the larger the target angle deviates from ninety degrees, the smaller the start probability value is, for example, the target angle is 30 degrees and 50 degrees, the first sub-start probability value corresponding to the target angle of 30 degrees is smaller than the first sub-start probability value corresponding to the target angle of 50 degrees, the target angle is 100 degrees and 120 degrees, and the first sub-start probability value corresponding to the target angle of 100 degrees is larger than the first sub-start probability value corresponding to the target angle of 120 degrees.
Optionally, the facial expression information may be represented by a facial expression image, and the target similarity between the facial expression information and the preset facial expression information may also be defined by the similarity between the facial expression image and the preset facial expression image. The larger the similarity of the target is, the larger the second sub-starting probability value is, and the smaller the similarity of the target is, the smaller the second sub-starting probability value is. The target similarity and the second sub-firing probability value may be linearly changed or non-linearly changed, and the non-linear change may be, for example, a quadratic function change form or a cubic function change form, and the like, which is merely an example and is not limited in particular. The preset facial expression image may be a normal face, a smiling face, or the like. The normal face can be understood as a facial expression image when the user does not experience fluctuation in emotion, and the preset facial expression image can also be a facial expression that the user does while taking a picture, for example, an expression of grin-through, a grimacing face, and the like.
Optionally, the weights of the first sub-starting probability value and the second sub-starting probability value may be set through experience values or historical data, and are preset fixed values, or weights obtained through training of a neural network model according to different users, and during training of the neural network model, a supervised learning model may be used for learning, for example, a conjugate gradient method. The input samples of the model may be user information, a first child launching probability value, a second child launching probability value, and a weight corresponding thereto. And when weight calculation is carried out, multiplying the first sub starting probability value by the corresponding weight, multiplying the second sub starting probability value by the corresponding weight, and adding the multiplication results to obtain the target starting probability value.
In the example, the target starting probability value is determined through the included angle between the sight of the target user and the display screen of the electronic device and the facial expression of the user, so that the target starting probability value can be determined according to the actual facial expression condition and sight condition of the user, the state of the user when using the electronic device can be more matched to a certain degree, and the accuracy of determining the target starting probability value is improved to a certain degree.
Optionally, the motion information of the target user may further include hand touch motion information, and the other method for determining the target starting probability value of the camera according to the motion information includes steps D1-D3, which are specifically as follows:
d1, determining shaking information when the target user touches the lifting power key according to the hand touch action information, wherein the shaking information comprises pressure value change information when the target user touches the lifting power key;
d2, determining the touch delay of the target user according to the pressure value change information;
d3, determining the target starting probability value according to the touch delay.
The hand touch action information can carry pressure value information of a user when the user touches the lifting power key. Because different users can be different in touch control lifting power supply, and simultaneously, because some users can have the condition of hand shake, the pressure value can fluctuate when touching, and then the touch control action can be finished, and because of the shake, the touch control duration is just fallen within or outside the preset touch control duration interval, the touch control instruction different from the touch control instruction that the user wants to reach is identified, and the user experience is reduced.
Optionally, the method for determining the touch delay of the target user according to the pressure value change information includes: and drawing a pressure value change curve according to the pressure value change information, determining a pressure value change period according to the pressure value change curve, and taking the pressure value change period as touch time delay.
Optionally, the method for determining the target start probability value according to the touch delay may be: extracting a time point when a user finishes touch operation, and if the time point is at a period point of a pressure value change period, determining that a camera starting instruction is generated directly according to the time point; as shown in fig. 2C, the horizontal axis is a time axis, denoted by t, and the vertical axis is a pressure value axis, denoted by f, the touch pressure value fluctuates at f1, the fluctuation is a possible periodic variation (illustrated by taking a positive selection variation as an example), if the time point is in the pressure value variation period, the difference between the time point and the period starting point of the period is obtained, determining a target starting probability value according to the ratio of the difference value to the period, if the right end point of the period is in a preset touch control time interval, if the ratio is larger, the target starting probability value is larger, and the ratio is smaller, the target starting probability value is smaller, if the left end point of the period is in the preset touch duration interval and the time point is not in the preset touch duration interval, the larger the ratio, the smaller the target firing probability value, and the smaller the ratio, the larger the target firing probability value.
In the example, the touch delay is determined through the touch action information of the hand of the user, the target starting probability value is determined according to the touch delay, and the target starting probability value can be determined according to the touch delay under the condition that the user shakes during touch, so that the accuracy of determining the target starting probability value can be improved to a certain extent.
Referring to fig. 3, fig. 3 is a schematic flowchart of another camera control method according to an embodiment of the present disclosure. As shown in fig. 3, the camera control method is applied to an electronic device, the electronic device includes a camera and a power key, the camera is disposed in the power key, and when the camera is not started, the camera is hidden inside the electronic device, the camera control method includes steps 301 and 307, which are as follows:
301. acquiring a target touch parameter of the lifting power key and acquiring a target working state of the electronic device;
the target touch parameter comprises target touch duration, and the preset working state comprises a display screen state after the display screen is unlocked and bright, a display screen state after the display screen is turned off and a human face unlocking function state or a display screen state after the display screen is turned off.
302. If the target working state is a preset working state, generating a camera starting instruction according to the target touch parameter;
if the target working state is a screen state after the display screen is unlocked and bright, judging whether the target touch duration is in a preset touch duration interval;
if the target touch duration is within the preset touch duration interval, generating a camera starting instruction;
alternatively, the first and second electrodes may be,
the target working state is a state that a display screen is turned off and a face unlocking function is started, if the target touch duration is smaller than a first preset touch duration threshold, a camera starting instruction is generated, and the first preset touch duration threshold is an interval left end point of the preset touch duration interval;
alternatively, the first and second electrodes may be,
and the target working state is a screen-off state of the display screen, and if the target touch duration is greater than a second preset touch duration threshold, a camera starting instruction is generated.
303. The target working state is a screen-on state after the display screen is unlocked, and if the target touch duration is outside the preset touch duration interval, a target difference value of an interval midpoint between the target touch duration and the preset touch duration interval is obtained;
304. if the absolute value of the target difference is smaller than a preset difference threshold, acquiring an action information set of a target user, wherein the target user is a user touching the lifting power key;
305. determining a target starting probability value of the camera according to the action information set;
306. if the target starting probability value is larger than a preset probability value threshold, generating a camera starting instruction;
307. and controlling the lifting power key to lift outwards according to the camera starting instruction so as to pop up the camera, and starting the camera.
In this example, when the electronic device is in different states, the camera start instruction is generated according to different touch durations, the start instruction can be generated in different durations, and camera control can be performed in a good fit with the use habits of the user, so that the user experience can be improved to a certain extent.
Referring to fig. 4, fig. 4 is a schematic flow chart of another camera control method according to an embodiment of the present disclosure. As shown in fig. 4, the camera control method is applied to an electronic device, the electronic device includes a camera and a power key, the camera is disposed in the power key, and when the camera is not started, the camera is hidden inside the electronic device, the camera control method includes steps 401 and 411, which are as follows:
401. acquiring a target touch parameter of the lifting power key and acquiring a target working state of the electronic device;
the target touch parameter comprises target touch duration, and the preset working state comprises a display screen state after the display screen is unlocked and bright, a display screen state after the display screen is turned off and a human face unlocking function state or a display screen state after the display screen is turned off.
402. If the target working state is a preset working state, generating a camera starting instruction according to the target touch parameter;
if the target working state is a screen state after the display screen is unlocked and bright, judging whether the target touch duration is in a preset touch duration interval;
if the target touch duration is within the preset touch duration interval, generating a camera starting instruction;
alternatively, the first and second electrodes may be,
the target working state is a state that a display screen is turned off and a face unlocking function is started, if the target touch duration is smaller than a first preset touch duration threshold, a camera starting instruction is generated, and the first preset touch duration threshold is an interval left end point of the preset touch duration interval;
alternatively, the first and second electrodes may be,
and the target working state is a screen-off state of the display screen, and if the target touch duration is greater than a second preset touch duration threshold, a camera starting instruction is generated.
403. The target working state is a screen-on state after the display screen is unlocked, and if the target touch duration is outside the preset touch duration interval, a target difference value of an interval midpoint between the target touch duration and the preset touch duration interval is obtained;
404. if the absolute value of the target difference is smaller than a preset difference threshold, acquiring an action information set of a target user, wherein the target user is a user touching the lifting power key;
405. determining a target included angle between the sight of the target user and the display screen according to the face orientation;
406. determining a first sub-starting probability value according to the target included angle;
407. target similarity between the facial expression information and preset facial expression information;
408. determining a second sub-starting probability value according to the target similarity;
409. acquiring weights of the first sub starting probability value and the second sub starting probability value, and performing weight operation on the first sub starting probability value and the second sub starting probability value by adopting the weights to obtain a target starting probability value;
410. if the target starting probability value is larger than a preset probability value threshold, generating a camera starting instruction;
411. and controlling the lifting power key to lift outwards according to the camera starting instruction so as to pop up the camera, and starting the camera.
In the example, the target starting probability value is determined through the included angle between the sight of the target user and the display screen of the electronic device and the facial expression of the user, so that the target starting probability value can be determined according to the actual facial expression condition and sight condition of the user, the state of the user when using the electronic device can be more matched to a certain degree, and the accuracy of determining the target starting probability value is improved to a certain degree.
Referring to fig. 5, fig. 5 is a schematic flow chart of another camera control method according to an embodiment of the present disclosure. As shown in fig. 5, the camera control method is applied to an electronic device, the electronic device includes a camera and a power key, the camera is disposed in the power key, and when the camera is not started, the camera is hidden inside the electronic device, the camera control method includes steps 501 and 509, which are as follows:
501. acquiring a target touch parameter of the lifting power key and acquiring a target working state of the electronic device;
the target touch parameter comprises target touch duration, and the preset working state comprises a display screen state after the display screen is unlocked and bright, a display screen state after the display screen is turned off and a human face unlocking function state or a display screen state after the display screen is turned off.
502. If the target working state is a preset working state, generating a camera starting instruction according to the target touch parameter;
if the target working state is a screen state after the display screen is unlocked and bright, judging whether the target touch duration is in a preset touch duration interval;
if the target touch duration is within the preset touch duration interval, generating a camera starting instruction;
alternatively, the first and second electrodes may be,
the target working state is a state that a display screen is turned off and a face unlocking function is started, if the target touch duration is smaller than a first preset touch duration threshold, a camera starting instruction is generated, and the first preset touch duration threshold is an interval left end point of the preset touch duration interval;
alternatively, the first and second electrodes may be,
and the target working state is a screen-off state of the display screen, and if the target touch duration is greater than a second preset touch duration threshold, a camera starting instruction is generated.
503. The target working state is a screen-on state after the display screen is unlocked, and if the target touch duration is outside the preset touch duration interval, a target difference value of an interval midpoint between the target touch duration and the preset touch duration interval is obtained;
504. if the absolute value of the target difference is smaller than a preset difference threshold, acquiring an action information set of a target user, wherein the target user is a user touching the lifting power key;
wherein the action information set comprises hand touch action information
505. Determining jitter information when the target user touches the lifting power key according to the hand touch action information, wherein the jitter information comprises pressure value change information when the target user touches the lifting power key;
506. determining the touch delay of the target user according to the pressure value change information;
507. determining the target starting probability value according to the touch delay;
508. if the target starting probability value is larger than a preset probability value threshold, generating a camera starting instruction;
509. and controlling the lifting power key to lift outwards according to the camera starting instruction so as to pop up the camera, and starting the camera.
In the example, the touch delay is determined through the touch action information of the hand of the user, the target starting probability value is determined according to the touch delay, and the target starting probability value can be determined according to the touch delay under the condition that the user shakes during touch, so that the accuracy of determining the target starting probability value can be improved to a certain extent.
In accordance with the foregoing embodiments, please refer to fig. 6, fig. 6 is a schematic structural diagram of an electronic apparatus according to an embodiment of the present application, and as shown in the drawing, the electronic apparatus includes a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program, the computer program includes program instructions, the processor is configured to call the program instructions, and the program includes instructions for performing the following steps;
acquiring a target touch parameter of the lifting power key and acquiring a target working state of the electronic device;
if the target working state is a preset working state, generating a camera starting instruction according to the target touch parameter;
and controlling the lifting power key to lift outwards according to the camera starting instruction so as to pop up the camera, and starting the camera.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In accordance with the above, please refer to fig. 7, and fig. 7 is a schematic structural diagram of a camera control device according to an embodiment of the present application. The camera control device is applied to an electronic device, the electronic device comprises a camera and a lifting power key, the camera is arranged on the lifting power key, when the camera is not started, the camera is hidden in the electronic device, the device comprises an acquisition unit 701, a generation unit 702 and a starting unit 703, wherein,
the obtaining unit 701 is configured to obtain a target touch parameter of the power key and obtain a target working state of the electronic device;
the generating unit 702 is configured to generate a camera start instruction according to the target touch parameter if the target operating state is a preset operating state;
the starting unit 703 is configured to control the power up-down key to perform an up-down operation according to the camera start instruction to pop up the camera, and start the camera.
Optionally, the target touch parameter includes a target touch duration, the preset working state includes a display screen unlocking bright back screen state, a display screen off screen state, and a human face unlocking function state or a display screen off screen state, and in the aspect of generating a camera start instruction according to the target touch parameter if the target working state is the preset state, the generating unit 702 is specifically configured to:
if the target working state is a screen state after the display screen is unlocked and bright, judging whether the target touch duration is in a preset touch duration interval;
if the target touch duration is within the preset touch duration interval, generating a camera starting instruction;
alternatively, the first and second electrodes may be,
the target working state is a state that a display screen is turned off and a face unlocking function is started, if the target touch duration is smaller than a first preset touch duration threshold, a camera starting instruction is generated, and the first preset touch duration threshold is an interval left end point of the preset touch duration interval;
alternatively, the first and second electrodes may be,
and the target working state is a screen-off state of the display screen, and if the target touch duration is greater than a second preset touch duration threshold, a camera starting instruction is generated.
Optionally, the apparatus is further specifically configured to:
the target working state is a screen-on state after the display screen is unlocked, and if the target touch duration is outside the preset touch duration interval, a target difference value of an interval midpoint between the target touch duration and the preset touch duration interval is obtained;
if the absolute value of the target difference is smaller than a preset difference threshold, acquiring an action information set of a target user, wherein the target user is a user touching the lifting power key;
determining a target starting probability value of the camera according to the action information set;
and if the target starting probability value is greater than a preset probability value threshold, generating a camera starting instruction.
Optionally, the action information set includes facial expression information and a facial orientation, and in the aspect of determining the target start probability value of the camera according to the action information set, the apparatus is specifically configured to:
determining a target included angle between the sight of the target user and the display screen according to the face orientation;
determining a first sub-starting probability value according to the target included angle;
target similarity between the facial expression information and preset facial expression information;
determining a second sub-starting probability value according to the target similarity;
and obtaining weights of the first sub starting probability value and the second sub starting probability value, and carrying out weight operation on the first sub starting probability value and the second sub starting probability value by adopting the weights to obtain the target starting probability value.
Optionally, the action information set includes hand touch action information, and in the aspect of determining the target start probability value of the camera according to the action information set, the apparatus is specifically configured to:
determining jitter information when the target user touches the lifting power key according to the hand touch action information, wherein the jitter information comprises pressure value change information when the target user touches the lifting power key;
determining the touch delay of the target user according to the pressure value change information;
and determining the target starting probability value according to the touch delay.
Embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the camera control methods as described in the above method embodiments.
Embodiments of the present application also provide a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program enables a computer to execute some or all of the steps of any one of the camera control methods described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of a software program module.
The integrated units, if implemented in the form of software program modules and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash memory disks, read-only memory, random access memory, magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (6)

1. The camera control method is applied to an electronic device, the electronic device comprises a camera and a lifting power key, the camera is arranged on the lifting power key, and when the camera is not started, the camera is hidden inside the electronic device; the method comprises the following steps:
acquiring a target touch parameter of the lifting power key and acquiring a target working state of the electronic device;
if the target working state is a preset working state, generating a camera starting instruction according to the target touch parameter;
controlling the lifting power key to perform lifting operation according to the camera starting instruction so as to pop up the camera, and starting the camera;
the target touch parameter includes a target touch duration, the preset working state includes a screen-on state after the display screen is unlocked, a screen-off state after the display screen is unlocked, a face unlocking function state after the display screen is turned on, or a screen-off state after the display screen is turned off, and if the target working state is the preset working state, a camera starting instruction is generated according to the target touch parameter, and the method includes:
if the target working state is a screen-on state after the display screen is unlocked, judging whether the target touch duration is in a preset touch duration interval;
if the target touch duration is within the preset touch duration interval, generating a camera starting instruction;
alternatively, the first and second electrodes may be,
the target working state is a state that a display screen is turned off and a face unlocking function is started, if the target touch duration is smaller than a first preset touch duration threshold, a camera starting instruction is generated, and the first preset touch duration threshold is an interval left end point of the preset touch duration interval;
alternatively, the first and second electrodes may be,
the target working state is a screen-off state of the display screen, and if the target touch duration is greater than a second preset touch duration threshold, a camera starting instruction is generated;
wherein the method further comprises:
the target working state is a screen-on state after the display screen is unlocked, and if the target touch duration is outside the preset touch duration interval, a target difference value of an interval midpoint between the target touch duration and the preset touch duration interval is obtained;
if the absolute value of the target difference is smaller than a preset difference threshold, acquiring an action information set of a target user, wherein the target user is a user touching the lifting power key;
determining a target starting probability value of the camera according to the action information set;
and if the target starting probability value is greater than a preset probability value threshold, generating a camera starting instruction.
2. The method of claim 1, wherein the action information set comprises facial expression information and facial orientation, and wherein determining the target activation probability value for the camera based on the action information set comprises:
determining a target included angle between the sight of the target user and the display screen according to the face orientation;
determining a first sub-starting probability value according to the target included angle;
target similarity between the facial expression information and preset facial expression information;
determining a second sub-starting probability value according to the target similarity;
and obtaining weights of the first sub starting probability value and the second sub starting probability value, and carrying out weight operation on the first sub starting probability value and the second sub starting probability value by adopting the weights to obtain the target starting probability value.
3. The method of claim 1, wherein the action information set comprises hand touch action information, and wherein determining a target activation probability value for the camera from the action information set comprises:
determining jitter information when the target user touches the lifting power key according to the hand touch action information, wherein the jitter information comprises pressure value change information when the target user touches the lifting power key;
determining the touch delay of the target user according to the pressure value change information;
and determining the target starting probability value according to the touch delay.
4. The camera control device is characterized in that the device is applied to an electronic device, the electronic device comprises a camera and a lifting power key, the camera is arranged on the lifting power key, and when the camera is not started, the camera is hidden in the electronic device; the device comprises:
the acquisition unit is used for acquiring a target touch parameter of the lifting power key and acquiring a target working state of the electronic device;
the generating unit is used for generating a camera starting instruction according to the target touch parameter if the target working state is a preset working state;
the starting unit is used for controlling the lifting power key to perform lifting operation according to the camera starting instruction so as to pop up the camera and start the camera;
the target touch parameter includes a target touch duration, the preset working state includes a screen-on state after the display screen is unlocked, a screen-off state after the display screen is turned off, and a face unlocking function state or a screen-off state after the display screen is turned on, and if the target working state is the preset working state, a camera start instruction is generated according to the target touch parameter, and the generating unit is specifically configured to:
if the target working state is a screen-on state after the display screen is unlocked, judging whether the target touch duration is in a preset touch duration interval;
if the target touch duration is within the preset touch duration interval, generating a camera starting instruction;
alternatively, the first and second electrodes may be,
the target working state is a state that a display screen is turned off and a face unlocking function is started, if the target touch duration is smaller than a first preset touch duration threshold, a camera starting instruction is generated, and the first preset touch duration threshold is an interval left end point of the preset touch duration interval;
alternatively, the first and second electrodes may be,
the target working state is a screen-off state of the display screen, and if the target touch duration is greater than a second preset touch duration threshold, a camera starting instruction is generated;
wherein the apparatus is further specifically configured to:
the target working state is a screen-on state after the display screen is unlocked, and if the target touch duration is outside the preset touch duration interval, a target difference value of an interval midpoint between the target touch duration and the preset touch duration interval is obtained;
if the absolute value of the target difference is smaller than a preset difference threshold, acquiring an action information set of a target user, wherein the target user is a user touching the lifting power key;
determining a target starting probability value of the camera according to the action information set;
and if the target starting probability value is greater than a preset probability value threshold, generating a camera starting instruction.
5. An electronic apparatus, comprising a processor, an input device, an output device, and a memory, the processor, the input device, the output device, and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1-3.
6. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-3.
CN201910407323.5A 2019-05-16 2019-05-16 Camera control method and related product Expired - Fee Related CN110149427B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910407323.5A CN110149427B (en) 2019-05-16 2019-05-16 Camera control method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910407323.5A CN110149427B (en) 2019-05-16 2019-05-16 Camera control method and related product

Publications (2)

Publication Number Publication Date
CN110149427A CN110149427A (en) 2019-08-20
CN110149427B true CN110149427B (en) 2021-01-08

Family

ID=67595449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910407323.5A Expired - Fee Related CN110149427B (en) 2019-05-16 2019-05-16 Camera control method and related product

Country Status (1)

Country Link
CN (1) CN110149427B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112449088A (en) * 2019-08-30 2021-03-05 华为技术有限公司 Camera control method and device and terminal equipment
CN111385413A (en) * 2020-02-28 2020-07-07 Oppo(重庆)智能科技有限公司 Telescopic camera control method and device, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107819907A (en) * 2017-11-14 2018-03-20 维沃移动通信有限公司 A kind of camera control method and mobile terminal
CN109167894A (en) * 2018-06-15 2019-01-08 Oppo广东移动通信有限公司 Camera control method, device, mobile terminal and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160316046A1 (en) * 2015-04-21 2016-10-27 Jianhui Zheng Mobile phone with integrated retractable image capturing device
US20170324438A1 (en) * 2016-05-04 2017-11-09 R.A.M. Innovations, Llc Lighting device with lights on rotatable panels for mobile electronic devices
CN106899721B (en) * 2017-04-28 2020-09-04 Oppo广东移动通信有限公司 Electronic device
CN108388314A (en) * 2018-04-04 2018-08-10 深圳天珑无线科技有限公司 A kind of electronic equipment and its CCD camera assembly

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107819907A (en) * 2017-11-14 2018-03-20 维沃移动通信有限公司 A kind of camera control method and mobile terminal
CN109167894A (en) * 2018-06-15 2019-01-08 Oppo广东移动通信有限公司 Camera control method, device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN110149427A (en) 2019-08-20

Similar Documents

Publication Publication Date Title
CN109087239B (en) Face image processing method and device and storage medium
CN103649892B (en) The method and apparatus for quickly accessing media function for the screen provided from locking
CN106959841B (en) Method and device for calling functions in application
US20150205521A1 (en) Method and Apparatus for Controlling Terminal Device by Using Non-Touch Gesture
CN108920202B (en) Application preloading management method and device, storage medium and intelligent terminal
EP4030749B1 (en) Image photographing method and apparatus
CN110149427B (en) Camera control method and related product
CN107407945A (en) From the system and method for screen locking capture images
CN110727496B (en) Layout method and device of graphical user interface, electronic equipment and storage medium
CN109064387A (en) Image special effect generation method, device and electronic equipment
CN106354494B (en) Method and system for quickly starting application program
JP2018538608A (en) Face verification method and electronic device
CN107340964A (en) The animation effect implementation method and device of a kind of view
CN104182126B (en) A kind of mobile terminal Dialing Method and device
EP4060551A1 (en) Fingerprint anti-counterfeiting method and electronic device
CN107465737A (en) Method of data synchronization, device, storage medium and electronic equipment
CN107302633A (en) application control method, device, storage medium and electronic equipment
CN110287925A (en) Read flipping-over control method and Related product
CN105549892B (en) Augmented reality information display method and device
CN108875502A (en) Face identification method and device
CN106406573A (en) Method and system for controlling page turning of mobile terminal
CN107657221A (en) A kind of facial information acquisition method and relevant device
WO2020135397A1 (en) Screen display control method and apparatus
CN104318209A (en) Iris image collection method and device
CN107729832B (en) Face detection method and related product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210108

CF01 Termination of patent right due to non-payment of annual fee