CN111610926A - Touch event attribute judgment method and device and electronic equipment - Google Patents

Touch event attribute judgment method and device and electronic equipment Download PDF

Info

Publication number
CN111610926A
CN111610926A CN202010463105.6A CN202010463105A CN111610926A CN 111610926 A CN111610926 A CN 111610926A CN 202010463105 A CN202010463105 A CN 202010463105A CN 111610926 A CN111610926 A CN 111610926A
Authority
CN
China
Prior art keywords
touch event
characteristic data
contact area
true
attribute
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
CN202010463105.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.)
Beijing Supertool Internet Technology Ltd
Original Assignee
Beijing Supertool Internet Technology 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 Supertool Internet Technology Ltd filed Critical Beijing Supertool Internet Technology Ltd
Priority to CN202010463105.6A priority Critical patent/CN111610926A/en
Publication of CN111610926A publication Critical patent/CN111610926A/en
Pending legal-status Critical Current

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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

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)

Abstract

The application relates to the technical field of computers, in particular to a touch event attribute judgment method and device and electronic equipment. The method for judging the touch event attribute comprises the steps of determining a contact area between an operation body clicking the button element and an equipment screen when the button element arranged on a target page is clicked and a touch event is generated, obtaining characteristic data used for representing morphological characteristics of the contact area, and sending the characteristic data to a server so that the server can judge the true and false attributes of the touch event according to the characteristic data. By the method, the device and the electronic equipment for judging the touch event attribute, the true and false attributes of the touch event can be obtained, and then the true and false attributes of the touch event are used as a flow judgment basis.

Description

Touch event attribute judgment method and device and electronic equipment
Technical Field
The application relates to the technical field of computers, in particular to a touch event attribute judgment method and device and electronic equipment.
Background
With the rapid increase in the number of mobile internet users, mobile internet advertising has become a new form of advertisement delivery. In the mobile internet advertisement system, a traffic owner may deliver mobile internet advertisements to a user while the user uses a network service, for example, deliver mobile internet advertisements to the user while the user uses a terminal application, and simultaneously, bring expected value conversion to the advertiser through operation behaviors of clicking, exposing, downloading, installing, activating and the like of the user, thereby obtaining benefits. However, part of the traffic is mainly used for obtaining more benefits, and false traffic is obtained in a cheating mode on the basis of actual traffic, and the false traffic is worthless for advertisers. Therefore, how to prevent the flow cheating becomes a technical problem to be solved urgently in the technical field of computers.
Disclosure of Invention
An object of the present invention is to provide a method and an apparatus for determining an attribute of a touch event, and an electronic device, so as to solve the above problem.
In a first aspect, a method for determining an attribute of a touch event provided in an embodiment of the present application includes:
when a button element arranged on a target page is clicked and a touch event is generated, determining a contact area between an operation body clicking the button element and an equipment screen;
obtaining characteristic data of the contact area, wherein the characteristic data is used for representing morphological characteristics of the contact area;
and sending the characteristic data to a server so that the server can judge the true and false attributes of the touch event according to the characteristic data.
According to the touch event attribute judging method provided by the embodiment of the application, when the button element arranged on the target page is clicked and the touch event is generated, the contact area between the operation body clicking the button element and the equipment screen is determined, the characteristic data used for representing the morphological characteristics of the contact area is obtained, and the characteristic data is sent to the server so that the server can judge the true and false attributes of the touch event according to the characteristic data. By the method, the device and the electronic equipment for judging the touch event attribute, the true and false attributes of the touch event can be obtained, and then the true and false attributes of the touch event are used as a flow judgment basis.
With reference to the first aspect, an embodiment of the present application further provides a first optional implementation manner of the first aspect, and obtaining feature data of the contact area includes:
acquiring an object attribute set of a touch event;
and extracting the characteristic data of the contact area from the object attribute set.
With reference to the first optional implementation manner of the first aspect, an embodiment of the present application further provides a second optional implementation manner of the first aspect, where extracting feature data of a contact area from an object attribute set includes:
and extracting the minimum radius value and the maximum radius value of the contact area from the object attribute set, and using the minimum radius value and the maximum radius value as the feature data of the contact area together.
In a second aspect, an embodiment of the present application further provides another method for determining an attribute of a touch event, including:
receiving characteristic data sent by terminal equipment, wherein the characteristic data is used for representing state characteristics of a contact area, and the contact area is an area where an operation body of a clicked button element is in contact with an equipment screen when the button element arranged on a target page is clicked and a touch event is generated;
and acquiring the true and false attributes of the touch event according to the characteristic data.
The touch event attribute judging method provided by the embodiment of the application can receive the characteristic data sent by the terminal device, wherein the characteristic data is used for representing the state characteristics of a contact area, and the contact area is an area where an operation body of a clicked button element is in contact with a device screen when the button element arranged on a target page is clicked and a touch event is generated, so that the true and false attributes of the touch event can be obtained according to the characteristic data. By the method, the device and the electronic equipment for judging the touch event attribute, the true and false attributes of the touch event can be obtained, and then the true and false attributes of the touch event are used as a flow judgment basis.
With reference to the second aspect, this application provides a first optional implementation manner of the second aspect, and obtaining, according to the feature data, a true and false attribute of the touch event includes:
acquiring all characteristic data received in a target time period;
and according to the data association logic among all the characteristic data received in the target time period, acquiring the true and false attribute of each characteristic data corresponding to the touch event in all the characteristic data received in the target time period.
With reference to the first optional implementation manner of the second aspect, this application example further provides a second optional implementation manner of the second aspect, where the feature data includes a minimum radius value and a maximum radius value of the contact area, and in all the feature data received in the target time period, according to data association logic between all the feature data received in the target time period, the obtaining, by the application example, a true-false attribute of each corresponding touch event includes:
acquiring the number of characteristic data with the same minimum radius value and maximum radius value in all the characteristic data received in a target time period as a first quantity value;
when the ratio of the first quantity value to the number of all the feature data received in the target time interval is within a first preset ratio interval, judging that the true and false attribute of each feature data corresponding to the touch event in all the feature data received in the target time interval is true;
and when the ratio of the first quantity value to the number of all the characteristic data received in the target time interval exceeds a first preset ratio interval, judging that the true and false attribute of each characteristic data corresponding to the touch event in all the characteristic data received in the target time interval is false.
In a third aspect, a touch event attribute determining apparatus provided in an embodiment of the present application includes:
the area determining module is used for determining a contact area between an operation body clicking the button element and an equipment screen when the button element arranged on the target page is clicked and a touch event is generated;
the data acquisition module is used for acquiring characteristic data of the contact area, and the characteristic data is used for representing morphological characteristics of the contact area;
and the data sending module is used for sending the characteristic data to the server so that the server can obtain the true and false attributes of the touch event according to the characteristic data.
The touch event attribute determination apparatus provided in the embodiment of the present application has the same beneficial effects as the touch event attribute determination method provided in any optional implementation manner of the first aspect, and details are not described here.
In a fourth aspect, an embodiment of the present application further provides another touch event attribute determining apparatus, including:
the data receiving module is used for receiving characteristic data sent by the terminal equipment, the characteristic data is used for representing state characteristics of a contact area, and the contact area is an area where an operation body of a clicked button element is in contact with an equipment screen when the button element arranged on a target page is clicked and a touch event is generated;
and the attribute judging module is used for obtaining the true and false attributes of the touch event according to the characteristic data.
The touch event attribute determination device provided in the embodiment of the present application has the same beneficial effects as the touch event attribute determination method provided in any optional implementation manner of the second aspect, and details are not repeated here.
In a fifth aspect, an electronic device provided in an embodiment of the present application includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the computer program to implement the method for determining an attribute of a touch event provided in any optional implementation manner of the first aspect or the second aspect.
The electronic device apparatus provided in the embodiment of the present application has the same beneficial effects as the touch event attribute determination method provided in any optional implementation manner of the first aspect or the second aspect, and details are not repeated here.
In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed, the method for determining the touch event attribute provided in any optional implementation manner of the first aspect or the second aspect is implemented.
The computer-readable storage medium provided in the embodiment of the present application has the same beneficial effects as the touch event attribute determination method provided in any optional implementation manner of the first aspect or the second aspect, and details are not described here.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart illustrating steps of a method for determining an attribute of a touch event according to an embodiment of the present application.
Fig. 2 is a schematic view of a contact region according to an embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating steps of another method for determining touch event attributes according to an embodiment of the present application.
Fig. 4 is a schematic structural block diagram of a touch event attribute determination apparatus according to an embodiment of the present application.
Fig. 5 is a schematic structural block diagram of another touch event attribute determination apparatus according to an embodiment of the present application.
Fig. 6 is a schematic structural block diagram of an electronic device according to an embodiment of the present application.
Reference numerals: 110-a region determination module; 120-a data acquisition module; 130-a data transmission module; 140-a data receiving module; 150-attribute judgment module; 200-an electronic device; 210-a processor; 220-memory.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Referring to fig. 1, a flow diagram of a touch event attribute determination method according to an embodiment of the present disclosure is shown, where the touch event attribute determination method is applied to a Mobile terminal, such as a smart phone, a tablet computer, a Personal Digital Assistant (PAD), a Mobile Internet Device (MID), and the like. It should be noted that the touch event attribute determination method provided in the embodiment of the present application is not limited to the order shown in fig. 1 and the following, and the specific flow and steps of the touch event attribute determination method are described below with reference to fig. 1.
And step S100, when the button element arranged on the target page is clicked and the touch event is generated, determining the contact area between the operation body clicking the button element and the equipment screen.
In this embodiment of the application, the target page may be a certain page of the terminal application, for example, a certain page of the green microblog, a certain page of the known microblog, or a certain page of the paid bank, and the button element set on the target page may be a button element for playing a certain advertisement or a button element for turning to a certain third-party webpage. In the embodiment of the application, the touch event can be captured through a preset Javascript code to determine a contact area between an operation body of the clicked button element and a device screen, where the operation body of the clicked button element may be a finger of a user, and correspondingly, the contact area is generally in an elliptical shape.
And step S200, obtaining characteristic data of the contact area, wherein the characteristic data is used for representing morphological characteristics of the contact area.
In the embodiment of the application, the feature data is used to characterize morphological features of the contact area, for example, features such as coordinate information and size of the contact area, and the feature data may also be obtained through a preset Javascript code, for example, after the touch event is captured through the preset Javascript code, the feature data of the contact area is obtained synchronously, and the feature data is usually carried in an object attribute set of the touch event. Based on this, in the embodiment of the present application, the step S200 may include a step S210 and a step S220.
Step S210, an object attribute set of the touch event is acquired.
In step S220, feature data of the contact region is extracted from the object attribute set.
In this embodiment, the object attribute set of the touch event generally includes coordinate information of the contact area, information of pressure of the button element being clicked, information of size of the contact area, and the like, and for example, the object attribute set may be specifically expressed as follows.
Figure BDA0002511603760000071
In this embodiment of the application, when the feature data includes the size information of the contact region, since the shape of the contact region is generally an ellipse, the size information of the contact region may further include a minimum radius value and a maximum radius value of the contact region, and based on this, it can be understood that, in this embodiment of the application, step S220 may specifically be to extract the minimum radius value and the maximum radius value of the contact region from the object attribute set, and use them together as the feature data of the contact region. However, in the embodiment of the present application, the shape of the contact region may be a circle, and when the shape of the contact region is a circle, the minimum radius value and the maximum radius value of the contact region are equal.
Taking the above object attribute set as an example, the size information of the contact region includes a horizontal radius of the contact region and a vertical radius of the contact region, where the horizontal radius of the contact region is characterized by radiusX and has a specific value of 10.355564 (e.g., radius x in fig. 2), and the vertical radius of the contact region is characterized by radiusY and has a specific value of 15.365575 (e.g., radius y in fig. 2).
And step S300, sending the characteristic data to a server so that the server can judge the true and false attributes of the touch event according to the characteristic data.
In addition, since the object attribute set of the touch event generally includes coordinate information of the contact area, pressure information of the clicked button element, and size information of the contact area, in order to ensure accuracy of determining the true and false attributes of the touch time, in the embodiment of the present application, when the feature data is sent to the server, the pressure information of the clicked button element may also be sent to the server at the same time. Similarly, taking the above object attribute set as an example, the clicked pressure information of the button element is represented as force, and the specific numerical value is 1. Therefore, the server can judge the true and false attributes of the touch event according to the characteristic data and the clicked pressure information of the button element.
By the method, the device and the electronic equipment for judging the touch event attribute, the true and false attributes of the touch event can be obtained, and then the true and false attributes of the touch event are used as a flow judgment basis.
Second embodiment:
referring to fig. 3, fig. 3 is a schematic flowchart illustrating another touch event attribute determining method according to an embodiment of the present disclosure, where the touch event attribute determining method is applied to a server, such as a network server and a database server. It should be noted that the touch event attribute determination method provided in the embodiment of the present application is not limited to the order shown in fig. 3 and the following, and the specific flow and steps of the touch event attribute determination method are described below with reference to fig. 3.
Step S400, receiving characteristic data sent by the terminal equipment, wherein the characteristic data is used for representing state characteristics of a contact area, and the contact area is an area where an operation body of a clicked button element is in contact with an equipment screen when the button element arranged on a target page is clicked and a touch event is generated.
For the description of the feature data, reference may be specifically made to the description in step S200 in the first embodiment, which is not described in detail in this embodiment of the present application.
And step S500, acquiring the true and false attributes of the touch event according to the characteristic data.
For a single piece of feature data, the true and false attributes of the touch event cannot be generally determined by the feature data, and based on this, in this embodiment, step S200 may include step S510 and step S520.
Step S510, all feature data received in the target time period are acquired.
In the embodiment of the present application, the target time period may be, but is not limited to, 2min, 5min, and 10 min. In addition, in the embodiment of the present application, two adjacent target periods may be partially repeated periods, or may be time continuous periods, for example, when the target periods include a first target period and a second target period, the first target period is 2019.09.01.08.50 to 2019.09.01.08.55, the second target period is 2019.09.01.08.51 to 2019.09.01.08.56, the first target period and the second target period are partially repeated periods, and when the target periods include the first target period and the second target period, the first target period is 2019.09.01.08.50 to 2019.09.01.08.55, and the second target period is 2019.09.01.08.56 to 2019.09.01.09.00, the first target period and the second target period are time continuous periods.
It can also be understood that when two adjacent target time periods are partial repetition time periods, the starting time of the previous time period and the starting time of the next time period are different by a preset step value, and when two adjacent target time periods are time continuous time periods, the ring time of the previous time period and the starting time of the next time period are continuous, wherein the preset step value can be, but is not limited to, 0.5min or 1 min.
Step S520, according to the data association logic between all the feature data received in the target time period, obtaining the true and false attributes of each feature data corresponding to the touch event in all the feature data received in the target time period.
Taking the feature data including the minimum radius value and the maximum radius value of the contact area as an example, in this embodiment of the application, the number of pieces of feature data whose minimum radius value and maximum radius value are equal in all the feature data received in the target time period may be obtained as a first quantity value, when a ratio of the first quantity value to the number of pieces of feature data received in the target time period is in a first preset ratio interval, it is determined that a true attribute of each piece of feature data corresponding to the touch event is true in all the feature data received in the target time period, and when the ratio of the first quantity value to the number of pieces of feature data received in the target time period exceeds the first preset ratio interval, it is determined that a true attribute of each piece of feature data corresponding to the touch event is false in all the feature data received in the target time period, where the first preset ratio interval may be, but is not limited to [0, 5% ], [0, 10% ], and [0, 20% ].
Assume that the first predetermined ratio interval is [0, 10% ], and the received characteristic data in the target time interval is 10 pieces, which are:
first characteristic data: radius of contact 15.355564// area
radius RadusY 15.365575// vertical radius of the contact area
Second characteristic data: radius of contact 15.355555// area
radius RadusY 15.365555// vertical radius of the contact area
Third characteristic data: radius of contact 15.355555// area
radius RadusY 15.365555// vertical radius of the contact area
Fourth characteristic data: radius of contact 15.355565// area
radius RadusY 15.365575// vertical radius of the contact area
Fifth characteristic data: radius of contact 15.355563// area
radius RadusY 15.365575// vertical radius of the contact area
Sixth characteristic data: radius of contact 15.355564// area
radius RadusY 15.365576// vertical radius of the contact area
Seventh characteristic data: radius of contact 15.355564// area
radius RadusY 15.365574// vertical radius of the contact area
Eighth characteristic data: radius of contact 15.355566// area
radius RadusY 15.365575// vertical radius of the contact area
Ninth characteristic data: radius of contact 15.355564// area
radius RadusY 15.365568// vertical radius of the contact area
Tenth characteristic data: radius of contact 15.355564// area
radius RadusY 15.365573// vertical radius of the contact area
Since the minimum radius value and the maximum radius value of the second feature data are equal to each other and the minimum radius value and the maximum radius value of the third feature data are equal to each other in the 10 pieces of feature data, the first quantity value is 2, that is, the ratio of the first quantity value to the number of all the pieces of feature data received in the target time interval is 2/10-20%, which exceeds the first preset ratio interval [0, 10% ], and therefore, it is determined that the true-false attribute of each piece of feature data corresponding to the touch event is false in all the pieces of feature data received in the target time interval. It should be noted that, in this embodiment of the application, when two adjacent target time periods are partial repetition time periods, it is agreed that, for any feature data, when all the target time periods to which the feature data belongs determine that the true and false attribute of the touch event corresponding to the feature data is true, the true and false attribute of the touch event corresponding to the feature data is finally determined to be true, and when any one of the target time periods to which the feature data belongs determines that the true and false attribute of the touch event corresponding to the feature data is false, the true and false attribute of the touch event corresponding to the feature data is finally determined to be false.
It should be further noted that, in this embodiment of the application, when the data sent by the mobile terminal to the server further includes the clicked pressure information of the button element, the true and false attribute of the touch event may also be determined according to the clicked pressure information of the button element.
In the embodiment of the present application, in all pieces of pressure information received in the target time period, each piece of pressure information corresponds to a true-false attribute of the touch event according to data association logic between all pieces of pressure information received in the target time period, for example, a maximum value among the number of pieces of pressure information having equal pressure values in all pieces of pressure information received in the target time period may be obtained as a second numerical value, when a ratio of the second numerical value to the number of all pieces of pressure information received in the target time period is within a second preset ratio interval, it is determined that the true-false attribute of each piece of pressure information corresponding to the touch event in all pieces of pressure information received in the target time period is true, when the ratio of the second numerical value to the number of all pieces of pressure information received in the target time period exceeds the second preset ratio interval, it is determined that the true-false attribute of each piece of pressure information corresponding to the touch event in all pieces of pressure information received in the target time period is false, the second predetermined ratio interval can be, but is not limited to, [0, 5% ], [0, 10% ], [0, 20% ].
Assume that the second predetermined ratio interval is [0, 20% ], and the received pressure information in the target time period is 10 pieces, which are:
first pressure information: force 1.00// pressure information of button element clicked
Second pressure information: force 1.01// pressure information of button element clicked
Third pressure information: force 1.00// pressure information of button element clicked
Fourth pressure information: force 1.01// pressure information of button element clicked
Fifth pressure information: force 1.00// pressure information of button element clicked
Sixth pressure information: force 1.02// pressure information of button element clicked
Seventh pressure information: force 0.99// pressure information of button element clicked
Eighth pressure information: force 0.98// pressure information of button element clicked
Ninth pressure information: force 1.03// pressure information of button element clicked
Tenth pressure information: force 0.97// pressure information of button element clicked
Since the first pressure information, the third pressure information and the fifth pressure information are equal in 10 pieces of pressure information, the maximum value among the number of pieces of pressure information with equal pressure values is 3, that is, the second numerical value is 3, and the ratio of the second numerical value to all pieces of pressure information received in the target time period is 3/10-30%, which exceeds the second preset ratio interval [0, 30% ], and therefore, it is determined that the true-false attribute of each piece of pressure information corresponding to the touch event is false in all pieces of pressure information received in the target time period.
Similarly, in the embodiment of the present application, when two adjacent target time periods are partial repetition time periods, it is agreed that, for any piece of pressure information, when it is determined that the true and false attribute of the touch event corresponding to the piece of pressure information is true based on all the target time periods to which the piece of pressure information belongs, it is finally determined that the true and false attribute of the touch event corresponding to the piece of pressure information is true, and when it is determined that the true and false attribute of the touch event corresponding to the piece of pressure information is false based on any one of the target time periods to which the piece of pressure information belongs, it is finally determined that the true and false attribute of the touch event corresponding to the piece of pressure information is false.
In the embodiment of the application, when the data sent to the server by the mobile terminal further includes the clicked pressure information of the button element, the true and false attributes of the touch event can be judged by combining the characteristic data and the clicked pressure information of the button element. For example, when the true or false attribute of the touch event is judged to be true by the feature data, and the true or false attribute of the touch event is also judged to be true by the pressure information, the true or false attribute of the touch event is judged to be true, and when the true or false attribute of the touch event is judged to be false by the feature data, or the true or false attribute of the touch event is judged to be false by the pressure information, the true or false attribute of the touch event is judged to be false.
By the method, the device and the electronic equipment for judging the touch event attribute, the true and false attributes of the touch event can be obtained, and then the true and false attributes of the touch event are used as a flow judgment basis.
The third embodiment:
based on the same inventive concept as the method for determining the touch event attribute provided in the first embodiment, an embodiment of the present application further provides a device for determining the touch event attribute, and referring to fig. 4, the device for determining the touch event attribute provided in the embodiment of the present application includes an area determining module, a data obtaining module, and a data sending module.
And the area determining module is used for determining a contact area between an operation body clicking the button element and the equipment screen when the button element arranged on the target page is clicked and the touch event is generated.
The description of the area determination module may specifically refer to the detailed description of step S100 in the touch event attribute determination method provided in the first embodiment, that is, step S100 may be performed by the area determination module.
And the data acquisition module is used for acquiring the characteristic data of the contact area, and the characteristic data is used for representing the morphological characteristics of the contact area.
The description of the data acquisition module may specifically refer to the detailed description of step S200 in the touch event attribute determination method provided in the first embodiment, that is, step S200 may be executed by the data acquisition module.
And the data sending module is used for sending the characteristic data to the server so that the server can judge the true and false attributes of the touch event according to the characteristic data.
The description of the data transmission module may refer to the detailed description of step S300 in the touch event attribute determination method provided in the first embodiment, that is, step S300 may be executed by the data transmission module.
In this embodiment of the application, the data obtaining module may include an attribute set obtaining unit and a first feature data obtaining unit.
And the attribute set acquisition unit is used for acquiring an object attribute set of the touch event.
And the first characteristic data acquisition unit is used for extracting the characteristic data of the contact area from the object attribute set.
The description of the first characteristic data acquiring unit can refer to the touch event attribute determining method provided in the first embodiment, and the detailed description of step S210, that is, step S210 can be executed by the first characteristic data acquiring unit.
And the characteristic data acquisition unit is specifically used for extracting the minimum radius value and the maximum radius value of the contact area from the object attribute set, and the minimum radius value and the maximum radius value are jointly used as the characteristic data of the contact area.
The description of the feature data acquiring unit may specifically refer to the touch event attribute determination method provided in the first embodiment, and the detailed description of step S220, that is, step S220 may be performed by the feature data acquiring unit.
The fourth embodiment:
based on the same inventive concept as the touch event attribute determination method provided in the second embodiment, an embodiment of the present application further provides a touch event attribute determination apparatus, and please refer to fig. 5, the touch event attribute determination apparatus provided in the embodiment of the present application includes a data receiving module and an attribute determination module.
The data receiving module is used for receiving characteristic data sent by the terminal equipment, the characteristic data is used for representing state characteristics of a contact area, and the contact area is an area where an operation body of a clicked button element is in contact with an equipment screen when the button element arranged on a target page is clicked and a touch event is generated.
The description of the data receiving module may refer to the detailed description of step S400 in the touch event attribute determination method provided in the second embodiment, that is, step S400 may be executed by the data receiving module.
And the attribute judging module is used for obtaining the true and false attributes of the touch event according to the characteristic data.
The description of the attribute determination module may refer to the detailed description of step S500 in the touch event attribute determination method provided in the second embodiment, that is, step S500 may be executed by the attribute determination module.
In this embodiment of the application, the attribute determining module may include a second feature data obtaining unit and an attribute determining unit.
And the second characteristic data acquisition unit is used for acquiring all the characteristic data received in the target time period.
The description about the second feature data acquiring unit can refer to the touch event attribute determining method provided in the second embodiment, and the detailed description about step S510, that is, step S510 can be executed by the second feature data acquiring unit.
And the attribute judging unit is used for acquiring the true and false attributes of each piece of characteristic data corresponding to the touch event in all the characteristic data received in the target time period according to the data association logic among all the characteristic data received in the target time period.
In this embodiment of the application, the feature data may include a minimum radius value and a maximum radius value of the contact area, based on which, the attribute determining unit is specifically configured to obtain, as a first quantity value, the number of pieces of feature data in all pieces of feature data received in the target time period, where the minimum radius value and the maximum radius value are equal to each other, when a ratio of the first quantity value to the number of pieces of all pieces of feature data received in the target time period is in a first preset ratio interval, determine that a true attribute of each piece of feature data corresponding to the touch event in all pieces of feature data received in the target time period is true, and when the ratio of the first quantity value to the number of pieces of all pieces of feature data received in the target time period exceeds the first preset ratio interval, determine that the true attribute of each piece of feature data corresponding to the touch event in all pieces of feature data received in the target time period is false.
The description of the attribute determination unit may refer to the touch event attribute determination method provided in the second embodiment, and the detailed description of step S520, that is, step S520 may be performed by the attribute determination unit.
Fifth embodiment:
referring to fig. 6, a schematic block diagram of an electronic device 200 according to an embodiment of the present disclosure is shown. The electronic device 200 provided in the embodiment of the present application may be a mobile terminal to which the touch event attribute determination method provided in the first embodiment and the touch event attribute determination apparatus provided in the third embodiment are applied, or may be a server to which the touch event attribute determination method provided in the second embodiment and the touch event attribute determination apparatus provided in the fourth embodiment are applied.
Structurally, the electronic device 200 provided by the embodiments of the present application may include a processor 210 and a memory 220.
The processor 210 and the memory 220 are electrically connected, directly or indirectly, to enable data transmission or interaction, for example, the components may be electrically connected to each other via one or more communication buses or signal lines. The touch event attribute determination means includes at least one software module which may be stored in the memory 220 in the form of software or Firmware (Firmware) or solidified in an Operating System (OS) of the electronic device 200. The processor 210 is configured to execute executable modules stored in the memory 220, such as software functional modules and computer programs included in the touch event attribute determination device, so as to implement the data processing method. The processor 210 may execute the computer program upon receiving the execution instruction.
The processor 210 may be an integrated circuit chip having signal processing capabilities. The Processor 210 may also be a general-purpose Processor, for example, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a discrete gate or transistor logic device, a discrete hardware component, and may implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present Application. A general purpose processor may be a microprocessor or any conventional processor or the like.
The Memory 220 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), and an electrically Erasable Programmable Read-Only Memory (EEPROM). The memory 220 is used for storing a program, and the processor 210 executes the program after receiving the execution instruction.
It should be understood that the structure shown in fig. 6 is merely an illustration, and the electronic device 200 provided in the embodiments of the present application may have fewer or more components than those shown in fig. 6, or may have a different configuration than that shown in fig. 6.
Sixth embodiment:
an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed, the method for determining the touch event attribute provided in the first embodiment may be implemented, or the method for determining the touch event attribute provided in the second embodiment may be implemented.
To sum up, the touch event attribute determination method provided in the embodiment of the present application can determine, when a button element set on a target page is clicked and a touch event is generated, a contact area between an operation body clicking the button element and an equipment screen, obtain feature data for representing morphological features of the contact area, and send the feature data to a server. Another touch event attribute determination method provided in the embodiment of the present application can receive feature data sent by a terminal device, where the feature data is used to represent a state feature of a contact area, and the contact area is an area where an operation body of a clicked button element is in contact with a device screen when the button element set on a target page is clicked and a touch event is generated, so as to obtain a true attribute and a false attribute of the touch event according to the feature data. In this way, by the method, the device and the electronic device for determining the touch event attribute provided by the embodiment of the application, the true and false attributes of the touch event can be obtained, and then the true and false attributes of the touch event are used as a basis for determining the traffic, for example, when the true and false attributes of the touch time of the mobile terminal are false, the traffic generated correspondingly is used as a false traffic, so that the purpose of preventing traffic cheating is achieved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. In addition, the functional modules in each embodiment of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in each embodiment of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a RAM, a ROM, a magnetic disk, or an optical disk.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Moreover, it is further noted that, herein, relational terms such as "first," "second," "third," and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.

Claims (10)

1. A method for judging touch event attributes is characterized by comprising the following steps:
when a button element arranged on a target page is clicked and a touch event is generated, determining a contact area between an operation body clicking the button element and an equipment screen;
obtaining characteristic data of the contact area, wherein the characteristic data is used for characterizing morphological characteristics of the contact area;
and sending the characteristic data to a server so that the server can judge the true and false attributes of the touch event according to the characteristic data.
2. The method of claim 1, wherein the obtaining the characteristic data of the contact area comprises:
acquiring an object attribute set of the touch event;
and extracting the characteristic data of the contact area from the object attribute set.
3. The method of claim 2, wherein the extracting feature data of the contact region from the set of object attributes comprises:
and extracting the minimum radius value and the maximum radius value of the contact area from the object attribute set, and using the minimum radius value and the maximum radius value as the feature data of the contact area together.
4. A method for judging touch event attributes is characterized by comprising the following steps:
receiving characteristic data sent by terminal equipment, wherein the characteristic data is used for representing state characteristics of a contact area, and the contact area is an area where an operation body of a button element is clicked to be in contact with an equipment screen when the button element arranged on a target page is clicked and a touch event is generated;
and acquiring the true and false attributes of the touch event according to the characteristic data.
5. The method for determining the touch event attribute according to claim 4, wherein the obtaining the true and false attributes of the touch event according to the feature data comprises:
acquiring all characteristic data received in a target time period;
and according to the data association logic among all the characteristic data received in the target time period, acquiring the true and false attribute of each characteristic data corresponding to the touch event in all the characteristic data received in the target time period.
6. The method according to claim 5, wherein the feature data includes a minimum radius value and a maximum radius value of the contact area, and wherein obtaining the true and false attributes of the touch event for each piece of feature data in all pieces of feature data received in the target time period according to the data association logic between all pieces of feature data received in the target time period comprises:
acquiring the number of characteristic data with the same minimum radius value and maximum radius value in all the characteristic data received in the target time period as a first quantity value;
when the ratio of the first quantity value to the number of all the feature data received in the target time interval is within a first preset ratio interval, judging that the true and false attribute of each feature data corresponding to the touch event in all the feature data received in the target time interval is true;
and when the ratio of the first quantity value to the number of all the feature data received in the target time interval exceeds the first preset ratio interval, judging that the true and false attribute of each feature data corresponding to the touch event in all the feature data received in the target time interval is false.
7. A touch event attribute determination device, comprising:
the area determination module is used for determining a contact area between an operation body clicking the button element and an equipment screen when the button element arranged on the target page is clicked and a touch event is generated;
the data acquisition module is used for acquiring characteristic data of the contact area, and the characteristic data is used for representing morphological characteristics of the contact area;
and the data sending module is used for sending the characteristic data to a server so that the server can obtain the true and false attributes of the touch event according to the characteristic data.
8. A touch event attribute determination device, comprising:
the data receiving module is used for receiving characteristic data sent by the terminal equipment, wherein the characteristic data is used for representing state characteristics of a contact area, and the contact area is an area where an operation body of a button element is clicked and contacts an equipment screen when the button element arranged on a target page is clicked and a touch event is generated;
and the attribute judging module is used for obtaining the true and false attributes of the touch event according to the characteristic data.
9. An electronic device, comprising a processor and a memory, wherein the memory stores a computer program thereon, and the processor is configured to execute the computer program to implement the touch event attribute determination method according to any one of claims 1 to 6.
10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed, implements the touch event attribute determination method of any one of claims 1 to 6.
CN202010463105.6A 2020-05-27 2020-05-27 Touch event attribute judgment method and device and electronic equipment Pending CN111610926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010463105.6A CN111610926A (en) 2020-05-27 2020-05-27 Touch event attribute judgment method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010463105.6A CN111610926A (en) 2020-05-27 2020-05-27 Touch event attribute judgment method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111610926A true CN111610926A (en) 2020-09-01

Family

ID=72201375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010463105.6A Pending CN111610926A (en) 2020-05-27 2020-05-27 Touch event attribute judgment method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111610926A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824834A (en) * 2015-01-06 2016-08-03 腾讯科技(深圳)有限公司 Search traffic cheating behavior identification method and apparatus
US20170316455A1 (en) * 2012-08-01 2017-11-02 Oracle America, Inc. System and Method for Counting Advertisement Impressions
CN109831454A (en) * 2019-03-13 2019-05-31 北京品友互动信息技术股份公司 The recognition methods of false flow and device
CN110381063A (en) * 2019-07-22 2019-10-25 秒针信息技术有限公司 A kind of method and device of determining cheating flow

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170316455A1 (en) * 2012-08-01 2017-11-02 Oracle America, Inc. System and Method for Counting Advertisement Impressions
CN105824834A (en) * 2015-01-06 2016-08-03 腾讯科技(深圳)有限公司 Search traffic cheating behavior identification method and apparatus
CN109831454A (en) * 2019-03-13 2019-05-31 北京品友互动信息技术股份公司 The recognition methods of false flow and device
CN110381063A (en) * 2019-07-22 2019-10-25 秒针信息技术有限公司 A kind of method and device of determining cheating flow

Similar Documents

Publication Publication Date Title
CN107390983B (en) Service instruction execution method, client and storage medium
CN111078742B (en) User classification model training method, user classification method and device
CN105912320A (en) Information management method and device for notification bar
CN108492138B (en) Product purchase prediction method, server and storage medium
CN109831454B (en) False traffic identification method and device
CN107784504B (en) Method for generating return visit event of client and terminal equipment
CN111242709A (en) Message pushing method and device, equipment and storage medium thereof
CN110838041B (en) Virtual resource activity processing method and device, computer equipment and storage medium
CN115445212A (en) Game gift bag pushing method and device, computer equipment and storage medium
CN111241402A (en) Information pushing method and device, electronic equipment and readable storage medium
CN110232267B (en) Business card display method and device, electronic equipment and storage medium
CN111610926A (en) Touch event attribute judgment method and device and electronic equipment
CN114096980A (en) Information pushing method and device, electronic equipment and storage medium
CN105761107A (en) Method for acquiring target new users in internet products and device thereof
CN116307394A (en) Product user experience scoring method, device, medium and equipment
CN115687790A (en) Advertisement pushing method and system based on big data and cloud platform
CN107390999A (en) Method for operating application program and device, computer installation and readable storage medium storing program for executing
CN111026981B (en) Visual display method, device and equipment for hot topics
CN114143402A (en) AI outbound method, device, computer equipment and storage medium
CN108632092B (en) Information management method and device
CN111930826A (en) Order generation method and system of software interface
CN107580030B (en) Data management method and device and server
CN110717006B (en) User school location analysis method and system, storage medium and electronic device
CN107450921B (en) Application program deleting method and device, computer device and readable storage medium
CN111127094A (en) Account matching method and device, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200901