CN107241548B - Cursor control method, cursor control device, terminal and storage medium - Google Patents

Cursor control method, cursor control device, terminal and storage medium Download PDF

Info

Publication number
CN107241548B
CN107241548B CN201710438243.7A CN201710438243A CN107241548B CN 107241548 B CN107241548 B CN 107241548B CN 201710438243 A CN201710438243 A CN 201710438243A CN 107241548 B CN107241548 B CN 107241548B
Authority
CN
China
Prior art keywords
cursor
focusing device
camera
terminal
projected
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
CN201710438243.7A
Other languages
Chinese (zh)
Other versions
CN107241548A (en
Inventor
郑战海
张彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201710438243.7A priority Critical patent/CN107241548B/en
Publication of CN107241548A publication Critical patent/CN107241548A/en
Application granted granted Critical
Publication of CN107241548B publication Critical patent/CN107241548B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/146Aligning or centring of the image pick-up or image-field
    • G06V30/1475Inclination or skew detection or correction of characters or of image to be recognised
    • G06V30/1478Inclination or skew detection or correction of characters or of image to be recognised of characters or characters lines
    • 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
    • G06V40/166Detection; Localisation; Normalisation using acquisition arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices

Abstract

The embodiment of the invention discloses a cursor control method, a cursor control device, a terminal and a storage medium, wherein the method comprises the following steps: when a photographing search mode of the terminal is triggered, controlling the camera and the cursor focusing device to be opened respectively; detecting whether the image shot by the camera has the biological characteristics of the human body; if so, adjusting the cursor focusing device to adjust the cursor projected by the cursor focusing device. The embodiment of the invention can prevent the harm of the highlight of the cursor to the human body when the terminal takes a picture for searching, does not influence the shooting searching function of the terminal and has convenient operation.

Description

Cursor control method, cursor control device, terminal and storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a cursor control method, an apparatus, a terminal, and a storage medium.
Background
With the development of terminal technology, the functions of the terminal are more and more, wherein the photographing search function of the terminal provides convenience for the user to learn. The photographing search function of the terminal includes: and (3) photographing to search paraphrases of words or phrases and answers corresponding to search questions, or scanning bar codes of books to search teaching tutors, teaching videos and the like matched with the teaching materials. When the terminal performs a photo search, the terminal generally performs a targeted selection by using a cursor, and searches for a word or a sentence selected by the cursor to obtain a search result.
When a user uses the terminal to conduct photographing search, the cursor can be projected onto a human body due to some operation reasons, and at the moment, the cursor is easy to damage the human body due to the fact that the brightness of the cursor is large, especially human eyes.
Disclosure of Invention
The embodiment of the invention provides a cursor control method, a cursor control device, a terminal and a storage medium, which can prevent strong light of a cursor from generating harm to a human body when in use.
In a first aspect, an embodiment of the present invention provides a cursor control method, including:
when a photographing search mode of the terminal is triggered, controlling the camera and the cursor focusing device to be opened respectively;
detecting whether the image shot by the camera has the biological characteristics of the human body;
if so, adjusting the cursor focusing device to adjust the cursor projected by the cursor focusing device.
In a second aspect, an embodiment of the present invention further provides a cursor control device, including:
the control module is used for controlling the camera and the cursor focusing device to be opened respectively when a photographing search mode of the terminal is triggered;
the detection module is used for detecting whether the image shot by the camera has the biological characteristics of the human body;
and the adjusting module is used for adjusting the cursor focusing device to adjust the cursor projected by the cursor focusing device if the cursor is projected by the cursor focusing device.
In a third aspect, an embodiment of the present invention further provides a terminal, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the cursor control method provided by the embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the cursor control method provided in the embodiment of the present invention.
According to the technical scheme provided by the embodiment of the invention, when the photographing search mode of the terminal is touched, the cursor focusing device is adjusted to adjust the cursor projected by the cursor focusing device by detecting the biological characteristics of the human body in the image shot by the camera, so that when the terminal is used for photographing and searching, the strong light of the cursor can be prevented from generating harm to the human body, the photographing search function of the terminal is not influenced, and the operation is convenient.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
FIG. 1 is a flow chart of a cursor control method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another cursor control method provided by an embodiment of the invention;
FIG. 3 is a flow chart of another cursor control method provided by an embodiment of the invention;
FIG. 4 is a flow chart of another cursor control method provided by an embodiment of the invention;
FIG. 5 is a block diagram of a cursor control device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings.
Fig. 1 is a flowchart of a cursor control method executed by a cursor control device according to an embodiment of the present invention. The apparatus is performed by software and/or hardware. The device is configured in electronic equipment with a photographing and searching function, such as a mobile phone, a tablet personal computer and the like. The method is applied to scenes of terminal photographing and searching. As shown in fig. 1, the technical solution provided by this embodiment includes:
s110: and when a photographing search mode of the terminal is triggered, controlling the camera and the cursor focusing device to be opened respectively.
In the present embodiment, the terminal has a photographing search mode and a photographing mode. When the terminal is in a photographing search mode, the terminal has a photographing search function; when the terminal is in the photographing mode, the terminal has a photographing function.
When the terminal is in the photographing search mode, the cursor selection object can be searched. When the terminal is in the photographing mode, only photographing is possible, and the contents in the acquired image are not searched. When a photographing search mode of the terminal is triggered, the camera and the cursor focusing device are controlled to be opened, so that the camera acquires an image and the cursor focusing device projects a cursor. The cursor focusing device is arranged at a position close to the camera, and when the cursor focusing device is opened, laser is emitted and projected onto a search object. The search object may be a chinese character or word in writing, etc. The cursor is used for determining the position of a search object, namely, in a shooting search mode of the terminal, searching is carried out based on the cursor selected object, specifically, a database is inquired based on the selected object, and corresponding data are obtained and displayed to a user. The shape or size of the cursor is not limited.
In this embodiment, when the photographing search mode of the terminal is triggered, the order of controlling the cameras and the cursor focusing devices to be opened respectively is not limited, for example, the cameras and the cursor focusing devices may be controlled to be opened simultaneously, or the cameras and the cursor focusing devices may also be controlled to be opened not simultaneously.
S120: and detecting whether the image shot by the camera has the biological characteristics of the human body.
In this embodiment, an algorithm program for identifying biological characteristics of a human body is prestored in the terminal, and data in the acquired image may be analyzed through the prestored algorithm program, so as to determine whether the biological characteristics of the human body exist in the image captured by the camera.
Or the terminal can also pre-store the data of the biological characteristics of the human body, and compare the data in the image shot by the camera with the pre-stored data of the biological characteristics of the human body, so as to determine whether the biological characteristics of the human body exist in the image shot by the camera.
In this embodiment, the biological features of the human body include a human face, four limbs, hair, skin, and the like, and may also be other features of the human body.
The method for detecting whether the biometric features of the human body exist in the image captured by the camera is not limited to the above method, and other methods may be used.
S130: if so, adjusting the cursor focusing device to adjust the cursor projected by the cursor focusing device.
In this embodiment, if the image captured by the camera has the biological feature of the human body, the cursor focusing device is adjusted to adjust the cursor projected by the cursor focusing device.
When the biological characteristics of the human body in the images of the cameras are different, the adjustment of the cursor focusing device is also different. For example, if a human face exists in the image of the camera, the cursor focusing device can be controlled to be closed so that the cursor projected by the cursor focusing device disappears, and the harm of the strong light of the cursor to the eyes of the human is avoided.
When the cursor focusing device is adjusted, the brightness of the cursor can be adjusted, and excessive time consumption caused by restarting the cursor focusing device is avoided.
According to the technical scheme provided by the embodiment of the invention, when the photographing search mode of the terminal is touched, the cursor focusing device is adjusted to adjust the cursor projected by the cursor focusing device by detecting the biological characteristics of the human body in the image shot by the camera, so that when the terminal is used for photographing and searching, the strong light of the cursor can be prevented from generating harm to the human body, the photographing search function of the terminal is not influenced, and the operation is convenient.
Fig. 2 is a flowchart of a cursor control method according to an embodiment of the present invention, and based on the above embodiment, the steps of "detecting whether there is a biological feature of a human body in an image captured by the camera" and if yes, adjusting the cursor focusing device to adjust a cursor projected by the cursor focusing device "are optimized.
As shown in fig. 2, the technical solution provided by this embodiment includes:
s210: and when a photographing search mode of the terminal is triggered, controlling the camera and the cursor focusing device to be opened respectively.
S220: and detecting whether a human face exists in the image shot by the camera.
In this embodiment, the face in the image captured by the camera does not include a face in the form of a picture. When detecting a face, the face may be divided, and when a partial image including the face is detected, it is determined that the face exists in an image captured by the camera. Or detecting the feature data of the human face in the image to determine whether the human face exists in the shot image.
For example, when it is detected that the left eye or the right eye of a person is included in an image captured by the camera, it is determined that a human face exists in the image captured by the camera.
S230: and if so, controlling the cursor focusing device to close so as to make the cursor projected by the cursor focusing device disappear.
In this embodiment, because the bright light of the cursor is easily harmful to the eyes of a person, in order to protect the eyes of the person, when it is detected that a face exists in the photographed image, the cursor focusing device is controlled to be closed so that the cursor projected by the cursor focusing device disappears, so that the bright light of the cursor can be prevented from harming the eyes of the person, and the person can be protected.
Therefore, when the photographing mode of the terminal is triggered, the human face exists in the image photographed by the camera through detection, the cursor focusing device is closed to enable the cursor to disappear, strong light of the cursor can be prevented from damaging eyes of people, the human body is protected, and the photographing and searching functions of the terminal are guaranteed.
On the basis of the foregoing embodiment, the cursor control method provided in this embodiment further includes:
when the face in the image shot by the camera is detected to disappear, controlling the cursor focusing device to be opened again so as to enable a cursor projected by the cursor focusing device to select a search object; and identifying the search object, and searching based on the search object to obtain a search result.
When the face disappears in the image shot by the camera, the cursor focusing device is controlled to be opened again, so that the cursor projected by the cursor focusing device selects a search object, and the terminal searches based on the search object, therefore, the terminal can protect the eyes of a person, meanwhile, the function of continuing searching can be realized, and the operability of the terminal is improved.
The terminal search method may be as follows: when the face of a person is detected in the image shot by the camera, the cursor focusing device is controlled to be closed, if other search objects exist in the image shot by the camera, the search can be carried out based on the search objects in the image, and the search can be carried out without the search objects selected by the cursor. And when the cursor focusing device is opened again, searching is carried out through the search object selected by the cursor. Therefore, even if a face exists in the shot image, the terminal can search based on the search objects except the face in the image, and the search function of the terminal is realized.
Fig. 3 is a flowchart of a cursor control method according to an embodiment of the present invention, and based on the above embodiment, optimization is performed on the steps of "detecting whether there is a biological feature of a human body in an image captured by the camera" and if yes, adjusting the cursor focusing device to adjust the cursor projected by the cursor focusing device ".
As shown in fig. 3, the technical solution provided by the embodiment of the present invention includes:
s310: and when a photographing search mode of the terminal is triggered, controlling the camera and the cursor focusing device to be opened respectively.
S320: when the fact that the human face does not exist in the image shot by the camera is detected, whether biological features except the human face exist in the image shot by the camera is detected.
In the present embodiment, the biometric features other than the human face may be a finger, a torso, and the like of a human body. The method for detecting whether the biological features except the human face exist in the image shot by the camera can be the same as the method for detecting the human face, and only the compared data are different; or a detection mode different from the face detection method can also be adopted.
S330: if so, adjusting the cursor focusing device to adjust the brightness of the cursor projected by the cursor focusing device.
In this embodiment, when the image captured by the camera does not have a human face, if the image captured by the camera has biological features other than the human face, the cursor focusing device is adjusted to adjust the brightness of the cursor projected by the cursor focusing device.
Because the cursor has high brightness and is laser, when the cursor is projected on other parts except the human face, especially on the skin of a human body or an injured part of the human body, the cursor is easy to affect the human body. In addition to the human eye, other parts of the human body are less sensitive to the laser-formed cursor than the eye, and the terminal system takes a longer time in the process from the cursor focusing device being closed to being reopened. Therefore, when the image shot by the camera does not have the human face and the image shot by the camera has the biological features except the human face, the cursor focusing device is adjusted to reduce the brightness of the cursor projected by the cursor focusing device.
Therefore, the method can prevent the strong light of the cursor from damaging the human body, and can quickly select the search object when the biological characteristics of the human body do not exist in the shot image, thereby searching based on the search object and improving the search efficiency.
On the basis of the above embodiment, the cursor control method provided in the embodiment of the present invention further includes: and when the biological characteristics except the human face in the image shot by the camera are detected to disappear, restoring the brightness of the cursor to the brightness before adjustment.
When the biological characteristics except the human face in the image shot by the camera are detected to disappear, the brightness of the cursor is restored to the brightness before adjustment, so that the brightness of the cursor can adapt to the external environment, and the contrast between the cursor and the external environment is increased.
Fig. 4 is a flowchart of a cursor control method according to an embodiment of the present invention, and as shown in fig. 4, a technical solution according to an embodiment of the present invention includes:
s410: and triggering a photographing search function of the terminal, and opening the camera and the cursor focusing device.
S420: and acquiring images in real time through the camera.
S430: and carrying out face detection on the image acquired by the camera.
S440: and if the human face is detected, closing the laser focusing device.
S450: and if the face in the image acquired by the camera disappears, the laser focusing device is turned on again.
S460: starting an OCR character recognition function;
s470: and identifying the object selected by the cursor, and searching based on the identified object.
Therefore, by the method provided by the embodiment, when the terminal takes a picture for searching, the eyes of people can be protected, meanwhile, the function of continuing searching can be realized, and the operability of the terminal is improved.
Fig. 5 is a block diagram of a cursor control device according to an embodiment of the present invention, where the cursor control device is used to execute a cursor control method. As shown in fig. 5, the cursor control device includes: a control module 510, a detection module 520, and an adjustment module 530.
The control module 510 is configured to control the camera and the cursor focusing device to be turned on respectively when a photographing search mode of the terminal is triggered;
a detection module 520, configured to detect whether a biological feature of a human body exists in an image captured by the camera;
the adjusting module 530 is configured to adjust the cursor focusing device to adjust the cursor projected by the cursor focusing device if yes.
Further, the detecting module 520 is configured to detect whether a human face exists in an image captured by the camera;
the adjusting module 530 is configured to control the cursor focusing device to close if yes, so that the cursor projected by the cursor focusing device disappears.
Further, the apparatus further comprises:
the searching module 540 is configured to, when it is detected that a face in an image captured by the camera disappears, control the cursor focusing device to be turned on again, so that a cursor projected by the cursor focusing device selects a search object;
and identifying the search object, and searching based on the search object to obtain a search result.
Further, the detecting module 520 is configured to detect whether a biological feature other than a human face exists in the image captured by the camera when it is detected that the human face does not exist in the image captured by the camera;
and the adjusting module is used for adjusting the cursor focusing device to adjust the brightness of the cursor projected by the cursor focusing device if the cursor is projected by the cursor focusing device.
Further, the apparatus further comprises:
and a brightness recovery module 550, configured to recover the brightness of the cursor to the brightness before adjustment when it is detected that the biological features other than the human face in the image captured by the camera disappear.
According to the cursor control device provided by the embodiment, when a photographing search mode of the terminal is touched, the cursor focusing device is adjusted to adjust the cursor projected by the cursor focusing device by detecting that the biological characteristics of the human body exist in the image photographed by the camera, so that when the terminal photographs for searching, the harm of strong light of the cursor to the human body can be prevented, the photographing search function of the terminal is not influenced, and the operation is convenient.
Fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention. Fig. 6 illustrates a block diagram of an exemplary terminal 612 suitable for use in implementing embodiments of the present invention. The terminal 612 shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments of the present invention.
As shown in fig. 6, terminal 612 is embodied in a general purpose computing device. The components of terminal 612 may include, but are not limited to: one or more processors or processing units 616, a system memory 628, and a bus 618 that couples various system components including the system memory 628 and the processing unit 616.
Bus 618 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Terminal 612 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by terminal 612 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 628 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)630 and/or cache memory 632. Terminal 612 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 634 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard disk drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be connected to bus 618 by one or more data media interfaces. Memory 628 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 640 having a set (at least one) of program modules 642 may be stored, for example, in memory 628, such program modules 642 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 642 generally perform the functions and/or methods of the described embodiments of the present invention.
The terminal 612 may also communicate with one or more external devices 614 (e.g., keyboard, pointing device, display 624, etc.), one or more devices that enable a user to interact with the terminal 612, and/or any devices (e.g., network card, modem, etc.) that enable the terminal 612 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 622. Also, the terminal 612 can communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the network adapter 620. As shown, the network adapter 620 communicates with the other modules of the terminal 612 via a bus 618. It should be appreciated that although not shown in FIG. 6, other hardware and/or software modules may be used in conjunction with the terminal 612, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 616 executes various functional applications and data processing, such as implementing a cursor control method provided by an embodiment of the present invention, by executing programs stored in the system memory 628.
That is, the processing unit implements, when executing the program: when a photographing search mode of the terminal is triggered, controlling the camera and the cursor focusing device to be opened respectively; detecting whether the image shot by the camera has the biological characteristics of the human body; if so, adjusting the cursor focusing device to adjust the cursor projected by the cursor focusing device.
The embodiment of the invention also provides a storage medium containing the computer executable instruction. On which a computer program is stored which, when executed by a processor, implements the cursor control method provided by embodiments of the present invention.
Storage media containing computer-executable instructions provided by embodiments of the present invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. A cursor control method, comprising:
when a photographing search mode of the terminal is triggered, controlling the camera and the cursor focusing device to be opened respectively;
detecting whether the image shot by the camera has the biological characteristics of the human body;
if so, adjusting the cursor focusing device to adjust the cursor projected by the cursor focusing device, including:
detecting whether a human face exists in an image shot by the camera;
if so, controlling the cursor focusing device to close so as to make the cursor projected by the cursor focusing device disappear;
the detecting whether the image shot by the camera has the biological characteristics of the human body, if so, adjusting the cursor focusing device to adjust the cursor projected by the cursor focusing device, and the method further comprises the following steps:
when the fact that a human face does not exist in the image shot by the camera is detected, whether biological features except the human face exist in the image shot by the camera is detected;
if so, adjusting the cursor focusing device to adjust the brightness of the cursor projected by the cursor focusing device;
when the face in the image shot by the camera is detected to disappear, controlling the cursor focusing device to be opened again so as to enable a cursor projected by the cursor focusing device to select a search object;
identifying the search object and searching based on the search object to obtain a search result;
and when the biological characteristics except the human face in the image shot by the camera are detected to disappear, restoring the brightness of the cursor to the brightness before adjustment.
2. A cursor control device, comprising:
the control module is used for controlling the camera and the cursor focusing device to be opened respectively when a photographing search mode of the terminal is triggered;
the detection module is used for detecting whether the image shot by the camera has the biological characteristics of the human body;
and the adjusting module is used for adjusting the cursor focusing device to adjust the cursor projected by the cursor focusing device if the cursor is projected by the cursor focusing device.
3. The apparatus of claim 2,
the detection module is used for detecting whether a human face exists in the image shot by the camera;
and the adjusting module is used for controlling the cursor focusing device to close if the cursor focusing device projects the cursor, so that the cursor projected by the cursor focusing device disappears.
4. The apparatus of claim 3, further comprising:
the searching module is used for controlling the cursor focusing device to be opened again when the face of the person in the image shot by the camera disappears, so that a cursor projected by the cursor focusing device selects a searched object;
and identifying the search object, and searching based on the search object to obtain a search result.
5. The apparatus of claim 2,
the detection module is used for detecting whether biological features except the human face exist in the image shot by the camera or not when the human face does not exist in the image shot by the camera;
and the adjusting module is used for adjusting the cursor focusing device to adjust the brightness of the cursor projected by the cursor focusing device if the cursor is projected by the cursor focusing device.
6. The apparatus of claim 5, further comprising:
and the brightness recovery module is used for recovering the brightness of the cursor to the brightness before adjustment when the fact that the biological characteristics except the human face in the image shot by the camera disappear is detected.
7. A terminal, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a cursor control method as claimed in any one of claims 1.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a cursor control method as claimed in claim 1.
CN201710438243.7A 2017-06-06 2017-06-06 Cursor control method, cursor control device, terminal and storage medium Active CN107241548B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710438243.7A CN107241548B (en) 2017-06-06 2017-06-06 Cursor control method, cursor control device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710438243.7A CN107241548B (en) 2017-06-06 2017-06-06 Cursor control method, cursor control device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107241548A CN107241548A (en) 2017-10-10
CN107241548B true CN107241548B (en) 2020-02-07

Family

ID=59987455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710438243.7A Active CN107241548B (en) 2017-06-06 2017-06-06 Cursor control method, cursor control device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107241548B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3567851A4 (en) 2018-03-12 2020-07-29 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Projector and test method and device therefor, image acquisition device, electronic device, readable storage medium
CN108490629B (en) * 2018-03-12 2020-03-27 Oppo广东移动通信有限公司 Structured light projector, detection method and device thereof, image acquisition device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601917A (en) * 2015-01-26 2015-05-06 苏州佳世达光电有限公司 Eye protection projection method and device
CN105657269A (en) * 2016-01-13 2016-06-08 小天才科技有限公司 Photographing method and device for intelligent terminal
CN105930486A (en) * 2016-04-29 2016-09-07 广东小天才科技有限公司 Quick search method and apparatus for big data
CN105955626A (en) * 2016-04-29 2016-09-21 广东小天才科技有限公司 Photographing search method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060015826A1 (en) * 2004-07-13 2006-01-19 Sony Corporation Hard disk multimedia player and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601917A (en) * 2015-01-26 2015-05-06 苏州佳世达光电有限公司 Eye protection projection method and device
CN105657269A (en) * 2016-01-13 2016-06-08 小天才科技有限公司 Photographing method and device for intelligent terminal
CN105930486A (en) * 2016-04-29 2016-09-07 广东小天才科技有限公司 Quick search method and apparatus for big data
CN105955626A (en) * 2016-04-29 2016-09-21 广东小天才科技有限公司 Photographing search method and device

Also Published As

Publication number Publication date
CN107241548A (en) 2017-10-10

Similar Documents

Publication Publication Date Title
US11734336B2 (en) Method and apparatus for image processing and associated user interaction
US11410001B2 (en) Method and apparatus for object authentication using images, electronic device, and storage medium
US11120078B2 (en) Method and device for video processing, electronic device, and storage medium
US20200226410A1 (en) Method and apparatus for positioning description statement in image, electronic device, and storage medium
CN105518712B (en) Keyword notification method and device based on character recognition
US20200279120A1 (en) Method, apparatus and system for liveness detection, electronic device, and storage medium
EP2336949B1 (en) Apparatus and method for registering plurality of facial images for face recognition
US9251428B2 (en) Entering information through an OCR-enabled viewfinder
US11544927B2 (en) Video type detection method and apparatus based on key frame, and storage medium
JP2006107048A (en) Controller and control method associated with line-of-sight
CN111242273B (en) Neural network model training method and electronic equipment
CN107241548B (en) Cursor control method, cursor control device, terminal and storage medium
CN109471919B (en) Zero pronoun resolution method and device
US20110014944A1 (en) Text processing method for a digital camera
CN116912478A (en) Object detection model construction, image classification method and electronic equipment
US11600111B2 (en) System and method for face recognition
TW201709022A (en) Non-contact control system and method
KR20140134844A (en) Method and device for photographing based on objects
US11501504B2 (en) Method and apparatus for augmented reality
CN117097982B (en) Target detection method and system
CN111090738A (en) Double-screen-based photographing question searching method and electronic equipment
CN112702530B (en) Algorithm control method and electronic equipment
US11574467B2 (en) Document augmented auto complete
CN116089572A (en) Content display method, device, mobile terminal and computer readable storage medium
CN111858855A (en) Information query method, device, system, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant