CN107976953A - Control method, apparatus, socket and the readable storage medium storing program for executing of socket - Google Patents

Control method, apparatus, socket and the readable storage medium storing program for executing of socket Download PDF

Info

Publication number
CN107976953A
CN107976953A CN201711166531.8A CN201711166531A CN107976953A CN 107976953 A CN107976953 A CN 107976953A CN 201711166531 A CN201711166531 A CN 201711166531A CN 107976953 A CN107976953 A CN 107976953A
Authority
CN
China
Prior art keywords
socket
scene image
pedestrian
subgraph
state
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
CN201711166531.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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201711166531.8A priority Critical patent/CN107976953A/en
Publication of CN107976953A publication Critical patent/CN107976953A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/054Input/output
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/44Means for preventing access to live contacts
    • H01R13/447Shutter or cover plate
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/665Structural association with built-in electrical component with built-in electronic circuit
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/665Structural association with built-in electrical component with built-in electronic circuit
    • H01R13/6683Structural association with built-in electrical component with built-in electronic circuit with built-in sensor
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/11Plc I-O input output
    • G05B2219/1103Special, intelligent I-O processor, also plc can only access via processor

Landscapes

  • Engineering & Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

The disclosure is directed to a kind of method, control device, socket and readable storage medium storing program for executing for controlling socket.The method of the control socket includes:When socket is in power-up state, the scene image of the receptacle periphery is obtained;The scene image is detected whether comprising the subgraph with the biometric information matches of default crowd;When the scene image includes the subgraph, the socket in the socket is controlled to power off.If scene image includes the subgraph with the biometric information matches of default crowd, it then can determine that the pedestrian for belonging to default crowd appears in receptacle periphery, in the case, control the socket power-off in socket, thus, finger or other shaping claviforms are inserted into the socket in socket by the pedestrian that can prevent from belonging in default crowd, can be effectively prevented from the generation of pedestrian's electric shock accidents, have ensured the safety of the pedestrian.

Description

Control method, apparatus, socket and the readable storage medium storing program for executing of socket
Technical field
This disclosure relates to socket field, more particularly to a kind of method, apparatus, socket and readable storage medium for controlling socket Matter.
Background technology
Socket is the electrical equipment that power interface is provided for household electrical appliance, as the improvement of people's living standards, all kinds of electricity Device increases, more and more for the demand of socket, but its there are some potential safety problems in use.
The self-protection of children or the unsound adult of intelligence and awareness of safety are weak, like fangle research to feel By, with the smallclothes such as finger or copper wire, iron nail, key conductive material insertion socket socket in, directly with the electrode slice phase in socket Even, the generation got an electric shock often is caused.
The content of the invention
To overcome problem present in correlation technique, the disclosure provides a kind of method, apparatus for controlling socket, socket and can Read storage medium.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of method for controlling socket, the described method includes:
When socket is in power-up state, the scene image of the receptacle periphery is obtained;
The scene image is detected whether comprising the subgraph with the biometric information matches of default crowd;
When the scene image includes the subgraph, the socket in the socket is controlled to power off.
Alternatively, the socket includes idle socket;When the scene image includes the subgraph, described insert is controlled Socket power-off in seat, including:
When the scene image includes the subgraph, the idle socket is controlled to be in the state that can not be inserted into.
Alternatively, the scene image is included at least two images obtained in the first preset time period;Described in detection Whether scene image includes the subgraph with the biometric information matches of default crowd, including:
According to the different information between at least two images, it is determined whether have pedestrian close to the socket;
When having determined pedestrian close to the socket, according to the scene image, determine that the biological characteristic of the pedestrian is believed Breath;
Detect the pedestrian biological information whether the biometric information matches with the default crowd.
Alternatively, insulation catch is provided with the idle socket, lock piece is provided with below the insulation catch; When the scene image includes the subgraph, the idle socket is controlled to be in the state that can not be inserted into, including:
When the scene image includes the subgraph, the lock piece is controlled to lock the insulation catch, so that institute State idle socket be in can not insert state.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of device for controlling socket, described device include:
Acquisition module, is configured as, when socket is in power-up state, obtaining the scene image of the receptacle periphery;
Whether detection module, be configured as detecting the scene image comprising the biometric information matches with default crowd Subgraph;
Control module, is configured as, when the scene image includes the subgraph, controlling the socket in the socket Power-off.
Alternatively, the socket includes idle socket;The control module includes:
Control submodule, is configured as when the scene image includes the subgraph, controls the idle spigot In not pluggable state.
Alternatively, the scene image is included at least two images obtained in the first preset time period;The detection Module includes:
First determination sub-module, the different information being configured as between at least two images according to, it is determined whether have Pedestrian is close to the socket;
Second determination sub-module, when being configured as having determined pedestrian close to the socket, according to the scene image, really The biological information of the fixed pedestrian;
Detection sub-module, be configured as detecting the pedestrian biological information whether the biology with the default crowd Characteristic information matches.
Alternatively, insulation catch is provided with the idle socket, lock piece is provided with below the insulation catch;Institute State control submodule to be configured as when the scene image includes the subgraph, control the lock piece to lock the insulation Catch so that it is described free time socket be in can not insert state.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of socket, including:
Process chip, insulation catch, lock piece, the process chip are arranged in the socket, and the insulation catch is set To put in the socket of the socket, the lock piece is arranged on the lower section of the insulation catch,
The process chip is used for according to the scene image of the receptacle periphery, detect the scene image whether include with The subgraph of the biometric information matches of default crowd, and, when the scene image includes the subgraph, control institute State lock piece and lock the insulation catch, so that be in can not insert state for the idle socket being not used by the socket.
Alternatively, the socket further includes:
Image collecting device, is connected with the process chip, for gathering the scene image.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, is stored thereon with calculating Machine programmed instruction, the programmed instruction realize a kind of socket control method that disclosure first aspect is provided when being executed by processor The step of.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Using the technical scheme provided by this disclosed embodiment, first, when socket is in power-up state, described insert is obtained Scene image around seat.Secondly, according to the scene image, whether the scene image is detected comprising the biology with default crowd The matched subgraph of characteristic information.Finally, when the scene image includes the subgraph, the socket in the socket is controlled Power-off.If scene image includes the subgraph with the biometric information matches of default crowd, it can determine that and belonged to default The pedestrian of crowd appears in receptacle periphery, in the case, controls the socket power-off in socket, thus, it can prevent from belonging to default Finger or other shaping claviforms are inserted into the socket in socket by the pedestrian in crowd, can be effectively prevented from pedestrian electric shock The generation of accident, has ensured the safety of the pedestrian.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Attached drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is the schematic diagram for the implementation environment that the embodiment of the present disclosure is applicable in.
Fig. 2 is a kind of flow chart of the method for control socket according to an exemplary embodiment
Fig. 3 is a kind of another flow chart of the method for control socket according to an exemplary embodiment.
Fig. 4 is the flow of S12 in the step of a kind of method of control socket according to an exemplary embodiment includes Figure.
Fig. 5 is a kind of another flow chart of the method for control socket according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of the device of control socket according to an exemplary embodiment.
Fig. 7 is a kind of another block diagram of the device of control socket according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of the detection module of the device of control socket according to an exemplary embodiment.
Fig. 9 is a kind of schematic diagram of socket according to an exemplary embodiment.
Figure 10 is a kind of block diagram of the device of control socket according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Before the method for the control socket provided the embodiment of the present disclosure illustrates, first to embodiment of the present disclosure institute Applicable implementation environment illustrates.Please refer to Fig.1, Fig. 1 is the schematic diagram for the implementation environment that the embodiment of the present disclosure is applicable in.Such as Shown in Fig. 1, which can include:Socket 100 and pedestrian 200.Wherein, socket 100 includes socket, so that people are by electricity In device plug insertion socket.Also, controlled in socket 100 by controller, controller can be built in socket 100, can also Socket 100 and the device to communicate with socket 100 are independently of, Fig. 1 is by taking controller is built in socket 100 as an example.Controller is used In the method for performing the control socket that the embodiment of the present disclosure provides.Pedestrian 200 can be children or the unsound adult of intelligence.
Fig. 2 is a kind of flow chart of the method for control socket according to an exemplary embodiment, as shown in Fig. 2, institute The method of stating comprises the following steps.
In step s 11, when socket is in power-up state, the scene image of the receptacle periphery is obtained.
In step s 12, whether the scene image is detected comprising the son with the biometric information matches of default crowd Image.
In step s 13, when the scene image includes the subgraph, the socket in the socket is controlled to power off.
In practical applications, appliance plug is inserted with the part socket on socket, remainder socket is not inserted into electric appliance and inserts Head (hereinafter referred to as idle socket), in the case, if pedestrian (such as:Children or the unsound adult of intelligence) by finger or Other conductive objects of person are inserted into the free time socket, it will are connected with the electrode slice in idle socket, are caused electric shock accidents Generation.Therefore, the generation of electric shock accidents in order to prevent, the embodiment of the present disclosure propose a kind of socket control method, for inserting When seat is in power-up state, when having detected children or the unsound adult of intelligence close to the socket, inserting on the socket is controlled Mouthful power-off, and then avoid children or intelligence it is unsound adult by shaping claviform be inserted into the socket caused by electric shock accidents Generation.
Specifically, first, when socket is in power-up state, controller is in normal operating conditions, can obtain socket week The scene image enclosed.Wherein, the scene image of receptacle periphery can be obtained by the camera being set in advance in socket, phase Ying Di, the scope of the scene image got is by the field range of camera and the location determination of placement socket, in addition, also It can be obtained by the camera installed in the receptacle periphery, correspondingly, the scope of the scene image got is by imaging The location determination of the field range of head and the camera of installation.
Then, according to the scene image, whether the scene image is detected comprising the biological information with default crowd Matched subgraph.It is a kind of when whether detection scene image includes the subgraph with the biometric information matches of default crowd Possible embodiment is:Characteristic information according to being used to characterize pedestrian in the scene image is further analyzed, and detects whether to wrap Subgraph containing the biometric information matches with default crowd.Alternatively possible embodiment is:Controller is according to this Scape image, determines distance of the pedestrian apart from the socket, when the distance is more than pre-determined distance, because the pedestrian is apart from socket Farther out, the possibility that electric shock accidents occurs is relatively low, because of the analysis without carrying out next step to the pedestrian, is preset when the distance is less than Apart from when because the pedestrian is nearer apart from socket, the possibility that electric shock accidents occurs is higher, thus to the biological characteristic of the pedestrian Information carries out the analysis of next step, detect the pedestrian biological information whether with the biological information of default crowd to Match somebody with somebody.
Default crowd in the embodiment of the present disclosure contains a kind of or multiclass pedestrian, can be children or intelligence Unsound adult, the self-protection of the pedestrian included in default crowd and awareness of safety are more weak, may cause electric shock Accident.Wherein, the default crowd can be set when socket dispatches from the factory or user's manual setting.
Manufacturer can set default crowd before socket dispatches from the factory, and specifically, first, manufacturer collection children or intelligence are not The biological information of sound adult, is analyzed as sample.Sample covering age is more, sample quantity is bigger, obtain Analysis result it is more accurate comprehensively.Then, characteristic corresponding with the biological characteristic is extracted from the biological characteristic, most Afterwards, establish the database for the default crowd being made of this feature data, and this preset into the database purchase of crowd in socket, The biological information of children or unsound adult are contained in the database of the default crowd.
User is after the socket is bought, in order to ensure that the socket can accurately tell the pedestrian in scene image It is no to belong to default crowd, and then the accurate safety for controlling socket power-off, further ensureing pedestrian in subscriber household, user can be certainly Row sets default crowd.Specifically, user can be wanted to set up in default crowd pedestrian (such as:Children) biology it is special Reference breath is entered into the database of the default crowd, makes the biological characteristic letter for including the pedestrian in the database of default crowd Breath.Finally, when the scene image includes the subgraph, following steps are performed:The socket in the socket is controlled to power off.
The socket control method provided using the embodiment of the present disclosure, when socket is in power-up state, detects scene image Whether comprising subgraph with the biometric information matches of default crowd, detecting that the scene image includes the subgraph When, control the socket in the socket to power off, if scene image includes the subgraph with the biometric information matches of default crowd Picture, then can determine that the pedestrian for belonging to default crowd appears in receptacle periphery, in the case, control the socket in socket to break Electricity, thus, it can prevent that finger or other shaping claviforms are inserted into socket by the pedestrian for belonging to default crowd, can effectively keep away Exempt from the generation of electric shock accidents, ensure the safety of the pedestrian.
Alternatively, please refer to Fig.3, Fig. 3 is a kind of the another of the method for control socket according to an exemplary embodiment One flow chart.As shown in figure 3, the socket includes idle socket;Step S13 comprises the following steps.
In step S131, when the scene image includes the subgraph, controlling the idle socket to be in can not The state of insertion.
Under normal conditions, socket both includes the socket for being inserted into appliance plug, also includes the socket for being not inserted into appliance plug (hereinafter referred to as idle socket), for the socket for being inserted into electric appliance, since the plug of electric appliance is closely inserted in the socket In, it will not cause pedestrian's to be pulled out note that being also not easy to pedestrian.And idle socket is to belonging to for the pedestrian of default crowd Then there is security risk.
Thus, in the embodiments of the present disclosure, detect in scene image comprising the biological information with default crowd During the subgraph matched somebody with somebody, it may be determined that there is the pedestrian for belonging to the default crowd to appear in around the socket, controller control is empty Not busy socket be in can not insert state, the pedestrian in default crowd finger or other conductive bodies can not be inserted into the sky In not busy socket, and then avoid the pedestrian that electric shock accidents occurs.Alternatively, controller does not carry out the socket for being inserted into appliance plug Control, because of the electric appliance being inserted into without influencing user's normal use in the socket outlet.
Alternatively, please refer to Fig.4, Fig. 4 is that a kind of method of control socket according to an exemplary embodiment includes The step of in S12 flow chart.As shown in figure 4, step S12 specifically includes following steps.
In step S121, the scene image is included at least two images obtained in the first preset time period, root According to the different information between at least two images, it is determined whether have pedestrian close to the socket.
In step S122, when having determined pedestrian close to the socket, according to the scene image, the pedestrian is determined Biological information.
In step S123, whether the biological information for detecting the pedestrian is believed with the biological characteristic of the default crowd Breath matching.
At different moments, the information of the scene image containing the pedestrian that controller is got be probably it is different, specifically For, two pixels corresponding to space same position in the scene image got at different moments are possible to become Change.Illustratively, the pedestrian in Fig. 1 from location A move to B location when, pedestrian collects in location A with pedestrian in B location Two field pictures in changed corresponding to the pixel of locus A and B.
Since pedestrian can freely move, it can be proximate to be remote relative to the movement of socket, in pedestrian , will not be there is a situation where finger or shaping claviform be inserted into idle socket, in order to reduce the work of controller during away from socket Make load, when pedestrian is away from socket, whether default crowd is not belonged to the pedestrian in scene image and is judged.
Before whether the pedestrian during controller determines scene image belongs to default crowd, firstly, it is necessary to distinguish the pedestrian It is proximate to socket or away from socket, therefore, first preset time period need to be set, and controller is in first preset time period Interior acquisition at least two images, and analyze at least two images successively obtained, corresponding in this at least two images The change of at least two pixels of space same position, it may be determined that the pedestrian is proximate to socket or away from socket, when definite When the pedestrian is proximate to socket, step S122 is then performed., then may not be to the pedestrian when the definite pedestrian is away from socket It is further analyzed.
It is alternatively possible to determine whether that pedestrian, can be according in the first preset time period close to the socket with frame difference method At least two images got, obtain the image information after at least two frames differencings, determined according to the image information be It is no to have pedestrian close to the socket.When having determined that pedestrian is proximate to socket, further determine whether the pedestrian belongs to default people Group.
Then, perform step S122, according to the scene image (such as:Any figure in above-mentioned at least two images Picture), determine the biological information of the pedestrian, wherein, which can include facial information, finally, according to institute The biological information of pedestrian is stated, whether the biological information for detecting the pedestrian is believed with the biological characteristic of the default crowd Breath matching, wherein, when the pedestrian close to the socket belongs to the default crowd, determine the row for belonging to the default crowd People is close to the socket.
Specifically, controller determines the biological information of pedestrian, and the biological information is input to advance instruction In experienced sorter network, the biological information for belonging to default crowd is previously stored with the sorter network, therefore, controller can To analyze the biological information for whether belonging to default crowd in the biological information in sorter network, the life is being analyzed When thing characteristic information belongs to the biological information of default crowd, it may be determined that have the pedestrian for belonging to default crowd close to the socket.
Using above-mentioned technical proposal, it is first determined whether have pedestrian close to the socket, determining pedestrian close to the socket When, further according to the biological information of the pedestrian, determine whether the pedestrian close to the socket belongs to default crowd.Therefore, can subtract The workload of few controller, improves the service life of controller, while also save the power consumption of controller.
Alternatively, Fig. 5 is refer to, Fig. 5 is a kind of the another of the method for control socket according to an exemplary embodiment One flow chart.Insulation catch is provided with the free time socket, lock piece is provided with below the insulation catch;Such as Fig. 5 institutes Show, the step S131 in Fig. 3 is specially step S1311.
In step S1311, when the scene image includes the subgraph, control the lock piece locking described absolutely Edge catch so that it is described free time socket be in can not insert state.
Insulation catch and lock piece are provided with the socket of socket, wherein, insulation catch is used for barrier electrode piece, locking Part is arranged on the lower section of insulation catch, is connected with controller, when controller determines that nothing belongs to the pedestrian of default crowd close to socket When, control lock piece can be separated with insulation catch, and when appliance plug is inserted into socket, appliance plug can be by socket Insulation catch squeezes, and is connected with the electrode slice in socket, and then realizes conductive.
When controller determines that the pedestrian for belonging to default crowd appears in the receptacle periphery, controller control lock piece closes Close, fixed insulation catch, and then the object for making insulation catch not be inserted into squeezes, and stops that the object is inserted into socket, and then Stop that the object is connected with electrode slice, can not insert state so as to control the socket to be in.
Using above-mentioned technical proposal, whether the pedestrian that controller appears in the receptacle periphery according to detection belongs to default people Group, to control whether lock piece opens and closes, whether the object that can be inserted into squeezes control insulation catch, and then controls socket Whether in the state of can be inserted into, therefore, electric shock accidents is effectively avoided.
Alternatively, when in the second preset time period without the pedestrian of the default crowd is belonged to close to the socket, control Socket in the socket powers on.
In the embodiments of the present disclosure, second preset time period need to be first set, and the socket in socket is in power-off shape In the case of state, when in second preset time period without the pedestrian of the default crowd is belonged to close to the socket, it can control Socket powers on, and ensures that the socket can give play to its normal function in the case where not causing electric shock to threaten to pedestrian.Wherein, Two preset time periods can set when socket dispatches from the factory and can also voluntarily be set by user.Specifically, when this second it is default when Between determine in section without when belonging to the pedestrian of the default crowd close to the socket, controller by controlling lock piece to open, with The lock piece is set to be separated with insulation catch, the socket in socket is in the state of can be inserted into.
Therefore, using above-mentioned technical proposal, the generation of electric shock accidents is being effectively prevented from, is ensureing that pedestrian pacifies in default crowd While complete, the intelligence of socket is improved, power interface is provided for electric appliance, facilitates user's normal use socket.
Fig. 6 is a kind of block diagram of the device of control socket according to an exemplary embodiment.As shown in fig. 6, the control The device 600 of socket processed includes acquisition module 601, detection module 602 and control module 603.
The acquisition module 601 is configured as, when socket is in power-up state, obtaining the scene image of the receptacle periphery;
Whether the detection module 602 is configured as detecting the scene image comprising the biological information with default crowd Matched subgraph;
The control module 603 is configured as, when the scene image includes the subgraph, controlling in the socket Socket powers off.
Alternatively, the socket includes idle socket.Fig. 7 is a kind of control socket according to an exemplary embodiment Device another block diagram.As shown in fig. 7, the control module 603 includes:
Control submodule 6031, is configured as when the scene image includes the subgraph, controls described idle slotting Mouth is in not pluggable state.
Alternatively, the scene image is included at least two images obtained in the first preset time period;It refer to figure 8, Fig. 8 be a kind of block diagram of the detection module of the device of control socket according to an exemplary embodiment.As shown in figure 8, The detection module 602 includes:
First determination sub-module 6021, is configured as the different information between at least two images according to, determine be It is no to have pedestrian close to the socket;
Second determination sub-module 6022, when being configured as having determined pedestrian close to the socket, according to the scene graph Picture, determines the biological information of the pedestrian;
Whether detection sub-module 6023, be configured as detecting the biological information of the pedestrian with the default crowd's Biometric information matches.
Alternatively, insulation catch is provided with the idle socket, lock piece is provided with below the insulation catch;Institute State control submodule 6031 to be configured as when the scene image includes the subgraph, control described in the lock piece locking Insulate catch so that it is described free time socket be in can not insert state.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Based on same inventive concept, the embodiment of the present disclosure also provides a kind of socket.Fig. 9 is refer to, Fig. 9 is according to an example Property implement the schematic diagram of a kind of socket that exemplifies.As shown in figure 9, the socket 100 includes:
Process chip 101, insulation catch 102, lock piece 103, the process chip 101 are arranged in the socket, institute State insulation catch 102 to be arranged in the socket of the socket, the lock piece 103 is arranged on the lower section of the insulation catch 102.
The process chip 101 is equivalent to controller noted above, for obtaining the scene image of receptacle periphery, and according to acquisition Whether the scene image arrived, detect the scene image comprising subgraph with the biometric information matches of default crowd, with And when the scene image includes the subgraph, the lock piece 103 is controlled to lock the insulation catch 102, so that institute Stating that the idle socket that is not used by socket is in can not insert state.
Alternatively, as shown in figure 9, the socket 100 further includes:
Image collecting device 104, is connected with the process chip 101, for gathering the scene image.
The disclosure also provides a kind of computer-readable recording medium, is stored thereon with computer program instructions, which refers to The step of socket control method that the disclosure provides, is realized in order when being executed by processor.
Figure 10 is a kind of block diagram of the device 900 of control socket according to an exemplary embodiment.The device 900 can To be provided as a socket.With reference to Figure 10, device 900 can include following one or more assemblies:Processing component 902, storage Device 904, electric power assembly 906, multimedia component 908, audio component 910, the interface 912 of input/output (I/O), sensor group Part 914, and communication component 916.
The integrated operation of the usual control device 900 of processing component 902, such as with display, data communication, camera operation and note The associated operation of record operation.Processing component 902 can carry out execute instruction including one or more processors 920, to complete to control The all or part of step of the method for socket processed.In addition, processing component 902 can include one or more modules, easy to handle Interaction between component 902 and other assemblies.For example, processing component 902 can include multi-media module, to facilitate multimedia group Interaction between part 908 and processing component 902.
Memory 904 is configured as storing various types of data to support the operation in device 900.These data are shown Example includes the instruction of any method for being operated on device 900, picture, video etc..Memory 904 can be by any types Volatibility or non-volatile memory device or combinations thereof realize that, such as static RAM (SRAM), electricity can Erasable programmable read-only memory (EPROM) (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory, disk or CD.
Electric power assembly 906 provides electric power for the various assemblies of device 900.Electric power assembly 906 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 900.
Multimedia component 908 is included in the screen of one output interface of offer between described device 900 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slip and touch panel.The touch sensor can not only sense touch or sliding action Border, but also detect and the duration and pressure associated with the touch or slide operation.In certain embodiments, more matchmakers Body component 908 includes a front camera and/or rear camera.When device 900 is in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive exterior multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 910 is configured as output and/or input audio signal.For example, audio component 910 includes a Mike Wind (MIC), when device 900 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 904 or via communication set Part 916 is sent.In certain embodiments, audio component 910 further includes a loudspeaker, for exports audio signal.
I/O interfaces 912 provide interface between processing component 902 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..Sensor component 914 includes one or more sensors, for being provided respectively for device 900 The status assessment of a aspect.For example, sensor component 914 can detect opening/closed mode of device 900, the phase of component To positioning, such as the display and keypad that the component is device 900, sensor component 914 can with detection device 900 or The position change of 900 1 components of device, the existence or non-existence that user contacts with device 900,900 orientation of device or acceleration/ The temperature change slowed down with device 900.Sensor component 914 can include proximity sensor, be configured to not any Physical contact when detect presence of nearby objects.Sensor component 914 can also include optical sensor, as CMOS or CCD schemes As sensor, for being used in imaging applications.In certain embodiments, which can also include acceleration Sensor, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 916 is configured to facilitate the communication of wired or wireless way between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 916 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 916 further includes near-field communication (NFC) module, to promote junction service.Example Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 900 can be believed by one or more application application-specific integrated circuit (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, the method for performing control socket.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 904 of instruction, above-metioned instruction can be performed by the processor 920 of device 900 to complete the method for control socket. For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, Floppy disk and optical data storage devices etc..
Those skilled in the art will readily occur to other embodiment party of the disclosure after considering specification and putting into practice the disclosure Case.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or adaptability Change follows the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure or usual skill Art means.Description and embodiments are considered only as exemplary, and the true scope and spirit of the disclosure are by following claim Point out.
It should be appreciated that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claim.

Claims (11)

  1. A kind of 1. method for controlling socket, it is characterised in that the described method includes:
    When socket is in power-up state, the scene image of the receptacle periphery is obtained;
    The scene image is detected whether comprising the subgraph with the biometric information matches of default crowd;
    When the scene image includes the subgraph, the socket in the socket is controlled to power off.
  2. 2. according to the method described in claim 1, it is characterized in that, the socket includes idle socket;In the scene image During comprising the subgraph, the socket in the socket is controlled to power off, including:
    When the scene image includes the subgraph, the idle socket is controlled to be in the state that can not be inserted into.
  3. 3. method according to claim 1 or 2, it is characterised in that the scene image is included in the first preset time period At least two images of interior acquisition;The scene image is detected whether comprising the son with the biometric information matches of default crowd Image, including:
    According to the different information between at least two images, it is determined whether have pedestrian close to the socket;
    When having determined pedestrian close to the socket, according to the scene image, the biological information of the pedestrian is determined;
    Detect the pedestrian biological information whether the biometric information matches with the default crowd.
  4. 4. according to the method described in claim 2, it is characterized in that, be provided with insulation catch in the free time socket, it is described absolutely Lock piece is provided with below edge catch;When the scene image includes the subgraph, the idle socket is controlled to be in Not pluggable state, including:
    When the scene image includes the subgraph, the lock piece is controlled to lock the insulation catch, so that the sky Not busy socket is in can not insert state.
  5. 5. a kind of device for controlling socket, it is characterised in that described device includes:
    Acquisition module, is configured as, when socket is in power-up state, obtaining the scene image of the receptacle periphery;
    Whether detection module, be configured as detecting the scene image comprising the son with the biometric information matches of default crowd Image;
    Control module, is configured as, when the scene image includes the subgraph, controlling the socket in the socket to power off.
  6. 6. device according to claim 5, it is characterised in that the socket includes idle socket;The control module bag Include:
    Control submodule, is configured as when the scene image includes the subgraph, controls the idle socket to be in not Pluggable state.
  7. 7. the device according to claim 5 or 6, it is characterised in that the scene image is included in the first preset time period At least two images of interior acquisition;The detection module includes:
    First determination sub-module, the different information being configured as between at least two images according to, it is determined whether have pedestrian Close to the socket;
    Second determination sub-module, when being configured as having determined pedestrian close to the socket, according to the scene image, determines institute State the biological information of pedestrian;
    Detection sub-module, be configured as detecting the pedestrian biological information whether the biological characteristic with the default crowd Information matches.
  8. 8. device according to claim 6, it is characterised in that insulation catch is provided with the free time socket, it is described exhausted Lock piece is provided with below edge catch;The control submodule is configured as including the subgraph in the scene image When, control the lock piece to lock the insulation catch, so that be in can not insert state for the free time socket.
  9. A kind of 9. socket, it is characterised in that including:
    Process chip, insulation catch, lock piece, the process chip are arranged in the socket, and the insulation catch is arranged on In the socket of the socket, the lock piece is arranged on the lower section of the insulation catch,
    The process chip is used for the scene image according to the receptacle periphery, detects whether the scene image is included with presetting The subgraph of the biometric information matches of crowd, and, when the scene image includes the subgraph, control the lock Stop member locks the insulation catch, so that be in can not insert state for the idle socket being not used by the socket.
  10. 10. socket according to claim 9, it is characterised in that the socket further includes:
    Image collecting device, is connected with the process chip, for gathering the scene image.
  11. 11. a kind of computer-readable recording medium, is stored thereon with computer program instructions, it is characterised in that the programmed instruction The step of method any one of claim 1-4 is realized when being executed by processor.
CN201711166531.8A 2017-11-21 2017-11-21 Control method, apparatus, socket and the readable storage medium storing program for executing of socket Pending CN107976953A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711166531.8A CN107976953A (en) 2017-11-21 2017-11-21 Control method, apparatus, socket and the readable storage medium storing program for executing of socket

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711166531.8A CN107976953A (en) 2017-11-21 2017-11-21 Control method, apparatus, socket and the readable storage medium storing program for executing of socket

Publications (1)

Publication Number Publication Date
CN107976953A true CN107976953A (en) 2018-05-01

Family

ID=62010755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711166531.8A Pending CN107976953A (en) 2017-11-21 2017-11-21 Control method, apparatus, socket and the readable storage medium storing program for executing of socket

Country Status (1)

Country Link
CN (1) CN107976953A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110673500A (en) * 2019-09-26 2020-01-10 青岛海尔科技有限公司 Power supply control method of socket and Internet of things operating system
WO2020062399A1 (en) * 2018-09-28 2020-04-02 安徽省极索智能科技有限公司 Smart socket control system for preventing electric shock of children
CN112200839A (en) * 2020-10-13 2021-01-08 西南交通大学 Infant protection socket based on image processing and protection method thereof
CN113762191A (en) * 2021-09-15 2021-12-07 珠海格力电器股份有限公司 Device for prompting user based on image, method and device for prompting user operation
CN114973094A (en) * 2022-06-08 2022-08-30 长沙海信智能系统研究院有限公司 Power utilization detection method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2437057Y (en) * 2000-06-20 2001-06-27 王利强 Electric shock prevention safety socket
CN102662334A (en) * 2012-04-18 2012-09-12 深圳市兆波电子技术有限公司 Method for controlling distance between user and electronic equipment screen and electronic equipment
CN204289817U (en) * 2015-01-09 2015-04-22 杨荣伟 A kind of safety socket unit
CN105375209A (en) * 2015-11-12 2016-03-02 牛宝芬 Protective type intelligent socket
CN107066977A (en) * 2017-04-18 2017-08-18 胡渐佳 Electronic equipment monitoring system for prompting based on state recognition of going out

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2437057Y (en) * 2000-06-20 2001-06-27 王利强 Electric shock prevention safety socket
CN102662334A (en) * 2012-04-18 2012-09-12 深圳市兆波电子技术有限公司 Method for controlling distance between user and electronic equipment screen and electronic equipment
CN204289817U (en) * 2015-01-09 2015-04-22 杨荣伟 A kind of safety socket unit
CN105375209A (en) * 2015-11-12 2016-03-02 牛宝芬 Protective type intelligent socket
CN107066977A (en) * 2017-04-18 2017-08-18 胡渐佳 Electronic equipment monitoring system for prompting based on state recognition of going out

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张良培等: "《高光谱遥感》", 31 December 2011, 测绘出版社 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020062399A1 (en) * 2018-09-28 2020-04-02 安徽省极索智能科技有限公司 Smart socket control system for preventing electric shock of children
CN110673500A (en) * 2019-09-26 2020-01-10 青岛海尔科技有限公司 Power supply control method of socket and Internet of things operating system
CN110673500B (en) * 2019-09-26 2023-03-28 青岛海尔科技有限公司 Power supply control method of socket and Internet of things operating system
CN112200839A (en) * 2020-10-13 2021-01-08 西南交通大学 Infant protection socket based on image processing and protection method thereof
CN113762191A (en) * 2021-09-15 2021-12-07 珠海格力电器股份有限公司 Device for prompting user based on image, method and device for prompting user operation
CN114973094A (en) * 2022-06-08 2022-08-30 长沙海信智能系统研究院有限公司 Power utilization detection method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN107976953A (en) Control method, apparatus, socket and the readable storage medium storing program for executing of socket
CN106454336B (en) The method and device and terminal that detection terminal camera is blocked
EP2960822B1 (en) Method and device for locking file
CN105785782B (en) Intelligent home equipment control method and device
CN101316324B (en) Terminal and image processing method thereof
CN106210550B (en) Mode regulating method and device
CN106970754A (en) The method and device of screenshotss processing
CN107025419B (en) Fingerprint template inputting method and device
CN107919123A (en) More voice assistant control method, device and computer-readable recording medium
CN107122679A (en) Image processing method and device
CN107545569A (en) Method for recognizing impurities and device
CN106951884A (en) Gather method, device and the electronic equipment of fingerprint
CN104601918A (en) Video recording method and device
CN104700353A (en) Image filter generating method and device
CN105301183B (en) Detection of Air Quality method and apparatus
CN106303260A (en) Photographic head changing method, device and terminal unit
CN105631804A (en) Image processing method and device
CN105487680A (en) Terminal screen capture method and apparatus and terminal
CN107783715A (en) Using startup method and device
CN104020628B (en) Flash lamp prompting method and device thereof
CN105138956A (en) Face detection method and device
CN106791394A (en) Image processing method and device
CN104853223B (en) The inserting method and terminal device of video flowing
CN105739840A (en) Terminal and starting method of application programs in terminal
CN103997686A (en) Play management method and device based on intelligent television

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180501

RJ01 Rejection of invention patent application after publication