CN113961526A - Method and device for detecting screen shot picture - Google Patents

Method and device for detecting screen shot picture Download PDF

Info

Publication number
CN113961526A
CN113961526A CN202111387983.5A CN202111387983A CN113961526A CN 113961526 A CN113961526 A CN 113961526A CN 202111387983 A CN202111387983 A CN 202111387983A CN 113961526 A CN113961526 A CN 113961526A
Authority
CN
China
Prior art keywords
picture
marker
screenshot
current application
intersection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111387983.5A
Other languages
Chinese (zh)
Inventor
陈池
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202111387983.5A priority Critical patent/CN113961526A/en
Publication of CN113961526A publication Critical patent/CN113961526A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a method and a device for detecting a screenshot picture, wherein the method for detecting the screenshot picture comprises the following steps: responding to a file system change event, and acquiring a first picture; acquiring a marker from the interface content of the current application, wherein the marker is used for judging whether the first picture is a screen shot picture of the current application; determining that the first picture is a screenshot picture of the current application if the first picture includes the marker. According to the method and the device for detecting the screen capture picture, the screen capture event of the mobile application sensing system can be more accurate, missing report or misinformation is avoided, the condition that other pictures are taken as the screen capture of the system basically does not occur, and the user experience is effectively improved.

Description

Method and device for detecting screen shot picture
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for detecting a screenshot picture.
Background
In the mobile terminal application, the fact that the user actively triggers the screen capture means that the user is interested in the content in the current screen, or wants to feed back when finding a problem, or wants to share the content in the current screen with other people. Therefore, in order to facilitate user operation, it is set that when the application is in the foreground, the system can be perceived to capture a screen and remind the user of subsequent operations (such as feedback or sharing of the captured picture) which can be performed on the captured picture.
However, the current screen capture event is at a system level, and the process of sensing and judging the screen capture picture by the application is very difficult, so that the situation that the screen capture picture cannot be judged or misjudged frequently occurs, for example, after the screen capture of the user, the application cannot display the screen capture picture or an irrelevant picture is displayed to the user under the situation that the user does not screen capture.
Disclosure of Invention
The present disclosure provides a method and an apparatus for detecting a screenshot picture, so as to at least solve the above-mentioned problems in the related art.
According to a first aspect of the embodiments of the present disclosure, a method for detecting a screenshot picture is provided, including: responding to a file system change event, and acquiring a first picture; acquiring a marker from the interface content of the current application, wherein the marker is used for judging whether the first picture is a screen shot picture of the current application; determining that the first picture is a screenshot picture of the current application if the first picture includes the marker.
Optionally, the acquiring a first picture in response to a file system change event includes: when a change event of the file system is monitored, acquiring a picture which changes recently in the file system; and determining the picture as the first picture under the condition that the picture meets the preset time and size conditions.
Optionally, the preset time and size conditions include: the creation time of the picture is within a preset time period when the file system is monitored to have a change event, the width of the picture is the same as that of a screen displaying the interface content, and the height of the picture is larger than or equal to that of the screen.
Optionally, the obtaining a marker from the interface content of the current application includes: after the first picture is obtained, obtaining a second picture comprising the current interface content of the current application; acquiring a third picture comprising the current interface content of the current application after the preset time after the second picture is acquired; obtaining the marker based on the second picture and the third picture.
Optionally, the predetermined time is a time difference between a creation time of the first picture and a creation time of the second picture.
Optionally, the second picture and the third picture are obtained by: sending a command for acquiring the current interface content of the current application to a system through an API (application programming interface), and receiving the second picture returned by the system in response to the command; after delaying the predetermined time, sending the command to the system through the API again, and receiving the third picture returned by the system in response to the command.
Optionally, the obtaining the marker based on the second picture and the third picture includes: acquiring at least one intersection of the second picture and the third picture, wherein each intersection is composed of a plurality of pixel points; for each intersection of the at least one intersection, performing the following: searching pixel points on the boundary of the intersection to generate a boundary point set; and under the condition that each pixel point in the boundary point set is distributed on a regular line, determining the intersection as the marker.
Optionally, the regular lines comprise straight lines, elliptical arcs or circular arcs.
Optionally, the obtaining a marker from the interface content of the current application includes: and acquiring a preset interface element from the interface content of the current application as the marker.
Optionally, determining that the first picture includes the marker by: acquiring pixel point intersection of the marker and the first picture; determining that the first picture includes the marker if the pixel intersection includes the marker.
According to a second aspect of the embodiments of the present disclosure, there is provided a device for detecting a screenshot picture, including: a first picture acquisition unit configured to: responding to a file system change event, and acquiring a first picture; a marker acquisition unit configured to: acquiring a marker from the interface content of the current application, wherein the marker is used for judging whether the first picture is a screen shot picture of the current application; a screen shot determination unit configured to: determining that the first picture is a screenshot picture of the current application if the first picture includes the marker.
Optionally, the first picture taking unit is configured to: when a change event of the file system is monitored, acquiring a picture which changes recently in the file system; and determining the picture as the first picture under the condition that the picture meets the preset time and size conditions.
Optionally, the preset time and size conditions include: the creation time of the picture is within a preset time period when the file system is monitored to have a change event, the width of the picture is the same as that of a screen displaying the interface content, and the height of the picture is larger than or equal to that of the screen.
Optionally, the marker acquiring unit is configured to: after the first picture is obtained, obtaining a second picture comprising the current interface content of the current application; acquiring a third picture comprising the current interface content of the current application after the preset time after the second picture is acquired; obtaining the marker based on the second picture and the third picture.
Optionally, the predetermined time is a time difference between a creation time of the first picture and a creation time of the second picture.
Optionally, the marker acquiring unit is configured to: sending a command for acquiring the current interface content of the current application to a system through an API (application programming interface), and receiving the second picture returned by the system in response to the command; after delaying the predetermined time, sending the command to the system through the API again, and receiving the third picture returned by the system in response to the command.
Optionally, the marker acquiring unit is configured to: acquiring at least one intersection of the second picture and the third picture, wherein each intersection is composed of a plurality of pixel points; for each intersection of the at least one intersection, performing the following: searching pixel points on the boundary of the intersection to generate a boundary point set; and under the condition that each pixel point in the boundary point set is distributed on a regular line, determining the intersection as the marker.
Optionally, the regular lines comprise straight lines, elliptical arcs or circular arcs.
Optionally, the marker acquiring unit is configured to: and acquiring a preset interface element from the interface content of the current application as the marker.
Optionally, the screenshot picture determination unit is configured to: acquiring pixel point intersection of the marker and the first picture; determining that the first picture includes the marker if the pixel intersection includes the marker.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: at least one processor; at least one memory storing computer-executable instructions, wherein the computer-executable instructions, when executed by the at least one processor, cause the at least one processor to perform a method of detecting a screenshot according to the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium storing instructions that, when executed by at least one processor, cause the at least one processor to perform a method of detecting a screenshot picture according to the present disclosure.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, instructions in which are executable by a processor of a computer device to perform a method of detecting a screenshot according to the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
according to the method and the device for detecting the screenshot picture, the suspected screenshot picture determined by the current application is further judged according to the marker, the suspected screenshot picture is determined to be the screenshot picture of the current application under the condition that the suspected screenshot picture comprises the marker, and the marker is obtained from the interface content of the current application, so that the judgment accuracy is higher, the screenshot event of the mobile application sensing system can be more accurate, missing report or misinformation is avoided, other pictures are basically not taken as the screenshot of the system, and the user experience is effectively improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is an interface content illustrating an application according to an exemplary embodiment of the present disclosure.
Fig. 2 is a diagram illustrating interface content of another application according to an exemplary embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating a method of detecting a screen shot according to an exemplary embodiment of the present disclosure.
Fig. 4(a) and 4(b) are diagrams illustrating a second picture and a third picture according to an exemplary embodiment of the present disclosure.
Fig. 5 is a block diagram illustrating a detection apparatus of a screenshot picture according to an exemplary embodiment of the present disclosure.
Fig. 6 is a block diagram illustrating an electronic device 600 according to an example embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The embodiments described in the following examples do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In this case, the expression "at least one of the items" in the present disclosure means a case where three types of parallel expressions "any one of the items", "a combination of any plural ones of the items", and "the entirety of the items" are included. For example, "include at least one of a and B" includes the following three cases in parallel: (1) comprises A; (2) comprises B; (3) including a and B. For another example, "at least one of the first step and the second step is performed", which means that the following three cases are juxtaposed: (1) executing the step one; (2) executing the step two; (3) and executing the step one and the step two.
Currently, in mobile applications, in order to facilitate user operations and improve the use experience of products, a foreground application has been set to sense a system screenshot and remind a user of subsequent operations (for example, feedback or sharing of a screenshot picture) that can be performed on the screenshot picture. However, no interface for directly acquiring the screenshot picture is provided for Android or iOS, and various manufacturers have different customized functions for the Android system, and currently have long screenshot and other functions, so that sensing and judging the screenshot picture by common applications are very difficult.
A scheme for judging a screenshot picture is that when a foreground application senses that a system file changes, a picture file with the latest time sequence in a media library is read, the judgment is carried out according to preset conditions (for example, the creation time of the picture is within 3-5 seconds before the file system changes, the width and the height of the picture are consistent with the width and the height of a display screen, the file path name of the picture comprises screen/shot/screenshot and the like), if the conditions are met, the picture file is considered to be the screenshot picture generated by the system for the foreground application screenshot, and a popup window is popped up to prompt a user to feed back or share the screenshot picture. However, the scheme is very easy to cause misjudgment, for example, when the background application just finishes downloading a picture or finishes a certain thread and places the thread in a specific directory, misjudgment can be caused; or the long screen capture function of some systems also interferes the judgment, and the error conditions are two types: one is that the user has captured a screen, but is not determined because the determination conditions are too strict (e.g., the height of the long captured picture is greater than the height of the display screen); the other method is that the user does not capture the screen, but the user is considered to initiate the screen capture operation due to wrong judgment (for example, the picture downloaded by the background application meets the judgment condition of the screen capture picture), so that the application senses the screen capture picture, which is originally for improving the user experience, but the user is disturbed due to wrong judgment, and the user experience is reduced.
Based on this scheme, another scheme for judging the screen capture pattern is proposed at present: because the application can acquire the interface content of the application when the application is in the foreground, whether the application is a screen capture picture can be judged by comparing the interface content of the application with the content of the screen capture picture deduced by the scheme, if the interface content of the application is consistent with the content of the screen capture picture, the application is considered as the screen capture picture, and if not, the application is not judged as the screen capture picture. Although this solution can improve the accuracy of the determination to some extent, for example, fig. 1 is an interface content showing an application according to an exemplary embodiment of the present disclosure, referring to fig. 1, since the interface content shown in fig. 1 is static and does not change with time, so that an accurate determination can be made, but there is still a serious disadvantage that the interface content of many applications is dynamically changed, especially for various short video live applications with big heat at present, the playing interface of which changes at any moment, and since the application cannot know the occurrence moment of the system screenshot, the frame of image where the system screenshot occurs cannot be accurately obtained for accurate comparison, for example, fig. 2 is an interface content showing another application according to an exemplary embodiment of the present disclosure, wherein fig. 2(a) and fig. 2(b) are two screenshot pictures in a very short time interval, the content difference of the two pictures is extremely large, and the two pictures cannot be accurately matched, so that the scheme cannot be applied to the scene with dynamically changed interface content.
In order to enable a screen capture event of a mobile application sensing system to be more accurate and avoid false alarm, the disclosure provides a method and a device for detecting a screen capture picture, and particularly, a suspected screen capture picture determined by current application is further judged according to a marker, the suspected screen capture picture is determined to be the screen capture picture of the current application under the condition that the suspected screen capture picture comprises the marker, and the marker is obtained from the interface content of the current application, so that the judgment accuracy is higher, the screen capture event of the mobile application sensing system can be more accurate, the missing alarm or false alarm is avoided, other pictures can not be taken as the screen capture of the system basically, and the user experience is effectively improved. Hereinafter, a method and apparatus for detecting a screenshot picture according to an exemplary embodiment of the present disclosure will be described in detail with reference to fig. 3 to 6.
Firstly, it should be noted that the detection method of the screenshot picture provided by the present disclosure aims at the interface content of the application, which may be dynamic or static, and as a whole, no matter whether the interface content is static or dynamic, there is a content that does not change with time in the interface content of the application, so that the present disclosure sets up to extract the content that does not change with time in the interface content of the application as a marker, compares the marker with the suspected screenshot picture determined by the application, and if the suspected screenshot picture includes the marker, it is determined that the suspected screenshot picture is the screenshot picture of the application.
Fig. 3 is a flowchart illustrating a method of detecting a screen shot according to an exemplary embodiment of the present disclosure.
Referring to fig. 3, in step 301, a first picture may be obtained in response to a file system change event.
According to an exemplary embodiment of the disclosure, the system may store a screenshot picture generated after a user screenshot in the memory, so as to trigger a file system change event, and the current application may acquire a first picture in response to monitoring the file system change event, where the first picture is a screenshot picture candidate of the current application when preset time and size conditions are met (i.e., at this time, the first picture is a suspected screenshot picture). Here, the current Application may listen to whether the file system is changed in real time through an API (Application Program Interface) of the system. Specifically, the current application may register a listener through an API provided by the system, and after a file system change event occurs, the system may notify the current application of the event by calling the listener, but the notification only allows the current application to know that the file system change event occurs, and the changed file type and the changed content (for example, the change may be to create a file, update a file, delete a file, or the like) cannot be known, and in this case, the current application may obtain a picture that has changed recently in the file system (for example, but not limited to, a picture file that has changed recently may be queried by accessing a system media library) when the file system change event is monitored, determine the picture as a candidate screenshot picture (i.e., a first picture) of the current application when the picture meets preset time and size conditions, however, according to an exemplary embodiment of the present disclosure, the preset time and size conditions may include three: firstly, the creation time of the picture is within a preset time period (for example, within 3-5 seconds) when a file system change event is monitored; secondly, the width of the picture is the same as that of a screen displaying interface content (the system captures the content in the whole screen); thirdly, the height of the picture is greater than or equal to the height of the screen (the height of the long screen capture picture can be greater than the height of the display screen).
In step 302, a marker may be obtained from the interface content of the current application, where the marker is used to determine whether the first picture is a screenshot picture of the current application.
According to an exemplary embodiment of the present disclosure, a second picture including the current interface content of the current application may be acquired after the first picture is acquired, then a third picture including the current interface content of the current application may be acquired after a predetermined time after the second picture is acquired, and then the marker may be acquired based on the second picture and the third picture. Here, the predetermined time may be a time difference between the creation time of the first picture and the creation time of the second picture, and of course, the predetermined time may be flexibly set according to actual situations, which is not limited to this. Specifically, when the current application is in the foreground, it has the right to acquire the content of its own interface, and at this time, the current application may send a command to the system through the API to obtain the current interface content of the current application, in response to which the system sends a view of the current interface content (i.e., the second picture) to the current application, which, thereafter, after a predetermined time delay (e.g., 1000ms), the current application again sends a command to the system through the API to obtain the current interface content of the current application, the system sends a view of the current interface content at that moment (i.e., a third picture) to the current application in response to the command, here, the content in the second picture and the third picture may be all the same (e.g., the interface content of the current application is static) or partially the same (e.g., the interface content of the current application is dynamic, which may refer back to fig. 2).
According to an exemplary embodiment of the present disclosure, after obtaining the second picture and the third picture, at least one intersection of the second picture and the third picture may be obtained, where each intersection is composed of a plurality of pixel points. Specifically, the second picture and the third picture are essentially all sets of pixel points, and the intersection of the two sets is solved, that is, the same region of the second picture and the third picture is obtained. Here, the intersection may be solved by a Feature extraction algorithm, for example, a SIFT (Scale-innovative Feature Transform) algorithm, a SURF (Speeded-Up Robust Features) algorithm, an orb (organized FAST and computed brief) algorithm, or may be solved by using a basic pixel comparison method, which is not limited thereto. Here, after obtaining at least one intersection, further intersection boundary determination is needed to obtain more accurate markers, because part of the intersection in the obtained intersection may exist only in the second picture and the third picture, but may not always exist in the interface content at any time of the current application, and such intersection needs to be removed to improve the accuracy of the subsequent determination on the screenshot picture, for example, fig. 4(a) and 4(b) are second and third pictures showing an exemplary embodiment according to the present disclosure, and referring to fig. 4(a) and 4(b), the area of the sky circled by the ellipse is the same, but obviously, the area does not appear in all the display content of the current application.
According to the exemplary embodiment of the present disclosure, whether to remove a certain intersection may be determined by determining whether all the boundary pixel points of at least one intersection are distributed on the rule line, that is, the following operations may be performed for each intersection in at least one intersection: searching pixel points on the boundary of an intersection, generating a boundary point set, determining the intersection as a marker under the condition that each pixel point in the boundary point set is distributed on a regular line, specifically, if one pixel point which does not belong to the intersection exists in 8 adjacent pixel points of a certain intersection pixel point a, considering the pixel point a as the pixel point on the boundary of the intersection, continuously searching, and generating the boundary point set aiming at each intersection, wherein the boundary point set comprises a region boundary encircled by a square frame shown in fig. 4(a) and fig. 4(b) and a region boundary encircled by an elliptic line, and then judging whether each pixel point in the boundary point set is distributed on the regular line, wherein the regular line comprises a straight line, an elliptic arc line or an arc line, of course, rules can be added according to different requirements, for example, the straight line must be a horizontal straight line or a vertical straight line, but not limited to, a slant line, or only an elliptical arc line, or only an arc line. If there are pixels in the boundary point set distributed on the regular line, macroscopically, the corresponding intersection edge may appear blurred and cannot be distinguished from the adjacent area, and if the pixels in the boundary point set are all distributed on the regular line, the corresponding intersection edge is very clear, for example, as shown in fig. 4(a) and 4(b), the boundary of the heart-shaped area is very clear, and the partial boundary of the elliptical coil is relatively blurred, so that by this method, the intersection area of the elliptical coil in fig. 4(a) and 4(b) can be effectively removed, and the intersection area at the box frame is retained (i.e., the operation button, the prompt button and the bottom navigation bar are retained).
According to an exemplary embodiment of the present disclosure, a preset interface element may also be obtained from the interface content of the current application as a marker. In a specific application scenario, for example, in a development stage of an application, a preset interface element (for example, an operation button, a prompt button, a navigation bar, and the like of the application) in the interface content of the application, which is a content of the interface content of the application that does not change with time within an update period of the application, may be saved as a marker in advance, where the update period refers to a time interval during which the application is updated once. Therefore, when the screen capture picture is judged, the first picture can be directly compared with the pre-stored marker, the marker does not need to be acquired through the second picture and the third picture, and the detection efficiency and accuracy can be further improved.
Referring back to fig. 3, in step 303, it may be determined that the first picture is a currently applied screen capture picture in case the first picture includes a marker.
According to the exemplary embodiment of the disclosure, the intersection of the pixel points of the marker and the first picture may be obtained, and it is determined that the first picture includes the marker when the intersection of the pixel points includes the marker. Here, the coordinates of the markers may be first transformed, which may be described with reference to fig. 2 and 4. Fig. 2(a) and 2(b) are screen shots obtained by system screen shot, and fig. 4(a) and 4(b) (corresponding to a second picture and a third picture, respectively) are screen shots obtained by sending a request for obtaining the current interface content to the system by the current application, because the current application only has the authority to obtain the self-interface content, the system information notification column enclosed by the dotted line in fig. 2(a) and 2(b) does not exist in fig. 4(a) and 4(b), and therefore, the coordinates of the pixel points in the marker obtained by the second picture and the third picture are not consistent with the coordinates of the pixel points in the first picture, and coordinate conversion needs to be performed on the marker to obtain the intersection of the marker and the pixel points of the first picture under the same coordinate system (for example, the intersection can be solved by a feature extraction algorithm: SIFT algorithm, SURF algorithm, ORB algorithm, etc., or, the intersection may also be solved by using a basic pixel comparison method), and if the intersection and the like of the pixel points include the marker, it is determined that the first picture includes the marker. In some embodiments, it may be determined that the first picture includes the marker when the intersection of the pixels is equal to the marker (i.e., the pixels in the intersection of the pixels correspond to the pixels constituting the marker one to one), and in other embodiments, it may also be determined that the first picture includes the marker when the area of the intersection of the pixels occupies a predetermined area of the marker (e.g., occupies 70% of the area of the marker, etc.), which is not limited by the present disclosure.
Fig. 5 is a block diagram illustrating a detection apparatus of a screenshot picture according to an exemplary embodiment of the present disclosure.
Referring to fig. 5, the apparatus 500 for detecting a screenshot picture according to an exemplary embodiment of the present disclosure may include a first picture acquisition unit 501, a marker acquisition unit 502, and a screenshot picture determination unit 503.
The first picture acquiring unit 501 may acquire a first picture in response to a file system change event; the marker acquiring unit 502 may acquire a marker from the interface content of the current application, where the marker is used to determine whether the first picture is a screenshot picture of the current application; the screenshot picture determination unit 503 may determine that the first picture is a screenshot picture of a current application if the first picture includes a marker.
Since the method for detecting a screenshot shown in fig. 3 can be performed by the apparatus 500 for detecting a screenshot shown in fig. 5, and the first picture obtaining unit 501, the marker obtaining unit 502, and the screenshot determining unit 503 can respectively perform operations corresponding to step 301, step 302, and step 303 in fig. 3, any relevant details related to the operations performed by the units in fig. 5 can be referred to in the corresponding description of fig. 3, and are not repeated here.
Fig. 6 is a block diagram of an electronic device 600 according to an example embodiment of the present disclosure.
Referring to fig. 6, the electronic device 600 includes at least one memory 601 and at least one processor 602, the at least one memory 601 storing a set of computer-executable instructions that, when executed by the at least one processor 602, perform a method of detecting a screenshot picture according to an exemplary embodiment of the present disclosure.
By way of example, the electronic device 600 may be a PC computer, tablet device, personal digital assistant, smartphone, or other device capable of executing the set of instructions described above. Here, the electronic device 600 need not be a single electronic device, but can be any arrangement or collection of circuits capable of executing the above-described instructions (or sets of instructions), either individually or in combination. The electronic device 600 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device that interfaces with local or remote (e.g., via wireless transmission).
In the electronic device 600, the processor 602 may include a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a programmable logic device, a special purpose processor system, a microcontroller, or a microprocessor. By way of example, and not limitation, processors may also include analog processors, digital processors, microprocessors, multi-core processors, processor arrays, network processors, and the like.
The processor 602 may execute instructions or code stored in the memory 601, wherein the memory 601 may also store data. The instructions and data may also be transmitted or received over a network via a network interface device, which may employ any known transmission protocol.
The memory 601 may be integrated with the processor 602, for example, with RAM or flash memory disposed within an integrated circuit microprocessor or the like. Further, memory 601 may comprise a stand-alone device, such as an external disk drive, storage array, or any other storage device usable by a database system. The memory 601 and the processor 602 may be operatively coupled or may communicate with each other, e.g., through I/O ports, network connections, etc., such that the processor 602 can read files stored in the memory.
Further, the electronic device 600 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, mouse, touch input device, etc.). All components of the electronic device 600 may be connected to each other via a bus and/or a network.
According to an exemplary embodiment of the present disclosure, there may also be provided a computer-readable storage medium storing instructions, which when executed by at least one processor, cause the at least one processor to perform a method of detecting a screen shot according to the present disclosure. Examples of the computer-readable storage medium herein include: read-only memory (ROM), random-access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random-access memory (RAM), dynamic random-access memory (DRAM), static random-access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD + R, CD-RW, CD + RW, DVD-ROM, DVD-R, DVD + R, DVD-RW, DVD + RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or compact disc memory, Hard Disk Drive (HDD), solid-state drive (SSD), card-type memory (such as a multimedia card, a Secure Digital (SD) card or a extreme digital (XD) card), magnetic tape, a floppy disk, a magneto-optical data storage device, an optical data storage device, a hard disk, a magnetic tape, a magneto-optical data storage device, a hard disk, a magnetic tape, a magnetic data storage device, a magnetic tape, a magnetic data storage device, a magnetic tape, a magnetic data storage device, a magnetic tape, a magnetic data storage device, a magnetic tape, a magnetic data storage device, A solid state disk, and any other device configured to store and provide a computer program and any associated data, data files, and data structures to a processor or computer in a non-transitory manner such that the processor or computer can execute the computer program. The computer program in the computer-readable storage medium described above can be run in an environment deployed in a computer apparatus, such as a client, a host, a proxy device, a server, and the like, and further, in one example, the computer program and any associated data, data files, and data structures are distributed across a networked computer system such that the computer program and any associated data, data files, and data structures are stored, accessed, and executed in a distributed fashion by one or more processors or computers.
According to an exemplary embodiment of the present disclosure, a computer program product may also be provided, in which instructions are executable by a processor of a computer device to perform a method of detecting a screen shot according to an exemplary embodiment of the present disclosure.
According to the method and the device for detecting the screenshot picture, the suspected screenshot picture determined by the current application is further judged according to the marker, the suspected screenshot picture is determined to be the screenshot picture of the current application under the condition that the suspected screenshot picture comprises the marker, and the marker is obtained from the interface content of the current application, so that the judgment accuracy is higher, the screenshot event of the mobile application sensing system can be more accurate, the misinformation is avoided, the condition that other pictures are taken as the screenshot of the system basically does not occur, and the user experience is effectively improved.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for detecting a screenshot picture is characterized by comprising the following steps:
responding to a file system change event, and acquiring a first picture;
acquiring a marker from the interface content of the current application, wherein the marker is used for judging whether the first picture is a screen shot picture of the current application;
determining that the first picture is a screenshot picture of the current application if the first picture includes the marker.
2. The method for detecting the screenshot picture according to claim 1, wherein said obtaining the first picture in response to a file system change event comprises:
when a change event of the file system is monitored, acquiring a picture which changes recently in the file system;
and determining the picture as the first picture under the condition that the picture meets the preset time and size conditions.
3. The method for detecting the screenshot picture of claim 1, wherein said obtaining a marker from the interface content of the current application comprises:
after the first picture is obtained, obtaining a second picture comprising the current interface content of the current application;
acquiring a third picture comprising the current interface content of the current application after the preset time after the second picture is acquired;
obtaining the marker based on the second picture and the third picture.
4. The method for detecting the screenshot picture according to claim 3, wherein the obtaining the marker based on the second picture and the third picture comprises:
acquiring at least one intersection of the second picture and the third picture, wherein each intersection is composed of a plurality of pixel points;
for each intersection of the at least one intersection, performing the following:
searching pixel points on the boundary of the intersection to generate a boundary point set;
and under the condition that each pixel point in the boundary point set is distributed on a regular line, determining the intersection as the marker.
5. The method for detecting the screenshot picture, as recited in claim 1, wherein the obtaining a marker from the interface content of the current application, comprises:
and acquiring a preset interface element from the interface content of the current application as the marker.
6. The method for detecting a screenshot picture of claim 1, wherein the first picture is determined to include the marker by:
acquiring pixel point intersection of the marker and the first picture;
determining that the first picture includes the marker if the pixel intersection includes the marker.
7. A detection device for screen capture pictures is characterized by comprising:
a first picture acquisition unit configured to: responding to a file system change event, and acquiring a first picture;
a marker acquisition unit configured to: acquiring a marker from the interface content of the current application, wherein the marker is used for judging whether the first picture is a screen shot picture of the current application;
a screen shot determination unit configured to: determining that the first picture is a screenshot picture of the current application if the first picture includes the marker.
8. An electronic device, comprising:
at least one processor;
at least one memory storing computer-executable instructions,
wherein the computer-executable instructions, when executed by the at least one processor, cause the at least one processor to perform the method of detecting a screenshot of a picture as claimed in any of claims 1 to 6.
9. A computer-readable storage medium storing instructions that, when executed by at least one processor, cause the at least one processor to perform the method of detecting a screenshot picture of any of claims 1 to 6.
10. A computer program product comprising computer instructions, characterized in that the computer instructions, when executed by at least one processor, implement the method of detecting a screenshot picture according to any of claims 1 to 6.
CN202111387983.5A 2021-11-22 2021-11-22 Method and device for detecting screen shot picture Pending CN113961526A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111387983.5A CN113961526A (en) 2021-11-22 2021-11-22 Method and device for detecting screen shot picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111387983.5A CN113961526A (en) 2021-11-22 2021-11-22 Method and device for detecting screen shot picture

Publications (1)

Publication Number Publication Date
CN113961526A true CN113961526A (en) 2022-01-21

Family

ID=79471526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111387983.5A Pending CN113961526A (en) 2021-11-22 2021-11-22 Method and device for detecting screen shot picture

Country Status (1)

Country Link
CN (1) CN113961526A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024104113A1 (en) * 2022-11-16 2024-05-23 维沃移动通信有限公司 Screen capture method, screen capture apparatus, electronic device, and readable storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104571866A (en) * 2015-01-06 2015-04-29 深圳市金立通信设备有限公司 Screen capture method
US20160118025A1 (en) * 2014-10-22 2016-04-28 Alibaba Group Holding Limited Method and apparatus for screen capture on a display device
CN105719240A (en) * 2016-01-21 2016-06-29 腾讯科技(深圳)有限公司 Method and apparatus for picture processing
CN106020634A (en) * 2016-05-04 2016-10-12 北京小米移动软件有限公司 Screen capture method and device
CN107315682A (en) * 2017-06-22 2017-11-03 北京凤凰理理它信息技术有限公司 Test browser-safe method, device, storage medium and electronic equipment
CN107977418A (en) * 2017-11-23 2018-05-01 广东欧珀移动通信有限公司 A kind of screenshot picture management method, screenshot picture managing device and mobile terminal
CN108496150A (en) * 2016-10-18 2018-09-04 华为技术有限公司 A kind of method and terminal of screenshot capture and reading
CN109002842A (en) * 2018-06-27 2018-12-14 北京字节跳动网络技术有限公司 Image-recognizing method and device
CN109840830A (en) * 2019-01-22 2019-06-04 北京顺丰同城科技有限公司 A kind of information feedback method and terminal based on order
CN109885490A (en) * 2019-02-01 2019-06-14 广州云测信息技术有限公司 A kind of picture control methods and device
CN111782492A (en) * 2020-05-22 2020-10-16 平安国际智慧城市科技股份有限公司 Page first screen loading duration testing method and device, computer equipment and medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160118025A1 (en) * 2014-10-22 2016-04-28 Alibaba Group Holding Limited Method and apparatus for screen capture on a display device
CN104571866A (en) * 2015-01-06 2015-04-29 深圳市金立通信设备有限公司 Screen capture method
CN105719240A (en) * 2016-01-21 2016-06-29 腾讯科技(深圳)有限公司 Method and apparatus for picture processing
CN106020634A (en) * 2016-05-04 2016-10-12 北京小米移动软件有限公司 Screen capture method and device
CN108496150A (en) * 2016-10-18 2018-09-04 华为技术有限公司 A kind of method and terminal of screenshot capture and reading
CN107315682A (en) * 2017-06-22 2017-11-03 北京凤凰理理它信息技术有限公司 Test browser-safe method, device, storage medium and electronic equipment
CN107977418A (en) * 2017-11-23 2018-05-01 广东欧珀移动通信有限公司 A kind of screenshot picture management method, screenshot picture managing device and mobile terminal
CN109002842A (en) * 2018-06-27 2018-12-14 北京字节跳动网络技术有限公司 Image-recognizing method and device
CN109840830A (en) * 2019-01-22 2019-06-04 北京顺丰同城科技有限公司 A kind of information feedback method and terminal based on order
CN109885490A (en) * 2019-02-01 2019-06-14 广州云测信息技术有限公司 A kind of picture control methods and device
CN111782492A (en) * 2020-05-22 2020-10-16 平安国际智慧城市科技股份有限公司 Page first screen loading duration testing method and device, computer equipment and medium

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
ANDREAS SCHMID: "ScreenshotMatcher: Taking Smartphone Photos to Capture Screenshots", 《MENSCH UND COMPUTER》, 30 September 2021 (2021-09-30), pages 44, XP058658561, DOI: 10.1145/3473856.3474014 *
VCHAO_: "详细讲解安卓截屏监听操作", pages 1 - 3, Retrieved from the Internet <URL:https://blog.csdn.net/zheng_weichao/article/details/80229530> *
宋恒: "基于ZigBee和iOS的物联网智能家居控制***", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》, 15 January 2018 (2018-01-15), pages 038 - 941 *
晨风的小窝: "Android*** 截屏监听 的 原理与实现", pages 1 - 6, Retrieved from the Internet <URL:https://blog.csdn.net/Gold_brick/article/details/59108945> *
晨风的小窝: "Android***截屏监听的原理与实现", pages 1 - 6, Retrieved from the Internet <URL:https://blog.csdn.net/Gold_brick/article/details/59108945> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024104113A1 (en) * 2022-11-16 2024-05-23 维沃移动通信有限公司 Screen capture method, screen capture apparatus, electronic device, and readable storage medium

Similar Documents

Publication Publication Date Title
US10395120B2 (en) Method, apparatus, and system for identifying objects in video images and displaying information of same
US8818037B2 (en) Video scene detection
CN106547420B (en) Page processing method and device
US9633049B2 (en) Searching apparatus, searching method, and searching system
US9310886B2 (en) Transient message display control
US9740668B1 (en) Plotting webpage loading speeds and altering webpages and a service based on latency and pixel density
CN110996154B (en) Video playing method and device and electronic equipment
CN110333919B (en) Method and equipment for presenting social object information
US20210081225A1 (en) Window management method
EP3454244B1 (en) Authentication method and device, method and device for generating information for authentication
CN113613055A (en) Information display method and device, electronic equipment and storage medium
CN113961526A (en) Method and device for detecting screen shot picture
CN114996103A (en) Page abnormity detection method and device, electronic equipment and storage medium
US10869071B2 (en) Tracking and visualizing video utilization
US10037097B2 (en) Touch determining device and method, and display device
CN111131812A (en) Broadcast time testing method and device and computer readable storage medium
CN113297409A (en) Image searching method and device, electronic equipment and storage medium
US20170264962A1 (en) Method, system and computer program product
JP7235110B2 (en) Operation log acquisition device, operation log acquisition method, and operation log acquisition program
US20230244565A1 (en) Systems and Methods for Pause-Correct-Replay Workflow Customization
CN110543582A (en) image-based query method and device
CN115544981A (en) Document processing method, document processing device, electronic device, storage medium, and program product
US20200202510A1 (en) Speckle detection method, system, storage medium, and computer program product
US20200258550A1 (en) Moving image reproduction apparatus, moving image reproduction method, moving image reproduction system, and storage medium
CN107092702B (en) Geographic information element position comparison checking method and device based on overlapping proportion

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