CN112598569A - Material delivery method and device and electronic equipment - Google Patents

Material delivery method and device and electronic equipment Download PDF

Info

Publication number
CN112598569A
CN112598569A CN202011574133.1A CN202011574133A CN112598569A CN 112598569 A CN112598569 A CN 112598569A CN 202011574133 A CN202011574133 A CN 202011574133A CN 112598569 A CN112598569 A CN 112598569A
Authority
CN
China
Prior art keywords
image
attribute
preset
pixels
length
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
CN202011574133.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.)
Shanghai Hard Link Network Technology Co ltd
Original Assignee
Shanghai Hard Link Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Hard Link Network Technology Co ltd filed Critical Shanghai Hard Link Network Technology Co ltd
Priority to CN202011574133.1A priority Critical patent/CN112598569A/en
Publication of CN112598569A publication Critical patent/CN112598569A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0242Determining effectiveness of advertisements
    • G06Q30/0244Optimization
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0277Online advertisement

Landscapes

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

Abstract

The application discloses a material delivery method, a device and electronic equipment, wherein the method comprises the following steps: acquiring a preset image area of a material image in a target material; marking image attributes which meet a preset marking strategy in the long pixels and the wide pixels of the preset image area, wherein the preset marking strategy comprises marking the image attributes with larger pixel values in the long pixels and the wide pixels of the preset image area; acquiring corresponding target basic attributes from a plurality of basic attributes of the advertisement space according to the marked image attributes, wherein the plurality of basic attributes comprise length attributes and width attributes of the advertisement space, the length attributes correspond to the long pixels, and the width attributes correspond to the wide pixels; according to the attribute proportion of the marked image attribute and the target basic attribute, after scaling the preset image area in an equal ratio, updating the target material according to the preset image area after scaling in the equal ratio; and delivering the updated target material to the advertisement space.

Description

Material delivery method and device and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for delivering a material, and an electronic device.
Background
With the development of the internet, more and more users select to launch advertisement materials through a media platform on a line. Since the length, width and size of each advertisement space provided by the online media platform are different, the material for advertisement delivery needs to be scaled so that the material can be displayed on each advertisement space.
In order to enable core image content of a material to be displayed on an advertisement space completely, in the prior art, the material is generally matched to each advertisement space in an unequal scaling manner, where the unequal scaling means that a scaling ratio of long pixels and a scaling ratio of wide pixels of an image of the material are different, and if a ratio of long pixels of an image in the material is 1 and a ratio of wide pixels of the image in the material is 2, and a ratio of long pixels and a ratio of wide pixels of the advertisement space are both 1, the wide pixels of the image in the material are reduced by one time, and the long pixels are unchanged. However, the image content in the material is displayed in an unequal scaling manner, which causes the scaling of the long pixel and the wide pixel of the image to be inconsistent, and is easy to cause image deformation and distortion, thereby affecting the display quality of the material.
Disclosure of Invention
The present application aims to solve at least one of the technical problems in the prior art, and provides a material delivery method, an apparatus and an electronic device, which avoid the deformation and distortion of core image content in a material and improve the display quality of the material under the condition that the core image content in the material can be completely displayed on an advertisement space.
The embodiment of the application provides a material delivery method, which comprises the following steps:
acquiring a preset image area of a material image in a target material;
marking the image attribute which meets a preset marking strategy in the long pixels and the wide pixels of the preset image area, wherein the preset marking strategy comprises marking the image attribute with a larger pixel value in the long pixels and the wide pixels of the preset image area;
acquiring a corresponding target basic attribute from a plurality of basic attributes of the advertisement space according to the marked image attribute, wherein the plurality of basic attributes comprise a length attribute and a width attribute of the advertisement space, the length attribute corresponds to the long pixel, and the width attribute corresponds to the wide pixel;
according to the attribute proportion of the marked image attribute and the target basic attribute, after the preset image area is subjected to equal-ratio scaling, the target material is updated according to the preset image area subjected to equal-ratio scaling;
and delivering the updated target material to the advertisement space.
Further, the acquiring a preset image region of a material image in a target material includes:
acquiring a plurality of length-width pixel ratios of a plurality of preset regions of the material image, wherein the length-width pixel ratios are formed by length pixels and width pixels of the preset regions;
and marking the preset region corresponding to the length-width pixel ratio which is closest to the region aspect ratio in the plurality of length-width pixel ratios as the preset image region, wherein the region aspect ratio is formed according to the length attribute and the width attribute of the advertisement space.
Further, the center of the preset area coincides with the center of the material image.
Further, the target material comprises video material;
the acquiring of the preset image area of the material image in the target material comprises the following steps:
acquiring a video material;
after the video material is framed to form a plurality of frame images, extracting at least one frame image including a video material cover from the plurality of frame images and marking the frame image as the material image according to the duration attribute in the plurality of basic attributes of the advertisement space;
and acquiring the preset image area from the material image.
Further, the preset marking strategy further includes:
any one of the material image attributes is marked in the long pixels and the wide pixels having equal pixel values.
Further, the scaling the preset image region by equal ratio includes:
and scaling the long pixels and the wide pixels of the preset image area in an equal ratio according to the attribute proportion respectively until the marked image attribute is equal to the target basic attribute.
Further, the delivering the updated target material to the advertisement space includes:
acquiring a second coordinate of the central point of the advertisement position;
and delivering the updated target material to the advertisement space according to the second coordinate and the central point of the preset image area after equal scaling, so that the central point of the preset image area after equal scaling is superposed with the second coordinate on the advertisement space.
Further, the delivering the updated target material to the advertisement space includes:
adding a label associated with a user behavior log to the updated target material, and delivering the updated target material with the label to the advertisement space.
Further, in this embodiment, a device for delivering a material is further provided, including:
the image acquisition module is used for acquiring a preset image area of a material image in a target material;
the image marking module is used for marking the image attribute which meets a preset marking strategy in the long pixels and the wide pixels of the preset image area, wherein the preset marking strategy comprises marking the image attribute with a larger pixel value in the long pixels and the wide pixels of the preset image area;
an attribute matching module, configured to obtain a corresponding target basic attribute from multiple basic attributes of an advertisement space according to the marked image attribute, where the multiple basic attributes include a length attribute and a width attribute of the advertisement space, the length attribute corresponds to the long pixel, and the width attribute corresponds to the wide pixel;
the image scaling module is used for carrying out equal-ratio scaling on the preset image area according to the attribute proportion of the marked image attribute and the target basic attribute, and then updating the target material according to the preset image area after equal-ratio scaling;
and the material delivery module is used for delivering the updated target material to the advertisement space.
Further, the image acquisition module is specifically configured to:
acquiring a plurality of length-width pixel ratios of a plurality of preset regions of the material image, wherein the length-width pixel ratios are formed by length pixels and width pixels of the preset regions;
and marking the preset region corresponding to the length-width pixel ratio which is closest to the region aspect ratio in the plurality of length-width pixel ratios as the preset image region, wherein the region aspect ratio is formed according to the length attribute and the width attribute of the advertisement space.
Further, an embodiment of the present application provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the material delivery method as described in the above embodiments when executing the program.
Further, the present application provides a computer-readable storage medium, which stores computer-executable instructions for causing a computer to execute the material delivering method according to the above embodiment.
Compared with the prior art, the embodiment obtains the attribute proportion of the image attribute with larger pixels in the long pixel and the wide pixel in the obtained preset image area according to the marked image attribute and the obtained basic attribute of the corresponding advertisement space, performs equal-ratio scaling on the preset image area according to the attribute proportion, intercepts the image area subjected to equal-ratio scaling to update the target material, and puts the target material in the advertisement space.
In the embodiment, the length-width pixel ratios of the preset areas of the material image are obtained, the length-width pixel ratio closest to the area length-width ratio is selected and correspondingly marked as the preset image area, the preset image area more adaptive to the advertisement can be selected for scaling in an equal ratio, the core content of the material can be displayed better and the display quality of the material can be improved.
In the embodiment, in the process of selecting the preset image area which is more adaptive to the advertisement, the center of the preset area is overlapped with the center of the material image, so that the delivered material can be better displayed in the advertisement.
In the embodiment, the target material is a video material, and the video material is divided into frames and at least one frame of image is extracted as the material image to acquire the preset image area, so that the video material can be completely displayed in the advertisement and is not easy to deform and distort.
In the embodiment, in the process of scaling the preset image area in an equal ratio according to the attribute proportion, the marked image attribute is equal to the target basic attribute, so that at least one edge of the material is attached to the advertisement, and the material can be displayed in the advertisement more completely and clearly.
In the above embodiment, in the process of delivering the material to the advertisement, the preset image area center store is overlapped with the advertisement position center point, so that the delivered material can be better displayed in the advertisement.
In the embodiment, the label associated with the user behavior log is added to the updated target material, so that the interest degree of the user on the delivered target material can be counted, and the material can be optimized better.
Drawings
The present application is further described with reference to the following figures and examples;
fig. 1 is an application environment diagram of a material delivery method in an embodiment;
FIG. 2 is a schematic flow chart diagram of a method for delivering material according to an embodiment;
FIG. 3 is a diagram illustrating a process for delivering material in one embodiment;
fig. 4 is a schematic flow chart of a material delivery method in another embodiment;
fig. 5 is a block diagram showing the structure of the material delivering apparatus according to the embodiment;
FIG. 6 is a block diagram of a computer device in one embodiment.
Detailed Description
Reference will now be made in detail to the present embodiments of the present application, preferred embodiments of which are illustrated in the accompanying drawings, which are for the purpose of visually supplementing the description with figures and detailed description, so as to enable a person skilled in the art to visually and visually understand each and every feature and technical solution of the present application, but not to limit the scope of the present application.
In order to enable core image content of a material to be displayed on an advertisement space completely, in the prior art, the material is generally matched to each advertisement space in an unequal scaling manner, where the unequal scaling means that a scaling ratio of long pixels and a scaling ratio of wide pixels of an image of the material are different, and if a ratio of long pixels of an image in the material is 1 and a ratio of wide pixels of the image in the material is 2, and a ratio of long pixels and a ratio of wide pixels of the advertisement space are both 1, the wide pixels of the image in the material are reduced by one time, and the long pixels are unchanged. However, the image content in the material is displayed in an unequal scaling manner, which causes the scaling of the long pixel and the wide pixel of the image to be inconsistent, and is easy to cause image deformation and distortion, thereby affecting the display quality of the material. The core image content of the material is usually a bitmap, the long pixels refer to pixel values corresponding to the long sides of the material image, and the wide pixels refer to pixel values corresponding to the wide sides of the material image.
In order to solve the above technical problem, fig. 1 is an application environment diagram of a material delivery method in an embodiment. Referring to fig. 1, the material delivery system includes a user terminal 110 and a server 120. The user terminal 110 and the server 120 are connected through a network. The user terminal 110 may specifically be a desktop user terminal. The user terminal 110 may be implemented as a stand-alone user terminal or as a user terminal cluster consisting of a plurality of user terminals. The server 120 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers. The user terminal 110 realizes the delivery of the material image according to the requirement of the advertisement position, and the server 120 acquires the material requirement required by the corresponding position of the advertisement from the interface of the user terminal 110 and generates the adaptive material according to the material requirement.
The material delivery method provided by the embodiments of the present application will be described and explained in detail with reference to several specific embodiments.
In one embodiment, as shown in fig. 2, a method of material delivery is provided. The embodiment is mainly illustrated by applying the method to computer equipment. The computer device may specifically be the server 120 in fig. 1 described above.
Referring to fig. 2, the material delivery method specifically includes the following steps:
and S11, acquiring a preset image area of the material image in the target material.
In this embodiment, the server obtains a preset image region of a material image in a target material, where the target material may be an object that needs to be advertised, and may be an article, an animal, or a person, and the material image is an image corresponding to the object that needs to be advertised, and the image may be a bitmap or a vector diagram.
In this embodiment, the server may obtain the preset image area by clipping, or may obtain the preset image area by inputting coordinates of each corner of the preset image area to be obtained, where the preset image area refers to an image area to be subjected to advertisement delivery in an image corresponding to an object to be subjected to advertisement delivery. Since image region acquisition belongs to the prior art, the manner of acquiring the preset image region from the material image is not particularly limited.
In one embodiment, the target material comprises video material.
For a video material, acquiring a preset image area of a material image in a target material, including:
video material is obtained.
After the video material is framed to form a plurality of frame images, at least one frame image including a cover of the video material is extracted from the plurality of frame images and marked as a material image according to a duration attribute in the plurality of basic attributes of the advertisement space.
And acquiring a preset image area from the material image.
In this embodiment, when the target material is a video material, the video material includes a plurality of material images, and therefore, the corresponding material images need to be acquired from the video material. After the server acquires the video material, the frame division operation is carried out on the video material, and the image of each frame in the video material is acquired. The server selects material images from the images of the frames according to the material requirements of the advertising spots acquired through the user terminal interface. The basic attributes of the advertisement space refer to the material requirements of the advertisement space, and can be size attributes, code rate attributes, duration attributes and the like. In this embodiment, the server selects, as the material image, an image of at least one frame from the images of the frames according to the time length attribute of the advertisement space, where, since the frame image corresponding to the cover page of the video material can express the content of the video material to a greater extent, the frame image corresponding to the cover page needs to be selected first when the image of at least one frame is selected. Specifically, the number of the frame images to be selected is obtained according to the time length of the advertisement space and the time length of each frame.
The server can mark the material image after acquiring the material image, and acquire a preset image area from the material image according to the area of each frame of image to be advertised. The preset image area may be obtained by cutting, or may be obtained by inputting coordinates of each corner of the preset image area to be obtained.
For example, the target video material is a propaganda video of a game of 'song of city on cloud' with pseudo-ginseng entertaining each other, the video time is 30 seconds, the video image is subjected to frame division, the time corresponding to each frame is 0.5 seconds, and therefore, images of 60 frames including the propaganda video cover of 'song of city on cloud' can be obtained after the frame division. The advertisement space to be placed for the video material can only place 5 seconds of material, so the time length attribute of the advertisement space is 5 seconds, and therefore 10 frames of images need to be selected from 60 frames of images for placement. At this time, images of the first ten frames including the frame image of the cover may be selected and marked to obtain 10 material images. The marking mode may be a custom marking, for example, the marking may be sequentially marked as 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 according to the playing sequence of the selected frame image in the video, and the marking may also be performed according to the content of the frame, which is not specifically limited herein. After the marking, the content of the mark may be delivered or the delivery may be delivered in a custom order, for example, the selected 10 material images may be delivered in the order of 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10, or may be delivered in a random order, which is not limited herein. After the server acquires 10 material images, the cover image can be intercepted firstly, the intercepting range is the region to be launched by the cover image, for example, only the role image is launched by the propaganda video cover of song on city on cloud, so that the intercepted region only needs to contain the image region where the role is located, and the image region is the preset image region of the frame image of the cover. And after the preset image area of the frame image of the cover is obtained, the server obtains the preset image area of other material images. The sizes of the preset image areas acquired by the material images are not necessarily the same.
In this embodiment, the target material is a video material, and the video material is framed and at least one frame of image is extracted as a material image to acquire the preset image region, so that the video material can be completely displayed in the advertisement and is not easy to deform and distort.
And S12, marking the image attributes meeting the preset marking strategy in the long pixels and the wide pixels of the preset image area, wherein the preset marking strategy comprises marking the image attributes with larger pixel values in the long pixels and the wide pixels of the preset image area.
In this embodiment, for the long pixels and the wide pixels of the preset image area in the acquired material image, the server selects one of the pixels to be marked according to a preset marking policy. The preset marking strategy refers to a basis for selecting one of long pixels and wide pixels of a preset image area to mark. The image attributes include long pixels and wide pixels.
The server selects one of the long pixels and the wide pixels of the preset image area with a larger pixel value to mark, for example, a propaganda image of the game song of city on cloud is used as a material image, and the preset image area is a rectangular area with the long pixel of 800 and the wide pixel of 1000 in the material image. And selecting wide pixels for marking according to a preset marking strategy. The marking means is not particularly limited.
In one embodiment, the preset marking policy further comprises:
any one of the material image attributes is marked in a long pixel and a wide pixel having equal pixel values.
In this embodiment, the preset image regions corresponding to the long pixels and the wide pixels with equal pixel values are square regions, so that one of the material image attributes can be arbitrarily selected for marking.
And S13, acquiring corresponding target basic attributes from a plurality of basic attributes of the advertisement space according to the marked image attributes, wherein the plurality of basic attributes comprise length attributes and width attributes of the advertisement space, the length attributes correspond to the long pixels, and the width attributes correspond to the wide pixels.
In this embodiment, the server obtains a corresponding target basic attribute from a plurality of basic attributes of the advertisement space according to the marked image attribute in the preset image area. The basic attribute refers to a length attribute and a width attribute of the advertisement space, and respectively represents the maximum length and the maximum width of a material image which can be placed in the advertisement space. And the basic attribute corresponding to the marked image attribute in the preset image area is the target basic attribute, wherein the corresponding relation between the image attribute and the basic attribute is that the length attribute corresponds to the long pixel, and the width attribute corresponds to the wide pixel. For example, if a wide pixel in the image material is selected for marking, then the target base attribute obtained by the server from the ad slot is the width attribute.
And S14, after scaling the preset image area in equal proportion according to the attribute proportion of the marked image attribute and the target basic attribute, updating the target material according to the preset image area after scaling in equal proportion.
In this embodiment, the server obtains the attribute ratio of the tagged image attribute to the corresponding target base attribute. For example, a promotional image of the game "song of city on cloud" is used as a material image, and the preset image area is a rectangular area with a length pixel of 800 and a width pixel of 1000 in the material image. The wide pixel is the marked image attribute, the width attribute of the advertisement space is the corresponding target basic attribute, the length attribute of the advertisement space is 800, the width attribute is 500, and the attribute ratio of the wide pixel to the width attribute is 2: 1.
And the server performs equal scaling on the image area according to the attribute proportion, wherein the equal scaling is to scale the long pixels and the wide pixels of the image according to a uniform proportion. And the server after the equal scaling updates the target material according to the preset image area after the equal scaling.
For example, the server performs scaling on the preset image area with the length pixel of 800 and the width pixel of 1000 according to the attribute ratio of the width pixel to the width attribute of 2:1, where the scaling is performed according to the attribute ratio, and the length pixel and the width pixel of the preset image area can be reduced to one half of the original size, also can be reduced to one fourth of the original size, also can be reduced to one eighth of the original size, and so on. After scaling, a preset image area with 400 long pixels and 500 wide pixels can be obtained, a preset image area with 200 long pixels and 250 wide pixels can be obtained, a preset image area with 100 long pixels and 125 wide pixels can be obtained, and the like. And after the equal scaling, the server updates the target material according to the preset image area after the equal scaling. In this case, since the advertisement image of the game song on the city on the cloud is used as the material image, the target material is also the advertisement image of the game song on the city on the cloud.
In one embodiment, scaling the preset image region by equal ratio comprises:
and respectively carrying out equal scaling on the long pixels and the wide pixels of the preset image area according to the attribute proportion until the marked image attribute is equal to the target basic attribute.
In the above embodiment, since the server performs equal scaling on the preset image area according to the attribute ratio, the length pixel and the width pixel of the preset image area can be reduced to one half, one quarter, or one eighth of the original length pixel, so that the size difference between the scaled preset image area and the advertisement space is larger in some cases. Therefore, in the present embodiment, in the process of scaling the preset image area by the attribute scale, the server stops scaling the preset image area when scaling the marked image attribute equal to the corresponding target base attribute. For example, the server performs equal scaling on the preset image area with the length pixel of 800 and the width pixel of 1000 according to the attribute ratio of the width pixel to the width attribute of 2:1, when the length pixel and the width pixel of the preset image area are reduced to one half of the original length pixel and width pixel, that is, the preset image area with the length pixel of 400 and the width pixel of 500 is obtained, the width attributes of the preset image area after equal scaling and the width attribute of the advertisement space are both 500, and at this time, the equal scaling of the preset image area is stopped. And the server updates the target material by comparing the scaled preset image area.
In this embodiment, in the process of scaling the preset image area according to the attribute ratio, the marked image attribute is made equal to the target basic attribute, so that at least one edge of the material is attached to the advertisement, and the material can be displayed in the advertisement more completely and clearly.
And S15, putting the updated target material into the advertising space.
In this embodiment, the server transmits the updated target material to the user terminal, and the advertisement space is delivered through the user terminal. For example, in this case, the target material having a length attribute of 800 pixels and a width attribute of 500 pixels is placed on the advertisement space having a length attribute of 400 pixels and a width attribute of 500 pixels. The release process is shown in figure 3.
In one embodiment, delivering updated targeted material to an ad spot includes:
a second coordinate of a center point of the ad slot is obtained.
And delivering the updated target material to the advertisement space according to the second coordinate and the central point of the preset image area after equal scaling so as to enable the central point of the preset image area after equal scaling to be superposed with the second coordinate on the advertisement space.
In this embodiment, the second coordinate refers to a coordinate of a center point of the advertisement space, for example, the second coordinate of the advertisement space with the attribute of 800 pixels in length and the attribute of 500 pixels in width, and the advertisement space is converted into a rectangular area located in a first quadrant of the XY rectangular coordinate system and having a length and a width respectively coinciding with the XY axes, so that the second coordinate is (400, 250). And the server enables the center point of the preset image area after geometric scaling to be superposed with the second coordinate. For example, if the preset image area has a long pixel of 400 and a wide pixel of 500, and the preset image area is converted into a rectangular area having a length and a width respectively coinciding with the XY axes in the first quadrant of the XY rectangular coordinate system, the center point coordinates are (200, 250). At this time, the server needs to make the coordinate of the central point coincide with the second coordinate, and needs to make the coordinate of the central point translate 200 in the positive direction of the X axis.
In this embodiment, in the process of delivering the material to the advertisement, the preset image area center store is made to coincide with the advertisement space center point, so that the delivered material can be better displayed in the advertisement.
In one embodiment, delivering updated targeted material to an ad spot includes:
and adding a label associated with the user behavior log to the updated target material, and putting the updated target material with the label to the advertisement space.
The user behavior log refers to records of operations performed by a user in a user terminal every day, such as click objects, application login times, web browsing types, and the like. The server marks a part or all of the user behaviors according to the user behaviors to be concerned, and if the server wants to be concerned about what the user clicks on the user terminal and how many times the user clicks, the server adds the labels related to the user behavior logs to the click objects and the click times. Therefore, in this embodiment, the server adds the tag associated with the user behavior log to the updated target material, and delivers the updated target material with the tag to the advertisement space through the user terminal.
In this embodiment, a tag associated with the user behavior log is added to the updated target material, so that the interest level of the user in the delivered target material can be counted, and the material can be better optimized.
In the embodiment, for the image attribute with the larger pixel in the long pixel and the wide pixel in the obtained preset image area, the attribute proportion is obtained according to the marked image attribute and the obtained basic attribute of the corresponding advertisement space, the preset image area is scaled in an equal ratio according to the attribute proportion, the image area after the equal ratio scaling is intercepted to update the target material, and the target material is delivered to the advertisement space.
In another embodiment, as shown in fig. 4, a method of material delivery is provided. The embodiment is mainly illustrated by applying the method to computer equipment. The computer device may specifically be the server 120 in fig. 1 described above.
Referring to fig. 4, the material delivery method specifically includes the following steps:
s21, obtaining a plurality of length-width pixel ratios of a plurality of preset areas of the material image, wherein the length-width pixel ratios are formed by the length pixels and the width pixels of the preset areas.
In this embodiment, the server obtains a preset region of a material image in a target material, where the target material may be an object that needs to be advertised, and may be an article, an animal, or a person, and the material image is an image corresponding to the object that needs to be advertised, and the image may be a bitmap or a vector diagram.
In this embodiment, the server may obtain the preset region by cutting, or may obtain the preset region by inputting coordinates of each corner of the preset region to be obtained, where the preset region refers to an image region to be subjected to advertisement delivery in an image corresponding to an object to be subjected to advertisement delivery. Since image region acquisition belongs to the prior art, the manner of acquiring the preset region from the material image is not particularly limited.
In this embodiment, the server may cut and obtain a plurality of preset regions according to the material image, and the length-width pixel ratios of the plurality of preset regions are different. The length-width pixel ratio is the ratio of the length pixel to the width pixel of the preset area. For example, a preset region with a long pixel of 1000 and a wide pixel of 800 and two preset regions with a long pixel of 800 and a wide pixel of 1000 and a ratio of the length to the width of 5:4 and 4:5 of the two preset regions can be obtained from a material image with a long pixel of 1000 and a wide pixel of 1000. When there is only one material image, the preset region may be cut by copying the material image.
In one embodiment, the center of the preset area coincides with the center of the material image.
In this embodiment, when the server acquires the preset region, the center of the preset region is made to coincide with the center of the material image.
In this embodiment, in the process of selecting the preset image area more suitable for the advertisement, the center of the preset area is overlapped with the center of the material image, so that the delivered material can be better displayed in the advertisement.
And S22, marking a preset area corresponding to the length-width pixel ratio closest to the area length-width pixel ratio in the plurality of length-width pixel ratios as a preset image area, wherein the area length-width ratio is formed according to the length attribute and the width attribute of the advertisement space.
In this embodiment, the server selects a preset region having a length-width pixel ratio closest to the aspect ratio of the region according to the length-width ratio of the region of the advertisement space, and marks the selected preset region as a preset image region. Wherein the area aspect ratio is a ratio of the length attribute and the width attribute of the ad slot. For example, the length pixel is 1000, the width pixel is 800, the length pixel is 500 pixels, the width pixel is 300 pixels, the aspect ratio of the area is 5:3, and thus the length-width pixel ratio is 5:4 and is closest to the length-width pixel ratio, and the corresponding preset area is marked as the preset image area.
And S23, marking the image attributes meeting the preset marking strategy in the long pixels and the wide pixels of the preset image area, wherein the preset marking strategy comprises marking the image attributes with larger pixel values in the long pixels and the wide pixels of the preset image area.
This step is the same as the above embodiment, and the detailed analysis may refer to the above embodiment, which is not described herein again.
And S24, acquiring corresponding target basic attributes from a plurality of basic attributes of the advertisement space according to the marked image attributes, wherein the plurality of basic attributes comprise length attributes and width attributes of the advertisement space, the length attributes correspond to the long pixels, and the width attributes correspond to the wide pixels.
This step is the same as the above embodiment, and the detailed analysis may refer to the above embodiment, which is not described herein again.
And S25, after scaling the preset image area in equal proportion according to the attribute proportion of the marked image attribute and the target basic attribute, updating the target material according to the preset image area after scaling in equal proportion.
This step is the same as the above embodiment, and the detailed analysis may refer to the above embodiment, which is not described herein again.
And S26, putting the updated target material into the advertising space.
This step is the same as the above embodiment, and the detailed analysis may refer to the above embodiment, which is not described herein again.
In the above embodiment, a plurality of length-width pixel ratios of a plurality of preset regions of the material image are obtained, and the length-width pixel ratio closest to the region length-width ratio is selected and correspondingly marked as the preset image region, so that the preset image region more adaptive to the advertisement can be selected for scaling in an equal ratio, the core content of the material can be displayed better and the display quality of the material can be improved.
In one embodiment, as shown in fig. 5, there is provided a material delivery apparatus including:
the image obtaining module 101 is configured to obtain a preset image region of a material image in a target material.
The image marking module 102 is configured to mark an image attribute, which meets a preset marking policy, in the long pixels and the wide pixels of the preset image region, where the preset marking policy includes marking an image attribute with a larger pixel value in the long pixels and the wide pixels of the preset image region.
The attribute matching module 103 is configured to obtain a corresponding target basic attribute from a plurality of basic attributes of the advertisement space according to the marked image attribute, where the plurality of basic attributes include a length attribute and a width attribute of the advertisement space, the length attribute corresponds to the long pixel, and the width attribute corresponds to the wide pixel.
And the image scaling module 104 is configured to, after scaling the preset image region in an equal ratio according to the attribute ratio of the marked image attribute and the target basic attribute, update the target material according to the scaled preset image region.
And the material putting module 105 is used for putting the updated target material to the advertisement space.
In one embodiment, the image acquisition module 101 is further configured to:
and acquiring a plurality of length-width pixel ratios of a plurality of preset areas of the material image, wherein the length-width pixel ratios are formed by the length pixels and the width pixels of the preset areas.
And marking a preset area corresponding to the length-width pixel ratio closest to the area length-width pixel ratio in the plurality of length-width pixel ratios as a preset image area, wherein the area length-width ratio is formed according to the length attribute and the width attribute of the advertisement space.
In one embodiment, the image acquisition module 101 is further configured to:
and enabling the center of the preset area to coincide with the center of the material image.
In one embodiment, the target material comprises video material.
An image acquisition module 101, further configured to:
video material is obtained.
After the video material is framed to form a plurality of frame images, at least one frame image including a cover of the video material is extracted from the plurality of frame images and marked as a material image according to a duration attribute in the plurality of basic attributes of the advertisement space.
And acquiring a preset image area from the material image.
In one embodiment, the image tagging module 102 is further configured to:
any one of the material image attributes is marked in a long pixel and a wide pixel having equal pixel values.
In one embodiment, the image scaling module 104 is further configured to:
and respectively carrying out equal scaling on the long pixels and the wide pixels of the preset image area according to the attribute proportion until the marked image attribute is equal to the target basic attribute.
In one embodiment, the material delivery module 105 is further configured to:
a second coordinate of a center point of the ad slot is obtained.
And delivering the updated target material to the advertisement space according to the second coordinate and the central point of the preset image area after equal scaling so as to enable the central point of the preset image area after equal scaling to be superposed with the second coordinate on the advertisement space.
In one embodiment, the material delivery module 105 is further configured to:
and adding a label associated with the user behavior log to the updated target material, and putting the updated target material with the label to the advertisement space.
In one embodiment, a computer apparatus is provided, as shown in fig. 6, which includes a processor, a memory, a network interface, an input device, and a display screen connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the material delivery method. The internal memory may also have stored thereon a computer program that, when executed by the processor, causes the processor to perform a method of delivering material. Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the material delivery apparatus provided herein may be implemented in the form of a computer program that is executable on a computer device such as that shown in fig. 6. The memory of the computer device can store various program modules constituting the material delivering device. The program modules constitute computer programs that cause a processor to execute the steps of the material delivery method according to the embodiments of the present application described in the present specification.
In one embodiment, there is provided an electronic device including: the system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to execute the steps of the material throwing method. Here, the steps of the material delivery method may be steps in the material delivery method of the above-described embodiments.
In one embodiment, a computer-readable storage medium is provided, which stores computer-executable instructions for causing a computer to perform the steps of the above-described material delivery method. Here, the steps of the material delivery method may be steps in the material delivery method of the above-described embodiments.
The foregoing is a preferred embodiment of the present application, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations are also regarded as the protection scope of the present application.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.

Claims (11)

1. A method for delivering material, comprising:
acquiring a preset image area of a material image in a target material;
marking the image attribute which meets a preset marking strategy in the long pixels and the wide pixels of the preset image area, wherein the preset marking strategy comprises marking the image attribute with a larger pixel value in the long pixels and the wide pixels of the preset image area;
acquiring a corresponding target basic attribute from a plurality of basic attributes of the advertisement space according to the marked image attribute, wherein the plurality of basic attributes comprise a length attribute and a width attribute of the advertisement space, the length attribute corresponds to the long pixel, and the width attribute corresponds to the wide pixel;
according to the attribute proportion of the marked image attribute and the target basic attribute, after the preset image area is subjected to equal-ratio scaling, the target material is updated according to the preset image area subjected to equal-ratio scaling;
and delivering the updated target material to the advertisement space.
2. The material delivering method according to claim 1, wherein the obtaining of the preset image area of the material image in the target material comprises:
acquiring a plurality of length-width pixel ratios of a plurality of preset regions of the material image, wherein the length-width pixel ratios are formed by length pixels and width pixels of the preset regions;
and marking the preset region corresponding to the length-width pixel ratio which is closest to the region aspect ratio in the plurality of length-width pixel ratios as the preset image region, wherein the region aspect ratio is formed according to the length attribute and the width attribute of the advertisement space.
3. A material delivery method as defined in claim 2, wherein the center of the predetermined area coincides with the center of the material image.
4. A material delivery method as claimed in claim 1 or 2, wherein the target material comprises video material;
the acquiring of the preset image area of the material image in the target material comprises the following steps:
acquiring a video material;
after the video material is framed to form a plurality of frame images, extracting at least one frame image including a video material cover from the plurality of frame images and marking the frame image as the material image according to the duration attribute in the plurality of basic attributes of the advertisement space;
and acquiring the preset image area from the material image.
5. The material delivery method of claim 1, wherein the predetermined marking strategy further comprises:
any one of the material image attributes is marked in the long pixels and the wide pixels having equal pixel values.
6. The material delivery method of claim 1, wherein the scaling the preset image area by equal ratio comprises:
and scaling the long pixels and the wide pixels of the preset image area in an equal ratio according to the attribute proportion respectively until the marked image attribute is equal to the target basic attribute.
7. The method of claim 1, wherein the delivering the updated targeted material to the ad spot comprises:
acquiring a second coordinate of the central point of the advertisement position;
and delivering the updated target material to the advertisement space according to the second coordinate and the central point of the preset image area after equal scaling, so that the central point of the preset image area after equal scaling is superposed with the second coordinate on the advertisement space.
8. The method of delivering material as claimed in claim 1 or 7, wherein said delivering the updated target material to the ad spot comprises:
adding a label associated with a user behavior log to the updated target material, and delivering the updated target material with the label to the advertisement space.
9. A material delivery apparatus, comprising:
the image acquisition module is used for acquiring a preset image area of a material image in a target material;
the image marking module is used for marking the image attribute which meets a preset marking strategy in the long pixels and the wide pixels of the preset image area, wherein the preset marking strategy comprises marking the image attribute with a larger pixel value in the long pixels and the wide pixels of the preset image area;
an attribute matching module, configured to obtain a corresponding target basic attribute from multiple basic attributes of an advertisement space according to the marked image attribute, where the multiple basic attributes include a length attribute and a width attribute of the advertisement space, the length attribute corresponds to the long pixel, and the width attribute corresponds to the wide pixel;
the image scaling module is used for carrying out equal-ratio scaling on the preset image area according to the attribute proportion of the marked image attribute and the target basic attribute, and then updating the target material according to the preset image area after equal-ratio scaling;
and the material delivery module is used for delivering the updated target material to the advertisement space.
10. The material delivery device according to claim 9, wherein the image acquisition module is specifically configured to:
acquiring a plurality of length-width pixel ratios of a plurality of preset regions of the material image, wherein the length-width pixel ratios are formed by length pixels and width pixels of the preset regions;
and marking the preset region corresponding to the length-width pixel ratio which is closest to the region aspect ratio in the plurality of length-width pixel ratios as the preset image region, wherein the region aspect ratio is formed according to the length attribute and the width attribute of the advertisement space.
11. An electronic device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements a method of material delivery as claimed in any one of claims 1 to 8.
CN202011574133.1A 2020-12-25 2020-12-25 Material delivery method and device and electronic equipment Pending CN112598569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011574133.1A CN112598569A (en) 2020-12-25 2020-12-25 Material delivery method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011574133.1A CN112598569A (en) 2020-12-25 2020-12-25 Material delivery method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112598569A true CN112598569A (en) 2021-04-02

Family

ID=75203313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011574133.1A Pending CN112598569A (en) 2020-12-25 2020-12-25 Material delivery method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112598569A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679466A (en) * 2013-11-29 2015-06-03 腾讯科技(深圳)有限公司 Image display method and device and electronic device
CN109308155A (en) * 2018-08-21 2019-02-05 中国平安人寿保险股份有限公司 Adjust method, apparatus, computer equipment and the storage medium of the page
CN110969580A (en) * 2019-12-10 2020-04-07 北京猎豹移动科技有限公司 Image display method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679466A (en) * 2013-11-29 2015-06-03 腾讯科技(深圳)有限公司 Image display method and device and electronic device
WO2015078366A1 (en) * 2013-11-29 2015-06-04 Tencent Technology (Shenzhen) Company Limited Method and apparatus for displaying an image, and electronic device
CN109308155A (en) * 2018-08-21 2019-02-05 中国平安人寿保险股份有限公司 Adjust method, apparatus, computer equipment and the storage medium of the page
CN110969580A (en) * 2019-12-10 2020-04-07 北京猎豹移动科技有限公司 Image display method and device

Similar Documents

Publication Publication Date Title
US20180137534A1 (en) Optimization of online advertising assets
CN112784184B (en) ADX-based advertisement landing page dynamic generation method, computer equipment and storage medium
CN109255767B (en) Image processing method and device
CN111367518B (en) Page layout method, page layout device, computing equipment and computer storage medium
CN110377218B (en) Data processing method, data processing device, computer equipment and storage medium
US20220148299A1 (en) Image extension neural networks
CN111340231A (en) SHAP feature attribution method, device, equipment and readable storage medium
CN114612279A (en) Watermark adding method and device
CN106157347B (en) Resource exchange data processing method, device and system
CN112598453B (en) Advertisement putting method and device and electronic equipment
AU2017206290B2 (en) Correspondence labels for improved patch match
CN113837928A (en) Object color adjusting method and device, electronic equipment and storage medium
CN109491726A (en) It spreads its tail rendering method, electronic equipment and the computer storage medium of file
US8510809B2 (en) Network authentication system and method
CN111382223A (en) Electronic map display method, terminal and electronic equipment
CN112598569A (en) Material delivery method and device and electronic equipment
CN110765296A (en) Image searching method, terminal device and storage medium
CN113763009A (en) Picture processing method, picture skipping method, device, equipment and medium
CN114358842B (en) Advertisement delivery regulation and control method, device, equipment and medium
CN112633930A (en) Page resource delivery method and device and electronic equipment
US20170316465A1 (en) Ad Context Visualization and Mock-Up Tool
CN116127219A (en) Method and device for displaying pages in applet and computer equipment
CN113988009A (en) Information delivery area generation method, information delivery method, electronic device and storage medium
CN114565709A (en) Data storage management method, object rendering method and device
CN111130994A (en) Data sharing method and device, electronic equipment and storage medium thereof

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: 20210402

RJ01 Rejection of invention patent application after publication