CN113378139A - Interface content peep-proof method, device, equipment and storage medium - Google Patents

Interface content peep-proof method, device, equipment and storage medium Download PDF

Info

Publication number
CN113378139A
CN113378139A CN202110656743.4A CN202110656743A CN113378139A CN 113378139 A CN113378139 A CN 113378139A CN 202110656743 A CN202110656743 A CN 202110656743A CN 113378139 A CN113378139 A CN 113378139A
Authority
CN
China
Prior art keywords
monitoring image
human body
preset
interface content
peep
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
CN202110656743.4A
Other languages
Chinese (zh)
Other versions
CN113378139B (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.)
Ping An International Smart City Technology Co Ltd
Original Assignee
Ping An International Smart City Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An International Smart City Technology Co Ltd filed Critical Ping An International Smart City Technology Co Ltd
Priority to CN202110656743.4A priority Critical patent/CN113378139B/en
Publication of CN113378139A publication Critical patent/CN113378139A/en
Application granted granted Critical
Publication of CN113378139B publication Critical patent/CN113378139B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/84Protecting input, output or interconnection devices output devices, e.g. displays or monitors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses an anti-peeping method for interface contents, which comprises the following steps: when detecting that a user is checking interface content displayed on an interactive interface of a mobile terminal, acquiring a first monitoring image based on a front-facing camera of the mobile terminal; judging whether the first monitoring image contains a human body entity area; when the first monitoring image contains the human body entity area, judging whether the pixel space occupied by the human body entity area in the first monitoring image meets a preset pixel condition; and when the pixel space occupied by the human body entity region in the first monitoring image meets the pixel condition, executing a preset peep-proof operation to prevent the interface content from being snooped. Therefore, when the user views the interface content on the mobile terminal, the anti-peeping operation is executed when other personnel are judged to snoop the interface content at the distance of the user, and therefore the safety of the anti-peeping method can be improved. The invention also relates to the technical field of block chains.

Description

Interface content peep-proof method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer security technologies, and in particular, to a method and an apparatus for preventing interface content from being peeped, a computer device, and a storage medium.
Background
With the development of computer technology, mobile terminals (e.g., personal mobile phones, personal computers, etc.) have penetrated into people's daily lives. Due to the convenience of the mobile terminal, people often use the mobile terminal to browse websites, check documents and other tasks.
However, when people use the mobile terminal, other people may snoop the interactive interface of the mobile terminal, thereby causing the information in the mobile terminal to be leaked. For this reason, many methods for preventing information on the interactive interface of the mobile terminal from being snooped by other persons have been proposed. For example, when the user views the information on the interactive interface of the mobile terminal, whether other people approach the user is detected, so that the snooping of other people is prevented. However, this method still has some disadvantages, for example, when other people use a tool with a telescopic function (e.g., a telescope, a mobile phone with a telescopic function (e.g., hua is P30), etc.) to snoop information on the interactive interface at a position far away from the user, the other people at a far distance cannot be accurately detected due to the fact that the other people are far away from the user, and thus the existence of the other people cannot be accurately determined. Therefore, the safety of the current peep-proof method still has a space for further improvement.
Disclosure of Invention
The technical problem to be solved by the invention is that the safety of the existing peep-proof method is lower.
In order to solve the technical problem, a first aspect of the present invention discloses a method for preventing interface content from being peeped, including:
when detecting that a user is looking up interface content displayed on an interactive interface of a mobile terminal, acquiring a first monitoring image at least comprising a face of the user based on a front camera of the mobile terminal;
judging whether the first monitoring image comprises a human body entity area, wherein the human body entity area is an area occupied by a human body entity in the first monitoring image;
when the first monitoring image contains the human body entity area, judging whether a pixel space occupied by the human body entity area in the first monitoring image meets a preset pixel condition;
and when the pixel space occupied by the human body entity region in the first monitoring image meets the pixel condition, executing a preset peep-proof operation to prevent the interface content from being snooped.
The invention discloses a peep-proof device for interface contents in a second aspect, which comprises:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first monitoring image at least containing the face of a user based on a front camera of a mobile terminal when detecting that the user is looking up interface content displayed on an interactive interface of the mobile terminal;
a judging module, configured to judge whether the first monitoring image includes a human body entity region, where the human body entity region is a region occupied by a human body entity in the first monitoring image;
the judging module is further configured to judge whether a pixel space occupied by the human body entity region in the first monitoring image meets a preset pixel condition when the first monitoring image includes the human body entity region;
and the peep-proof module is used for executing preset peep-proof operation to prevent the interface content from being snooped when the pixel space occupied by the human body entity area in the first monitoring image meets the pixel condition.
A third aspect of the present invention discloses a computer apparatus, comprising:
a memory storing executable program code;
a processor coupled to the memory;
the processor calls the executable program code stored in the memory to execute part or all of the steps of the interface content peeping prevention method disclosed by the first aspect of the invention.
In a fourth aspect, the present invention discloses a computer storage medium, which stores computer instructions, and when the computer instructions are called, the computer storage medium is configured to perform some or all of the steps of the anti-peeping method for interface content disclosed in the first aspect of the present invention.
In the embodiment of the invention, when a user checks interface contents on the mobile terminal, a first monitoring image is acquired based on a front-facing camera of the mobile terminal, then whether the first monitoring image comprises a human body entity region is judged, after the first monitoring image comprises the human body entity region is judged, whether a pixel space occupied by the human body entity region meets a preset pixel condition is continuously judged, and finally, when the pixel space occupied by the human body entity region meets the pixel condition is judged, a preset peep-proof operation is executed to prevent the interface contents from being snooped, so that when the user checks the interface contents on the mobile terminal, the first monitoring image containing the user is shot by the front-facing camera, and then whether the human body entity occupying the pixel space in the first monitoring image meets the pixel condition is judged, so that whether other people snoop the interface contents far away from the user can be judged, and when judging that other personnel snoop the interface content at the remote position of the user, the anti-peeping operation is executed, so that the safety of the anti-peeping method can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a peep-proof method for interface contents according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an application scenario of a peep-proof method for interface content according to an embodiment of the present invention;
fig. 3 is a schematic diagram of another application scenario of a peep-proof method for interface content according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another application scenario of the peep-proof method for interface content disclosed in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a peep-proof device for interface contents disclosed in an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a computer device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a computer storage medium according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, article, or article that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or article.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The invention discloses a peep-proof method, a device, computer equipment and a storage medium for interface content, when a user looks up the interface content on a mobile terminal, a first monitoring image is obtained based on a front camera of the mobile terminal, then whether the first monitoring image comprises a human body entity region is judged, after the first monitoring image comprises the human body entity region is judged, whether a pixel space occupied by the human body entity region meets a preset pixel condition is continuously judged, finally, when the pixel space occupied by the human body entity region meets the pixel condition is judged, a preset peep-proof operation is executed to prevent the interface content from being snooped, so that when the user looks up the interface content on the mobile terminal, the first monitoring image containing the user is shot through the front camera, then whether the pixel space occupied by the first monitoring image meets the pixel condition is judged, therefore, whether other personnel snoop the interface content at the distance of the user can be judged, and the peep-proof operation is executed when the other personnel snoop the interface content at the distance of the user is judged, so that the safety of the peep-proof method can be improved. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for preventing interface content from being peeped according to an embodiment of the present invention. As shown in fig. 1, the peep-proof method for the interface content may include the following operations:
101. when detecting that a user is looking at interface content displayed on an interactive interface of a mobile terminal, acquiring a first monitoring image at least containing a face of the user based on a front camera of the mobile terminal.
In the step 101, the mobile terminal may be a device with a front camera, such as a personal mobile phone or a personal computer of the user. For example, when the user views the content on the mobile phone, the front camera of the mobile phone is started to capture the first monitoring image. When a user views a mobile phone, the user usually needs to look at the front face of the mobile phone, so the captured first monitoring image usually contains the front face of the user.
102. And judging whether the first monitoring image comprises a human body entity area, wherein the human body entity area is an area occupied by a human body entity in the first monitoring image.
In the step 102, the human body entity region in the first monitored image may be detected by an edge detection algorithm, a histogram detection method, or the like. For example, whether the contour of the human body exists in the first monitored image is detected, and when the contour of the human body exists, the region corresponding to the contour of the human body may be used as the human body entity region. Besides the face of the user, the first monitoring image usually records the situation of the surrounding environment of the user when the user views the interface content. When a human body appears in the first monitoring image, the human body indicates that other people appear in the surrounding environment of the user, namely, other people may snoop around the user.
103. And when the first monitoring image contains the human body entity area, judging whether the pixel space occupied by the human body entity area in the first monitoring image meets a preset pixel condition or not.
In step 103, after the first monitored image is determined to include the human body entity region, it may be determined whether the pixel space occupied by the human body entity region in the first monitored image satisfies the pixel condition, for example, it is determined whether the pixel space occupied by the human body entity region in the first monitored image is within the preset pixel range, and it is determined whether the pixel space occupied by the human body entity region in the first monitored image satisfies the preset proportion, so as to determine whether the human body in the first monitored image is another person snooping at a distance from the user. When the number of pixels occupied by the human body entity region in the first monitoring image is large, that is, the human body corresponding to the human body entity region is close to the user, and the human body entity region cannot be another person who snoops at a distance from the user. When the number of pixels occupied by the human body entity region in the first monitoring image is small, that is, the human body corresponding to the human body entity region is far away from the user, the human body entity region may be another person who snoops at the far away of the user. It should be noted that there may be a plurality of human body entity regions in the first monitoring image, where a part of the human body entity regions may satisfy the pixel condition, and another part of the human body entity regions may not satisfy the pixel condition, and at this time, it is only necessary that any one of the human body entity regions satisfies the pixel condition, and the subsequent peep-proof operation may be triggered to be executed.
104. And when the pixel space occupied by the human body entity region in the first monitoring image meets the pixel condition, executing a preset peep-proof operation to prevent the interface content from being snooped.
In step 104, when it is determined that the pixel space occupied by the human body entity region in the first monitored image satisfies the pixel condition, that is, it indicates that there is another person snooping at a distance from the user, at this time, the mobile terminal may execute a peep-proof operation, for example, a current interface of the mobile terminal is displayed as a preset picture, so as to prevent the interface content from being snooped by the other person. Referring to fig. 2, when it is detected that another person snoops at a distance from the user, the current interface of the mobile terminal may be switched to a preset peep-proof screen.
It can be seen that, when the user views the interface content on the mobile terminal, the peep-proof method for the interface content described in fig. 1 is implemented, first obtaining a first monitoring image based on a front-facing camera of the mobile terminal, then determining whether the first monitoring image includes a human body entity region, and after determining that the first monitoring image includes the human body entity region, continuously determining whether a pixel space occupied by the human body entity region meets a preset pixel condition, and finally executing a preset peep-proof operation to prevent the interface content from being snooped when determining that the pixel space occupied by the human body entity region meets the pixel condition, so that when the user views the interface content on the mobile terminal, the first monitoring image including the user is shot by the front-facing camera, and then the human body entity satisfying the pixel condition by determining whether the pixel space occupied by the first monitoring image appears, therefore, whether other personnel snoop the interface content at the distance of the user can be judged, and the peep-proof operation is executed when the other personnel snoop the interface content at the distance of the user is judged, so that the safety of the peep-proof method can be improved.
In an optional embodiment, after the front-facing camera based on the mobile terminal acquires the first monitoring image at least including the face of the user, before the preset peep-proof operation is performed to prevent the interface content from being snooped, the method further includes:
extracting face data corresponding to each face in the first monitoring image;
comparing the face data corresponding to each face in the first monitoring image with a preset face data set to determine whether the first monitoring image contains a first target face area, wherein the first target face area is an area occupied by the faces of persons not in a preset white list in the first monitoring image, and the face data set contains the face data of each person in the white list;
and when the first monitoring image contains the first target face area, triggering and executing the step of executing the preset peep-proof operation to prevent the interface content from being snooped.
In this optional embodiment, after the first monitoring image is acquired, whether the peep-proof operation needs to be performed may be further determined according to whether the face of the person not in the preset white list appears in the first monitoring image. Specifically, a white list of people may be preset, and face data of each person in the white list may be collected. Then, face data corresponding to each face in the first monitoring image are extracted. Then, the extracted face data corresponding to each face is compared with the face data (namely, a face data set) of each person in a pre-collected white list, if the comparison of the face data corresponding to a certain extracted face is unsuccessful, it is indicated that a face which does not belong to the person in the white list exists in the extracted face, and it can be determined that the first monitored image contains a first target face region, that is, the content of the interface of a person which is not in the white list may be snooped by a near person of the user. Referring to fig. 3, when it is detected that another person snoops near the user, the current interface of the mobile terminal may be switched to a preset peep-proof screen.
Therefore, by implementing the optional embodiment, after the first monitoring image is acquired, whether the first monitoring image contains the face of a person not in the white list is judged, and if yes, the peep-proof operation is executed, so that when the user views the interface content on the mobile terminal, whether a person not in the white list snoops the interface content near the user is judged, and when the person not in the white list snoops the interface content near the user is judged, the peep-proof operation is executed, so that the safety of the peep-proof method can be further improved.
In an optional embodiment, after determining that the first monitoring image includes the first target face region, before performing a preset peep-prevention operation to prevent the interface content from being snooped, the method further includes:
judging whether the number of the first target face areas contained in the first monitoring image is greater than or equal to a preset number or not;
when the number of the first target face areas contained in the first monitoring image is greater than or equal to the preset number, displaying a target prompt box on an interactive interface of the mobile terminal, and triggering and executing the preset peep-proof operation to prevent the interface content from being snooped, wherein the target prompt box is used for prompting the user to view the interface content later;
and after the preset peep-proof operation is executed to prevent the interface content from being snooped, the method further comprises the following steps:
acquiring a target input operation input by the user, wherein the target input operation is used for indicating that the user agrees or disagrees to view the interface content later;
when the acquired target input operation indicates that the user does not agree with the interface content to be viewed later, performing peep-proof recovery operation corresponding to the peep-proof operation to recover the interface content to a state capable of being viewed normally.
In this optional embodiment, after determining that the people not in the white list appear in the first monitoring image, it may be continuously determined whether the number of the people not in the white list is greater than or equal to two, and when determining that the number of the people not in the white list is greater than or equal to two, it indicates that a plurality of people not in the white list exist around the user, that is, the user is currently in a multi-person scene (see fig. 4), for example, the user is taking a subway or a bus. In a multi-user scenario, if the user insists on continuously viewing the interface content, there is a greater risk of being snooped, but in the multi-user scenario, although there are a plurality of people not in the white list around the user, these people may not be snooping the interface content viewed by the user, so the user may select whether to continuously view the interface content according to actual needs, for example, when the user needs to handle an urgent task, the user needs to continuously view the interface content. Therefore, after the user is judged to be in the multi-person scene currently, the peep-proof operation can be executed, and the user is prompted to view the interface content later by the aid of the target prompt box on the interactive interface. Then, the target operation input by the user is acquired, for example, the target operation input may be acquired by providing two buttons in the target prompt box, when the user clicks one of the buttons, that is, indicating that the user agrees to view later, and when the user clicks the other button, that is, indicating that the user disagrees to view later. Finally, if the user does not agree to view the interface content later, a peep-proof recovery operation (described later in detail) may be performed, thereby recovering the interface content to a state that can be normally viewed.
It can be seen that, by implementing the optional embodiment, after determining that the people not in the white list appear in the first monitoring image, it is continuously determined whether the number of the people not in the white list appearing in the first monitoring image is greater than or equal to two (i.e., it is determined whether the user is in a multi-person scene), if it is determined that the user is in the multi-person scene, the user is prompted to view the interface content later while performing the peep-proof operation, and when the user disagrees with viewing the interface content later, a corresponding peep-proof recovery operation is performed to recover the interface content to be normal, so that the flexibility of the peep-proof method can be improved, and the peep-proof method can be better applied to the multi-person scene.
In an optional embodiment, after the performing a peep-proof recovery operation corresponding to the peep-proof operation to enable the interface content to be normally viewed, the method further includes:
acquiring a second monitoring image at least containing the face of the user based on a front camera of the mobile terminal;
extracting face data corresponding to each face in the second monitoring image;
comparing the face data corresponding to each face in the second monitored image with the face data set, and detecting the face data corresponding to each face in the second monitored image based on a preset eyeball tracking algorithm to determine whether the second monitored image contains a second target face area, wherein the second target face area is an area occupied by the face of a person who is not in the white list and is watching the interface content in the second monitored image;
and when the second monitoring image contains the second target face area, triggering and executing the preset peep-proof operation again to prevent the interface content from being snooped.
In this optional embodiment, when the user insists on viewing the interface content in the multi-person scene, since a human body or a human face may appear in the first monitoring image in the multi-person scene to a great extent, which may cause erroneous judgment, it is obviously inappropriate to continue to judge whether the peeping-proof operation needs to be performed by judging whether the human body or the human face appears in the first monitoring image. At this time, the mobile terminal can enter a peep-proof mode in a multi-person scene. In the peep-proof mode in the multi-person scene, the front-facing camera can be used again to shoot the second monitoring image, then, the face data corresponding to each face extracted from the second monitoring image is compared with the face data (namely, the face data set) of each person in the pre-collected white list, and meanwhile, the face data corresponding to each face in the second monitoring image is detected by using the existing eye tracking algorithm (such as the eyelike algorithm and the lookie-lookie algorithm), so that whether the person who watches the interface content and is not in the white list exists in the second monitoring image or not is judged. And when judging that the second monitoring image has the personnel who are watching the interface content and are not in the white list, performing the peep-proof operation again. The eyeball tracking algorithm can detect the gaze direction of the eyeball, the center of the eyeball and the like.
Therefore, when the user insists on viewing the interface content in the multi-user scene, whether the peep-proof operation is executed again is determined by judging whether people around the user who are not in the white list are watching the interface content, so that the peep-proof method can be further suitable for the multi-user scene, and the safety of the peep-proof method can be further improved.
In an optional embodiment, the determining whether the pixel space occupied by the human body entity region in the first monitored image meets a preset pixel condition includes:
judging whether the pixel space occupied by the human body entity area in the first monitoring image is within a preset pixel space range;
when the pixel space occupied by the human body entity area in the first monitoring image is within the pixel space range, determining that the pixel space occupied by the human body entity area in the first monitoring image meets a preset pixel condition;
when the pixel space occupied by the human body entity area in the first monitoring image is not in the pixel space range, determining that the pixel space occupied by the human body entity area in the first monitoring image does not satisfy the pixel condition, or,
judging whether the ratio of the pixel space occupied by the human body entity area in the first monitoring image to the pixel space occupied by the face of the user in the first monitoring image is within a preset ratio range or not;
when the ratio is within the ratio range, determining that the pixel space occupied by the human body entity area in the first monitoring image meets a preset pixel condition;
and when the ratio is not in the range of the ratio, determining that the pixel space occupied by the human body entity area in the first monitoring image does not meet the pixel condition.
In this optional embodiment, according to the imaging characteristic of the front camera, the farther the human body entity in the first monitored image is from the front camera, the fewer pixels in the first monitored image are occupied by the human body entity region corresponding to the human body entity, so that the distance of the human body entity from the front camera can be inferred according to the pixel space occupied by the human body entity region in the first monitored image. If the pixel space occupied by the human body entity 30 to 50 meters away from the front camera in the first monitoring image is within the range of 50 to 100 pixels according to the actual test, the preset pixel space range can be set to be 50 to 100 pixels, so that whether the human body entity is within the range of 30 to 50 meters away from the front camera is judged. In addition, when the user views the interface content, the distance between the face of the user and the front camera is generally fixed, so that the pixel space occupied by the face of the user in the first monitoring image is relatively fixed. Therefore, whether the human body entity is within the preset distance range from the front camera can be judged by judging the ratio of the pixel space occupied by the human body entity area in the first monitoring image to the pixel space occupied by the face of the user in the first monitoring image. For example, according to actual tests, when the ratio range is preset to 0.05 to 0.1, it can be determined whether the human body entity is within a range of 30 to 50 meters from the front camera.
Therefore, by implementing the optional embodiment, whether the pixel space occupied by the human body entity region is within the preset pixel space range or not, or whether the ratio of the pixel space occupied by the human body entity region to the pixel space occupied by the face of the user is within the preset ratio range or not is judged, so that whether other personnel snoop the interface content at the distance of the user or not is judged, and the safety of the peeping prevention method can be improved.
In an optional embodiment, the performing a preset peep-proof operation to prevent the interface content from being snooped includes:
displaying a preset image in the area of the interface content in the interactive interface to cover the interface content, or,
adjusting the brightness value of the interface content in the area of the interactive interface to a preset value, or,
and adjusting the font of the text contained in the interface content into a preset small font.
In this alternative embodiment, the preset peep-proof operation may be to display a preset image in the area where the interface content is located, so as to overlay the interface content, and at this time, the corresponding peep-proof recovery operation may be to no longer display the image, but to redisplay the interface content in the area. The peep-proof operation may also be to adjust the brightness value of the area where the interface content is located to a lower value (for example, the brightness is 10, 5, and the like), so as to prevent the interface content from being snooped by reducing the brightness of the interface content, and at this time, the corresponding peep-proof recovery operation may be to adjust the brightness value of the area where the interface content is located to a normal value. The peep-proof operation may also be to adjust the font of the text in the interface content to a small font (for example, the small font is a small six font, a small seven font, or the like), so as to prevent the interface content from being snooped by adjusting the font of the interface content to be small, and at this time, the corresponding peep-proof recovery operation may be to adjust the font of the interface content to be a normal font.
Therefore, by implementing the optional embodiment, the interface content is prevented from being snooped by displaying the preset image to cover the interface content, adjusting the brightness of the interface content and adjusting the font of the interface content, so that the safety of the peeping prevention method can be improved.
Optionally, it is also possible: and uploading the peep-proof information of the interface content of the peep-proof method of the interface content to the block chain.
Specifically, the peep-proof information of the interface content is obtained by operating the peep-proof method of the interface content, and is used for recording the peep-proof condition of the interface content, such as the obtained first monitoring image, the determined human body entity area, the execution time of the peep-proof operation, and the like. The security and the fair transparency to the user can be ensured by uploading the peep-proof information of the interface content to the block chain. The user can download the anti-peeping information of the interface content from the blockchain, so as to verify whether the anti-peeping information of the interface content of the anti-peeping method of the interface content is tampered. The blockchain referred to in this example is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Example two
Referring to fig. 5, fig. 5 is a schematic structural diagram of an interface content peep-proof device according to an embodiment of the present invention. As shown in fig. 5, the peep prevention device for the interface content may include:
an obtaining module 201, configured to obtain, based on a front camera of a mobile terminal, a first monitoring image at least including a face of a user when it is detected that the user is viewing interface content displayed on an interactive interface of the mobile terminal;
a determining module 202, configured to determine whether the first monitoring image includes a human body entity region, where the human body entity region is a region occupied by a human body entity in the first monitoring image;
the determining module 202 is further configured to determine whether a pixel space occupied by the human body entity region in the first monitoring image meets a preset pixel condition when the first monitoring image includes the human body entity region;
a peep-proof module 203, configured to execute a preset peep-proof operation to prevent the interface content from being snooped when the pixel space occupied by the human body entity region in the first monitored image meets the pixel condition.
In an optional embodiment, the apparatus further comprises:
the extraction module is used for extracting face data corresponding to each face in the first monitoring image;
a comparison module, configured to compare face data corresponding to each face in the first monitoring image with a preset face data set to determine whether the first monitoring image includes a first target face region, where the first target face region is a region occupied by faces of people not in a preset white list in the first monitoring image, and the face data set includes face data of each person in the white list; and when the first monitoring image contains the first target face area, triggering the peep-proof module 203 to execute the preset peep-proof operation to prevent the interface content from being snooped.
In an optional embodiment, the determining module 202 is further configured to determine, after determining that the first monitored image includes the first target face region, whether the number of the first target face regions included in the first monitored image is greater than or equal to a preset number before the peep-prevention module 203 performs a preset peep-prevention operation to prevent the interface content from being snooped; when the number of the first target face areas included in the first monitoring image is greater than or equal to the preset number, displaying a target prompt box on an interactive interface of the mobile terminal, and triggering the peep-proof module 203 to execute the preset peep-proof operation to prevent the interface content from being snooped, wherein the target prompt box is used for prompting the user to view the interface content later;
the obtaining module 201 is further configured to obtain a target input operation input by the user after the peep-proof module 203 performs a preset peep-proof operation to prevent the interface content from being snooped, where the target input operation is used to indicate that the user agrees or disagrees to review the interface content later; and when the acquired target input operation indicates that the user does not agree with the interface content to be viewed later, performing peep-proof recovery operation corresponding to the peep-proof operation to recover the interface content to a state capable of being viewed normally.
In an optional embodiment, the obtaining module 201 is further configured to, after performing a peep prevention recovery operation corresponding to the peep prevention operation so that the interface content can be normally viewed, obtain, based on a front camera of the mobile terminal, a second monitoring image at least including a face of the user;
the extraction module is further configured to extract face data corresponding to each face in the second monitoring image;
the comparison module is further configured to compare the face data corresponding to each face in the second monitored image with the face data set, and detect the face data corresponding to each face in the second monitored image based on a preset eye tracking algorithm to determine whether the second monitored image includes a second target face region, where the second target face region is a region occupied by a face of a person who is not in the white list and is watching the interface content in the second monitored image; and when the second monitoring image contains the second target face area, triggering the peep-proof module 203 again to execute the preset peep-proof operation to prevent the interface content from being snooped.
In an optional embodiment, the specific way for the determining module 202 to determine whether the pixel space occupied by the human body entity region in the first monitored image meets the preset pixel condition is as follows:
judging whether the pixel space occupied by the human body entity area in the first monitoring image is within a preset pixel space range;
when the pixel space occupied by the human body entity area in the first monitoring image is within the pixel space range, determining that the pixel space occupied by the human body entity area in the first monitoring image meets a preset pixel condition;
when the pixel space occupied by the human body entity area in the first monitoring image is not in the pixel space range, determining that the pixel space occupied by the human body entity area in the first monitoring image does not satisfy the pixel condition, or,
judging whether the ratio of the pixel space occupied by the human body entity area in the first monitoring image to the pixel space occupied by the face of the user in the first monitoring image is within a preset ratio range or not;
when the ratio is within the ratio range, determining that the pixel space occupied by the human body entity area in the first monitoring image meets a preset pixel condition;
and when the ratio is not in the range of the ratio, determining that the pixel space occupied by the human body entity area in the first monitoring image does not meet the pixel condition.
In an optional embodiment, the specific way for the peep prevention module 203 to perform the preset peep prevention operation to prevent the interface content from being snooped is as follows:
displaying a preset image in the area of the interface content in the interactive interface to cover the interface content, or,
adjusting the brightness value of the interface content in the area of the interactive interface to a preset value, or,
and adjusting the font of the text contained in the interface content into a preset small font.
For the specific description of the peep-proof device of the interface content, reference may be made to the specific description of the peep-proof method of the interface content, and for avoiding repetition, details are not repeated here.
EXAMPLE III
Referring to fig. 6, fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present invention. As shown in fig. 6, the computer apparatus may include:
a memory 301 storing executable program code;
a processor 302 connected to the memory 301;
the processor 302 calls the executable program code stored in the memory 301 to execute the steps in the anti-peeping method for interface contents disclosed in the embodiment of the present invention.
Example four
Referring to fig. 7, an embodiment of the present invention discloses a computer storage medium 401, where the computer storage medium 401 stores computer instructions, and the computer instructions are used to execute steps of the interface content peeping prevention method disclosed in the embodiment of the present invention when being called.
The above-described embodiments of the apparatus are merely illustrative, and the modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above detailed description of the embodiments, those skilled in the art will clearly understand that the embodiments may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. Based on such understanding, the above technical solutions may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, where the storage medium includes a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc-Read-Only Memory (CD-ROM), or other disk memories, CD-ROMs, or other magnetic disks, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
Finally, it should be noted that: the disclosed anti-peeping method, apparatus, computer device and storage medium for interface content in the embodiments of the present invention are only preferred embodiments of the present invention, and are only used for illustrating the technical solutions of the present invention, rather than limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art; the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for peeping prevention of interface content, the method comprising:
when detecting that a user is looking up interface content displayed on an interactive interface of a mobile terminal, acquiring a first monitoring image at least comprising a face of the user based on a front camera of the mobile terminal;
judging whether the first monitoring image comprises a human body entity area, wherein the human body entity area is an area occupied by a human body entity in the first monitoring image;
when the first monitoring image contains the human body entity area, judging whether a pixel space occupied by the human body entity area in the first monitoring image meets a preset pixel condition;
and when the pixel space occupied by the human body entity region in the first monitoring image meets the pixel condition, executing a preset peep-proof operation to prevent the interface content from being snooped.
2. The method according to claim 1, wherein after the front-facing camera based on the mobile terminal acquires a first monitoring image at least including a face of the user, before performing a preset peep-proof operation to prevent the interface content from being snooped, the method further comprises:
extracting face data corresponding to each face in the first monitoring image;
comparing the face data corresponding to each face in the first monitoring image with a preset face data set to determine whether the first monitoring image contains a first target face area, wherein the first target face area is an area occupied by the faces of persons not in a preset white list in the first monitoring image, and the face data set contains the face data of each person in the white list;
and when the first monitoring image contains the first target face area, triggering and executing the step of executing the preset peep-proof operation to prevent the interface content from being snooped.
3. The method for peeping prevention of interface contents according to claim 2, wherein after the first monitoring image is determined to contain the first target face region, before the performing of the preset peeping prevention operation to prevent the interface contents from being snooped, the method further comprises:
judging whether the number of the first target face areas contained in the first monitoring image is greater than or equal to a preset number or not;
when the number of the first target face areas contained in the first monitoring image is greater than or equal to the preset number, displaying a target prompt box on an interactive interface of the mobile terminal, and triggering and executing the preset peep-proof operation to prevent the interface content from being snooped, wherein the target prompt box is used for prompting the user to view the interface content later;
and after the preset peep-proof operation is executed to prevent the interface content from being snooped, the method further comprises the following steps:
acquiring a target input operation input by the user, wherein the target input operation is used for indicating that the user agrees or disagrees to view the interface content later;
when the acquired target input operation indicates that the user does not agree with the interface content to be viewed later, performing peep-proof recovery operation corresponding to the peep-proof operation to recover the interface content to a state capable of being viewed normally.
4. The method according to claim 3, wherein after the performing a peep-proof recovery operation corresponding to the peep-proof operation to enable the interface content to be normally viewed, the method further comprises:
acquiring a second monitoring image at least containing the face of the user based on a front camera of the mobile terminal;
extracting face data corresponding to each face in the second monitoring image;
comparing the face data corresponding to each face in the second monitored image with the face data set, and detecting the face data corresponding to each face in the second monitored image based on a preset eyeball tracking algorithm to determine whether the second monitored image contains a second target face area, wherein the second target face area is an area occupied by the face of a person who is not in the white list and is watching the interface content in the second monitored image;
and when the second monitoring image contains the second target face area, triggering and executing the preset peep-proof operation again to prevent the interface content from being snooped.
5. The peep-proof method for interface contents according to any one of claims 1 to 4, wherein the determining whether the pixel space occupied by the human body entity region in the first monitored image meets a preset pixel condition includes:
judging whether the pixel space occupied by the human body entity area in the first monitoring image is within a preset pixel space range;
when the pixel space occupied by the human body entity area in the first monitoring image is within the pixel space range, determining that the pixel space occupied by the human body entity area in the first monitoring image meets a preset pixel condition;
and when the pixel space occupied by the human body entity area in the first monitoring image is not in the pixel space range, determining that the pixel space occupied by the human body entity area in the first monitoring image does not meet the pixel condition.
6. The peep-proof method for interface contents according to any one of claims 1 to 4, wherein the determining whether the pixel space occupied by the human body entity region in the first monitored image meets a preset pixel condition includes:
judging whether the ratio of the pixel space occupied by the human body entity area in the first monitoring image to the pixel space occupied by the face of the user in the first monitoring image is within a preset ratio range or not;
when the ratio is within the ratio range, determining that the pixel space occupied by the human body entity area in the first monitoring image meets a preset pixel condition;
and when the ratio is not in the range of the ratio, determining that the pixel space occupied by the human body entity area in the first monitoring image does not meet the pixel condition.
7. The method for peeping prevention of interface contents according to any one of claims 1 to 4, wherein the performing of the preset peeping prevention operation to prevent the interface contents from being snooped comprises:
displaying a preset image in the area of the interface content in the interactive interface to cover the interface content, or,
adjusting the brightness value of the interface content in the area of the interactive interface to a preset value, or,
and adjusting the font of the text contained in the interface content into a preset small font.
8. A privacy device for interface content, the device comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first monitoring image at least containing the face of a user based on a front camera of a mobile terminal when detecting that the user is looking up interface content displayed on an interactive interface of the mobile terminal;
a judging module, configured to judge whether the first monitoring image includes a human body entity region, where the human body entity region is a region occupied by a human body entity in the first monitoring image;
the judging module is further configured to judge whether a pixel space occupied by the human body entity region in the first monitoring image meets a preset pixel condition when the first monitoring image includes the human body entity region;
and the peep-proof module is used for executing preset peep-proof operation to prevent the interface content from being snooped when the pixel space occupied by the human body entity area in the first monitoring image meets the pixel condition.
9. A computer device, characterized in that the computer device comprises:
a memory storing executable program code;
a processor coupled to the memory;
the processor calls the executable program code stored in the memory to execute the anti-peep method of the interface content according to any one of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements a method for peeping prevention of interface contents according to any one of claims 1 to 7.
CN202110656743.4A 2021-06-11 2021-06-11 Interface content peep-proof method, device, equipment and storage medium Active CN113378139B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110656743.4A CN113378139B (en) 2021-06-11 2021-06-11 Interface content peep-proof method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110656743.4A CN113378139B (en) 2021-06-11 2021-06-11 Interface content peep-proof method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113378139A true CN113378139A (en) 2021-09-10
CN113378139B CN113378139B (en) 2022-11-29

Family

ID=77574225

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110656743.4A Active CN113378139B (en) 2021-06-11 2021-06-11 Interface content peep-proof method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113378139B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640813A (en) * 2022-03-31 2022-06-17 维沃移动通信有限公司 Peep-proof method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576943A (en) * 2008-05-06 2009-11-11 英业达股份有限公司 Peeping-preventing electronic device and peeping-preventing method
JP2010277205A (en) * 2009-05-26 2010-12-09 Nec Corp Information processing device, method and program
CN103955650A (en) * 2014-05-04 2014-07-30 合肥联宝信息技术有限公司 Method and device for preventing peeping through regulating screen luminance
CN105550554A (en) * 2015-07-28 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Anti-peep method and mobile terminal
CN106101529A (en) * 2016-06-07 2016-11-09 广东欧珀移动通信有限公司 A kind of camera control method and mobile terminal
JP2018088153A (en) * 2016-11-29 2018-06-07 キヤノンマーケティングジャパン株式会社 Information processor, information processing method, and program
US20200293754A1 (en) * 2017-12-04 2020-09-17 Shenzhen Orbbec Co., Ltd. Task execution method, terminal device, and computer readable storage medium
CN112492103A (en) * 2019-09-11 2021-03-12 北京小米移动软件有限公司 Terminal peep-proof method and device and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576943A (en) * 2008-05-06 2009-11-11 英业达股份有限公司 Peeping-preventing electronic device and peeping-preventing method
JP2010277205A (en) * 2009-05-26 2010-12-09 Nec Corp Information processing device, method and program
CN103955650A (en) * 2014-05-04 2014-07-30 合肥联宝信息技术有限公司 Method and device for preventing peeping through regulating screen luminance
CN105550554A (en) * 2015-07-28 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Anti-peep method and mobile terminal
CN106101529A (en) * 2016-06-07 2016-11-09 广东欧珀移动通信有限公司 A kind of camera control method and mobile terminal
JP2018088153A (en) * 2016-11-29 2018-06-07 キヤノンマーケティングジャパン株式会社 Information processor, information processing method, and program
US20200293754A1 (en) * 2017-12-04 2020-09-17 Shenzhen Orbbec Co., Ltd. Task execution method, terminal device, and computer readable storage medium
CN112492103A (en) * 2019-09-11 2021-03-12 北京小米移动软件有限公司 Terminal peep-proof method and device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640813A (en) * 2022-03-31 2022-06-17 维沃移动通信有限公司 Peep-proof method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113378139B (en) 2022-11-29

Similar Documents

Publication Publication Date Title
US10936760B1 (en) System and method for concealing sensitive data on a computing device
US9600688B2 (en) Protecting display of potentially sensitive information
US9466266B2 (en) Dynamic display markers
CN104899490B (en) A kind of method of locating terminal and user terminal
CN103218579B (en) A kind of method preventing screen content from being peeped and mobile terminal thereof
CN105117695A (en) Living body detecting device and method
CN110705507A (en) Identity recognition method and device
CN106682540A (en) Intelligent peep-proof method and device
US9870700B2 (en) Method and device for avoiding false alarms in monitoring systems
CN106778381B (en) Important information processing method and terminal
CN110135262A (en) The anti-peeping processing method of sensitive data, device, equipment and storage medium
CN111935349B (en) Terminal-based information display method and device, terminal and storage medium
CN110619239A (en) Application interface processing method and device, storage medium and terminal
CN113378139B (en) Interface content peep-proof method, device, equipment and storage medium
CN106874787B (en) Image viewing method and mobile terminal
CN113077354B (en) Insurance application verification method and device for electronic equipment
CN113282364A (en) Display method, display device and electronic equipment
CN113552989A (en) Screen recording method and device and electronic equipment
JP2009156948A (en) Display control device, display control method, and display control program
CN111737774A (en) Privacy peep-proof method and intelligent equipment
CN110135204A (en) Data guard method and device
CN116156050A (en) Display method and device
CN107358117B (en) Switching method, electronic equipment and computer storage medium
US11880822B2 (en) System and method for activating a physical token in augmented reality
CN108140080A (en) The method, apparatus and system of a kind of display

Legal Events

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