CN110910475A - Picture editing method and device, computer equipment and storage medium - Google Patents

Picture editing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110910475A
CN110910475A CN201910983157.3A CN201910983157A CN110910475A CN 110910475 A CN110910475 A CN 110910475A CN 201910983157 A CN201910983157 A CN 201910983157A CN 110910475 A CN110910475 A CN 110910475A
Authority
CN
China
Prior art keywords
information
template
edited
vehicle
picture
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
CN201910983157.3A
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.)
Zhejiang Dasou Vehicle Software Technology Co Ltd
Original Assignee
Zhejiang Dasou Vehicle Software 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 Zhejiang Dasou Vehicle Software Technology Co Ltd filed Critical Zhejiang Dasou Vehicle Software Technology Co Ltd
Priority to CN201910983157.3A priority Critical patent/CN110910475A/en
Publication of CN110910475A publication Critical patent/CN110910475A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Library & Information Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application relates to a picture editing method, a picture editing device, computer equipment and a storage medium. The method comprises the following steps: sending an information acquisition instruction to a server; the information acquisition instruction carries a vehicle identifier and a user identifier; receiving information to be edited fed back by the server according to the information acquisition instruction; the information to be edited comprises user information, vehicle information, file information and two-dimensional codes; acquiring a target template corresponding to the template identifier from a database according to the acquired template identifier; the target template is used for describing the positions and the shapes of various information in the information to be edited; generating a view according to the target template and the information to be edited; and adopting a preset picture conversion mode to convert the format of the view to obtain the vehicle display picture. By adopting the method, the picture editing operation can be simplified, the operation is easy to operate, and the picture editing efficiency is greatly improved.

Description

Picture editing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for editing a picture, a computer device, and a storage medium.
Background
With the development of internet technology, image processing tools are in endless, and editing images by using the image processing tools can enable the images to bear more information contents.
For example, in the field of automobiles, when a picture of a vehicle needs to be edited, a traditional picture editing method is to select a picture, and a user edits the picture by using an existing picture editing tool, for example, operations such as cutting, beautifying, adding text information and the like are performed, and the picture is shared after the editing is completed.
The traditional picture editing method is complex in operation and long in time consumption, and needs a certain mastering capability on a picture editing tool, so that the picture editing efficiency is low.
Disclosure of Invention
In view of the above, it is necessary to provide a picture editing method, apparatus, computer device and storage medium capable of improving picture editing efficiency.
In a first aspect, the present application provides a method for editing a picture, including:
sending an information acquisition instruction to a server; the information acquisition instruction carries a vehicle identifier and a user identifier;
receiving information to be edited fed back by the server according to the information acquisition instruction; the information to be edited comprises user information, vehicle information, file information and two-dimensional codes;
according to the obtained template identification, obtaining a target template corresponding to the template identification from a database; the target template is used for describing the positions and the shapes of various types of information in the information to be edited;
generating a view according to the target template and the information to be edited;
and adopting a preset picture conversion mode to convert the format of the view to obtain the vehicle display picture.
After sending an information acquisition instruction to a server, a terminal receives information to be edited, which is fed back by the server according to the information acquisition instruction, wherein the information to be edited comprises user information, vehicle information, file information and a two-dimensional code; then according to the obtained template identification, obtaining a target template corresponding to the template identification from a database; generating a view according to the target template and the information to be edited; and then, carrying out format conversion on the view by adopting a preset picture conversion mode to obtain a vehicle display picture. According to the method and the device, the view can be generated according to the target template and the information to be edited only by acquiring the information to be edited and then acquiring the target template, and the view is converted into the picture to be shared. The user acquires the information to be edited from the server through the terminal, and selects the corresponding template to obtain the picture without learning special drawing software, so that the picture editing process is simple and rapid to operate and easy to master, and the picture editing efficiency is greatly improved.
In one embodiment, the target template comprises position parameters, shape parameters and type parameters of various types of information in the information to be edited; generating a view according to the target template and the information to be edited, including:
respectively matching corresponding position parameters and shape parameters for the information to be edited according to the type parameters;
and drawing the position and the shape of the information to be edited according to the position parameter and the shape parameter which are respectively matched with the information to be edited to obtain the view.
In the process of generating the view, corresponding position parameters and shape parameters are respectively matched for various information in the information to be edited according to the type parameters, and the position and the shape of the various information in the information to be edited are drawn according to the corresponding position parameters and the corresponding shape parameters which are respectively matched, so that the view is obtained. Layout and style editing of various information can be automatically completed according to the position parameters and the shape parameters of the target template, editing processes are few, and operation is simple.
In one embodiment, the method further comprises:
receiving a template design drawing input by a user, and acquiring configuration information according to the template design drawing; the configuration information comprises position parameters, shape parameters and type parameters of various types of information;
generating a template according to the configuration information;
and establishing a corresponding relation between the template identification and the template, and storing the corresponding relation between the template identification and the template into the database.
Acquiring configuration information according to a template design drawing input by a user, generating a template according to the configuration information, establishing a corresponding relation between a template identifier and the template, and storing the corresponding relation between the template identifier and the template into the database. The template is generated by the method and then stored in the database, so that the template can be directly called from the database for use through the template identifier during picture editing, and convenience and rapidness are realized.
In one embodiment, the vehicle information includes a picture of the vehicle to be edited and a price of the vehicle.
The vehicle information comprises an edited vehicle picture and a vehicle price, the edited vehicle display picture is an original picture of a vehicle to be sold, and after being edited, the edited vehicle display picture can bear more related information about the vehicle, so that the appearance shape of the vehicle can be visually displayed, and the vehicle price can provide reference for customers.
In one embodiment, before the format conversion is performed on the view by using a preset picture conversion manner to obtain the vehicle display picture, the method further includes:
and fuzzifying the vehicle price in the view to obtain a processed view.
And carrying out fuzzification processing on the vehicle price in the view to obtain a processed view, and carrying out format conversion on the processed view by adopting a preset picture conversion mode to obtain a vehicle display picture. The vehicle price fuzzification processing can effectively attract customers, and meanwhile, a certain margin is reserved for the price questioning in the later transaction process.
In one embodiment, before the obtaining, according to the obtained template identifier, a target template corresponding to the template identifier from a database, the method further includes:
displaying a preset template interface, wherein the preset template interface comprises a plurality of candidate templates;
and acquiring the template identification according to the candidate template selected by the user in the preset template interface.
Providing a plurality of candidate templates for a user in a preset template interface, obtaining a template identifier according to the candidate template selected by the user in the preset template interface, and obtaining a corresponding target template from a database through the template identifier. A plurality of candidate templates are provided on a preset template interface, so that more choices are provided for picture editing.
In one embodiment, after the format conversion is performed on the view by using a preset picture conversion manner to obtain a vehicle display picture, the method further includes:
and calling an application program interface by adopting a third party tool, and sharing the vehicle display picture.
After the vehicle display picture is obtained, the third-party tool can be utilized to call the application program interface to share the vehicle display picture. The third-party tool is utilized to share the pictures, so that not only can the sales channels be increased, but also a good propaganda effect can be achieved, and the income is increased.
In a second aspect, the present application provides a picture editing apparatus, the apparatus comprising:
the sending module is used for sending an information acquisition instruction to the server; the information acquisition instruction carries a vehicle identifier and a user identifier;
the receiving module is used for receiving the information to be edited fed back by the server according to the information acquisition instruction; the information to be edited comprises user information, vehicle information, file information and two-dimensional codes;
the first acquisition module is used for acquiring a target template corresponding to the template identifier from a database according to the acquired template identifier; the target template is used for describing the positions and the shapes of various types of information in the information to be edited;
the view module is used for generating a view according to the target template and the information to be edited;
and the conversion module is used for carrying out format conversion on the view by adopting a preset picture conversion mode to obtain a vehicle display picture.
In a third aspect, the present application provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the picture editing method according to any one of the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the picture editing method according to any one of the first aspect.
The picture editing method, the picture editing device, the computer equipment and the storage medium have the beneficial effects that:
after sending an information acquisition instruction to a server, a terminal receives information to be edited, which is fed back by the server according to the information acquisition instruction, wherein the information to be edited comprises user information, vehicle information, file information and a two-dimensional code; then according to the obtained template identification, obtaining a target template corresponding to the template identification from a database; generating a view according to the target template and the information to be edited; and then, carrying out format conversion on the view by adopting a preset picture conversion mode to obtain a vehicle display picture. According to the method and the device, the view can be generated according to the target template and the information to be edited only by acquiring the information to be edited and then acquiring the target template, and the view is converted into the picture to be shared. The user acquires the information to be edited from the server through the terminal, and selects the corresponding template to obtain the picture without learning special drawing software, so that the picture editing process is simple and rapid to operate and easy to master, and the picture editing efficiency is greatly improved.
Drawings
Fig. 1 is an application environment diagram of a picture editing method in an embodiment of the present application;
fig. 2 is a schematic flowchart of a picture editing method provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of another picture editing method provided in the embodiment of the present application;
fig. 4 is a schematic flowchart of another picture editing method provided in the embodiment of the present application;
fig. 5 is a schematic flowchart of another picture editing method provided in the embodiment of the present application;
fig. 6 is a block diagram of a picture editing apparatus provided in an embodiment of the present application;
fig. 7 is a block diagram of another picture editing apparatus provided in the embodiment of the present application;
fig. 8 is a block diagram of another picture editing apparatus provided in the embodiment of the present application;
fig. 9 is a block diagram of another picture editing apparatus provided in the embodiment of the present application;
fig. 10 is a block diagram of another picture editing apparatus provided in an embodiment of the present application;
fig. 11 is a block diagram of another picture editing apparatus provided in the embodiment of the present application;
fig. 12 is an internal structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The picture editing method provided by the application can be applied to the application environment shown in fig. 1. In which a terminal 101 communicates with a server 102 via a network. The terminal 101 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 102 may be implemented by an independent server or a server cluster formed by a plurality of servers.
The following describes in detail the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems by embodiments and with reference to the drawings. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. It should be noted that, in the picture editing method provided in the embodiments of fig. 2 to fig. 5 of the present application, the execution main body may be a terminal, for example, a smart phone, or may be a picture editing apparatus, and the picture editing apparatus may become part or all of the terminal through software, hardware, or a combination of software and hardware. In the following method embodiments, the execution subject is taken as an example to be described.
In one embodiment, as shown in fig. 2, there is provided a picture editing method, including the steps of:
s201, sending an information acquisition instruction to a server; the information acquisition instruction carries a vehicle identifier and a user identifier.
The information obtaining instruction is used for obtaining information to be edited corresponding to a vehicle identification and a user identification from a server, wherein the vehicle identification can be a license plate number, a model number, a vehicle number and the like, and the user identification can also be a user name, a contact way, an identity card number and the like.
In this embodiment, the terminal sends an information obtaining instruction to the server, where the information obtaining instruction carries a vehicle identifier and a user identifier, so as to obtain information to be edited, which corresponds to the vehicle identifier and the user identifier. For example, the terminal may send an information acquisition instruction to the server through transmission modes such as WIFI, 4G, or 5G, where the identifier carried in the information acquisition instruction may be a vehicle model and a user name, or may also be a vehicle number and a user name.
S202, receiving information to be edited fed back by the server according to the information acquisition instruction; the information to be edited comprises user information, vehicle information, file information and two-dimensional codes.
The user information may be information such as a name, a contact address, and an address of the user. The vehicle information may include artwork and pricing information for pre-sold vehicles. The file information may be the sales status of the vehicle, and vehicle attributes, etc., for example, the sales status of the vehicle may be sold empty, sold in hot, or pre-sold; the vehicle attributes comprise information such as vehicle mileage, card-loading time and model. The two-dimensional code may represent a link address, which may be store address information of a vehicle for sale, a sales page of the vehicle, or a vehicle address, for example, a customer may enter a store home page of the vehicle for sale by scanning the two-dimensional code, or learn more about the information by scanning the two-dimensional code to enter the sales page of the vehicle.
In this embodiment, after the terminal sends the information acquisition instruction to the server, the terminal receives the information to be edited, which is fed back by the server according to the information acquisition instruction. The information to be edited acquired by the terminal is input into the server during registration, and can be added, deleted or modified according to the editing operation of the user on the management page in the later period, wherein the information to be edited comprises user information, vehicle information, file information and two-dimensional codes. In the process of storing the information to be edited, a storage address is correspondingly allocated to one item of information to be edited, and user information, vehicle information, file information and two-dimensional codes in the information to be edited are respectively stored in a storage unit of the address. For example, if the identifier carried by the information request instruction sent by the terminal to the server is the vehicle model and the user name, the server queries the corresponding information to be edited according to the vehicle model and the user name carried by the information request instruction, and feeds back the information to be edited to the terminal. Or the terminal sends the vehicle number and the user name carried by the information request instruction to the server, and the server inquires the corresponding information to be edited according to the vehicle number and the user name and feeds back the information to be edited to the terminal.
S203, acquiring a target template corresponding to the template identifier from a database according to the acquired template identifier; the target template is used for describing the positions and shapes of various types of information in the information to be edited.
The target template is used for representing the layout mode of various types of information in the picture style. A large number of candidate templates are stored in the database, and when the picture is edited, the corresponding target template in the database is called through the template identification.
In this embodiment, the terminal acquires, from the database, a target template corresponding to the template identifier according to the acquired template identifier, where the target template is used to describe the position and shape of each type of information in the information to be edited. The template identifier may be in the form of ID, tag, or number, and the template identifier corresponds to the target template one to one. For example, if the template identifier obtained by the terminal is in the form of an ID, the corresponding target template is loaded into the local memory from the database according to the ID for use in editing the picture. Or, if the template identifier obtained by the terminal is the label information, loading the corresponding target template according to the label. The template identifier may be an identifier generated by the terminal according to the selected candidate template after the terminal selects the candidate template in the preset template interface according to the user, or may be obtained from the server according to the selected candidate template.
And S204, generating a view according to the target template and the information to be edited.
The view is an object of a binary stream, can only be previewed, and cannot be directly shared.
In this embodiment, the terminal draws the information to be edited according to the acquired target template, the drawing process may be implemented by using a drawing tool of the terminal, an interface is provided by using the drawing tool of the terminal, the interface is called to draw the user information, the vehicle information, the language and file information and the two-dimensional code in the information to be edited, and a view is generated to allow the user to preview the final effect of editing the picture. Alternatively, an image processing tool, an application program, and the like may be specially provided in the terminal for rendering the information to be edited. For example, the smart phone can call an interface through a self-contained picture function and generate a view according to the target template and the information to be edited. Alternatively, the smartphone may also generate the view through a pre-installed drawing software calling interface, for example, the drawing software may be a third-party application such as a scholar show, a clap, and the like.
And S205, carrying out format conversion on the view by adopting a preset picture conversion mode to obtain a vehicle display picture.
In this embodiment, the terminal uses the drawing tool to generate the view according to the target template and the information to be edited, and the view cannot be directly shared, and the current format conversion mode can be adopted to perform format conversion on the view, so that the vehicle display picture which can be directly shared is obtained. For example, the terminal may convert the generated view into a picture through an application such as a format factory or a picture converter and then share the picture directly with a third-party application, where the third-party application may be an application such as WeChat, QQ, or microblog.
In the picture editing method provided by this embodiment, after the terminal sends the information acquisition instruction to the server, the terminal receives information to be edited, which is fed back by the server according to the information acquisition instruction, where the information to be edited includes user information, vehicle information, document information, and a two-dimensional code; then according to the obtained template identification, obtaining a target template corresponding to the template identification from a database; generating a view according to the target template and the information to be edited; and then, carrying out format conversion on the view by adopting a preset picture conversion mode to obtain a vehicle display picture. According to the method and the device, the view can be generated according to the target template and the information to be edited only by acquiring the information to be edited and then acquiring the target template, and the view is converted into the picture to be shared. The user acquires the information to be edited from the server through the terminal, and selects the corresponding template to obtain the picture without learning special drawing software, so that the picture editing process is simple and rapid to operate and easy to master, and the picture editing efficiency is greatly improved.
On the basis of the embodiment shown in fig. 2, optionally, the target template includes a position parameter, a shape parameter, and a type parameter of each type of information in the information to be edited, as shown in fig. 3, step "S204" in fig. 2, generates a view according to the target template and the information to be edited. "one possible implementation of this comprises the following steps:
and S301, respectively matching corresponding position parameters and shape parameters for the information to be edited according to the type parameters.
The type parameters are used for identifying types of various information in the information to be edited in the target template and respectively matching corresponding position parameters and shape parameters; the position parameter is a parameter of specific position layout in the target template for various information in the information to be edited, and coordinates or directions, such as [ A, B ], [ C, D ], a central position or a lower right corner, and the like, are respectively corresponding to user information, vehicle information, file information and a two-dimensional code in the information to be edited in the target template; the shape parameters are parameters such as sizes, widths or styles of elements such as picture characters and two-dimensional codes in the information to be edited.
In the embodiment, the user information, the vehicle information, the file information and the two-dimensional code are firstly identified according to the type parameters of various information in the information to be edited, which is included in the target template, the types of various information are judged, and the corresponding position parameters and the corresponding shape parameters are matched according to the types of various information; and in the judging process, the identification can be carried out according to the main characteristics of various information in the information to be edited. For example, the vehicle information is mainly characterized by comprising a picture and a price of the vehicle to be edited, and if the information is identified to comprise the picture and the price of the vehicle to be edited when various types of information in the information to be edited are identified, the information can be judged to be the vehicle information, and the corresponding position coordinate and the corresponding shape parameter are matched for the vehicle information according to the type parameter.
S302, drawing the position and the shape of the information to be edited according to the position parameter and the shape parameter which are respectively matched with the information to be edited, and obtaining a view.
In this embodiment, according to the position parameters and the shape parameters respectively matched with the user information, the vehicle information, the pattern information and the two-dimensional code, the drawing tool of the terminal is utilized, the interface is called to respectively draw the positions and the shapes of the user information, the vehicle information, the pattern information and the two-dimensional code, and finally the view is obtained. For example, according to the shape parameters matched with the two-dimensional code, the drawing tool of the terminal is utilized, the interface is called to process the size and the style of the two-dimensional code, and after the processing is finished, the processed two-dimensional code is placed in the corresponding position in the target template according to the position parameters.
In the picture editing method provided by this embodiment, in the process of generating the view, the corresponding position parameters and the corresponding shape parameters are respectively matched for each type of information in the information to be edited according to the type parameters, and then the positions and the shapes of each type of information in the information to be edited are drawn according to the corresponding position parameters and the corresponding shape parameters which are respectively matched, so as to obtain the view. Layout and style editing of various information can be automatically completed according to the position parameters and the shape parameters of the target template, editing processes are few, and operation is simple.
On the basis of the embodiment shown in fig. 3, the generation process of the template is described below, and as shown in fig. 4, one generation manner of the target template may include the following steps:
s401, receiving a template design drawing input by a user, and acquiring configuration information according to the template design drawing.
In this embodiment, the terminal receives a template design drawing input by a user and designed by a designer, and acquires configuration information corresponding to information to be edited according to the template design drawing, wherein optionally, the configuration information includes position parameters, shape parameters and type parameters of various types of information. For example, after the template design drawing is designed by a designer, the terminal receives the template design drawing input by a user, and the image recognition technology is adopted to recognize the position, shape and type of various information in the information to be edited from the pre-designed template design drawing to obtain the configuration information.
S402, generating a template according to the configuration information.
In this embodiment, a template, that is, a picture style provided for the user, is generated according to the configuration information acquired in S401. When the picture is edited, the template is obtained according to the selection of the user to draw the information to be edited, and the position parameters, the shape parameters and the type parameters of various types of information included in the configuration information are also used for drawing the view in the picture editing process.
S403, establishing a corresponding relation between the template identification and the template, and storing the corresponding relation between the template identification and the template in a database.
In this embodiment, the template identifier may be in the form of an ID, a tag, a number, or the like, and after the template is generated according to the configuration information, a corresponding relationship between the template identifier and the template is established, and the template identifier and the template are in one-to-one correspondence, and the corresponding relationship between the template identifier and the template are stored in the database together, so that the template can be called later according to the corresponding relationship by the template identifier. For example, if the template identifier is the number 0010, a corresponding relationship is established between the number 0010 and the template, the template is stored in the database, and when the template identifier 0010 is called, the corresponding template can be called from the database for use.
In the method for editing a picture provided in this embodiment, configuration information is obtained according to a template design drawing input by a user, a template is generated according to the configuration information, a corresponding relationship between a template identifier and the template is established, and the corresponding relationship between the template identifier and the template are stored in a database. The template is generated by the method and then stored in the database, so that the template can be directly called from the database for use through the template identifier during picture editing, and convenience and rapidness are realized.
On the basis of the embodiment shown in fig. 2, optionally, the vehicle information includes a picture of the vehicle to be edited and a vehicle price. In some scenarios, in order to make the commodity price adjustable, the commodity price may be further fuzzified, before the view is subjected to format conversion in step S205 in fig. 2 in a preset picture conversion manner to obtain the vehicle display picture, the vehicle price in the view may be further fuzzified, and then the process of fuzzifying the vehicle price will be described in detail.
In this embodiment, before performing format conversion on the view, optionally, performing fuzzification processing on the vehicle price in the view to obtain a processed view, and then performing format conversion on the view by using a preset picture conversion manner to obtain a vehicle display picture in step S205, including: and adopting a preset picture conversion mode to perform format conversion on the processed view to obtain the vehicle display picture. In order to attract customers, vehicle prices in the view are subjected to fuzzification processing according to preset fuzzy rules, and a processed view is obtained. For example, the preset fuzzy rule may be: when the vehicle price is in a [0.00, 10.00) ten thousand yuan interval, two digits after the decimal point are blurred, for example, the vehicle price is 3.45 ten thousand, and then is 3.XX ten thousand; when the vehicle price is in a 10.00, 30.00) ten-thousand yuan interval, if the ten digit is 0-5, the two digits after the decimal point are blurred, for example, the vehicle price is 15.99 ten thousands which is 15.XX ten thousands; if the number of tens is 6-9, the number of units is blurred, for example, the price of the vehicle is 26.89 ten thousand which is 2X.89 ten thousand; if the vehicle price is in a [30.00, 100.00) ten thousand yuan interval, the ones digit is fuzzy, for example, if the vehicle price is 35.45 ten thousand fuzzy, then 3X.45 ten thousand, and if the vehicle price is in a [100.00, 1000.00) ten thousand yuan interval, the tens digit is fuzzy, for example, if the vehicle price is 261.98 ten thousand fuzzy, then 2X1.98 ten thousand.
Further, in this embodiment, after the vehicle price in the view is 7.56 ten thousand yuan and is subjected to the fuzzification processing according to the above fuzzy rule, the vehicle price in the processed view is 7.xx ten thousand yuan, and after the processed view is obtained, optionally, a preset picture conversion mode is adopted to perform format conversion on the processed view to obtain a vehicle display picture, and the vehicle price on the vehicle display picture after the format conversion is blurred.
According to the picture editing method provided by the embodiment, vehicle prices in the views are fuzzified to obtain processed views, and format conversion is performed on the processed views by adopting a preset picture conversion mode to obtain vehicle display pictures. The vehicle price fuzzification processing can effectively attract customers, and meanwhile, a certain margin is reserved for the price questioning in the later transaction process.
On the basis of the embodiment shown in fig. 2, as shown in fig. 5, before the step "S203 in fig. 2, according to the obtained template identifier, obtaining the target template corresponding to the template identifier from the database", it is further necessary to obtain the candidate template selected by the user in the preset template interface, and obtain the template identifier. The selection process of the template will be further explained below.
S501, displaying a preset template interface.
In this embodiment, after the information to be edited is acquired, the target template is to be acquired, and the terminal displays a preset template interface, optionally, the preset template interface includes a plurality of candidate templates. For example, after the terminal acquires the information to be edited, the terminal automatically switches to a preset template interface, the preset display interface can be displayed on the interface one by one according to the sequence of the candidate templates, and the candidate templates are switched according to the sliding or key pressing operation of the user and the like. Or, simultaneously arranging and displaying a plurality of candidate templates on the display interface for the user to browse and select.
And S502, acquiring a template identifier according to a candidate template selected by a user in a preset template interface.
In this embodiment, a user may select a candidate template on a preset template interface by clicking, inputting, sliding, adding, and the like, and after the user selects the candidate template, obtain a template identifier according to the selected candidate template, and obtain a target template from a database according to the template identifier. For example, a user selects a candidate template by clicking on a preset template interface displayed by the smart phone, and then obtains a corresponding template identifier according to the selected candidate template.
In the method for editing a picture provided by this embodiment, a plurality of candidate templates are provided for a user in a preset template interface, a template identifier is obtained according to a candidate template selected by the user in the preset template interface, and a corresponding target template is obtained from a database through the template identifier. A plurality of candidate templates are provided on a preset template interface, so that more choices are provided for picture editing.
In the embodiment shown in fig. 2, after the vehicle display picture is acquired, the picture may be further shared, and after the view is subjected to format conversion in the step S205 in a preset picture conversion manner to obtain the vehicle display picture, optionally, an application program interface is called by using a third party tool to share the vehicle display picture.
In this embodiment, after the vehicle display picture is obtained through the steps in fig. 2, an application program interface may be called through a third-party tool, and the vehicle display picture is shared on the internet platform, for example, after the vehicle display picture is obtained, the vehicle display picture may be shared on the social platform by using the wechat Opensdk or QQios _ sdk, so as to attract the customer. Or the vehicle display pictures are shared on the internet platform through the android _ sdk, and a good propaganda effect can be achieved by means of resource advantages of the internet platform.
According to the picture editing method provided by the embodiment, after the vehicle display picture is obtained, the third party tool can be utilized to call the application program interface, and the vehicle display picture is shared. The third-party tool is utilized to share the pictures, so that not only can the sales channels be increased, but also a good propaganda effect can be achieved, and the income is increased.
In one embodiment, as shown in fig. 6, there is provided a picture editing apparatus 600 including: a sending module 601, a receiving module 602, a first obtaining module 603, a view module 604, and a converting module 605, wherein:
a sending module 601, configured to send an information obtaining instruction to a server; the information acquisition instruction carries a vehicle identifier and a user identifier.
A receiving module 602, configured to receive information to be edited, which is fed back by the server according to the information obtaining instruction; the information to be edited comprises user information, vehicle information, file information and two-dimensional codes.
A first obtaining module 603, configured to obtain, according to the obtained template identifier, a target template corresponding to the template identifier from a database; the target template is used for describing the positions and shapes of various types of information in the information to be edited.
And the view module 604 is configured to generate a view according to the target template and the information to be edited.
The conversion module 605 is configured to perform format conversion on the view by using a preset picture conversion manner, so as to obtain a vehicle display picture.
In one embodiment, as shown in FIG. 7, the view module 604 includes:
and a matching unit 6041 configured to match the corresponding position parameter and shape parameter for the user information, the vehicle information, the document information, and the two-dimensional code according to the type parameter.
And a drawing unit 6042 configured to draw the positions and shapes of the user information, the vehicle information, the document information, and the two-dimensional code according to the position parameter and the shape parameter that are respectively matched with the user information, the vehicle information, the document information, and the two-dimensional code, so as to obtain a view.
In one embodiment, as shown in fig. 8, the apparatus 600 further comprises:
a second obtaining module 606, configured to obtain configuration information according to a template design drawing input by a user; the configuration information includes location parameters, shape parameters, and type parameters of various types of information.
The generating module 607 is configured to generate a template according to the configuration information.
The storage module 608 is configured to establish a corresponding relationship between the template identifier and the template, and store the corresponding relationship between the template identifier and the template in the database.
In one embodiment, the vehicle information includes a picture of the vehicle to be edited and a price of the vehicle.
In one embodiment, as shown in fig. 9, the apparatus 600 further comprises:
and the processing module 609 is configured to perform fuzzification processing on the vehicle price in the view to obtain a processed view.
In one embodiment, as shown in fig. 10, the apparatus 600 further comprises:
and a display module 6010 configured to display the preset template interface.
The selecting module 6011 is configured to obtain a template identifier according to a candidate template selected by a user in a preset template interface.
In one embodiment, as shown in fig. 11, the apparatus 600 further comprises:
the sharing module 6012 is configured to use a third party tool to call an application program interface to share the vehicle display picture.
The implementation principle and technical effect of all the embodiments of the image editing apparatus are similar to those of the embodiments corresponding to the image editing method, and are not described herein again.
For specific definition of the picture editing apparatus, reference may be made to the above definition of the picture editing method, which is not described herein again. All or part of the modules in the picture editing device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 12. 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 comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. 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 picture editing method. 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, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 12 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, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
sending an information acquisition instruction to a server; the information acquisition instruction carries a vehicle identifier and a user identifier; receiving information to be edited fed back by the server according to the information acquisition instruction; the information to be edited comprises user information, vehicle information, file information and two-dimensional codes; acquiring a target template corresponding to the template identifier from a database according to the acquired template identifier; the target template is used for describing the positions and the shapes of various information in the information to be edited; generating a view according to the target template and the information to be edited; and adopting a preset picture conversion mode to convert the format of the view to obtain the vehicle display picture.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
the target template comprises position parameters, shape parameters and type parameters of various information in the information to be edited; generating a view according to the target template and the information to be edited, comprising: respectively matching corresponding position parameters and shape parameters for the information to be edited according to the type parameters; and drawing the position and the shape of the information to be edited according to the position parameter and the shape parameter which are respectively matched with the information to be edited to obtain a view.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving a template design drawing input by a user, and acquiring configuration information according to the template design drawing; the configuration information comprises position parameters, shape parameters and type parameters of various types of information; generating a template according to the configuration information; and establishing a corresponding relation between the template identification and the template, and storing the corresponding relation between the template identification and the template into a database.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
the vehicle information includes a picture of the vehicle to be edited and a price of the vehicle.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
adopting the preset picture conversion mode, carrying out format conversion on the view, and before obtaining the vehicle display picture, the method further comprises the following steps: and carrying out fuzzification processing on the vehicle price in the view to obtain a processed view.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
before the target template corresponding to the template identifier is obtained from the database according to the obtained template identifier, the method further comprises the following steps: displaying a preset template interface, wherein the preset template interface comprises a plurality of candidate templates; and acquiring a template identifier according to the candidate template selected by the user in the preset template interface.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
adopting a preset picture conversion mode to convert the format of the view, and after obtaining the vehicle display picture, the method further comprises the following steps: and calling an application program interface by adopting a third-party tool, and sharing the vehicle display picture.
The implementation principle and technical effect of the computer device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
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:
sending an information acquisition instruction to a server; the information acquisition instruction carries a vehicle identifier and a user identifier; receiving information to be edited fed back by the server according to the information acquisition instruction; the information to be edited comprises user information, vehicle information, file information and two-dimensional codes; acquiring a target template corresponding to the template identifier from a database according to the acquired template identifier; the target template is used for describing the positions and the shapes of various information in the information to be edited; generating a view according to the target template and the information to be edited; and adopting a preset picture conversion mode to convert the format of the view to obtain the vehicle display picture.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the target template comprises position parameters, shape parameters and type parameters of various information in the information to be edited; generating a view according to the target template and the information to be edited, comprising: respectively matching corresponding position parameters and shape parameters for the information to be edited according to the type parameters; and drawing the position and the shape of the information to be edited according to the position parameter and the shape parameter which are respectively matched with the information to be edited to obtain a view.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving a template design drawing input by a user, and acquiring configuration information according to the template design drawing; the configuration information comprises position parameters, shape parameters and type parameters of various types of information; generating a template according to the configuration information; and establishing a corresponding relation between the template identification and the template, and storing the corresponding relation between the template identification and the template into a database.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the vehicle information includes a picture of the vehicle to be edited and a price of the vehicle.
In one embodiment, the computer program when executed by the processor further performs the steps of:
adopting the preset picture conversion mode, carrying out format conversion on the view, and before obtaining the vehicle display picture, the method further comprises the following steps: and carrying out fuzzification processing on the vehicle price in the view to obtain a processed view.
In one embodiment, the computer program when executed by the processor further performs the steps of:
before the target template corresponding to the template identifier is obtained from the database according to the obtained template identifier, the method further comprises the following steps: displaying a preset template interface, wherein the preset template interface comprises a plurality of candidate templates; and acquiring a template identifier according to the candidate template selected by the user in the preset template interface.
In one embodiment, the computer program when executed by the processor further performs the steps of:
adopting a preset picture conversion mode to convert the format of the view, and after obtaining the vehicle display picture, the method further comprises the following steps: and calling an application program interface by adopting a third-party tool, and sharing the vehicle display picture.
The implementation principle and technical effect of the computer-readable storage medium provided by the above embodiments are similar to those of the above method embodiments, and are not described herein again.
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 hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile 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), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of picture editing, the method comprising:
sending an information acquisition instruction to a server; the information acquisition instruction carries a vehicle identifier and a user identifier;
receiving information to be edited fed back by the server according to the information acquisition instruction; the information to be edited comprises user information, vehicle information, file information and two-dimensional codes;
according to the obtained template identification, obtaining a target template corresponding to the template identification from a database; the target template is used for describing the positions and the shapes of various types of information in the information to be edited;
generating a view according to the target template and the information to be edited;
and adopting a preset picture conversion mode to convert the format of the view to obtain the vehicle display picture.
2. The method according to claim 1, wherein the target template comprises position parameters, shape parameters and type parameters of various types of information in the information to be edited; generating a view according to the target template and the information to be edited, including:
respectively matching corresponding position parameters and shape parameters for the information to be edited according to the type parameters;
and drawing the position and the shape of the information to be edited according to the position parameter and the shape parameter which are respectively matched with the information to be edited to obtain the view.
3. The method of claim 2, further comprising:
receiving a template design drawing input by a user, and acquiring configuration information according to the template design drawing; the configuration information comprises position parameters, shape parameters and type parameters of various types of information;
generating a template according to the configuration information;
and establishing a corresponding relation between the template identification and the template, and storing the corresponding relation between the template identification and the template into the database.
4. The method of claim 1, wherein the vehicle information includes a picture of the vehicle to be edited and a price of the vehicle.
5. The method according to claim 4, wherein before the format conversion is performed on the view by using a preset picture conversion mode to obtain the vehicle display picture, the method further comprises:
and fuzzifying the vehicle price in the view to obtain a processed view.
6. The method according to claim 1, wherein before the obtaining, according to the obtained template identifier, the target template corresponding to the template identifier from the database, further comprising:
displaying a preset template interface, wherein the preset template interface comprises a plurality of candidate templates;
and acquiring the template identification according to the candidate template selected by the user in the preset template interface.
7. The method according to claim 1, wherein after the format conversion is performed on the view by using a preset picture conversion mode to obtain the vehicle display picture, the method further comprises:
and calling an application program interface by adopting a third party tool, and sharing the vehicle display picture.
8. A picture editing apparatus, characterized in that the apparatus comprises:
the sending module is used for sending an information acquisition instruction to the server; the information acquisition instruction carries a vehicle identifier and a user identifier;
the receiving module is used for receiving the information to be edited fed back by the server according to the information acquisition instruction; the information to be edited comprises user information, vehicle information, file information and two-dimensional codes;
the first acquisition module is used for acquiring a target template corresponding to the template identifier from a database according to the acquired template identifier; the target template is used for describing the positions and the shapes of various types of information in the information to be edited;
the view module is used for generating a view according to the target template and the information to be edited;
and the conversion module is used for carrying out format conversion on the view by adopting a preset picture conversion mode to obtain a vehicle display picture.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the steps of the picture editing method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the picture editing method as claimed in any one of claims 1 to 7.
CN201910983157.3A 2019-10-16 2019-10-16 Picture editing method and device, computer equipment and storage medium Pending CN110910475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910983157.3A CN110910475A (en) 2019-10-16 2019-10-16 Picture editing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910983157.3A CN110910475A (en) 2019-10-16 2019-10-16 Picture editing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110910475A true CN110910475A (en) 2020-03-24

Family

ID=69815347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910983157.3A Pending CN110910475A (en) 2019-10-16 2019-10-16 Picture editing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110910475A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111598652A (en) * 2020-04-28 2020-08-28 携程计算机技术(上海)有限公司 Product information display method, device, equipment and storage medium
CN112035774A (en) * 2020-09-01 2020-12-04 平安付科技服务有限公司 Network page generation method and device, computer equipment and readable storage medium
CN112616085A (en) * 2020-12-09 2021-04-06 四川金熊猫新媒体有限公司 EPG presentation solution method, device and equipment based on IPTV dynamic template combination
CN115205416A (en) * 2022-08-12 2022-10-18 广州鼎甲计算机科技有限公司 Image generation method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168417A (en) * 2014-05-20 2014-11-26 腾讯科技(深圳)有限公司 Picture processing method and device
CN105808044A (en) * 2014-12-31 2016-07-27 腾讯科技(深圳)有限公司 Information push method and device
CN107809492A (en) * 2017-12-08 2018-03-16 广东太平洋互联网信息服务有限公司 The generation method and system of sharing information
CN109582884A (en) * 2018-10-22 2019-04-05 中国平安人寿保险股份有限公司 Insurance products share link generation method, device, medium and computer equipment
CN109740137A (en) * 2018-12-20 2019-05-10 平安国际融资租赁有限公司 Business card generation method, device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168417A (en) * 2014-05-20 2014-11-26 腾讯科技(深圳)有限公司 Picture processing method and device
CN105808044A (en) * 2014-12-31 2016-07-27 腾讯科技(深圳)有限公司 Information push method and device
CN107809492A (en) * 2017-12-08 2018-03-16 广东太平洋互联网信息服务有限公司 The generation method and system of sharing information
CN109582884A (en) * 2018-10-22 2019-04-05 中国平安人寿保险股份有限公司 Insurance products share link generation method, device, medium and computer equipment
CN109740137A (en) * 2018-12-20 2019-05-10 平安国际融资租赁有限公司 Business card generation method, device, computer equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111598652A (en) * 2020-04-28 2020-08-28 携程计算机技术(上海)有限公司 Product information display method, device, equipment and storage medium
CN112035774A (en) * 2020-09-01 2020-12-04 平安付科技服务有限公司 Network page generation method and device, computer equipment and readable storage medium
CN112616085A (en) * 2020-12-09 2021-04-06 四川金熊猫新媒体有限公司 EPG presentation solution method, device and equipment based on IPTV dynamic template combination
CN112616085B (en) * 2020-12-09 2023-05-26 四川金熊猫新媒体有限公司 EPG presentation solving method and device based on IPTV dynamic template combination
CN115205416A (en) * 2022-08-12 2022-10-18 广州鼎甲计算机科技有限公司 Image generation method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110910475A (en) Picture editing method and device, computer equipment and storage medium
CN110727431A (en) Applet generation method and apparatus
CN109343851A (en) Page generation method, device, computer equipment and storage medium
TWI627540B (en) A font cloud service system
CN112019820B (en) Interface generation method and device
CN110442697B (en) Man-machine interaction method, system, computer equipment and storage medium
CN108536467B (en) Code positioning processing method and device, terminal equipment and storage medium
CN111309991B (en) Query statement generation method and device and data query method and system
CN111739136B (en) Rendering method, computer device, and storage medium
CN114611041A (en) Front-end page construction method and device, computer equipment and medium
CN111223155A (en) Image data processing method, image data processing device, computer equipment and storage medium
CN113254016A (en) Interface generation method, interface information processing method, equipment and storage medium
CN111460075A (en) Behavior track determination method, behavior track determination device, behavior track determination equipment and readable storage medium
CN111131415A (en) Information pushing method and device, computer equipment and storage medium
CN113486283B (en) Page merging method, device, server, medium and product
CN111580659B (en) File processing method and device and electronic equipment
CN115293874A (en) Page processing method and device for credit borrowing process and computer equipment
CN111198926B (en) Business handling management method and device, electronic equipment and storage medium
CN113160126A (en) Hardware Trojan horse detection method and device, computer equipment and storage medium
CN112287131A (en) Information interaction method and information interaction device
CN111027303A (en) Personal electronic business card generating method and device, computer equipment and storage medium
CN110727481A (en) Picture editing method and device, computer equipment and storage medium
CN106164882A (en) Auxiliary indication mechanism
CN117251661B (en) Webpage file generation method, device, computer equipment and storage medium
CN116452702B (en) Information chart rapid design method, device, 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200324