CN109727051A - Exposure calculation method, device and readable medium - Google Patents

Exposure calculation method, device and readable medium Download PDF

Info

Publication number
CN109727051A
CN109727051A CN201711050852.1A CN201711050852A CN109727051A CN 109727051 A CN109727051 A CN 109727051A CN 201711050852 A CN201711050852 A CN 201711050852A CN 109727051 A CN109727051 A CN 109727051A
Authority
CN
China
Prior art keywords
view
area
advertisement
advertisement view
exposure
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
CN201711050852.1A
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.)
Tencent Technology (Shenzhen) Co Ltd
Original Assignee
Tencent Technology (Shenzhen) 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 Tencent Technology (Shenzhen) Co Ltd filed Critical Tencent Technology (Shenzhen) Co Ltd
Priority to CN201711050852.1A priority Critical patent/CN109727051A/en
Priority to PCT/CN2018/112753 priority patent/WO2019085906A1/en
Publication of CN109727051A publication Critical patent/CN109727051A/en
Pending legal-status Critical Current

Links

Classifications

    • G—PHYSICS
    • G06—COMPUTING OR CALCULATING; COUNTING
    • G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00—Commerce
    • G06Q30/02—Marketing; Price estimation or determination; Fundraising

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

This application discloses a kind of exposure calculation method, device and terminals, are related to information push field.This method comprises: display user interface, which includes: advertisement view and top level view, and top level view is the view that display layer grade is located on advertisement view;Determine the overlapping region of advertisement view and top level view;Go out the area of the occlusion area of advertisement view according to overlapped area marking;The area that the actual exposure area of advertisement view is determined according to the area of occlusion area calculates the ratio of the area of actual exposure area and the area of advertisement view, obtains exposure.By in the calculating of the exposure to advertisement view, overlapping region between top level view and advertisement view is accounted for, blocking due to top level view is avoided, will lead to the problem of calculated exposure inaccuracy, so that ensure that the calculated result of exposure is more accurate.

Description

Exposure calculation method, device and readable medium
Technical field
The invention relates to information to push field, in particular to a kind of exposure calculation method, device and readable Jie Matter.
Background technique
Information flow advertisement refers to the advertisement on a user interface showing advertising information in the form of information flow.In order to Convenient for server statistics advertisement dispensing as a result, client can be according to the exposure of advertisement on a user interface and the duration of exposure Whether the exposure for determining the advertisement is primary effectively exposure, and then reports effective exposure event to server.
In general, include: Root View and advertisement view corresponding with advertisement on ad user interface, Root View refer to The view of the bottom on the interface of family, the area of Root View and the area of user interface are identical;Advertisement view is for advertisement The view that content is shown.When calculating the exposure of advertisement view, the intersection of the advertisement view and Root View is usually calculated, That is the lap of advertisement view and Root View.The part that will not belong to Root View is cut as clipping region, by advertisement Belong to the part of the intersection on view as visible view, calculate the visible view area and the advertisement view area it Than exposure as the advertisement.
But due in user interface, other than Root View and advertisement view, it is also possible to including other top level views, Qi Tashang The presence of layer view will affect the calculated result of the exposure of the advertisement view, and calculated result is caused error occur.
Summary of the invention
The embodiment of the present application provides a kind of exposure calculation method, device and readable medium, can solve top level view Presence will affect the advertisement view exposure calculated result, cause calculated result the problem of error occur.The technology Scheme is as follows:
In a first aspect, providing a kind of exposure calculation method, which comprises
Show user interface, the user interface includes: advertisement view and top level view, and the top level view is display layer Grade is located at the view on the advertisement view;
Determine the overlapping region of the advertisement view and the top level view;
Go out the area of the occlusion area of the advertisement view according to the overlapped area marking;
The area of the actual exposure area of the advertisement view is determined according to the area of the occlusion area, described in calculating The ratio of the area of actual exposure area and the area of the advertisement view, obtains the exposure.
Second aspect, provides a kind of exposure computing device, and described device includes:
Display module, for showing user interface, the user interface includes: advertisement view and top level view, it is described on Layer view is the view that display layer grade is located on the advertisement view;
Determining module, for determining the overlapping region of the advertisement view and the top level view;
Mark module, the area of the occlusion area for going out the advertisement view according to the overlapped area marking;
Computing module, for determining according to the area of the occlusion area actual exposure area of the advertisement view Area calculates the ratio of the area of the actual exposure area and the area of the advertisement view, obtains the exposure.
The third aspect provides a kind of terminal, and the terminal includes processor and memory, is stored in the memory At least one instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, institute Code set or instruction set is stated to be loaded by the processor and executed to realize such as above-mentioned the application first aspect and its optional reality Apply any exposure calculation method in example.
Fourth aspect provides a kind of computer readable storage medium, at least one finger is stored in the storage medium Enable, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or Instruction set is loaded by the processor and is executed to realize as any in above-mentioned the application first aspect and its optional embodiment The exposure calculation method.
5th aspect, provides a kind of computer program product, when the computer program product is run on computers When, so that computer executes the exposure calculating side as described in any in above-mentioned the application first aspect and its optional embodiment Method.
Technical solution bring beneficial effect provided by the embodiments of the present application includes at least:
In the calculating to the exposure of advertisement view, the overlapping region between top level view and advertisement view is examined Consider, eliminates influence of the occlusion area to accuracy in computation;It can be avoided blocking due to top level view, lead to calculated exposure The problem of luminosity inaccuracy makes it possible to accurately calculate user to the practical flat-profile view of advertising area, to the meter of exposure Calculate the more accurate effect of result.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the user interface schematic diagram for the information flow advertisement that one exemplary embodiment of the application provides;
Fig. 2 is the implementation environment schematic diagram for the exposure calculation method that one exemplary embodiment of the application provides;
Fig. 3 is the flow chart for the exposure calculation method that one exemplary embodiment of the application provides;
Fig. 4 is the schematic diagram of advertisement view and top level view that one exemplary embodiment of the application provides;
Fig. 5 is the schematic diagram of the advertisement view that another exemplary embodiment of the application provides and top level view;
Fig. 6 is the flow chart for the exposure calculation method that another exemplary embodiment of the application provides;
Fig. 7 is the schematic diagram for the two-dimensional array that one exemplary embodiment of the application provides;
Fig. 8 is the flow chart for the exposure calculation method that another exemplary embodiment of the application provides;
Fig. 9 is the schematic diagram for the Views tree that one exemplary embodiment of the application provides;
Figure 10 is the schematic diagram for the advertisement view that another exemplary embodiment of the application provides;
Figure 11 is the schematic diagram for the two-dimensional array that another exemplary embodiment of the application provides;
Figure 12 is the structural block diagram for the exposure computing device that one exemplary embodiment of the application provides;
Figure 13 is the structural block diagram for the terminal that one exemplary embodiment of the application provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
Firstly, making explanations to the following noun in the application:
Information flow advertisement: information flow advertisement refers on a user interface is shown advertising information in the form of information flow Advertisement.Usually in the user interface, shown in the form of information flow in addition to advertising information, further include other contents letter Breath.Schematically, as shown in Figure 1, showing advertising information in advertisement view 12 in the form of information flow in user interface 11, And other content information is shown on other views, e.g., news information is shown on other views 13, user is in the user interface When being slided on 11, each information shown in the form of information flow can follow the sliding of user and roll.
Root View: Root View refer on a user interface be located at the bottom view, optionally, the area of the Root View with The area of entire user interface (being regarded as screen) is identical.In general, when user interface includes bottom navigation bar part, root view The area of figure also includes the area of navigation bar part.
Advertisement view: advertisement view is the view for being shown to advertising information.Schematically refer to Fig. 1, with The advertisement view 12 at family interface 11 is the view for being shown to advertising information.
Top level view: display layer grade is located at the view on advertisement view, i.e., when top level view and advertisement view are in user When being overlapped on interface, the part in advertisement view positioned at overlapping region can be blocked by top level view.Fig. 1 is schematically referred to, After user slides in user interface 11, advertisement view 12 exists with top level view 14 to partly overlap, advertisement view 12 It is blocked by top level view 14 the upper part positioned at overlapping region.
Exposure: user's area of practical visibility region in advertisement view accounts for the ratio of the gross area of advertisement view.
Since the relevant technologies are in the calculating of the exposure of advertisement view, there is no to top level view and advertisement view Overlapping region accounts for, so the region that top level view is blocked is considered as effective exposure area, causes to advertisement view Exposure that there are errors in computation is poor.
Fig. 2 is the implementation environment figure for the exposure calculation method that one exemplary embodiment of the application provides, such as Fig. 2 institute Show, includes: terminal 21, server 22 and communication network 23 in the implementation environment.Wherein:
Terminal 21 shows advertisement view 211, and according to display for showing user interface 210 in user interface 210 Advertisement view 211 exposure of the advertisement view is calculated.Optionally, upper layer is also shown in the user interface 210 View 212.When further including navigation bar 213 in user interface 210, the navigation bar 213 be advertisement view 211 top level view it One.Optionally, which is also used to judge that this advertisement shows whether belong to effective exposure according to the exposure being calculated Light.When this advertisement, which is shown, belongs to effective exposure, effective exposure event is sent to server 22.
Terminal 21 is communicated with server 22 by communication network 23.
Server 22 is used to receive effective exposure event of the transmission of terminal 21.Server 22 is also used to in multiple terminals 21 Effective exposure event of report is counted.
Optionally, which can be cable network or wireless network.
Fig. 3 is the flow chart for the exposure calculation method that one exemplary embodiment of the application provides.The exposure meter Calculation method can be used in terminal as illustrated in FIG. 2.As shown in figure 3, the exposure calculation method includes:
Step 301, user interface is shown.
Terminal shows the user interface of the application program after starting application program.The application program can at one or Information flow advertisement is shown in multiple user interfaces.
Optionally, which includes: advertisement view and top level view, and top level view is that display layer grade is located at advertisement view View on figure.Optionally, include at least one top level view in the user interface, i.e., may include one in the user interface A top level view, also may include multiple top level views, and the embodiment of the present application is not limited this.
Fig. 4 is schematically referred to, in user interface 41, including advertisement view 42 and top level view 43, top level view 43 be the view that display layer grade is located on advertisement view 42, some overlay region of the top level view 43 and advertisement view 42 Domain, the partial region that top level view 43 is located at the overlapping region to advertisement view 42 is blocked, so that advertisement view 42 On the region that is blocked can not be seen by the user.
Step 302, the overlapping region of advertisement view and top level view is determined.
Optionally, which is the region that top level view has the effect of blocking to advertisement view.
Optionally, when in user interface including multiple top level views, then in advertisement view and multiple top level view The overlapping region of each top level view be determined respectively.
Step 303, the area of the occlusion area of advertisement view is gone out according to overlapped area marking.
Optionally, which is that the partial region in advertisement view schematically shows Fig. 4 with reference to Fig. 5, Fig. 5 In advertisement view 42 and top level view 43 partial schematic diagram, as shown in figure 5, the weight of the advertisement view 42 and top level view 43 Folded region is the dash area of slash mark, and the partial region that the overlapping region is located in the advertisement view 42 is determined as reality Occlusion area 51, and determine the area of the practical occlusion area 51.
Step 304, the area of the actual exposure area of advertisement view is determined according to the area of occlusion area.
The actual exposure area is the partial region of the visible advertisement view of user.Optionally, the actual exposure area Area is that the gross area of advertisement view subtracts the area of occlusion area.
Optionally, when the advertisement view cuts (relative to Root View) without edge, which is wide Accuse the partial region that occlusion area is removed in view;When advertisement view is cut by edge, which is advertisement view Except occlusion area and the partial region in cropped region in figure.
Schematically, it is illustrated so that the advertisement view is cut without edge as an example, as shown in figure 5, the exposure area 52 is with the dash areas of black dots mark.
Step 305, the ratio for calculating the area of actual exposure area and the area of advertisement view, obtains exposure.
Exposure is that the area of practical visibility region of the user in advertisement view accounts for the ratio of the advertisement view gross area, i.e., The area of actual exposure area accounts for the ratio of the advertisement view gross area.Terminal regards the area of the actual exposure area and advertisement The gross area of figure is calculated, and ratio is calculated, as exposure.
Optionally, in conjunction with above-mentioned exposure calculation method, terminal can obtain the exposure of preset times within a preset time, In the exposure obtained in preset times, when the value of the exposure obtained every time is greater than preset threshold, effective exposure is carried out The exposure is denoted as primary effectively exposure by record, and report effective exposure event to server, which is used for having Effect exposure event is counted.
In conclusion in the calculating to the exposure of advertisement view, to overlapping between top level view and advertisement view Region accounts for, and eliminates influence of the occlusion area to accuracy in computation;It can be avoided blocking due to top level view, cause The problem of calculated exposure inaccuracy, makes it possible to accurately calculate user to the practical flat-profile view of advertising area, right The more accurate effect of the calculated result of exposure.
In an alternative embodiment, terminal determines blocked area by generating two-dimensional array corresponding with advertisement view Domain.
Fig. 6 is the flow chart for the exposure calculation method that another exemplary embodiment of the application provides.This method can With in terminal as shown in Figure 2, as shown in fig. 6, the exposure calculation method includes:
Step 601, user interface is shown.
Terminal shows the user interface of the application program after starting default application program.The user interface includes: advertisement View and top level view, top level view are the views that display layer grade is located on advertisement view.Optionally, it is wrapped in the user interface At least one top level view is included, i.e., may include a top level view in the user interface, also may include multiple top level views, The embodiment of the present application is not limited this.
Step 602, the overlapping region of advertisement view and top level view is determined.
Optionally, which is the region that top level view has the effect of blocking to advertisement view.
Optionally, when in user interface including multiple top level views, then in advertisement view and multiple top level view The overlapping region of each top level view be determined.
Step 603, m*n two-dimensional array corresponding with advertisement view is generated by rasterizing operation.
Each element in the m*n two-dimensional array represents one piece of subregion in advertisement view, wherein m >=1, n >=1, and Each element has the first value in the initial state.
Optionally, m*n two-dimensional array corresponding with advertisement view is generated by rasterizing operation, it can be by the advertisement View is zoomed in and out according to rasterizing scaling, and schematically, the size of the advertisement view is 400*300, rasterizing scaling Ratio is 10, then the two-dimensional array obtained is the two-dimensional array of 40*30, and each element in the two-dimensional array represents advertisement view The subregion that a block size in figure is 10*10.
Step 604, it according to the coordinate of the top left co-ordinate of overlapping region and advertisement view, is determined in m*n two-dimensional array Out with top left co-ordinate corresponding (Xs, Ys) a element.
Optionally, after the abscissa of the first abscissa of the top left co-ordinate of overlapping region and advertisement view being subtracted each other, with Rasterizing scaling is divided by, and obtains Xs;By the vertical seat of the first ordinate of the top left co-ordinate of overlapping region and advertisement view After mark subtracts each other, it is divided by with rasterizing scaling, obtains Ys, Xs >=1, Ys >=1.Wherein, the abscissa of above-mentioned advertisement view is logical It is often the abscissa in the advertisement view upper left corner, the ordinate of the advertisement view is usually the vertical seat in the advertisement view upper left corner Mark, in an alternative embodiment, the abscissa of the advertisement view can also be the abscissa of the advertisement view key store, should The ordinate of advertisement view can also be the ordinate of the advertisement view central point, cross of the embodiment of the present application to the advertisement view Coordinate and ordinate are not limited.
Optionally, due to the coordinate system of each view be in original state established relative to the father's view of itself, and It is not necessarily in the same coordinate system;So above-mentioned first abscissa and the first ordinate are that overlapping region is mapped to root view After in the coordinate system of figure, obtained the first abscissa and the first ordinate;The abscissa of above-mentioned advertisement view and advertisement view The ordinate of figure is, after advertisement view is mapped in the coordinate system of Root View, the abscissa of obtained advertisement view.? That is, above-mentioned coordinate is the coordinate in the coordinate system of Root View after reunification.
Step 605, it according to the bottom right angular coordinate of overlapping region and the coordinate of advertisement view, is determined in m*n two-dimensional array Out with lower right corner coordinate corresponding (Xt, Yt) a element.
Optionally, after the abscissa of the second abscissa of the bottom right angular coordinate of overlapping region and advertisement view being subtracted each other, with Rasterizing scaling is divided by, and obtains Xt;By the vertical seat of the second ordinate of the bottom right angular coordinate of overlapping region and advertisement view After mark subtracts each other, it is divided by with rasterizing scaling, obtains Yt, Xt >=1, Yt >=1.
Optionally, due to the coordinate system of each view be in original state established relative to the father's view of itself, and It is not necessarily in the same coordinate system;So above-mentioned second abscissa and the second ordinate are that overlapping region is mapped to root view After in the coordinate system of figure, obtained the second abscissa and the second ordinate;The abscissa of above-mentioned advertisement view and advertisement view The ordinate of figure is, after advertisement view is mapped in the coordinate system of Root View, the abscissa of obtained advertisement view.? That is, above-mentioned coordinate is the coordinate in the coordinate system of Root View after reunification.
It is worth noting that, step 604 and step 605, can first carry out step 604 and execute step 605 again, it can also be first It executes step 605 and executes step 604 again, can be performed simultaneously with step 604 and step 605, this is not added in the embodiment of the present application To limit.
Step 606, by m*n two-dimensional array, abscissa is between Xs and Xt and ordinate is between Ys and Yt Element, label are value.
Schematically, by taking the second value is 1 as an example, the element assignment procedure is as follows:
For y=Ys to Yt
For x=Xs to Xt
M [x, y]=1
Wherein, Xs is the first abscissa, and Xt is the second abscissa, and Ys is the first ordinate, and Yt is the second ordinate; InsecV.x is that overlapping region is mapped to the upper left corner abscissa after Root View;V.x is that advertisement view is mapped to Root View Abscissa afterwards;InsecV.w is the width of overlapping region, and insecV.x+insecV.w is that overlapping region is mapped to Root View Lower right corner abscissa afterwards;InsecV.y is that overlapping region is mapped to the upper left corner ordinate after Root View;V.y is by advertisement Ordinate after View Mapping to Root View;InsecV.h is the height of overlapping region;InsecV.y+insecV.h is that will be overlapped Lower right corner ordinate after area maps to Root View;M [x, y]=1 is to take to the coordinate for meeting above-mentioned steps labeled as second Value.
Schematically, with the first value for 0, the second value is 1, and advertisement view is advertisement view 42 as shown in Figure 4 For, according to the calculating of the coordinate to overlapping region, Xs=9, Xt=10, Ys=1, Yt=1 are then raw according to the advertisement view 42 At two-dimensional array it is as shown in Figure 7, wherein the value of element be 1 part correspond to the corresponding part in overlapping region.
It is worth noting that, when a part of a certain sub-regions is Chong Die with top level view, can according to top level view with The overlap proportion of the subregion determines whether the subregion Chong Die with top level view, optionally, when in subregion with top level view When the ratio that the region of overlapping accounts for the subregion is greater than default ratio, it is determined that the subregion is Chong Die with top level view.Schematically , presetting ratio with this is 50% to be illustrated, and the 30% of subregion A is Chong Die with top level view, it is determined that subregion A with it is upper Layer view is underlapped, and the 60% of subregion B is Chong Die with top level view, it is determined that subregion B is Chong Die with top level view.
Step 607, by the number of the element with the second value, it is determined as the area of occlusion area.
Schematically, as shown in fig. 7, the number of the element with the second value is 2, which is determined as blocked area The area in domain.
Step 608, the area of the actual exposure area of advertisement view is determined according to the area of occlusion area.
The actual exposure area is the partial region of the visible advertisement view of user.Optionally, the actual exposure area Area is that the gross area of advertisement view subtracts the area of occlusion area.
Optionally, when the advertisement view is cut without edge, which is to remove to block in advertisement view The partial region in region, when advertisement view is cut by edge, which is that occlusion area is removed in advertisement view And the partial region in cropped region.
Schematically, with reference to Fig. 7, element 40 is shared in the m*n two-dimensional array, wherein number 2 is the face of occlusion area Product determines that the area of actual exposure area is 38.
Step 609, the ratio for calculating the area of actual exposure area and the area of advertisement view, obtains exposure.
Exposure is that the area of the partial region of the visible advertisement view of user accounts for the ratio of the advertisement view gross area, i.e., in fact The area of border exposure area accounts for the ratio of the advertisement view gross area.Area and advertisement view of the terminal to the actual exposure area The gross area calculated, and ratio is calculated, as exposure.
Schematically, with reference to Fig. 7, which is the advertisement view gross area in the area ratio of actual exposure area, 38/40 =0.95.
Optionally, in conjunction with above-mentioned exposure calculation method, terminal can obtain preset times in preset time (such as 1 second) Exposure, in the exposure obtained in preset times, when the value of the exposure obtained every time is all larger than preset threshold, generate Effective exposure event, and effective exposure event is recorded.Will the exposure be denoted as primary effectively exposure, and on server Effective exposure event is reported, the server is for counting effective exposure event.
In conclusion in the calculating to the exposure of advertisement view, to overlapping between top level view and advertisement view Region accounts for, and eliminates influence of the occlusion area to accuracy in computation;It can be avoided blocking due to top level view, cause The problem of calculated exposure inaccuracy, makes it possible to accurately calculate user to the practical flat-profile view of advertising area, right The more accurate effect of the calculated result of exposure.
By being tiled into two-dimensional array according to advertisement view, terminal only needs to be marked as first in two-dimensional array and takes The set of the subregion of value is determined as occlusion area, and then obtains exposure area, simplifies determining exposure area and calculates exposure The step of area in light region, reduces the calculation amount and data volume of terminal.
In an alternative embodiment, in user interface further include: Root View, the Root View are bottom in user interface View, optionally, the area of the Root View and the area equation of user interface.
Fig. 8 is the flow chart for the exposure calculation method that another exemplary embodiment of the application provides, such as Fig. 8 institute Show, which includes:
Step 801, user interface is shown.
Terminal shows the user interface of the application program after starting default application program.
Step 802, the original upper layer view of advertisement view is determined according to Views tree.
Optionally, before or after showing user interface, according to all view generation Views trees in user interface, Root View is located at the position of root node in the Views tree, which further includes at least one sub- view, and a part of sub- view is made It further include having at least one sub- view for father's view.According to the queueing discipline of the Views tree determine primary advertising view it is original on Layer view.When the queueing discipline is to be arranged in Views tree by the sequence of sequence respective view from the bottom to top from left to right When, original upper layer view is located at the right side of primary advertising view;When the queueing discipline be in Views tree it is suitable by from left to right When the sequence of sequence respective view from top to bottom is arranged, original upper layer view is located at the left side of primary advertising view.Schematically , the view tree construction is as shown in figure 9, Root View is in the root node position of the Views tree, and Root View includes four sub- views: son View A, sub- view B, sub- view C and sub- view D, wherein it includes advertisement view and sub- view that sub- view B, which is also used as father's view, It includes sub- view F that E, sub- view D, which are also used as father's view, when the queueing discipline is to correspond in Views tree by sequence from left to right When the sequence of view from the bottom to top is arranged, original upper layer view includes sub- view E, the sub- view D of sub- view C and sub- view F;It is former when the queueing discipline is to be arranged in Views tree by the sequence of sequence respective view from top to bottom from left to right Beginning top level view includes sub- view A.
It step 803, will be in the coordinate system of original upper layer View Mapping to Root View.
Optionally, rectangular coordinate system is established as origin using the upper left corner of the Root View, original upper layer View Mapping extremely should In the coordinate system of Root View.
Step 804, it according to the coordinate of original upper layer view, determines to be not belonging to the first of Root View in original upper layer view Clipping region.
Optionally, it according to the coordinate system of the Root View and the coordinate of original upper layer view, determines in original upper layer view It is not belonging to the first clipping region of Root View.
Schematically, the coordinate system of the Root View is using x-axis as horizontal axis, and y-axis is the rectangular coordinate system of the longitudinal axis, when in the root When the abscissa of coordinate points in the coordinate system of view is negative, indicate that the coordinate points are not belonging to the Root View.
Step 805, by the region in original upper layer view in addition to the first clipping region, it is determined as top level view.
Step 806, the overlapping region of advertisement view and top level view is determined.
Optionally, which is the region that top level view has the effect of blocking to advertisement view.
Optionally, when in user interface including multiple top level views, then in advertisement view and multiple top level view The overlapping region of each top level view be determined.
Step 807, m*n two-dimensional array corresponding with advertisement view is generated by rasterizing operation.
Each element in the m*n two-dimensional array represents one piece of subregion in advertisement view, and each element is initial There is the first value under state.
Optionally, m*n two-dimensional array corresponding with advertisement view is generated by rasterizing operation, it can be by the advertisement View is zoomed in and out according to rasterizing scaling, and schematically, the size of the advertisement view is 400*300, rasterizing scaling Ratio is 10, then the two-dimensional array obtained is the two-dimensional array of 40*30, and each element in the two-dimensional array represents advertisement view The subregion that a block size in figure is 10*10.
Step 808, it according to the coordinate of the top left co-ordinate of overlapping region and advertisement view, is determined in m*n two-dimensional array Out with top left co-ordinate corresponding (Xs, Ys) a element.
Optionally, after the abscissa of the first abscissa of the top left co-ordinate of overlapping region and advertisement view being subtracted each other, with Rasterizing scaling is divided by, and obtains Xs;By the vertical seat of the first ordinate of the top left co-ordinate of overlapping region and advertisement view After mark subtracts each other, it is divided by with rasterizing scaling, obtains Ys, wherein the abscissa of above-mentioned advertisement view and advertisement view Ordinate is usually the abscissa in the advertisement view upper left corner and the ordinate in the upper left corner, in an alternative embodiment, The abscissa of the advertisement view and the ordinate of advertisement view can also be the abscissa and ordinate of the advertisement view central point, The embodiment of the present application is not limited the abscissa and ordinate of the advertisement view.
Optionally, above-mentioned first abscissa and the first ordinate are that overlapping region is mapped in the coordinate system of Root View Later, the first abscissa and the first ordinate obtained;The abscissa of above-mentioned advertisement view and the ordinate of advertisement view be, After advertisement view is mapped in the coordinate system of Root View, the abscissa of obtained advertisement view.
Step 809, it according to the coordinate of the top left co-ordinate of overlapping region and advertisement view, is determined in m*n two-dimensional array Out with top left co-ordinate corresponding (Xt, Yt) a element.
Optionally, after the abscissa of the second abscissa of the bottom right angular coordinate of overlapping region and advertisement view being subtracted each other, with Rasterizing scaling is divided by, and obtains Xt;By the vertical seat of the second ordinate of the bottom right angular coordinate of overlapping region and advertisement view After mark subtracts each other, it is divided by with rasterizing scaling, obtains Yt.
Optionally, above-mentioned second abscissa and the second ordinate are that overlapping region is mapped in the coordinate system of Root View Later, the second abscissa and the second ordinate obtained;The abscissa of above-mentioned advertisement view and the ordinate of advertisement view be, After advertisement view is mapped in the coordinate system of Root View, the abscissa of obtained advertisement view.
It is worth noting that, above-mentioned steps 808 and step 809 are two steps arranged side by side, it can first carry out step 808 Execute step 809 again, step 809 can also be first carried out and execute step 808 again, can with step 808 and step 809 synchronize hold Row.
Step 810, by m*n two-dimensional array, abscissa is between Xs and Xt and ordinate is between Ys and Yt Element, label are value.
Step 811, advertisement view is mapped in the coordinate system of Root View.
Optionally, rectangular coordinate system is established as origin using the upper left corner of the Root View, advertisement view is mapped into root view In the coordinate system of figure.
Step 812, according to the coordinate of advertisement view, the second Crop Area that Root View is not belonging in advertisement view is determined Domain.
Optionally, it according to the coordinate system of the Root View and the coordinate of advertisement view, determines and is not belonging to root in advertisement view Second clipping region of view.
Schematically, the coordinate system of the Root View is using x-axis as horizontal axis, and y-axis is the rectangular coordinate system of the longitudinal axis, when in the root When the abscissa of coordinate points in the coordinate system of view is negative, indicate that the coordinate points are not belonging to the Root View.
Step 813, in m*n two-dimensional array, the corresponding member of subregion of the second clipping region will being belonged in advertisement view Element label is value.
With the first value for 0, the second value is illustrated for being 1, schematically, as shown in Figure 10, in user interface It include advertisement view 1002 and the top level view 1003 of the advertisement view on 1001, according to the overlapping of the advertisement view 1002 Region and the second clipping region, it is as shown in figure 11 in the element value of m*n two-dimensional array.
It optionally, can be according to belonging to the second sanction in the subregion when the subregion is when partly belonging to the second clipping region Whether the accounting for cutting the part in region is more than that default accounting determines whether the corresponding rubidium marking of the subregion to be the second value, Schematically, it is illustrated so that default accounting is 50% as an example, the 20% of subregion A belongs to the second clipping region, then the sub-district A corresponding element in domain is not marked as the second value, and the 80% of subregion B belongs to the second clipping region, then subregion B is corresponding Element be marked as the second value.
Step 814, by the number of the element with the second value, it is determined as the area of occlusion area.
Schematically, as shown in figure 11, the number of the element with the second value is 16, which is determined as blocking The area in region.
Step 815, the area of the actual exposure area of advertisement view is determined according to the area of occlusion area.
The actual exposure area is the partial region of the visible advertisement view of user.Optionally, the actual exposure area Area is that the gross area of advertisement view subtracts the area of occlusion area.
Optionally, when the advertisement view is cut without edge, which is to remove to block in advertisement view The partial region in region, when advertisement view is cut by edge, which is that occlusion area is removed in advertisement view And the partial region in cropped region.
Schematically, with reference to Figure 11, element 40 is shared in the m*n two-dimensional array, wherein number 16 is occlusion area Area determines that the area of actual exposure area is 24.
Step 816, the ratio for calculating the area of exposure area and the area of advertisement view, obtains exposure.
Exposure is that the area of the partial region of the visible advertisement view of user accounts for the ratio of the advertisement view gross area, i.e., in fact The area of border exposure area accounts for the ratio of the advertisement view gross area.Area and advertisement view of the terminal to the actual exposure area The gross area calculated, and ratio is calculated, as exposure.
Schematically, with reference to Figure 11, which is the advertisement view gross area in the area ratio of actual exposure area, 24/ 40=0.6.
Optionally, in conjunction with above-mentioned exposure calculation method, terminal can obtain the exposure of preset times within a preset time, In the exposure obtained in preset times, when the value of the exposure obtained every time is greater than preset threshold, effective exposure is carried out The exposure is denoted as primary effectively exposure, and reports effective exposure to server by record, which is used to expose to effective Light is counted.
It is worth noting that, above-mentioned steps 802 to step 805 can execute before step 801, can execute in step It after 801, can also be performed after step 805, before step 812, the embodiment of the present application is not limited this.
In conclusion in the calculating to the exposure of advertisement view, to overlapping between top level view and advertisement view Region accounts for, and eliminates influence of the occlusion area to accuracy in computation;It can be avoided blocking due to top level view, cause The problem of calculated exposure inaccuracy, makes it possible to accurately calculate user to the practical flat-profile view of advertising area, right The more accurate effect of the calculated result of exposure;
By being tiled into two-dimensional array according to advertisement view, terminal only needs to be marked as first in two-dimensional array and takes The set of the subregion of value is determined as occlusion area, and then obtains exposure area, simplifies determining exposure area and calculates exposure The step of area in light region, reduces the calculation amount and data volume of terminal;
Advertisement view and original upper layer view are calculated by being mapped to the coordinate system of Root View, avoided wide It accuses and is converted back and forth between the coordinate system of view and the coordinate system of top level view, reduce the treating capacity of data;
By increasing the determination of the second clipping region to the first clipping region and advertisement view of top level view, avoid Since two clipping regions cause exposure rate to calculate the problem of inaccuracy.
It is worth noting that, the dotted line in the attached drawing of above-described embodiment is all that signal is done, and in actual operation, the dotted line Not necessary being.
Figure 12 is the structural block diagram for the exposure computing device that one exemplary embodiment of the application provides.Such as Figure 12 institute Show, which includes: display module 1201, determining module 1202, mark module 1203 and computing module 1204, wherein display module 1201, for showing user interface, the user interface includes: advertisement view and top level view, The top level view is the view that display layer grade is located on the advertisement view;
Determining module 1202, for determining the overlapping region of the advertisement view and the top level view;
Mark module 1203, the area of the occlusion area for going out the advertisement view according to the overlapped area marking;
Computing module 1204, for determining the actual exposure area of the advertisement view according to the area of the occlusion area The area in domain calculates the ratio of the area of the actual exposure area and the area of the advertisement view, obtains the exposure.
In an alternative embodiment, the mark module 1203, comprising:
Generation unit, for generating m*n two-dimensional array corresponding with the advertisement view, the m* by rasterizing operation Each element in n two-dimensional array represents one piece of subregion in the advertisement view, and each element has in the initial state There is the first value;
Determination unit, for according to the top left co-ordinate of the overlapping region and the coordinate of the advertisement view, described It is determined in m*n two-dimensional array and the top left co-ordinate corresponding (Xs, Ys) a element;
The determination unit is also used to the coordinate of the bottom right angular coordinate and the advertisement view according to the overlapping region, It is determined in the m*n two-dimensional array and the lower right corner coordinate corresponding (Xt, Yt) a element;
Marking unit, for by the m*n two-dimensional array, abscissa is between the Xs and the Xt and ordinate Element between the Ys and the Yt, label are value;
The determination unit, the number for being also used to have the element of second value, is determined as the occlusion area Area.
In an alternative embodiment, the determination unit, further includes:
Computation subunit, for by the first abscissa of the top left co-ordinate of the overlapping region and the advertisement view After abscissa subtracts each other, it is divided by with rasterizing scaling, obtains the Xs;
The computation subunit is also used to the first ordinate of the top left co-ordinate of the overlapping region and the advertisement After the ordinate of view subtracts each other, it is divided by with the rasterizing scaling, obtains the Ys.
In an alternative embodiment, the determination unit, further includes:
Computation subunit, for by the second abscissa of the bottom right angular coordinate of the overlapping region and the advertisement view After abscissa subtracts each other, it is divided by with rasterizing scaling, obtains the Xt;
The computation subunit is also used to the second ordinate of the bottom right angular coordinate of the overlapping region and the advertisement After the ordinate of view subtracts each other, it is divided by with the rasterizing scaling, obtains the Yt.
In an alternative embodiment, described device further include:
Views module, for determining the original upper layer view of the advertisement view according to Views tree;
Mapping block, for by the original upper layer View Mapping into the coordinate system of Root View;
The determining module 1202 is also used to determine the original upper layer according to the coordinate of the original upper layer view The first clipping region of the Root View is not belonging in view;
The determining module 1202 is also used to the area in the original upper layer view in addition to first clipping region Domain is determined as the top level view.
In an alternative embodiment, described device further include:
Mapping block, for the advertisement view to be mapped in the coordinate system of Root View;
The determining module 1202, is also used to the coordinate according to the advertisement view, determines in the advertisement view not Belong to the second clipping region of the Root View;
The mark module 1203 is also used in the m*n two-dimensional array, and described will be belonged in the advertisement view The rubidium marking of two clipping regions is second value.
The block diagram of the structure for the terminal that Figure 13 is provided it illustrates the application one embodiment, the terminal may include radio frequency (RF, Radio Frequency) circuit 1301, the memory for including one or more computer readable storage medium 1302, input unit 1303, display unit 1304, sensor 1305, voicefrequency circuit 1306, Wireless Fidelity (WiFi, Wireless Fidelity) module 1307, include one or more than one processing core processor 1308 and the portions such as power supply 1309 Part.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Figure 13, may include ratio More or fewer components are illustrated, certain components or different component layouts are perhaps combined.Wherein:
RF circuit 1301 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 1308 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuit 1301 include but is not limited to antenna, at least one amplifier, tuner, one or more oscillator, Subscriber identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low-noise amplifier (LNA, Low Noise Amplifier), duplexer etc..In addition, RF circuit 1301 can also by wireless communication with network and Other equipment communication.Any communication standard or agreement, including but not limited to global system for mobile telecommunications can be used in the wireless communication System (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is more Location (WCDMA, Wideband Code Division Multiple Access), long term evolution (LTE, Long Term Evolution), Email, short message service (SMS, Short Messaging Service) etc..
Memory 1302 can be used for storing software program and module, and processor 1308 is stored in memory by operation 1302 software program and module, thereby executing various function application and data processing.Memory 1302 can mainly include Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be created according to using for terminal Data (such as audio data, phone directory etc.) etc..In addition, memory 1302 may include high-speed random access memory, may be used also To include nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.Correspondingly, memory 1302 can also include Memory Controller, to provide processor 1308 and input unit 1303 to depositing The access of reservoir 1302.
Input unit 1303 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, in a specific embodiment In, input unit 1303 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or touching Control plate, collect user on it or nearby touch operation (such as user using any suitable object such as finger, stylus or Operation of the attachment on touch sensitive surface or near touch sensitive surface), and corresponding connection dress is driven according to preset formula It sets.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined The touch orientation of user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller from Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 1308, and can reception processing Order that device 1308 is sent simultaneously is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch sensitive surface.In addition to touch sensitive surface, input unit 1303 can also include other input equipments.Specifically, His input equipment can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), track One of ball, mouse, operating stick etc. are a variety of.
Display unit 1304 can be used for showing information input by user or be supplied to user information and terminal it is each Kind graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.It is aobvious Show that unit 1304 may include display panel, it is alternatively possible to using liquid crystal display (LCD, Liquid Crystal Display), the forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display surface Plate.Further, touch sensitive surface can cover display panel, after touch sensitive surface detects touch operation on it or nearby, Processor 1308 is sent to determine the type of touch event, is followed by subsequent processing device 1308 according to the type of touch event in display surface Corresponding visual output is provided on plate.Although touch sensitive surface and display panel are come as two independent components in Figure 13 It realizes input and input function, but in some embodiments it is possible to touch sensitive surface and display panel is integrated and realizes and inputs And output function.
Terminal may also include at least one sensor 1305, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel, proximity sensor can close display panel and/or back when terminal is moved in one's ear Light.As a kind of motion sensor, gravity accelerometer can detect (generally three axis) acceleration in all directions Size can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as terminal The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 1306, loudspeaker, microphone can provide the audio interface between user and terminal.Voicefrequency circuit 1306 Electric signal after the audio data received being converted, is transferred to loudspeaker, is converted to voice signal output by loudspeaker;Separately On the one hand, the voice signal of collection is converted to electric signal by microphone, is converted to audio data after being received by voicefrequency circuit 1306, Such as another terminal will be sent to through RF circuit 1301 after audio data output processor 1308 handles again, or by audio Data export to memory 1302 to be further processed.Voicefrequency circuit 1306 is also possible that earphone jack, to provide peripheral hardware The communication of earphone and terminal.
WiFi belongs to short range wireless transmission technology, and terminal can help user's transceiver electronics postal by WiFi module 1307 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Figure 13 is shown WiFi module 1307, but it is understood that, and it is not belonging to must be configured into for terminal, it can according to need do not changing completely Become in the range of the essence of invention and omits.
Processor 1308 is the control centre of terminal, using the various pieces of various interfaces and connection whole mobile phone, By running or execute the software program and/or module that are stored in memory 1302, and calls and be stored in memory 1302 Interior data execute the various functions and processing data of terminal, to carry out integral monitoring to mobile phone.Optionally, processor 1308 may include one or more processing cores;Preferably, processor 1308 can integrate application processor and modulation /demodulation processing Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1308.
Terminal further includes the power supply 1309 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply Management system and processor 1308 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.Power supply 1309 can also include one or more direct current or AC power source, recharging system, power failure The random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, terminal can also include camera, bluetooth module etc., and details are not described herein.Specifically in this implementation In example, the processor 1308 in terminal can run the one or more program instruction being stored in memory 1302, from And realize exposure calculation method provided in above-mentioned each embodiment of the method.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, the meter Calculation machine readable storage medium storing program for executing can be computer readable storage medium included in the memory in above-described embodiment;It can also be with It is individualism, without the computer readable storage medium in supplying terminal.Be stored in the computer readable storage medium to Few an instruction, at least a Duan Chengxu, code set or instruction set, it is at least one instruction, an at least Duan Chengxu, described Code set or instruction set are loaded by the processor and are executed to realize the exposure calculation method as described in Fig. 1 to Fig. 8 is any.
Optionally, the computer readable storage medium may include: read-only memory (ROM, Read Only Memory), Random access memory (RAM, Random Access Memory), solid state hard disk (SSD, Solid State Drives) or light Disk etc..Wherein, random access memory may include resistive random access memory body (ReRAM, Resistance Random Access Memory) and dynamic random access memory (DRAM, Dynamic Random Access Memory).Above-mentioned Apply for that embodiment sequence number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely the preferred embodiments of the application, not to limit the application, it is all in spirit herein and Within principle, any modification, equivalent replacement, improvement and so on be should be included within the scope of protection of this application.

Claims (14)

1.一种曝光度计算方法,其特征在于,所述方法包括:1. an exposure calculation method, is characterized in that, described method comprises: 显示用户界面,所述用户界面包括:广告视图和上层视图,所述上层视图是显示层级位于所述广告视图之上的视图;displaying a user interface, the user interface comprising: an advertisement view and an upper-level view, the upper-level view being a view whose display level is above the advertisement view; 确定所述广告视图和所述上层视图的重叠区域;determining an overlapping area of the advertisement view and the upper layer view; 根据所述重叠区域标记出所述广告视图的遮挡区域的面积;Mark the area of the occlusion area of the advertisement view according to the overlapping area; 根据所述遮挡区域的面积确定出所述广告视图的实际曝光区域的面积,计算所述实际曝光区域的面积与所述广告视图的面积的比值,得到所述曝光度。The area of the actual exposure area of the advertisement view is determined according to the area of the occlusion area, and the ratio of the area of the actual exposure area to the area of the advertisement view is calculated to obtain the exposure degree. 2.根据权利要求1所述的方法,其特征在于,所述根据所述重叠区域标记出所述广告视图的遮挡区域的面积,包括:2 . The method according to claim 1 , wherein the marking the area of the occlusion region of the advertisement view according to the overlapping region comprises: 2 . 通过栅格化操作生成与所述广告视图对应的m*n二维数组,所述m*n二维数组中的每个元素代表所述广告视图中的一块子区域,且每个元素在初始状态下具有第一取值,m≥1,n≥1;An m*n two-dimensional array corresponding to the advertisement view is generated through a rasterization operation, each element in the m*n two-dimensional array represents a sub-area in the advertisement view, and each element is initially The state has the first value, m≥1, n≥1; 根据所述重叠区域的左上角坐标和所述广告视图的坐标,在所述m*n二维数组中确定出与所述左上角坐标对应的第(Xs,Ys)个元素,Xs≥1,Ys≥1;According to the coordinates of the upper left corner of the overlapping area and the coordinates of the advertisement view, the (Xs, Ys)th element corresponding to the coordinates of the upper left corner is determined in the m*n two-dimensional array, where Xs≥1, Ys≥1; 根据所述重叠区域的右下角坐标和所述广告视图的坐标,在所述m*n二维数组中确定出与所述右下角坐标对应的第(Xt,Yt)个元素,Xt≥1,Yt≥1;According to the coordinates of the lower right corner of the overlapping area and the coordinates of the advertisement view, the (Xt, Yt)th element corresponding to the coordinates of the lower right corner is determined in the m*n two-dimensional array, Xt≥1, Yt≥1; 将所述m*n二维数组中,横坐标位于所述Xs和所述Xt之间且纵坐标位于所述Ys和所述Yt之间的元素,均标记为第二取值;In the m*n two-dimensional array, the elements whose abscissa is located between the Xs and the Xt and the ordinate is located between the Ys and the Yt are marked as the second value; 将具有所述第二取值的元素的个数,确定为所述遮挡区域的面积。The number of elements with the second value is determined as the area of the occlusion area. 3.根据权利要求2所述的方法,其特征在于,所述根据所述重叠区域的左上角坐标和所述广告视图的坐标,在所述m*n二维数组中确定出与所述左上角坐标对应的第(Xs,Ys)个元素,包括:3 . The method according to claim 2 , wherein, according to the coordinates of the upper left corner of the overlapping area and the coordinates of the advertisement view, determining the relationship between the upper left corner and the upper left corner in the m*n two-dimensional array in the m*n two-dimensional array. 4 . The (Xs, Ys)th element corresponding to the corner coordinates, including: 将所述重叠区域的左上角坐标的第一横坐标与所述广告视图的横坐标相减后,与栅格化缩放比例相除,得到所述Xs;After subtracting the first abscissa of the upper left corner coordinate of the overlapping area from the abscissa of the advertisement view, divide it by the rasterization scaling ratio to obtain the Xs; 将所述重叠区域的左上角坐标的第一纵坐标与所述广告视图的纵坐标相减后,与所述栅格化缩放比例相除,得到所述Ys。The Ys is obtained by subtracting the first ordinate of the upper left corner coordinate of the overlapping area from the ordinate of the advertisement view, and dividing by the rasterization scaling ratio. 4.根据权利要求2所述的方法,其特征在于,所述根据所述重叠区域的右下角坐标和所述广告视图的坐标,在所述m*n二维数组中确定出与所述右下角坐标对应的第(Xt,Yt)个元素,包括:4 . The method according to claim 2 , wherein, according to the coordinates of the lower right corner of the overlapping area and the coordinates of the advertisement view, determining in the m*n two-dimensional array the relationship between the right and the right The (Xt, Yt)th element corresponding to the lower corner coordinates, including: 将所述重叠区域的右下角坐标的第二横坐标与所述广告视图的横坐标相减后,与栅格化缩放比例相除,得到所述Xt;After subtracting the second abscissa of the coordinate of the lower right corner of the overlapping area from the abscissa of the advertisement view, divide it by the rasterization scaling ratio to obtain the Xt; 将所述重叠区域的右下角坐标的第二纵坐标与所述广告视图的纵坐标相减后,与所述栅格化缩放比例相除,得到所述Yt。The Yt is obtained by subtracting the second ordinate of the lower right corner coordinate of the overlapping area from the ordinate of the advertisement view, and dividing by the rasterization scaling ratio. 5.根据权利要求1至4任一所述的方法,其特征在于,所述方法还包括:5. The method according to any one of claims 1 to 4, wherein the method further comprises: 根据视图树,确定出所述广告视图的原始上层视图;According to the view tree, determine the original upper-level view of the advertisement view; 将所述原始上层视图映射到根视图的坐标系中;mapping the original upper-level view to the coordinate system of the root view; 根据所述原始上层视图的坐标,确定出所述原始上层视图中不属于所述根视图的第一裁剪区域;determining, according to the coordinates of the original upper-level view, a first cropping region in the original upper-level view that does not belong to the root view; 将所述原始上层视图中除所述第一裁剪区域之外的区域,确定为所述上层视图。An area other than the first cropped area in the original upper-layer view is determined as the upper-layer view. 6.根据权利要求1至4任一所述的方法,其特征在于,所述方法还包括:将具有所述第二取值的元素的个数,确定为所述遮挡区域的面积之前,还包括:6. The method according to any one of claims 1 to 4, wherein the method further comprises: before determining the number of elements having the second value as the area of the occlusion area, further include: 将所述广告视图映射到根视图的坐标系中;mapping the ad view into the coordinate system of the root view; 根据所述广告视图的坐标,确定出所述广告视图中不属于所述根视图的第二裁剪区域;determining, according to the coordinates of the advertisement view, a second cropping area in the advertisement view that does not belong to the root view; 在所述m*n二维数组中,将所述广告视图中属于所述第二裁剪区域的元素标记为所述第二取值。In the m*n two-dimensional array, the elements belonging to the second cropping area in the advertisement view are marked as the second value. 7.一种曝光度计算装置,其特征在于,所述装置包括:7. An exposure calculation device, wherein the device comprises: 显示模块,用于显示用户界面,所述用户界面包括:广告视图和上层视图,所述上层视图是显示层级位于所述广告视图之上的视图;a display module, configured to display a user interface, the user interface includes: an advertisement view and an upper-level view, the upper-level view is a view whose display level is located above the advertisement view; 确定模块,用于确定所述广告视图和所述上层视图的重叠区域;a determining module, configured to determine the overlapping area of the advertisement view and the upper layer view; 标记模块,用于根据所述重叠区域标记出所述广告视图的遮挡区域的面积;a marking module, configured to mark the area of the occlusion area of the advertisement view according to the overlapping area; 计算模块,用于根据所述遮挡区域的面积确定出所述广告视图的实际曝光区域的面积,计算所述实际曝光区域的面积与所述广告视图的面积的比值,得到所述曝光度。The calculation module is configured to determine the area of the actual exposure area of the advertisement view according to the area of the occlusion area, and calculate the ratio of the area of the actual exposure area to the area of the advertisement view to obtain the exposure degree. 8.根据权利要求7所述的装置,其特征在于,所述标记模块,包括:8. The device according to claim 7, wherein the marking module comprises: 生成单元,用于通过栅格化操作生成与所述广告视图对应的m*n二维数组,所述m*n二维数组中的每个元素代表所述广告视图中的一块子区域,且每个元素在初始状态下具有第一取值;a generating unit, configured to generate an m*n two-dimensional array corresponding to the advertisement view through a rasterization operation, each element in the m*n two-dimensional array represents a sub-area in the advertisement view, and Each element has the first value in the initial state; 确定单元,用于根据所述重叠区域的左上角坐标和所述广告视图的坐标,在所述m*n二维数组中确定出与所述左上角坐标对应的第(Xs,Ys)个元素;a determining unit, configured to determine the (Xs, Ys)th element corresponding to the upper left corner coordinates in the m*n two-dimensional array according to the upper left corner coordinates of the overlapping area and the coordinates of the advertisement view ; 所述确定单元,还用于根据所述重叠区域的右下角坐标和所述广告视图的坐标,在所述m*n二维数组中确定出与所述右下角坐标对应的第(Xt,Yt)个元素;The determining unit is further configured to determine the (Xt, Yt th (Xt, Yt) corresponding to the coordinates of the lower right corner in the m*n two-dimensional array according to the coordinates of the lower right corner of the overlapping area and the coordinates of the advertisement view ) elements; 标记单元,用于将所述m*n二维数组中,横坐标位于所述Xs和所述Xt之间且纵坐标位于所述Ys和所述Yt之间的元素,均标记为第二取值;The marking unit is used to mark the elements whose abscissa is located between the Xs and the Xt and the ordinate is located between the Ys and the Yt in the m*n two-dimensional array as the second fetch value; 所述确定单元,还用于将具有所述第二取值的元素的个数,确定为所述遮挡区域的面积。The determining unit is further configured to determine the number of elements having the second value as the area of the occlusion area. 9.根据权利要求8所述的装置,其特征在于,所述确定单元,还包括:9. The apparatus according to claim 8, wherein the determining unit further comprises: 计算子单元,用于将所述重叠区域的左上角坐标的第一横坐标与所述广告视图的横坐标相减后,与栅格化缩放比例相除,得到所述Xs;a calculation subunit, configured to subtract the first abscissa of the upper left corner coordinate of the overlapping area from the abscissa of the advertisement view, and then divide it by the rasterization scaling ratio to obtain the Xs; 所述计算子单元,还用于将所述重叠区域的左上角坐标的第一纵坐标与所述广告视图的纵坐标相减后,与所述栅格化缩放比例相除,得到所述Ys。The calculation subunit is further configured to subtract the first ordinate of the upper left corner coordinate of the overlapping area from the ordinate of the advertisement view, and then divide the rasterization scaling ratio to obtain the Ys . 10.根据权利要求8所述的装置,其特征在于,所述确定单元,还包括:10. The apparatus according to claim 8, wherein the determining unit further comprises: 计算子单元,用于将所述重叠区域的右下角坐标的第二横坐标与所述广告视图的横坐标相减后,与栅格化缩放比例相除,得到所述Xt;a calculation subunit, configured to subtract the second abscissa of the lower right corner coordinate of the overlapping area from the abscissa of the advertisement view, and then divide it by the rasterization scaling ratio to obtain the Xt; 所述计算子单元,还用于将所述重叠区域的右下角坐标的第二纵坐标与所述广告视图的纵坐标相减后,与所述栅格化缩放比例相除,得到所述Yt。The calculation subunit is further configured to subtract the second ordinate of the lower right corner coordinate of the overlapping area from the ordinate of the advertisement view, and then divide the rasterization scaling ratio to obtain the Yt . 11.根据权利要求7至10任一所述的装置,其特征在于,所述装置还包括:11. The device according to any one of claims 7 to 10, wherein the device further comprises: 视图模块,用于根据视图树,确定出所述广告视图的原始上层视图;a view module, configured to determine the original upper-level view of the advertisement view according to the view tree; 映射模块,用于将所述原始上层视图映射到根视图的坐标系中;a mapping module, used to map the original upper-level view to the coordinate system of the root view; 所述确定模块,还用于根据所述原始上层视图的坐标,确定出所述原始上层视图中不属于所述根视图的第一裁剪区域;The determining module is further configured to determine, according to the coordinates of the original upper-layer view, a first cropping region in the original upper-layer view that does not belong to the root view; 所述确定模块,还用于将所述原始上层视图中除所述第一裁剪区域之外的区域,确定为所述上层视图。The determining module is further configured to determine an area in the original upper layer view except the first cropped area as the upper layer view. 12.根据权利要求7至10任一所述的装置,其特征在于,所述装置还包括:12. The device according to any one of claims 7 to 10, wherein the device further comprises: 映射模块,用于将所述广告视图映射到根视图的坐标系中;a mapping module, used to map the advertisement view to the coordinate system of the root view; 所述确定模块,还用于根据所述广告视图的坐标,确定出所述广告视图中不属于所述根视图的第二裁剪区域;The determining module is further configured to determine, according to the coordinates of the advertisement view, a second cropping area in the advertisement view that does not belong to the root view; 所述标记模块,还用于在所述m*n二维数组中,将所述广告视图中属于所述第二裁剪区域的元素标记为所述第二取值。The marking module is further configured to mark, in the m*n two-dimensional array, elements belonging to the second cropping area in the advertisement view as the second value. 13.一种终端,其特征在于,所述终端包括处理器和存储器,所述存储器中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如权利要求1至6任一所述的曝光度计算方法。13. A terminal, characterized in that the terminal comprises a processor and a memory, and the memory stores at least one instruction, at least one program, a code set or an instruction set, the at least one instruction, the at least one program . The code set or the instruction set is loaded and executed by the processor to implement the exposure calculation method according to any one of claims 1 to 6 . 14.一种计算机可读存储介质,其特征在于,所述存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如权利要求1至6任一所述的曝光度计算方法。14. A computer-readable storage medium, wherein the storage medium stores at least one instruction, at least one piece of program, code set or instruction set, the at least one instruction, the at least one piece of program, the code The set or instruction set is loaded and executed by the processor to implement the exposure calculation method as claimed in any one of claims 1 to 6 .
CN201711050852.1A 2017-10-31 2017-10-31 Exposure calculation method, device and readable medium Pending CN109727051A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711050852.1A CN109727051A (en) 2017-10-31 2017-10-31 Exposure calculation method, device and readable medium
PCT/CN2018/112753 WO2019085906A1 (en) 2017-10-31 2018-10-30 Exposure calculation method and device, terminal, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711050852.1A CN109727051A (en) 2017-10-31 2017-10-31 Exposure calculation method, device and readable medium

Publications (1)

Publication Number Publication Date
CN109727051A true CN109727051A (en) 2019-05-07

Family

ID=66294421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711050852.1A Pending CN109727051A (en) 2017-10-31 2017-10-31 Exposure calculation method, device and readable medium

Country Status (2)

Country Link
CN (1) CN109727051A (en)
WO (1) WO2019085906A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110366037A (en) * 2019-07-31 2019-10-22 秒针信息技术有限公司 Video automatic monitoring device, method, electronic device and storage medium
CN110704097A (en) * 2019-09-29 2020-01-17 腾讯科技(深圳)有限公司 A data collection method, device, electronic device and storage medium
CN111444064A (en) * 2020-04-20 2020-07-24 玉环智寻信息技术有限公司 Component exposure statistical method and device and mobile terminal
CN112417215A (en) * 2020-11-19 2021-02-26 京东数字科技控股股份有限公司 View exposure effectiveness determining method and device, electronic equipment and storage medium
CN113362104A (en) * 2021-05-28 2021-09-07 北京奇艺世纪科技有限公司 Anti-cheating charging method and device for effect advertisement and storage medium
CN113379468A (en) * 2021-06-29 2021-09-10 山东派盟网络科技有限公司 Advertisement processing method, electronic device and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116048705A (en) * 2023-02-17 2023-05-02 百果园技术(新加坡)有限公司 A view element exposure detection method, system, device and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008002031A1 (en) * 2006-06-28 2008-01-03 Nhn Corporation Methdo for exposuring advertisement and system thereof
KR20110124963A (en) * 2010-05-12 2011-11-18 디노커뮤니케이션즈(주) Pixel advertisement service provision system and method
CN103186866A (en) * 2011-12-29 2013-07-03 阿里巴巴集团控股有限公司 Method and system for counting advertisement showing times
CN103455517A (en) * 2012-06-01 2013-12-18 亿赞普(北京)科技有限公司 Advertisement detection method and system and advertisement terminal
CN105210051A (en) * 2013-03-18 2015-12-30 谷歌公司 Estimating visibility of content items
CN105573497A (en) * 2015-12-15 2016-05-11 云南大学 Advertisement eliminating method based on eyeball track tracking
US20170055022A1 (en) * 2015-08-21 2017-02-23 Microsoft Technology Licensing, Llc Faster Determination Of A Display Element's Visibility
CN106600333A (en) * 2016-12-20 2017-04-26 北京平塔科技有限公司 Virtual reality advertisement position content exposure monitoring method and device
CN106815225A (en) * 2015-11-27 2017-06-09 方正国际软件(北京)有限公司 A kind of floating advertisement treatment of media interface and the method and device of display

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008002031A1 (en) * 2006-06-28 2008-01-03 Nhn Corporation Methdo for exposuring advertisement and system thereof
KR20110124963A (en) * 2010-05-12 2011-11-18 디노커뮤니케이션즈(주) Pixel advertisement service provision system and method
CN103186866A (en) * 2011-12-29 2013-07-03 阿里巴巴集团控股有限公司 Method and system for counting advertisement showing times
CN103455517A (en) * 2012-06-01 2013-12-18 亿赞普(北京)科技有限公司 Advertisement detection method and system and advertisement terminal
CN105210051A (en) * 2013-03-18 2015-12-30 谷歌公司 Estimating visibility of content items
US20170055022A1 (en) * 2015-08-21 2017-02-23 Microsoft Technology Licensing, Llc Faster Determination Of A Display Element's Visibility
CN106815225A (en) * 2015-11-27 2017-06-09 方正国际软件(北京)有限公司 A kind of floating advertisement treatment of media interface and the method and device of display
CN105573497A (en) * 2015-12-15 2016-05-11 云南大学 Advertisement eliminating method based on eyeball track tracking
CN106600333A (en) * 2016-12-20 2017-04-26 北京平塔科技有限公司 Virtual reality advertisement position content exposure monitoring method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
丛海亮: "用接片和高动态范围摄影技巧创作精美创意印刷图片的研究", 《中国优秀硕士学位论文全文数据库(电子期刊)哲学与人文科学辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110366037A (en) * 2019-07-31 2019-10-22 秒针信息技术有限公司 Video automatic monitoring device, method, electronic device and storage medium
CN110704097A (en) * 2019-09-29 2020-01-17 腾讯科技(深圳)有限公司 A data collection method, device, electronic device and storage medium
CN111444064A (en) * 2020-04-20 2020-07-24 玉环智寻信息技术有限公司 Component exposure statistical method and device and mobile terminal
CN112417215A (en) * 2020-11-19 2021-02-26 京东数字科技控股股份有限公司 View exposure effectiveness determining method and device, electronic equipment and storage medium
CN113362104A (en) * 2021-05-28 2021-09-07 北京奇艺世纪科技有限公司 Anti-cheating charging method and device for effect advertisement and storage medium
CN113362104B (en) * 2021-05-28 2023-10-13 北京奇艺世纪科技有限公司 Anti-cheating charging method, device and storage medium for effect advertisements
CN113379468A (en) * 2021-06-29 2021-09-10 山东派盟网络科技有限公司 Advertisement processing method, electronic device and storage medium

Also Published As

Publication number Publication date
WO2019085906A1 (en) 2019-05-09

Similar Documents

Publication Publication Date Title
US11526274B2 (en) Touch control method and apparatus
US20150212691A1 (en) Method and apparatus for desktop management
EP3640782A1 (en) Anti-misoperation method and terminal
EP3249512A1 (en) Method for setting icon, and electronic device
ES3030124T3 (en) Object processing method and terminal device
EP3783471A1 (en) Display control method and terminal
CN108475156A (en) A kind of menu display method and handheld terminal of user interface
US20150002539A1 (en) Methods and apparatuses for displaying perspective street view map
CN104679381B (en) Method and device for switching chat windows
CN109674534A (en) A kind of surgical navigational image display method and system based on augmented reality
CN108984095A (en) Gesture interaction method and device, storage medium and electronic equipment
CN106488296B (en) A kind of method and apparatus showing video barrage
US20150074209A1 (en) Method and device for displaying message
CN109146760A (en) A kind of watermark generation method, device, terminal and storage medium
CN107493389A (en) Singlehanded mode implementation method, terminal and computer-readable medium
CN113873148B (en) Video recording method, device, electronic device and readable storage medium
US10066955B2 (en) Route information displaying method and apparatus
CN109032445A (en) A kind of control method for screen display and terminal device
CN111124709A (en) Text processing method and electronic equipment
CN104820546B (en) Function information methods of exhibiting and device
US20210019401A1 (en) Method and apparatus for displaying keyboard, and terminal device
CN108324295A (en) Power spectrum Peak Search Method, device and computer storage media
CN108920086A (en) Split screen quitting method and device, storage medium and electronic equipment
CN110223615B (en) An advertisement display control method, device, medium and advertisement push server
CN107193453A (en) Contact person's mask method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190507

RJ01 Rejection of invention patent application after publication