CN111688605A - Character batch graph cutting method applied to automobile instrument and related equipment - Google Patents

Character batch graph cutting method applied to automobile instrument and related equipment Download PDF

Info

Publication number
CN111688605A
CN111688605A CN201910179855.8A CN201910179855A CN111688605A CN 111688605 A CN111688605 A CN 111688605A CN 201910179855 A CN201910179855 A CN 201910179855A CN 111688605 A CN111688605 A CN 111688605A
Authority
CN
China
Prior art keywords
data
program
setting
configuration file
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.)
Granted
Application number
CN201910179855.8A
Other languages
Chinese (zh)
Other versions
CN111688605B (en
Inventor
陈晓辉
苏俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai OFilm Smart Car Technology Co Ltd
Original Assignee
Shanghai OFilm Smart Car Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai OFilm Smart Car Technology Co Ltd filed Critical Shanghai OFilm Smart Car Technology Co Ltd
Priority to CN201910179855.8A priority Critical patent/CN111688605B/en
Publication of CN111688605A publication Critical patent/CN111688605A/en
Application granted granted Critical
Publication of CN111688605B publication Critical patent/CN111688605B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/023Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
    • B60R16/0231Circuits relating to the driving or the functioning of the vehicle
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Mechanical Engineering (AREA)
  • Stored Programmes (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application discloses a method and related equipment for cutting pictures of automobile instruments in batches, wherein the method comprises the following steps: acquiring a first form from a first setting program, acquiring a form template, starting the first setting program, and generating a second form according to the form template and the first form; starting a first setting tool program, and generating a configuration file according to the second table, wherein the configuration file is used for a second setting tool program; acquiring a setting picture, starting the second setting tool program, extracting multiple groups of data in the configuration file, and transmitting the multiple groups of data to the second setting program in parallel; and starting the second setting program, and sequentially intercepting a plurality of sub-pictures corresponding to the plurality of groups of data in the set picture according to the plurality of groups of data. Therefore, the method and the device have the advantages of batch processing and concise flow and also have the advantage of high user experience.

Description

Character batch graph cutting method applied to automobile instrument and related equipment
Technical Field
The application relates to the technical field of intelligent automobiles, in particular to a method and related equipment for cutting pictures in batches by characters applied to an automobile instrument.
Background
With the development of society and science and technology, the application of the liquid crystal screen is more and more extensive, and the automobile instrument is gradually changed into the liquid crystal screen from a mechanical structural part.
Generally, characters are displayed on a liquid crystal screen in a map pasting mode, the character map is generally manufactured by hand or by a map cutting tool, a map cutting plug-in and the like, but the number of character maps is huge, the time for manually manufacturing the character map is long, excessive human resources are occupied, the later maintenance and expansion are difficult, the whole manufacturing project flow of the character map is complex, the manufacturing by the map cutting tool, the map cutting plug-in and the like needs the use experience of the map cutting tool, the use requirement is high, a plurality of maps cannot be simultaneously manufactured during map cutting, the type of the map cutting plug-in is limited, the period for manufacturing the whole character map is long, the manufacturing efficiency of the character map is low, and the user experience is not high.
Disclosure of Invention
The embodiment of the application provides a text batch graph cutting method and related equipment applied to an automobile instrument, which can simplify the flow of text graph cutting, shorten the graph cutting period, realize batch processing of graph cutting and improve the user experience.
The embodiment of the application provides a method for cutting pictures in batches of characters applied to an automobile instrument in a first aspect, and the method comprises the following steps:
acquiring a first form from a first setting program, acquiring a form template, starting the first setting program, and generating a second form according to the form template and the first form;
starting a first setting tool program, and generating a configuration file according to the second table, wherein the configuration file is used for a second setting tool program;
acquiring a setting picture, starting the second setting tool program, extracting multiple groups of data in the configuration file, and transmitting the multiple groups of data to the second setting program in parallel;
and starting the second setting program, and sequentially intercepting a plurality of sub-pictures corresponding to the plurality of groups of data in the set picture according to the plurality of groups of data.
The method and the device have the advantages that the second form is generated according to the first form and the form template, the content of the first form is updated through the maintenance configuration table after the first form is obtained, and the operation difficulty of data updating is reduced; generating a configuration file according to the second form, and conveniently modifying the configuration requirement through the second form so as to conveniently maintain the configuration file; the data in the configuration file is acquired through a second setting tool program and is transmitted to the second setting program through an interface, the setting picture is cut and modified according to the data to obtain a sub-picture, the cutting position is quickly positioned and the cut picture is quickly modified through the data, the picture cutting period is shortened, the picture cutting process is simplified, batch processing of character cutting pictures is realized by extracting multiple groups of data and cutting pictures according to multiple groups of data, and the user experience is improved; and generating code programs corresponding to the plurality of sub-pictures through the first setting program and the plurality of sub-pictures, calling the pictures through the code programs to realize the consistency of software development and design, simplifying the software development flow and optimizing the software development operation.
The second aspect of the embodiment of the present application provides a characters is cut picture equipment in batches for motormeter, includes:
the data extraction unit is used for acquiring a first form from a first setting program, acquiring a form template, starting the first setting program and generating a second form according to the form template and the first form; starting a first setting tool program, and generating a configuration file according to the second table, wherein the configuration file is used for a second setting tool program;
the picture generating unit is used for acquiring a set picture, starting the second setting tool program, extracting multiple groups of data in the configuration file and transmitting the multiple groups of data to the second setting program in parallel; and starting the second setting program, and sequentially intercepting a plurality of sub-pictures corresponding to the plurality of groups of data in the set picture according to the plurality of groups of data.
The text graph cutting device applied to the automobile instrument comprises a data extraction unit and a picture generation unit, wherein the data extraction unit is used for acquiring a first form from a first setting program, acquiring a form template, starting the first setting program, and generating a second form according to the form template and the first form; starting a first setting tool program, and generating a configuration file according to the second table, wherein the configuration file is used for a second setting tool program; a configuration file is generated through a data extraction unit, maintenance and modification of configuration requirements are realized through a table, and the chart cutting flow is optimized; the picture generating unit is used for acquiring a set picture, starting the second setting tool program, extracting data in the configuration file and transmitting the multiple groups of data to the second setting program in parallel; and starting the second setting program, intercepting the sub-picture corresponding to the data in the set picture according to the data, and realizing quick cutting and modification of the sub-picture through a picture generating unit, thereby optimizing the text cutting flow, shortening the text cutting period, saving the time cost and improving the user experience.
In a third aspect, embodiments of the present application provide an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for performing the steps in the method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program causes a computer to execute the method according to the first aspect.
The embodiment of the application has the following beneficial effects:
it can be seen that, the text batch graph cutting method and the related device applied to the automobile instrument are described in the embodiments of the present application, wherein the text batch graph cutting method includes: acquiring a first form from a first setting program, acquiring a form template, starting the first setting program, and generating a second form according to the form template and the first form; starting a first setting tool program, and generating a configuration file according to the second table, wherein the configuration file is used for a second setting tool program; acquiring a setting picture, starting the second setting tool program, extracting data in the configuration file, and transmitting the multiple groups of data to the second setting program in parallel; and starting the second setting program, and intercepting the sub-picture corresponding to the configuration file in the setting picture according to the data. Therefore, by implementing the embodiment of the application, on one hand, the text chart cutting process is optimized, the text chart cutting period is shortened, on the other hand, the change and the maintenance of the configuration requirements are realized, the operation is simple and convenient, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a text batch chart cutting method applied to an automobile instrument according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a text batch chart cutting device 200 applied to an automobile instrument according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of an electronic device 300 according to an embodiment of the present application.
Fig. 4 is a flowchart illustrating a method for generating a configuration file according to an embodiment of the present application.
Fig. 5 is a schematic flow chart of a sub-tile clipping cycle according to an embodiment of the present disclosure.
Fig. 6 is a schematic diagram illustrating a connection between a computer-readable storage medium and a processor according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device in the present application may include a smart phone (e.g., an Android phone, an iOS phone, a windows phone, etc.), a tablet computer, a palm computer, a notebook computer, a Mobile internet device MID (MID), etc., and the electronic devices are merely examples, but not exhaustive, and include but are not limited to the electronic devices, and for convenience of description, the electronic devices are referred to as User equipment UE (UE) in the following embodiments. Of course, in practical applications, the user equipment is not limited to the above presentation form, and may also include: intelligent vehicle-mounted terminal, computer equipment and the like.
Referring to fig. 1, fig. 1 is a schematic flow chart diagram of a text batch graph cutting method applied to an automobile instrument according to an embodiment of the present application, where the method is applied to an electronic device, and the electronic device includes: the vehicle-mounted liquid crystal instrument comprises the following steps:
step 101, obtaining a first form from a first setting program, obtaining a form template, starting the first setting program, and generating a second form according to the form template and the first form.
Optionally, after the first table is obtained from the first setting program, the first content of the first table is extracted, where the content of the first table includes: initial demand data, the initial demand data including one or more of the following entries: the method comprises the following steps of character font, foreground color, background color, alignment mode, font size and font thickness, and extracting first content of a first table comprises the following steps: the method comprises the steps of obtaining a first position set, wherein the first position set comprises a plurality of positions, extracting the content of a first table according to the first position set to obtain a plurality of cell contents, forming the first content set by the plurality of cell contents, and storing the first content set, wherein each position corresponds to one cell in the first table.
Further, after the first table is obtained from the first setting program, the modification instruction is detected, if the modification instruction is detected, the modification content of the modification instruction is obtained, the modification target and the modification data are determined according to the modification content, and the first table is updated according to the modification target and the modification data.
Further, keyword matching is carried out on the first content set, the first keyword set is obtained, the first content set is matched according to the first keyword set, keywords corresponding to the first content set are determined, tags corresponding to the keywords are obtained, the first content set is marked according to the tags, the marked first content set is obtained, and the first content set is stored.
Further, extracting second content of the first table to obtain a second content set, and performing content extraction circulation on the first table until the extraction result of the Nth content set is an empty table, and completing content extraction of the first table, wherein N is greater than 0.
Optionally, the table template is obtained, the first setting program is started, and a merge cycle is executed from the first cell content of the table template according to the first table content until the last cell merge cycle of the table template is completed, where the merge cycle includes: extracting cell contents from a form template to obtain cell labels, matching the contents of a first form according to the cell labels, determining a content set corresponding to the cell labels, and forming a column in a second form according to the content set and the cell labels, wherein the cell labels are the first cells of the column, and the contents of each cell in the content set sequentially correspond to one cell; and executing a merging loop according to the form template and the first form to obtain a second form, wherein the content of the second form comprises: and storing the second table according with the requirement data in the template format.
And 102, starting a first setting tool program, and generating a configuration file according to the second table, wherein the configuration file is used for a second setting tool program.
Optionally, a first setting tool program is started, where the first setting tool program is applied to the first setting program and used to change the format of the second table, obtain the set format, obtain the second table, open the second table in the first setting program, determine a format mapping corresponding to the set format according to the set format, add the format mapping to a working area of the first setting program, add the format mapping to the second table in the first setting program to obtain a mapped second table, determine that the mapped second table is the configuration file, and store the configuration file in the database, where the configuration file is used in the second setting working program.
Further, the second table contains a plurality of cell data, the total row number N of the second table is determined, and the second cell contains N-1 group data, wherein the ith row of cell data is the ith-1 group data of the second table, wherein N >0, 1< i < N; for example, the total number of rows in the second table is determined to be 3, and it is determined that 2 sets of data are included in the second table, where the cell data in the second row is the 1 st set of data, and the cell data in the third row is the 2 nd set of data.
Step 103, acquiring a setting picture, starting the second setting tool program, extracting multiple groups of data in the configuration file, and transmitting the multiple groups of data to the second setting program in parallel.
Optionally, the method includes obtaining a setting picture, starting a second setting working program, where the second setting working program is used to extract data in the configuration file and transmit the data to the second setting program, determining a total number N of data included in the configuration file, and executing an extraction cycle on the configuration file to obtain data of the configuration file until the nth set of data is extracted, where the extraction cycle includes: determining the line number corresponding to the ith group of data in the configuration file, namely the ith group of data is the (i + 1) th line of data in the configuration file, extracting the ith group of data according to the configuration file, transmitting the ith group of data to a second setting program through an application programming interface, requesting the second setting program to return a clipping response, wherein the clipping response is used for determining that the ith sub-picture corresponding to the ith group of data is successfully clipped, receiving the clipping response returned by the second setting program, and making i be (i + 1), updating a parameter i, and extracting the data in the configuration file, wherein N is greater than 0, and 0< i < N + 1.
And 104, starting the second setting program, and intercepting a plurality of sub-pictures corresponding to the plurality of groups of data in the set picture according to the plurality of groups of data.
Optionally, the second setting program is started, the second setting program is controlled to receive multiple sets of data of the configuration file transmitted by the second setting tool program, the setting picture is cut according to the multiple sets of data to obtain multiple sub-pictures corresponding to the multiple sets of data, it is determined that the multiple sub-pictures are cut, a cutting response sent by the second setting program is received, the cutting response is used for determining that the multiple sub-pictures are cut, the first setting program is started, multiple corresponding code programs are generated according to the multiple sub-pictures, a one-to-one mapping relationship between the multiple sub-pictures and the multiple code programs is established, the multiple sub-pictures, the multiple code programs and the mapping relationship are stored in a third table, and the third table is stored in the first setting program.
Further, the profile data includes: the text information and the text basic attribute, wherein the text information comprises: text content, cut text and the like, and basic text attributes comprise one or more of the following: the method for obtaining the sub-picture corresponding to the configuration file data by cutting the set picture according to the configuration file data comprises the following steps: the method comprises the steps of obtaining character information, determining a cutting position and a cutting range according to the character information and a set picture, cutting the set picture according to the cutting position and the cutting range to obtain a cut picture, obtaining basic character attributes, and modifying the cut picture according to the basic character attributes to obtain a sub-picture.
It can be seen that, the text batch graph cutting method applied to the automobile instrument provided by the embodiment of the application includes: acquiring a first form from a first setting program, acquiring a form template, starting the first setting program, and generating a second form according to the form template and the first form; starting a first setting tool program, and generating a configuration file according to the second table, wherein the configuration file is used for a second setting tool program; acquiring a setting picture, starting the second setting tool program, extracting multiple groups of data in the configuration file, and transmitting the multiple groups of data to the second setting program in parallel; and starting the second setting program, and intercepting a plurality of sub-pictures corresponding to the plurality of groups of data in the set picture according to the plurality of groups of data. Therefore, by implementing the embodiment of the application, the text chart cutting process is optimized, the text chart cutting period is shortened, the change and the maintenance of configuration requirements are realized, the operation is simple and convenient, and the user experience is improved.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a text-cutting device 200 applied to an automobile instrument according to an embodiment of the present application, where the text-cutting device 200 includes a data extraction unit 201 and a picture generation unit 202, where:
a data extracting unit 201, configured to obtain a first form from a first setting program, obtain a form template, start the first setting program, and generate a second form according to the form template and the first form; starting a first setting tool program, and generating a configuration file according to the second table, wherein the configuration file is used for a second setting tool program;
a picture generating unit 202, configured to obtain a setting picture, start the second setting tool program, extract data in the configuration file, and transmit the multiple sets of data to the second setting program in parallel; and starting the second setting program, and intercepting a sub-picture corresponding to the data in the setting picture according to the data.
In a possible example, the data extracting unit 201 is specifically configured to, in order to obtain a first table from a first setting program, obtain a table template, start the first setting program, and generate a second table according to the table template and the first table, the first setting program, and the second setting program are further configured to: after a first table is obtained from a first setting program, first content of the first table is extracted, wherein the content of the first table comprises: initial demand data, the initial demand data including one or more of the following entries: the method comprises the following steps of character font, foreground color, background color, alignment mode, font size and font thickness, and extracting first content of a first table comprises the following steps: acquiring a first position set, wherein the first position set comprises a plurality of positions, extracting the content of a first table according to the first position set to obtain a plurality of cell contents, the plurality of cell contents form a first content set, each position corresponds to one cell in the first table, and the first content set is stored; further, keyword matching is carried out on the first content set, a first keyword set is obtained, the first content set is matched according to the first keyword set, keywords corresponding to the first content set are determined, tags corresponding to the keywords are obtained, the first content set is marked according to the tags, the marked first content set is obtained, and the first content set is stored; further, extracting second content of the first table to obtain a second content set, and performing content extraction circulation on the first table until the extraction result of the Nth content set is an empty table, wherein the content of the first table is extracted completely, and N is greater than 0; acquiring a form template, starting a first setting program, and executing a merging cycle from the first cell content of the form template according to the first form content until the execution of the last cell merging cycle of the form template is finished, wherein the merging cycle comprises the following steps: extracting cell contents from a form template to obtain cell labels, matching the contents of a first form according to the cell labels, determining a content set corresponding to the cell labels, and forming a column in a second form according to the content set and the cell labels, wherein the cell labels are the first cells of the column, and the contents of each cell in the content set sequentially correspond to one cell; and executing a merging loop according to the form template and the first form to obtain a second form, wherein the content of the second form comprises: and storing the second table according with the requirement data in the template format.
In a possible example, the method is used for generating a second table according to the table template and the first table; starting a first setting tool program, generating a configuration file according to the second table, where the configuration file is used in the aspect of a second setting tool program, and the data extraction unit 201 is specifically configured to: starting a first setting tool program, wherein the first setting tool program is applied to the first setting program and used for changing the format of a second table, acquiring a set format, acquiring the second table, opening the second table in the first setting program, determining a format mapping corresponding to the set format according to the set format, adding the format mapping to a working area of the first setting program, adding the format mapping to the second table in the first setting program to obtain a mapped second table, determining the mapped second table as a configuration file, and storing the configuration file into a database, wherein the configuration file is used for the second setting working program; further, the second table includes a plurality of cell data, the total row number N of the second table is determined, and the second cell includes N-1 group data, where the ith row of cell data is the ith-1 group data of the second table, where N >0, and 1< i < N.
In a possible example, the picture generating unit 202 is specifically configured to, in order to obtain a setting picture, start the second setting tool program, extract multiple sets of data in the configuration file, and transmit the multiple sets of data to the second setting tool program in parallel: acquiring a set picture, starting a second set working program, wherein the second set working program is used for extracting data in a configuration file and transmitting the data to the second set program, determining the total number N of the data contained in the configuration file, and executing an extraction cycle on the configuration file to obtain the data of the configuration file until the extraction of the Nth group of data is completed, wherein the extraction cycle comprises the following steps: determining the line number corresponding to the ith group of data in a configuration file, namely the ith group of data is the (i + 1) th line of data in the configuration file, extracting the ith group of data according to the configuration file, transmitting the ith group of data into a second setting program through an API (application program interface), requesting the second setting program to return a clipping response, wherein the clipping response is used for determining that the ith sub-picture corresponding to the ith group of data is successfully clipped, receiving the clipping response returned by the second setting program, and making i equal to i +1, updating a parameter i, and extracting the data in the configuration file, wherein N >0, and 0< i < N +1, and the API comprises: application programming interfaces, and the like, without limitation.
In a possible example, a first setting tool is started, a configuration file is generated according to the second table, the configuration file is used for the second setting tool, and the picture generating unit 202 is specifically configured to: starting a second setting program, controlling the second setting program to receive multiple groups of data of a configuration file transmitted by a second setting tool program, cutting the setting picture according to the multiple groups of data to obtain multiple sub-pictures corresponding to the multiple groups of data, determining that the cutting of the multiple sub-pictures is finished, receiving a cutting response sent by the second setting program, wherein the cutting response is used for determining that the cutting of the multiple sub-pictures is finished, starting the first setting program, generating multiple corresponding code programs according to the multiple sub-pictures, establishing a one-to-one mapping relation between the multiple sub-pictures and the multiple code programs, storing the multiple sub-pictures, the multiple code programs and the mapping relation into a third table, and storing the third table into the first setting program; further, the profile data includes: the text information and the text basic attribute, wherein the text information comprises: text content, cut text and the like, and basic text attributes comprise one or more of the following: the method for obtaining the sub-picture corresponding to the configuration file data by cutting the set picture according to the configuration file data comprises the following steps: the method comprises the steps of obtaining character information, determining a cutting position and a cutting range according to the character information and a set picture, cutting the set picture according to the cutting position and the cutting range to obtain a cut picture, obtaining basic character attributes, and modifying the cut picture according to the basic character attributes to obtain a sub-picture.
The data extraction unit is used for acquiring a first form from a first setting program, acquiring a form template, starting the first setting program, and generating a second form according to the form template and the first form; starting a first setting tool program, and generating a configuration file according to the second table, wherein the configuration file is used for a second setting tool program; the picture generating unit is used for acquiring a set picture, starting the second setting tool program, extracting multiple groups of data in the configuration file and transmitting the multiple groups of data to the second setting program in parallel; starting the second setting program, and intercepting a plurality of sub-pictures corresponding to the plurality of groups of data in the setting picture according to the plurality of groups of data, so that the embodiment of the application is implemented, a configuration file is generated through a data extraction unit, maintenance and modification of configuration requirements are realized through a table, and the chart cutting process is optimized; the rapid cutting and modification of a plurality of sub-pictures are realized through the picture generating unit, the text cutting period is shortened, and the time cost is saved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device 300 according to an embodiment of the present application, where the vehicle control device 300 includes a processor, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for performing the following steps:
acquiring a first form from a first setting program, acquiring a form template, starting the first setting program, and generating a second form according to the form template and the first form;
starting a first setting tool program, and generating a configuration file according to the second table, wherein the configuration file is used for a second setting tool program;
acquiring a setting picture, starting the second setting tool program, extracting multiple groups of data in the configuration file, and transmitting the multiple groups of data to the second setting program in parallel;
and starting the second setting program, and intercepting a plurality of sub-pictures corresponding to the plurality of groups of data in the set picture according to the plurality of groups of data.
It can be seen that, in the embodiment of the present application, the electronic device first obtains a first form from a first setting program, obtains a form template, starts the first setting program, and generates a second form according to the form template and the first form; secondly, starting a first setting tool program, and generating a configuration file according to the second table, wherein the configuration file is used for a second setting tool program; finally, obtain and set up the picture, start the second sets for the instrument procedure, draws multiunit data in the configuration file, and parallelly will multiunit data transmission extremely the second sets for the procedure, starts the second sets for the procedure, according to multiunit data intercepting set up in the picture with a plurality of subpictures that multiunit data correspond, it is thus clear that this application embodiment has solved maintenance and change problem when configuration requirement modifies, has optimized the characters and has cut the picture flow, has shortened the characters and has cut the picture cycle, and a plurality of picture layers cause chaotic problem when having avoided the characters to cut the picture simultaneously, have realized cutting the picture in batches to setting for the picture.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating a method for generating a configuration file according to an embodiment of the present application, as shown in fig. 4, the method includes:
step 401, obtain a first form from a first setting program, and obtain a form template.
Optionally, the first form is obtained from the first setting program, the content of the first form is obtained, and the form template is obtained, where the content of the first form includes: initial demand data, the initial demand data including one or more of the following entries: character font, foreground color, background color, alignment mode, font size, font thickness, etc., extracting first content of the first form, the first content including: the content of any entry in the initial demand data, wherein extracting the first content of the first table comprises: the method comprises the steps of obtaining a first position set, wherein the first position set comprises a plurality of positions, extracting the content of a first table according to the first position set to obtain a plurality of cell contents, forming the first content set by the plurality of cell contents, and storing the first content set, wherein each position corresponds to one cell in the first table.
Further, after the first table is obtained from the first setting program, the modification instruction is detected, if the modification instruction is detected, the modification content of the modification instruction is obtained, the modification target and the modification data are determined according to the modification content, and the first table is updated according to the modification target and the modification data.
Further, keyword matching is carried out on the first content set, the first keyword set is obtained, the first content set is matched according to the first keyword set, keywords corresponding to the first content set are determined, tags corresponding to the keywords are obtained, the first content set is marked according to the tags, the marked first content set is obtained, and the first content set is stored.
Further, extracting second content of the first table to obtain a second content set, and performing content extraction circulation on the first table until the extraction result of the Nth content set is an empty table, and completing content extraction of the first table, wherein N is greater than 0.
Step 402, a first setting program is started, and a second form is generated according to the form template and the first form.
Optionally, the first setting program is started, and according to the first table content, a merge cycle is executed from the first cell content of the table template to the end of the execution of the last cell merge cycle of the table template, where the merge cycle includes: extracting cell contents from a form template to obtain cell labels, matching the contents of a first form according to the cell labels, determining a content set corresponding to the cell labels, and forming a column in a second form according to the content set and the cell labels, wherein the cell labels are the first cells of the column, and the contents of each cell in the content set sequentially correspond to one cell; and executing a merging loop according to the form template and the first form to obtain a second form, wherein the content of the second form comprises: and storing the second table according with the requirement data in the template format.
And 403, starting a first setting tool program, and generating a configuration file according to the second table.
Optionally, a first setting tool program is started, where the first setting tool program is applied to the first setting program and used to change the format of the second table, obtain the set format, obtain the second table, open the second table in the first setting program, determine a format mapping corresponding to the set format according to the set format, add the format mapping to a working area of the first setting program, add the format mapping to the second table in the first setting program to obtain a mapped second table, determine that the mapped second table is the configuration file, and store the configuration file in the database, where the configuration file is used in the second setting working program.
Further, the second table includes a plurality of cell data, the total row number N of the second table is determined, and the second cell includes N-1 group data, where the ith row of cell data is the ith-1 group data of the second table, where N >0, and 1< i < N.
Referring to fig. 5, fig. 5 is a schematic flow chart of a method of sub-tile clipping cycle according to an embodiment of the present application, as shown in fig. 5, the method includes:
step 501, obtaining a setting picture, starting the second setting tool program, and extracting the ith group of data in the configuration file.
Optionally, the method includes obtaining a setting picture, starting a second setting working program, where the second setting working program is used to extract data in the configuration file and transmit the data to the second setting program, determining a total number N of data included in the configuration file, and executing an extraction cycle on the configuration file to obtain data of the configuration file until the nth set of data is extracted, where the extraction cycle includes: and determining the line number corresponding to the ith group of data in the configuration file, namely the ith group of data is the (i + 1) th line of data in the configuration file, and extracting the ith group of data according to the configuration file.
Step 502, transmitting the ith group of data to the second setting program.
Optionally, after the ith group of data is extracted from the configuration file, the ith group of data is transmitted to the second setting program through the application programming interface.
Step 503, starting the second setting program, and capturing an ith sub-picture corresponding to the ith group of data in the setting picture according to the ith group of data.
It should be noted that, in the embodiment of the present application, the tables are all electronic tables, and the pictures are all electronic pictures.
Optionally, a second setting program is started, an ith sub-picture corresponding to the ith group of data in the setting picture is captured according to the ith group of data, a cropping response is returned to the second setting program, the cropping response is used to determine that the cropping of the ith sub-picture corresponding to the ith group of data is successful, and i is set to i +1, where the cropping response includes: the parameter i, i > 0.
Referring to fig. 6, fig. 6 is a schematic diagram illustrating a connection between a computer-readable storage medium 600 and a processor 601 according to an embodiment of the present application, as shown in fig. 6, the computer-readable storage medium 600 includes a computer program 602, and the computer program 602 includes: the computer readable medium 600 is connected with the processor 601, the computer readable medium 600 transmits the program instructions to the processor 601, and the processor 601 executes the program instructions to enable 602 to execute the text batch graph cutting method applied to the automobile instrument.
Embodiments of the present application also provide a computer storage medium for storing a computer program, where the computer program is executed by a processor to implement part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a text-to-image device applied to an automobile instrument.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, said computer comprising a text-cutting device for use in a vehicle instrument.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the above-described modules is merely a logical division, and other divisions may be realized in practice, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some interfaces, and may be in an electrical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated modules, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific implementation and application scope, and in view of the above, the content of the present specification should not be construed as a limitation to the present application.

Claims (17)

1. A character batch graph cutting method applied to an automobile instrument is characterized by comprising the following steps:
acquiring a first form from a first setting program, acquiring a form template, starting the first setting program, and generating a second form according to the form template and the first form;
starting a first setting tool program, and generating a configuration file according to the second table, wherein the configuration file is used for a second setting tool program;
acquiring a setting picture, starting the second setting tool program, extracting multiple groups of data in the configuration file, and transmitting the multiple groups of data to the second setting program in parallel;
and starting the second setting program, and sequentially intercepting a plurality of sub-pictures corresponding to the plurality of groups of data in the set picture according to the plurality of groups of data.
2. The method according to claim 1, wherein said sequentially truncating a plurality of sub-pictures corresponding to the plurality of groups of data in the setting picture according to the plurality of groups of data further comprises:
starting the first set program, and generating a plurality of corresponding code programs according to the plurality of sub-pictures;
establishing a mapping relation between the plurality of sub-pictures and the plurality of code programs, and storing the plurality of sub-pictures, the plurality of code programs and the mapping relation into a third table;
storing the third table.
3. The method of claim 1, wherein the generating a second form from the form template and the first form comprises:
acquiring a template format of the form template;
acquiring the content of the first table, wherein the content of the first table comprises: UI initial requirement data, wherein the UI initial requirement data comprises one or more of the following items: character font, foreground color, background color, alignment mode, font size and font thickness;
modifying the content of the first table according to the template format to obtain a second table, wherein the content of the second table comprises: requirement data in the template format.
4. The method of claim 1, wherein the extracting the plurality of sets of data from the configuration file and the transmitting the plurality of sets of data to the second configuration program in parallel comprises:
and the second setting tool program sequentially extracts multiple groups of data in the configuration file and transmits the multiple data to the second setting program through an application programming interface.
5. The method according to claim 1, wherein said truncating a plurality of sub-pictures corresponding to the plurality of sets of data from the plurality of sets of data comprises:
any one of the sets of data comprises: the method comprises the following steps of character information and character basic attributes, wherein the character information comprises: the text content, the text basic attribute comprises one or more than one of the following: font color, font type, background color, alignment mode, font size and font thickness;
acquiring the character information, and cutting the set picture according to the character information to obtain a cut picture;
and acquiring basic character attributes, and modifying the cut picture according to the basic character attributes to obtain a sub-picture.
6. The method of claim 1, wherein generating a configuration file from the second table comprises:
acquiring a setting format, and generating the configuration file according to the second table and the setting format through the first setting tool program, wherein the configuration file comprises: a plurality of sets of data, the plurality of sets of data comprising: the character content, the picture name, the character font, the foreground color, the background color, the alignment mode, the font size and the font thickness, wherein the plurality of groups of data are used for the second setting program;
and storing the configuration file into a database.
7. The method of claim 1, wherein obtaining the first table from the first set-up procedure further comprises:
detecting a modification instruction, the modification instruction comprising: a maintenance configuration table, which obtains the maintenance configuration content of the maintenance configuration table, wherein the maintenance configuration content comprises: UI maintenance requirement data, the UI maintenance requirement data comprising one or more of the following entries: and updating the first table according to the maintenance configuration content, wherein the first table comprises character fonts, foreground colors, background colors, alignment modes, font sizes and font thicknesses.
8. The utility model provides a be applied to motormeter's characters batch chart cutting equipment, its characterized in that, equipment includes data extraction element and picture generation unit, wherein:
the data extraction unit is used for acquiring a first form from a first setting program, acquiring a form template, starting the first setting program and generating a second form according to the form template and the first form; starting a first setting tool program, and generating a configuration file according to the second table, wherein the configuration file is used for a second setting tool program;
the picture generating unit is used for acquiring a set picture, starting the second setting tool program, extracting multiple groups of data in the configuration file and transmitting the multiple groups of data to the second setting program in parallel; and starting the second setting program, and sequentially intercepting a plurality of sub-pictures corresponding to the plurality of groups of data in the set picture according to the plurality of groups of data.
9. The device of claim 8, wherein the picture generation unit is further configured to:
starting the first set program, and generating a plurality of corresponding code programs according to the plurality of sub-pictures;
establishing a mapping relation between the plurality of sub-pictures and the plurality of code programs, and storing the plurality of sub-pictures, the plurality of code programs and the mapping relation into a third table;
storing the third table.
10. The device of claim 8, wherein, in generating the second form based on the form template and the first form, the data extraction unit is specifically configured to:
acquiring a template format of the form template;
acquiring the content of the first table, wherein the content of the first table comprises: initial demand data, the initial demand data including one or more of the following entries: character font, foreground color, background color, alignment mode, font size and font thickness;
modifying the content of the first table according to the template format to obtain a second table, wherein the content of the second table comprises: requirement data in the template format.
11. The device according to claim 8, wherein the data extraction unit is configured to extract multiple sets of data in the configuration file and transmit the multiple sets of data to the second set program side in parallel, and is specifically configured to:
and the second setting tool program sequentially extracts a plurality of groups of data in the configuration file and transmits the plurality of groups of data to the second setting program through an application programming interface.
12. The apparatus according to claim 8, wherein the image generating unit is specifically configured to, in accordance with the plurality of sets of data, intercept a plurality of sub-images corresponding to the plurality of sets of data in the setting image:
any one of the sets of data comprises: the method comprises the following steps of character information and character basic attributes, wherein the character information comprises: the text content, the text basic attribute comprises one or more than one of the following: font color, font type, background color, alignment mode, font size and font thickness;
acquiring the character information, and cutting the set picture according to the character information to obtain a cut picture;
and acquiring basic character attributes, and modifying the cut picture according to the basic character attributes to obtain a sub-picture.
13. The apparatus according to claim 8, wherein, in an aspect after the first table is obtained from the first setting program, the data extraction unit is further configured to:
detecting a modification instruction, the modification instruction comprising: a maintenance configuration table, which obtains the maintenance configuration content of the maintenance configuration table, wherein the maintenance configuration content comprises: UI maintenance requirement data, the UI maintenance requirement data comprising one or more of the following entries: and updating the first table according to the maintenance configuration content, wherein the first table comprises character fonts, foreground colors, background colors, alignment modes, font sizes and font thicknesses.
14. The device of claim 8, wherein, in generating the profile according to the second table, the data extraction unit is specifically configured to:
acquiring a setting format, and generating the configuration file according to the second table and the setting format through the first setting tool program, wherein the configuration file comprises: a plurality of sets of data, the plurality of sets of data comprising: the character content, the picture name, the character font, the foreground color, the background color, the alignment mode, the font size and the font thickness, wherein the plurality of groups of data are used for the second setting program;
and storing the configuration file into a database.
15. An electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be processed by the processor, the programs comprising instructions for performing the steps of the method of any of claims 1-7.
16. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-7.
17. An automobile, characterized by comprising an entire automobile module and the text batch chart cutting device or the electronic device of any one of claims 8 to 15.
CN201910179855.8A 2019-03-11 2019-03-11 Character batch graph cutting method applied to automobile instrument and related equipment Active CN111688605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910179855.8A CN111688605B (en) 2019-03-11 2019-03-11 Character batch graph cutting method applied to automobile instrument and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910179855.8A CN111688605B (en) 2019-03-11 2019-03-11 Character batch graph cutting method applied to automobile instrument and related equipment

Publications (2)

Publication Number Publication Date
CN111688605A true CN111688605A (en) 2020-09-22
CN111688605B CN111688605B (en) 2022-07-12

Family

ID=72474562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910179855.8A Active CN111688605B (en) 2019-03-11 2019-03-11 Character batch graph cutting method applied to automobile instrument and related equipment

Country Status (1)

Country Link
CN (1) CN111688605B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112287646A (en) * 2020-10-27 2021-01-29 中国海洋石油集团有限公司 Instrument data sheet filling method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004062659A (en) * 2002-07-30 2004-02-26 Canon Inc Form processing device, form processing method, storage medium and program
CN102222354A (en) * 2010-04-19 2011-10-19 腾讯科技(深圳)有限公司 Method and system for automatically drawing graphical interface
CN102750148A (en) * 2012-06-08 2012-10-24 Tcl集团股份有限公司 Media information display method and device
CN104574465A (en) * 2013-10-24 2015-04-29 西安造新电子信息科技有限公司 Embedded image synthesis method
CN105739963A (en) * 2014-12-12 2016-07-06 博雅网络游戏开发(深圳)有限公司 Method and device for generating webpage

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004062659A (en) * 2002-07-30 2004-02-26 Canon Inc Form processing device, form processing method, storage medium and program
CN102222354A (en) * 2010-04-19 2011-10-19 腾讯科技(深圳)有限公司 Method and system for automatically drawing graphical interface
CN102750148A (en) * 2012-06-08 2012-10-24 Tcl集团股份有限公司 Media information display method and device
CN104574465A (en) * 2013-10-24 2015-04-29 西安造新电子信息科技有限公司 Embedded image synthesis method
CN105739963A (en) * 2014-12-12 2016-07-06 博雅网络游戏开发(深圳)有限公司 Method and device for generating webpage

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112287646A (en) * 2020-10-27 2021-01-29 中国海洋石油集团有限公司 Instrument data sheet filling method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111688605B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
CN111950056B (en) BIM display method and related equipment for building informatization model
CN108304562B (en) Question searching method and device and intelligent terminal
US20180376335A1 (en) Method and device for realizing wireless access point connection authentication
CN112651475B (en) Two-dimensional code display method, device, equipment and medium
CN107329976B (en) Webpage paging method and device, computer equipment and computer readable storage medium
CN107092634A (en) The implementation method and device of page preview
CN105808307B (en) Page display method and device
CN113190152A (en) Method and device for switching application program theme
CN115526160A (en) Rich text processing method, device and equipment and storage medium
CN107122104B (en) Data display method and device
CN111688605B (en) Character batch graph cutting method applied to automobile instrument and related equipment
CN112910741B (en) Interface testing method and device, computer equipment and storage medium
CN110134920B (en) Pictogram compatible display method, device, terminal and computer readable storage medium
CN112214701A (en) Page display method and system, storage medium and electronic device
CN109614592B (en) Text processing method and device, storage medium and electronic equipment
CN115065945B (en) Short message link generation method and device, electronic equipment and storage medium
CN105511642A (en) Input method and input device
CN114116712A (en) Extended field processing method and device, electronic equipment and storage medium
CN112367535B (en) Generation method and device of active user interface
CN112328940A (en) Method and device for embedding transition page into webpage, computer equipment and storage medium
CN113239068A (en) Chart custom generation method, device, equipment, medium and program product
CN115859413B (en) Data insertion method and device of CAD (computer aided design) client, storage medium and electronic device
JP2007025526A (en) System and method for providing image content and drawing image
CN112784132A (en) Data acquisition method and device and computer storage medium
CN111723316B (en) Character string rendering method and device, terminal equipment and computer 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