CN105894497A - Camera-based key detection method and system, and mobile terminal - Google Patents

Camera-based key detection method and system, and mobile terminal Download PDF

Info

Publication number
CN105894497A
CN105894497A CN201610175023.5A CN201610175023A CN105894497A CN 105894497 A CN105894497 A CN 105894497A CN 201610175023 A CN201610175023 A CN 201610175023A CN 105894497 A CN105894497 A CN 105894497A
Authority
CN
China
Prior art keywords
state
photographic head
area
become
black
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610175023.5A
Other languages
Chinese (zh)
Inventor
俞斌
杨维琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201610175023.5A priority Critical patent/CN105894497A/en
Publication of CN105894497A publication Critical patent/CN105894497A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence

Abstract

The invention discloses a camera-based key detection method and system, and a mobile terminal. The method comprises: image data sensed by a camera are obtained; when all pixels in a first area in one frame of image are black, a first state is determined; when all pixels in a second area in one frame of image are black, a second state is determined; when no pixel in the first area is black, a third state is determined; if changing from the third state to the first state and then from the first state to the second state is detected, a state of a key changes from releasing to pressing; if changing from the second state to the first state and then from the first state to the third state is detected, the state of the key changes from pressing to releasing. According to the invention, no additional device is needed based on the existing technology and a camera that is configured at all mobile terminals is used as a simulated key, thereby bringing convenience for a user. Moreover, the operation becomes convenient and rapid. The structure is simple; the operation can be realized conveniently and rapidly; and the realization cost of the key is reduced.

Description

A kind of key detecting method based on photographic head, system and mobile terminal
Technical field
The present invention relates to technical field of mobile terminals, a kind of key detecting method based on photographic head, system and mobile terminal.
Background technology
Although the most input of mobile terminal at present is realized by touch screen, but in the terminal, the most still some function is completed by physical button, such as volume key;And in the full epoch touched, physical button many times seems unnecessary, particularly some being pursued to the manufacturer of outward appearance, physical button often affects the appearance design of their product.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is, for the drawbacks described above of prior art, it is provided that a kind of key detecting method based on photographic head, system and mobile terminal.The present invention is on the basis of existing technology without additionally adding device, only the photographic head being all equipped with on current all mobile terminals need to be used to be used as analogue-key, use lively, image, thus provide the user conveniently, also for the thinking that the development offer without button mobile terminal is new, and faster and more convenient operation.
It is as follows that the present invention solves the technical scheme that technical problem used:
A kind of key detecting method based on photographic head, wherein, including:
A, startup photographic head, arrange the frame per second of photographic head output image;
The view data that B, acquisition photographic head are sensed;When all pixels of first area are black in a two field picture, it is designated as the first state;When all pixels of second area are black in a two field picture, it is designated as the second state;When all pixels of first area are not black in a two field picture, it is designated as the third state;
C, if be detected that become the first state from the third state, is become the second state from the first state the most again, then it is assumed that button is become pressing from release;
If be detected that become the first state from the second state, become the third state from the first state the most again, then it is assumed that button from press become release.
Described key detecting method based on photographic head, wherein, described first area overlaps with the geometric center of second area, and the pixel that described first area is comprised is less than the pixel that second area is comprised.
Described key detecting method based on photographic head, wherein, described first state is finger or other objects touch photographic head center, described second state is finger or other objects continue to press down on photographic head center on the basis of the first state, and the explanation of the described third state does not has finger or other objects to touch photographic head center.
Described key detecting method based on photographic head, wherein, described judges whether pixel is that black is: when pixel data format is rgb format, if the R of pixel is 0, G is 0, B be 0 pixel be black, otherwise pixel is not black.
Described key detecting method based on photographic head, wherein, change between the various states being previously mentioned in described step C is all continuous print, it is described if be detected that become the first state from the second state and be: the first two field picture testing result is the second state, second two field picture testing result is the second state, 3rd two field picture testing result is the second state, and the 4th two field picture testing result is the first state.
Described key detecting method based on photographic head, wherein, the frame per second arranging photographic head output image in described step A is that 30 frames are per second.
Described key detecting method based on photographic head, wherein, described first area, second area be shaped as rectangle or circle.
A kind of button detecting system based on photographic head, wherein, including:
Photographic head starts module, is used for starting photographic head, arranges the frame per second of photographic head output image;
Image Acquisition and condition judgment module, for obtaining the view data that photographic head is sensed;When all pixels of first area are black in a two field picture, it is designated as the first state;When all pixels of second area are black in a two field picture, it is designated as the second state;When all pixels of first area are not black in a two field picture, it is designated as the third state;
Button detection module, for if be detected that become the first state from the third state, is become the second state from the first state the most again, then it is assumed that button is become pressing from release;If be detected that become the first state from the second state, become the third state from the first state the most again, then it is assumed that button from press become release.
Described button detecting system based on photographic head, wherein,
Described first area overlaps with the geometric center of second area, and the pixel that described first area is comprised is less than the pixel that second area is comprised;
Described first state is finger or other objects touch photographic head center, described second state is finger or other objects continue to press down on photographic head center on the basis of the first state, and the explanation of the described third state does not has finger or other objects to touch photographic head center;
Described Image Acquisition and condition judgment module judge whether pixel is that black is: when pixel data format is rgb format, if the R of pixel is 0, G is 0, B be 0 pixel be black, otherwise pixel is not black;
Change between the various states that described button detection module is previously mentioned is all continuous print, it is described if be detected that become the first state from the second state and be: the first two field picture testing result is the second state, second two field picture testing result is the second state, 3rd two field picture testing result is the second state, and the 4th two field picture testing result is the first state.
A kind of mobile terminal, including terminal body, is arranged on the photographic head on described terminal body, and wherein, described mobile terminal uses key detecting method based on photographic head described in any of the above-described item to realize Home key.
Beneficial effect: key detecting method based on photographic head provided by the present invention, system and mobile terminal;Compared to prior art, the method for the invention is by obtaining the view data that photographic head is sensed;When all pixels of first area are black in a two field picture, it is designated as the first state;When all pixels of second area are black in a two field picture, it is designated as the second state;When all pixels of first area are not black in a two field picture, it is designated as the third state;If be detected that become the first state from the third state, become the second state from the first state the most again, then it is assumed that button is become pressing from release;If be detected that become the first state from the second state, become the third state from the first state the most again, then it is assumed that button from press become release.The present invention, on the basis of existing technology without additionally adding device, only need to use the photographic head being equipped with on current all mobile terminals to be used as analogue-key, thus provide the user conveniently, and faster and more convenient operation;Present configuration is simple, convenient to operation, and reduce button realize cost.
Accompanying drawing explanation
Fig. 1 is the flow chart of the preferred embodiment of present invention key detecting method based on photographic head.
Fig. 2 is that the region of a two field picture of the preferred embodiment of present invention key detecting method based on photographic head divides schematic diagram.
Fig. 3 is the functional schematic block diagram of the preferred embodiment of present invention button based on photographic head detecting system.
Detailed description of the invention
For making the purpose of the present invention, technical scheme and advantage clearer, clear and definite, the present invention is described in more detail for the embodiment that develops simultaneously referring to the drawings.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to the flow chart that Fig. 1, Fig. 1 are the preferred embodiments of present invention key detecting method based on photographic head.As it is shown in figure 1, the key detecting method based on photographic head described in the present embodiment, comprise the following steps:
S100, starts photographic head, arranges the frame per second of photographic head output image.
Wherein, described frame per second, need to arrange slightly higher, if the relatively low meeting of frame per second makes button of the present invention, detection reaction is relatively slow, it is preferred that arranging frame per second is 30fps;Here fps is the meaning that frame is per second.
S200, obtains the view data that photographic head is sensed;When all pixels of first area are black in a two field picture, it is designated as the first state;When all pixels of second area are black in a two field picture, it is designated as the second state;When all pixels of first area are not black in a two field picture, it is designated as the third state.
Wherein, described first area overlaps with the geometric center of second area, and the pixel that first area is comprised is less than the pixel that second area is comprised.Refer to Fig. 2, Fig. 2 show first area and the position view of second area in one embodiment of the invention one two field picture 10, preferably the geometric center of first area and second area also geometric center with a two field picture overlaps, Fig. 1 first area is rectangle GELN, second area is rectangular V QRM, Fig. 2 is only an embodiment, and first area, second area shape can also be other, such as circular;Illustrate during the first state that finger (or other objects) touches photographic head center, second state description finger (or other objects) continues to press down on photographic head center on the basis of the first state, and third state explanation does not has finger (or other objects) to touch photographic head center.
Wherein, described judge whether pixel is that black is: when pixel data format is rgb format, if the R of pixel is 0, G is 0, B be 0 pixel be black, otherwise pixel is not black.
S300, if be detected that become the first state from the third state, is become the second state from the first state the most again, then it is assumed that button is become pressing from release;If be detected that become the first state from the second state, become the third state from the first state the most again, then it is assumed that button from press become release.
Wherein, change between the various states being previously mentioned in step S300 is all continuous print, than as mentioned " if be detected that being become the first state from the second state ", can be the first two field picture testing result be the second state, second two field picture testing result is the second state, 3rd two field picture testing result is the second state, and the 4th two field picture testing result is the first state;But cannot be the first two field picture testing result be the second state, the second two field picture testing result is the third state, and the 3rd two field picture testing result is the first state.
Wherein, in step S300, detect and become the second state from the third state, the process that the second state simulation one-touch is pressed is become the most again from the first state, the most do not press, be touched to button (photographic head), entered, to button (photographic head), the process pressed.Detect and become the first state from the second state from detecting, become the third state from the first state the most again and simulate the process of one-touch release, button (photographic head) is pressed the most from the beginning, the area touched to button (photographic head) diminishes, the process being released to button (photographic head).
Based on said method embodiment, present invention also offers a kind of button detecting system based on photographic head, as it is shown on figure 3, described system includes:
Photographic head starts module 310, is used for starting photographic head, arranges the frame per second of photographic head output image;As detailed above.
Image Acquisition and condition judgment module 320, for obtaining the view data that photographic head is sensed;When all pixels of first area are black in a two field picture, it is designated as the first state;When all pixels of second area are black in a two field picture, it is designated as the second state;When all pixels of first area are not black in a two field picture, it is designated as the third state;As detailed above.
Button detection module 330, for if be detected that become the first state from the third state, is become the second state from the first state the most again, then it is assumed that button is become pressing from release;If be detected that become the first state from the second state, become the third state from the first state the most again, then it is assumed that button from press become release;As detailed above.
Further, described button detecting system based on photographic head, wherein,
Described first area overlaps with the geometric center of second area, and the pixel that described first area is comprised is less than the pixel that second area is comprised;As detailed above.
Described first state is finger or other objects touch photographic head center, described second state is finger or other objects continue to press down on photographic head center on the basis of the first state, and the explanation of the described third state does not has finger or other objects to touch photographic head center;As detailed above.
Described Image Acquisition and condition judgment module judge whether pixel is that black is: when pixel data format is rgb format, if the R of pixel is 0, G is 0, B be 0 pixel be black, otherwise pixel is not black;As detailed above.
Change between the various states that described button detection module is previously mentioned is all continuous print, it is described if be detected that become the first state from the second state and be: the first two field picture testing result is the second state, second two field picture testing result is the second state, 3rd two field picture testing result is the second state, and the 4th two field picture testing result is the first state;As detailed above.
Based on above-described embodiment, present invention also offers a kind of mobile terminal embodiment, the mobile terminal of the present embodiment includes terminal body, it is arranged on the photographic head on described terminal body, wherein, described mobile terminal uses key detecting method based on photographic head described in any of the above-described embodiment to realize Home key.
Therefore, the mobile terminal that the method for the embodiment of the present invention is realized, on the basis of existing technology without additionally adding device, only the photographic head being all equipped with on current all mobile terminals need to be used to be used as analogue-key, use lively, image, thus provide the user conveniently, also for the thinking that the development offer without button mobile terminal is new, and faster and more convenient operation.
In sum: key detecting method based on photographic head provided by the present invention, system and mobile terminal;Compared to prior art, the method for the invention is by obtaining the view data that photographic head is sensed;When all pixels of first area are black in a two field picture, it is designated as the first state;When all pixels of second area are black in a two field picture, it is designated as the second state;When all pixels of first area are not black in a two field picture, it is designated as the third state;If be detected that become the first state from the third state, become the second state from the first state the most again, then it is assumed that button is become pressing from release;If be detected that become the first state from the second state, become the third state from the first state the most again, then it is assumed that button from press become release.The present invention, on the basis of existing technology without additionally adding device, only need to use the photographic head being equipped with on current all mobile terminals to be used as analogue-key, thus provide the user conveniently, and faster and more convenient operation;Present configuration is simple, convenient to operation, and reduce button realize cost.
Certainly, one of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can be by computer program to instruct related hardware (such as processor, controller etc.) complete, described program can be stored in the storage medium of an embodied on computer readable, and this program can include upon execution such as the flow process of above-mentioned each method embodiment.Wherein said storage medium can be memorizer, magnetic disc, CD etc..
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, all these modifications and variations all should belong to the protection domain of claims of the present invention.

Claims (10)

1. a key detecting method based on photographic head, it is characterised in that including:
A, startup photographic head, arrange the frame per second of photographic head output image;
The view data that B, acquisition photographic head are sensed;When all pixels of first area are black in a two field picture, it is designated as the first state;When all pixels of second area are black in a two field picture, it is designated as the second state;When all pixels of first area are not black in a two field picture, it is designated as the third state;
C, if be detected that become the first state from the third state, is become the second state from the first state the most again, then it is assumed that button is become pressing from release;
If be detected that become the first state from the second state, become the third state from the first state the most again, then it is assumed that button from press become release.
Key detecting method based on photographic head the most according to claim 1, it is characterised in that described first area overlaps with the geometric center of second area, and the pixel that the pixel that comprised of described first area is comprised less than second area.
Key detecting method based on photographic head the most according to claim 1, it is characterized in that, described first state is finger or other objects touch photographic head center, described second state is finger or other objects continue to press down on photographic head center on the basis of the first state, and the explanation of the described third state does not has finger or other objects to touch photographic head center.
Key detecting method based on photographic head the most according to claim 1, it is characterised in that described judge whether pixel is that black is: when pixel data format is rgb format, if the R of pixel is 0, G is 0, B be 0 pixel be black, otherwise pixel is not black.
Key detecting method based on photographic head the most according to claim 1, it is characterized in that, change between the various states being previously mentioned in described step C is all continuous print, it is described if be detected that become the first state from the second state and be: the first two field picture testing result is the second state, second two field picture testing result is the second state, 3rd two field picture testing result is the second state, and the 4th two field picture testing result is the first state.
Key detecting method based on photographic head the most according to claim 1, it is characterised in that the frame per second arranging photographic head output image in described step A is that 30 frames are per second.
Key detecting method based on photographic head the most according to claim 1, it is characterised in that described first area, second area be shaped as rectangle or circle.
8. a button detecting system based on photographic head, it is characterised in that including:
Photographic head starts module, is used for starting photographic head, arranges the frame per second of photographic head output image;
Image Acquisition and condition judgment module, for obtaining the view data that photographic head is sensed;When all pixels of first area are black in a two field picture, it is designated as the first state;When all pixels of second area are black in a two field picture, it is designated as the second state;When all pixels of first area are not black in a two field picture, it is designated as the third state;
Button detection module, for if be detected that become the first state from the third state, is become the second state from the first state the most again, then it is assumed that button is become pressing from release;If be detected that become the first state from the second state, become the third state from the first state the most again, then it is assumed that button from press become release.
9. want the button detecting system based on photographic head described in 8 according to right, it is characterised in that
Described first area overlaps with the geometric center of second area, and the pixel that described first area is comprised is less than the pixel that second area is comprised;
Described first state is finger or other objects touch photographic head center, described second state is finger or other objects continue to press down on photographic head center on the basis of the first state, and the explanation of the described third state does not has finger or other objects to touch photographic head center;
Described Image Acquisition and condition judgment module judge whether pixel is that black is: when pixel data format is rgb format, if the R of pixel is 0, G is 0, B be 0 pixel be black, otherwise pixel is not black;
Change between the various states that described button detection module is previously mentioned is all continuous print, it is described if be detected that become the first state from the second state and be: the first two field picture testing result is the second state, second two field picture testing result is the second state, 3rd two field picture testing result is the second state, and the 4th two field picture testing result is the first state.
10. a mobile terminal, including terminal body, is arranged on the photographic head on described terminal body, it is characterised in that described mobile terminal uses key detecting method based on photographic head described in any one of claim 1-7 to realize Home key.
CN201610175023.5A 2016-03-25 2016-03-25 Camera-based key detection method and system, and mobile terminal Pending CN105894497A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610175023.5A CN105894497A (en) 2016-03-25 2016-03-25 Camera-based key detection method and system, and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610175023.5A CN105894497A (en) 2016-03-25 2016-03-25 Camera-based key detection method and system, and mobile terminal

Publications (1)

Publication Number Publication Date
CN105894497A true CN105894497A (en) 2016-08-24

Family

ID=57014179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610175023.5A Pending CN105894497A (en) 2016-03-25 2016-03-25 Camera-based key detection method and system, and mobile terminal

Country Status (1)

Country Link
CN (1) CN105894497A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110099210A (en) * 2019-04-22 2019-08-06 惠州Tcl移动通信有限公司 Function items setting method, device, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012041234A1 (en) * 2010-09-30 2012-04-05 中国移动通信集团公司 Camera-based information input method and terminal
CN103019596A (en) * 2012-12-07 2013-04-03 Tcl通讯(宁波)有限公司 Method for realizing operation of virtual key based on touch screen and mobile terminal
CN103616954A (en) * 2013-12-06 2014-03-05 Tcl通讯(宁波)有限公司 Virtual keyboard system, implementation method and mobile terminal
CN103634526A (en) * 2013-12-05 2014-03-12 Tcl通讯(宁波)有限公司 Mobile terminal and method for adjusting configuration thereof by aid of camera
CN104331191A (en) * 2013-07-22 2015-02-04 深圳富泰宏精密工业有限公司 System and method for realizing touch on basis of image recognition
WO2015190742A1 (en) * 2014-06-09 2015-12-17 (주) 펀매직 Method and device for implementing virtual button through camera, and computer-readable recording medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012041234A1 (en) * 2010-09-30 2012-04-05 中国移动通信集团公司 Camera-based information input method and terminal
CN103019596A (en) * 2012-12-07 2013-04-03 Tcl通讯(宁波)有限公司 Method for realizing operation of virtual key based on touch screen and mobile terminal
CN104331191A (en) * 2013-07-22 2015-02-04 深圳富泰宏精密工业有限公司 System and method for realizing touch on basis of image recognition
CN103634526A (en) * 2013-12-05 2014-03-12 Tcl通讯(宁波)有限公司 Mobile terminal and method for adjusting configuration thereof by aid of camera
CN103616954A (en) * 2013-12-06 2014-03-05 Tcl通讯(宁波)有限公司 Virtual keyboard system, implementation method and mobile terminal
WO2015190742A1 (en) * 2014-06-09 2015-12-17 (주) 펀매직 Method and device for implementing virtual button through camera, and computer-readable recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110099210A (en) * 2019-04-22 2019-08-06 惠州Tcl移动通信有限公司 Function items setting method, device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
KR102469722B1 (en) Display apparatus and control methods thereof
US20220217303A1 (en) Display apparatus and control methods thereof
KR101881925B1 (en) Method and apparatus for implementing multi-vision system using multiple portable terminals
US9164779B2 (en) Apparatus and method for providing for remote user interaction
US10222903B2 (en) Display control apparatus and control method thereof
CN103176744B (en) A kind of display equipment and its information processing method
US20110141025A1 (en) Method for operating mobile device and touch-controlled mobile device
EP3680764A1 (en) Icon moving method and device
CN110427151A (en) A kind of method and electronic equipment controlling user interface
CN106484228B (en) Double screen switches display methods and mobile terminal
WO2014135025A1 (en) Method and system for dynamic screenshot applied to mobile terminal
US9377901B2 (en) Display method, a display control method and electric device
CN105808140A (en) Control device and method of mobile terminal
CN109918165A (en) Interface display method, device and storage medium
CN106020698A (en) Mobile terminal and realization method of single-hand mode
JP2021512436A (en) Global special effect switching method, device, terminal device and storage medium
CN106358063A (en) Touch television, control method and control device of touch television
CN104423829B (en) A kind of information processing method and electronic equipment
WO2017114255A1 (en) Touch method and device for projected image
CN104077050A (en) Terminal operating method
CN105335061A (en) Information display method and apparatus and terminal
CN104850340A (en) Method and device for displaying file on touch display screen
CN105894497A (en) Camera-based key detection method and system, and mobile terminal
CN106020694B (en) Electronic equipment, and method and device for dynamically adjusting selected area
US10613622B2 (en) Method and device for controlling virtual reality helmets

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160824