CN107728882B - Window shadow detection method and device, computing equipment and computer storage medium - Google Patents

Window shadow detection method and device, computing equipment and computer storage medium Download PDF

Info

Publication number
CN107728882B
CN107728882B CN201710972770.6A CN201710972770A CN107728882B CN 107728882 B CN107728882 B CN 107728882B CN 201710972770 A CN201710972770 A CN 201710972770A CN 107728882 B CN107728882 B CN 107728882B
Authority
CN
China
Prior art keywords
window
shadow
detected
target
windows
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.)
Active
Application number
CN201710972770.6A
Other languages
Chinese (zh)
Other versions
CN107728882A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo 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 Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201710972770.6A priority Critical patent/CN107728882B/en
Publication of CN107728882A publication Critical patent/CN107728882A/en
Application granted granted Critical
Publication of CN107728882B publication Critical patent/CN107728882B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a window shadow detection method, a device, a computing device and a computer storage medium, wherein the window shadow detection method comprises the following steps: searching a shadow window to be detected in a top-level window displayed on a desktop; selecting a to-be-detected shadow window which is not selected from all to-be-detected shadow windows; detecting whether an owner window of the shadow window to be detected is a target window; if the owner window of the window to be detected with the shadow is detected as the target window, determining that the target window has the shadow; if the owner window of the shadow window to be detected is detected to be not the target window, judging whether all the shadow windows to be detected are selected; and if all the shadow windows to be detected are selected, determining that the target window does not have the shadow. The technical scheme can quickly and accurately complete window shadow detection, and effectively improves the detection efficiency and the detection accuracy of the window shadow.

Description

Window shadow detection method and device, computing equipment and computer storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a window shadow detection method, a window shadow detection device, a computing device and a computer storage medium.
Background
In the prior art, people often beautify a user interface window by adding window shadows to the user interface window, so that the stereoscopic impression of the user interface window is increased. Then in detecting a user interface window, it is often necessary to detect whether the window has a shadow. The existing window shadow detection method generally comprises the steps of capturing a screen of a window, detecting the gray value of a row of pixel points at the window boundary in the captured screen, and then judging whether the window has a shadow according to the detected gray value. However, the window shadow detection method is low in detection efficiency, and cannot be well applied to some special windows, and the desktop background picture can bring certain interference to the judgment of the gray value, so that the detection result is inaccurate. Therefore, the existing window shadow detection method has the problems of low detection efficiency and inaccurate detection result.
Disclosure of Invention
In view of the above, the present invention has been made to provide a window shadow detection method, apparatus, computing device and computer storage medium that overcome or at least partially address the above-mentioned problems.
According to an aspect of the present invention, there is provided a window shadow detection method, including:
searching a shadow window to be detected in a top-level window displayed on a desktop;
selecting a to-be-detected shadow window which is not selected from all to-be-detected shadow windows;
detecting whether an owner window of the shadow window to be detected is a target window;
if the owner window of the window to be detected with the shadow is detected as the target window, determining that the target window has the shadow; if the owner window of the shadow window to be detected is detected to be not the target window, judging whether all the shadow windows to be detected are selected;
if all the shadow windows to be detected are selected, determining that the target window does not have a shadow; and if all the shadow windows to be detected are judged to be not selected, skipping to execute the step of selecting one of the shadow windows to be detected which is not selected.
According to another aspect of the present invention, there is provided a window shadow detecting apparatus, including:
the searching module is suitable for searching the shadow window to be detected in the top-level window displayed on the desktop;
the selection module is suitable for selecting a to-be-detected shadow window which is not selected from all to-be-detected shadow windows;
the detection module is suitable for detecting whether the owner window of the shadow window to be detected is a target window;
the determining module is suitable for determining that the target window has the shadow if the owner window of the shadow window to be detected is detected as the target window by the detecting module;
the first judgment module is suitable for judging whether all the shadow windows to be detected are selected or not if the owner window of the shadow windows to be detected is detected by the detection module to be not the target window;
if the first judging module judges that all the shadow windows to be detected are not selected, the selecting module is triggered;
the determination module is further adapted to: and if the first judging module judges that all the shadow windows to be detected are selected, determining that the target window does not have the shadow.
According to yet another aspect of the present invention, there is provided a computing device comprising: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the window shadow detection method.
According to still another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the window shadow detection method.
According to the technical scheme provided by the invention, the shadow windows to be detected are searched in the top-level window displayed on the desktop, then one non-selected shadow window to be detected is selected from all the shadow windows to be detected, then whether the owner window of the shadow windows to be detected is a target window is detected, and if the owner window of the shadow windows to be detected is detected to be the target window, the target window is determined to have a shadow; if the owner window of the shadow window to be detected is detected to be not the target window, judging whether all the shadow windows to be detected are selected; if all the shadow windows to be detected are selected, determining that the target window does not have a shadow; and if all the shadow windows to be detected are judged to be not selected, skipping to execute the step of selecting one of the shadow windows to be detected which is not selected. By utilizing the technical scheme provided by the invention, the shadow window to be detected can be quickly found out from the top-level window displayed on the desktop according to the characteristics of the shadow window, and the window shadow detection can be quickly and accurately finished by judging the owner window of the shadow window to be detected, so that the detection efficiency and the detection accuracy of the window shadow are effectively improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 shows a schematic flow diagram of a window shadow detection method according to an embodiment of the invention;
FIG. 2 shows a schematic flow diagram of a window shadow detection method according to another embodiment of the invention;
FIG. 3 is a block diagram showing the structure of a window shadow detection apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram showing a configuration of a window shadow detecting apparatus according to another embodiment of the present invention;
FIG. 5 illustrates a schematic structural diagram of a computing device according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 shows a schematic flow diagram of a window shadow detection method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
and S100, searching a shadow window to be detected in a top-level window displayed on the desktop.
The method provided by the invention is used for detecting whether the target window has the shadow. By studying the window shadow, the shadow is actually a window, which is called as a shadow window in the invention, and the shadow windows all have certain characteristics, for example, the shadow window is a top-level window, and window information such as window class information or window title information of the shadow window conforms to specified information and the like. In step S100, a window meeting the characteristics of the shadow window may be searched for in the top-level window displayed on the desktop according to the characteristics of the shadow window, and the searched window is determined as the shadow window to be detected. The desktop refers to a desktop interface, for example, the desktop may be a desktop interface of a computer, a mobile phone, or other devices, which is not limited herein.
Since the found shadow window to be detected may include a shadow window corresponding to the target window, may also include a shadow window corresponding to the non-target window, and may also include a non-shadow window, it is further necessary to further detect whether the shadow window to be detected is the shadow window corresponding to the target window.
Step S101, selecting a shadow window to be detected that has not been selected among all shadow windows to be detected.
After the shadow windows to be detected are found, in order to effectively detect whether the target window has a shadow, detection may be performed on each of all the shadow windows to be detected, specifically, a shadow window to be detected that has not been selected may be selected from all the shadow windows to be detected, and then detection may be performed on the selected shadow window to be detected.
Step S102, detecting whether the owner window of the shadow window to be detected is a target window; if yes, go to step S103; if not, go to step S104.
There are two relationships between windows: an owner-owned relationship and a parent-child relationship. The owner window is referred to as an owner window in the present invention, and when creating a window, its owner window may be set for the window. If a certain window is a shadow window corresponding to the target window, the owner window of the window is the target window, so that the invention determines whether the shadow window to be detected is the shadow window corresponding to the target window by detecting whether the owner window of the shadow window to be detected is the target window.
Specifically, a preset function may be utilized to obtain an owner window of the shadow window to be detected, and then whether the obtained owner window is a target window is detected, if it is determined that the owner window of the shadow window to be detected is the target window, step S103 is executed; if the owner window of the shadow window to be detected is determined not to be the target window, it is further required to detect whether the owner windows of other shadow windows to be detected are the target windows, and step S104 is executed.
Step S103, determining that the target window has a shadow.
If it is determined in step S102 that the owner window of the shadow window to be detected is the target window, it is determined that the target window has a shadow.
Step S104, judging whether all the shadow windows to be detected are selected; if yes, go to step S105; if not, step S101 is executed.
And under the condition that the owner window of the shadow window to be detected is not the target window, judging whether all the shadow windows to be detected are selected. If all the shadow windows to be detected are selected by judgment, which indicates that the detection of each shadow window to be detected is completed, executing step S105; if all the shadow windows to be detected are not selected, step S101 is executed.
Step S105, it is determined that the target window does not have a shadow.
And when all the shadow windows to be detected are selected and the owner windows of all the shadow windows to be detected are detected to be not the target windows, determining that the target windows do not have the shadows.
According to the window shadow detection method provided by the embodiment, a shadow window to be detected is searched in a top-level window displayed on a desktop, then a shadow window to be detected which is not selected is selected from all the shadow windows to be detected, then whether an owner window of the shadow window to be detected is a target window is detected, and if the owner window of the shadow window to be detected is detected to be the target window, the target window is determined to have a shadow; if the owner window of the shadow window to be detected is detected to be not the target window, judging whether all the shadow windows to be detected are selected; if all the shadow windows to be detected are selected, determining that the target window does not have a shadow; and if all the shadow windows to be detected are judged to be not selected, skipping to execute the step of selecting one of the shadow windows to be detected which is not selected. By utilizing the technical scheme provided by the invention, the shadow window to be detected can be quickly found out from the top-level window displayed on the desktop according to the characteristics of the shadow window, and the window shadow detection can be quickly and accurately finished by judging the owner window of the shadow window to be detected, so that the detection efficiency and the detection accuracy of the window shadow are effectively improved.
Fig. 2 is a schematic flow chart of a window shadow detection method according to another embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
and S200, searching a window of which the window information accords with the designated information in the top-level window displayed on the desktop, and determining the searched window which accords with the designated information as the shadow window to be detected.
Through research on the shadow window, the window information of the shadow window is found to accord with the specified information, wherein the specified information is set according to the characteristics of the window information of the shadow window. Specifically, the window information may include: window class information and/or window header information. The window type information is class information of the window, and the window title information is title information of the window. Of course, the window information may also include other information, which is not limited herein.
For example, if the window class information and/or the window header information of the shadow window both include "show" or "show" characters, the specific information may be set according to the "show" characters and the "show" characters, and if the window class information and/or the window header information of 5 top-level windows displayed on the desktop includes "show" or "show" characters, which indicates that the window information of the 5 top-level windows conforms to the specific information, the 5 top-level windows are determined as the shadow windows to be detected.
Step S201, selecting a shadow window to be detected that has not been selected among all shadow windows to be detected.
After the shadow windows to be detected are found in step S200, in order to effectively detect whether the target window has a shadow, detection may be performed on each of all the shadow windows to be detected, specifically, a shadow window to be detected that has not been selected may be selected from all the shadow windows to be detected, and then detection may be performed on the selected shadow window to be detected.
Step S202, detecting whether the owner window of the shadow window to be detected is a target window; if yes, go to step S203; if not, go to step S208.
Specifically, a preset function may be utilized to obtain an owner window of the shadow window to be detected, and then, whether the obtained owner window is a target window is detected, where a person skilled in the art may set the preset function according to actual needs, and the preset function is not limited herein. If the owner window of the shadow window to be detected is judged to be the target window, executing the step S203; if the owner window of the shadow window to be detected is judged not to be the target window, which indicates that the shadow window to be detected is not the shadow window corresponding to the target window, step S208 is executed.
Step S203, calculating a distance between the boundary of the shadow window to be detected and the boundary of the target window, and determining the calculated distance as a boundary distance.
In order to more accurately determine whether the shadow window to be detected is the shadow window corresponding to the target window, in the case that the owner window of the shadow window to be detected is determined to be the target window in step S202, the distance between the boundary of the shadow window to be detected and the boundary of the target window also needs to be detected.
Step S204, judging whether the boundary distance meets a preset threshold range; if yes, go to step S205; if not, go to step S207.
Since the boundary of the shadow window may be larger than the boundary of the window corresponding to the shadow window by a certain distance, a person skilled in the art may set the preset threshold range according to the distance, which is not limited herein. Assuming that the boundary of the shadow window is 10 pixels to 20 pixels larger than the boundary of its corresponding window, the preset threshold range may be set to 10 pixels to 20 pixels. If the boundary interval is judged to be in accordance with the preset threshold range, the shadow window to be detected is the shadow window corresponding to the target window, and then the step S205 is executed; if the boundary distance does not meet the preset threshold range, it indicates that the shadow window to be detected is not the shadow window corresponding to the target window, then step S207 is executed.
Step S205, determining that the shadow window to be detected is the shadow window corresponding to the target window.
And determining the shadow window to be detected as the shadow window corresponding to the target window under the condition that the boundary distance is judged to accord with the preset threshold range in the step S204.
In step S206, it is determined that the target window has a shadow.
And determining that the shadow window to be detected is the shadow window corresponding to the target window after detection, and determining that the target window has the shadow.
Step S207, determining that the shadow window to be detected is not the shadow window corresponding to the target window.
And determining that the shadow window to be detected is not the shadow window corresponding to the target window under the condition that the boundary distance does not conform to the preset threshold range determined in the step S204.
Step S208, judging whether all the shadow windows to be detected are selected; if yes, go to step S209; if not, step S201 is executed.
And under the condition that the shadow window to be detected is not the shadow window corresponding to the target window, judging whether all the shadow windows to be detected are selected. If all the shadow windows to be detected are selected, which indicates that the detection of each shadow window to be detected is completed, executing step S209; if it is determined that all the shadow windows to be detected have not been selected, step S201 is executed.
In step S209, it is determined that the target window does not have a shadow.
And when all the shadow windows to be detected are detected and all the detected shadow windows to be detected are not the shadow windows corresponding to the target window, determining that the target window does not have the shadow.
According to the window shadow detection method provided by the embodiment, the shadow window to be detected can be quickly found out from the top-level window displayed on the desktop according to whether the window information accords with the specified information, and through multi-level detection of the owner window of the shadow window to be detected and the boundary distance between the shadow window to be detected and the target window, the detection efficiency of the window shadow is effectively improved, the detection result is more accurate, the detection accuracy is further improved, and the window shadow detection mode is optimized.
Fig. 3 is a block diagram showing a configuration of a window shadow detecting apparatus according to an embodiment of the present invention, and as shown in fig. 3, the apparatus includes: a lookup module 310, a selection module 320, a detection module 330, a determination module 340, and a first determination module 350.
The lookup module 310 is adapted to: and searching the shadow window to be detected in the top-level window displayed on the desktop.
The searching module 310 may search, in the top-level window displayed on the desktop, windows that meet the characteristics of the shadow windows according to the characteristics of the shadow windows, and determine the searched windows as the shadow windows to be detected.
The selection module 320 is adapted to: and selecting one to-be-detected shadow window which is not selected from all to-be-detected shadow windows.
The detection module 330 is adapted to: and detecting whether the owner window of the shadow window to be detected is a target window.
The detecting module 330 may obtain the owner window of the shadow window to be detected selected by the selecting module 320 by using a preset function, and then detect whether the obtained owner window is the target window. If the detecting module 330 detects that the owner window of the shadow window to be detected is the target window, the determining module 340 is triggered; if the detecting module 330 detects that the owner window of the shadow window to be detected is not the target window, the first determining module 350 is triggered.
The determination module 340 is adapted to: if the detecting module 330 detects that the owner window of the to-be-detected shadow window is the target window, it is determined that the target window has a shadow.
The first determination module 350 is adapted to: if the detecting module 330 detects that the owner window of the to-be-detected shadow window is not the target window, it is determined whether all the to-be-detected shadow windows have been selected.
If the first determining module 350 determines that all the shadow windows to be detected have been selected, the determining module 340 is triggered; if the first determining module 350 determines that all the shadow windows to be detected have not been selected, the selecting module 320 is triggered.
The determination module 340 is further adapted to: if the first determining module 350 determines that all the shadow windows to be detected have been selected, it is determined that the target window does not have a shadow.
According to the window shadow detection device provided by the embodiment, the shadow window to be detected can be quickly found out from the desktop according to the characteristics of the shadow window, and the window shadow detection can be quickly and accurately completed by judging the owner window of the shadow window to be detected, so that the detection efficiency and the detection accuracy of the window shadow are effectively improved.
Fig. 4 is a block diagram showing a configuration of a window shadow detecting apparatus according to another embodiment of the present invention, which includes, as shown in fig. 4: a lookup module 410, a selection module 420, a detection module 430, a calculation module 440, a second determination module 450, a determination module 460, and a first determination module 470.
The lookup module 410 is adapted to: searching a window of which the window information accords with the designated information in a top-level window displayed on the desktop, and determining the searched window which accords with the designated information as a shadow window to be detected.
Wherein the designation information is set in accordance with a feature possessed by the window information of the shadow window. Specifically, the window information includes: window class information and/or window header information.
The selection module 420 is adapted to: and selecting one to-be-detected shadow window which is not selected from all to-be-detected shadow windows.
The detection module 430 is adapted to: and detecting whether the owner window of the shadow window to be detected is a target window.
The calculation module 440 is adapted to: if the detecting module 430 detects that the owner window of the to-be-detected shadow window is the target window, calculating a distance between a boundary of the to-be-detected shadow window and a boundary of the target window, and determining the calculated distance as a boundary distance.
The second determining module 450 is adapted to: and judging whether the boundary distance meets a preset threshold range.
The determination module 460 is adapted to: if the second determining module 450 determines that the obtained boundary distance meets the preset threshold range, it is determined that the shadow window to be detected is the shadow window corresponding to the target window, and it is determined that the target window has a shadow; if the second determining module 450 determines that the obtained boundary distance does not meet the preset threshold range, it is determined that the shadow window to be detected is not the shadow window corresponding to the target window.
The first determining module 470 is adapted to: if the detecting module 430 detects that the owner window of the to-be-detected shadow window is not the target window, it is determined whether all the to-be-detected shadow windows have been selected.
Wherein the first determining module 470 is further adapted to: if the determining module 460 determines that the shadow window to be detected is not the shadow window corresponding to the target window, it is determined whether all the shadow windows to be detected have been selected.
If the first determining module 470 determines that all the shadow windows to be detected have been selected, the determining module 460 is triggered; if the first determining module 470 determines that all the shadow windows to be detected have not been selected, the selecting module 420 is triggered.
The determination module 460 is further adapted to: if the first determining module 470 determines that all the shadow windows to be detected have been selected, it is determined that the target window has no shadow.
According to the window shadow detection device provided by the embodiment, the shadow window to be detected can be quickly found out from the top-level window displayed on the desktop according to whether the window information accords with the designated information, and through multi-level detection of the owner window of the shadow window to be detected and the boundary distance between the shadow window to be detected and the target window, the detection efficiency of the window shadow is effectively improved, the detection result is more accurate, the detection accuracy is further improved, and the window shadow detection mode is optimized.
The invention also provides a nonvolatile computer storage medium, and the computer storage medium stores at least one executable instruction which can execute the window shadow detection method in any method embodiment.
Fig. 5 is a schematic structural diagram of a computing device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.
As shown in fig. 5, the computing device may include: a processor (processor)502, a Communications Interface 504, a memory 506, and a communication bus 508.
Wherein:
the processor 502, communication interface 504, and memory 506 communicate with one another via a communication bus 508.
A communication interface 504 for communicating with network elements of other devices, such as clients or other servers.
The processor 502 is configured to execute the program 510, and may specifically perform relevant steps in the above-described embodiment of the window shadow detection method.
In particular, program 510 may include program code that includes computer operating instructions.
The processor 502 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 506 for storing a program 510. The memory 506 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 510 may specifically be configured to cause the processor 502 to execute the window shading detection method in any of the above-described method embodiments. For specific implementation of each step in the program 510, reference may be made to corresponding steps and corresponding descriptions in units in the foregoing window shadow detection embodiment, which are not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in accordance with embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (12)

1. A method of window shadow detection, the method comprising:
searching a shadow window to be detected in a top-level window displayed on a desktop;
selecting a to-be-detected shadow window which is not selected from all to-be-detected shadow windows;
detecting whether an owner window of the shadow window to be detected is a target window;
if the owner window of the window to be detected with the shadow is detected as the target window, determining that the target window has the shadow; if the owner window of the shadow window to be detected is detected to be not the target window, judging whether all the shadow windows to be detected are selected;
if all the shadow windows to be detected are selected, determining that the target window does not have a shadow; and if all the shadow windows to be detected are judged to be not selected, skipping to execute the step of selecting one of the shadow windows to be detected which is not selected.
2. The method of claim 1, wherein the finding the shadow window to be detected in the top-level window exposed on the desktop further comprises:
searching a window of which the window information accords with the designated information in a top-level window displayed on the desktop, and determining the searched window which accords with the designated information as a shadow window to be detected.
3. The method of claim 2, wherein the window information comprises: window class information and/or window header information.
4. The method according to any one of claims 1-3, wherein after detecting that the owner window of the shadow window to be detected is the target window, the method further comprises:
calculating the distance between the boundary of the shadow window to be detected and the boundary of the target window, and determining the calculated distance as the boundary distance;
judging whether the boundary distance meets a preset threshold range or not;
the determining that the target window has a shadow specifically includes: and if the boundary distance is judged to be in accordance with the preset threshold range, determining that the shadow window to be detected is the shadow window corresponding to the target window, and determining that the target window has a shadow.
5. The method of claim 4, wherein the method further comprises:
and if the boundary distance does not accord with the preset threshold range, determining that the shadow window to be detected is not the shadow window corresponding to the target window, and skipping to execute the step of judging whether all the shadow windows to be detected are selected.
6. A window shadow detection apparatus, the apparatus comprising:
the searching module is suitable for searching the shadow window to be detected in the top-level window displayed on the desktop;
the selection module is suitable for selecting a to-be-detected shadow window which is not selected from all to-be-detected shadow windows;
the detection module is suitable for detecting whether the owner window of the shadow window to be detected is a target window;
the determining module is suitable for determining that the target window has the shadow if the owner window of the window to be detected with the shadow is detected as the target window by the detecting module;
the first judgment module is suitable for judging whether all the shadow windows to be detected are selected or not if the owner window of the shadow windows to be detected is detected by the detection module to be not the target window;
if the first judging module judges that all the shadow windows to be detected are not selected, the selecting module is triggered;
the determination module is further adapted to: and if the first judging module judges that all the shadow windows to be detected are selected, determining that the target window does not have the shadow.
7. The apparatus of claim 6, wherein the lookup module is further adapted to:
searching a window of which the window information accords with the designated information in a top-level window displayed on the desktop, and determining the searched window which accords with the designated information as a shadow window to be detected.
8. The apparatus of claim 7, wherein the window information comprises: window class information and/or window header information.
9. The apparatus of any of claims 6-8, wherein the apparatus further comprises:
the calculation module is suitable for calculating the distance between the boundary of the shadow window to be detected and the boundary of the target window if the owner window of the shadow window to be detected is detected as the target window by the detection module, and determining the calculated distance as the boundary distance;
the second judgment module is suitable for judging whether the boundary distance meets a preset threshold range or not;
the determination module is further adapted to: and if the second judging module judges that the boundary distance meets a preset threshold range, determining that the shadow window to be detected is a shadow window corresponding to a target window, and determining that the target window has a shadow.
10. The apparatus of claim 9, wherein the determination module is further adapted to: if the second judging module judges that the boundary distance does not conform to the preset threshold range, determining that the shadow window to be detected is not the shadow window corresponding to the target window;
the first determination module is further adapted to: and if the determining module determines that the shadow window to be detected is not the shadow window corresponding to the target window, judging whether all the shadow windows to be detected are selected.
11. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the window shadow detection method according to any one of claims 1-5.
12. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the window shading detection method of any one of claims 1-5.
CN201710972770.6A 2017-10-18 2017-10-18 Window shadow detection method and device, computing equipment and computer storage medium Active CN107728882B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710972770.6A CN107728882B (en) 2017-10-18 2017-10-18 Window shadow detection method and device, computing equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710972770.6A CN107728882B (en) 2017-10-18 2017-10-18 Window shadow detection method and device, computing equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN107728882A CN107728882A (en) 2018-02-23
CN107728882B true CN107728882B (en) 2020-07-10

Family

ID=61210654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710972770.6A Active CN107728882B (en) 2017-10-18 2017-10-18 Window shadow detection method and device, computing equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN107728882B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7239329B2 (en) * 2004-10-20 2007-07-03 Edwards Systems Technology, Inc. Brush texture simulating apparatus and method
CN105468674A (en) * 2015-11-12 2016-04-06 珠海市君天电子科技有限公司 Window interception method and device and terminal equipment
CN105631396A (en) * 2015-11-13 2016-06-01 东莞酷派软件技术有限公司 Method and device for obtaining soft copy of file
CN106325873A (en) * 2016-08-26 2017-01-11 乐视控股(北京)有限公司 Multi-window page display processing method and device
CN106796912A (en) * 2014-08-28 2017-05-31 三星电子株式会社 Electronic installation and method for setting block

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8379058B2 (en) * 2008-06-06 2013-02-19 Apple Inc. Methods and apparatuses to arbitrarily transform windows

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7239329B2 (en) * 2004-10-20 2007-07-03 Edwards Systems Technology, Inc. Brush texture simulating apparatus and method
CN106796912A (en) * 2014-08-28 2017-05-31 三星电子株式会社 Electronic installation and method for setting block
CN105468674A (en) * 2015-11-12 2016-04-06 珠海市君天电子科技有限公司 Window interception method and device and terminal equipment
CN105631396A (en) * 2015-11-13 2016-06-01 东莞酷派软件技术有限公司 Method and device for obtaining soft copy of file
CN106325873A (en) * 2016-08-26 2017-01-11 乐视控股(北京)有限公司 Multi-window page display processing method and device

Also Published As

Publication number Publication date
CN107728882A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
CN109255352B (en) Target detection method, device and system
CN109118542B (en) Calibration method, device, equipment and storage medium between laser radar and camera
CN108876791B (en) Image processing method, device and system and storage medium
CN107808111B (en) Method and apparatus for pedestrian detection and attitude estimation
KR101457313B1 (en) Method, apparatus and computer program product for providing object tracking using template switching and feature adaptation
CN108876804B (en) Matting model training and image matting method, device and system and storage medium
CN109086734B (en) Method and device for positioning pupil image in human eye image
CN108875731B (en) Target identification method, device, system and storage medium
CN106845352B (en) Pedestrian detection method and device
US8811750B2 (en) Apparatus and method for extracting edge in image
US20220383463A1 (en) Method and device for image fusion, computing processing device, and storage medium
CN105046186A (en) Two-dimensional code recognition method and device
CN104978578A (en) Mobile phone photo taking text image quality evaluation method
CN109241345B (en) Video positioning method and device based on face recognition
CN110428394B (en) Method, apparatus and computer storage medium for target movement detection
CN110708568B (en) Video content mutation detection method and device
CN108229583B (en) Method and device for fast template matching based on main direction difference characteristics
CN106663317B (en) Morphological processing method and digital image processing device for digital image
CN107728882B (en) Window shadow detection method and device, computing equipment and computer storage medium
CN115908988B (en) Defect detection model generation method, device, equipment and storage medium
CN105302715A (en) Application user interface acquisition method and apparatus
CN113902742B (en) TFT-LCD detection-based defect true and false judgment method and system
CN110619597A (en) Semitransparent watermark removing method and device, electronic equipment and storage medium
CN113657317A (en) Cargo position identification method and system, electronic equipment and storage medium
CN111124862B (en) Intelligent device performance testing method and device and intelligent device

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