CN116797631A - Differential area positioning method, differential area positioning device, computer equipment and storage medium - Google Patents

Differential area positioning method, differential area positioning device, computer equipment and storage medium Download PDF

Info

Publication number
CN116797631A
CN116797631A CN202210271544.6A CN202210271544A CN116797631A CN 116797631 A CN116797631 A CN 116797631A CN 202210271544 A CN202210271544 A CN 202210271544A CN 116797631 A CN116797631 A CN 116797631A
Authority
CN
China
Prior art keywords
display picture
pixel
difference
picture
value
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
CN202210271544.6A
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.)
TCL Technology Group Co Ltd
Original Assignee
TCL Technology Group 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 TCL Technology Group Co Ltd filed Critical TCL Technology Group Co Ltd
Priority to CN202210271544.6A priority Critical patent/CN116797631A/en
Publication of CN116797631A publication Critical patent/CN116797631A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/254Analysis of motion involving subtraction of images
    • 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
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • G06T5/30Erosion or dilatation, e.g. thinning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20224Image subtraction

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The embodiment of the application discloses a difference region positioning method, a device, computer equipment and a storage medium. The method comprises the following steps: acquiring a first display picture and a second display picture; according to the pixel value difference value between each pixel block in each display picture and the adjacent pixel block, the pixel value of each pixel block in each picture is adjusted to obtain a first processing display picture and a second processing display picture; acquiring picture difference information between the first processing display picture and the second processing display picture; and determining a difference region of the first display picture and the second display picture according to the picture difference information. The method and the device can accurately and simply locate the difference areas in different pictures formed by the display content of the electronic equipment.

Description

Differential area positioning method, differential area positioning device, computer equipment and storage medium
Technical Field
The present application relates to the field of image technologies, and in particular, to a method and apparatus for locating a difference region, a computer device, and a storage medium.
Background
The inter-frame difference method is a method for obtaining the outline of a moving object by performing differential operation on two adjacent frames in a video image sequence, and is not suitable for positioning the outline of the moving object of the electronic display device because the color background of a menu area of the electronic display device (such as a television and a computer) is monotonous, and because the luminous brightness of a light source LED is unstable at different moments, when a display picture is shot, the naked eyes look at the same display interface, the pixel value difference of the actually shot image is larger, and false detection can occur by adopting the inter-frame difference method.
Based on this, a method for accurately locating the variation area of such electronic display devices is needed.
Disclosure of Invention
The embodiment of the application provides a difference region positioning method, a device, computer equipment and a storage medium, which can accurately and simply position a difference region in a display picture of electronic display equipment.
The embodiment of the application provides a difference region positioning method, which comprises the following steps:
acquiring a first display picture and a second display picture;
according to the pixel value difference value between each pixel block in each display picture and the adjacent pixel block, the pixel value of each pixel block in each picture is adjusted to obtain a first processing display picture and a second processing display picture;
acquiring picture difference information between the first processing display picture and the second processing display picture;
and determining a difference region between the first display picture and the second display picture according to the picture difference information.
Correspondingly, the embodiment of the application also provides a difference area positioning device, which comprises:
the image acquisition unit is used for acquiring a first display image and a second display image;
the adjusting unit is used for adjusting the pixel value of each pixel block in each picture according to the pixel value difference value between each pixel block in each display picture and the adjacent pixel block to obtain a first processing display picture and a second processing display picture;
An information acquisition unit configured to acquire picture difference information between the first processed display picture and the second processed display picture;
and the determining unit is used for determining a difference area between the first display picture and the second display picture according to the picture difference information.
Optionally, the adjusting unit is further configured to:
acquiring first pixel values of first pixel blocks of the first display picture and second pixel values of second pixel blocks of the second display picture;
the first pixel value of each first pixel block in the first display picture is differenced with the first pixel value of the adjacent pixel block to form a plurality of first difference values, and the second pixel value of each second pixel block in the second display picture is differenced with the second pixel value of the adjacent pixel block to form a plurality of second difference values;
and adjusting pixel values of the first pixel blocks of the first display picture according to the first difference value to enable the color of the first display picture to be changed into a first color and a second color, obtaining the first processing display picture, and adjusting pixel values of the second pixel blocks of the second display picture according to the second difference value to enable the color of the second display picture to be changed into the first color and the second color, and obtaining the second processing display picture.
Optionally, the adjusting unit is further configured to:
acquiring a first contrast pixel threshold value of the first pixel block and an adjacent pixel block in the first display picture, and acquiring a second contrast pixel threshold value of the second pixel block and an adjacent pixel block in the second display picture;
comparing a first difference value related to each first pixel block in the first display picture with the first contrast pixel threshold according to a first preset sequence, if the first difference value is smaller than the first contrast pixel threshold, determining that the first difference value smaller than the first contrast pixel threshold is a first reference difference value, and adjusting pixel values of the first pixel block and adjacent pixel blocks forming the first reference difference value by making differences to be pixel values corresponding to the first color or pixel values corresponding to the second color;
if the first difference value is larger than the first contrast pixel threshold value, determining that the first difference value larger than the first contrast pixel threshold value is a second reference difference value, and adjusting one pixel value to be the pixel value corresponding to the first color and the other pixel value to be the pixel value corresponding to the second color in the pixel values of a first pixel block and the adjacent pixel blocks which are subjected to difference forming to the second reference difference value;
Obtaining the first processing display picture according to the adjusted first pixel block;
comparing a second difference value related to each second pixel block in the second display picture with the second comparison pixel threshold according to a second preset sequence, if the second difference value is smaller than the second comparison pixel threshold, determining that the second difference value smaller than the second comparison pixel threshold is a third reference difference value, and adjusting pixel values of the second pixel block and adjacent pixel blocks forming the third reference difference value by making differences to be pixel values corresponding to the first color or pixel values corresponding to the second color;
if the second difference value is larger than the second contrast pixel threshold value, determining that the second difference value larger than the second contrast pixel threshold value is a fourth reference difference value, and adjusting one pixel value to be the pixel value corresponding to the first color and the other pixel value to be the pixel value corresponding to the second color in the pixel values of a second pixel block and an adjacent pixel block of the fourth reference difference value formed by making the difference;
and obtaining the second processing display picture according to the adjusted second pixel block.
Optionally, the information acquisition unit is further configured to:
the pixel values of the pixel blocks at the corresponding positions of the first processing display picture and the second processing display picture are subjected to difference to obtain corresponding difference values;
And taking the pixel block with the difference value not being zero as the picture difference information.
Optionally, the determining unit is further configured to:
performing corrosion calculation on the first processing display picture and the second processing display picture according to the picture difference information to obtain a corroded first processing display picture and a corroded second processing display picture;
comparing the corroded first processing display picture with the corroded second processing display picture, and determining a first reference difference area between the corroded first processing display picture and the corroded second processing display picture;
and determining the corresponding area of the first reference difference area on the first display picture and the second display picture as the difference area.
Optionally, the determining unit is further configured to:
performing expansion calculation on the corroded first processing display picture and the corroded second processing display picture to obtain an expanded first processing display picture and an expanded second processing display picture;
comparing the expanded first processed display picture with the expanded second processed display picture, and determining a second reference difference region between the expanded first processed display picture and the expanded second processed display picture;
And determining the corresponding area of the second reference difference area on the first display picture and the second display picture as the difference area.
Optionally, the first display picture and the second display picture are the same menu interface of the target electronic device, options of movable cursors on the menu interface on the first display picture and the second display picture are different, and the first display picture and the second display picture include current user operation pictures formed based on the menu interface of the target electronic device at the current moment;
the determining unit is further configured to:
determining a difference area on the first display picture, wherein the difference area is a first selection area of the movable cursor on a menu interface displayed by the first display picture, and the difference area on the second display picture is a second selection area of the movable cursor on a menu interface displayed by the second display picture;
determining a first position reference point of the first selection area in the first display picture and a second position reference point of the second selection area in the second display picture;
acquiring a first position coordinate of the first reference position point in the first display picture, a second position coordinate of the second reference position point in the second display picture, and a target moving operation made by a target user when the movable cursor is moved;
And determining the current user operation picture in the first display picture and the second display picture according to the first position coordinate, the second position coordinate and the target movement operation.
Also, an embodiment of the present application further provides a computer device, including:
a memory for storing a computer program;
a processor for performing the steps of any of the difference region localization methods.
In addition, the embodiment of the application further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the steps of any one of the difference region positioning methods when being executed by a processor.
The embodiment of the application provides a difference region positioning method, a device, computer equipment and a storage medium, which can firstly adjust pixel values of pixel blocks of a first display picture and a second display picture with different display data to form a first processing display picture and a second processing display picture, reduce the possibility that the two processing display pictures have the same display content and have larger pixel value difference, thereby reducing the influence on corresponding pixel values caused by unstable LED luminescence of target electronic display equipment at different moments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be redeemed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the description below are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scenario of a difference region positioning method according to an embodiment of the present application;
fig. 2 is a flow chart of a differential area positioning method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a first display picture and a second display picture according to an embodiment of the present application;
fig. 4 is a schematic diagram of a first processed display picture and a second processed display picture according to an embodiment of the present application;
FIG. 5 is another flow chart of a differential area positioning method according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a differential area positioning device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
The embodiment of the application provides a difference region positioning method, a device, computer equipment and a storage medium. Specifically, the method for locating the difference area according to the embodiment of the present application may be performed by a computer device, where the computer device may be a terminal or a server. The terminal may be a terminal device such as a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer (Personal Computer, PC), a personal digital assistant (Personal Digital Assistant, PDA), etc., and the terminal may further include a client, which may be a game application client, a front browser client carrying a game program, or an instant messaging client, etc. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content distribution network services, basic cloud computing services such as big data and an artificial intelligence platform.
Referring to fig. 1, fig. 1 is a schematic view of a scene of a difference region positioning method according to an embodiment of the application. At least one terminal device may be included. The terminal equipment held by the user can acquire a first display picture and a second display picture, wherein the display data of the first display picture and the display data of the second display picture are different; according to the pixel value difference value between each pixel block in each display picture and the adjacent pixel block, the pixel value of each pixel block in each picture is adjusted to obtain a first processing display picture and a second processing display picture; acquiring picture difference information between the first processing display picture and the second processing display picture; and determining a difference region between the first display picture and the second display picture according to the picture difference information.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
The present embodiment will be described from the perspective of a differential area positioning apparatus, which may be specifically integrated in a terminal device, where the terminal device may include a smart phone, a notebook computer, a tablet computer, a personal computer, and other devices.
The embodiment of the application provides a difference area positioning method, which can be executed by a processor of a terminal, as shown in fig. 2, and the specific flow of the difference area positioning method mainly comprises steps 201 to 204, and is described in detail as follows:
step 201, a first display picture and a second display picture are obtained.
In the embodiment of the application, the first display picture and the second display picture can be pictures formed by shooting the display screen of the target electronic equipment by the camera, can be pictures formed by the display screen shot of the target electronic equipment, can be obtained through a network or other communication application programs, can also be two frames of pictures in a video formed by the display screen of the target electronic equipment, and the like. In addition, the picture content in the first display picture and the second display picture is not limited, and the display data of the first display picture and the second display picture are different. For example, in the schematic diagrams of the first display picture and the second display picture shown in fig. 3, the first display picture 301 and the second display picture 302 are the same menu interface of the electronic device, and the areas selected by the movable cursors in the first display picture 301 and the second display picture 302 are different.
In the embodiment of the application, the target electronic device may be a device with a display screen, for example, a mobile phone, a television, a computer, and the like.
Step 202, according to the pixel value difference between each pixel block in each display picture and the adjacent pixel block, adjusting the pixel value of each pixel block in each picture to obtain a first processing display picture and a second processing display picture.
In the embodiment of the present application, the degree of change of the pixel values of each pixel block and the adjacent pixel block in each picture may be determined according to the difference between the pixel values of each pixel block and the pixel values of the adjacent pixel block in each picture, so as to adjust the pixel values of each pixel block in each picture, specifically, in step 202, "according to the difference between the pixel values of each pixel block and the adjacent pixel block in each display picture, the pixel values of each pixel block in each picture are adjusted, so as to obtain a first processed display picture and a second processed display picture," may be:
acquiring first pixel values of first pixel blocks of the first display picture and second pixel values of second pixel blocks of the second display picture;
the first pixel value of each first pixel block in the first display picture is differenced with the first pixel value of the adjacent pixel block to form a plurality of first difference values, and the second pixel value of each second pixel block in the second display picture is differenced with the second pixel value of the adjacent pixel block to form a plurality of second difference values;
And adjusting pixel values of the first pixel blocks of the first display picture according to the first difference value to enable the color of the first display picture to be changed into a first color and a second color, obtaining the first processing display picture, and adjusting pixel values of the second pixel blocks of the second display picture according to the second difference value to enable the color of the second display picture to be changed into the first color and the second color, and obtaining the second processing display picture.
In the embodiment of the present application, the adjacent pixel block of a pixel block may be a pixel block having a common edge and/or a common vertex with the pixel block in the picture. Since the number of adjacent pixel blocks of one pixel block is plural, that is, the difference between the pixel block and each adjacent pixel block is calculated.
In the embodiment of the present application, the pixel value is a value given by a computer when the document image is digitized, and represents the average luminance information of a certain small square of the document, or the average reflection (transmission) density information of the small square.
In an embodiment of the present application, the step of "adjusting the pixel value of each of the first pixel blocks of the first display picture according to the first difference value so that the color of the first display picture becomes a first color and a second color, obtaining the first processed display picture, and adjusting the pixel value of each of the second pixel blocks of the second display picture according to the second difference value so that the color of the second display picture becomes the first color and the second color, obtaining the second processed display picture" may be:
Acquiring a first contrast pixel threshold value of the first pixel block and an adjacent pixel block in the first display picture, and acquiring a second contrast pixel threshold value of the second pixel block and an adjacent pixel block in the second display picture;
comparing a first difference value related to each first pixel block in the first display picture with the first contrast pixel threshold according to a first preset sequence, if the first difference value is smaller than the first contrast pixel threshold, determining that the first difference value smaller than the first contrast pixel threshold is a first reference difference value, and adjusting pixel values of the first pixel block and adjacent pixel blocks forming the first reference difference value by making differences to be pixel values corresponding to the first color or pixel values corresponding to the second color;
if the first difference value is larger than the first contrast pixel threshold value, determining that the first difference value larger than the first contrast pixel threshold value is a second reference difference value, and adjusting one pixel value to be the pixel value corresponding to the first color and the other pixel value to be the pixel value corresponding to the second color in the pixel values of a first pixel block and the adjacent pixel blocks which are subjected to difference forming to the second reference difference value;
Obtaining the first processing display picture according to the adjusted first pixel block;
comparing a second difference value related to each second pixel block in the second display picture with the second comparison pixel threshold according to a second preset sequence, if the second difference value is smaller than the second comparison pixel threshold, determining that the second difference value smaller than the second comparison pixel threshold is a third reference difference value, and adjusting pixel values of the second pixel block and adjacent pixel blocks forming the third reference difference value by making differences to be pixel values corresponding to the first color or pixel values corresponding to the second color;
if the second difference value is larger than the second contrast pixel threshold value, determining that the second difference value larger than the second contrast pixel threshold value is a fourth reference difference value, and adjusting one pixel value to be the pixel value corresponding to the first color and the other pixel value to be the pixel value corresponding to the second color in the pixel values of a second pixel block and an adjacent pixel block of the fourth reference difference value formed by making the difference;
and obtaining the second processing display picture according to the adjusted second pixel block.
The first color and the second color refer to two different colors, which can be white and black, respectively, that is, if the first color is set to be white, the second color is set to be black. If the first color is set to be black, the second color is set to be white. I.e. the first display picture and the second display picture are changed from the original color to a picture having only black and white.
For example, adjacent pixel blocks of a target pixel block a in the first display picture are an adjacent pixel block B, an adjacent pixel block C and an adjacent pixel block D, a first difference value l is obtained by making a difference between first pixel values of the target pixel block a and the adjacent pixel block B, a first difference value m is obtained by making a difference between first pixel values of the target pixel block a and the adjacent pixel block C, a first difference value n is obtained by making a difference between first pixel values of the target pixel block a and the adjacent pixel block D, and a first contrast pixel threshold value t of the first display picture is set. If the first difference value l is smaller than the first contrast pixel threshold t, the pixel value change degree between the target pixel block a and the adjacent pixel block B is smaller, the pixel value of the target pixel block a and the pixel value of the adjacent pixel block B are set to be the same color (white or black), if the first difference value m is larger than the first contrast pixel threshold t, the pixel value change degree between the target pixel block a and the adjacent pixel block C is larger, the pixel value of the target pixel block a and the pixel value of the adjacent pixel block C are set to be different colors (i.e. if the target pixel block a is black, the adjacent pixel block C is white, and vice versa), and if the first difference value n is smaller than the first contrast pixel threshold t, the pixel value change degree between the target pixel block a and the adjacent pixel block D is set to be the same color (white or black). Similarly, the same steps are also adopted for each target pixel block in the second display picture, so that the first display picture and the second display picture are set to be pictures only including black and white colors, and as shown in the schematic diagrams of the first processing display picture and the second processing display picture in fig. 4, the first processing display picture 401 is generated by the first display picture 301 in fig. 3 according to the pixel value variation degree of each pixel block and the adjacent pixel block, and the second processing display picture 402 is generated by the second display picture 302 in fig. 3 according to the pixel value variation degree of each pixel block and the adjacent pixel block.
In the embodiment of the present application, the first preset sequence is a selection sequence of the first pixel block when comparing the first difference value related to the first pixel block with the first contrast pixel threshold value in sequence. The first preset sequence is not limited and can be flexibly set according to practical situations, for example, the first preset sequence can be set in the first display picture to compare the first difference value related to each first pixel block with the first contrast pixel threshold value in sequence from left to right and from top to bottom. Similarly, the second preset sequence is the selection sequence of the second pixel block when comparing the second difference value related to the second pixel block with the second contrast pixel threshold value in turn. The second preset sequence is not limited and can be flexibly set according to practical situations, for example, the second preset sequence can be set in the second display picture to compare the second difference value related to each second pixel block with the second comparison pixel threshold value in sequence from left to right and from top to bottom. In addition, the first preset sequence and the second preset sequence may be the same or different.
In the embodiment of the application, the setting of the first contrast pixel threshold value and the second contrast pixel threshold value is not limited, and the setting can be flexibly set according to actual conditions. The first contrast pixel threshold and the second contrast pixel threshold may be the same or different.
Step 203, obtaining picture difference information between the first processing display picture and the second processing display picture.
In the embodiment of the present application, the first processing display picture and the second processing display picture may be compared according to the pixel values of the pixel blocks at the positions corresponding to the first processing display picture and the second processing display picture, so as to obtain the picture difference information, and specifically, in the step 203, "obtaining the picture difference information between the first processing display picture and the second processing display picture" may be:
the pixel values of the pixel blocks at the corresponding positions of the first processing display picture and the second processing display picture are subjected to difference to obtain corresponding difference values;
and taking the pixel block with the difference value not being zero as the picture difference information.
Step 204, determining a difference region between the first display picture and the second display picture according to the picture difference information.
In the embodiment of the application, different points which are scattered may exist in the first processing display picture and the second processing display picture, in order to avoid that the different points which are scattered in the first processing display picture and the second processing display picture affect the judgment of the difference area, the first processing display picture and the second processing display picture can be processed by using a corrosion algorithm, and the points which are scattered in the first processing display picture and the second processing display picture are removed, namely the points which are scattered in the first processing display picture and the second processing display picture are denoised. Specifically, the determining the difference region between the first display picture and the second display picture according to the picture difference information in the step 204 may include:
Performing corrosion calculation on the first processing display picture and the second processing display picture according to the picture difference information to obtain a corroded first processing display picture and a corroded second processing display picture;
comparing the corroded first processing display picture with the corroded second processing display picture, and determining a first reference difference area between the corroded first processing display picture and the corroded second processing display picture;
and determining the corresponding area of the first reference difference area on the first display picture and the second display picture as the difference area.
In the embodiment of the application, the corroded first processing display picture and the corroded second processing display picture can be obtained by respectively performing corrosion calculation on the first processing display picture and the second processing display picture at least once. Since most of scattered difference points in the corroded first processing display picture and the corroded second processing display picture are removed, the corroded first processing display picture and the corroded second processing display picture are compared again, the difference region of the corroded first processing display picture and the corroded second processing display picture can be obtained, and the difference region between the first display picture and the second display picture is further obtained.
The corrosion calculation means that the highlight part of the original image (the first processing display image and the second processing display image) is corroded, the boundary points of the pixel connection components are removed, so that the original image is reduced by one layer, backbone information of the original image can be extracted, burrs of the original image are removed, isolated pixel points in the original image are removed, and the highlight area in the original image is gradually reduced.
In the embodiment of the present application, in order to make the target edges in the corroded first processing display picture and the corroded second processing display picture smoother, the method may further perform at least one expansion calculation on the corroded first processing display picture and the corroded second processing display picture, and specifically, after performing corrosion calculation on the first processing display picture and the corroded second processing display picture according to the picture difference information to obtain the corroded first processing display picture and the corroded second processing display picture, the method further includes:
performing expansion calculation on the corroded first processing display picture and the corroded second processing display picture to obtain an expanded first processing display picture and an expanded second processing display picture;
Comparing the expanded first processed display picture with the expanded second processed display picture, and determining a second reference difference region between the expanded first processed display picture and the expanded second processed display picture;
and determining the corresponding area of the second reference difference area on the first display picture and the second display picture as the difference area.
In the embodiment of the present application, since the corresponding regions on the first display picture and the second display picture may be irregular regions according to the first reference difference region or the second reference difference region, a minimum rectangle containing the corresponding irregular regions may be set as the difference region.
In the embodiment of the application, the expansion calculation means that the highlight part of the original image (the first processing display image and the second processing display image) is expanded, which is to enlarge the boundary of each pixel connecting component by one layer and fill the hole at the edge of the original image or in the isolated pixel in the original image, so that the highlight area in the original image is gradually enlarged.
In the embodiment of the application, the first display picture and the second display picture are the same menu interface of the target electronic device, the options of the movable cursors on the first display picture and the second display picture on the menu interface are different, and the first display picture and the second display picture comprise current user operation pictures formed based on the menu interface of the target electronic device at the current moment. The determined difference areas in the first display picture and the second display picture are areas occupied by options selected by the movable cursor in the first display picture and the second display picture respectively. In order to determine an option selected by a movable cursor of a target user at the current moment, acquiring related information of the option selected by the target user at the current moment, determining a current user operation picture formed by the target user at the current moment based on a menu interface of the target electronic equipment from a first display picture and a second display picture. Specifically, after the step 204 "determining the difference region between the first display picture and the second display picture according to the picture difference information", the method further includes:
Determining a difference area on the first display picture, wherein the difference area is a first selection area of the movable cursor on a menu interface displayed by the first display picture, and the difference area on the second display picture is a second selection area of the movable cursor on a menu interface displayed by the second display picture;
determining a first position reference point of the first selection area in the first display picture and a second position reference point of the second selection area in the second display picture;
acquiring a first position coordinate of the first reference position point in the first display picture, a second position coordinate of the second reference position point in the second display picture, and a target moving operation made by a target user when the movable cursor is moved;
and determining the current user operation picture in the first display picture and the second display picture according to the first position coordinate, the second position coordinate and the target movement operation.
In the embodiment of the present application, the first reference position point may be any point in the first selection area, and likewise, the second reference position point may be any point in the second selection area. For example, the first reference position point may be a center point of the first selection area and the second reference position point may be a center point of the second selection area.
In an embodiment of the present application, the first position coordinate of the first reference position point in the first display picture may be determined based on the relative position of the first reference position point in the first display picture. For example, a coordinate system may be set in the first display picture, and first position coordinates of the first reference position point are determined based on the set coordinate system.
For example, as shown in fig. 3, the first display picture 301 and the second display picture 302 are both menu interfaces of a television, the target user controls the movable cursor to select an energy-saving dimming option in the first display picture 301, controls the movable cursor to select an environment-sensing light option in the second display picture 302, the processor of the television knows that the target movement operation made when the target user moves the movable cursor is an upward movement operation, and since the environment-sensing light option is located above the energy-saving dimming option in the menu interface, the target user can know that the movable cursor is moved from the position of the first display picture 301 to the position of the second display picture 302, that is, the second display picture 302 is a current user operation picture formed based on the menu interface of the target electronic device at a previous moment, and the related information selected by the target user at the current moment is the closed environment-sensing light.
All the above technical solutions may be combined to form an optional embodiment of the present application, and will not be described in detail herein.
According to the difference region positioning method provided by the embodiment of the application, the pixel values of the pixel blocks of the first display picture and the second display picture with different display data can be adjusted first to form the first processing display picture and the second processing display picture, the possibility that the two processing display pictures have the same display content and have larger pixel value difference is reduced, the influence on the pixel value of the picture caused by unstable LED light emission of the display screen of the target electronic display device at different times is reduced, and the difference regions in the two different display pictures can be accurately and simply positioned according to the picture difference information obtained according to the comparison result by comparing the two processing display pictures.
Referring to fig. 5, fig. 5 is another flow chart of the differential area positioning method according to the embodiment of the application. The specific flow of the method can be as follows:
step 501, a first display picture and a second display picture formed based on display content of a target electronic device are acquired.
The first display picture and the second display picture are the same menu interface of the target electronic equipment, options of movable cursors on the menu interface of the first display picture and the second display picture are different, and the first display picture and the second display picture comprise current user operation pictures formed based on the menu interface of the target electronic equipment at the current moment.
Step 502, obtaining a first pixel value of each first pixel block of the first display picture and a second pixel value of each second pixel block of the second display picture.
Step 503, making differences between the first pixel values of each first pixel block and the first pixel values of the adjacent pixel blocks in the first display picture to form a plurality of first difference values, and making differences between the second pixel values of each second pixel block and the second pixel values of the adjacent pixel blocks in the second display picture to form a plurality of second difference values.
The adjacent pixel block of a pixel block is a pixel block having the same edge or the same vertex as the pixel block in the picture.
Step 504, adjusting the pixel value of each first pixel block of the first display picture according to the first difference value, so that the color of the first display picture is changed into a first color and a second color, obtaining the first processed display picture, and adjusting the pixel value of each second pixel block of the second display picture according to the second difference value, so that the color of the second display picture is changed into the first color and the second color, obtaining the second processed display picture.
For example, adjacent pixel blocks of a target pixel block a in the first display picture are an adjacent pixel block B, an adjacent pixel block C and an adjacent pixel block D, a first difference value l is obtained by making a difference between first pixel values of the target pixel block a and the adjacent pixel block B, a first difference value m is obtained by making a difference between first pixel values of the target pixel block a and the adjacent pixel block C, a first difference value n is obtained by making a difference between first pixel values of the target pixel block a and the adjacent pixel block D, and a first contrast pixel threshold value t of the first display picture is set. If the first difference value l is smaller than the first contrast pixel threshold t, the pixel value change degree between the target pixel block a and the adjacent pixel block B is smaller, the pixel value of the target pixel block a and the pixel value of the adjacent pixel block B are set to be the same color (white or black), if the first difference value m is larger than the first contrast pixel threshold t, the pixel value change degree between the target pixel block a and the adjacent pixel block C is larger, the pixel value of the target pixel block a and the pixel value of the adjacent pixel block C are set to be different colors (i.e. if the target pixel block a is black, the adjacent pixel block C is white, and vice versa), and if the first difference value n is smaller than the first contrast pixel threshold t, the pixel value change degree between the target pixel block a and the adjacent pixel block D is set to be the same color (white or black), so as to form the first processing display picture. And similarly, performing the same operation on the pixel blocks in the second display picture, thereby forming a second processing display picture.
And 505, performing difference on pixel values of the pixel blocks at corresponding positions of the first processing display picture and the second processing display picture to obtain corresponding difference values.
And step 506, taking the pixel block with the difference value not being zero as the picture difference information.
And 507, performing corrosion calculation on the first processing display picture and the second processing display picture according to the picture difference information to obtain a corroded first processing display picture and a corroded second processing display picture.
And 508, performing expansion calculation on the corroded first processing display picture and the corroded second processing display picture to obtain an expanded first processing display picture and an expanded second processing display picture.
Step 509, comparing the expanded first processed display picture and the expanded second processed display picture, and determining a second reference difference region between the expanded first processed display picture and the expanded second processed display picture.
Step 510, determining the corresponding area of the second reference difference area on the first display picture and the second display picture as the difference area.
And step 511, determining a current user operation picture formed based on a menu interface of the target electronic device at the current moment in the first display picture and the second display picture.
For example, determining a difference area on the first display picture, which is a first selection area of the movable cursor on a menu interface displayed by the first display picture, and determining a difference area on the second display picture, which is a second selection area of the movable cursor on a menu interface displayed by the second display picture; determining a first position reference point of the first selection area in the first display picture and a second position reference point of the second selection area in the second display picture; acquiring a first position coordinate of the first reference position point in the first display picture, a second position coordinate of the second reference position point in the second display picture, and a target moving operation made by a target user when the movable cursor is moved; and determining the current user operation picture in the first display picture and the second display picture according to the first position coordinate, the second position coordinate and the target movement operation.
All the above technical solutions may be combined to form an optional embodiment of the present application, and will not be described in detail herein.
According to the difference region positioning method provided by the embodiment of the application, the pixel values of the pixel blocks of the first display picture and the second display picture with different display data can be adjusted to form the first processing display picture and the second processing display picture, the possibility that the two processing display pictures have the same display content and have larger pixel value difference is reduced, the influence on the pixel value of the picture caused by unstable brightness of the light emitting device of the display screen of the target electronic equipment at different times is reduced, and the difference regions in the two different display pictures can be accurately and simply positioned according to the difference information of the pictures obtained by comparing the two processing display pictures.
In order to facilitate better implementation of the differential area positioning method of the embodiment of the application, the embodiment of the application also provides a differential area positioning device. Referring to fig. 6, fig. 6 is a schematic structural diagram of a differential area positioning device according to an embodiment of the application. The difference region positioning apparatus may include a picture acquisition unit 601, an adjustment unit 602, an information acquisition unit 603, and a determination unit 604.
The image obtaining unit 601 is configured to obtain a first display image and a second display image;
an adjusting unit 602, configured to adjust a pixel value of each pixel block in each picture according to a pixel value difference between each pixel block in each display picture and an adjacent pixel block, so as to obtain a first processed display picture and a second processed display picture;
an information acquisition unit 603 configured to acquire picture difference information between the first processing display picture and the second processing display picture;
a determining unit 604, configured to determine a difference area between the first display picture and the second display picture according to the picture difference information.
Optionally, the adjusting unit 602 is further configured to:
acquiring first pixel values of first pixel blocks of the first display picture and second pixel values of second pixel blocks of the second display picture;
the first pixel value of each first pixel block in the first display picture is differenced with the first pixel value of the adjacent pixel block to form a plurality of first difference values, and the second pixel value of each second pixel block in the second display picture is differenced with the second pixel value of the adjacent pixel block to form a plurality of second difference values;
And adjusting pixel values of the first pixel blocks of the first display picture according to the first difference value to enable the color of the first display picture to be changed into a first color and a second color, obtaining the first processing display picture, and adjusting pixel values of the second pixel blocks of the second display picture according to the second difference value to enable the color of the second display picture to be changed into the first color and the second color, and obtaining the second processing display picture.
Optionally, the adjusting unit 602 is further configured to:
acquiring a first contrast pixel threshold value of the first pixel block and an adjacent pixel block in the first display picture, and acquiring a second contrast pixel threshold value of the second pixel block and an adjacent pixel block in the second display picture;
comparing a first difference value related to each first pixel block in the first display picture with the first contrast pixel threshold according to a first preset sequence, if the first difference value is smaller than the first contrast pixel threshold, determining that the first difference value smaller than the first contrast pixel threshold is a first reference difference value, and adjusting pixel values of the first pixel block and adjacent pixel blocks forming the first reference difference value by making differences to be pixel values corresponding to the first color or pixel values corresponding to the second color;
If the first difference value is larger than the first contrast pixel threshold value, determining that the first difference value larger than the first contrast pixel threshold value is a second reference difference value, and adjusting one pixel value to be the pixel value corresponding to the first color and the other pixel value to be the pixel value corresponding to the second color in the pixel values of a first pixel block and the adjacent pixel blocks which are subjected to difference forming to the second reference difference value;
obtaining the first processing display picture according to the adjusted first pixel block;
comparing a second difference value related to each second pixel block in the second display picture with the second comparison pixel threshold according to a second preset sequence, if the second difference value is smaller than the second comparison pixel threshold, determining that the second difference value smaller than the second comparison pixel threshold is a third reference difference value, and adjusting pixel values of the second pixel block and adjacent pixel blocks forming the third reference difference value by making differences to be pixel values corresponding to the first color or pixel values corresponding to the second color;
if the second difference value is larger than the second contrast pixel threshold value, determining that the second difference value larger than the second contrast pixel threshold value is a fourth reference difference value, and adjusting one pixel value to be the pixel value corresponding to the first color and the other pixel value to be the pixel value corresponding to the second color in the pixel values of a second pixel block and an adjacent pixel block of the fourth reference difference value formed by making the difference;
And obtaining the second processing display picture according to the adjusted second pixel block.
Optionally, the information obtaining unit 603 is further configured to:
the pixel values of the pixel blocks at the corresponding positions of the first processing display picture and the second processing display picture are subjected to difference to obtain corresponding difference values;
and taking the pixel block with the difference value not being zero as the picture difference information.
Optionally, the determining unit 604 is further configured to:
performing corrosion calculation on the first processing display picture and the second processing display picture according to the picture difference information to obtain a corroded first processing display picture and a corroded second processing display picture;
comparing the corroded first processing display picture with the corroded second processing display picture, and determining a first reference difference area between the corroded first processing display picture and the corroded second processing display picture;
and determining the corresponding area of the first reference difference area on the first display picture and the second display picture as the difference area.
Optionally, the determining unit 604 is further configured to:
performing expansion calculation on the corroded first processing display picture and the corroded second processing display picture to obtain an expanded first processing display picture and an expanded second processing display picture;
Comparing the expanded first processed display picture with the expanded second processed display picture, and determining a second reference difference region between the expanded first processed display picture and the expanded second processed display picture;
and determining the corresponding area of the second reference difference area on the first display picture and the second display picture as the difference area.
Optionally, the first display picture and the second display picture are the same menu interface of the target electronic device, options of movable cursors on the menu interface on the first display picture and the second display picture are different, and the first display picture and the second display picture include current user operation pictures formed based on the menu interface of the target electronic device at the current moment;
the determining unit 604 is further configured to:
determining a difference area on the first display picture, wherein the difference area is a first selection area of the movable cursor on a menu interface displayed by the first display picture, and the difference area on the second display picture is a second selection area of the movable cursor on a menu interface displayed by the second display picture;
Determining a first position reference point of the first selection area in the first display picture and a second position reference point of the second selection area in the second display picture;
acquiring a first position coordinate of the first reference position point in the first display picture, a second position coordinate of the second reference position point in the second display picture, and a target moving operation made by a target user when the movable cursor is moved;
and determining the current user operation picture in the first display picture and the second display picture according to the first position coordinate, the second position coordinate and the target movement operation.
All the above technical solutions may be combined to form an optional embodiment of the present application, and will not be described in detail herein.
According to the difference region positioning device provided by the embodiment of the application, the pixel values of the pixel blocks of the first display picture and the second display picture with different display data can be adjusted first to form the first processing display picture and the second processing display picture, the possibility that the two processing display pictures have the same display content and have larger pixel value difference is reduced, the influence on the corresponding pixel values caused by unstable LED light emission of the target electronic display equipment at different times is reduced, and the generated two processing display pictures are compared, so that the difference regions in the two different display pictures can be accurately and simply positioned according to the picture difference information obtained according to the comparison result.
Correspondingly, the embodiment of the application also provides computer equipment, which can be a terminal, and the terminal can be terminal equipment such as a smart phone, a tablet personal computer, a notebook computer, a touch screen, a game machine, a personal computer, a personal digital assistant and the like. Fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application. The computer device 700 includes a processor 701 having one or more processing cores, a memory 702 having one or more computer readable storage media, and a computer program stored on the memory 702 and executable on the processor. The processor 701 is electrically connected to the memory 702. It will be appreciated by those skilled in the art that the computer device structure shown in the figures is not limiting of the computer device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The processor 701 is a control center of the computer device 700, connects various parts of the entire computer device 700 using various interfaces and lines, and performs various functions of the computer device 700 and processes data by running or loading software programs and/or modules stored in the memory 702, and calling data stored in the memory 702, thereby performing overall monitoring of the computer device 700.
In an embodiment of the present application, the processor 701 in the computer device 700 loads the instructions corresponding to the processes of one or more application programs into the memory 702 according to the following steps, and the processor 701 executes the application programs stored in the memory 702, thereby implementing various functions:
acquiring a first display picture and a second display picture;
according to the pixel value difference value between each pixel block in each display picture and the adjacent pixel block, the pixel value of each pixel block in each picture is adjusted to obtain a first processing display picture and a second processing display picture;
acquiring picture difference information between the first processing display picture and the second processing display picture;
and determining a difference region of the first display picture and the second display picture according to the picture difference information.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Optionally, as shown in fig. 7, the computer device 700 further includes: a touch display 703, a radio frequency circuit 704, an audio circuit 705, an input unit 706, and a power supply 707. The processor 701 is electrically connected to the touch display 703, the radio frequency circuit 704, the audio circuit 705, the input unit 706, and the power supply 707, respectively. Those skilled in the art will appreciate that the computer device structure shown in FIG. 7 is not limiting of the computer device and may include more or fewer components than shown, or may be combined with certain components, or a different arrangement of components.
The touch display 703 may be used to display a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface. The touch display screen 703 may include a display panel and a touch panel. Wherein the display panel may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of a computer device, which may be composed of graphics, text, icons, video, and any combination thereof. Alternatively, the display panel may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may be used to collect touch operations on or near the user (such as the user redeeming a finger, stylus, or any other suitable object or accessory on or near the touch panel) and generate corresponding operational instructions, and the operational instructions execute a corresponding program. Alternatively, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 701, and can receive and execute commands sent from the processor 701. The touch panel may overlay the display panel, and upon detection of a touch operation thereon or thereabout, the touch panel is transferred to the processor 701 to determine the type of touch event, and the processor 701 then provides a corresponding visual output on the display panel based on the type of touch event. In the embodiment of the present application, the touch panel and the display panel may be integrated into the touch display screen 703 to realize input and output functions. In some embodiments, however, the touch panel and the touch panel may be implemented as two separate components to perform the input and output functions. I.e. the touch display 703 may also implement an input function as part of the input unit 706.
The radio frequency circuitry 704 may be configured to transceive radio frequency signals to establish wireless communication with a network device or other computer device via wireless communication.
Audio circuitry 705 may be used to provide an audio interface between a user and a computer device through speakers, microphones, and so forth. The audio circuit 705 may transmit the received electrical signal converted from audio data to a speaker, where it is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 705 and converted into audio data, which are processed by the audio data output processor 701 for transmission to, for example, another computer device via the radio frequency circuit 704, or which are output to the memory 702 for further processing. Audio circuitry 705 may also include an ear bud jack to provide communication of a peripheral headset with a computer device.
The input unit 706 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint, iris, facial information, etc.), as well as to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The power supply 707 is used to power the various components of the computer device 700. Alternatively, the power supply 707 may be logically connected to the processor 701 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system. The power supply 707 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown in fig. 7, the computer device 700 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., which will not be described herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
As can be seen from the above, the computer device provided in this embodiment may first adjust the pixel values of the pixel blocks of the first display picture and the second display picture having different display data to form the first processing display picture and the second processing display picture, thereby reducing the possibility that the two processing display pictures have the same display content and have larger pixel value difference, and reducing the influence on the corresponding pixel values caused by unstable LED light emission of the display screen of the target electronic display device at different times.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a computer readable storage medium having stored therein a plurality of computer programs that can be loaded by a processor to perform the steps of any of the difference region positioning methods provided by the embodiments of the present application. For example, the computer program may perform the steps of:
acquiring a first display picture and a second display picture;
according to the pixel value difference value between each pixel block in each display picture and the adjacent pixel block, the pixel value of each pixel block in each picture is adjusted to obtain a first processing display picture and a second processing display picture;
acquiring picture difference information between the first processing display picture and the second processing display picture;
and determining a difference region of the first display picture and the second display picture according to the picture difference information.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The steps in any of the difference region positioning methods provided by the embodiments of the present application can be executed by the computer program stored in the storage medium, so that the beneficial effects that any of the difference region positioning methods provided by the embodiments of the present application can be achieved, which are detailed in the previous embodiments and are not described herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
The above describes in detail a method, apparatus, computer device and storage medium for locating a difference area provided by the embodiments of the present application, and specific examples are applied to describe the principles and embodiments of the present application, where the description of the above embodiments is only used to help understand the technical solution and core idea of the present application; those of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.

Claims (10)

1. A method for locating a discrepancy area, comprising:
acquiring a first display picture and a second display picture;
according to the pixel value difference value between each pixel block in each display picture and the adjacent pixel block, the pixel value of each pixel block in each picture is adjusted to obtain a first processing display picture and a second processing display picture;
acquiring picture difference information between the first processing display picture and the second processing display picture;
and determining a difference region between the first display picture and the second display picture according to the picture difference information.
2. The method according to claim 1, wherein the adjusting the pixel value of each pixel block in each picture according to the pixel value difference between each pixel block in each display picture and the adjacent pixel block to obtain the first processed display picture and the second processed display picture includes:
acquiring first pixel values of first pixel blocks of the first display picture and second pixel values of second pixel blocks of the second display picture;
the first pixel value of each first pixel block in the first display picture is differenced with the first pixel value of the adjacent pixel block to form a plurality of first difference values, and the second pixel value of each second pixel block in the second display picture is differenced with the second pixel value of the adjacent pixel block to form a plurality of second difference values;
And adjusting pixel values of the first pixel blocks of the first display picture according to the first difference value to enable the color of the first display picture to be changed into a first color and a second color, obtaining the first processing display picture, and adjusting pixel values of the second pixel blocks of the second display picture according to the second difference value to enable the color of the second display picture to be changed into the first color and the second color, and obtaining the second processing display picture.
3. The method according to claim 2, wherein said adjusting pixel values of each of the first pixel blocks of the first display picture according to the first difference value to change the color of the first display picture to a first color and a second color to obtain the first processed display picture, and adjusting pixel values of each of the second pixel blocks of the second display picture according to the second difference value to change the color of the second display picture to the first color and the second color to obtain the second processed display picture, comprises:
acquiring a first contrast pixel threshold value of the first pixel block and an adjacent pixel block in the first display picture, and acquiring a second contrast pixel threshold value of the second pixel block and an adjacent pixel block in the second display picture;
Comparing a first difference value related to each first pixel block in the first display picture with the first contrast pixel threshold according to a first preset sequence, if the first difference value is smaller than the first contrast pixel threshold, determining that the first difference value smaller than the first contrast pixel threshold is a first reference difference value, and adjusting pixel values of the first pixel block and adjacent pixel blocks forming the first reference difference value by making differences to be pixel values corresponding to the first color or pixel values corresponding to the second color;
if the first difference value is larger than the first contrast pixel threshold value, determining that the first difference value larger than the first contrast pixel threshold value is a second reference difference value, and adjusting one pixel value to be the pixel value corresponding to the first color and the other pixel value to be the pixel value corresponding to the second color in the pixel values of a first pixel block and the adjacent pixel blocks which are subjected to difference forming to the second reference difference value;
obtaining the first processing display picture according to the adjusted first pixel block;
comparing a second difference value related to each second pixel block in the second display picture with the second comparison pixel threshold according to a second preset sequence, if the second difference value is smaller than the second comparison pixel threshold, determining that the second difference value smaller than the second comparison pixel threshold is a third reference difference value, and adjusting pixel values of the second pixel block and adjacent pixel blocks forming the third reference difference value by making differences to be pixel values corresponding to the first color or pixel values corresponding to the second color;
If the second difference value is larger than the second contrast pixel threshold value, determining that the second difference value larger than the second contrast pixel threshold value is a fourth reference difference value, and adjusting one pixel value to be the pixel value corresponding to the first color and the other pixel value to be the pixel value corresponding to the second color in the pixel values of a second pixel block and an adjacent pixel block of the fourth reference difference value formed by making the difference;
and obtaining the second processing display picture according to the adjusted second pixel block.
4. The method of claim 1, wherein the obtaining picture difference information between the first processed display picture and the second processed display picture comprises:
the pixel values of the pixel blocks at the corresponding positions of the first processing display picture and the second processing display picture are subjected to difference to obtain corresponding difference values;
and taking the pixel block with the difference value not being zero as the picture difference information.
5. The method of claim 1, wherein the determining a difference region between the first display picture and the second display picture from the picture difference information comprises:
performing corrosion calculation on the first processing display picture and the second processing display picture according to the picture difference information to obtain a corroded first processing display picture and a corroded second processing display picture;
Comparing the corroded first processing display picture with the corroded second processing display picture, and determining a first reference difference area between the corroded first processing display picture and the corroded second processing display picture;
and determining the corresponding area of the first reference difference area on the first display picture and the second display picture as the difference area.
6. The method of claim 5, wherein the performing corrosion calculation on the first processed display picture and the second processed display picture according to the picture difference information, after obtaining a corroded first processed display picture and a corroded second processed display picture, further comprises:
performing expansion calculation on the corroded first processing display picture and the corroded second processing display picture to obtain an expanded first processing display picture and an expanded second processing display picture;
comparing the expanded first processed display picture with the expanded second processed display picture, and determining a second reference difference region between the expanded first processed display picture and the expanded second processed display picture;
And determining the corresponding area of the second reference difference area on the first display picture and the second display picture as the difference area.
7. The method of claim 1, wherein the first display picture and the second display picture are the same menu interface of the target electronic device, options of movable cursors on the first display picture and the second display picture on the menu interface are different, and the first display picture and the second display picture comprise current user operation pictures formed based on the menu interface of the target electronic device at the current moment;
after determining the difference region between the first display picture and the second display picture according to the picture difference information, the method further comprises:
determining a difference area on the first display picture, wherein the difference area is a first selection area of the movable cursor on a menu interface displayed by the first display picture, and the difference area on the second display picture is a second selection area of the movable cursor on a menu interface displayed by the second display picture;
determining a first position reference point of the first selection area in the first display picture and a second position reference point of the second selection area in the second display picture;
Acquiring a first position coordinate of the first reference position point in the first display picture, a second position coordinate of the second reference position point in the second display picture, and a target moving operation made by a target user when the movable cursor is moved;
and determining the current user operation picture in the first display picture and the second display picture according to the first position coordinate, the second position coordinate and the target movement operation.
8. A differential area locating apparatus, comprising:
the image acquisition unit is used for acquiring a first display image and a second display image;
the adjusting unit is used for adjusting the pixel value of each pixel block in each picture according to the pixel value difference value between each pixel block in each display picture and the adjacent pixel block to obtain a first processing display picture and a second processing display picture;
an information acquisition unit configured to acquire picture difference information between the first processed display picture and the second processed display picture;
and the determining unit is used for determining a difference area between the first display picture and the second display picture according to the picture difference information.
9. A computer device, comprising:
a memory for storing a computer program;
processor for implementing the steps in the difference region localization method according to any one of claims 1 to 7 when executing the computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the difference region localization method according to any one of claims 1 to 7.
CN202210271544.6A 2022-03-18 2022-03-18 Differential area positioning method, differential area positioning device, computer equipment and storage medium Pending CN116797631A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210271544.6A CN116797631A (en) 2022-03-18 2022-03-18 Differential area positioning method, differential area positioning device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210271544.6A CN116797631A (en) 2022-03-18 2022-03-18 Differential area positioning method, differential area positioning device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116797631A true CN116797631A (en) 2023-09-22

Family

ID=88042516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210271544.6A Pending CN116797631A (en) 2022-03-18 2022-03-18 Differential area positioning method, differential area positioning device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116797631A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117667295A (en) * 2024-02-02 2024-03-08 深圳麦风科技有限公司 Display method, device and storage medium of dynamic wallpaper

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117667295A (en) * 2024-02-02 2024-03-08 深圳麦风科技有限公司 Display method, device and storage medium of dynamic wallpaper
CN117667295B (en) * 2024-02-02 2024-04-16 深圳麦风科技有限公司 Display method, device and storage medium of dynamic wallpaper

Similar Documents

Publication Publication Date Title
CN113052947B (en) Rendering method, rendering device, electronic equipment and storage medium
CN113350793B (en) Interface element setting method and device, electronic equipment and storage medium
CN108665510B (en) Rendering method and device of continuous shooting image, storage medium and terminal
CN112465945A (en) Model generation method and device, storage medium and computer equipment
CN113018856A (en) Image processing method, image processing device, electronic equipment and storage medium
CN113487662B (en) Picture display method and device, electronic equipment and storage medium
CN113539439B (en) Medical image processing method and device, computer equipment and storage medium
CN116797631A (en) Differential area positioning method, differential area positioning device, computer equipment and storage medium
CN117455753B (en) Special effect template generation method, special effect generation device and storage medium
CN112316425B (en) Picture rendering method and device, storage medium and electronic equipment
CN113350792B (en) Contour processing method and device for virtual model, computer equipment and storage medium
CN113426106B (en) Display control method and device in game, electronic equipment and storage medium
CN118304652A (en) Game map display method and device, computer equipment and storage medium
CN114419237A (en) Map processing method and device, computer equipment and storage medium
CN115888092A (en) Mapping processing method and device for virtual object, computer equipment and storage medium
CN116236779A (en) Mapping processing method and device, computer equipment and storage medium
CN117541674A (en) Virtual object model rendering method and device, computer equipment and storage medium
CN118096977A (en) Scene showing method, device, electronic equipment and computer readable storage medium
CN117876515A (en) Virtual object model rendering method and device, computer equipment and storage medium
CN116889726A (en) Game map rendering method and device, electronic equipment and readable storage medium
CN117032540A (en) Interactive operation response method, device, computer equipment and storage medium
CN117596497A (en) Image rendering method, device, electronic equipment and computer readable storage medium
CN118195952A (en) Image processing method, device, electronic equipment and storage medium
CN115393500A (en) Virtual scene light simulation method and device, computer equipment and storage medium
CN115731339A (en) Virtual model rendering method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication