WO2018059328A1 - 一种终端控制方法及终端、存储介质 - Google Patents

一种终端控制方法及终端、存储介质 Download PDF

Info

Publication number
WO2018059328A1
WO2018059328A1 PCT/CN2017/102999 CN2017102999W WO2018059328A1 WO 2018059328 A1 WO2018059328 A1 WO 2018059328A1 CN 2017102999 W CN2017102999 W CN 2017102999W WO 2018059328 A1 WO2018059328 A1 WO 2018059328A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
image
control instruction
preset
camera device
Prior art date
Application number
PCT/CN2017/102999
Other languages
English (en)
French (fr)
Inventor
袁丽娜
林陆一
李轶峰
王亮
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2018059328A1 publication Critical patent/WO2018059328A1/zh
Priority to US16/016,831 priority Critical patent/US10878070B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1694Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being a single or a set of motion sensors for pointer control or gesture input obtained by sensing movements of the portable computer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures
    • 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/168Feature extraction; Face representation
    • 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/168Feature extraction; Face representation
    • G06V40/171Local features and components; Facial parts ; Occluding parts, e.g. glasses; Geometrical relationships
    • 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/172Classification, e.g. identification
    • 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/20Movements or behaviour, e.g. gesture recognition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0861Network architectures or network communication protocols for network security for authentication of entities using biometrical features, e.g. fingerprint, retina-scan
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • 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
    • 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/65Control of camera operation in relation to power supply
    • H04N23/651Control of camera operation in relation to power supply for reducing power consumption by affecting camera operations, e.g. sleep mode, hibernation mode or power off of selective parts of the camera
    • 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/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • 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/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/681Motion detection
    • H04N23/6812Motion detection based on additional sensors, e.g. acceleration sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2200/00Indexing scheme relating to G06F1/04 - G06F1/32
    • G06F2200/16Indexing scheme relating to G06F1/16 - G06F1/18
    • G06F2200/163Indexing scheme relating to constructional details of the computer
    • G06F2200/1637Sensing arrangement for detection of housing movement or orientation, e.g. for controlling scrolling or cursor movement on the display of an handheld computer

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a terminal control method, a terminal, and a storage medium.
  • Images are the carrier of visual information, helping people to understand the world objectively and accurately.
  • image processing such as image encoding, image compression, image enhancement or image restoration.
  • the acquired image is blurred or even invisible due to external reasons (for example, the terminal blurs the captured image caused by rapid movement), the image processing of the acquired image is not only poor in image quality, but also due to image processing. The process is cumbersome and requires a lot of system resources, thus wasting system resources.
  • the technical problem to be solved by the embodiments of the present invention is to provide a terminal control method, a terminal, and a storage medium, which improve the utilization of system resources.
  • an embodiment of the present invention provides a terminal control method, where the method is applied to a terminal configured with an imaging device, and the method includes:
  • image processing of the collected image is stopped.
  • the embodiment of the present invention further provides a terminal, where the terminal is configured with an imaging device, and the terminal includes:
  • a motion parameter acquisition portion configured to acquire an image by the camera device to obtain a motion parameter of the terminal when the camera device is detected to be in an operating state
  • control instruction generating part configured to generate an image control instruction when the motion parameter is greater than a preset parameter threshold
  • the control portion is configured to stop performing image processing on the collected image according to the image control instruction.
  • Embodiments of the present invention provide a computer readable storage medium storing machine instructions that, when executed by one or more processors, perform the following steps:
  • image processing of the collected image is stopped.
  • An embodiment of the present invention further provides a terminal, where the terminal includes: a storage medium, an outputter, an inputter, and a processor;
  • a storage medium configured as an executable instruction
  • the processor, the inputter, and the outputter invoke executable instructions stored in the internal storage medium, the executable instructions being configured to perform the terminal control method described above.
  • an image is acquired by the camera device, and a motion parameter of the terminal is acquired.
  • the motion parameter is greater than a preset parameter threshold, an image control instruction is generated, and the collection is stopped according to the image control instruction.
  • the image is processed by the image. Since the terminal can exceed the preset parameter threshold collected in the motion state, the image with poor image quality is not processed by the image, which avoids occupying system resources in the image processing, thereby improving the utilization of system resources. rate.
  • FIG. 1 is a schematic flowchart of a terminal control method according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a key point of a face according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a terminal control system provided in an embodiment of the present invention.
  • FIG. 4 is a data structure diagram of a configuration preset parameter threshold value provided in an embodiment of the present invention.
  • FIG. 5A is a schematic diagram 1 of a face recognition interface according to an embodiment of the present invention.
  • FIG. 5B is a second schematic diagram of a face recognition interface according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a password modification interface provided in an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a terminal provided in an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a terminal according to another embodiment of the present invention.
  • the image is directly processed by the image captured.
  • the captured image is blurred or invisible due to external factors, the image obtained by image processing the captured image is processed.
  • the quality is poor, and it is necessary to re-collect images through the camera device, which is a waste of system resources.
  • An embodiment of the present invention provides a terminal control method.
  • the terminal is configured with an imaging device.
  • the terminal detects that the camera device is in an operating state, the terminal collects an image through the camera device, and acquires the terminal.
  • the motion parameter when the motion parameter is greater than the preset parameter threshold, generates an image control instruction, and stops image processing on the collected image according to the image control instruction, thereby improving utilization of system resources.
  • the camera device can be placed inside the terminal.
  • the terminal when the terminal is a device such as a mobile phone or a tablet computer, the camera device can be located inside the protective case of the terminal. In other embodiments, the camera device can be placed outside the terminal.
  • the terminal when the terminal is a laptop or a server, the terminal can establish a communication connection with the camera device by way of wired or wireless.
  • the motion parameter may include one or more of an acceleration, an angular velocity, a motion amplitude, a motion frequency, and a motion time of the terminal.
  • the above terminal control method can be run in a terminal such as a personal computer, a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palmtop computer, a mobile Internet device (MID, Mobile Internet Devices), or a wearable smart device, and is not subject to the present invention. Limitations of applying the embodiments.
  • FIG. 1 is a schematic flowchart diagram of a terminal control method according to an embodiment of the present invention. As shown in FIG. 1, the terminal control method may at least include the following steps:
  • the terminal When the terminal detects that the camera device is in the running state, the image may be acquired by the camera device, and the motion parameters of the terminal are acquired.
  • the terminal can detect whether the camera device is turned on. When the camera device is turned on, the terminal can determine that the camera device is in an operating state, that is, the camera device is turned on to indicate that the camera device is in a motion state, and then the image is captured by the camera device, and the image is captured by the camera device. In the process, the terminal can acquire the motion parameters of the terminal.
  • the image captured by the camera may include a face image or a landscape image, which is not limited in the embodiment of the present invention.
  • the image capturing device of the terminal in the embodiment of the present invention is provided with an image sensor, and the terminal collects a face image through an image sensor, wherein the face image is activated on the display screen of the terminal after the camera application on the terminal is activated. Preview the image.
  • the image sensor in the embodiment of the present invention may be an image sensor including a CCD imaging element, a CMOS imaging element, or the like.
  • the camera device may be a front camera, a rear camera, a dual camera, and the like, which are disposed on the terminal, and are not limited in the embodiment of the present invention.
  • the terminal may receive a face recognition command, control the camera to be turned on according to the face recognition command to determine that the camera is in an operating state, and collect the face image through the camera when the camera is turned on.
  • the terminal may implement the corresponding function by using face recognition, that is, in the function application of the terminal, when the terminal performs an application, the terminal may perform identity verification by using a face recognition technology or a method.
  • face recognition that is, in the function application of the terminal
  • the terminal may perform identity verification by using a face recognition technology or a method.
  • the type and function type of the application are not limited in the embodiment of the present invention.
  • the terminal may be an application client related to face recognition, and the application client may perform identity verification through face recognition, and then perform operations such as modifying a password, logging in an application platform, or order payment, which is not limited in the embodiment of the present invention.
  • the security center interface may include at least one password modification manner, and the user may input a face recognition command to the terminal by clicking the “face recognition” button, and the terminal
  • the camera device is controlled to be turned on to determine that the camera device is in an operating state.
  • the face image is collected by the camera device, so that the face image can be recognized by the face image.
  • the face recognition technology can be identified by using a face key point location method.
  • the embodiment of the present invention does not limit the implementation manner of the face recognition technology.
  • the positioning method of the key point refers to the positioning method of the key point of the face
  • the positioning of the key point of the face refers to accurately finding the position of the key point of the face through an algorithm.
  • the key point of the face is the key points of the face with strong representation ability, such as eyes, nose, mouth and facial contours.
  • the key points in the embodiment of the present invention may have 49 key points, wherein the key point 2 is as shown in FIG. 2 .
  • the terminal supports the face recognition technology.
  • the target object to be recognized ie, the face image
  • the terminal may generate a target detection area for face recognition and display on the face image, so that the marked target detection area is displayed on the face image for positioning of the key point of the face. , that is, the location of the key point of the face.
  • the HOG feature value (also referred to as the HOG data feature) in the face feature value.
  • the HOG feature principle is used: the core idea of the HOG is that the detected local object shape can be lighted. The distribution of strong gradients or edge directions is described. By dividing the entire image into small connected regions (called cells), each cell generates a direction gradient histogram or the edge direction of the pixel in the cell. The combination of these histograms can represent the (detected target object) descriptor. . To improve the accuracy, the local histogram can be normalized by comparing the light intensity of a large area (called a block) in the image as a measure, and then normalize all the cells in the block with this value. The process completes better illumination/shadow invariance.
  • HOG-derived descriptors Compared to other descriptors, HOG-derived descriptors maintain geometric and optical transformation invariance (unless the orientation of the object changes). Therefore, the HOG descriptor is particularly suitable for the detection of human faces.
  • the HOG feature extraction method performs the following process on an image:
  • Grayscale see the image as a three-dimensional image of x, y, z (grayscale)
  • the terminal may acquire the acceleration of the terminal through the acceleration sensor and acquire the angular velocity of the terminal through the gyro sensor.
  • embodiments of the present invention include, but are not limited to, an acceleration sensor and The gyro sensor acquires the motion parameters of the terminal.
  • the terminal can obtain the acceleration of the terminal through the gravity sensor, and the terminal can obtain the motion amplitude of the terminal through the vibration sensor, etc., and the manner of acquiring the motion parameter of the terminal is not limited by the embodiment of the present invention. .
  • the acceleration sensor is a sensor capable of measuring the acceleration of the terminal due to gravity and converting the measured acceleration into an available output signal, and the acceleration refers to the force acting on the terminal during the acceleration process.
  • the terminal can obtain the acceleration angle of the terminal relative to the horizontal plane by the acceleration obtained by the acceleration sensor.
  • a rigid body that rotates at a high speed around a fulcrum is called a gyro
  • a gyro device that uses various functions made of the mechanical properties of the gyro is called a gyroscope.
  • the gyro sensor measures the angular velocity of the terminal on the X-axis, Y-axis, and Z-axis.
  • the terminal when it is detected that the camera is in an operational state, the terminal can trigger a sensor event on Sensor Changed, the code is as follows:
  • the terminal may determine whether the acquired motion parameter is greater than a preset parameter threshold. When the motion parameter is greater than the preset parameter threshold, the terminal may generate an image control instruction.
  • the motion parameter may include one or more of acceleration, angular velocity, motion amplitude, motion frequency, and motion time of the terminal
  • the preset parameter threshold may include a preset acceleration threshold, a preset angular velocity threshold, and a preset amplitude threshold.
  • the preset parameter threshold is a reference standard for determining the degree of motion of the terminal.
  • the terminal may determine whether the motion parameter is greater than a preset parameter threshold corresponding to the motion parameter, when the motion parameter When the threshold is greater than the preset parameter, the terminal may generate an image control instruction. For example, the terminal may acquire the angular velocity of the terminal during the process of acquiring the image by the camera, and when the acquired angular velocity is greater than the preset angular velocity threshold, the terminal may generate an image control instruction.
  • the terminal may determine whether each motion parameter is greater than a preset parameter threshold corresponding to the motion parameter, when The terminal may generate an image control instruction when any of the acquired motion parameters is greater than a preset parameter threshold corresponding to the motion parameter.
  • the motion parameter includes the acceleration and the angular velocity of the terminal, and the terminal may determine whether the acquired acceleration is greater than a preset acceleration threshold, and the terminal may further determine whether the acquired angular velocity is greater than a preset angular velocity threshold, and when the acquired acceleration is greater than a preset acceleration threshold.
  • the terminal may generate an image control instruction.
  • the terminal may determine whether each motion parameter is greater than a preset parameter threshold corresponding to the motion parameter, when When each obtained motion parameter is greater than a preset parameter threshold corresponding to the motion parameter, the terminal may generate an image control instruction. For example, the terminal acquires the acceleration of the terminal through the acceleration sensor, and after acquiring the angular velocity of the terminal through the gyro sensor, when the acceleration is greater than the preset acceleration threshold, and the angular velocity is greater than the preset acceleration threshold. The terminal can generate image control instructions.
  • the terminal can determine that the terminal is currently in strenuous motion state; when mIsMotion is false The terminal can determine that the terminal is currently in a stable state.
  • the terminal may send a parameter threshold acquisition request to the data management server, where the parameter threshold acquisition request may carry configuration information of the terminal, and the terminal may receive the information corresponding to the configuration information fed back by the data management server.
  • the configuration information may include a system version, a model, or a processor type of the terminal, which is not limited in the embodiment of the present invention.
  • the processing parameters of the terminal corresponding to different configuration information are different. Therefore, the motion parameters acquired by the terminal are different. Based on this, the terminal may send a parameter threshold acquisition request to the data management server, and the data management server may search for the terminal.
  • the preset parameter threshold corresponding to the configuration information, and the data management server may send the found preset parameter threshold to the terminal, so that the terminal can use the preset parameter threshold to determine the degree of motion of the terminal, thereby implementing the control of the terminal itself.
  • the embodiment of the invention can improve the accuracy of the preset parameter threshold.
  • the terminal control system may include data management 4 and at least one terminal 3.
  • the data management server 4 may include a preset parameter threshold configuration module 41, and the terminal 3 may include a preset.
  • the system structure, the model, or the processor type may be included.
  • the data structure diagram of the preset parameter threshold may be as shown in FIG.
  • the preset parameter threshold query module is configured to send a parameter threshold acquisition request to the data management server, where the parameter threshold is The obtaining request may carry the configuration information of the terminal, and receive a preset parameter threshold corresponding to the configuration information fed back by the data management server;
  • the determining module is configured to determine whether the obtained motion parameter of the terminal is greater than a preset parameter threshold; When the obtained motion parameter is greater than the preset parameter threshold, the terminal is prompted to stop moving.
  • the terminal may send a parameter threshold acquisition request to the data management server with a preset duration as a time period.
  • the preset duration may be a preset time period, for example, one day or one week, and the like, which is not limited in the embodiment of the present invention.
  • the R&D personnel may periodically update the preset parameter threshold, or after the terminal performs the system upgrade, the configuration information of the terminal will be updated, and different configuration information corresponds to different preset parameters.
  • the terminal may send a parameter threshold acquisition request to the data management server by using the preset duration as a time period, and then receive a preset parameter threshold corresponding to the configuration information of the terminal that is fed back by the data management server, and the embodiment of the present invention can ensure
  • the preset parameter threshold obtained by the terminal is the updated preset parameter threshold.
  • the preset parameter threshold is obtained by the data management server for each motion parameter. The embodiment of the present invention can improve the utilization of system resources.
  • the terminal may generate prompt information, where the prompt information is used to prompt the terminal to stop the motion.
  • the terminal may determine that the current motion of the terminal is severe, and the collected image is unclear or even invisible, and the terminal may generate prompt information, and then pass through a preset area of the display screen.
  • the prompt message is displayed or the prompt message is played through the microphone to prompt the terminal to stop moving.
  • the embodiment of the invention can guide the user to control the terminal to stop moving in real time in order to obtain a clear image.
  • the user authenticates by clicking the verification original password 55, and the terminal authorizes the user to modify the account password corresponding to the QQ account.
  • the terminal may display the face image collected by the terminal through the camera on the display screen, for example, prompting the user to collect the face image 53 by displaying the “showing a face” 54, and characterizing the terminal when the acquired motion parameter is greater than the preset parameter threshold.
  • the movement or movement is relatively large, so that the face image collected by the terminal through the camera device may appear unclear or blurred as shown in FIG. 5A, where the square lattice 53 is used to represent the face image blur, and the terminal also You can generate the prompt message “Do not shake, keep the phone still.” 52 prompt the user to collect a clear face image.
  • the terminal can also display the prompt information in the preset area.
  • the user can control the terminal to stop moving according to the prompt.
  • the camera device can collect the face image for the camera in real time, and the terminal can acquire the motion parameter in real time, when the motion parameter obtained last time is less than or equal to the preset parameter.
  • the face image 56 newly acquired by the terminal is clear, so that the terminal can perform face recognition on the face image collected last time, that is, the image data obtained by the face recognition and the database.
  • the image data corresponding to the QQ account stored in the comparison is compared, and when the similarity between the image data obtained by the face recognition and the image data corresponding to the QQ account stored in the database is greater than a preset ratio threshold, the person characterizing the terminal is collected.
  • the face image is complete, and the terminal can determine that the face recognition is successful, and then switch to the display screen to display the password modification interface shown in FIG. 6 to display the identity verification success 62.
  • the password corresponding to the account 63 can be modified by modifying the QQ password 61.
  • the user can complete the password modification by entering a new password in the password 64 and clicking OK 65.
  • the terminal may stop performing image processing on the collected image according to the image control instruction.
  • the terminal may reacquire the motion parameter of the terminal.
  • the terminal may It is determined that the current motion of the terminal tends to be flat or remains stationary, and the terminal can perform image processing on the image that was recently acquired.
  • the terminal may stop performing face recognition on the collected face image according to the image control instruction.
  • the terminal may reacquire the motion parameter of the terminal, when the last acquired motion parameter is less than or equal to the preset parameter threshold.
  • the terminal can determine that the current motion of the terminal tends to be flat or remain stationary, and the terminal can perform face recognition on the face image that has been collected last time.
  • the embodiment of the invention deletes the face image collected by the terminal in the case of severe shaking, and performs face recognition on the face image collected by the terminal in a stable state, thereby ensuring high quality of the face image for face recognition. The success rate of face recognition.
  • the terminal when detecting that the camera device is in the running state, the terminal collects an image through the camera device, and acquires a motion parameter of the terminal.
  • the motion parameter is greater than the preset parameter threshold, the terminal generates an image control command, because the terminal may be in the terminal.
  • the image of the preset parameter is collected in the state of motion, and the image with poor image quality is not processed by the image, which avoids occupying the system in image processing. Resources, which increase the utilization of system resources.
  • FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal may be used to implement some or all of the steps in the method embodiment shown in FIG.
  • the terminal in the embodiment may include at least a motion parameter acquisition section 601, a control instruction generation section 602, and a control section 603, where:
  • the motion parameter acquisition portion 601 is configured to acquire an image by the camera device and acquire a motion parameter of the terminal when detecting that the camera device is in an operating state.
  • the control instruction generating portion 602 is configured to generate an image control instruction when the motion parameter is greater than a preset parameter threshold.
  • the control portion 603 is configured to stop image processing on the collected image according to the image control instruction.
  • the terminal in the embodiment of the present invention further includes: a face command receiving portion 607;
  • the face command receiving portion 607 is configured to receive a face recognition command
  • the motion parameter acquisition portion 601 is configured to control the camera device to be turned on according to the face recognition command to determine that the camera device is in an operating state; and collect a face image through the camera device.
  • control part 603 is configured to stop face recognition on the collected face image according to the image control instruction.
  • the motion parameter acquisition portion 601 in the embodiment of the present invention is configured to acquire an acceleration of the terminal by using an acceleration sensor, and acquire an angular velocity of the terminal by using a gyro sensor.
  • control instruction generating portion 602 is configured to generate the image control instruction when the acceleration is greater than a preset acceleration threshold and the angular velocity is greater than a preset acceleration threshold.
  • the terminal in the embodiment of the present invention may further include: a request sending part 604 and a parameter threshold receiving part 605;
  • a request sending portion 604 configured to generate the image control by the control instruction generating portion 602 Before the command is sent, a parameter threshold acquisition request is sent to the data management server, where the parameter threshold acquisition request carries the configuration information of the terminal.
  • the parameter threshold receiving portion 605 is configured to receive a preset parameter threshold corresponding to the configuration information fed back by the data management server.
  • the request sending part 604 in the embodiment of the present invention is configured to send the parameter threshold obtaining request to the data management server by using a preset duration as a time period.
  • the terminal in the embodiment of the present invention may further include: a prompt information generating portion 606;
  • the prompt information generating portion 606 is configured to generate the prompt information when the motion parameter acquiring portion 601 acquires the motion parameter of the terminal, and when the motion parameter is greater than the preset parameter threshold, the prompt information is used to prompt the terminal Stop exercising.
  • the motion parameter acquiring part 601 detects that the camera device is in the running state
  • the image is acquired by the camera device, and the motion parameter of the terminal is acquired.
  • the control command generating portion 602 generates image control.
  • the instruction, the control part 603 stops image processing on the collected image according to the image control instruction, and the image with poor image quality is not processed by the image because the image of the preset parameter threshold is collected in the moving state, and the image is avoided.
  • the system resources are occupied during processing, thereby improving the utilization of system resources.
  • FIG. 8 is a schematic structural diagram of a terminal according to another embodiment of the present invention.
  • the terminal provided by the embodiment of the present invention may be used to implement the method implemented by the embodiment of the present invention shown in FIG.
  • FIG. 8 For convenience of description, only parts related to the embodiment of the present invention are shown, and the technical details are not disclosed. Please refer to the embodiment of the present invention shown in FIG.
  • the terminal includes components such as an inputter 11, at least one processor 12, an outputter 13, a storage medium 14, a power source 15, a communication unit 16, and the like. These components communicate over one or more buses.
  • the structure of the terminal shown in the figure does not constitute a limitation of the present invention. It may be a bus type structure or a star structure, and may include more or less than the illustration. Parts, or combinations of parts, or different parts.
  • the terminal may be any mobile or portable electronic device, including but not limited to mobile Telephones, mobile computers, tablets, personal digital assistants (PDAs), media players, smart TVs, and combinations of two or more of the above.
  • PDAs personal digital assistants
  • the inputter 11 is used to implement user interaction with the terminal and/or information input into the terminal.
  • the inputter 11 can receive numeric or character information input by the user to generate signal inputs related to user settings or function controls.
  • the input device 11 includes at least an acceleration sensor 111, a gyro sensor 112, and a camera 113.
  • the input device 11 may further include a touch panel 114 and/or other human-machine interface 115, such as physical buttons and earpieces. , vibration sensor, geomagnetic sensor or infrared sensor.
  • the touch panel 114 also referred to as a touch screen or touch screen, collects operational actions on which the user touches or approaches.
  • the user uses an action of any suitable object or accessory such as a finger or a stylus on or near the touch panel 114, and drives the corresponding connection device according to a preset program.
  • the touch panel 114 can include two portions of a touch detection device and a touch controller. Wherein the touch detection device detects a touch operation of the user, converts the detected touch operation into an electrical signal, and transmits the electrical signal to the touch controller; the touch controller receives the electrical signal from the touch detection device, and It is converted to contact coordinates and sent to the processor 12. The touch controller can also receive commands from the processor 12 and execute them.
  • the touch panel 114 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the physical input keys used by the input device 11 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, and the like. kind or more.
  • the input device 11 in the form of a microphone can collect the voice input by the user or the environment and convert it into a command executable by the processor 12 in the form of an electrical signal.
  • the processor 12 is the control center of the terminal, connecting various portions of the entire terminal using various interfaces and lines, by running or executing software programs and/or modules stored in the storage medium 14, and invoking data stored in the storage medium 14. To perform various functions of the terminal and/or process data.
  • the processor 12 may be composed of an integrated circuit (IC), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs that have the same function or different functions.
  • the processor 12 may include only a central processing unit (CPU), or may be a GPU, a digital signal processor (DSP), or And a combination of control chips (eg, baseband chips) in communication unit 16.
  • the CPU may be a single operation core, and may also include multiple operation cores.
  • the outputter 13 includes, but is not limited to, an image outputter 131 and a sound outputter 132.
  • the image outputter 131 is configured to output prompt information, and the prompt information may be text, pictures, and/or video.
  • the sound output device 132 may be a vibration sensor or a microphone or the like for outputting prompt information, and the prompt information may be vibration or ringtone.
  • the image output device 131 in the embodiment of the present invention includes at least a display screen 1311, such as a liquid crystal display (LCD), an organic light-emitting diode (OLED), and a field emission display (FED). )
  • the display is configured in a form such as .
  • the image outputter 131 may comprise a reflective display, such as an electrophoretic display, or a display utilizing an Interferometric Modulation of Light. Image outputter 131 can include a single display or multiple displays of different sizes.
  • the display panel 1311 used by the touch panel 112 and the outputter 13 used by the input device 11 may be collectively referred to as a display.
  • the touch panel 112 detects a touch or proximity gesture operation thereon, it is transmitted to the processor 12 to determine the type of touch event, and then the processor 12 provides a corresponding visual output on the display 1311 according to the type of the touch event.
  • the input device 11 and the output device 13 are implemented as two separate components to implement the input and output functions of the terminal in FIG.
  • the touch panel 112 may be integrated with the display 1311. Realize the input and output functions of the terminal.
  • the image outputter 131 can display various graphical user interfaces (GUIs) as virtual control components, including but not limited to windows, scroll axes, icons, and scrapbooks, for the user to touch through. operating.
  • GUIs graphical user interfaces
  • the image outputter 131 includes a filter and an amplifier for filtering and amplifying the video output by the processor 12.
  • the sound outputter 132 includes a digital to analog converter for converting the audio signal output by the processor 12 from a digital format to an analog format.
  • the storage medium 14 can be used to store software programs and modules, and the processor 12 executes various functional applications of the terminals and implements data processing by running software programs and modules stored in the storage medium 14.
  • the storage medium 14 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, such as a sound playing program, an image playing program, and the like; and the data storage area can be stored according to the terminal. Use of the created data (such as audio data, phone book, etc.).
  • the storage medium 14 may include volatile memory, such as non-volatile volatile random access memory (NVRAM), phase change random access memory (PRAM), magnetic Resistive random access memory (MRAM), etc., may also include non-volatile memory, such as at least one disk storage device, Electronically Erasable Programmable Read-Only Memory (EEPROM) Flash memory devices, such as NOR flash memory or NAND flash memory.
  • NVRAM non-volatile volatile random access memory
  • PRAM phase change random access memory
  • MRAM magnetic Resistive random access memory
  • EEPROM Electronically Erasable Programmable Read-Only Memory
  • the non-volatile memory stores the operating system and applications executed by the processor.
  • the storage medium 14 loads the running program and data from the non-volatile memory into the memory and stores the digital content in a plurality of storage devices.
  • the operating system includes controls and management of general system tasks such as memory management, storage device control, power management, etc., as well as various components and/or drivers that facilitate communication between various hardware and software.
  • the operating system may be an Android system of Google Inc., an iOS system developed by Apple Inc., or a Windows operating system developed by Microsoft Corporation, or an embedded operating system such as Vxworks.
  • Applications include any application installed on an electronic device, including but not limited to browsers, email, instant messaging services, word processing, keyboard virtualization, widgets, encryption, digital rights management, voice recognition, voice replication , positioning (such as those provided by GPS), music playback, and more.
  • Power source 15 is used to power different components of the terminal to maintain its operation.
  • the power source can be a built-in battery, such as a common lithium ion battery, a nickel-hydrogen battery, etc., and an external power source that directly supplies power to the electronic device, such as an AC adapter.
  • the power supply may also be more widely defined, for example, may also include a power management system, a charging system, a power failure detection circuit, a power converter or an inverter, and a power status indicator (such as a light source). Diode), and any other component associated with the generation, management, and distribution of electrical energy from the electronic device.
  • the communication unit 16 is configured to establish a communication channel, to enable the terminal to connect to the remote server through the communication channel, and to media data from the remote server.
  • the communication unit 16 may include a wireless local area network (WLAN) module, a Bluetooth module, a baseband module, and the like, and a radio frequency (RF) circuit corresponding to the communication module.
  • WLAN wireless local area network
  • RF radio frequency
  • WCDMA Wideband Code Division Multiple Access
  • HSDPA High Speed Downlink Access
  • the communication module is used to control communication of components in the electronic device, and can support Direct Memory Access.
  • various communication modules in the communication unit 16 generally appear in the form of an integrated circuit chip, and can be selectively combined without including all communication modules and corresponding antenna groups.
  • communication unit 16 may include only baseband chips, radio frequency chips, and corresponding antennas to provide communication functionality in a cellular communication system.
  • the terminal can be connected to a cellular network (Cellular Network) or the Internet (Internet) via a wireless communication connection established by the communication unit 16, such as wireless local area network access or WCDMA access.
  • communication modules, such as baseband modules, in communication unit 16 may be integrated into processor 12, typically an APQ+MDM series platform such as that provided by Qualcomm.
  • the radio frequency circuit is used for receiving and transmitting signals during information transmission and reception or during a call. For example, after the downlink information of the base station is received, it is processed by the processor 12; in addition, the data designed for the uplink is transmitted to the base station.
  • radio frequency circuits include well-known circuits for performing these functions, including but not limited to antenna systems, radio frequency transceivers, one or more amplifiers, tuners, one or more oscillators, digital signal processors, codec chipsets , user identity module card, memory, and so on.
  • the RF circuit can communicate with the network and other devices through wireless communication.
  • Wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division Multiple) Access, CDMA), Wideband Code Division Multiple Access (WCDMA), High Speed Uplink Packet Access (HSUPA), Long Term Evolution (LTE), Electronics Mail, Short Messaging Service (SMS), etc.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • Code Division Multiple Access Code Division Multiple Access
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • HSUPA High Speed Uplink Packet Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • executable instructions are stored in the storage medium 14, and the processor 12, the inputter 11 and the outputter 13 call the executable in the internal storage medium 14 Line instructions to do the following:
  • the camera 113 When the camera 113 is in the running state, the camera 113 captures an image.
  • the processor 12 acquires motion parameters of the terminal, and the motion parameters are stored in the storage medium 14.
  • the processor 12 generates an image control instruction when the motion parameter is greater than the preset parameter threshold.
  • the processor 12 stops image processing of the acquired image according to the image control instruction.
  • the camera 113 when the camera 113 is in the running state, the camera 113 collects an image, which may be:
  • the input device 11 receives a face recognition command, and the processor 12 controls the camera 113 to be turned on according to the face recognition command.
  • the camera 113 turns on to indicate that the camera 113 is at Operating status.
  • the camera 113 collects a face image.
  • the processor 12 stops image processing on the collected image according to the image control instruction, and may be:
  • the processor 12 stops performing face recognition on the collected face image according to the image control instruction.
  • the processor 12 acquires motion parameters of the terminal, which may be:
  • the acceleration of the terminal is acquired by the acceleration sensor 111, and the angular velocity of the terminal is acquired by the gyro sensor 112.
  • the processor 12 when the motion parameter is greater than the preset parameter threshold, the processor 12 generates an image control instruction, which may be:
  • the processor 12 generates an image control command when the acceleration is greater than the preset acceleration threshold and the angular velocity is greater than the preset acceleration threshold.
  • the outputter 13 sends a parameter threshold acquisition request to the data management server, and the parameter threshold acquisition request carries configuration information of the terminal.
  • the inputter 11 receives a preset parameter threshold corresponding to the configuration information fed back by the data management server.
  • the output unit 13 sends a parameter threshold acquisition request to the data management server, which may be:
  • the outputter 13 transmits a parameter threshold acquisition request to the data management server with a preset duration as a time period.
  • the processor 12 When the motion parameter is greater than the preset parameter threshold, the processor 12 generates a prompt message for prompting the terminal to stop the motion.
  • the terminal introduced in the embodiment of the present invention may be used to implement some or all of the processes in the method embodiment introduced by the present invention in conjunction with FIG.
  • Embodiments of the present invention provide a computer readable storage medium storing machine instructions that, when executed by one or more processors, perform the following steps:
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • the terminal since the terminal considers the screening of the collected image, the image captured by the image that does not meet the preset parameter threshold is stopped, so that the terminal can avoid occupying system resources in the image processing and re-collect the good quality. The image is processed again, which improves Utilization of system resources.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Software Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Biomedical Technology (AREA)
  • Computing Systems (AREA)
  • Psychiatry (AREA)
  • Social Psychology (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种终端控制方法及终端、存储介质,所述方法应用于配置有摄像装置的终端,所述方法包括:当检测到摄像装置处于运行状态时,通过摄像装置采集图像,获取终端的运动参数(S101);当运动参数大于预设参数阈值时,生成图像控制指令(S102);根据图像控制指令,停止对采集到的图像进行图像处理(S103)。采用上述方法,提高了系统资源的利用率。

Description

一种终端控制方法及终端、存储介质
相关申请的交叉引用
本申请基于申请号为201610861832.1、申请日为2016年09月28日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。
技术领域
本发明涉及电子技术领域,尤其涉及一种终端控制方法及终端、存储介质。
背景技术
图像是视觉信息的载体,有助于人们客观、准确地认识世界。为了让呈现在人们面前的图像能够传递想要表达的信息,需要对采集到的图像进行图像处理,例如图像编码、图像压缩、图像增强或者图像复原等。当由于外界原因导致采集到的图像模糊不清甚至不可见(例如,终端在快速移动导致采集的图像虚化)时,对采集到的图像进行图像处理后不仅图像质量较差,同时由于图像处理过程较繁琐,需要占用大量系统资源,因此,浪费了系统资源。
发明内容
本发明实施例所要解决的技术问题在于,提供一种终端控制方法及终端、存储介质,提高了系统资源的利用率。
为了解决上述技术问题,本发明实施例提供了一种终端控制方法,所述方法应用于配置有摄像装置的终端,所述方法包括:
当检测到所述摄像装置处于运行状态时,通过所述摄像装置采集图像, 获取所述终端的运动参数;
当所述运动参数大于预设参数阈值时,生成图像控制指令;
根据所述图像控制指令,停止对采集到的图像进行图像处理。
相应地,本发明实施例还提供了一种终端,所述终端配置有摄像装置,所述终端包括:
运动参数获取部分,配置为当检测到所述摄像装置处于运行状态时,通过所述摄像装置采集图像,获取所述终端的运动参数;
控制指令生成部分,配置为当所述运动参数大于预设参数阈值时,生成图像控制指令;
控制部分,配置为根据所述图像控制指令,停止对采集到的图像进行图像处理。
本发明实施例提供了一种计算机可读存储介质,存储有机器指令,当所述机器指令被一个或多个处理器执行的时候,所述处理器执行以下步骤:
当检测到所述摄像装置处于运行状态时,通过所述摄像装置采集图像,获取所述终端的运动参数;
当所述运动参数大于预设参数阈值时,生成图像控制指令;
根据所述图像控制指令,停止对采集到的图像进行图像处理。
本发明实施例还提供了一种终端,所述终端包括:存储介质、输出器、输入器和处理器;
存储介质,配置为可执行指令;
所述处理器、所述输入器以及所述输出器调用内部所述存储介质中存储的可执行指令,所述可执行指令配置为执行上述的的终端控制方法。
实施本发明实施例,在检测到摄像装置处于运行状态时,通过摄像装置采集图像,获取终端的运动参数,当运动参数大于预设参数阈值时,生成图像控制指令,根据图像控制指令停止对采集到的图像进行图像处理,由于终端可以将处于运动状态下采集到的超过预设参数阈值,图像质量较差的图像不作图像处理,避免了图像处理中占用系统资源,从而提高了系统资源的利用率。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图;
图1是本发明实施例中提供的一种终端控制方法的流程示意图;
图2是本发明实施例提供的人脸关键点的示意图;
图3是本发明实施例中提供的一种终端控制系统的架构示意图;
图4是本发明实施例中提供的一种配置预设参数阈值的数据结构图;
图5A是本发明实施例中提供的一种人脸识别界面示意图一;
图5B是本发明实施例中提供的一种人脸识别界面示意图二;
图6是本发明实施例中提供的一种密码修改界面示意图;
图7是本发明实施例中提供的一种终端的结构示意图;
图8是本发明另一实施例中提供的一种终端的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
传统的终端通过摄像装置采集到图像之后,直接对采集到的图像进行图像处理,当由于外界原因导致采集到的图像模糊不清或者不可见时,对采集到的图像进行图像处理后得到的图像质量较差,需要重新通过摄像装置采集图像,很浪费系统资源。
本发明实施例提供了一种终端控制方法,终端配置有摄像装置,终端在检测到摄像装置处于运行状态时,通过摄像装置采集图像,获取终端的 运动参数,当运动参数大于预设参数阈值时,生成图像控制指令,并根据图像控制指令,停止对采集到的图像进行图像处理,提高了系统资源的利用率。
其中,摄像装置可以置于终端内部,例如终端为手机或者平板电脑等设备时,摄像装置可以位于终端的保护壳内部。在其他实施例中,摄像装置可以置于终端外部,例如终端为笔记本电脑或者服务器时,终端可以和摄像装置之间通过有线或者无线等方式建立通信连接。
其中,运动参数可以包括终端的加速度、角速度、运动幅度、运动频率和运动时间等中的一种或者多种。
上述终端控制方法可以运行在个人电脑、智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑、移动互联网设备(MID,Mobile Internet Devices)或穿戴式智能设备等终端中,不受本申请实施例的限制。
请参见图1,图1是本发明实施例公开的一种终端控制方法的流程示意图。如图1所示,该终端控制方法至少可以包括以下步骤:
S101,当检测到摄像装置处于运行状态时,通过摄像装置采集图像,获取终端的运动参数。
终端检测到摄像装置处于运行状态时,可以通过摄像装置采集图像,并获取终端的运动参数。在实现中,终端可以检测摄像装置是否开启,当摄像装置开启时,终端可以确定摄像装置处于运行状态,即摄像装置开启表征摄像装置处于运动状态,进而通过摄像装置采集图像,在摄像装置采集图像的过程中,终端可以获取终端的运动参数。其中,摄像装置采集到的图像可以包括人脸图像或者风景图像等,本发明实施例不作限制。
这里,本发明实施例中的终端的摄像装置上设置有图像传感器,该终端通过图像传感器采集人脸图像,其中,人脸图像为终端上的相机应用启动后,人脸在终端的显示屏幕上预览到的图像。
在其他实施例中,本发明实施例中的图像传感器可以为图像传感器包括CCD成像元件和CMOS成像元件等。
在本发明实施例中,摄像装置可以是设置在终端上的前置摄像头、后置摄像头、双摄像头等,本发明实施例不作限制。
在其他实施例中,终端可以在接收人脸识别指令,根据该人脸识别指令控制摄像装置开启,以确定摄像装置处于运行状态,当所述摄像装置开启时,通过摄像装置采集人脸图像。
在本发明实施例中,终端可以采用人脸识别实现相应的功能,也就是说,在终端的功能应用中,终端在进行某个应用时,可以通过人脸识别技术或方式来进行身份验证,以便实现或进行某个功能,本发明实施例中不限制应用的类型和功能的类型。
在实现中,终端可以为与人脸识别相关的应用客户端,该应用客户端可以通过人脸识别进行身份验证,进而进行修改密码、登录应用平台或者订单支付等操作,本发明实施例不作限制。
示例性地,用户通过QQ账号以及账号密码等安全信息登录QQ应用之后,可以点击“QQ安全中心”按钮,终端可以响应用户的点击操作显示安全中心界面,在安全中心界面中用户可以通过人脸识别的方式对账户密码进行修改,例如终端显示安全中心界面之后,安全中心界面可以包括至少一个密码修改方式,用户可以通过点击“人脸识别”按钮的方式向终端输入人脸识别指令,则终端接收到人脸识别指令时控制摄像装置开启,以确定摄像装置处于运行状态,当终端的摄像装置开启时,进而通过摄像装置采集人脸图像,以便可以通过对人脸图像进行人脸识别后,完成用户的身份验证,开启密码修改功能,实现密码的修改。
在本发明实施例中,人脸识别的技术可以采用人脸关键点定位方法进行识别,本发明实施例不限制人脸识别技术的实现方式。
下面以关键点定位方法为例进行说明。本发明实施例中,关键点的定位方法指的是人脸关键点的定位方法,人脸关键点的定位是指通过算法精确找出人脸关键点的位置。其中,人脸关键点是脸部一些表征能力强的关键点,比如眼睛、鼻子、嘴巴和脸部轮廓等。
在其他实施例中,如图2所示的人脸图像的关键点位置的示意图,本发明实施例中的关键点可以有49个关键点,其中关键点2如图2所示。
这里,终端支持人脸识别技术,在进行人脸关键点的定位时,首先要采集到待识别的目标对象(即人脸图像),当终端检测检测出该目标对象为 人脸图像后,该终端可以在人脸图像上生成用于人脸识别定位的目标检测区域并进行标注,使得标注过后的目标检测区域显示在人脸图像上,以进行人脸关键点的定位,即人脸关键点的位置。
在本发明实施例中,对给定的人脸关键点位置,在这些人脸关键点位置上计算一些信息罗列成为一个向量,即为提取特征,然后将特征进行回归,即对向量的每一个数值进行组合,最后得到人脸关键点距离真解的偏移量,从而识别出人脸。其中,提取特征的方法有很多,包括:随机森林,sift等,用这些提取出的特征可以表达出人脸在当前关键点位置的特点。
下面将以人脸特征值为HOG特征值(也称为HOG数据特征)进行举例,在本发明实施例中,使用到的HOG特征原理:HOG的核心思想是所检测的局部物体外形能够被光强梯度或边缘方向的分布所描述。通过将整幅图像分割成小的连接区域(称为cells),每个cell生成一个方向梯度直方图或者cell中pixel的边缘方向,这些直方图的组合可表示出(所检测目标对象)描述子。为改善准确率,局部直方图可以通过计算图像中一个较大区域(称为block)的光强作为measure被对比标准化,然后用这个值(measure)归一化这个block中的所有cells.这个归一化过程完成了更好的照射/阴影不变性。
与其他描述子相比,HOG得到的描述子保持了几何和光学转化不变性(除非物体方向改变)。因此,HOG描述子尤其适合人脸的检测。
在本发明实施例中,HOG特征提取方法就是将一个image进行了下面的过程:
1、灰度化(将图像看做一个x,y,z(灰度)的三维图像);
2、划分成小cells(2*2);
3、计算每个cell中每个pixel的gradient(即orientation);
4、统计每个cell的梯度直方图(不同梯度的个数),即可形成每个cell的descriptor。
在其他实施例中,终端可以通过加速度传感器获取终端的加速度,并通过陀螺仪传感器获取终端的角速度。
需要说明的是,本发明实施例包含但不局限于通过加速度传感器以及 陀螺仪传感器获取终端的运动参数,例如终端可以通过重力传感器获取终端的加速度,又如终端可以通过震动传感器获取终端的运动幅度等等,终端的运动参数的获取方式不受本发明实施例的限制。
其中,加速度传感器是一种能测量终端由于重力引起的加速度,并将测量得到的加速度转换成可用输出信号的传感器,加速度指的是终端在加速过程中作用在终端上的力。终端可以通过加速度传感器获取到的加速度,得到终端相对于水平面的倾斜角度。
其中,绕一个支点高速转动的刚体称为陀螺,利用陀螺的力学性质所制成的各种功能的陀螺装置称为陀螺仪。陀螺仪传感器可以测量终端在X轴、Y轴以及Z轴上的角速度。
示例性地,当检测到摄像装置处于运行状态时,终端可以触发传感器事件on Sensor Changed,代码如下所示:
Figure PCTCN2017102999-appb-000001
当事件类型为加速度传感器事件时,代码如下所示:
Figure PCTCN2017102999-appb-000002
Figure PCTCN2017102999-appb-000003
当事件类型为陀螺仪传感器事件时,代码如下所示:
Figure PCTCN2017102999-appb-000004
Figure PCTCN2017102999-appb-000005
S102,当运动参数大于预设参数阈值时,生成图像控制指令。
终端可以判断获取到的运动参数是否大于预设参数阈值,当运动参数大于预设参数阈值时,终端可以生成图像控制指令。其中,运动参数可以包括终端的加速度、角速度、运动幅度、运动频率和运动时间等中的一种或者多种,而预设参数阈值可以包括预设加速度阈值、预设角速度阈值、预设幅度阈值、预设频率阈值或者预设时间阈值等中的一种或者多种。
这里,预设参数阈值为判定终端运动程度的参考标准。
在其他实施例中,当运动参数包括终端的加速度、角速度、运动幅度、运动频率和运动时间任意一种时,终端可以判断该运动参数是否大于上述运动参数对应的预设参数阈值,当运动参数大于预设参数阈值时,终端可以生成图像控制指令。例如,终端在摄像装置采集图像的过程中,可以获取终端的角速度,当获取到的角速度大于预设角速度阈值时,终端可以生成图像控制指令。
在其他实施例中,当运动参数包括终端的加速度、角速度、运动幅度、运动频率和运动时间中的至少两种时,终端可以判断各个运动参数是否大于该运动参数对应的预设参数阈值,当获取到的任一运动参数大于该运动参数对应的预设参数阈值时,终端可以生成图像控制指令。例如,运动参数包括终端的加速度和角速度,终端可以判断获取到的加速度是否大于预设加速度阈值,终端还可以判断获取到的角速度是否大于预设角速度阈值,当获取到的加速度大于预设加速度阈值,或者获取到的角速度大于预设角速度阈值时,终端可以生成图像控制指令。
在其他实施例中,当运动参数包括终端的加速度、角速度、运动幅度、运动频率和运动时间中的至少两种时,终端可以判断各个运动参数是否大于该运动参数对应的预设参数阈值,当获取到的各个运动参数均大于该运动参数对应的预设参数阈值时,终端可以生成图像控制指令。例如,终端通过加速度传感器获取终端的加速度,并通过陀螺仪传感器获取终端的角速度之后,当加速度大于预设加速度阈值,且角速度大于预设加速度阈值 时,终端可以生成图像控制指令。
示例性地,终端可以通过预设算法判断终端是否处于剧烈运动状态,预设算法可以通过motion(event,threshold)表示,其中event可以为终端事件(即获取到的运动参数),threshold可以为预设参数阈值,将event以及threshold作为预设算法的输入,得到的输出结果为mIsMotion=motion(event,threshold),其中当mIsMotion为true时,终端可以确定终端当前处于剧烈运动状态;当mIsMotion为false时,终端可以确定终端当前处于平稳状态。
在其他实施例中,终端生成图像控制指令之前,该终端可以向数据管理服务器发送参数阈值获取请求,其中参数阈值获取请求可以携带终端的配置信息,终端可以接收数据管理服务器反馈的与配置信息对应的预设参数阈值。其中,配置信息可以包括终端的系统版本、型号或者处理器类型等,本发明实施例不作限制。在实现中,由于不同配置信息对应的终端的处理能力有差异,因此,终端获取到的运动参数各不相同,基于此,终端可以向数据管理服务器发送参数阈值获取请求,数据管理服务器可以查找终端的配置信息对应的预设参数阈值,进而该数据管理服务器可以将查找到的预设参数阈值发送给终端,以使得该终端可以利用预设参数阈值进行自身运动程度的判定,实现终端自身的控制,本发明实施例可提高预设参数阈值的准确度。
以图3所示的终端控制系统的架构示意图为例,该终端控制系统可以包括数据管理4和至少一个终端3,数据管理服务器4可以包括预设参数阈值配置模块41,终端3可以包括预设参数阈值查询模块31、判断模块32以及提示模块33,其中,预设参数阈值配置模块用于对各个配置信息配置预设参数阈值,并存储各个配置信息及其对应的预设参数阈值,配置信息可以包括系统版本、机型或者处理器类型等,配置预设参数阈值的数据结构图可以如图4所示;预设参数阈值查询模块用于向数据管理服务器发送参数阈值获取请求,其中参数阈值获取请求可以携带终端的配置信息,并接收数据管理服务器反馈的配置信息对应的预设参数阈值;判断模块用于判断获取到的终端的运动参数是否大于预设参数阈值;提示模块用于当获 取到的运动参数大于预设参数阈值时,提示终端停止运动。
在其他实施例中,终端可以以预设时长为时间周期,向数据管理服务器发送参数阈值获取请求。其中预设时长可以为预先设定的时间段,例如一天或者一周等,本发明实施例不作限制。在实现中,为了提高预设参数阈值的准确度,研发人员可以定时对预设参数阈值进行更新,或者,终端进行系统升级之后,终端的配置信息将会更新,不同配置信息对应不同预设参数阈值,基于此,终端可以以预设时长为时间周期,向数据管理服务器发送参数阈值获取请求,进而接收数据管理服务器反馈的与终端的配置信息对应的预设参数阈值,本发明实施例可确保终端获取到的预设参数阈值是更新后的预设参数阈值,另外,相对每获取一次运动参数,则通过数据管理服务器获取预设参数阈值,本发明实施例可提高系统资源的利用率。
在其他实施例中,终端获取终端的运动参数之后,当运动参数大于预设参数阈值时,终端可以生成提示信息,其中,提示信息用于提示终端停止运动。在实现中,当运动参数大于预设参数阈值时,终端可以确定终端当前运动较剧烈,采集到的图像模糊不清甚至不可见,则终端可以生成提示信息,进而通过在显示屏幕的预设区域显示提示信息或者通过麦克风播放提示信息等方式提示终端停止运动。本发明实施例可实时引导用户控制终端停止运动,以便获取清晰的图像。
以人脸识别界面51示意图为例,用户通过人脸识别的方式通过点击验证原密码55来进行身份验证,进而终端授权给用户对QQ账号对应的账户密码进行修改。终端可以在显示屏幕显示终端通过摄像头采集到的人脸图像,例如通过“露个脸呗”54的显示提示用户采集人脸图像53,当获取到的运动参数大于预设参数阈值时,表征终端运动或者移动比较大,这样,该终端通过摄像装置采集到的人脸图像就会出现如图5A所示的不清晰或者模糊的样子,这里采用方格子53来表征人脸图像模糊,并且终端还可以生成提示信息“请勿晃动,保持手机静止吧”52提示用户采集清晰的人脸图像,终端还可以在预设区域显示该提示信息,用户可以根据提示控制终端停止运动。另外,摄像装置可以为摄像头实时采集人脸图像,终端可以实时获取运动参数,当最近一次获取到的运动参数小于或者等于预设参数 阈值时,如图5B所示终端最近一次采集到的人脸图像56是清晰的,这样该终端可以对最近一次采集到的人脸图像进行人脸识别,即将人脸识别得到的图像数据与数据库中存储的该QQ账号对应的图像数据进行比较,当人脸识别得到的图像数据与数据库中存储的该QQ账号对应的图像数据之间的相似度大于预设比例阈值时,表征终端采集的人脸图像是完整的,终端可以确定人脸识别成功,进而切换到显示屏幕中显示图6所示的密码修改界面显示身份验证成功62,可以通过修改QQ密码61进行账号63对应的密码的修改了,用户可以通过在请输入密码64中输入新的密码,点击确定65就可以完成密码的修改了。
S103,根据图像控制指令,停止对采集到的图像进行图像处理。
终端生成图像控制指令之后,该终端可以根据图像控制指令,停止对采集到的图像进行图像处理。在其他实施例中,终端根据图像控制指令停止对采集到的图像进行图像处理之后,终端可以重新获取终端的运动参数,当最近一次获取到的运动参数小于或者等于预设参数阈值时,终端可以确定终端当前运动趋于平缓或者保持静止,则终端可以对最近一次采集到的图像进行图像处理。
在其他实施例中,终端通过摄像装置采集人脸图像,且生成图像控制指令之后,终端可以根据图像控制指令,停止对采集到的人脸图像进行人脸识别。在其他实施例中,终端根据图像控制指令停止对采集到的人脸图像进行人脸识别之后,终端可以重新获取终端的运动参数,当最近一次获取到的运动参数小于或者等于预设参数阈值时,终端可以确定终端当前运动趋于平缓或者保持静止,这时终端可以对最近一次采集到的人脸图像进行人脸识别。本发明实施例删除终端在剧烈晃动情况下采集到的人脸图像,对终端在平稳状态下采集到的人脸图像进行人脸识别,可确保进行人脸识别的人脸图像质量较高,提高人脸识别的成功率。
本发明实施例中,终端在检测到摄像装置处于运行状态时,通过摄像装置采集图像,并获取终端的运动参数,当运动参数大于预设参数阈值时,生成图像控制指令,由于终端可以将处于运动状态下采集到的超过预设参数阈值,图像质量较差的图像不作图像处理,避免了图像处理中占用系统 资源,从而提高了系统资源的利用率。
请参见图7,图7是本发明实施例中提供的一种终端的结构示意图,所述终端可以用于实施结合图1所示的方法实施例中的部分或全部步骤,如图所示本实施例中的终端至少可以包括运动参数获取部分601、控制指令生成部分602以及控制部分603,其中:
运动参数获取部分601,配置为当检测到所述摄像装置处于运行状态时,通过所述摄像装置采集图像,获取所述终端的运动参数。
控制指令生成部分602,配置为当所述运动参数大于预设参数阈值时,生成图像控制指令。
控制部分603,配置为根据所述图像控制指令,停止对采集到的图像进行图像处理。
在其他实施例中,本发明实施例中的终端还包括:人脸指令接收部分607;
所述人脸指令接收部分607,配置为接收人脸识别指令;
所述运动参数获取部分601,配置为根据所述人脸识别指令,控制所述摄像装置开启,以确定所述摄像装置处于运行状态;通过所述摄像装置采集人脸图像。
进一步的,控制部分603,配置为根据所述图像控制指令,停止对采集到的人脸图像进行人脸识别。
在其他实施例中,本发明实施例中的运动参数获取部分601配置为通过加速度传感器获取所述终端的加速度,并通过陀螺仪传感器获取所述终端的角速度。
进一步的,所述控制指令生成部分602,配置为当所述加速度大于预设加速度阈值,且所述角速度大于预设加速度阈值时,生成所述图像控制指令。
在其他实施例中,本发明实施例中的终端还可以包括:请求发送部分604和参数阈值接收部分605;
请求发送部分604,配置为所述控制指令生成部分602生成所述图像控 制指令之前,向数据管理服务器发送参数阈值获取请求,所述参数阈值获取请求携带所述终端的配置信息。
参数阈值接收部分605,配置为接收所述数据管理服务器反馈的与所述配置信息对应的预设参数阈值。
在其他实施例中,本发明实施例中的请求发送部分604,配置为以预设时长为时间周期,向数据管理服务器发送所述参数阈值获取请求。
在其他实施例中,本发明实施例中的终端还可以包括:提示信息生成部分606;
提示信息生成部分606,配置为所述运动参数获取部分601获取所述终端的运动参数之后,当所述运动参数大于预设参数阈值时,生成提示信息,所述提示信息用于提示所述终端停止运动。
本发明实施例中,运动参数获取部分601检测到摄像装置处于运行状态时,通过摄像装置采集图像,获取终端的运动参数,当运动参数大于预设参数阈值时,控制指令生成部分602生成图像控制指令,控制部分603根据图像控制指令,停止对采集到的图像进行图像处理,,由于可以将处于运动状态下采集到的超过预设参数阈值,图像质量较差的图像不作图像处理,避免了图像处理中占用系统资源,从而提高了系统资源的利用率。
请参见图8,图8是本发明另一实施例中提供的一种终端的结构示意图,本发明实施例提供的终端可以用于实施上述图1所示的本发明实施例实现的方法,为了便于说明,仅示出了与本发明实施例相关的部分,技术细节未揭示的,请参照图1所示的本发明实施例。
如图8所示,该终端包括输入器11、至少一个处理器12、输出器13、存储介质14、电源15、通信单元16等组件。这些组件通过一条或多条总线进行通信。
本领域技术人员可以理解,图中示出的终端的结构并不构成对本发明的限定,它既可以是总线型结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施方式中,终端可以是任何移动或便携式电子设备,包括但不限于移动 电话、移动电脑、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、媒体播放器、智能电视,以及上述两项或两项以上的组合等。
输入器11用于实现用户与终端的交互和/或信息输入到终端中。例如,输入器11可以接收用户输入的数字或字符信息,以产生与用户设置或功能控制有关的信号输入。在本发明实施方式中,输入器11至少包括加速度传感器111、陀螺仪传感器112以及摄像器113;输入器11还可以包括触控面板114和/或其他人机交互界面115,例如物理按键、听筒、震动传感器、地磁传感器或者红外传感器等。
触控面板114,也称为触摸屏或触控屏,可收集用户在其上触摸或接近的操作动作。比如用户使用手指或触笔等任何适合的物体或附件在触控面板114上或接近触控面板114的位置的操作动作,并根据预先设定的程式驱动相应的连接装置。在其他实施例中,触控面板114可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸操作,并将检测到的触摸操作转换为电信号,以及将所述电信号传送给触摸控制器;触摸控制器从触摸检测装置上接收所述电信号,并将它转换成触点坐标,再送给处理器12。触摸控制器还可以接收处理器12发来的命令并执行。此外,可以采用电阻式、电容式、红外线(Infrared)以及表面声波等多种类型实现触控面板114。在本发明的其他实施方式中,输入器11所采用的实体输入键可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。麦克风形式的输入器11可以收集用户或环境输入的语音并将其转换成电信号形式的、处理器12可执行的命令。
处理器12为终端的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储介质14内的软件程序和/或模块,以及调用存储在存储介质14内的数据,以执行终端的各种功能和/或处理数据。处理器12可以由集成电路(Integrated Circuit,IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器12可以仅包括中央处理器(Central Processing Unit,CPU),也可以是GPU、数字信号处理器(Digital Signal Processor,DSP)、 及通信单元16中的控制芯片(例如基带芯片)的组合。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。
输出器13包括但不限于影像输出器131和声音输出器132。影像输出器131用于输出提示信息,提示信息可以为文字、图片和/或视频等。声音输出器132可以为振动传感器或者麦克风等,用于输出提示信息,提示信息可以为振动或者铃声等。本发明实施例中的影像输出器131至少包括显示屏1311,例如采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)、场发射显示器(field emission display,FED)等形式来配置的显示屏。或者影像输出器131可以包括反射式显示器,例如电泳式(electrophoretic)显示器,或利用光干涉调变技术(Interferometric Modulation of Light)的显示器。影像输出器131可以包括单个显示器或不同尺寸的多个显示器。在本发明的实施方式中,输入器11所采用的触控面板112和输出器13所采用的显示屏1311可以统称为显示器。当触控面板112检测到在其上的触摸或接近的手势操作后,传送给处理器12以确定触摸事件的类型,随后处理器12根据触摸事件的类型在显示屏1311上提供相应的视觉输出。虽然在图8中,输入器11与输出器13是作为两个独立的部件来实现终端的输入和输出功能,但是在某些实施例中,可以将触控面板112与显示屏1311集成一体而实现终端的输入和输出功能。例如,影像输出器131可以显示各种图形化用户接口(Graphical User Interface,GUI)以作为虚拟控制组件,包括但不限于窗口、卷动轴、图标及剪贴簿,以供用户通过触控方式进行操作。
在本发明实施方式中,影像输出器131包括滤波器及放大器,用来将处理器12所输出的视频滤波及放大。声音输出器132包括数字模拟转换器,用来将处理器12所输出的音频信号从数字格式转换为模拟格式。
存储介质14可用于存储软件程序以及模块,处理器12通过运行存储在存储介质14的软件程序以及模块,从而执行终端的各种功能应用以及实现数据处理。存储介质14主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序,比如声音播放程序、图像播放程序等等;数据存储区可存储根据终端的使用所创建的数据 (比如音频数据、电话本等)等。在本发明实施方式中,存储介质14可以包括易失性存储器,例如非挥发性动态随机存取内存(Nonvolatile Random Access Memory,NVRAM)、相变化随机存取内存(Phase Change RAM,PRAM)、磁阻式随机存取内存(Magnetoresistive RAM,MRAM)等,还可以包括非易失性存储器,例如至少一个磁盘存储器件、电子可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、闪存器件,例如反或闪存(NOR flash memory)或是反及闪存(NAND flash memory)。非易失存储器储存处理器所执行的操作系统及应用程序。存储介质14从所述非易失存储器加载运行程序与数据到内存并将数字内容储存于大量储存装置中。操作系统包括用于控制和管理常规系统任务,例如内存管理、存储设备控制、电源管理等,以及有助于各种软硬件之间通信的各种组件和/或驱动器。在本发明实施方式中,操作系统可以是Google公司的Android系统、Apple公司开发的iOS系统或Microsoft公司开发的Windows操作系统等,或者是Vxworks这类的嵌入式操作系统。
应用程序包括安装在电子设备上的任何应用,包括但不限于浏览器、电子邮件、即时消息服务、文字处理、键盘虚拟、窗口小部件(Widget)、加密、数字版权管理、语音识别、语音复制、定位(例如由全球定位系统提供的功能)、音乐播放等等。
电源15用于给终端的不同部件进行供电以维持其运行。作为一般性理解,电源可以是内置的电池,例如常见的锂离子电池、镍氢电池等,也包括直接向电子设备供电的外接电源,例如AC适配器等。在本发明的一些实施方式中,电源还可以作更为广泛的定义,例如还可以包括电源管理系统、充电系统、电源故障检测电路、电源转换器或逆变器、电源状态指示器(如发光二极管),以及与电子设备的电能生成、管理及分布相关联的其他任何组件。
通信单元16用于建立通信信道,使终端通过通信信道以连接至远程服务器,并从远程服务器下媒体数据。通信单元16可以包括无线局域网(Wireless Local Area Network,WLAN)模块、蓝牙模块、基带(Base Band)模块等通信模块,以及通信模块对应的射频(Radio Frequency,RF)电路, 用于进行无线局域网络通信、蓝牙通信、红外线通信及/或蜂窝式通信系统通信,例如宽带码分多重接入(Wideband Code Division Multiple Access,WCDMA)及/或高速下行封包存取(High Speed Downlink Packet Access,HSDPA)。通信模块用于控制电子设备中的各组件的通信,并且可以支持直接内存存取(Direct Memory Access)。
在本发明的不同实施方式中,通信单元16中的各种通信模块一般以集成电路芯片(Integrated Circuit Chip)的形式出现,并可进行选择性组合,而不必包括所有通信模块及对应的天线组。例如,通信单元16可以仅包括基带芯片、射频芯片以及相应的天线以在一个蜂窝通信系统中提供通信功能。经由通信单元16建立的无线通信连接,例如无线局域网接入或WCDMA接入,终端可以连接至蜂窝网(Cellular Network)或因特网(Internet)。在本发明的一些其他实施方式中,通信单元16中的通信模块,例如基带模块可以集成到处理器12中,典型的如高通(Qualcomm)公司提供的APQ+MDM系列平台。
射频电路用于信息收发或通话过程中接收和发送信号。例如,将基站的下行信息接收后,给处理器12处理;另外,将设计上行的数据发送给基站。通常,射频电路包括用于执行这些功能的公知电路,包括但不限于天线系统、射频收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、编解码芯片组、用户身份模块卡、存储器等等。此外,射频电路还可以通过无线通信与网络和其他设备通信。无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、高速上行行链路分组接入技术(High Speed Uplink Packet Access,HSUPA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。
在本发明实施例提供的一种终端中,存储介质14中存储可执行指令,且处理器12、输入器11以及输出器13调用内部存储介质14中存储的可执 行指令,用于执行以下操作:
当摄像器113处于运行状态时,摄像器113采集图像。
处理器12获取终端的运动参数,运动参数存储于存储介质14中。
当运动参数大于预设参数阈值时,处理器12生成图像控制指令。
处理器12根据图像控制指令,停止对采集到的图像进行图像处理。
在其他实施例中,当摄像器113处于运行状态时,摄像器113采集图像,可以为:
输入器11接收人脸识别指令,处理器12根据所述人脸识别指令,控制所述摄像器113开启,当所述摄像器113开启时,所述摄像器113开启表征所述摄像器113处于运行状态。
摄像装置113采集人脸图像。
进一步的,处理器12根据图像控制指令,停止对采集到的图像进行图像处理,可以为:
处理器12根据图像控制指令,停止对采集到的人脸图像进行人脸识别。
在其他实施例中,处理器12获取终端的运动参数,可以为:
通过加速度传感器111获取终端的加速度,通过陀螺仪传感器112获取终端的角速度。
进一步的,当运动参数大于预设参数阈值时,处理器12生成图像控制指令,可以为:
当加速度大于预设加速度阈值,且角速度大于预设加速度阈值时,处理器12生成图像控制指令。
在其他实施例中,当运动参数大于预设参数阈值时,处理器12生成图像控制指令之前,还可以执行以下操作:
输出器13向数据管理服务器发送参数阈值获取请求,参数阈值获取请求携带终端的配置信息。
输入器11接收数据管理服务器反馈的与配置信息对应的预设参数阈值。
在其他实施例中,输出单元13向数据管理服务器发送参数阈值获取请求,可以为:
输出器13以预设时长为时间周期,向数据管理服务器发送参数阈值获取请求。
在其他实施例中,处理器12获取所述终端的运动参数之后,还可以执行以下操作:
当运动参数大于预设参数阈值时,处理器12生成提示信息,提示信息用于提示终端停止运动。
本发明实施例中介绍的终端可以用以实施本发明结合图1介绍的方法实施例中的部分或全部流程。
本发明实施例提供了一种计算机可读存储介质,存储有机器指令,当所述机器指令被一个或多个处理器执行的时候,所述处理器执行以下步骤:
当检测到所述摄像装置处于运行状态时,通过所述摄像装置采集图像,获取所述终端的运动参数;当所述运动参数大于预设参数阈值时,生成图像控制指令;根据所述图像控制指令,停止对采集到的图像进行图像处理。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。
工业实用性
本实施例中,由于终端考虑到对采集到的图像进行筛选,对不符合预设参数阈值采集到的图像停止进行图像处理,使得终端可以避免图像处理中占用系统资源,重新去采集质量好的图像再进行图像处理,从而提高了 系统资源的利用率。

Claims (16)

  1. 一种终端控制方法,所述方法应用于配置有摄像装置的终端,所述方法包括:
    当检测到所述摄像装置处于运行状态时,通过所述摄像装置采集图像,获取所述终端的运动参数;
    当所述运动参数大于预设参数阈值时,生成图像控制指令;
    根据所述图像控制指令,停止对采集到的图像进行图像处理。
  2. 根据权利要求1所述方法,其中,所述检测到所述摄像装置处于运行状态时,通过所述摄像装置采集图像,包括:
    接收到人脸识别指令,根据所述人脸识别指令控制所述摄像装置开启,所述摄像装置开启表征所述摄像装置处于运行状态;
    当所述摄像装置开启时,通过所述摄像装置采集人脸图像。
  3. 根据权利要求2所述方法,其中,所述根据所述图像控制指令,停止对采集到的图像进行图像处理,包括:
    根据所述图像控制指令,停止对采集到的人脸图像进行人脸识别。
  4. 根据权利要求1所述方法,其中,所述获取所述终端的运动参数,包括:
    通过加速度传感器获取所述终端的加速度,通过陀螺仪传感器获取所述终端的角速度;
  5. 根据权利要求4所述方法,其中,当所述运动参数大于预设参数阈值时,生成图像控制指令,包括:
    当所述加速度大于预设加速度阈值,且所述角速度大于预设加速度阈值时,生成所述图像控制指令。
  6. 根据权利要求1所述方法,其中,所述当所述运动参数大于预设参数阈值时,生成图像控制指令之前,还包括:
    向数据管理服务器发送参数阈值获取请求,所述参数阈值获取请求携带所述终端的配置信息;
    接收所述数据管理服务器反馈的与所述配置信息对应的预设参数阈 值。
  7. 根据权利要求6所述方法,其中,所述向数据管理服务器发送参数阈值获取请求,包括:
    以预设时长为时间周期,向所述数据管理服务器发送所述参数阈值获取请求。
  8. 根据权利要求1所述方法,其中,所述获取所述终端的运动参数之后,还包括:
    当所述运动参数大于预设参数阈值时,生成提示信息,所述提示信息用于提示所述终端停止运动。
  9. 一种终端,所述终端配置有摄像装置,所述终端包括:
    运动参数获取部分,配置为当检测到所述摄像装置处于运行状态时,通过所述摄像装置采集图像,获取所述终端的运动参数;
    控制指令生成部分,配置为当所述运动参数大于预设参数阈值时,生成图像控制指令;
    控制部分,配置为根据所述图像控制指令,停止对采集到的图像进行图像处理。
  10. 根据权利要求9所述终端,其中,所述终端还包括:人脸指令接收部分;
    所述人脸指令接收部分,配置为接收到人脸识别指令;
    所述运动参数获取部分,配置为根据所述人脸识别指令,控制所述摄像装置开启,所述摄像装置开启表征所述摄像装置处于运行状态;当所述摄像装置开启时,通过所述摄像装置采集人脸图像;
    所述控制部分,配置为根据所述图像控制指令,停止对采集到的人脸图像进行人脸识别。
  11. 根据权利要求9所述终端,其中,所述运动参数获取部分,配置为通过加速度传感器获取所述终端的加速度,通过陀螺仪传感器获取所述终端的角速度;
    所述控制指令生成部分,配置为当所述加速度大于预设加速度阈值,且所述角速度大于预设加速度阈值时,生成所述图像控制指令。
  12. 根据权利要求7所述终端,其中,所述终端还包括:请求发送部分和参数阈值接收部分;
    所述请求发送部分,配置为所述控制指令生成部分生成所述图像控制指令之前,向数据管理服务器发送参数阈值获取请求,所述参数阈值获取请求携带所述终端的配置信息;
    所述参数阈值接收部分,配置为接收所述数据管理服务器反馈的与所述配置信息对应的预设参数阈值。
  13. 根据权利要求12所述终端,其中,所述请求发送部分,配置为以预设时长为时间周期,向所述数据管理服务器发送所述参数阈值获取请求。
  14. 根据权利要求9所述终端,其中,所述终端还包括:提示信息生成部分;
    所述提示信息生成部分,配置为所述运动参数获取部分获取所述终端的运动参数之后,当所述运动参数大于预设参数阈值时,生成提示信息,所述提示信息用于提示所述终端停止运动。
  15. 一种计算机可读存储介质,存储有机器指令,当所述机器指令被一个或多个处理器执行的时候,所述处理器执行以下步骤:
    当检测到所述摄像装置处于运行状态时,通过所述摄像装置采集图像,获取所述终端的运动参数;
    当所述运动参数大于预设参数阈值时,生成图像控制指令;
    根据所述图像控制指令,停止对采集到的图像进行图像处理。
  16. 一种终端,所述终端包括:存储介质、输出器、输入器和处理器;
    存储介质,配置为可执行指令;
    所述处理器、所述输入器以及所述输出器调用内部所述存储介质中存储的可执行指令,所述可执行指令配置为执行上述的权利要求1至8任一项所述的终端控制方法。
PCT/CN2017/102999 2016-09-28 2017-09-22 一种终端控制方法及终端、存储介质 WO2018059328A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/016,831 US10878070B2 (en) 2016-09-28 2018-06-25 Method of controlling a terminal based on motion of the terminal, terminal therefore, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610861832.1 2016-09-28
CN201610861832.1A CN107870666B (zh) 2016-09-28 2016-09-28 一种终端控制方法及终端

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/016,831 Continuation US10878070B2 (en) 2016-09-28 2018-06-25 Method of controlling a terminal based on motion of the terminal, terminal therefore, and storage medium

Publications (1)

Publication Number Publication Date
WO2018059328A1 true WO2018059328A1 (zh) 2018-04-05

Family

ID=61761396

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/102999 WO2018059328A1 (zh) 2016-09-28 2017-09-22 一种终端控制方法及终端、存储介质

Country Status (3)

Country Link
US (1) US10878070B2 (zh)
CN (1) CN107870666B (zh)
WO (1) WO2018059328A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10679039B2 (en) * 2018-04-03 2020-06-09 Google Llc Detecting actions to discourage recognition
EP3779825A4 (en) * 2018-05-03 2021-04-21 Huawei Technologies Co., Ltd. METHOD, DEVICE AND TERMINAL FOR PAYMENT BASED ON FACIAL RECOGNITION
CN108769401B (zh) * 2018-05-23 2020-12-08 Oppo广东移动通信有限公司 信号检测方法及相关产品
CN109725729B (zh) * 2019-01-02 2021-02-09 京东方科技集团股份有限公司 图像处理方法及图像控制装置、显示控制装置和显示装置
CN109829396B (zh) * 2019-01-16 2020-11-13 广州杰赛科技股份有限公司 人脸识别运动模糊处理方法、装置、设备及存储介质
CN113163140B (zh) * 2020-01-22 2023-05-09 海信视像科技股份有限公司 显示装置
CN112839177B (zh) * 2021-01-20 2023-07-04 北京小米移动软件有限公司 镜头控制方法、镜头控制装置及存储介质
CN114401105A (zh) * 2021-11-30 2022-04-26 北京基智科技有限公司 一种互联网个人隐私信息安全防护系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104780308A (zh) * 2014-01-09 2015-07-15 联想(北京)有限公司 一种信息处理方法及电子设备
CN105205429A (zh) * 2015-09-16 2015-12-30 北京慧眼智行科技有限公司 一种二维码的解码控制方法及装置
CN105391940A (zh) * 2015-11-05 2016-03-09 华为技术有限公司 一种图像推荐方法及装置
CN105700277A (zh) * 2014-11-26 2016-06-22 中兴通讯股份有限公司 一种投影亮度调整方法和装置
CN105827914A (zh) * 2016-04-20 2016-08-03 北京小米移动软件有限公司 镜头清理的提示方法及装置

Family Cites Families (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7362354B2 (en) * 2002-02-12 2008-04-22 Hewlett-Packard Development Company, L.P. Method and system for assessing the photo quality of a captured image in a digital still camera
US7639889B2 (en) * 2004-11-10 2009-12-29 Fotonation Ireland Ltd. Method of notifying users regarding motion artifacts based on image analysis
JP4172507B2 (ja) * 2006-07-13 2008-10-29 ソニー株式会社 撮像装置、および撮像装置制御方法、並びにコンピュータ・プログラム
TW200926783A (en) * 2007-12-14 2009-06-16 Altek Corp Method of using a gyro sensor to decide the quality of an image
CN102333176A (zh) * 2010-07-14 2012-01-25 鸿富锦精密工业(深圳)有限公司 拍照装置及其拍照方法
US8994499B2 (en) * 2011-03-16 2015-03-31 Apple Inc. Locking and unlocking a mobile device using facial recognition
US9202105B1 (en) * 2012-01-13 2015-12-01 Amazon Technologies, Inc. Image analysis for user authentication
US20130258122A1 (en) * 2012-03-27 2013-10-03 Research In Motion Limited Method and device for motion enhanced image capture
EP2645664A1 (en) * 2012-03-30 2013-10-02 Stopic, Bojan Authentication system and method for operating an authentication system
US8254647B1 (en) * 2012-04-16 2012-08-28 Google Inc. Facial image quality assessment
CN103581218B (zh) * 2012-07-20 2018-12-18 百度在线网络技术(北京)有限公司 一种用于更新移动终端中移动搜索应用的方法与设备
KR20140055819A (ko) * 2012-11-01 2014-05-09 삼성전자주식회사 얼굴인식장치 및 그 제어방법
US8904480B2 (en) * 2012-11-29 2014-12-02 International Business Machines Corporation Social authentication of users
CN104104856B (zh) * 2013-04-09 2016-08-10 腾讯科技(深圳)有限公司 图像采集方法、装置及电子设备
CA2902093C (en) * 2014-08-28 2023-03-07 Kevin Alan Tussy Facial recognition authentication system including path parameters
US10614204B2 (en) * 2014-08-28 2020-04-07 Facetec, Inc. Facial recognition authentication system including path parameters
KR102365393B1 (ko) * 2014-12-11 2022-02-21 엘지전자 주식회사 이동단말기 및 그 제어방법
CN105744142B (zh) * 2014-12-12 2019-07-26 联想(北京)有限公司 一种图像采集方法及电子设备
JP6436761B2 (ja) * 2014-12-24 2018-12-12 キヤノン株式会社 ズーム制御装置、撮像装置、ズーム制御装置の制御方法、及びズーム制御装置の制御プログラム
JP6578705B2 (ja) * 2015-03-31 2019-09-25 富士通株式会社 配信システム、配信方法、配信装置および配信プログラム
US9565192B2 (en) * 2015-06-23 2017-02-07 Symantec Corporation Router based securing of internet of things devices on local area networks
US10523690B2 (en) * 2015-06-30 2019-12-31 K4Connect Inc. Home automation system including device controller for terminating communication with abnormally operating addressable devices and related methods
US10769255B2 (en) * 2015-11-11 2020-09-08 Samsung Electronics Co., Ltd. Methods and apparatuses for adaptively updating enrollment database for user authentication
US11030453B2 (en) * 2015-12-16 2021-06-08 Assa Abloy Ab Optical authentication of objects based on latent structural characteristics
US9756249B1 (en) * 2016-04-27 2017-09-05 Gopro, Inc. Electronic image stabilization frequency estimator
US20180082416A1 (en) * 2016-09-16 2018-03-22 Qualcomm Incorporated Systems and methods for analyzing image quality
US10303866B1 (en) * 2018-06-03 2019-05-28 Apple Inc. Automatic retries for facial recognition

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104780308A (zh) * 2014-01-09 2015-07-15 联想(北京)有限公司 一种信息处理方法及电子设备
CN105700277A (zh) * 2014-11-26 2016-06-22 中兴通讯股份有限公司 一种投影亮度调整方法和装置
CN105205429A (zh) * 2015-09-16 2015-12-30 北京慧眼智行科技有限公司 一种二维码的解码控制方法及装置
CN105391940A (zh) * 2015-11-05 2016-03-09 华为技术有限公司 一种图像推荐方法及装置
CN105827914A (zh) * 2016-04-20 2016-08-03 北京小米移动软件有限公司 镜头清理的提示方法及装置

Also Published As

Publication number Publication date
US10878070B2 (en) 2020-12-29
US20180307819A1 (en) 2018-10-25
CN107870666A (zh) 2018-04-03
CN107870666B (zh) 2020-12-29

Similar Documents

Publication Publication Date Title
WO2018059328A1 (zh) 一种终端控制方法及终端、存储介质
AU2018421189B2 (en) Method for quickly opening application or application function, and terminal
WO2018103525A1 (zh) 人脸关键点跟踪方法和装置、存储介质
US10402625B2 (en) Intelligent electronic device and method of operating the same
CN106062763B (zh) 一种显示应用、图片的方法、装置及电子设备
WO2020048392A1 (zh) 应用程序的病毒检测方法、装置、计算机设备及存储介质
JP2016507815A (ja) 画像処理方法、画像処理装置、端末装置、プログラム、及び記録媒体
CN110059686B (zh) 字符识别方法、装置、设备及可读存储介质
US10038834B2 (en) Video call method and device
CN111177013A (zh) 日志数据获取方法、装置、计算机设备及存储介质
CN112581358B (zh) 图像处理模型的训练方法、图像处理方法及装置
CN105635553B (zh) 一种图像拍摄方法和装置
EP3293655A1 (en) Below the lock user interface with mixed authentication settings
CN112835495B (zh) 开启应用程序的方法、装置及终端设备
US10091436B2 (en) Electronic device for processing image and method for controlling the same
CN113204302B (zh) 基于虚拟机器人的操作方法、装置、设备及存储介质
CN110213205B (zh) 验证方法、装置及设备
US10270963B2 (en) Angle switching method and apparatus for image captured in electronic terminal
CN109451295A (zh) 一种获取虚拟信息的方法和系统
CN114090140A (zh) 基于指向操作的设备之间的交互方法及电子设备
CN112764824B (zh) 触发应用程序中身份验证的方法、装置、设备及存储介质
CN113076452A (zh) 应用分类的方法、装置、设备及计算机可读存储介质
CN112749583A (zh) 人脸图像分组方法、装置、计算机设备和存储介质
CN113449948B (zh) 业务处理的方法、装置、电子设备及介质
WO2017143539A1 (zh) 一种处理方法和电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17854778

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17854778

Country of ref document: EP

Kind code of ref document: A1