CN110602314B - Operation control method, electronic device and computer readable storage medium - Google Patents

Operation control method, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN110602314B
CN110602314B CN201910813513.7A CN201910813513A CN110602314B CN 110602314 B CN110602314 B CN 110602314B CN 201910813513 A CN201910813513 A CN 201910813513A CN 110602314 B CN110602314 B CN 110602314B
Authority
CN
China
Prior art keywords
real
electronic device
time distance
target
target object
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.)
Active
Application number
CN201910813513.7A
Other languages
Chinese (zh)
Other versions
CN110602314A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910813513.7A priority Critical patent/CN110602314B/en
Publication of CN110602314A publication Critical patent/CN110602314A/en
Application granted granted Critical
Publication of CN110602314B publication Critical patent/CN110602314B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • 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/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • 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/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • 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

Abstract

The invention provides an operation control method and electronic equipment, wherein the method comprises the following steps: acquiring a real-time distance between a target object and the electronic equipment under the condition that the target object is detected by a camera of the electronic equipment; and executing target control operation based on the real-time distance. According to the embodiment of the invention, the electronic equipment can be controlled to execute the corresponding target control operation by detecting the real-time distance between the electronic equipment and the target object without manual operation of a user, so that the operation control method for the electronic equipment is simpler and more convenient.

Description

Operation control method, electronic device and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to an operation control method and electronic equipment.
Background
With the development of electronic technology, the functions of electronic devices such as mobile phones are more and more fully equipped, and users can use the electronic devices to process various transactions, wherein entertainment is still one of the most important functions of the electronic devices and is also the most used by people.
Currently, manipulation of an electronic device typically relies on a series of manual trigger inputs from a user, for example, if it is desired to control the electronic device to play a particular music, the user is required to launch a music playing application, find a particular song, and then click to play. Therefore, the operation control method of the existing electronic equipment has the problem of complex operation.
Disclosure of Invention
The embodiment of the invention provides an operation control method and electronic equipment, and aims to solve the problem that the operation of the existing operation control method of the electronic equipment is complicated.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an operation control method, which is applied to an electronic device, and the method includes:
acquiring a real-time distance between a target object and the electronic equipment under the condition that the target object is detected by a camera of the electronic equipment;
and executing target control operation based on the real-time distance.
In a second aspect, an embodiment of the present invention provides an electronic device, including:
the acquisition module is used for acquiring the real-time distance between a target object and the electronic equipment under the condition that the target object is detected by a camera of the electronic equipment;
and the execution module is used for executing target control operation based on the real-time distance.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps in the operation control method.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps in the operation control method described above.
In the embodiment of the invention, under the condition that a target object is detected by a camera of the electronic equipment, the real-time distance between the target object and the electronic equipment is acquired; and executing target control operation based on the real-time distance. Therefore, the electronic equipment can be controlled to execute corresponding target control operation by detecting the real-time distance between the electronic equipment and the target object without manual operation of a user, so that the operation control method of the electronic equipment is simpler and more convenient.
Drawings
Fig. 1 is a flowchart of an operation control method according to an embodiment of the present invention;
fig. 2 is a schematic ranging diagram of an electronic device according to an embodiment of the present invention;
fig. 3 is a schematic folding diagram of an electronic device according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an electronic device being placed in a pocket mode according to an embodiment of the invention;
FIG. 5 is a second flowchart of an operation control method according to an embodiment of the present invention;
FIG. 6 is a block diagram of an electronic device according to an embodiment of the present invention;
FIG. 7 is a second block diagram of another electronic device according to an embodiment of the present invention;
FIG. 8a is a third block diagram of another electronic device according to an embodiment of the present invention;
FIG. 8b is a fourth block diagram of another electronic device according to an embodiment of the present invention;
FIG. 9 is a fifth block diagram of another electronic device according to an embodiment of the present invention;
FIG. 10 is a block diagram of an execution module of an electronic device according to an embodiment of the present invention;
fig. 11 is a hardware structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
Referring to fig. 1, fig. 1 is a flowchart of an operation control method provided in an embodiment of the present invention, applied to an electronic device, and as shown in fig. 1, the method includes the following steps:
step 101, acquiring a real-time distance between a target object and the electronic equipment under the condition that the target object is detected by a camera of the electronic equipment.
The target object may be a person, a building, or another specific object, and may be a preset specific object, such as a specific person.
In the embodiment of the present invention, the electronic device may acquire an image through a camera to detect whether a target object exists in front of the electronic device, and specifically, the electronic device may be in some specific scenes, such as some scenes where a user is inconvenient to manually operate, or scenes where a user desires to control the electronic device through a distance parameter with a target object, turn on the camera, and determine whether a target object is detected by identifying an image acquired by the camera.
Taking the human object as an example, when the user holds the electronic device in the hand and faces the camera outward, the front image may be captured by the camera, and by performing human recognition on the captured image, when it is recognized that the human object is included in the captured image, it may be determined that the target object is detected.
In a case where a target object is detected, a real-time distance between the target object and the electronic device may be further acquired, and specifically, the real-time distance between the target object and the electronic device may be acquired through depth data in an image including the target object captured by the camera, or the real-time distance between the target object and the electronic device may be measured through a range finder of the electronic device. A schematic diagram of the electronic device measuring the distance L from the target object 20 may be as shown in fig. 2.
Optionally, the electronic device is a flexible device;
before the obtaining the real-time distance between the target object and the electronic device, the method further includes:
and starting a camera detection object of the electronic equipment under the condition that the electronic equipment is detected to be in a preset bending state and a camera of the electronic equipment is not shielded.
In this embodiment, when the electronic device is a flexible device, that is, when the screen of the device is bendable or foldable, a scene for triggering the electronic device to apply the scheme may be set by combining the characteristics of the flexible screen.
Specifically, it may be detected that the electronic device is in a preset bending state, for example, when a screen of the electronic device is in a folding state (that is, a user does not manually operate the electronic device), whether a camera of the electronic device is shielded or not may be further detected, for example, whether an obstacle exists in front of the electronic device is measured by a light sensor or a distance meter beside the camera, if so, it is determined that the camera of the electronic device is shielded, and if not, it is determined that the camera of the electronic device is not shielded, and the camera may be started under the condition that it is determined that the camera of the electronic device is not shielded. In order to combine with an actual application scene, the camera may preferably be a rear camera.
For example, referring to fig. 3, the user may bend the electronic device 30 in the direction of the arrow shown in the figure, and the camera 31 is oriented as the arrow in the figure, and as shown in fig. 4, the bent electronic device 40 may be inserted into a jacket pocket, wherein the camera of the electronic device 40 faces outward, i.e., is consistent with the orientation of the user. In this scenario, that is, when the electronic device is in the pocket mode, the electronic device may detect that the screen thereof is in a bent state, and the camera is not shielded, so that the camera may be started to detect whether a target object exists in front.
It should be noted that, in order to save the electric quantity of the electronic device and avoid the power consumption increase due to the long-term startup state of the camera, the camera may be set to be started up every a period of time when the electronic device is in the pocket mode, for example, the camera may be started up every one minute, specifically, when the target object is not detected after the camera is started up, the camera may be turned off, and the camera may be started up again after one minute elapses.
Therefore, by combining the characteristics of the flexible electronic equipment and setting the conditions for starting the camera, the phenomenon that the electronic equipment starts the camera in some unnecessary scenes and executes control operation not intended by a user can be avoided, so that the electric quantity of the electronic equipment can be saved, and the false triggering operation can be avoided.
And 102, executing target control operation based on the real-time distance.
In the embodiment of the invention, the electronic equipment can preset the incidence relation between different distance parameters and different control operations, so that the electronic equipment can autonomously execute different control operations according to different distances from a target object. In order to meet the requirements of users, the user can preset different distances to require specific operations executed by the electronic equipment, so that the electronic equipment can establish the association relationship between the distances and control operations according to the setting parameters of the user, wherein the control operations can include screen display of specific characters and pictures, playing of preset audio and video, motor vibration, flashing of a flash lamp, long-time lighting and the like.
In this way, in this step, the target control operation associated with the real-time distance may be determined according to the association relationship between the preset distance and the control operation, and the target control operation may be executed without manual operation of the electronic device by the user.
Since the real-time distance between the target object and the electronic device may change in real time, for example, in a process of walking with the electronic device by a user or in a scene such as the target object approaching the electronic device, during the process of executing the target control operation based on the real-time distance, the target control operation associated with the current real-time distance needs to be determined according to the continuously updated real-time distance between the target object and the electronic device. For example, when it is detected that the real-time distance between the target object and the electronic device is 3 meters, the executed target control operation is playing preset audio, and when it is detected that the real-time distance between the target object and the electronic device is updated to 2 meters, since the target control operation associated with the real-time distance of 2 meters is flashing by turning on a flash lamp, the target control operation can be updated to flash by turning on the flash lamp, and correspondingly, playing of the preset audio can be stopped, and flashing by the flash lamp is turned on.
Optionally, the step 102 includes:
acquiring a real-time distance range to which the real-time distance belongs;
executing a target control operation associated with the real-time distance range;
wherein the target control operation comprises at least one of: and displaying adjustment operation and reminding operation on a screen.
In one embodiment, the target control operation may be associated with a real-time distance range, that is, the electronic device may preset different control operations associated with different distance ranges, for example, the control operation associated with the distance range of 0 to 1 meter is to display preset content, the control operation associated with the distance range of 1 meter to 2 meters is to turn on a flash, and the control operation associated with the distance range of 2 meters to 3 meters is to play preset audio or video. In this way, the real-time distance range to which the real-time distance belongs may be obtained first, and if the real-time distance is 50 centimeters, the real-time distance range to which the real-time distance belongs may be determined to be 0 to 1 meter, then the target control operation associated with the real-time distance range may be determined, for example, the target control operation associated with the real-time distance range of 0 to 1 meter is determined to display the preset content, and finally the target control operation may be performed, for example, the preset content may be displayed on the screen of the electronic device.
Wherein the target control operation may include at least one of: the method comprises the following steps of screen display adjustment operation and reminding operation, wherein the screen display adjustment operation can be adjusting screen display specific characters, pictures or specific colors and the like, and the reminding operation can be vibration reminding, flash lamp reminding, audio and video reminding or color reminding and the like.
Therefore, the electronic equipment can be controlled to execute the associated specific control operation within a certain distance range through the association relation between the real-time distance range and the target control operation, and the problem that the executed target control operation needs to be frequently updated due to too fast real-time distance updating can be avoided.
Optionally, the target control operation includes a reminder operation;
performing a target control operation based on the real-time distance, including at least one of:
outputting a vibration prompt under the condition that the real-time distance is within a first preset distance range;
under the condition that the real-time distance is within a second preset distance range, starting a flash lamp;
playing a preset audio or video under the condition that the real-time distance is within a third preset distance range;
and displaying a preset color on a screen of the electronic equipment under the condition that the real-time distance is within a fourth preset distance range.
In one embodiment, the electronic device may preset different distance ranges to associate different reminding operations, so that the electronic device may determine a specific reminding operation according to the different preset distance ranges in which the real-time distance between the detected target object and the electronic device is located.
Specifically, when the real-time distance is within a first preset distance range, the associated reminding operation may be outputting a vibration reminder; when the real-time distance is within a second preset distance range, the associated reminding operation can be that a flash lamp is started, and the flash lamp can flash at a specific frequency so as to play an obvious reminding effect; when the real-time distance is within a third preset distance range, the associated reminding operation can be playing preset audio or video to remind the target object to watch; when the real-time distance is within a fourth preset distance range, the associated reminding operation may be to display a preset color, such as red, on a screen of the electronic device to remind the target object of paying attention. The first preset distance range, the second preset distance range, the third preset distance range and the fourth preset distance range can be set according to user requirements. For example, the reminding operation associated with different distance ranges can be set as shown in the following table 1.
TABLE 1 Association of distance ranges and reminder operations
Distance (cm) Reminding operation
0~50 Motor vibration
50~100 Flashing by flash lamp
100~200 Playing preset audio or video
200~300 Red color on screen
Therefore, by setting the incidence relation between different preset distance ranges and the reminding operation, the electronic equipment can automatically execute the reminding operation expected by the user according to the difference of the distance ranges of the real-time distances from the target object, and the interestingness is increased while the operation convenience is improved.
In practical application, to some disabled personage, like visual disturbance, can give help through the warning operation that sets up in advance, other personage of suggestion, if when detecting the place ahead someone, electronic equipment can carry out the flash light and flash to play the purpose of suggestion place ahead passerby, avoid bumping.
Optionally, the target control operation includes a screen display adjustment operation;
the step 102 comprises:
displaying target display content associated with the real-time distance on a screen of the electronic device;
or displaying target display content associated with the real-time distance and the target object on a screen of the electronic device.
In yet another embodiment, the target control operation may include a screen display adjustment operation, such as displaying target content associated with the distance or displaying target content associated with the distance and the target object.
In this embodiment, association relations between different distance parameters and display contents may be preset, so that after a real-time distance between the target object and the electronic device is obtained, a target display content associated with the real-time distance may be determined, and the target display content may be displayed on a screen of the electronic device, for example, a display content associated with a distance of 0 to 1 meter is "hello", a display content associated with a distance of 1 meter to 2 meters is "notice a pedestrian ahead", and if the real-time distance is 50 centimeters, the "hello" may be displayed on the screen of the electronic device.
Furthermore, the association relationship between the distance and the object and the display content can be set by combining the difference of the target objects, so that the electronic equipment can display the associated target display content according to the difference of the real-time distance from the target object and the difference of the target objects. For example, if the real-time distance is 150 cm and the target object is Zhang III, the photograph of Zhang III can be displayed on the screen of the electronic device.
In practical application, a user can perform a whitewashing function through the scheme, for example, a face image of an object expected to be whitewashed is pre-recorded, a whitewashing event is set for the object to display preset whitewashing characters, play preset whitewashing videos or voices and the like, so that when the electronic equipment recognizes that the whitewashing object approaches, the electronic equipment can be triggered to automatically execute the set whitewashing event, and thus good help can be provided for users who are not good at expressing. The user can also use the scheme to create a specific atmosphere among friends, and the pleasure is increased.
In an embodiment of the present invention, the electronic device may be any device having a storage medium, for example: computer (Computer), Mobile phone, Tablet Personal Computer (Tablet Personal Computer), Laptop (Laptop Computer), Personal Digital Assistant (Personal Digital Assistant, abbreviated as PDA), Mobile Internet Device (MID), Wearable Device (Wearable Device), and the like.
In the operation control method in this embodiment, when a target object is detected by a camera of the electronic device, a real-time distance between the target object and the electronic device is acquired; and executing target control operation based on the real-time distance. Therefore, the electronic equipment can be controlled to execute corresponding target control operation by detecting the real-time distance between the electronic equipment and the target object without manual operation of a user, so that the operation control method of the electronic equipment is simpler and more convenient.
Referring to fig. 5, fig. 5 is a flowchart of another operation control method provided in an embodiment of the present invention, which is applied to an electronic device, and in this embodiment, on the basis of the embodiment shown in fig. 1, a step of performing face recognition on an image including the target object acquired by the camera to obtain first face information is added, and a step of performing target control operation based on the real-time distance is defined, so that the electronic device can be further controlled to perform different control operations according to different recognized person objects, thereby increasing interactivity and interestingness of the electronic device. As shown in fig. 5, the method comprises the steps of:
step 501, acquiring a real-time distance between a target object and the electronic device when the target object is detected by a camera of the electronic device.
The specific implementation of this step may refer to the implementation of step 101 in the method embodiment shown in fig. 1, and is not described here again to avoid repetition.
Optionally, before step 501, the method further includes:
determining an object, of the at least two objects, whose distance from the electronic device is within a preset distance range as a target object, when the camera detects the at least two objects;
alternatively, the first and second electrodes may be,
and under the condition that the camera detects at least two objects, determining a target object according to the preset priority of each object in the at least two objects, wherein the target object is the object with the highest priority in the at least two objects.
When the electronic device detects a plurality of objects, namely at least two objects, through the camera, one of the objects needs to be determined as the target object, so that the electronic device executes related control operation according to the related parameters of the target object.
In one embodiment, the distance between each of the at least two objects and the electronic device may be obtained separately, and an object whose distance between the at least two objects and the electronic device is within a preset distance range may be determined as the target object, for example, if two objects are detected, the distances from the at least two objects and the electronic device are 2 meters and 4 meters, respectively, and the preset distance range is within 3 meters, the object whose distance from the electronic device is 2 meters may be determined as the target object.
Alternatively, the target object may be determined according to distances between the at least two objects and the electronic device, for example, an object closest to the electronic device among the plurality of objects is used as the target object, or an object farthest from the electronic device among the plurality of objects is used as the target object.
In another embodiment, a user may set priorities for preset face images, so that when the electronic device detects multiple objects, the electronic device may perform face recognition on the multiple objects, and determine a target object by combining face data and preset priorities, for example, if a face image of a first object in the multiple objects is a preset face image and has the highest priority, the first object may be the target object.
In this way, in the case that a plurality of objects are detected, by determining the target object according to the distance between each object and the electronic device or the preset priority of each object, a decision mechanism can be provided for how to execute a specific event when the electronic device is in a multi-person scene.
Of course, this embodiment can be applied to the embodiment shown in fig. 1 as well, and the same advantageous effects can be achieved.
Step 502, performing face recognition on the image which is acquired by the camera and comprises the target object to obtain first face information.
In the embodiment of the invention, in order to enhance the interactivity and interestingness between the user and the specific crowd, the identity of the target object can be further recognized after the target object is detected by the camera, specifically, the identity of the target object can be further recognized by performing face recognition on the image which is acquired by the camera and comprises the target object so as to obtain the face image of the target object, namely the first face information, and then the face image of the target object is matched with the preset face image so as to determine the preset face image matched with the face image of the target object.
For example, a user may pre-input one or more face images, and may respectively set different face images and distance-related control operations, so that, after the electronic device detects a target object, the electronic device may recognize the face image of the target object, and respectively match the face image of the target object with the pre-input face image to obtain a preset face image matched therewith, where if the matching is not successful, it may be determined that the target object is not a specific group of people, and subsequent steps need not be performed.
And 503, executing target control operation related to the real-time distance and the first face information.
In this embodiment, the electronic device may preset association relationships between different distance parameters, face parameters, and control operations, so that the electronic device may autonomously perform a specific control operation according to a real-time distance between a target object and the electronic device and a preset face image matched with the first face information, that is, the target control operation is associated with both the real-time distance and the first face information. In order to meet the requirements of users, different face images can be input by the users in advance, and control operations which need to be executed by the electronic equipment are set for the different face images and the distance parameters, so that the electronic equipment can establish the association relation between the face images, the distance and the control operations according to the setting parameters of the users, wherein the control operations can include screen display of specific characters and pictures, playing of preset audio and video, vibration of a motor, flashing of a flash lamp, voice broadcasting of the name of a target object and the like.
In this way, in this step, the target control operation associated with the real-time distance and the first face information may be determined according to a preset distance and an association relationship between the face image and the event, and the target control operation may be executed without manually operating the electronic device by the user.
Optionally, under the condition that the real-time distance is within a first preset distance range and the first face information is matched with the first preset face information, the target control operation is vibration, preset audio playing or flash lamp flashing;
under the condition that the real-time distance is within a second preset distance range and the first face information is matched with second preset face information, the target control operation is to play a preset video;
and under the condition that the real-time distance is within a third preset distance range and the first face information is matched with the third preset face information, the target control operation is to broadcast the name of the target object by voice.
In an optional implementation manner, different distance ranges and different control operations associated with different face information may be preset by the electronic device, so that the electronic device may determine a specific control operation according to different preset distance ranges where the detected real-time distance between the target object and the electronic device is located and the difference between the target objects.
Specifically, when the real-time distance is within a first preset distance range and the first face information is matched with the first preset face information, the associated target control operation may be motor vibration, preset audio playing or flash lighting; when the real-time distance is within a second preset distance range and the first face information is matched with the second preset face information, the associated target control operation can be to play a preset video; when the real-time distance is within a third preset distance range and the first face information is matched with third preset face information, the associated target control operation may be to broadcast the name of the target object by voice. The first preset distance range, the second preset distance range and the third preset distance range can be set according to user requirements, and the first preset face information, the second preset face information and the third preset face information can be input in advance by a user. For example, control operations associated with different distance ranges and face information (specific crowd) may be set as shown in table 2 below.
TABLE 2 Association of distance ranges, face information and control operations
Distance (cm) Face information Controlling operation
0~50 Zhang three Motor vibration, sound playing and flash lamp flashing
50~100 Li Si Playing video
100~200 Wangwu tea Voice broadcast of name of opposite party
Therefore, by setting different preset distance ranges and the incidence relation between the face information and the control operation, the electronic equipment can automatically execute the target control operation set by the user according to different distances from the target object and different target objects, and the interaction and the interestingness are increased while the operation convenience is improved.
Optionally, the method further includes:
and closing the camera under the condition that the electronic equipment is detected to meet the preset condition.
The preset condition may be that the electronic device is detected to be in an unfolded state, or that a camera of the electronic device is shielded, or that a user operates the electronic device, and the like, and when the events are detected, it may be determined that the user does not need to apply the scheme to control the electronic device any more, so that the camera of the electronic device may be closed, and the detection program may be exited, that is, the detection of the front object and the distance from the front object may be stopped, so as to save the electric quantity.
In this embodiment, on the basis of the distance parameter between the target object and the electronic device, the electronic device is further controlled to execute the specific control operation according to the difference between the recognized character objects, so that the electronic device can execute different control operations according to the difference between the target objects, and the user can set the specific control operation for the specific object, thereby further increasing the interest of interaction with other people.
In addition, a plurality of optional implementation manners are added to the embodiment shown in fig. 1, and these optional implementation manners may be implemented in combination with each other or separately, and can achieve the technical effect of controlling the electronic device to execute the corresponding target control operation by detecting the real-time distance between the electronic device and the target object without manual operation of a user, so that the operation control method for the electronic device is simpler and more convenient.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 6, the electronic device 600 includes:
an obtaining module 601, configured to obtain a real-time distance between a target object and an electronic device 600 when the target object is detected by a camera of the electronic device 600;
an executing module 602, configured to execute a target control operation based on the real-time distance.
Optionally, the electronic device 600 is a flexible device;
as shown in fig. 7, the electronic device 600 further includes:
the starting module 603 is configured to start the camera of the electronic device 600 to detect the object when it is detected that the electronic device 600 is in the preset bending state and the camera of the electronic device 600 is not shielded.
Optionally, as shown in fig. 8a and 8b, the electronic device 600 further includes:
a first determining module 604, configured to determine, as a target object, an object, of the at least two objects, whose distance from the electronic device 600 is within a preset distance range, if the camera detects the at least two objects;
alternatively, the first and second electrodes may be,
a second determining module 605, configured to determine, according to a preset priority of the at least two objects, a target object when the at least two objects are detected by the camera, where the target object is an object with a highest priority among the at least two objects.
Optionally, as shown in fig. 9, the electronic device 600 further includes:
a face recognition module 606, configured to perform face recognition on the image including the target object acquired by the camera to obtain first face information;
the execution module 602 is configured to execute a target control operation associated with the real-time distance and the first facial information.
Optionally, as shown in fig. 10, the executing module 602 includes:
an obtaining unit 6021, configured to obtain a real-time distance range to which the real-time distance belongs;
an execution unit 6022 for executing a target control operation associated with the real-time distance range;
wherein the target control operation comprises at least one of: and displaying adjustment operation and reminding operation on a screen.
Optionally, the target control operation includes a screen display adjustment operation;
the execution module 602 is configured to display target display content associated with the real-time distance on a screen of the electronic device 600;
alternatively, target display content associated with the real-time distance and the target object is displayed on a screen of the electronic device 600.
Optionally, the target control operation includes a reminder operation;
the execution module 602 is configured to perform at least one of:
outputting a vibration prompt under the condition that the real-time distance is within a first preset distance range;
under the condition that the real-time distance is within a second preset distance range, starting a flash lamp;
playing a preset audio or video under the condition that the real-time distance is within a third preset distance range;
and displaying a preset color on a screen of the electronic equipment under the condition that the real-time distance is within a fourth preset distance range.
The electronic device 600 can implement each process implemented by the electronic device in the method embodiments of fig. 1 and fig. 5, and is not described here again to avoid repetition. The electronic equipment 600 of the embodiment of the invention can control the electronic equipment to execute the corresponding target control operation by detecting the real-time distance between the electronic equipment and the target object without manual operation of a user, so that the operation control method of the electronic equipment is simpler and more convenient.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device 1100 for implementing various embodiments of the present invention, where the electronic device 1100 includes, but is not limited to: radio frequency unit 1101, network module 1102, audio output unit 1103, input unit 1104, sensor 1105, display unit 1106, user input unit 1107, interface unit 1108, memory 1109, processor 1110, and power supply 1111. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 11 does not constitute a limitation of electronic devices, which may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 1110 is configured to, in a case that a target object is detected by a camera of the electronic device 1100, obtain a real-time distance between the target object and the electronic device 1100;
and executing target control operation based on the real-time distance.
Optionally, the electronic device 1100 is a flexible device;
processor 1110 is further configured to:
and starting a camera of the electronic equipment to detect an object under the condition that the electronic equipment 1100 is detected to be in a preset bending state and the camera of the electronic equipment 1100 is not shielded.
Optionally, the processor 1110 is further configured to:
determining an object, of the at least two objects, whose distance from the electronic device is within a preset distance range as a target object, when the camera detects the at least two objects;
alternatively, the first and second electrodes may be,
under the condition that the camera detects at least two objects, determining a target object based on a preset priority of each object of the at least two objects, wherein the target object is an object with the highest priority in the at least two objects.
Optionally, the processor 1110 is further configured to:
performing face recognition on the image which is acquired by the camera and comprises the target object to obtain first face information;
and executing target control operation associated with the real-time distance and the first face information.
Optionally, the processor 1110 is further configured to:
acquiring a real-time distance range to which the real-time distance belongs;
executing a target control operation associated with the real-time distance range;
wherein the target control operation comprises at least one of: and displaying adjustment operation and reminding operation on a screen.
Optionally, the target control operation includes a screen display adjustment operation;
processor 1110 is further configured to:
displaying target display content associated with the real-time distance on a screen of the electronic device;
or displaying target display content associated with the real-time distance and the target object on a screen of the electronic device.
Optionally, the target control operation includes a reminder operation;
processor 1110 is further configured to:
outputting a vibration prompt under the condition that the real-time distance is within a first preset distance range;
under the condition that the real-time distance is within a second preset distance range, starting a flash lamp;
playing a preset audio or video under the condition that the real-time distance is within a third preset distance range;
and displaying a preset color on a screen of the electronic equipment under the condition that the real-time distance is within a fourth preset distance range.
The electronic device 1100 is capable of implementing the processes implemented by the electronic device in the foregoing embodiments, and details are not repeated here to avoid repetition. The electronic device 1100 of the embodiment of the invention can control the electronic device to execute the corresponding target control operation by detecting the real-time distance between the electronic device and the target object without manual operation of a user, so that the operation control method of the electronic device is simpler and more convenient.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1101 may be configured to receive and transmit signals during a message transmission or a call, and specifically, receive downlink data from a base station and then process the received downlink data to the processor 1110; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 1101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 1101 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 1102, such as to assist the user in sending and receiving e-mail, browsing web pages, and accessing streaming media.
The audio output unit 1103 may convert audio data received by the radio frequency unit 1101 or the network module 1102 or stored in the memory 1109 into an audio signal and output as sound. Also, the audio output unit 1103 may also provide audio output related to a specific function performed by the electronic device 1100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1104 is used to receive audio or video signals. The input Unit 1104 may include a Graphics Processing Unit (GPU) 11041 and a microphone 11042, and the Graphics processor 11041 processes image data of still pictures or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1106. The image frames processed by the graphic processor 11041 may be stored in the memory 1109 (or other storage medium) or transmitted via the radio frequency unit 1101 or the network module 1102. The microphone 11042 may receive sound and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1101 in case of the phone call mode.
The electronic device 1100 also includes at least one sensor 1105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 11061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 11061 and/or the backlight when the electronic device 1100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 1105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., and will not be described in detail herein.
The display unit 1106 is used to display information input by a user or information provided to the user. The Display unit 1106 may include a Display panel 11061, and the Display panel 11061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1107 may be used to receive input numeric or character information and generate key signal inputs relating to user settings and function control of the electronic apparatus. Specifically, the user input unit 1107 includes a touch panel 11071 and other input devices 11072. The touch panel 11071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 11071 (e.g., operations by a user on or near the touch panel 11071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 11071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 1110, and receives and executes commands sent from the processor 1110. In addition, the touch panel 11071 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 1107 may include other input devices 11072 in addition to the touch panel 11071. In particular, the other input devices 11072 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.
Further, the touch panel 11071 can be overlaid on the display panel 11061, and when the touch panel 11071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 1110 to determine the type of the touch event, and then the processor 1110 provides a corresponding visual output on the display panel 11061 according to the type of the touch event. Although the touch panel 11071 and the display panel 11061 are shown in fig. 11 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 11071 and the display panel 11061 may be integrated to implement the input and output functions of the electronic device, and the embodiment is not limited herein.
The interface unit 1108 is an interface for connecting an external device to the electronic apparatus 1100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. Interface unit 1108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within electronic device 1100 or may be used to transmit data between electronic device 1100 and external devices.
The memory 1109 may be used to store software programs as well as various data. The memory 1109 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory 1109 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 1109 and calling data stored in the memory 1109, thereby integrally monitoring the electronic device. Processor 1110 may include one or more processing units; preferably, the processor 1110 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 1110.
The electronic device 1100 may further include a power supply 1111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 1111 may be logically connected to the processor 1110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the electronic device 1100 includes some functional modules that are not shown, and thus are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 1110, a memory 1109, and a computer program that is stored in the memory 1109 and is executable on the processor 1110, where the computer program, when executed by the processor 1110, implements each process of the operation control method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the operation control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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.
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 invention 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 invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. An operation control method applied to an electronic device, the method comprising:
acquiring a real-time distance between a target object and the electronic equipment under the condition that the target object is detected by a camera of the electronic equipment;
executing target control operation based on the real-time distance;
the target object is an object which is not used by the electronic equipment user;
the target control operation comprises a screen display adjustment operation, and the executing of the target control operation based on the real-time distance comprises:
displaying target display content associated with the real-time distance on a screen of the electronic device; or displaying target display content associated with the real-time distance and the target object on a screen of the electronic equipment;
or, the target control operation includes a reminding operation, the screen of the electronic device faces the target object, and the target control operation is executed based on the real-time distance, and includes at least one of:
playing a preset audio or video under the condition that the real-time distance is within a third preset distance range;
and displaying a preset color on a screen of the electronic equipment under the condition that the real-time distance is within a fourth preset distance range.
2. The method of claim 1, wherein the electronic device is a flexible device;
before the obtaining the real-time distance between the target object and the electronic device, the method further includes:
and starting a camera detection object of the electronic equipment under the condition that the electronic equipment is detected to be in a preset bending state and a camera of the electronic equipment is not shielded.
3. The method of claim 2, wherein after the initiating the camera of the electronic device to detect the object, the method further comprises:
determining an object, of the at least two objects, whose distance from the electronic device is within a preset distance range as a target object, when the camera detects the at least two objects;
alternatively, the first and second electrodes may be,
under the condition that the camera detects at least two objects, determining a target object based on a preset priority of each object of the at least two objects, wherein the target object is an object with the highest priority in the at least two objects.
4. The method of claim 1, wherein prior to performing a target control operation based on the real-time distance, the method further comprises:
performing face recognition on the image which is acquired by the camera and comprises the target object to obtain first face information;
the executing a target control operation based on the real-time distance comprises:
and executing target control operation associated with the real-time distance and the first face information.
5. The method of claim 1, wherein performing a target control operation based on the real-time distance comprises:
acquiring a real-time distance range to which the real-time distance belongs;
executing a target control operation associated with the real-time distance range;
wherein the target control operation comprises at least one of: and displaying adjustment operation and reminding operation on a screen.
6. An electronic device, comprising:
the acquisition module is used for acquiring the real-time distance between a target object and the electronic equipment under the condition that the target object is detected by a camera of the electronic equipment;
the execution module is used for executing target control operation based on the real-time distance;
the target object is an object which is not used by the electronic equipment user;
the target control operation comprises a screen display adjustment operation, and the execution module is used for displaying target display content associated with the real-time distance on a screen of the electronic equipment; or displaying target display content associated with the real-time distance and the target object on a screen of the electronic equipment;
or, the target control operation includes a reminding operation, the screen of the electronic device faces the target object, and the execution module is configured to execute at least one of:
playing a preset audio or video under the condition that the real-time distance is within a third preset distance range;
and displaying a preset color on a screen of the electronic equipment under the condition that the real-time distance is within a fourth preset distance range.
7. An electronic device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps in the operation control method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, implements the steps in the operation control method according to any one of claims 1 to 5.
CN201910813513.7A 2019-08-30 2019-08-30 Operation control method, electronic device and computer readable storage medium Active CN110602314B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910813513.7A CN110602314B (en) 2019-08-30 2019-08-30 Operation control method, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910813513.7A CN110602314B (en) 2019-08-30 2019-08-30 Operation control method, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110602314A CN110602314A (en) 2019-12-20
CN110602314B true CN110602314B (en) 2021-02-12

Family

ID=68856680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910813513.7A Active CN110602314B (en) 2019-08-30 2019-08-30 Operation control method, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110602314B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111193871B (en) * 2020-01-13 2021-06-04 维沃移动通信有限公司 Operation control method, electronic device, and medium
CN112019886B (en) * 2020-08-07 2022-09-06 青岛海尔科技有限公司 Method, device and equipment for playing video

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108615012A (en) * 2018-04-27 2018-10-02 Oppo广东移动通信有限公司 Distance reminding method, electronic device and non-volatile computer readable storage medium storing program for executing
CN108965981A (en) * 2018-07-30 2018-12-07 Oppo广东移动通信有限公司 Video broadcasting method, device, storage medium and electronic equipment

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100003913A (en) * 2008-07-02 2010-01-12 삼성전자주식회사 Method and apparatus for communication using 3-dimensional image display
CN105049600A (en) * 2015-06-05 2015-11-11 惠州Tcl移动通信有限公司 Mobile terminal automatic prompting method and system based on infrared distance measuring sensor
CN105260065B (en) * 2015-10-15 2018-03-30 广东欧珀移动通信有限公司 The method and device of information processing
CN105302302B (en) * 2015-10-15 2019-02-01 Oppo广东移动通信有限公司 A kind of method and device of application control
CN105677042A (en) * 2016-02-24 2016-06-15 广东欧珀移动通信有限公司 Control method and device for display mode of terminal
CN106022209B (en) * 2016-04-29 2019-09-17 杭州华橙网络科技有限公司 A kind of method and device of range estimation and processing based on Face datection
CN106707285A (en) * 2016-12-15 2017-05-24 上海摩软通讯技术有限公司 Barrier reminding method and terminal thereof
CN107464548A (en) * 2017-08-03 2017-12-12 京东方科技集团股份有限公司 Contactless music sensing device and musical performance method
CN108196666A (en) * 2017-09-28 2018-06-22 努比亚技术有限公司 A kind of method of terminal control, terminal and computer readable storage medium
WO2019116244A1 (en) * 2017-12-15 2019-06-20 ГИОРГАДЗЕ, Анико Тенгизовна Interaction of users in a communication system using augmented reality effects
CN109001741A (en) * 2018-05-24 2018-12-14 深圳市沃特沃德股份有限公司 The alarm method and system of intelligent terminal chance barrier
CN109358831A (en) * 2018-10-30 2019-02-19 努比亚技术有限公司 A kind of display control method, mobile terminal and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108615012A (en) * 2018-04-27 2018-10-02 Oppo广东移动通信有限公司 Distance reminding method, electronic device and non-volatile computer readable storage medium storing program for executing
CN108965981A (en) * 2018-07-30 2018-12-07 Oppo广东移动通信有限公司 Video broadcasting method, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN110602314A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN108848308B (en) Shooting method and mobile terminal
CN109078319B (en) Game interface display method and terminal
CN107908382B (en) Split screen display method and mobile terminal
CN108174103B (en) Shooting prompting method and mobile terminal
CN110213440B (en) Image sharing method and terminal
CN109065060B (en) Voice awakening method and terminal
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN109819168B (en) Camera starting method and mobile terminal
CN111290810B (en) Image display method and electronic equipment
CN108683850B (en) Shooting prompting method and mobile terminal
CN107635072B (en) Control method of mobile terminal and mobile terminal
CN108762877B (en) Control method of mobile terminal interface and mobile terminal
CN108881544B (en) Photographing method and mobile terminal
CN108196753B (en) Interface switching method and mobile terminal
CN109618218B (en) Video processing method and mobile terminal
CN111415722B (en) Screen control method and electronic equipment
CN110865858A (en) Screen awakening method and electronic equipment
CN110602314B (en) Operation control method, electronic device and computer readable storage medium
CN110602387B (en) Shooting method and electronic equipment
CN108924413B (en) Shooting method and mobile terminal
CN108021315B (en) Control method and mobile terminal
CN107885423B (en) Picture processing method and mobile terminal
CN110740214B (en) Prompting method, terminal and computer readable storage medium
CN109947345B (en) Fingerprint identification method and terminal equipment
CN109788144B (en) Shooting method and terminal equipment

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