CN111079399B - Image-text data processing method, image-text data processing device, computer equipment and storage medium - Google Patents
Image-text data processing method, image-text data processing device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN111079399B CN111079399B CN201911105755.7A CN201911105755A CN111079399B CN 111079399 B CN111079399 B CN 111079399B CN 201911105755 A CN201911105755 A CN 201911105755A CN 111079399 B CN111079399 B CN 111079399B
- Authority
- CN
- China
- Prior art keywords
- image
- text
- product
- picture
- configuration information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/53—Querying
- G06F16/535—Filtering based on additional data, e.g. user or group profiles
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application relates to a method, a device, computer equipment and a storage medium for processing image-text data. The method comprises the following steps: when a product issuing instruction is acquired, acquiring image-text elements of the product issued to a preset channel from an element library; acquiring graphic configuration information of a preset channel; based on the graphic configuration information, processing the graphic elements to generate a product graphic page corresponding to the preset channel; pushing the image-text page of the product to a preset channel. The scheme of the application can improve the efficiency of image-text data processing.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for processing image and text data, a computer device, and a storage medium.
Background
With the rapid development of information technology and network technology, the product types in the e-commerce industry are more and more, and enterprises are in order to improve the product conversion rate, so that a large amount of labor cost is input to output high-quality product introduction details. However, as the sales of products by enterprises increases, a large amount of methods for manually outputting texts and collecting pictures are input, the process of manually synthesizing the picture and text details is long, and the problem of low efficiency exists.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, apparatus, computer device, and storage medium for processing teletext data, which can improve efficiency.
A method of processing teletext data, the method comprising:
when a product issuing instruction is acquired, acquiring image-text elements of the product issued to a preset channel from an element library;
acquiring graphic configuration information of the preset channel;
based on the image-text configuration information, processing the image-text elements to generate a product image-text page corresponding to the preset channel;
pushing the image-text page of the product to the preset channel.
In one embodiment, the method further comprises: calling a system interface, and acquiring image-text elements according to product information; establishing an association relation between the product and the image-text element; and storing the association relation and the graphic elements into an element library.
In one embodiment, the graphic element comprises a picture; the element library comprises a picture library; the storing the association relation and the graphic elements in an element library comprises the following steps: calculating the unique code of each picture according to a matrix algorithm; filtering repeated pictures based on a picture weight judging and identifying technology; identifying each picture after the duplication removal, and eliminating pictures containing preset objects in the identification result; performing de-identification treatment on the picture containing the identification in the identification result; and storing the processed pictures and the unique codes corresponding to the pictures into a picture library.
In one embodiment, the graphic element comprises a document; the element library comprises a document library; the processing the image-text elements based on the image-text configuration information to generate a product image-text page corresponding to the preset channel comprises the following steps: acquiring main picture configuration information of the preset channel from the picture-text configuration information, and processing the picture-text elements according to the main picture configuration information to generate a product main picture of the preset channel; acquiring page configuration information of the preset channel from the image-text configuration information, and processing the image-text elements according to the page configuration information to generate a product detail page of the preset channel; and obtaining a product image-text page corresponding to the preset channel according to the product main graph and the product detail page.
In one embodiment, obtaining the main graph configuration information of the predetermined channel from the graph-text configuration information, processing the graph-text element according to the main graph configuration information, and generating a product main graph of the predetermined channel includes: acquiring main map configuration information of the preset channel from the image-text configuration information; and acquiring a specific identification picture, a product picture and a product name in the image-text element, and processing the specific identification picture, the product picture and the product name according to the main picture configuration information to obtain a product main picture.
In one embodiment, the pushing the product teletext page to the predetermined channel includes: uploading the product image-text page to a server to generate a product image-text picture; processing the image-text pictures of the products according to the release requirements of the preset channels; when an instruction triggering the pushing interface is obtained, pushing the processed image-text pictures of the product to the preset channel for display.
In one embodiment, the processing the product graphic and text picture according to the release requirement of the predetermined channel includes: the aspect ratio of the image-text pictures of the product and the aspect ratio of the release requirements of the preset channels are obtained; when the aspect ratio of the image-text pictures of the product is larger than that of the release requirements of the preset channels, width cutting is carried out, and the height is kept unchanged; and when the aspect ratio of the image-text picture of the product is smaller than or equal to the aspect ratio of the release requirement of the preset channel, performing height cutting, and keeping the width unchanged.
A teletext data processing arrangement, the arrangement comprising:
the image-text element acquisition module is used for acquiring image-text elements of the product released to the preset channel from the element library when acquiring the product release instruction;
the configuration information acquisition module is used for acquiring graphic configuration information of the preset channel;
the image-text page generation module is used for processing the image-text elements based on the image-text configuration information to generate a product image-text page corresponding to the preset channel;
and the image-text page pushing module is used for pushing the image-text page of the product to the preset channel.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of:
when a product issuing instruction is acquired, acquiring image-text elements of the product issued to a preset channel from an element library;
acquiring graphic configuration information of the preset channel;
based on the image-text configuration information, processing the image-text elements to generate a product image-text page corresponding to the preset channel;
pushing the image-text page of the product to the preset channel.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
when a product issuing instruction is acquired, acquiring image-text elements of the product issued to a preset channel from an element library;
acquiring graphic configuration information of the preset channel;
based on the image-text configuration information, processing the image-text elements to generate a product image-text page corresponding to the preset channel;
pushing the image-text page of the product to the preset channel.
According to the image-text data processing method, the image-text data processing device, the computer equipment and the storage medium, when the product issuing instruction is acquired, the image-text elements of the product issued to the preset channel are acquired from the element library, the image-text configuration information of the preset channel is acquired, the image-text elements are processed based on the image-text configuration information, the image-text pages of the product corresponding to the preset channel are generated, and the image-text pages of the product are pushed to the preset channel. By adopting the method, the labor cost can be reduced, the time resources for manually and actively searching the image and designing the image-text template can be saved, and the image-text data processing efficiency can be improved.
Drawings
FIG. 1 is an application scenario diagram of a method of image-text data processing in one embodiment;
FIG. 2 is a flow chart of a method of processing teletext data according to an embodiment;
FIG. 3 is a flowchart illustrating a step of storing association relationships and elements of a text in an element library according to an embodiment;
FIG. 4 is a flowchart illustrating a step of generating a product image page corresponding to a predetermined channel in one embodiment;
FIG. 5 is a block diagram of an exemplary apparatus for processing teletext data;
FIG. 6 is a block diagram of a further embodiment of a teletext data processing arrangement;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The image-text data processing method provided by the application can be applied to an application environment shown in figure 1. Specifically, when the terminal 102 obtains a product issue instruction, the terminal 102 obtains the image-text element of the product issued to the predetermined channel 106 from the element library 104, the terminal 102 obtains the image-text configuration information of the predetermined channel 106, processes the image-text element based on the image-text configuration information, generates a product image-text page corresponding to the predetermined channel 106, and the terminal 102 pushes the product image-text page to the predetermined channel 106. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, the element library 104 may be a local database, a third party database, and the predetermined channel 106 may be one or more third party platforms, such as an OTA (Online Travel Agency ) platform, a pig, etc.
In one embodiment, as shown in fig. 2, a method for processing image-text data is provided, and the method is applied to the terminal in fig. 1 for illustration, and includes the following steps:
step S210, when a product issuing instruction is obtained, image-text elements of the product issued to the preset channel are obtained from an element library.
The product refers to an article sold in various channels, and can be an actual article, such as clothes, electronic products, daily chemical products and the like. May be virtual items such as travel products, hotels, scenic spots, etc.
The element library is used for storing elements required for generating the image-text page of the product, and the elements comprise picture elements or text elements. Correspondingly, the element library can comprise a picture library, a document library and the like.
The predetermined channel refers to a platform where a product operator provides sales of the product, and the product operator can provide sales service of the product on a plurality of platforms. Taking tourism as an example, the predetermined channel of the product may be one or more of a third party sales platform or a sales channel such as a pig, a carrier, a ox, an OTA (Online Travel Agency ) platform, etc.
Specifically, the product operator issues a product issue instruction by operating the terminal. The product issuing instruction refers to issuing information of a product to be sold to each predetermined sales channel for selling. Specifically, the application provides an operation interface, and after the operation interface inputs product information, the product operator inputs a product issue instruction. Taking a travel product as an example, a product operator inputs a hotel name, a hotel address and a room type in an operation interface, and inputs a product issuing instruction. When a terminal obtains a product issuing instruction triggered by a user, obtaining picture resources related to the product, such as logo (logo or trademark) identification pictures and product pictures (pictures corresponding to house types), from a picture library in an element library, and obtaining document resources, such as product detail content and the like, from a document library in the element library.
Step S220, image-text configuration information of a preset channel is obtained.
Different sales channels have different requirements on the image-text pages of the products, so the image-text configuration information comprises image-text setting rules of each preset channel, namely, different image-text template parameters of each preset channel and display contents, such as picture size, color, template style, image-text detail page display contents, whether to add marks or not, and the like.
Specifically, the terminal obtains different image-text configuration information of each preset channel through a network, preferably, when a product release instruction is obtained, the image-text configuration information of each preset channel can be obtained before image-text elements of a product released to the preset channel are obtained from an element library, namely, the different image-text configuration information of each preset channel is obtained before the product is released.
Step S230, based on the image-text configuration information, image-text elements are processed, and a product image-text page corresponding to the preset channel is generated.
The product image-text page is a page for displaying related information of a product, and a consumer can know the product information through the product image-text page, such as the picture through the product image-text page, the appearance of the product, the characters through the product image-text page, the function of the product and the like. In one embodiment, the product teletext page comprises a product main image and a product detail page. Specifically, the terminal respectively carries out different treatments on the picture resources and the document resources in the obtained picture and text elements according to the obtained picture and text configuration information of the preset channel, and generates a picture and text page of the product by using a Razor Engine plug-in. The processing of the image-text elements may include cutting, splicing, etc. the pictures, and filling the obtained text data into the product detail pages, etc.
In some embodiments, when a terminal acquires a template switching instruction and an instruction for changing a picture or a document for an existing product image-text page, a method for processing background image-text data is called, and the existing page template is filled with data through a RAzor Engine plug-in, so that the switched product image-text page is generated.
Step S240, pushing the image-text page of the product to a preset channel.
Specifically, the terminal pushes the generated image-text page of the product to a preset channel for displaying and selling.
In the image-text data processing method, when a product issuing instruction is obtained, image-text elements of a product issued to a preset channel are obtained from an element library, image-text configuration information of the preset channel is obtained, the image-text elements are processed based on the image-text configuration information, a product image-text page corresponding to the preset channel is generated, and the product image-text page is pushed to the preset channel. By adopting the method, the labor cost can be reduced, the time resources for manually and actively searching the image and designing the image-text template can be saved, and the image-text data processing efficiency can be improved.
In one embodiment, the method for processing the image-text data further comprises a step of pre-establishing an element library, and the step specifically comprises: calling a system interface, and acquiring image-text elements according to product information; establishing an association relation between the product and the image-text element; and storing the association relation and the graph text element into an element library.
Specifically, the data management system of the operator is provided with a system interface, and by calling the system interface, the application program acquires the image-text elements related to the product from the data management system of the operator, establishes association with the product, and stores the association with the product in the element library, thereby obtaining the image-text elements related to the product. Taking a travel product as an example, an application calls a system interface, and is used for acquiring picture resources and document resources of the product of the cooperated enterprise according to product information by directly connecting with enterprises such as hotels and scenic spots with business cooperation. The system interface may perform decoupling between systems through a message queue (picture MQ), i.e., a tool for asynchronously processing data.
In the embodiment, the image-text elements can be directly obtained from the system interface through operations such as system decoupling and the like, and the association between the product and the image-text elements is established, so that subsequent operation processing such as query and search on the image-text elements is facilitated.
In another embodiment, the graphic elements of the product can also be stored in the element library by means of manual association. Specifically, a product operator selects pictures to be uploaded from a local database, manually sets association relations between the pictures and products, and stores the set association relations and graphic elements into an element library.
In one embodiment, the teletext element comprises a picture; the element library comprises a picture library; storing the association relationship and the graph text element into an element library, as shown in fig. 3, comprising the following steps:
step S310, calculating the unique code of each picture according to a matrix algorithm.
The matrix algorithm is used for calculating a unique code of each picture, and the unique code can be a string of characters consisting of numbers and English letters as a unique identification of the picture. Specifically, after the terminal obtains the product pictures, binary stream data of each picture is obtained, and a matrix algorithm, such as an md5 algorithm, is adopted to calculate a unique code corresponding to each binary stream data.
Step S320, filtering the repeated pictures based on the picture duplication judgment and identification technology.
The picture duplicate judgment and identification technology is used for judging whether unique codes of two pictures are equal or not. Specifically, the picture with the same unique code is identified by a picture duplication judgment and identification technology, the identification result is equal, the repeated picture is represented to be repeated, and the repeated picture is directly filtered without other processing.
Step S330, identifying each picture after the duplicate removal, and eliminating the picture containing the preset object in the identification result.
The preset object is a specific object which cannot appear in the product picture, and different products are provided with different preset objects. Taking a tenant product as an example, a face cannot appear in the tenant product, wherein the face is a preset object, specifically, when each picture after de-duplication is identified, for example, when the picture containing the face is identified, the picture is removed. The preset objects can include faces of people, faces of other animals, forbidden word pictures and the like.
Step S340, de-labeling the picture with the label in the identification result.
The special mark marked as containing a specific mark or symbol can comprise a watermark, logo and the like, for example, a watermarking tool is used for carrying out watermarking processing on the picture containing the watermark in the identification result, so as to obtain the picture without the watermark.
Step S350, the processed pictures and the unique codes corresponding to the pictures are stored in a picture library.
Specifically, after the pictures are processed, the pictures meeting the conditions and the unique codes corresponding to the pictures are uniformly uploaded to a picture library for storage. The picture library can be a local storage table or cloud storage.
In the embodiment, a series of processing of the pictures is performed before the pictures are put in storage, so that the quality of the picture resources can be guaranteed, the waste of human resources is reduced, and the time cost is saved.
In some embodiments, the image management platform is matched at the same time and is used for inquiring, uploading, deleting and other operations of the image.
In one embodiment, the teletext elements comprise a document; the element library comprises a document library; based on the graphic configuration information, the graphic elements are processed to generate a product graphic page corresponding to the preset channel, as shown in fig. 4, and the method comprises the following steps:
step S410, obtaining main picture configuration information of a preset channel from the picture and text configuration information, and processing picture and text elements according to the main picture configuration information to generate a product main picture of the preset channel.
In one embodiment, the steps include: acquiring main graph configuration information of a preset channel from the graph-text configuration information; and acquiring a specific identification picture, a product picture and a product name in the image-text element, and processing the specific identification picture, the product picture and the product name according to the master drawing configuration information to obtain a product master drawing.
The specific identification picture is a picture containing a specific identification which is not easy to change, such as logo identification picture of an enterprise. Specifically, according to the main picture configuration information of a preset channel in the picture-text configuration information, a logo identification picture, a picture corresponding to a product, a base picture of a main picture title bar of the product and a product name are cut out to a required size according to the main picture configuration information, so that a main picture of the product is obtained. The product name can be obtained by reading a document library of the product. The number of the product main pictures is not less than two, and the product main pictures can be played on a preset channel in the form of a carousel picture.
Step S420, obtaining page configuration information of a preset channel from the image-text configuration information, and processing image-text elements according to the page configuration information to generate a product detail page of the preset channel.
The page configuration information may include basic information and product information, the basic information may include predetermined information, traffic guidance information, limited activity information, hotel popularization map, etc., and the product information may include specific product detail introduction information such as price, etc.
And step S430, obtaining a product image-text page corresponding to the preset channel according to the product main diagram and the product detail page.
The product image-text page comprises a product main image and a product detail page.
In one embodiment, pushing a product teletext page to a predetermined channel comprises: uploading the image-text page of the product to a server to generate an image-text picture of the product; processing the image-text pictures of the products according to the release requirements of the preset channels; when an instruction triggering the pushing interface is obtained, pushing the processed image-text pictures of the product to a preset channel for display.
The product image-text picture is a picture containing a product image-text page. Specifically, after the terminal generates a product image-text page, the product image-text page (Html) of the synthesized image-text details is uploaded to a server, for example, a seven-cow (file server), a JSV8Engine plug-in is utilized to generate a product image-text picture (the JSV8Engine is a chrome kernel plug-in and is used for explaining the Html, simulating a browser function and intercepting the synthesized image-text content by utilizing an interface intercepting function), the product image-text picture is intercepted into the image-text detail size specified by a preset channel through a system image component according to the release requirement of the preset channel, the processed picture is returned to the system in the form of file flow after the component is used, and the picture processed by the component is directly displayed in the preset channel when the instruction for triggering the pushing interface is acquired.
In the embodiment, the image-text page of the product is converted into the image-text picture of the product, and the image-text picture is pushed to a preset channel for display in the form of the picture, so that the user can conveniently store and browse the image-text picture at any time and any place.
In one embodiment, processing a product graphic and text picture according to a predetermined channel release requirement includes: the aspect ratio of the image-text picture of the product and the aspect ratio of the release requirement of a preset channel are obtained; when the aspect ratio of the image-text pictures of the product is larger than that of the release requirements of the preset channels, the width is cut, and the height is kept unchanged; when the aspect ratio of the image-text picture of the product is smaller than or equal to the aspect ratio of the release requirement of the preset channel, the height cutting is carried out, and the width is kept unchanged.
Specifically, the aspect ratio of the product graphic, for example, a=wide/high, is obtained, and the aspect ratio of the predetermined channel distribution requirement, for example, b=wide/high, is obtained. When A is larger than B, namely the aspect ratio of the picture to be cut is larger than the proportion to be cut, width cutting is carried out, the height of the original picture is kept, and further when the picture to be cut is larger than half of the proportion to be cut, namely 0.5, width centering cutting is carried out, and the height of the original picture is kept. When a < = B, i.e. the aspect ratio of the picture to be cut is smaller than or equal to the ratio to be cut, the height cutting is performed, the width of the original picture is kept, and further, when the picture to be cut is larger than half of the ratio to be cut, i.e. 0.5, the height centering cutting is performed, and the width of the original picture is kept.
In some embodiments, processing the cropped product graphic image after the cropping is completed further includes scaling the cropped product graphic image to a width-to-height ratio, e.g., scale width = a width/B width, scale height = a height/B height.
In some embodiments, scaling is performed on a specific identifier, such as a logo image, and scaling values, such as scale=b width/logo width, are calculated by comparing the logo original image with the scale to be cut.
In some embodiments, the title bar font size is calculated and centered (font maximum 80), the title bar text character length F (f=traverse the title bar text characters, if a single string ascii code value is greater than 255 for a length of time to be used as two characters), the text size (fontsize) =bwidth/((F/2) +1).
In the embodiment, scaling and cutting are performed under the condition that original image definition and a product main body are not changed, so that the force of accurate operation can be enhanced, and the product conversion efficiency is improved.
It should be understood that, although the steps in the flowcharts of fig. 2-4 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or steps.
In one embodiment, as shown in fig. 5, there is provided a teletext data processing arrangement 500 comprising: the device comprises a graphic element acquisition module 501, a configuration information acquisition module 502, a graphic page generation module 503 and a graphic page pushing module 504, wherein:
the graphic element acquisition module 501 is configured to acquire, when acquiring a product issue instruction, a graphic element of a product issued to a predetermined channel from an element library.
The configuration information obtaining module 502 is configured to obtain graphic configuration information of a predetermined channel.
The image-text page generating module 503 is configured to process the image-text elements based on the image-text configuration information, and generate a product image-text page corresponding to the predetermined channel.
The image-text page pushing module 504 is configured to push the image-text page of the product to a predetermined channel.
In one embodiment, as shown in fig. 6, the graphic data processing apparatus 500 further includes an element warehouse entry device 5012 for calling a system interface to obtain graphic elements according to product information; establishing an association relation between the product and the image-text element; and storing the association relation and the graph text element into an element library.
In one embodiment, the teletext element comprises a picture; the element library comprises a picture library; as shown in fig. 6, the image-text data processing apparatus 500 further includes a picture processing apparatus 5014 for storing the association relationship and the image-text elements in an element library, including: calculating the unique code of each picture according to a matrix algorithm; filtering repeated pictures based on a picture weight judging and identifying technology; identifying each picture after the duplication removal, and eliminating pictures containing preset objects in the identification result; performing de-identification treatment on the picture containing the identification in the identification result; and storing the processed pictures and the unique codes corresponding to the pictures into a picture library.
In one embodiment, the teletext elements comprise a document; the element library comprises a document library; the image-text page generating module 503 is configured to obtain main image configuration information of a predetermined channel from the image-text configuration information, process image-text elements according to the main image configuration information, and generate a product main image of the predetermined channel; acquiring page configuration information of a preset channel from the image-text configuration information, and processing image-text elements according to the page configuration information to generate a product detail page of the preset channel; and obtaining a product image-text page corresponding to the preset channel according to the product main graph and the product detail page.
In one embodiment, the graphics context page generating module 503 is configured to obtain main map configuration information of a predetermined channel from the graphics context configuration information, process graphics context elements according to the main map configuration information, and generate a product main map of the predetermined channel, including: acquiring main graph configuration information of a preset channel from the graph-text configuration information; and acquiring a specific identification picture, a product picture and a product name in the image-text element, and processing the specific identification picture, the product picture and the product name according to the master drawing configuration information to obtain a product master drawing.
In one embodiment, the image-text page pushing module 504 is configured to upload the image-text page of the product to the server to generate an image-text picture of the product; processing the image-text pictures of the products according to the release requirements of the preset channels; when an instruction triggering the pushing interface is obtained, pushing the processed image-text pictures of the product to a preset channel for display.
In one embodiment, the image-text page pushing module 504 is configured to process the image-text picture of the product according to the release requirement of the predetermined channel, including: the aspect ratio of the image-text picture of the product and the aspect ratio of the release requirement of a preset channel are obtained; when the aspect ratio of the image-text pictures of the product is larger than that of the release requirements of the preset channels, the width is cut, and the height is kept unchanged; when the aspect ratio of the image-text picture of the product is smaller than or equal to the aspect ratio of the release requirement of the preset channel, the height cutting is carried out, and the width is kept unchanged.
The specific definition of the teletext data processing arrangement may be referred to above as definition of the teletext data processing method and will not be repeated here. The above-mentioned various modules in the graphic data processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of processing teletext data. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of when executing the computer program:
when a product issuing instruction is acquired, acquiring image-text elements of the product issued to a preset channel from an element library;
acquiring graphic configuration information of a preset channel;
based on the graphic configuration information, processing the graphic elements to generate a product graphic page corresponding to the preset channel;
pushing the image-text page of the product to a preset channel.
In one embodiment, the processor when executing the computer program further performs the steps of:
in one embodiment, the processor when executing the computer program further performs the steps of: calling a system interface, and acquiring image-text elements according to product information; establishing an association relation between the product and the image-text element; and storing the association relation and the graph text element into an element library.
In one embodiment, the processor when executing the computer program further performs the steps of: calculating the unique code of each picture according to a matrix algorithm; filtering repeated pictures based on a picture weight judging and identifying technology; identifying each picture after the duplication removal, and eliminating pictures containing preset objects in the identification result; performing de-identification treatment on the picture containing the identification in the identification result; and storing the processed pictures and the unique codes corresponding to the pictures into a picture library.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring main picture configuration information of a preset channel from the picture-text configuration information, and processing picture-text elements according to the main picture configuration information to generate a product main picture of the preset channel; acquiring page configuration information of a preset channel from the image-text configuration information, and processing image-text elements according to the page configuration information to generate a product detail page of the preset channel; and obtaining a product image-text page corresponding to the preset channel according to the product main graph and the product detail page.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring main graph configuration information of a preset channel from the graph-text configuration information; and acquiring a specific identification picture, a product picture and a product name in the image-text element, and processing the specific identification picture, the product picture and the product name according to the master drawing configuration information to obtain a product master drawing.
In one embodiment, the processor when executing the computer program further performs the steps of: uploading the image-text page of the product to a server to generate an image-text picture of the product; processing the image-text pictures of the products according to the release requirements of the preset channels; when an instruction triggering the pushing interface is obtained, pushing the processed image-text pictures of the product to a preset channel for display.
In one embodiment, the processor when executing the computer program further performs the steps of: the aspect ratio of the image-text picture of the product and the aspect ratio of the release requirement of a preset channel are obtained; when the aspect ratio of the image-text pictures of the product is larger than that of the release requirements of the preset channels, the width is cut, and the height is kept unchanged; when the aspect ratio of the image-text picture of the product is smaller than or equal to the aspect ratio of the release requirement of the preset channel, the height cutting is carried out, and the width is kept unchanged.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
when a product issuing instruction is acquired, acquiring image-text elements of the product issued to a preset channel from an element library;
acquiring graphic configuration information of a preset channel;
based on the graphic configuration information, processing the graphic elements to generate a product graphic page corresponding to the preset channel;
pushing the image-text page of the product to a preset channel.
In one embodiment, the computer program when executed by the processor further performs the steps of: calling a system interface, and acquiring image-text elements according to product information; establishing an association relation between the product and the image-text element; and storing the association relation and the graph text element into an element library.
In one embodiment, the computer program when executed by the processor further performs the steps of: calculating the unique code of each picture according to a matrix algorithm; filtering repeated pictures based on a picture weight judging and identifying technology; identifying each picture after the duplication removal, and eliminating pictures containing preset objects in the identification result; performing de-identification treatment on the picture containing the identification in the identification result; and storing the processed pictures and the unique codes corresponding to the pictures into a picture library.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring main picture configuration information of a preset channel from the picture-text configuration information, and processing picture-text elements according to the main picture configuration information to generate a product main picture of the preset channel; acquiring page configuration information of a preset channel from the image-text configuration information, and processing image-text elements according to the page configuration information to generate a product detail page of the preset channel; and obtaining a product image-text page corresponding to the preset channel according to the product main graph and the product detail page.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring main graph configuration information of a preset channel from the graph-text configuration information; and acquiring a specific identification picture, a product picture and a product name in the image-text element, and processing the specific identification picture, the product picture and the product name according to the master drawing configuration information to obtain a product master drawing.
In one embodiment, the computer program when executed by the processor further performs the steps of: uploading the image-text page of the product to a server to generate an image-text picture of the product; processing the image-text pictures of the products according to the release requirements of the preset channels; when an instruction triggering the pushing interface is obtained, pushing the processed image-text pictures of the product to a preset channel for display.
In one embodiment, the computer program when executed by the processor further performs the steps of: the aspect ratio of the image-text picture of the product and the aspect ratio of the release requirement of a preset channel are obtained; when the aspect ratio of the image-text pictures of the product is larger than that of the release requirements of the preset channels, the width is cut, and the height is kept unchanged; when the aspect ratio of the image-text picture of the product is smaller than or equal to the aspect ratio of the release requirement of the preset channel, the height cutting is carried out, and the width is kept unchanged.
Those skilled in the art will appreciate that implementing all or part of the above-described methods may be accomplished by way of a computer program, which may be stored on a non-transitory computer readable storage medium and which, when executed, may comprise the steps of the above-described embodiments of the methods. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples represent only a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.
Claims (6)
1. A method of processing teletext data, the method comprising:
calling a system interface, and acquiring image-text elements according to product information;
establishing an association relation between a product and the image-text element;
storing the association relation and the graphic elements into an element library;
wherein the image-text element comprises a picture; the element library comprises a picture library; the storing the association relation and the graphic elements in an element library comprises the following steps:
calculating the unique code of each picture according to a matrix algorithm;
filtering repeated pictures based on a picture weight judging and identifying technology;
identifying each picture after the duplication removal, and eliminating pictures containing preset objects in the identification result;
performing de-identification treatment on the picture containing the identification in the identification result;
storing the processed pictures and the unique codes corresponding to the pictures into a picture library;
when a product issuing instruction is acquired, acquiring graphic elements of the product issued to a preset channel from the element library;
acquiring graphic configuration information of the preset channel;
based on the image-text configuration information, processing the image-text elements to generate a product image-text page corresponding to the preset channel;
pushing the image-text page of the product to the preset channel;
wherein the graphic elements comprise a document; the element library comprises a document library; the processing the image-text elements based on the image-text configuration information to generate a product image-text page corresponding to the preset channel comprises the following steps:
acquiring main picture configuration information of the preset channel from the picture-text configuration information, and processing the picture-text elements according to the main picture configuration information to generate a product main picture of the preset channel;
acquiring page configuration information of the preset channel from the image-text configuration information, and processing the image-text elements according to the page configuration information to generate a product detail page of the preset channel;
obtaining a product image-text page corresponding to the preset channel according to the product main graph and the product detail page;
the method comprises the steps of obtaining main graph configuration information of the preset channel from the image-text configuration information, processing the image-text elements according to the main graph configuration information, and generating a product main graph of the preset channel, wherein the main graph configuration information comprises the following steps:
acquiring main map configuration information of the preset channel from the image-text configuration information;
and acquiring a specific identification picture, a product picture and a product name in the image-text element, and processing the specific identification picture, the product picture and the product name according to the main picture configuration information to obtain a product main picture.
2. The method of claim 1, wherein pushing the product teletext page to the predetermined channel comprises:
uploading the product image-text page to a server to generate a product image-text picture;
processing the image-text pictures of the products according to the release requirements of the preset channels;
when an instruction triggering the pushing interface is obtained, pushing the processed image-text pictures of the product to the preset channel for display.
3. The method according to claim 2, wherein said processing said product graphic and text picture according to a predetermined channel distribution requirement comprises:
the aspect ratio of the image-text pictures of the product and the aspect ratio of the release requirements of the preset channels are obtained;
when the aspect ratio of the image-text pictures of the product is larger than that of the release requirements of the preset channels, width cutting is carried out, and the height is kept unchanged;
and when the aspect ratio of the image-text picture of the product is smaller than or equal to the aspect ratio of the release requirement of the preset channel, performing height cutting, and keeping the width unchanged.
4. A teletext data processing arrangement, the arrangement comprising:
the element warehousing device is used for calling a system interface and acquiring image-text elements according to the product information; establishing an association relation between a product and the image-text element; storing the association relation and the graphic elements into an element library;
the picture processing device is used for calculating the unique code of each picture according to a matrix algorithm; filtering repeated pictures based on a picture weight judging and identifying technology; identifying each picture after the duplication removal, and eliminating pictures containing preset objects in the identification result; performing de-identification treatment on the picture containing the identification in the identification result; storing the processed pictures and the unique codes corresponding to the pictures into a picture library; wherein the image-text element comprises a picture; the element library comprises a picture library;
the image-text element acquisition module is used for acquiring image-text elements of the product released to the preset channel from the element library when acquiring the product release instruction;
the configuration information acquisition module is used for acquiring graphic configuration information of the preset channel;
the image-text page generation module is used for processing the image-text elements based on the image-text configuration information to generate a product image-text page corresponding to the preset channel;
the image-text page pushing module is used for pushing the image-text page of the product to the preset channel;
wherein the graphic elements comprise a document; the element library comprises a document library; the image-text page generation module is used for:
acquiring main picture configuration information of the preset channel from the picture-text configuration information, and processing the picture-text elements according to the main picture configuration information to generate a product main picture of the preset channel;
acquiring page configuration information of the preset channel from the image-text configuration information, and processing the image-text elements according to the page configuration information to generate a product detail page of the preset channel;
obtaining a product image-text page corresponding to the preset channel according to the product main graph and the product detail page;
the image-text page generation module is used for:
acquiring main map configuration information of the preset channel from the image-text configuration information;
and acquiring a specific identification picture, a product picture and a product name in the image-text element, and processing the specific identification picture, the product picture and the product name according to the main picture configuration information to obtain a product main picture.
5. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 3 when the computer program is executed by the processor.
6. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 3.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911105755.7A CN111079399B (en) | 2019-11-13 | 2019-11-13 | Image-text data processing method, image-text data processing device, computer equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911105755.7A CN111079399B (en) | 2019-11-13 | 2019-11-13 | Image-text data processing method, image-text data processing device, computer equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111079399A CN111079399A (en) | 2020-04-28 |
| CN111079399B true CN111079399B (en) | 2024-04-05 |
Family
ID=70310858
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911105755.7A Active CN111079399B (en) | 2019-11-13 | 2019-11-13 | Image-text data processing method, image-text data processing device, computer equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111079399B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112257000A (en) * | 2020-10-28 | 2021-01-22 | 浙江大搜车软件技术有限公司 | Picture generation method and device, computer equipment and storage medium |
| CN113886747A (en) * | 2021-09-30 | 2022-01-04 | 广州新丝路信息科技有限公司 | Cross-channel applet page copying method and device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6931591B1 (en) * | 1999-10-15 | 2005-08-16 | Saepio Technologies, Inc. | Publishing layout wizard |
| CN104346697A (en) * | 2014-10-31 | 2015-02-11 | 亚信科技(南京)有限公司 | Method and system for issuing product in grading way |
| CN105515955A (en) * | 2015-12-25 | 2016-04-20 | 北京奇虎科技有限公司 | Chat information distribution method and device |
| CN109597643A (en) * | 2018-11-27 | 2019-04-09 | 平安科技(深圳)有限公司 | Using gray scale dissemination method, device, electronic equipment and storage medium |
| CN109858273A (en) * | 2018-11-26 | 2019-06-07 | 平安科技(深圳)有限公司 | Obtaining product information method, apparatus, computer equipment and storage medium |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130036113A1 (en) * | 2010-04-28 | 2013-02-07 | Niranjan Damera-Venkata | System and Method for Automatically Providing a Graphical Layout Based on an Example Graphic Layout |
| US20140331124A1 (en) * | 2013-05-02 | 2014-11-06 | Locu, Inc. | Method for maintaining common data across multiple platforms |
| CN107025218B (en) * | 2017-04-07 | 2021-03-02 | 腾讯科技(深圳)有限公司 | Text duplicate removal method and device |
-
2019
- 2019-11-13 CN CN201911105755.7A patent/CN111079399B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6931591B1 (en) * | 1999-10-15 | 2005-08-16 | Saepio Technologies, Inc. | Publishing layout wizard |
| CN104346697A (en) * | 2014-10-31 | 2015-02-11 | 亚信科技(南京)有限公司 | Method and system for issuing product in grading way |
| CN105515955A (en) * | 2015-12-25 | 2016-04-20 | 北京奇虎科技有限公司 | Chat information distribution method and device |
| CN109858273A (en) * | 2018-11-26 | 2019-06-07 | 平安科技(深圳)有限公司 | Obtaining product information method, apparatus, computer equipment and storage medium |
| CN109597643A (en) * | 2018-11-27 | 2019-04-09 | 平安科技(深圳)有限公司 | Using gray scale dissemination method, device, electronic equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111079399A (en) | 2020-04-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107506343B (en) | A kind of processing method and processing device of information editing | |
| US8892990B2 (en) | Automatic creation of a table and query tools | |
| CN108108342B (en) | Structured text generation method, search method and device | |
| CN107832469A (en) | A kind of generation method and device of enterprise logo images | |
| US11934774B2 (en) | Systems and methods for generating social assets from electronic publications | |
| CN111159594A (en) | Information processing method, information processing device and terminal equipment | |
| CN109033049B (en) | PPT document generation method and device, storage medium and terminal | |
| CN108536715B (en) | Preview page generation method, device, equipment and storage medium | |
| CN110910475A (en) | Picture editing method and device, computer equipment and storage medium | |
| CN110826002A (en) | Information sharing method and device, terminal and storage medium | |
| CN111079399B (en) | Image-text data processing method, image-text data processing device, computer equipment and storage medium | |
| CN109241507A (en) | A kind of chart generation method and device, a kind of calculating equipment and storage medium | |
| CN106776994B (en) | Application method and system of engineering symbols in engineering report forms and web pages | |
| US11941350B2 (en) | Systems and methods for conversion of documents to reusable content types | |
| CN114565915B (en) | Sample text image acquisition method, text recognition model training method and device | |
| CN110134920A (en) | Draw the compatible display methods of text, device, terminal and computer readable storage medium | |
| CN119066037B (en) | Document segmentation processing method, device, computer equipment and readable storage medium | |
| CN114201258A (en) | Copy and paste method, device, computer equipment and storage medium | |
| WO2018208412A1 (en) | Detection of caption elements in documents | |
| CN117369920A (en) | Text display method, device, computer equipment and storage medium | |
| CN114758339B (en) | Method and device for acquiring character recognition model, computer equipment and storage medium | |
| CN113886249A (en) | Test data filling method and device, computer equipment and storage medium | |
| CN113760435A (en) | A method for processing flat works and related equipment | |
| CN114547066A (en) | Nuclear power business data standardization method and device and computer equipment | |
| CN114625988B (en) | A poster transcoding method, apparatus, computer equipment, and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |