CN112565612A - Camera control method and device and electronic equipment - Google Patents

Camera control method and device and electronic equipment Download PDF

Info

Publication number
CN112565612A
CN112565612A CN202011454415.8A CN202011454415A CN112565612A CN 112565612 A CN112565612 A CN 112565612A CN 202011454415 A CN202011454415 A CN 202011454415A CN 112565612 A CN112565612 A CN 112565612A
Authority
CN
China
Prior art keywords
camera
parameter
condition
preset condition
input
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.)
Pending
Application number
CN202011454415.8A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co 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 Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202011454415.8A priority Critical patent/CN112565612A/en
Publication of CN112565612A publication Critical patent/CN112565612A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/84Protecting input, output or interconnection devices output devices, e.g. displays or monitors

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a camera control method and device and electronic equipment, and relates to the technical field of communication. The camera control method comprises the following steps: receiving a camera pop-up request; responding to the camera pop-up request, and acquiring a first parameter related to the state of a camera; and popping up the camera under the condition that the first parameter meets a preset condition. Wherein the first parameter comprises at least one of: the pressure value born above the camera; a tilt angle value of the electronic device; and initiating an application event of the camera pop-up request. The scheme of the application is used for solving the problem that when the camera suddenly pops up, one camera can startle a user, so that the use experience of the camera is poor; secondly, if an obstacle exists on the pop-up path of the camera, the camera equipment is possibly damaged; moreover, the problem that the privacy of a user is leaked in the existing camera opening mode exists.

Description

Camera control method and device and electronic equipment
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to a camera control method and device and electronic equipment.
Background
At present, most of electronic equipment has a front camera and a rear camera, the default selection of the front camera is when a plurality of video chatting software is started, and the current camera starting mode is as follows: and when receiving a video request of the opposite side, opening the front camera by default and starting to preview the video.
For the existing electronic equipment with a plurality of pop-up front-mounted cameras, when a video request is received, the cameras pop up suddenly, so that a user may be frightened, and the use experience of the cameras is poor; moreover, if an obstacle exists on the camera ejection path, the camera structure may be damaged; moreover, the existing camera starting mode has the risk of revealing the privacy of the user.
Disclosure of Invention
The embodiment of the application aims to provide a camera control method, a camera control device and electronic equipment, and the problems that the privacy of a user is exposed, the camera structure is damaged and the use experience of the camera is poor in the starting mode of the existing camera can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a camera control method, including:
receiving a camera pop-up request;
responding to the camera pop-up request, and acquiring a first parameter related to the state of a camera;
popping up the camera under the condition that the first parameter meets a preset condition;
the first parameter comprises at least one of:
the pressure value born above the camera;
a tilt angle value of the electronic device;
and initiating an application event of the camera pop-up request.
In a second aspect, an embodiment of the present application provides a camera control device, including:
the first receiving module is used for receiving a camera pop-up request;
the first response module is used for responding to the camera pop-up request and acquiring a first parameter related to the state of the camera;
the first control module is used for popping up the camera under the condition that the first parameter meets a preset condition;
the first parameter comprises at least one of:
the pressure value born above the camera;
a tilt angle value of the electronic device;
and initiating an application event of the camera pop-up request.
In a third aspect, an embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, the present embodiments also provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In this way, in the embodiment of the present application, in the case that a camera pop-up request is received, the electronic device, in response to the camera pop-up request, acquires a first parameter related to a state of the camera, where the first parameter includes at least one of: the method comprises the following steps of (1) bearing a pressure value above a camera, a tilt angle value of electronic equipment, and an application event for initiating a camera pop-up request; under the condition that this first parameter satisfies preset condition, pop out this camera, so, through the detection to the parameter relevant with the state of camera before the camera pops out, avoided user's privacy to reveal with camera structure impaired, promote the camera and use experience.
Drawings
Fig. 1 is a schematic flowchart of a camera control method according to an embodiment of the present application;
fig. 2 is a second schematic flowchart of a camera control method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a prompt message according to an embodiment of the present application;
FIG. 4 is a second schematic diagram of a prompt message according to an embodiment of the present application;
FIG. 5 is a third schematic diagram of a prompt message according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a camera control device according to an embodiment of the present application;
fig. 7 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application;
fig. 8 is a second schematic diagram of a hardware structure of the electronic device according to the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail a camera control method, a camera control device, and an electronic device according to embodiments of the present application with reference to the accompanying drawings.
The method of the embodiment of the application is applied to the electronic equipment, and the electronic equipment can be mobile electronic equipment and also can be non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
As shown in fig. 1, which is one of the flow diagrams of the camera control method according to the embodiment of the present application, the camera control method includes:
step 101, receiving a camera pop-up request;
in this step, the camera pop-up request may be triggered based on a related event in the application currently running in the electronic device, that is: triggering under the current condition that a camera needs to be used, such as: the electronic equipment is unlocked or payment transaction is carried out through face recognition, a video request is received, friends are added through scanning of two-dimensional codes, and the like.
102, responding to a camera pop-up request, and acquiring a first parameter related to the state of a camera;
in this step, after receiving the request for popping up the camera, first parameters related to the state of the camera are acquired, so that whether the camera is allowed to pop up smoothly currently or not is confirmed before the camera is controlled to pop up, the camera is protected, the privacy of a user is prevented from being revealed, the use experience of the camera is improved, and the like.
And 103, popping up the camera under the condition that the first parameter meets a preset condition.
According to the camera control method, under the condition that the camera pop-up request is received, the electronic equipment responds to the camera pop-up request, the first parameter related to the state of the camera is obtained, and the camera is popped up under the condition that the first parameter meets the preset condition, so that the privacy of a user is prevented from being revealed and the camera is prevented from being damaged through detection of the parameter related to the state of the camera before the camera is popped up, and the use experience of the camera can be improved.
Wherein the first parameter comprises at least one of:
the pressure value born above the camera;
a tilt angle value of the electronic device;
and initiating an application event of the camera pop-up request.
That is to say, in the camera control method according to the embodiment of the present application, the first parameter may be one or multiple, and the user may set the first parameter according to the user's own needs. Specifically, the pressure value that bears above the acquisition camera is used for realizing confirming whether have the barrier that hinders the camera to pop out above the camera, if: the user presses the fingers on the upper part of the camera, or the upper part of the camera abuts against other objects, and the like; the method comprises the steps that the inclination angle of the electronic equipment is obtained to determine the placement angle of the electronic equipment, so that the camera is prevented from popping up suddenly under the conditions that the electronic equipment is not suitable for popping up the camera when being inverted and the like; and acquiring an application event for initiating a camera popping request to determine whether the current electronic equipment popping camera has potential safety hazards such as privacy disclosure.
According to the camera control method, at least one of the parameters is acquired, detection of the surrounding environment (whether barriers exist or not and whether the electronic equipment is inverted) and/or the safety environment (whether privacy leakage risks exist or not) of the camera is achieved, the pop-up camera cannot damage the camera structure, the situation that the user is scared due to the fact that the camera pops up suddenly is avoided, the privacy of the user cannot be leaked, and the use safety of the camera and the use experience of the user are improved.
Optionally, the preset condition comprises at least one of:
the pressure value born above the camera is smaller than the preset pressure value;
the inclination angle value of the electronic equipment is smaller than a preset angle value;
the application event is a preset event.
That is to say, under the condition that the pressure value born above the camera is smaller than the preset pressure value, it is determined that no obstacle exists above the camera or the obstacle does not affect the pop-up of the camera; under the condition that the inclination angle value of the electronic equipment is smaller than the preset angle value, the fact that the placing mode of the electronic equipment does not influence the popping of the camera is confirmed; and under the condition that the application event is a preset event, confirming that the user privacy cannot be revealed by popping up the camera under the application event.
In this embodiment, the plurality of parameters are respectively compared with the corresponding preset conditions to determine whether the current state of the camera meets the pop-up condition (namely the preset condition), and if so, the camera is popped up, so that the problems that the camera structure is damaged, a user is scared and the hidden danger of leakage exists in the privacy of the user due to the fact that the camera is popped up immediately when a pop-up request of the camera is received are avoided.
Optionally, step 103: under the condition that the first parameter satisfies the preset condition, pop out the camera, include:
determining whether a first target parameter in the first parameters meets a corresponding preset condition;
under the condition that the first target parameter meets the corresponding preset condition, determining whether a second target parameter in the first parameter meets the corresponding preset condition;
and popping up the camera under the condition that the second target parameter meets the corresponding preset condition.
Here, the first parameter may include two or more parameters, the first target parameter is any one of the first parameters, and the second target parameter is any one of the first parameters except for the first target parameter. If the first parameter includes more than two parameters, the parameters can be determined one by one. Taking the first parameter including the pressure value borne above the camera, the tilt angle value of the electronic device, and the application event initiating the camera pop-up request as an example, this embodiment may use the tilt angle value of the electronic device as a target parameter a (first target parameter), the pressure value borne above the camera as a target parameter b (second target parameter), and the application event initiating the camera pop-up request as a target parameter c, and implement the determination of these three target parameters according to the above determination logic of this embodiment. That is: firstly, detecting whether the inclination angle value of the electronic equipment meets a preset angle value or not; secondly, detecting whether the pressure value born above the camera is smaller than a preset pressure value or not under the condition that the inclination angle value of the electronic equipment is smaller than the preset angle value; thirdly, under the condition that the pressure value born above the camera is smaller than the preset pressure value, determining whether the application event initiating the camera pop-up request is the preset application event or not; and finally, popping up the camera under the condition that the application event initiating the camera popping-up request is a preset application event.
That is to say, in this embodiment, when the first parameter includes a plurality of parameters, a mode of determining one by one is adopted, and when the previous parameter satisfies a corresponding preset condition, the next parameter is determined, which is only one implementation manner of the embodiment of the present application, and the camera control method according to the embodiment of the present application may also adopt other implementation manners, such as: and determining a plurality of parameters simultaneously, which is not limited in the embodiments of the present application.
Further optionally, in step 102, after acquiring the first parameter related to the state of the camera in response to the camera pop-up request, the method further includes:
and under the condition that the first parameter does not meet the preset condition, outputting first prompt information.
Here, it should be noted that the first prompt message may be a text prompt window displayed on a screen of the electronic device, may also be a voice prompt message, may also be a vibration prompt of the electronic device, and the like.
According to the embodiment, the first prompt information is output under the condition that the first parameter does not meet the preset condition, the reminding function of the user is achieved, the user can perform corresponding operation according to the reminding function, the electronic equipment can perform subsequent processes according to the operation of the user, and meanwhile the situation that the camera of the user is not popped up directly due to the fact that the first parameter does not meet the preset condition is avoided, and the experience of the camera of the user is poor.
In addition, it should be further noted that, in the case that the first parameter includes two or more parameters, the first prompt information in the embodiment of the present application may be prompt information about all the parameters that is displayed after the determination of all the parameters is completed; or the prompt message of the determined last parameter; in the case that the first prompt message is the prompt message of the last parameter, the determining process of the first parameter may be the above-mentioned one-by-one determining manner.
Optionally, when the first parameter does not satisfy the preset condition, outputting first prompt information, including:
determining whether a third target parameter in the first parameters meets a corresponding preset condition;
under the condition that the third target parameter does not meet the corresponding preset condition, outputting second prompt information;
receiving a first input, wherein the first input is input related to the second prompt message;
determining a fourth target parameter of the first parameters in response to the first input;
and under the condition that the fourth target parameter does not meet the corresponding preset condition, outputting the first prompt message.
Here, the first parameter may include two or more parameters, the third target parameter is any one of the first parameters, and the fourth target parameter is any one of the first parameters except for the third target parameter.
In addition, if the first parameter includes two or more parameters, the parameters may be determined one by one. In this case, if the currently determined parameter does not satisfy the corresponding preset condition, the prompt information is output, and further, a subsequent determination process or a camera pop-up is performed according to the input of the user.
Specifically, the first parameter includes a pressure value borne above the camera, a tilt angle value of the electronic device, and an application event initiating a camera pop-up request, and the tilt angle value of the electronic device is defined as a target parameter a, the pressure value borne above the camera is defined as a target parameter B, and the application event initiating the camera pop-up request is defined as a target parameter C, where the target parameter a is a third target parameter; the detection process of the determination logic according to this embodiment may be:
A) detecting whether the inclination angle value of the electronic equipment meets a preset angle value or not;
B) outputting prompt information a under the condition that the inclination angle value of the electronic equipment is greater than or equal to a preset angle value; as shown in fig. 3, the prompt message a is a prompt window displayed on the screen of the electronic device, and the prompt window may include prompt words "please adjust the tilt angle of the electronic device", "ignore" button, and "no more remind next time" button; of course, the prompt message a may also be an audio prompt message.
C) Receiving a first input, wherein the first input is an input related to the prompt message a; specifically, in the case that the prompt information a is a prompt window displayed on the screen of the electronic device, as shown in fig. 3, the first input may be an operation of a ignore button by the user or an operation of a button which is not to be reminded next time by the user; under the condition that the prompt message a is the voice message, the first input can be the neglected voice input by the user or the voice which is not reminded next time; here, if the first input by the user is an operation related to the next non-reminder, the tilt angle value of the electronic apparatus will not be determined again when the camera is ejected next time.
D) Responding to the first input, and determining whether the pressure value born above the camera is smaller than a preset pressure value;
E) outputting prompt information b under the condition that the pressure value born above the camera is greater than or equal to the preset pressure value; as shown in fig. 4, the prompt message is a prompt window displayed on the screen of the electronic device, and the prompt window may include prompt words "please remove the obstacle above the camera" and "ignore" buttons; of course, the prompt message b may be an audio prompt message.
F) Receiving a third input, wherein the third input is an input related to the prompt message b; specifically, in the case that the prompt information b is a prompt window displayed on the screen of the electronic device, as shown in fig. 4, the first input may be an operation of a user on an ignore button; in the case where the prompt message b is a voice message, the third input may be an ignore voice input by the user.
G) Responding to the third input, and determining whether the application event initiating the camera pop-up request is a preset application event;
H) outputting prompt information c under the condition that the application event initiating the camera pop-up request does not meet a preset application event; as shown in fig. 5, the prompt message c is a prompt window displayed on the screen of the electronic device, and the prompt window may include prompt words "please confirm the security of the surrounding environment", "ignore" button, "disable" button, and "confirm" button; of course, the prompt message c may also be an audio prompt message.
In this embodiment, under the condition that the determined parameter does not satisfy the corresponding preset condition, the user is prompted in a manner of outputting the prompt information, so that the user can perform corresponding operations according to the prompt function, and the electronic device can perform subsequent processes according to the operations of the user.
Optionally, in a case that the first parameter does not satisfy the preset condition, after the first prompt information is output, the method further includes:
receiving a second input, wherein the second input is input related to the first prompt message;
and responding to the second input, and popping up the camera.
In the embodiment of the application, under the condition that the first parameter does not meet the preset condition, the camera is controlled to pop out according to the operation of the user on the input of the first prompt message, so that the camera is controlled to pop out only when the user confirms that the camera can be popped out, the problems that the camera is directly popped out to cause damage to the camera after the camera pop-out request is received, the user is frightened and the privacy of the user is revealed are avoided, and the camera use experience of the user is improved.
In combination with the foregoing implementation processes a) to H), the embodiment of the present application further includes, after step H):
I) receiving a second input, wherein the second input is an input related to the prompt message c; specifically, in the case where the prompt information c is a prompt window as shown in fig. 5, the second input may be an operation on an "ignore" button, or an operation on an "confirm" button; in the case where the prompt message c is a voice message, the third input may be an "ignore" voice or a "confirm" voice input by the user.
J) And responding to the second input, and popping up the camera.
Of course, if a fourth input of the user is received, the fourth input being an operation of the "disable" button, the electronic device disables the camera from popping up.
Optionally, in a case that the first parameter does not satisfy the preset condition, after the first prompt information is output, the method further includes:
acquiring an updated first parameter;
and popping up the camera under the condition that the updated first parameter meets the preset condition.
That is to say, in this embodiment of the application, under the condition that the first parameter does not satisfy the preset condition, the user may further adjust the electronic device according to the text content in the first prompt information, so that the first parameter satisfies the preset condition, thereby facilitating the pop-up of the camera.
Here, it should be noted that the foregoing includes an implementation manner of ejecting the camera if the first parameter satisfies the preset condition, and an implementation manner of ejecting the camera if the first parameter does not satisfy the preset condition. However, in a case where the first parameter includes a plurality of target parameters, a case may occur where a part of the target parameters satisfy corresponding preset conditions and another part of the target parameters do not satisfy corresponding preset conditions, and for this case, all the target parameters may be determined, and in a case where there are target parameters that do not satisfy corresponding preset conditions, prompt information is generated for the target parameters to remind the user; in this way, when the previous target parameter does not meet the corresponding preset condition, prompt information can be output, and the next target parameter is determined based on the input of the prompt information by the user.
That is to say, in the embodiment of the present application, when the first parameter includes a plurality of target parameters, different determination methods may be used for determining, and only the user needs to be reminded in a manner of outputting the prompt information when the target parameters do not satisfy the corresponding preset conditions, so that the problems that the camera structure is damaged, the user is scared and the privacy of the user is revealed due to the fact that the camera is immediately popped up when the request for popping up the camera is received at present can be solved, and the use experience of the camera of the user is improved.
A specific implementation process of the camera control method according to the embodiment of the present application is specifically described below with reference to fig. 2:
step 201: receiving a camera pop-up request;
step 202: detecting a tilt angle value of the electronic device;
step 203: judging whether the inclination angle value of the electronic equipment is smaller than a preset angle value, if so, executing a step 204, and if not, executing a step 209; it should be noted that, in this step, if the tilt angle value of the electronic device is greater than or equal to the preset angle value, it indicates that the electronic device is not normally placed; generally, when the electronic equipment is horizontally placed or vertically placed, the electronic equipment is the best inclination angle for popping the camera; when the electronic device is vertically inverted (e.g., the user stands the electronic device in a pocket or is vertically inverted on a table), the camera may pop up and encounter an obstacle.
Step 204: detecting a pressure value born above the camera;
step 205: judging whether the pressure value born above the camera is smaller than a preset pressure value, if so, executing a step 206, and if not, executing a step 211; it should be noted that if the pressure value borne above the camera and sensed by the pressure value sensor on the camera is greater than or equal to the preset pressure value, it is determined that an obstacle can exist above the camera, and if the pressure value borne above the camera is smaller than the preset pressure value, it is determined that no obstacle exists above the camera or an obstacle which does not affect the safe ejection of the camera exists, and the camera can safely eject.
Step 206: determining a secure environment; namely: determining an application event for initiating a camera pop-up request;
step 207: judging whether the surrounding environment is safe or not; if yes, go to step 208, otherwise go to step 213; in this step, if the application event initiating the camera pop-up request is: and if the application events except the video request sent by strangers or infrequently-contacted friends in the social software, the application events of the financial payment software, such as scanning the business scene of a human face, scanning the business scene of special certificates, such as an identity card, a bank card and the like, determine that the surrounding environment is unsafe and remind a user to confirm the safety of the surrounding environment.
Step 208: popping up a camera;
step 209: outputting prompt information of adjusting the angle of the electronic equipment by a user;
step 210: judging whether the user selects to ignore or not to remind any more next time, if so, executing step 204, and if not, executing step 203; in this step, if the user does not choose to ignore or no longer remind, the user may adjust the tilt angle of the electronic device, and at this time, the tilt angle value of the electronic device needs to be continuously detected until the tilt angle value of the electronic device is smaller than a preset angle value; if the user chooses to ignore, directly entering the detection and determination of the next target parameter; and if the user selects not to remind any more next time, the function of detecting the inclination angle value of the electronic equipment is closed, and the inclination angle value of the electronic equipment is not detected any more after the camera pop-up request is received next time.
Step 211: outputting prompt information of removing the obstacle above the camera by the user;
step 212: judging whether the user selects to ignore, if so, executing step 206, otherwise, executing step 205; in this step, if the user does not choose to ignore, the user may remove the obstacle above the camera, and at this time, the pressure value borne above the camera needs to be continuously detected until the pressure value borne above the camera is smaller than the preset pressure value; if the user chooses to ignore, directly entering the detection and determination of the next target parameter;
step 213: outputting prompt information for reminding a user of paying attention to the environmental safety;
step 214: judging whether the user selects to ignore or confirm, if so, executing step 208, and if not, executing step 215;
step 215: judging whether the user selects the forbidden program, if so, executing step 216; if not, go to step 207; in this step, if the user selects the forbidden mode, it is determined that the camera is not suitable for being started currently.
Step 216: and prohibiting the camera from popping up.
Next, the steps 201 to 216 will be described with specific examples.
Take social software video chat as an example: the precondition of the pop-up camera is as follows: the social software has the right to use the camera, receives the video request, allows the camera to pop up, and places the finger of the user above the camera; the execution flow comprises the following steps: after the mobile phone angle is checked to be in accordance after the video request is received, a camera pop-up pressure value is checked, a user is prompted to adjust a camera pop-up barrier when pressure is sensed above the camera and the borne pressure value is larger than a preset pressure value, if the user removes a finger, the detected pressure value is smaller than the preset pressure value, whether the video request is a friend or stranger who is not contacted frequently is detected, if the friend or stranger is contacted frequently, the user is prompted to pay attention to environment safety so as not to prevent personal information from being leaked, and the user performs camera pop-up and subsequent operation after confirming or neglecting.
Taking face recognition of financial payment software as an example: precondition: the financial payment software has the camera using authority, allows the camera to pop up, and places fingers on the camera; the execution flow comprises the following steps: clicking to collect the face of the user, checking that the pressure value born above the camera is larger than a preset pressure value, prompting the user to adjust the camera to pop up the barrier, prompting the user to indicate that the operation relates to safety factors after the user removes the finger and the detected pressure value is smaller than the preset pressure value, and asking the user to confirm whether the surrounding environment is safe or not, and popping up the camera to collect the face after the user confirms the safety or ignores the prompt.
According to the camera control method, firstly, a camera pop-up request is received, then, in response to the camera pop-up request, a first parameter related to the state of the camera is obtained, the first parameter comprises at least one of a pressure value born above the camera, a tilt angle value of electronic equipment and an application event initiating the camera pop-up request, and finally, the camera is popped up under the condition that the first parameter meets a preset condition, detection of the parameter related to the state of the camera before the camera is popped up is achieved, user privacy disclosure and damage to the camera structure are avoided, and camera use experience is improved.
It should be noted that, in the camera control method provided in the embodiment of the present application, the execution main body may be a camera control device, or a control module in the camera control device, which is used for executing loading of the camera control method. In the embodiment of the present application, a method for controlling a camera by a camera control device to execute a loaded camera is taken as an example, and the camera control method provided in the embodiment of the present application is described.
Fig. 6 is a schematic structural diagram of a camera control device according to an embodiment of the present application. The camera control device 600 illustrated in fig. 6 includes a first receiving module 601, a first responding module 602, and a first control module 603.
A first receiving module 601, configured to receive a camera pop-up request;
a first response module 602, configured to, in response to a camera pop-up request, obtain a first parameter related to a state of a camera;
the first control module 603 is configured to pop up the camera when the first parameter meets a preset condition;
the first parameter comprises at least one of:
the pressure value born above the camera;
a tilt angle value of the electronic device;
and initiating an application event of the camera pop-up request.
According to the camera control device 600 in the embodiment of the application, under the condition that the first receiving module 601 receives the camera pop-up request, the first responding module 602 responds to the camera pop-up request to acquire the first parameter related to the state of the camera, and the first control module 603 pops up the camera under the condition that the first parameter meets the preset condition, so that the determination of the parameter related to the state of the camera before the camera pops up is realized, and the problem that the electronic device pops up the camera suddenly to cause harm to the camera structure, startle the user, and reveal the privacy of the user is avoided.
In the camera control device according to the embodiment of the present application, the preset condition includes at least one of:
the pressure value born above the camera is smaller than the preset pressure value;
the inclination angle value of the electronic equipment is smaller than a preset angle value;
the application event is a preset event.
In the camera control device according to the embodiment of the present application, the first control module 603 includes:
the first determining submodule is used for determining whether a first target parameter in the first parameters meets a corresponding preset condition;
the second determining submodule is used for determining whether a second target parameter in the first parameter meets a corresponding preset condition or not under the condition that the first target parameter meets the corresponding preset condition;
and the first control submodule is used for popping up the camera under the condition that the second target parameter meets the corresponding preset condition.
The camera control device of the embodiment of the application further comprises:
and the output module is used for outputting the first prompt message under the condition that the first parameter does not meet the preset condition.
In the camera control device of the embodiment of the present application, the output module includes:
the third determining submodule is used for determining whether a third target parameter in the first parameters meets a corresponding preset condition;
the first output submodule is used for outputting second prompt information under the condition that the third target parameter does not meet the corresponding preset condition;
the first receiving submodule is used for receiving a first input, and the first input is input related to the second prompt message;
a first response submodule, configured to determine a fourth target parameter of the first parameters in response to the first input;
and the second output submodule is used for outputting the first prompt message under the condition that the fourth target parameter does not meet the corresponding preset condition.
The camera control device of the embodiment of the application further comprises:
the second receiving module is used for receiving a second input, and the second input is input related to the first prompt message;
and the second response module is used for responding to the second input and popping up the camera.
The camera control device of the embodiment of the application further comprises:
the acquisition module is used for acquiring the updated first parameter;
and the second control module is used for popping up the camera under the condition that the updated first parameter meets the preset condition.
The camera control device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The camera control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The camera control device provided in the embodiment of the present application can implement each process implemented by the camera control device in the method embodiments of fig. 1 to 5, and is not described here again in order to avoid repetition.
In the camera control apparatus 600 according to the embodiment of the application, the first receiving module 601 receives a camera pop-up request, the first responding module 602, in response to the camera pop-up request, obtains a first parameter related to the state of the camera, where the first parameter includes at least one of a pressure value borne above the camera, a tilt angle value of the electronic device, and an application event initiating the camera pop-up request, and the first controlling module 603 is configured to pop-up the camera if the first parameter satisfies a preset condition, so as to detect the parameter related to the state of the camera before the camera is popped up, avoid the problem that the camera is suddenly popped up when an obstacle exists above the camera to damage the camera structure, the user is scared due to popping up the camera when the electronic device is inverted, and the user privacy is leaked due to popping up the camera when the application scene is not safe, the camera use experience of the user is improved.
Optionally, as shown in fig. 7, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the above-mentioned camera control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 8 is a schematic hardware structure diagram of an electronic device implementing various embodiments of the present application.
The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811.
Those skilled in the art will appreciate that the electronic device 800 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 810 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 810 is configured to receive a camera pop-up request; responding to a camera pop-up request, and acquiring a first parameter related to the state of a camera; and popping up the camera under the condition that the first parameter meets the preset condition.
Wherein the first parameter comprises at least one of:
the pressure value born above the camera;
a tilt angle value of the electronic device;
and initiating an application event of the camera pop-up request.
It can be seen that under the condition that this electronic equipment's treater 810 received the camera and popped out the request, respond to this camera and pop out the request, obtain the first parameter relevant with the state of camera, and under the condition that this first parameter satisfies the preset condition, pop out this camera, so, through the detection to the parameter relevant with the camera state before the camera is popped out, avoided user's privacy to reveal and camera structure impaired, promoted the camera and used experience.
Optionally, the preset condition comprises at least one of:
the pressure value born above the camera is smaller than the preset pressure value;
the inclination angle value of the electronic equipment is smaller than a preset angle value;
the application event is a preset event.
Optionally, the processor 810 is further configured to:
determining whether a first target parameter in the first parameters meets a corresponding preset condition;
under the condition that the first target parameter meets the corresponding preset condition, determining whether a second target parameter in the first parameter meets the corresponding preset condition;
and popping up the camera under the condition that the second target parameter meets the corresponding preset condition.
Optionally, the processor 810 is further configured to:
and outputting first prompt information under the condition that the first parameter does not meet the preset condition.
Optionally, the processor 810 is further configured to:
determining whether a third target parameter in the first parameters meets a corresponding preset condition;
under the condition that the third target parameter does not meet the corresponding preset condition, outputting second prompt information;
receiving a first input, wherein the first input is input related to the second prompt message;
determining a fourth target parameter of the first parameters in response to the first input;
and under the condition that the fourth target parameter does not meet the corresponding preset condition, outputting first prompt information.
Optionally, the processor 810 is further configured to:
receiving a second input, wherein the second input is input related to the first prompt message;
and responding to the second input, and popping up the camera.
Optionally, the processor 810 is further configured to:
acquiring an updated first parameter;
and popping up the camera under the condition that the updated first parameter meets the preset condition.
In the electronic device according to the embodiment of the application, the processor 810 receives a camera pop-up request, and in response to the camera pop-up request, obtains a first parameter related to the state of the camera, where the first parameter includes at least one of a pressure value borne above the camera, a tilt angle value of the electronic device, and an application event initiating the camera pop-up request, and the processor 810 is configured to pop-up the camera when the first parameter satisfies a preset condition, so that by detecting and determining the parameter related to the state of the camera before the camera is popped up, user privacy disclosure and damage to the camera structure are avoided, and camera use experience is improved.
It should be understood that in the embodiment of the present application, the input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics Processing Unit 8041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8081 and other input devices 8072. The touch panel 8081 is also referred to as a touch screen. The touch panel 8081 may include two portions of a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 809 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the processes of the embodiment of the camera control method are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above-mentioned camera control method embodiment, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (15)

1. A camera control method is applied to electronic equipment and is characterized by comprising the following steps:
receiving a camera pop-up request;
responding to the camera pop-up request, and acquiring a first parameter related to the state of the camera;
popping up the camera under the condition that the first parameter meets a preset condition;
the first parameter comprises at least one of:
the pressure value born above the camera;
a tilt angle value of the electronic device;
and initiating an application event of the camera pop-up request.
2. The method of claim 1, wherein the preset condition comprises at least one of:
the pressure value born above the camera is smaller than the preset pressure value;
the inclination angle value of the electronic equipment is smaller than a preset angle value;
the application event is a preset event.
3. The method according to claim 1 or 2, wherein the ejecting the camera in the case that the first parameter meets a preset condition comprises:
determining whether a first target parameter in the first parameters meets a corresponding preset condition;
determining whether a second target parameter in the first parameters meets corresponding preset conditions or not under the condition that the first target parameters meet the corresponding preset conditions;
and popping up the camera under the condition that the second target parameter meets the corresponding preset condition.
4. The method of claim 1, wherein after acquiring the first parameter related to the status of the camera in response to the camera eject request, the method further comprises:
and outputting first prompt information under the condition that the first parameter does not meet the preset condition.
5. The method according to claim 4, wherein in the case that the first parameter does not satisfy the preset condition, outputting a first prompt message comprises:
determining whether a third target parameter in the first parameters meets a corresponding preset condition;
under the condition that the third target parameter does not meet the corresponding preset condition, outputting second prompt information;
receiving a first input, wherein the first input is an input related to the second prompt message;
determining a fourth target parameter of the first parameters in response to the first input;
and under the condition that the fourth target parameter does not meet the corresponding preset condition, outputting the first prompt message.
6. The method according to claim 4 or 5, wherein after outputting the first prompt message if the first parameter does not satisfy the preset condition, the method further comprises:
receiving a second input, wherein the second input is an input related to the first prompt message;
and responding to the second input, and popping up the camera.
7. The method according to claim 4, wherein after outputting the first prompt message if the first parameter does not satisfy the preset condition, the method further comprises:
acquiring an updated first parameter;
and popping up the camera under the condition that the updated first parameter meets a preset condition.
8. A camera control apparatus, comprising:
the first receiving module is used for receiving a camera pop-up request;
the first response module is used for responding to the camera pop-up request and acquiring a first parameter related to the state of the camera;
the first control module is used for popping up the camera under the condition that the first parameter meets a preset condition;
the first parameter comprises at least one of:
the pressure value born above the camera;
a tilt angle value of the electronic device;
and initiating an application event of the camera pop-up request.
9. The apparatus of claim 8, wherein the preset condition comprises at least one of:
the pressure value born above the camera is smaller than the preset pressure value;
the inclination angle value of the electronic equipment is smaller than a preset angle value;
the application event is a preset event.
10. The apparatus of claim 8 or 9, wherein the first control module comprises:
the first determining submodule is used for determining whether a first target parameter in the first parameters meets a corresponding preset condition;
the second determining submodule is used for determining whether a second target parameter in the first parameters meets the corresponding preset condition or not under the condition that the first target parameter meets the corresponding preset condition;
and the first control submodule is used for popping up the camera under the condition that the second target parameter meets the corresponding preset condition.
11. The apparatus of claim 8, further comprising:
and the output module is used for outputting first prompt information under the condition that the first parameter does not meet the preset condition.
12. The apparatus of claim 11, wherein the output module comprises:
the third determining submodule is used for determining whether a third target parameter in the first parameters meets a corresponding preset condition;
the first output submodule is used for outputting second prompt information under the condition that the third target parameter does not meet the corresponding preset condition;
the first receiving submodule is used for receiving a first input, and the first input is input related to the second prompt message;
a first response submodule, configured to determine a fourth target parameter of the first parameters in response to the first input;
and the second output submodule is used for outputting the first prompt message under the condition that the fourth target parameter does not meet the corresponding preset condition.
13. The apparatus of claim 11 or 12, further comprising:
the second receiving module is used for receiving a second input, wherein the second input is input related to the first prompt message;
and the second response module is used for responding to the second input and popping up the camera.
14. The apparatus of claim 11, further comprising:
the acquisition module is used for acquiring the updated first parameter;
and the second control module is used for popping up the camera under the condition that the updated first parameter meets a preset condition.
15. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the camera control method according to any one of claims 1 to 7.
CN202011454415.8A 2020-12-10 2020-12-10 Camera control method and device and electronic equipment Pending CN112565612A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011454415.8A CN112565612A (en) 2020-12-10 2020-12-10 Camera control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011454415.8A CN112565612A (en) 2020-12-10 2020-12-10 Camera control method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112565612A true CN112565612A (en) 2021-03-26

Family

ID=75061206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011454415.8A Pending CN112565612A (en) 2020-12-10 2020-12-10 Camera control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112565612A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095651A (en) * 2021-10-18 2022-02-25 荣耀终端有限公司 Camera pop-up control method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160269614A1 (en) * 2013-11-22 2016-09-15 Huawei Technologies Co., Ltd. Camera Control Method, User Equipment, and Camera
CN108390964A (en) * 2018-01-31 2018-08-10 维沃移动通信有限公司 A kind of camera head protecting method and mobile terminal
CN110889148A (en) * 2019-11-25 2020-03-17 深圳传音控股股份有限公司 Camera control method, system, mobile terminal and computer readable storage medium
CN111246059A (en) * 2020-01-09 2020-06-05 Oppo(重庆)智能科技有限公司 Control method and device for lifting camera module, electronic equipment and storage medium
CN111385413A (en) * 2020-02-28 2020-07-07 Oppo(重庆)智能科技有限公司 Telescopic camera control method and device, electronic device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160269614A1 (en) * 2013-11-22 2016-09-15 Huawei Technologies Co., Ltd. Camera Control Method, User Equipment, and Camera
CN108390964A (en) * 2018-01-31 2018-08-10 维沃移动通信有限公司 A kind of camera head protecting method and mobile terminal
CN110889148A (en) * 2019-11-25 2020-03-17 深圳传音控股股份有限公司 Camera control method, system, mobile terminal and computer readable storage medium
CN111246059A (en) * 2020-01-09 2020-06-05 Oppo(重庆)智能科技有限公司 Control method and device for lifting camera module, electronic equipment and storage medium
CN111385413A (en) * 2020-02-28 2020-07-07 Oppo(重庆)智能科技有限公司 Telescopic camera control method and device, electronic device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095651A (en) * 2021-10-18 2022-02-25 荣耀终端有限公司 Camera pop-up control method and electronic equipment
CN114095651B (en) * 2021-10-18 2023-08-15 荣耀终端有限公司 Camera pop-up control method and electronic equipment

Similar Documents

Publication Publication Date Title
CN111638821B (en) Display method, display device and electronic equipment
CN108038393B (en) Application privacy protection method and mobile terminal
CN105677182B (en) A kind of information processing method and terminal
CN108197450B (en) Face recognition method, face recognition device, storage medium and electronic equipment
CN111897476B (en) False touch prevention setting method and device
CN112804445B (en) Display method and device and electronic equipment
CN112581122A (en) Display method, payment code identification method and device and electronic equipment
CN113190882B (en) Method and device for shielding control
CN107766712A (en) Message prompt method, terminal and computer-readable medium
CN112417420A (en) Information processing method and device and electronic equipment
CN112565612A (en) Camera control method and device and electronic equipment
CN112637195B (en) Method and device for controlling electronic equipment and electronic equipment
US20240362039A1 (en) Program control method and apparatus, electronic device, and medium
CN112422735B (en) Information prompting method and device
CN113282364A (en) Display method, display device and electronic equipment
CN111913773A (en) NFC card control method, NFC card control device and electronic equipment
CN115061609B (en) Group chat operation processing method, processing device, electronic equipment and storage medium
WO2021092769A1 (en) Security protection method and device, mobile terminal, and storage medium
CN112181351A (en) Voice input method and device and electronic equipment
CN106791145A (en) Short message management method and device
CN113703592B (en) Secure input method and device
CN113655937B (en) Application management method, device, electronic equipment and readable storage medium
CN111953842A (en) Electronic equipment, safety protection method and device
CN114283476A (en) Unlocking control method and device, electronic equipment and readable storage medium
CN112416203A (en) Message reply method, device and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210326

RJ01 Rejection of invention patent application after publication