CN105334765A - Power circuit control method and device - Google Patents

Power circuit control method and device Download PDF

Info

Publication number
CN105334765A
CN105334765A CN201410383980.8A CN201410383980A CN105334765A CN 105334765 A CN105334765 A CN 105334765A CN 201410383980 A CN201410383980 A CN 201410383980A CN 105334765 A CN105334765 A CN 105334765A
Authority
CN
China
Prior art keywords
image
power circuit
target image
switch
circuit control
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
CN201410383980.8A
Other languages
Chinese (zh)
Inventor
王永强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201410383980.8A priority Critical patent/CN105334765A/en
Publication of CN105334765A publication Critical patent/CN105334765A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

The invention provides a power circuit control method and device. The method comprises that an object image is collected; the object image is coupled with a preset switching image to generate switching information; and a power circuit is switched on or off according to the switching information. Thus, the power circuit can be controlled needless of touching a switch by fingers, and the problem that a contact type control switch is unsafe is solved.

Description

Power supply circuit control method and device
Technical field
The embodiment of the present invention relates to image technique, particularly relates to a kind of power supply circuit control method and device.
Background technology
Switch is things very common in people's daily life, and its control mode comprises contact, namely carries out power circuit control with finger contact switch.
But under some scenes, corresponding problem can be brought when adopting contact gauge tap to control power circuit, under such as, switch on bathroom hot water device is in moist environment for a long time, if this type of switch of finger touch is easy to the danger causing electric leakage, very likely bring personal injury to user.
In prior art, there is unsafe problem in contact gauge tap.
Summary of the invention
The embodiment of the present invention provides a kind of power supply circuit control method and device, to overcome the unsafe problem of contact gauge tap.
An aspect of the embodiment of the present invention is to provide a kind of power supply circuit control method, comprising:
Gather target image;
Described target image is carried out mating with the switch image preset and generates switching information;
Open or powered-down circuit according to described switching information.
Another aspect of the embodiment of the present invention is to provide a kind of power circuit control device, comprising:
Image capture module, for gathering target image;
Picture recognition module, generates switching information for being carried out mating with the switch image preset by described target image;
On-off circuit module, for opening or powered-down circuit according to described switching information.
The power supply circuit control method that the embodiment of the present invention provides and device, by gathering the target image of user, target image is mated with switch image, and control power circuit according to the switching information that matching process generates, do not need finger touch switch just controllable power circuit, solve the unsafe problem of contact gauge tap.
Accompanying drawing explanation
The power supply circuit control method process flow diagram that Fig. 1 provides for the embodiment of the present invention;
The image matching method process flow diagram that Fig. 2 provides for another embodiment of the present invention;
The structural drawing of the power circuit control device that Fig. 3 provides for the embodiment of the present invention.
Embodiment
The power supply circuit control method process flow diagram that Fig. 1 provides for the embodiment of the present invention.There is unsafe problem for contact gauge tap in the embodiment of the present invention, provide a kind of method controlling power circuit by non-contacting mode, concrete grammar step is as follows:
Step S101, collection target image;
The embodiment of the present invention provides a kind of power circuit control device, when user needs to control power circuit, some actions or posture can be done facing to this power circuit control device, this power circuit control device gathers target image from action or posture, the gesture, head oscillation pattern etc. of such as people.
Step S102, target image is carried out mating generate switching information with the switch image preset;
The target image collected mates with switch image by power circuit control device, switch image is the image preset in power circuit control device, this switch image specifically can comprise the pass image opening image and control power circuit pass controlling power circuit and open, and generate switching information according to matching result, the control information of namely opening or closing.
Step S103, foundation switching information are opened or powered-down circuit.
Power circuit control device is connected with power circuit, and carries out power circuit control according to the control information of opening or closing that switching information specifically represents, namely opens or powered-down circuit.
The embodiment of the present invention is by gathering the target image of user, target image is mated with switch image, and control power circuit according to the switching information that matching result generates, do not need finger touch switch just controllable power circuit, solve the unsafe problem of contact gauge tap.
On the basis of above-described embodiment, also comprise before step S101: receive and store user input switch image.
Switch image specifically can comprise the pass image opening image and control power circuit pass controlling power circuit and open.User is before this power circuit control device of use controls power circuit, switch image is first set, be specifically as follows user take an images of gestures by power circuit control device and this images of gestures is set to control power circuit open open image, take another Zhang Butong images of gestures and this images of gestures is set to control power circuit close pass image.
Receive and store user input switch image comprise:
Receive and confirm the switch image that user inputs;
Switch image is stored in register.
User have taken an images of gestures by power circuit control device, preset the image being set to and controlling power circuit and open, whether power circuit control device prompting user confirms, also follow-up prompts user can confirm limited number of times, prevent user from confirming by mistake, to make arranging of user authentic and valid, as power circuit control device follow-up prompts user arranges confirmation preset times to this, be specially 3 times, then after user confirms for 3 times, this images of gestures is set to control that power circuit leaves opens image, and is stored in register by this images of gestures; In like manner, the pass image of power circuit pass is controlled through same treatment.
In addition, the switch image in the embodiment of the present invention can also reset according to user's request.
The embodiment of the present invention is by pre-setting and storage switch image, the collection target image of user is mated with the switch image of storage, confirmed the switch image of user's input by limited number of time, prevent user from confirming, to make arranging of user authentic and valid by mistake.
The image matching method process flow diagram that Fig. 2 provides for another embodiment of the present invention.On the basis of above-described embodiment, the switch image in step S102 comprises the pass image opening image and control power circuit pass controlling power circuit and open, and is carried out mating comprising by target image with the switch image preset:
Judge target image and open image or close the similarity of image;
If similarity is greater than predetermined threshold value, then judges target image and open image or close images match success.
If target image does not mate with switch image, then Resurvey target image.
Alternatively, target image, to open image identical with closing the size of image.
As shown in Figure 2, by the target image collected i.e. this input picture with set open image or close image and mate, concrete steps are as follows:
Step S201, target image is set as A1, opening image or closing image setting of having set is A2;
Target image with to have set open image or closes image carry out matching judgment time, A2 only represents out image or pass image.
Step S202, acquisition A1 histogram AZ1, A2 histogram AZ2;
Histogram AZ1 represents the array be made up of redness corresponding to each pixel of A1, green, blueness, color space (Red, Green, Blue, Alpha are called for short RGBA).Histogram AZ2 and histogram AZ1 in like manner.Specifically how to belong to prior art by the corresponding histogram of Image Acquisition, do not repeat them here.
Step S203, acquisition AZ1 grey level histogram array AGZ1, AZ2 grey level histogram array AGZ2;
AZ1 grey level histogram array AGZ1 represent from the RGBA that each pixel of A1 is corresponding, only get redness, green or blue pixel value after the array that forms.AGZ2 and AGZ1 in like manner.Specifically from histogram, how to obtain corresponding grey level histogram array belongs to prior art, does not repeat them here.
Whether step S204, the length comparing array AGZ1 and array AGZ2 is equal, forwards step S205 to, forward step S206 to if equal if unequal;
Such as, if AGZ1 represent from the RGBA that each pixel of A1 is corresponding, get red pixel value after the array that forms, then the length of array AGZ1 represents that in all pixels that A1 is corresponding, red pixel value is not the number of 0.The length of array AGZ2 and the length of array AGZ1 are in like manner.
Step S205, judge that A1 and A2 does not mate;
Such as, if in all pixels corresponding to A1 red pixel value be not in number all pixels corresponding with A2 of 0 red pixel value be not 0 number not identical, then judge that A1 and A2 does not mate, and Resurvey user images is as target image.
The similarity of step S206, calculating A1 and A2;
If in all pixels that A1 is corresponding red pixel value be not in number all pixels corresponding with A2 of 0 red pixel value be not 0 number identical, then judge the similarity of A1 and A2 further, specifically judge that A1, A2 red pixel value is not have how many red pixel value equal in the pixel of 0.
Calculate the similarity of A1 and A2, by following C# language codes implement, the agz1 in code represents above-mentioned AGZ1, and the agz2 in code represents above-mentioned AGZ2:
Wherein, function f loatGetDuplationRate call function floatGetColorAbs, result/j represents the similarity returned.
Step S207, when judging that Similarity value is greater than preset ratio, know that A1 and A2 mates.
Such as, when A1, A2 red pixel value is not have the red pixel value of 80% equal in the pixel of 0, then judge that A1, A2 mate.
The embodiment of the present invention is by gathering the target image of user, target image is mated with switch image, and control power circuit according to the switching information that matching process generates, do not need finger touch switch just controllable power circuit, solve the unsafe problem of contact gauge tap, in addition, the antihygienic problem of contact gauge tap can also be solved.
The structural drawing of the power circuit control device that Fig. 3 provides for the embodiment of the present invention.The power circuit control device that the embodiment of the present invention provides can perform the treatment scheme that power supply circuit control method embodiment provides, as shown in Figure 3, power circuit control device 30 comprises image capture module 31, picture recognition module 32 and on-off circuit module 33, wherein, image capture module 31 is for gathering target image; Picture recognition module 32 generates switching information for being carried out mating with the switch image preset by target image; On-off circuit module 33 is for opening or powered-down circuit according to switching information.
The embodiment of the present invention is by gathering the target image of user, target image is mated with switch image, and control power circuit according to the switching information that matching process generates, do not need finger touch switch just controllable power circuit, solve the unsafe problem of contact gauge tap.
On the basis of above-described embodiment, image capture module 31 also for receive and store user input switch image.
Image capture module 31 is specifically for receiving and confirming the switch image that user inputs; Switch image is stored in register.
Switch image comprise control that power circuit leaves open image and control the pass image that power circuit closes, picture recognition module 32 is specifically for judging target image and opening image or close the similarity of image; If similarity is greater than predetermined threshold value, then judges target image and open image or close images match success.
When image capture module 31 also judges that target image does not mate with switch image for picture recognition module 32, Resurvey target image.
The power circuit control device that the embodiment of the present invention provides can specifically for performing the embodiment of the method that above-mentioned Fig. 1 provides, and concrete function repeats no more herein.
The embodiment of the present invention is by gathering the target image of user, target image is mated with switch image, and control power circuit according to the switching information that matching process generates, do not need finger touch switch just controllable power circuit, solve the unsafe problem of contact gauge tap, in addition, the antihygienic problem of contact gauge tap can also be solved.
To sum up, gather the target image of user, target image is mated with switch image, and control power circuit according to the switching information that matching process generates, do not need finger touch switch just controllable power circuit, solve the unsafe problem of contact gauge tap, in addition, the antihygienic problem of contact gauge tap can also be solved; Confirmed the switch image of user's input by limited number of time, prevent user from confirming, to make arranging of user authentic and valid by mistake.
In several embodiment provided by the present invention, should be understood that, disclosed apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
The above-mentioned integrated unit realized with the form of SFU software functional unit, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform the part steps of each embodiment method of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (Read-OnlyMemory, ROM), random access memory (RandomAccessMemory, RAM), magnetic disc or CD etc. various can be program code stored medium.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.The specific works process of the device of foregoing description, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a power supply circuit control method, is characterized in that, comprising:
Gather target image;
Described target image is carried out mating with the switch image preset and generates switching information;
Open or powered-down circuit according to described switching information.
2. method according to claim 1, is characterized in that, also comprises before described collection target image:
Receive and store user input described switch image.
3. method according to claim 2, is characterized in that, described reception and store user input described switch image comprise:
Receive and confirm the described switch image that user inputs;
Described switch image is stored in register.
4. method according to claim 3, is characterized in that, described switch image comprise control that described power circuit opens open image and control the pass image that described power circuit closes, described described target image is carried out mating comprising with default switch image:
Judge described target image and the described similarity opening image or described pass image;
If described similarity is greater than predetermined threshold value, then judge described target image and described open image or described pass images match success.
5. the method according to any one of claim 1-4, is characterized in that, also comprises:
If described target image does not mate with described switch image, then target image described in Resurvey.
6. a power circuit control device, is characterized in that, comprising:
Image capture module, for gathering target image;
Picture recognition module, generates switching information for being carried out mating with the switch image preset by described target image;
On-off circuit module, for opening or powered-down circuit according to described switching information.
7. power circuit control device according to claim 6, is characterized in that, described image capture module also for receive and store user input described switch image.
8. power circuit control device according to claim 7, is characterized in that, described image capture module is specifically for receiving and confirming the described switch image that user inputs; Described switch image is stored in register.
9. power circuit control device according to claim 8, it is characterized in that, described switch image comprises the pass image opening image and the described power circuit pass of control controlling described power circuit and open, and described picture recognition module is specifically for judging described target image and the described similarity opening image or described pass image; If described similarity is greater than predetermined threshold value, then judge described target image and described open image or described pass images match success.
10. the power circuit control device according to any one of claim 6-9, is characterized in that, when described image capture module also judges that described target image does not mate with described switch image for described picture recognition module, and target image described in Resurvey.
CN201410383980.8A 2014-08-06 2014-08-06 Power circuit control method and device Pending CN105334765A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410383980.8A CN105334765A (en) 2014-08-06 2014-08-06 Power circuit control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410383980.8A CN105334765A (en) 2014-08-06 2014-08-06 Power circuit control method and device

Publications (1)

Publication Number Publication Date
CN105334765A true CN105334765A (en) 2016-02-17

Family

ID=55285377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410383980.8A Pending CN105334765A (en) 2014-08-06 2014-08-06 Power circuit control method and device

Country Status (1)

Country Link
CN (1) CN105334765A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106970552A (en) * 2017-02-09 2017-07-21 中控智慧科技股份有限公司 A kind of method of controlling switch, intelligent switch and mobile terminal
CN109332763A (en) * 2018-10-09 2019-02-15 江西科技学院 Power-off protection method, system, readable storage medium storing program for executing and electric hammer drill

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1932840A (en) * 2005-09-16 2007-03-21 中国科学技术大学 Multi-modal biological characteristic identification system based on iris and human face
CN101110101A (en) * 2006-07-17 2008-01-23 松下电器产业株式会社 Method for recognizing picture pattern and equipment thereof
CN101393605A (en) * 2007-09-18 2009-03-25 索尼株式会社 Image processing device and image processing method, and program
CN101655875A (en) * 2009-09-02 2010-02-24 深圳华为通信技术有限公司 Image indication method and digital photo frame
CN102724793A (en) * 2012-05-21 2012-10-10 四川新力光源有限公司 Gesture-controlled LED lighting device
CN103093526A (en) * 2012-12-25 2013-05-08 上海交通大学 Intelligent door control system based on scene mode
CN103198541A (en) * 2013-02-07 2013-07-10 李国杰 Motorcycle face recognition system
JP2013137178A (en) * 2011-11-29 2013-07-11 Ricoh Co Ltd Device control system, device control method, and program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1932840A (en) * 2005-09-16 2007-03-21 中国科学技术大学 Multi-modal biological characteristic identification system based on iris and human face
CN101110101A (en) * 2006-07-17 2008-01-23 松下电器产业株式会社 Method for recognizing picture pattern and equipment thereof
CN101393605A (en) * 2007-09-18 2009-03-25 索尼株式会社 Image processing device and image processing method, and program
CN101655875A (en) * 2009-09-02 2010-02-24 深圳华为通信技术有限公司 Image indication method and digital photo frame
JP2013137178A (en) * 2011-11-29 2013-07-11 Ricoh Co Ltd Device control system, device control method, and program
CN102724793A (en) * 2012-05-21 2012-10-10 四川新力光源有限公司 Gesture-controlled LED lighting device
CN103093526A (en) * 2012-12-25 2013-05-08 上海交通大学 Intelligent door control system based on scene mode
CN103198541A (en) * 2013-02-07 2013-07-10 李国杰 Motorcycle face recognition system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106970552A (en) * 2017-02-09 2017-07-21 中控智慧科技股份有限公司 A kind of method of controlling switch, intelligent switch and mobile terminal
CN106970552B (en) * 2017-02-09 2023-11-14 中控智慧科技股份有限公司 Switch control method, intelligent switch and mobile terminal
CN109332763A (en) * 2018-10-09 2019-02-15 江西科技学院 Power-off protection method, system, readable storage medium storing program for executing and electric hammer drill
CN109332763B (en) * 2018-10-09 2020-12-04 江西科技学院 Power-off protection method and system, readable storage medium and electric hammer drill

Similar Documents

Publication Publication Date Title
CN103064816B (en) SIM card hot plug is protected and SIM card shutdown in place is swiped the card method, terminal
CN108596092B (en) Gesture recognition method, device, equipment and storage medium
US20190347395A1 (en) Verification method based on double fingerprint recognition, mobile terminal, and storage device
CN105100627A (en) Shooting control method and terminal
CN105120162A (en) Camera rotation control method and terminal
CN104572219B (en) Photographing mode switching method and device
EP2602691A1 (en) Method for gesture control, gesture server device and sensor input device
CN103677609A (en) Picture processing method and terminal
CN106648398B (en) Display control method and device
CN104461367B (en) A kind of image display method and device of terminal front camera
CN104881122A (en) Somatosensory interactive system activation method and somatosensory interactive method and system
CN106354406A (en) Method and device for controlling double screen mobile phone
US20150022473A1 (en) Electronic device and method for remotely operating the electronic device
CN105824551A (en) Electronic equipment unlocking method and electronic equipment
CN105487784A (en) Control method and device of electronic terminal, terminal and system
CN108664183A (en) A kind of processing method and processing device using footmark
CN112036261A (en) Gesture recognition method and device, storage medium and electronic device
CN106488019B (en) A kind of starting-up method of mobile terminal and mobile terminal
CN105334765A (en) Power circuit control method and device
CN106774827B (en) Projection interaction method, projection interaction device and intelligent terminal
CN104767932A (en) Terminal continuous shooting method and terminal
CN110162372B (en) Virtual key creation method and related equipment
CN104020872B (en) A kind of touch screen function recovering method and electronic equipment
CN103365596A (en) Method and device for controlling virtual world
CN103839032A (en) Identification method and electronic device

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: 20160217