CN108416231A - Method for secret protection and device, electronic device and computer readable storage medium - Google Patents

Method for secret protection and device, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN108416231A
CN108416231A CN201810262828.2A CN201810262828A CN108416231A CN 108416231 A CN108416231 A CN 108416231A CN 201810262828 A CN201810262828 A CN 201810262828A CN 108416231 A CN108416231 A CN 108416231A
Authority
CN
China
Prior art keywords
electronic device
user
angle
infrared inductor
infrared
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.)
Granted
Application number
CN201810262828.2A
Other languages
Chinese (zh)
Other versions
CN108416231B (en
Inventor
熊先平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810262828.2A priority Critical patent/CN108416231B/en
Publication of CN108416231A publication Critical patent/CN108416231A/en
Application granted granted Critical
Publication of CN108416231B publication Critical patent/CN108416231B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes

Abstract

The embodiment of the invention discloses a kind of method for secret protection and device, electronic device and readable storage medium storing program for executing, this method is applied to electronic device, and the electronic device includes infrared inductor, and this method includes:Start the infrared inductor in electronic device, it controls infrared inductor and emits infrared ray according to angular range, the angular range is the angle where the user not comprising the electronic device, when monitoring that infrared inductor receives the infrared ray fired back, reminded according to preset indicating mode.Compared with the existing technology; emit the angle where user of the angular range not comprising electronic device of infrared ray due to infrared inductor; it can avoid with infrared emitting to user; if and nearby there are other staff by user; it can then monitor reflected infrared ray, enabling effectively determine that user nearby whether there is other staff, and reminded; the privacy of effective protection user avoids the privacy of user from being seen by other staff.

Description

Method for secret protection and device, electronic device and computer readable storage medium
Technical field
The present invention relates to the guard method of mobile communication technology field more particularly to a kind of privacy of user and device, electronics Device and computer readable storage medium.
Background technology
With the development of mobile communication technology and popularizing for intelligent electronic device, people use in one's hands in daily life The scene of the electronic devices such as machine is more and more.It carries out mobile payment for example, user often needs to use mobile phone or transfers accounts on the net. However user using mobile phone during, some operation be easy is seen by the people of surrounding, such as see user chat message, The personal secrets of document of editor etc., user can not ensure.Therefore, how to realize to the protection of privacy of user be at present urgently It solves the problems, such as.
Invention content
The main purpose of the embodiment of the present invention is to provide a kind of method for secret protection and device, electronic device and computer Readable storage medium storing program for executing, the technical issues of can solving effectively protect privacy of user in the prior art.
To achieve the above object, first aspect of the embodiment of the present invention provides a kind of method for secret protection, the secret protection side Method is applied to electronic device, which includes infrared sensor, the method includes:
Start the infrared inductor in the electronic device;
It controls the infrared inductor and emits infrared ray according to angular range, the angular range is filled not comprising the electronics Angle where the user set;
When monitoring that the infrared inductor receives reflected infrared ray, carried according to preset indicating mode It wakes up.
To achieve the above object, second aspect of the embodiment of the present invention provides a kind of privacy protection device, secret protection dress It sets and is applied to electronic device, which includes infrared inductor, which includes:
Starting module, for starting the infrared inductor in the electronic device;
Control module emits infrared ray for controlling the infrared inductor according to angular range, and the angular range is not Including the angle where the user of the electronic device;
Reminding module, for when monitoring that the infrared inductor receives reflected infrared ray, according to preset Indicating mode is reminded.
To achieve the above object, the third aspect of the embodiment of the present invention provides a kind of electronic device, including memory, processor And it is stored in the computer program run on the memory and on the processor, when which executes computer program, Realize each step in method for secret protection as described in relation to the first aspect.
To achieve the above object, fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, deposits thereon Computer program is contained, when which is executed by processor, is realized in method for secret protection as described in relation to the first aspect Each step.
The embodiment of the present invention provides a kind of method for secret protection, and this method is applied to electronic device, and the electronic device packet Containing infrared inductor, this method includes:Start the infrared inductor in electronic device, control infrared inductor is according to angular range Emit infrared ray, which is the angle where the user not comprising the electronic device, when monitoring infrared sense When device being answered to receive the infrared ray fired back, reminded according to preset indicating mode.Compared with the existing technology, due to infrared Inductor emits the angle where user of the angular range not comprising electronic device of infrared ray, can avoid infrared emitting To with user, and if user nearby there are other staff, can monitor reflected infrared ray, enabling It effectively determines that user nearby whether there is other staff, and is reminded, the privacy of effective protection user avoids user Privacy seen by other staff.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those skilled in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is a kind of structure diagram of electronic device;
Fig. 2 is the flow diagram of method for secret protection in the embodiment of the present invention;
Fig. 3 is another flow diagram of method for secret protection in the embodiment of the present invention;
Fig. 4 is the structural schematic diagram of privacy protection device in the embodiment of the present invention;
Fig. 5 is another structural schematic diagram of privacy protection device in the embodiment of the present invention.
Specific implementation mode
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality It is only a part of the embodiment of the present invention to apply example, and not all embodiments.Based on the embodiments of the present invention, people in the art The every other embodiment that member is obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 shows a kind of structure diagram of electronic device.Method for secret protection provided in an embodiment of the present invention can be applied In electronic device 10 as shown in Figure 1, electronic device 10 can be, but not limited to include:Need to rely on battery maintain normal operation and Support smart mobile phone, notebook, tablet computer, the wearing smart machine etc. of network and download function.
As shown in Figure 1, electronic device 10 includes memory 101, storage control 102, one or more (is only shown in figure One) processor 103, Peripheral Interface 104, radio-frequency module 105, key-press module 106, audio-frequency module 107 and Touch Screen 108, infrared inductor 110.These components are mutually communicated by one or more communication bus/signal wire 109.
It is appreciated that structure shown in FIG. 1 is only to illustrate, the structure of electronic device is not caused to limit.Electronics fills It sets 10 and may also include than shown in Fig. 1 more either less components or with the configuration different from shown in Fig. 1.It is shown in FIG. 1 Hardware, software, or its combination realization may be used in each component.
Memory 101 can be used for storing software program and module, such as the method for secret protection pair in the embodiment of the present invention Program instruction/the module answered, processor 103 is stored in software program and module in memory 101 by operation, to hold Above-mentioned method for secret protection is realized in row various function application and data processing.
Memory 101 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic Property storage device, flash memory or other non-volatile solid state memories.In some instances, memory 101 can further comprise The memory remotely located relative to processor 103, these remote memories can pass through network connection to electronic device 10.On The example for stating network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.Processor 103 And other possible components can carry out the access of memory 101 under the control of storage control 102.
Peripheral Interface 104 couples various input/output devices to CPU and memory 101.The operation of processor 103 is deposited Various softwares, instruction in reservoir 101 are to execute the various functions of electronic device 10 and carry out data processing.
In some embodiments, Peripheral Interface 104, processor 103 and storage control 102 can be in one single chips It realizes.In some other example, they can be realized by independent chip respectively.
Radio-frequency module 105 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus with Communication network or other equipment are communicated.Radio-frequency module 105 may include the various existing electricity for executing these functions Circuit component, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, Memory etc..Radio-frequency module 105 can be with the wireless network progress of various networks such as internet, intranet, preset type Communication is communicated by the wireless network of preset type with other equipment.The wireless network of above-mentioned preset type can wrap Include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).The wireless network of above-mentioned preset type can use various communications Standard, agreement and technology, including but not limited to global system for mobile communications (Global System for Mobile Communication, GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE) is wide Band Code Division Multiple Access (Wideband Code Division Multiple Access, W-CDMA), Code Division Multiple Access (Code Division Access, CDMA), time division multiple access technology (Time Division Multiple Access, TDMA), Bluetooth, adopting wireless fidelity technology (Wireless-Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), the networking telephone (Voice over Internet Protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other for mail, instant messaging and short message agreement and any other is suitable Communications protocol.
Key-press module 106 provides the interface that is inputted to electronic device of user, user can by press it is different by Key is so that electronic device 10 executes different functions.
Audio-frequency module 107 provides a user audio interface, may include that one or more microphones, one or more raises Sound device and voicefrequency circuit.Voicefrequency circuit receives voice data from Peripheral Interface 104, and voice data is converted to power information, Power information is transmitted to loud speaker.Power information is converted to the sound wave that human ear can be heard by loud speaker.Voicefrequency circuit is also from microphone Place receives power information, converts electrical signals to voice data, and by data transmission in network telephony to Peripheral Interface 104 with into advancing one The processing of step.Audio data can obtain from memory 101 or by radio-frequency module 105.In addition, audio data can also It stores into memory 101 or is sent by radio-frequency module 105.In some instances, audio-frequency module 107 may also include One earphone broadcasts hole, for providing audio interface to earphone or other equipment.
Touch Screen 108 provides an output and input interface simultaneously between electronic device and user.Specifically, touch-control Screen 108 shows that video output, the content of these videos output may include word, figure, video and its arbitrary group to user It closes.Some outputs are the result is that correspond to some user interface objects.Touch Screen 108 also receives the input of user, such as user The gesture operations such as click, sliding, so that user interface object responds the input of these users.It detects input by user Technology can be based on resistance-type, condenser type or any other possible touch control detection technology.108 display unit of Touch Screen Specific example include but is not limited to liquid crystal display or light emitting polymer displays.
Method for secret protection in the embodiment of the present invention is described based on above-mentioned electronic device.
Referring to Fig. 2, for the flow diagram of method for secret protection in the embodiment of the present invention, wherein the secret protection side Method is applied in electronic device shown in Fig. 1, and the electronic device includes infrared inductor, and this method includes:
Infrared inductor in step 201, the startup electronic device;
Step 202, the control infrared inductor emit infrared ray according to angular range, and the angular range does not include institute State the angle where the user of electronic device;
Step 203, when monitoring that the infrared inductor receives reflected infrared ray, according to preset prompting mould Formula is reminded.
In embodiments of the present invention, above-mentioned method for secret protection is realized by privacy protection device, the privacy protection device by Program module is constituted, and is stored in the computer readable storage medium of electronic device, and the processor in electronic device can be with The privacy protection device in computer readable storage medium is called, to realize above-mentioned method for secret protection.
Infrared sensor is a kind of sensor that data processing is carried out using infrared ray, there is high sensitivity.It is red Outer sensor is measured for contactless temperature, any substance, as long as itself has certain temperature (being higher than absolute zero), all Infrared ray can be reflected.Wherein, infrared sensor includes infrared emission part and infrared receiver part, wherein infrared emission part For emitting infrared ray, infrared receiver part is used to receive the reflected infrared ray of substance with certain temperature.The present invention In embodiment, it is contemplated that human body has temperature, and human body can reflect infrared ray, and infrared sensor is able to detect that human body is anti- It is emitted back towards the infrared ray come, therefore, the principle will be based on, angular range is set, and with the presence or absence of use around detection electronic installation Personnel other than person.
In embodiments of the present invention, infrared inductor is arranged at the edge of electronic device display interface and/or is arranged in electricity The side of sub-device, it is to be understood that infrared inductor no matter be arranged where, it is only necessary to ensure one or more infrared rays The intersection for the angle that transmitting inductor can emit infrared ray covers angular range, and the angular range is not include electronic device User where angle.Wherein, angular range do not include electronic device user where angle be because:This is red Outer inductor be whether have personnel in addition to the user of electronic device near electronic device for incuding, so as to It prevents someone from seeing the operation of user, such as Password Input operation, checks important documents etc..
In embodiments of the present invention, infrared inductor can be constantly in open state, can also open under given conditions It opens, is located at front stage operation or user in specific operation of execution etc. for example, specified conditions can be specified application Deng, in practical applications, the entry condition of infrared inductor can be given tacit consent to, user can also be based on it is specific need to be arranged it is red The entry condition of outer inductor, is not repeated herein.
Wherein, privacy protection device will control the infrared inductor after starting the infrared inductor in electronic device Emit infrared ray according to angular range, the angle where the user of electronic device do not included due to the angular range, it is red The infrared ray of outer inductor transmitting will not be emitted to user, would not also receive reflected from user it is infrared Line avoids regarding other personnel and carrying out wrong prompting user.
Wherein, user can determine in several ways, for example, can be shot by the front camera of electronic device Image, determine account for the maximum portrait of image-region be user, alternatively, under when can normally be watched with default display interfaces Angle (such as 60 degree solid angle) corresponding to side and side is the angle where user.It in practical applications, can basis It specifically needs to define the user, not limit herein.It should be noted that the angle in the embodiment of the present invention each mean it is vertical Body angle.
When monitoring that infrared inductor receives reflected infrared ray, show that there are other around electronic device Personnel, these personnel may invade the privacy of user, in order to protect the privacy of user, according to preset indicating mode It is reminded, which includes but not limited to prompting message pattern, control luminance patterns and optically focused pattern etc.. Specifically, the display reminding message on the display interface of electronic device, or control display interface brightness be reduced to it is default bright Angle value, or open screen light-focusing function.Wherein, light-focusing function refers to so that the light dissipated on electronic device display interface is gathered Hold together so that the range smaller that the content on display interface can be seen, such as it is greater than or equal to 50cm with electronic device distance Personnel do not see the display interface of Chu's electronic device then.
In embodiments of the present invention, since the angular range that infrared inductor emits infrared ray does not include making for electronic device Angle where user can avoid with the user of infrared emitting, and if user nearby there are other staff, can Enough monitor reflected infrared ray, enabling effectively determine that user nearby whether there is other staff, and carried It wakes up, the privacy of effective protection user avoids the privacy of user from being seen by other staff.
Referring to Fig. 3, for another flow diagram of method for secret protection in the embodiment of the present invention, the method for secret protection Applied in electronic device shown in FIG. 1, and the electronic device includes infrared inductor, and this method includes:
Whether step 301, the application program for monitoring front stage operation are default application program, alternatively, monitoring front stage operation Whether the scene of application program is default scene;
Step 302, when the application program of the front stage operation is default application program, alternatively, working as the front stage operation The scene of application program when being default scene, start the infrared inductor in the electronic device;
In embodiments of the present invention, the condition for starting infrared inductor can be pre-set, which can be foreground fortune It is default scene that the scene of the application program for default application program or front stage operation could be descended after capable application, this is default Application program can be the application program of bank's class, the application program of stock class, mailbox etc., which can be password Input scene, chat scenario, copy editor's scene etc..
Whether the application program for monitoring front stage operation is default application program, or monitoring foreground fortune by privacy protection device Whether capable application scenarios are default scene, when it is default application program to monitor the application program of front stage operation, Huo Zhejian When the scene for measuring the application program of front stage operation is default scene, start the infrared inductor in electronic device to determine electronics With the presence or absence of the other staff in addition to user around device, and when there are other staff, reminded.It is appreciated that , pass through above-mentioned monitoring process, enabling start infrared sensor when being related to privacy, be not directed to privacy When close infrared sensor, to reduce the consumption of electric energy and resource.
Front camera in step 303, the calling electronic device obtains the image of the front camera shooting, And the angular transducer in the calling electronic device, obtain the angle of inclination of the electronic device;
Step 304 carries out image procossing to described image, determines that it is the user to account for the maximum portrait of image-region, And obtain the characteristics of image of the user;
Step 305, by the characteristics of image input scene model of the angle of inclination and the user, determine the use Relative angle of the person relative to the display interface of the electronic device;
Step 306, the angle covered using the infrared sensor and the relative angle, obtain the angle model It encloses;
Step 307, the control infrared inductor emit infrared ray according to angular range, and the angular range does not include institute State the angle where the user of electronic device;
Step 308, when monitoring that the infrared inductor receives reflected infrared ray, according to preset prompting mould Formula is reminded.
It is understood that above-mentioned steps 302, step 307 and step 308 respectively with the step in embodiment illustrated in fig. 2 201 to step 203 describe content it is similar, can be not repeated herein refering to the related content in embodiment illustrated in fig. 2.
In embodiments of the present invention, after starting infrared inductor, in order to emit to some specific angle Infrared ray, privacy protection device will call the front camera in electronic device, obtain the image of front camera shooting, and adjust With the angular transducer in the electronic device, the angle of inclination of electronic device is obtained.
Wherein, due to being arranged in the same side of the display interface of electronic device, can take makes front camera User, angular transducer are the angles of inclination for measuring electronic device, utilize the inclination of the image and electronic device of shooting Angle can determine the relativeness between electronic device and user, and then determine user relative to electronic device institute shape At relative angle, so as to determine do not include user where angle angular range.
Wherein, privacy protection device will carry out image procossing to image, which includes binary conversion treatment and cutting Processing, identifies the portrait for including in the image, and be respectively cut out, will account for the maximum portrait of image-region as use Person, and obtain the characteristics of image of the user.
Model of place is pre-set, which can train to obtain using machine learning algorithm, either It is counted based on big data, which can be SVM (Support Vector Machine, supporting vector Machine) algorithm, RNN (Recurrent neural networks, Recognition with Recurrent Neural Network algorithm), wherein model of place arrives use Training data is trained, which includes characteristics of image, the angle of inclination of electronic device, user relative to electronics dress The relative angle for the display interface set, by using training data to SVM models either RNN models or carry out big data system Meter, can obtain above-mentioned model of place so that be inputted by these contextual datas of the angle of inclination of characteristics of image and electronic device After the model of place, the relative angle under the scene can be effectively obtained, and further covered using the infrared sensor The angle of lid and above-mentioned relative angle, obtain angular range.For example, the angle that sensor is covered is subtracted above-mentioned relative angle Degree, you can obtain angular range.
Wherein, the angle that infrared sensor is covered is usually related with the position set by infrared sensor, and in this hair In bright embodiment, the angle of coverage of infrared sensor can be hemispheric, i.e., put down on the basis of the display interface of electronic device Face constitutes the cone of coverage of above-mentioned infrared sensor perpendicular to the direction of electronic device display interface and direction display interface the same side Degree.It is understood that the angle of coverage of infrared sensor on the basis of the content of display interface mainly by it can be seen that be arranged 's.
In embodiments of the present invention, by calling the front camera in electronic device, front camera shooting is obtained Image, and the angular transducer in electronic device is called, the angle of inclination of electronic device is obtained, and carry out at image to the image Reason determines that it is user to account for the maximum portrait of image-region, obtains the characteristics of image of the user, by above-mentioned angle of inclination and makes The characteristics of image input training of user obtains or counts obtained model of place, determines user relative to the aobvious of electronic device The relative angle for showing interface, the angle covered using the infrared sensor and above-mentioned relative angle, obtain angular range so that It can effectively determine the angular range not comprising the angle where user, the infrared ray for effectively avoiding infrared sensor from emitting It is emitted on the body of user, avoids erroneous judgement, improve the accuracy of prompting.
It should be noted that above-mentioned angular range can also obtain by other means, for example, angular range is to utilize base Learnt in the historical data that infrared inductor is reminded, specifically, privacy protection device each time according to While preset indicating mode is reminded, can with the whether accurate selection window of display alarm, in the window comprising content and Options, content can be " whether please select this time to remind accurate " and options can be "Yes" and "No", record user's When selecting, and this being reminded, the angular range of infrared sensor transmitting infrared ray and user are selected as historical data, and profit Learnt with the historical data, obtain above-mentioned angular range, it is to be understood that the angular range obtained using aforesaid way A period of time, such as a week can be used, and every a week, above-mentioned mode is recycled to reset angle model It encloses, it is to be understood that over time, become, such as after one month, it is contemplated that the use habit of user is relatively fixed, and is led to The accumulation and study of one month historical data are crossed, obtained angular range is matched with the use habit of user, then may be used To use the angular range to emit infrared ray always, and no longer show above-mentioned selection window.The angle determined by this method Range is also that can effectively avoid with transmitting infrared ray to user, avoids being mistakenly considered to need the case where need not reminding to carry It wakes up, improves the accuracy of prompting.
Referring to Fig. 4, for the structural schematic diagram of privacy protection device in the embodiment of the present invention, which belongs to Include the electronic device of infrared sensor, which includes:
Starting module 401, for starting the infrared inductor in the electronic device;
Control module 402 emits infrared ray, the angular range for controlling the infrared inductor according to angular range Angle where user not comprising the electronic device;
Reminding module 403, for when monitoring that the infrared inductor receives reflected infrared ray, according to pre- Indicating mode is set to be reminded.
It is understood that the content of modules and secret protection shown in Fig. 2 in privacy protection device shown in Fig. 4 The content of each step in method is similar, specifically can be with referring to Fig.2, do not limit herein.
In embodiments of the present invention, since the angular range that infrared inductor emits infrared ray does not include making for electronic device Angle where user can avoid with the user of infrared emitting, and if user nearby there are other staff, can Enough monitor reflected infrared ray, enabling effectively determine that user nearby whether there is other staff, and carried It wakes up, the privacy of effective protection user avoids the privacy of user from being seen by other staff.
Referring to Fig. 5, for another structural schematic diagram of privacy protection device in the embodiment of the present invention, the privacy protection device Including starting module 401, control module 402 and the reminding module 403 in embodiment as shown in Figure 4, and implement with shown in Fig. 4 Content described in example is similar, is not repeated herein.
In embodiments of the present invention, above-mentioned apparatus further includes:
Calling module 501 obtains institute for before control module, calling the front camera in the electronic device The image of front camera shooting is stated, and calls the angular transducer in the electronic device, obtains inclining for the electronic device Rake angle;
Acquisition module 502 is handled, for carrying out image procossing to described image, determines that accounting for the maximum portrait of image-region is The user, and obtain the characteristics of image of the user;
Input module 503, for by the characteristics of image input scene model at the angle of inclination and the user, determining Relative angle of the user relative to the display interface of the electronic device;
Range obtains module 504, and the angle for being covered using the infrared sensor and the relative angle are obtained The angular range;
Alternatively, the angular range is using the historical data reminded based on the infrared inductor learn It arrives.
It should be noted that modules are each in method for secret protection as shown in figure 3 in privacy protection device shown in Fig. 5 The content of step is similar, can not be limited herein refering to the content in embodiment illustrated in fig. 3.
In embodiments of the present invention, by calling the front camera in electronic device, front camera shooting is obtained Image, and the angular transducer in electronic device is called, the angle of inclination of electronic device is obtained, and carry out at image to the image Reason determines that it is user to account for the maximum portrait of image-region, obtains the characteristics of image of the user, by above-mentioned angle of inclination and makes The characteristics of image input training of user obtains or counts obtained model of place, determines user relative to the aobvious of electronic device The relative angle for showing interface, the angle covered using the infrared sensor and above-mentioned relative angle, obtain angular range so that It can effectively determine the angular range not comprising the angle where user, the infrared ray for effectively avoiding infrared sensor from emitting It is emitted on the body of user, avoids erroneous judgement, improve the accuracy of prompting.
It should be noted that above-mentioned angular range can also obtain by other means, for example, angular range is to utilize base Learnt in the historical data that infrared inductor is reminded, specifically, privacy protection device each time according to While preset indicating mode is reminded, can with the whether accurate selection window of display alarm, in the window comprising content and Options, content can be " whether please select this time to remind accurate " and options can be "Yes" and "No", record user's When selecting, and this being reminded, the angular range of infrared sensor transmitting infrared ray and user are selected as historical data, and profit Learnt with the historical data, obtain above-mentioned angular range, it is to be understood that the angular range obtained using aforesaid way A period of time, such as a week can be used, and every a week, above-mentioned mode is recycled to reset angle model It encloses, it is to be understood that over time, become, such as after one month, it is contemplated that the use habit of user is relatively fixed, and is led to The accumulation and study of one month historical data are crossed, obtained angular range is matched with the use habit of user, then may be used To use the angular range to emit infrared ray always, and no longer show above-mentioned selection window.The angle determined by this method Range is also that can effectively avoid with transmitting infrared ray to user, avoids being mistakenly considered to need the case where need not reminding to carry It wakes up, improves the accuracy of prompting.
Further, the embodiment of the present invention also provides a kind of electronic device, including memory, processor and is stored in described The computer program run on memory and on the processor when processor executes computer program, realizes such as Fig. 2 and figure Each step in method for secret protection in 3 illustrated embodiments.
Further, the embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer journey Sequence when computer program is executed by processor, is realized each in the method for secret protection in embodiment as shown in Figures 2 and 3 Step.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only Only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple module or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or module Letter connection can be electrical, machinery or other forms.
The module illustrated as separating component may or may not be physically separated, aobvious as module The component shown may or may not be physical module, you can be located at a place, or may be distributed over multiple On network module.Some or all of module therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each function module in each embodiment of the present invention can be integrated in a processing module, it can also That modules physically exist alone, can also two or more modules be integrated in a module.Above-mentioned integrated mould The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
It should be noted that for each method embodiment above-mentioned, describe, therefore it is all expressed as a series of for simplicity Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because According to the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module might not all be this hairs Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
It is to a kind of method for secret protection and device provided by the present invention, electronic device and computer-readable storage above The description of medium, for those skilled in the art, the thought of embodiment, in specific implementation mode and applies model according to the present invention There will be changes are placed, to sum up, the content of the present specification should not be construed as limiting the invention.

Claims (10)

1. a kind of method for secret protection, which is characterized in that the method for secret protection is applied to electronic device, the electronic device Including infrared inductor, the method includes:
Start the infrared inductor in the electronic device;
It controls the infrared inductor and emits infrared ray according to angular range, the angular range does not include the electronic device Angle where user;
When monitoring that the infrared inductor receives reflected infrared ray, reminded according to preset indicating mode.
2. according to the method described in claim 1, it is characterized in that, the control infrared inductor is sent out according to angular range Further include before penetrating infrared ray:
The front camera in the electronic device is called, the image of the front camera shooting is obtained, and calls the electricity Angular transducer in sub-device obtains the angle of inclination of the electronic device;
Image procossing is carried out to described image, determines that it is the user to account for the maximum portrait of image-region, and make described in acquisition The characteristics of image of user;
By the angle of inclination and the characteristics of image input scene model of the user, determine the user relative to described The relative angle of the display interface of electronic device;
The angle covered using the infrared sensor and the relative angle, obtain the angular range.
3. according to the method described in claim 1, it is characterized in that, the angular range is using based on the infrared inductor What the historical data reminded was learnt.
4. according to the method described in claim 1, it is characterized in that, infrared inductor setting is shown in the electronic device The side at the edge at interface and/or the electronic device.
5. method according to any one of claims 1 to 4, which is characterized in that described to start in the electronic device Include before infrared inductor:
Whether the application program for monitoring front stage operation is default application program, alternatively, the field of the application program of monitoring front stage operation Whether scape is default scene;
When the application program of the front stage operation is default application program, alternatively, work as the application program of the front stage operation Scene is the step of executing the infrared inductor of the startup electronic device when presetting scene.
6. method according to any one of claims 1 to 4, which is characterized in that described to be carried out according to preset indicating mode It reminds, including:
The display reminding message on the display interface of the electronic device, or the control display interface brightness be reduced to it is pre- If brightness value, or open screen light-focusing function.
7. a kind of privacy protection device, which is characterized in that the privacy protection device is applied to electronic device, the electronic device Including infrared inductor, described device include:
Starting module, for starting the infrared inductor in the electronic device;
Control module emits infrared ray for controlling the infrared inductor according to angular range, and the angular range does not include Angle where the user of the electronic device;
Reminding module, for when monitoring that the infrared inductor receives reflected infrared ray, according to preset prompting Pattern is reminded.
8. device according to claim 7, which is characterized in that described device further includes:
Calling module calls the front camera in the electronic device for before control module, obtains described preposition take the photograph As the image that head is shot, and the angular transducer in the electronic device is called, obtains the angle of inclination of the electronic device;
Acquisition module is handled, for carrying out image procossing to described image, determines that it is described make to account for the maximum portrait of image-region User, and obtain the characteristics of image of the user;
Input module, for making described in by the characteristics of image input scene model at the angle of inclination and the user, determining Relative angle of the user relative to the display interface of the electronic device;
Range obtains module, and the angle for being covered using the infrared sensor and the relative angle obtain the angle Spend range;
Alternatively, the angular range is to be learnt to obtain using the historical data reminded based on the infrared inductor 's.
9. a kind of electronic device, including memory, processor and it is stored on the memory and runs on the processor Computer program, which is characterized in that when the processor executes the computer program, realize as claim 1 to 6 is arbitrary Each step in method for secret protection described in one.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program When being executed by processor, each step of the method for secret protection as described in claim 1 to 6 any one is realized.
CN201810262828.2A 2018-03-28 2018-03-28 Privacy protection method and device, electronic device and computer readable storage medium Expired - Fee Related CN108416231B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810262828.2A CN108416231B (en) 2018-03-28 2018-03-28 Privacy protection method and device, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810262828.2A CN108416231B (en) 2018-03-28 2018-03-28 Privacy protection method and device, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108416231A true CN108416231A (en) 2018-08-17
CN108416231B CN108416231B (en) 2021-06-08

Family

ID=63133867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810262828.2A Expired - Fee Related CN108416231B (en) 2018-03-28 2018-03-28 Privacy protection method and device, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108416231B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109118454A (en) * 2018-08-30 2019-01-01 北京旷视科技有限公司 Image processing method, device, system, computer readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010128778A (en) * 2008-11-27 2010-06-10 Sony Ericsson Mobilecommunications Japan Inc Information display device, peep prevention method for the information display device and peep prevention program
CN102610035A (en) * 2012-04-05 2012-07-25 广州广电运通金融电子股份有限公司 Financial self-service device and anti-peeping system and anti-peeping method thereof
CN105279459A (en) * 2014-11-20 2016-01-27 维沃移动通信有限公司 Terminal anti-peeping method and mobile terminal
CN105827820A (en) * 2015-12-25 2016-08-03 维沃移动通信有限公司 Peeping prevention method for mobile terminal and mobile terminal
CN106548144A (en) * 2016-10-31 2017-03-29 广东欧珀移动通信有限公司 A kind of processing method of iris information, device and mobile terminal
CN106598209A (en) * 2015-10-20 2017-04-26 中兴通讯股份有限公司 Terminal screen display control method, device and terminal
CN106650467A (en) * 2016-09-22 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Method, mobile terminal and system for data encryption
CN107527036A (en) * 2017-08-29 2017-12-29 努比亚技术有限公司 A kind of Environmental security detection method, terminal and computer-readable recording medium
CN107577959A (en) * 2017-10-11 2018-01-12 厦门美图移动科技有限公司 A kind of method for secret protection and mobile terminal

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010128778A (en) * 2008-11-27 2010-06-10 Sony Ericsson Mobilecommunications Japan Inc Information display device, peep prevention method for the information display device and peep prevention program
CN102610035A (en) * 2012-04-05 2012-07-25 广州广电运通金融电子股份有限公司 Financial self-service device and anti-peeping system and anti-peeping method thereof
WO2013149466A1 (en) * 2012-04-05 2013-10-10 广州广电运通金融电子股份有限公司 Financial self-service equipment and anti-peeping system and method therefor
CN105279459A (en) * 2014-11-20 2016-01-27 维沃移动通信有限公司 Terminal anti-peeping method and mobile terminal
CN106598209A (en) * 2015-10-20 2017-04-26 中兴通讯股份有限公司 Terminal screen display control method, device and terminal
CN105827820A (en) * 2015-12-25 2016-08-03 维沃移动通信有限公司 Peeping prevention method for mobile terminal and mobile terminal
CN106650467A (en) * 2016-09-22 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Method, mobile terminal and system for data encryption
CN106548144A (en) * 2016-10-31 2017-03-29 广东欧珀移动通信有限公司 A kind of processing method of iris information, device and mobile terminal
CN107527036A (en) * 2017-08-29 2017-12-29 努比亚技术有限公司 A kind of Environmental security detection method, terminal and computer-readable recording medium
CN107577959A (en) * 2017-10-11 2018-01-12 厦门美图移动科技有限公司 A kind of method for secret protection and mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
TETSUJI TAKADA: "FakePointer: An Authentication Scheme for Improving Security against Peeping Attacks Using Video Cameras", 《IEEE》 *
高慧霞 等: "防偷窥显示系统专利技术综述", 《中国新通信》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109118454A (en) * 2018-08-30 2019-01-01 北京旷视科技有限公司 Image processing method, device, system, computer readable storage medium

Also Published As

Publication number Publication date
CN108416231B (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN109002759A (en) text recognition method, device, mobile terminal and storage medium
CN113794801B (en) Method and device for processing geo-fence
CN107197146A (en) Image processing method and related product
CN112566152B (en) Method for Katon prediction, method for data processing and related device
CN110489215A (en) The treating method and apparatus of scene is waited in a kind of application program
CN110521192A (en) Electronic equipment and its close to discovery method
CN106331320B (en) Control the method and device of screen state
KR20150105802A (en) Beacon signal control method of electronic apparatus and electronic apparatus thereof
CN108702605A (en) A kind of method and apparatus that wireless communication connection is established
CN107367327A (en) Calibration method, device, mobile terminal and the readable storage medium storing program for executing of optical sensor
US10607076B2 (en) Method for iris recognition and related products
CN109409235B (en) Image recognition method and device, electronic equipment and computer readable storage medium
US11064112B2 (en) Image display method and device, and electronic device
CN110109608A (en) Text display method, device, terminal and storage medium
CN107342616A (en) A kind of method, apparatus and its terminal of intelligent control charging
CN107820684A (en) Channel Detection, method for sending information, device and communication equipment
CN107608720A (en) Using the display methods of footmark, device, mobile terminal and storage medium
CN107908939A (en) Terminal alarms method, apparatus and mobile terminal
CN106790992A (en) Safety prompt function method and smart mobile phone
CN110221882A (en) Display methods, device, mobile terminal and storage medium
CN110933312B (en) Photographing control method and related product
CN106294707A (en) A kind of countdown information output intent and device
EP4080862A1 (en) Intelligent reminding method and device
CN106375031A (en) Radio-frequency channel detection method and mobile terminal
CN107613115A (en) Event-prompting method, device, mobile terminal and readable storage medium storing program for executing

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210608