CN110210010A - PSD file editing method, electronic equipment based on demixing technology realization - Google Patents
PSD file editing method, electronic equipment based on demixing technology realization Download PDFInfo
- Publication number
- CN110210010A CN110210010A CN201910419059.7A CN201910419059A CN110210010A CN 110210010 A CN110210010 A CN 110210010A CN 201910419059 A CN201910419059 A CN 201910419059A CN 110210010 A CN110210010 A CN 110210010A
- Authority
- CN
- China
- Prior art keywords
- file
- layer file
- layer
- text
- psd
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
Abstract
The invention discloses a kind of PSD file editing methods realized based on demixing technology, electronic equipment, storage medium, its method includes: to obtain the corresponding figure layer file packet of each PSD file based on file set of the layering analysis module batch parsing comprising multiple PSD files;For any figure layer file packet, following operation is executed: determining the first figure layer file in the figure layer file packet comprising text;Editing and processing, corresponding second figure layer file after being edited are carried out to the text in the first figure layer file;The first figure layer file in the figure layer file packet is replaced using the second figure layer file, merges the figure layer file packet, corresponding PSD file after being edited.Using the present invention, rapidly PSD file can be edited, and be not necessarily to special Viewing software tool, reduce the requirement to tool operation technical ability.
Description
Technical field
The present invention relates to file process fields, and in particular to it is a kind of based on demixing technology realize PSD file editing method,
Electronic equipment, storage medium.
Background technique
The file size of PSD (Photoshop Document) file is larger, and tens even up to a hundred million.Check PSD
When file, generally require through special Viewing software tool open, windows included Photo Viewer can not open PSD
File.Since PSD file is larger, when using special Viewing software tool open PSD file, time-consuming also can be longer.And specially
The Viewing software tool operation of door is more complicated, higher to the technical requirements degree of operator.
Further, such as caricature, PSD (Photoshop Document) file is generally used to store.When needing to caricature
PSD file in text when being edited, the prior art is generally only taken text from PSD file by the way of scratching figure
Out, text is edited.But scratching figure mode so only can solve the editor of the text surrounded in PSD file by textbox
Problem.If text can not be taken without using textbox in PSD file.The prior art is also by PSD file factor shadow itself
Ring, it is higher to the technical requirements of operator when being edited to file, and to text carry out editing and processing when, PSD file behaviour
It also can be longer when making trouble.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State the PSD file editing method realized based on demixing technology, the electronic equipment, storage medium of problem.
According to an aspect of the invention, there is provided a kind of PSD file editing method realized based on demixing technology, packet
It includes:
Include the file set of multiple PSD files based on layering analysis module batch parsing, it is corresponding to obtain each PSD file
Figure layer file packet;
For any figure layer file packet, following operation is executed:
Determine the first figure layer file in the figure layer file packet comprising text;Text in first figure layer file is compiled
Collect processing, corresponding second figure layer file after being edited;
The first figure layer file in the figure layer file packet is replaced using the second figure layer file, merges the figure layer file packet, obtains
Corresponding PSD file after to editor.
According to another aspect of the present invention, provide a kind of electronic equipment, comprising: processor, memory, communication interface and
Communication bus, processor, memory and communication interface complete mutual communication by communication bus;
Memory makes processor execute following operation for storing an at least executable instruction, executable instruction:
Include the file set of multiple PSD files based on layering analysis module batch parsing, it is corresponding to obtain each PSD file
Figure layer file packet;
For any figure layer file packet, following operation is executed:
Determine the first figure layer file in the figure layer file packet comprising text;Text in first figure layer file is compiled
Collect processing, corresponding second figure layer file after being edited;
The first figure layer file in the figure layer file packet is replaced using the second figure layer file, merges the figure layer file packet, obtains
Corresponding PSD file after to editor.
According to another aspect of the invention, a kind of computer storage medium is provided, at least one is stored in storage medium
Executable instruction, executable instruction make processor execute following operation:
Include the file set of multiple PSD files based on layering analysis module batch parsing, it is corresponding to obtain each PSD file
Figure layer file packet;
For any figure layer file packet, following operation is executed:
Determine the first figure layer file in the figure layer file packet comprising text;Text in first figure layer file is compiled
Collect processing, corresponding second figure layer file after being edited;
The first figure layer file in the figure layer file packet is replaced using the second figure layer file, merges the figure layer file packet, obtains
Corresponding PSD file after to editor.
There is provided according to the present invention based on demixing technology realize PSD file editing method, electronic equipment, storage medium,
Include the file set of multiple PSD files based on layering analysis module batch parsing, obtains the corresponding figure layer text of each PSD file
Part packet;For any figure layer file packet, following operation is executed: determining the first figure layer text in the figure layer file packet comprising text
Part;Editing and processing, corresponding second figure layer file after being edited are carried out to the text in the first figure layer file;Use the second figure
Layer file replaces the first figure layer file in the figure layer file packet, merges the figure layer file packet, corresponding PSD text after being edited
Part.Using the present invention, rapidly PSD file can be edited, and be not necessarily to special Viewing software tool, reduced to tool
The requirement of operative skill.The present invention is based on demixing technologies to get the first figure layer file comprising text, will be to script PSD file
The editing and processing of middle text is converted into the editing and processing to text in figure layer file, reduces editor's difficulty to PSD file, improves
To PSD Document Editing efficiency.Further, the present invention can be processed in batches PSD file, with manually utilize special Viewing software work
Tool editor's PSD file is compared, more rapidly easier, is greatly reduced time and the cost of labor of cost, is more utilized promotion and implementation.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the process of the according to embodiments of the present invention one PSD file editing method realized based on demixing technology
Figure;
Fig. 2 shows the processes of the according to embodiments of the present invention two PSD file editing method realized based on demixing technology
Figure;
Fig. 3 shows the structural schematic diagram of according to embodiments of the present invention four a kind of electronic equipment.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Embodiment one
Fig. 1 shows the process of the according to embodiments of the present invention one PSD file editing method realized based on demixing technology
Figure, as shown in Figure 1, being specifically comprised the following steps: based on the PSD file editing method that demixing technology is realized
Step S101 includes the file set of multiple PSD files based on layering analysis module batch parsing, obtains each
The corresponding figure layer file packet of PSD file.
In the present embodiment file set include multiple PSD files, can once batch to multiple PSD files at
Reason substantially increases treatment effeciency compared with being manually once only capable of one PSD file of processing.File set can also only include
One PSD file, herein without limitation.
Multiple PSD files directly can be stored in designated position by file set, read text by layering analysis module batch
Part set is handled;Alternatively, can choose entrance according to the file set of offer, selecting file set gives layering analysis mould
Block, by layering analysis module batch-processed files set.Layering analysis module, can be according to file set in resolution file set
In conjunction PSD document order (such as name order, size order, creation time sequence any order) to PSD file successively into
Row parsing.For any PSD file in file set, which is to include multiple figure layers by layering analysis module
The figure layer file packet of file.I.e. PSD document analysis is multiple figure layer files, each PSD file corresponding one by layering analysis module
A figure layer file packet, figure layer file packet include the multiple figure layer files that can obtain a PSD document analysis.Figure layer file is figure
Piece formatted file, such as jpg format, png format picture file.Using layering analysis module by the editor to PSD file itself,
Dimensionality reduction is the editor to picture file.The size of PSD file is generally tens even up to a hundred million, and the size of picture file is general
It is several million most more than ten000000, the two is compared, and processing picture file can greatly improve editing and processing efficiency.And to picture file
Processing does not limit special Viewing software tool, reduces the technical requirements to user, also more conducively user is to picture file
Editing and processing.
Step S102 determines the first figure layer file in the figure layer file packet comprising text for any figure layer file packet.
After parsing the file set comprising multiple PSD files based on layering analysis module batch, each PSD file pair is obtained
The figure layer file packet answered, i.e., multiple figure layer file packets.The editing and processing of PSD file is essentially consisted in PSD text in the present embodiment
The editing and processing of text in part.Therefore, right using pictograph identification technology, such as OCR technique for any figure layer file packet
Each figure layer file in figure layer file packet is identified, therefrom identifies the first figure determined in the figure layer file packet comprising text
Layer file.
It by taking the first figure layer file is pure words figure layer file as an example, i.e. include text in the first figure layer file, but do not include
The contents such as textbox.The display of text can not be limited by textbox.The prior art is for the first this display of figure layer file
Mode can not carry out FIG pull handle, can not get text.It further, can also be in text in the first figure layer file in addition to text
Other positions except word include picture etc., but do not include textbox in the first figure layer file.
Step S103 carries out editing and processing, corresponding second figure layer after being edited to the text in the first figure layer file
File.
When carrying out editing and processing to pure words figure layer file, it can first identify to obtain text in the first figure layer file (such as
Identify to obtain text using pictograph identification technology), and record location information of these texts in the first figure layer file.Such as
It is " お は I う " that identification, which obtains text, and position of the shorthand in the first figure layer file is (20,30).Identification is obtained
Text needs to carry out editing and processing, and editing and processing may include such as being corrected to text, modifying mistake, translation, increase annotation
Deng processing.The present embodiment editing and processing by by character translation for the translation text of appointed language for be illustrated.As by " お は
I う " is translated as the translation text " good morning " of Chinese.After obtaining translation text, need according to text in the first figure layer file
In position, will translation text be placed on text position in the first figure layer file, Alternate text is corresponding after being edited
Second figure layer file.
Based on the present embodiment, can effectively solve in the prior art can not the text to not textbox carry out scratch figure editor
The problem of, and the present embodiment is more simple and efficient to the editing and processing of text.Further, carrying out editing and processing to text can be straight
It connects and automatic translation is carried out to the text that identification obtains, obtain translation text, and the position according to text in the first figure layer file
Information replaces the text in the first figure layer file using translation text.It can also provide and Editorial Services is carried out to the first figure layer file
The operation entry of reason edits text so that user can use operation entry, carries out to it editing and processing such as translating and be turned over
Translation word.According to location information of the text in the first figure layer file, the text in the first figure layer file is replaced using translation text
Word.
Step S104 replaces the first figure layer file in the figure layer file packet using the second figure layer file, merges the figure layer
File packet, corresponding PSD file after being edited.
After obtaining the second figure layer file, the first figure layer file in figure layer file packet is replaced using the second figure layer file,
Obtain the figure layer file packet comprising the second figure layer file.Replaced figure layer file packet is merged, it is corresponding after being edited
PSD file.Wherein, the text in edited PSD file has been replaced with translation text, completes the editor to PSD file.
The PSD file editing method realized based on demixing technology provided according to the present invention, based on layering analysis module batch
Amount parsing includes the file set of multiple PSD files, obtains the corresponding figure layer file packet of each PSD file;For any figure layer
File packet executes following operation: determining the first figure layer file in the figure layer file packet comprising text;To in the first figure layer file
Text carry out editing and processing, corresponding second figure layer file after being edited;Figure layer text is replaced using the second figure layer file
The first figure layer file in part packet merges the figure layer file packet, corresponding PSD file after being edited.It, can be with using the present invention
Rapidly PSD file is edited, and is not necessarily to special Viewing software tool, reduces the requirement to tool operation technical ability.This
Invention gets the first figure layer file comprising text based on demixing technology, by the editing and processing to text in script PSD file
It is converted into the editing and processing to text in figure layer file, reduces editor's difficulty to PSD file, improves and PSD Document Editing is imitated
Rate.Further, the present invention can be processed in batches PSD file, with manually utilize special Viewing software tool editor PSD file phase
Than, it is more rapidly easier, greatly reduce time and the cost of labor of cost, more utilizes promotion and implementation.
Embodiment two
Fig. 2 shows the processes of the according to embodiments of the present invention two PSD file editing method realized based on demixing technology
Figure, as shown in Fig. 2, being included the following steps: based on the PSD file editing method that demixing technology is realized
Step S201 includes the file set of multiple PSD files based on layering analysis module batch parsing, obtains each
The Layer Order of the corresponding figure layer file packet comprising multiple figure layer files of PSD file and multiple figure layer files.
Dissection process disposably is carried out to the file set comprising multiple PSD files in bulk, by each PSD file point
Layer, obtains the figure layer file packet of each PSD file.Multiple figure layer files are contained in the figure layer file packet of each PSD file.Figure
Layer file is picture format file, completes to operate the dimensionality reduction of PSD file, and by the editing and processing to PSD file, dimensionality reduction is to figure
The editing and processing of piece formatted file substantially reduces the editing and processing difficulty to PSD file, improves the efficiency to file process.
Further, for any PSD file in file set, layering analysis module is based on by the PSD document analysis
When, when obtaining multiple figure layer files, it is also necessary to which the Layer Order for recording multiple figure layer files facilitates subsequent in replacement figure layer text
When part, the figure layer of other figure layer files in figure layer file packet can be kept suitable according to the corresponding replacement figure layer file of Layer Order
Sequence is constant, does not influence PSD file.
Step S202 is identified using pictograph identification technology for any figure layer file packet and is determined the figure layer file packet
In include text the first figure layer file.
When handling figure layer file packet, need to identify first with pictograph identification technology in figure layer file packet
The first figure layer file comprising text.The first figure layer file is text and textbox figure layer file in the present embodiment.That is the first figure
Text is contained in layer file and frame selects the textbox of text.Textbox can be bubble textbox, rectangle text
The various textboxs such as frame, cloud textbox.When being identified using pictograph identification technology, it can first identify and determine comprising text
The first figure layer file, then identify whether that further comprise textbox (is known according to the kinds of words box type collected in advance
Not).
Step S203 carries out editing and processing, corresponding second figure layer after being edited to the text in the first figure layer file
File.
When carrying out editing and processing to the text in the first figure layer file, need first to identify to obtain the text in the first figure layer file
Word and textbox, and position and dimension information of the shorthand frame in the first figure layer file.The text that identification obtains is carried out
Editing and processing.The description for describing step S103 in embodiment referring to Fig.1 of specific editing and processing, details are not described herein.Due to
Textbox is contained in one figure layer file, can be also normally displayed in textbox to make to translate text, it is also necessary to according to textbox
Dimension information, setting translation text display information.Such as believed according to the size that translation text is arranged in the dimension information of textbox
Breath, font information etc. avoid translation text importing from going out frame, cause to show so that translation text can be normally displayed in textbox
Show unsightly.According to the display information of the translation text of setting, translation text is placed on textbox institute in the first figure layer file
In position, Alternate text, corresponding second figure layer file after being edited.
Further, text and textbox can also be in different figure layer files.In figure layer file packet, the first figure layer text
Part includes text, and third figure layer file includes textbox.The first figure layer file is identified respectively using pictograph identification technology
With third figure layer file.Specifically, the first figure layer file comprising text is first identified, further according to text in the first figure layer file
Location information, identify in other figure layer files at the text point peripheral position whether include textbox, to identify packet
Third figure layer file containing textbox.From position and size of the acquisition textbox in third figure layer file in third figure layer file
Information.Editing and processing is carried out to the text identified in the first figure layer file, the size of textbox in third figure layer file is needed to believe
Breath, the display information of setting translation text.Translation text is placed on the first figure according to the display information of the translation text of setting
In layer file, position is textbox position in third figure layer file, replaces the text in the first figure layer file, is edited
Corresponding second figure layer file afterwards ensures that translation text is normally displayed in textbox.
Step S204 replaces the first figure layer file in the figure layer file packet using the second figure layer file, merges the figure layer
File packet, corresponding PSD file after being edited.
According to the Layer Order of figure layer file, the second figure layer file is placed at the layer position of the first figure layer file, is made
The first figure layer file in figure layer file packet is replaced with the second figure layer file, then replaced figure layer file packet is closed
And corresponding PSD file after being edited.Text has been replaced with translation text in edited PSD file, completes to PSD text
The editor of part.
The PSD file editing method realized based on demixing technology provided according to the present invention, based on layering analysis module batch
Amount parsing includes the file set of multiple PSD files, obtains the corresponding figure layer file packet of each PSD file.To any figure layer text
Part packet is identified, identifies wherein the first figure layer file comprising text and textbox.Except to being identified in the first figure layer file
Text carry out outside editing and processing, it is also necessary to the display information of translation text is set according to the dimension information of textbox, and guarantee turns over
Translation word can be normally displayed in textbox, ensure the display aesthetics of edited PSD file.Further, it is being based on dividing
When layer parsing module batch parsing includes the file set of multiple PSD files, the figure layer of figure layer file in figure layer file packet is recorded
Sequentially, it is easy to use the second figure layer file directly to replace the first figure layer file in figure layer file packet according to Layer Order, makes
The display effect of former PSD file can more preferably be retained by obtaining edited PSD file.
Embodiment three
The embodiment of the present application three provides a kind of nonvolatile computer storage media, computer storage medium be stored with to
Realizing in above-mentioned any means embodiment based on demixing technology can be performed in a few executable instruction, the computer executable instructions
PSD file editing method.
Executable instruction specifically can be used for so that processor executes following operation:
Include the file set of multiple PSD files based on layering analysis module batch parsing, it is corresponding to obtain each PSD file
Figure layer file packet;For any figure layer file packet, following operation is executed: determining to include the first of text in the figure layer file packet
Figure layer file;Editing and processing, corresponding second figure layer file after being edited are carried out to the text in the first figure layer file;It uses
Second figure layer file replaces the first figure layer file in the figure layer file packet, merges the figure layer file packet, corresponding after being edited
PSD file.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: for file
Any PSD file in set, it is based on layering analysis module that the PSD document analysis is literary for the figure layer comprising multiple figure layer files
Part packet;Wherein, figure layer file is picture format file.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: for file
Any PSD file in set, when based on layering analysis module by the PSD document analysis, record parses obtained multiple figures
The Layer Order of layer file.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: for any
Figure layer file packet identifies the first figure layer file determined in the figure layer file packet comprising text using pictograph identification technology.
In a kind of optional embodiment, the first figure layer file is pure words figure layer file;Executable instruction is further
So that processor is executed following operation: identification obtains the text in the first figure layer file, and shorthand is in the first figure layer file
Location information;Editing and processing is carried out to the text that identification obtains;It is turning over for appointed language that editing and processing, which includes by character translation,
Translation word;Translation text is placed on text position in the first figure layer file, it is corresponding after being edited with Alternate text
Second figure layer file.
In a kind of optional embodiment, the first figure layer file is text and textbox figure layer file;Executable instruction
So that processor is executed following operation: identification obtains the text and textbox in the first figure layer file, and shorthand frame
Position and dimension information in the first figure layer file;Editing and processing is carried out to the text that identification obtains;Editing and processing includes will
Character translation is the translation text of appointed language;According to the dimension information of textbox, the display information of setting translation text;Display
Information includes translation text size information and/or font information;Translation text is placed on textbox institute in the first figure layer file
In position, with Alternate text, corresponding second figure layer file after being edited.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: providing to the
One figure layer file carries out the operation entry of editing and processing, to utilize operation entry editor text.
Example IV
Fig. 3 shows the structural schematic diagram of according to embodiments of the present invention four a kind of electronic equipment, present invention specific implementation
Example does not limit the specific implementation of electronic equipment.
As shown in figure 3, the electronic equipment may include: processor (processor) 302, communication interface
(Communications Interface) 304, memory (memory) 306 and communication bus 308.
Wherein:
Processor 302, communication interface 304 and memory 306 complete mutual communication by communication bus 308.
Communication interface 304, for being communicated with the network element of other equipment such as client or other servers etc..
Processor 302 can specifically execute the above-mentioned PSD file realized based on demixing technology and compile for executing program 310
Collect the correlation step in embodiment of the method.
Specifically, program 310 may include program code, which includes computer operation instruction.
Processor 302 may be central processor CPU or specific integrated circuit ASIC (Application
Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention
Road.The one or more processors that server includes can be same type of processor, such as one or more CPU;It can also be with
It is different types of processor, such as one or more CPU and one or more ASIC.
Memory 306, for storing program 310.Memory 306 may include high speed RAM memory, it is also possible to further include
Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 310 specifically can be used for so that processor 302 executes following operation:
In a kind of optional embodiment, program 310 is used for so that processor 302 is based on layering analysis module batch and solves
Analysis includes the file set of multiple PSD files, obtains the corresponding figure layer file packet of each PSD file;For any figure layer file
Packet executes following operation: determining the first figure layer file in the figure layer file packet comprising text;To the text in the first figure layer file
Word carries out editing and processing, corresponding second figure layer file after being edited;The figure layer file packet is replaced using the second figure layer file
In the first figure layer file, merge the figure layer file packet, corresponding PSD file after being edited.
In a kind of optional embodiment, program 310 is used for so that processor 302 is for any in file set
PSD file, based on layering analysis module by the PSD document analysis be the figure layer file packet comprising multiple figure layer files;Wherein, scheme
Layer file is picture format file.
In a kind of optional embodiment, program 310 is used for so that processor 302 is for any in file set
PSD file, when based on layering analysis module by the PSD document analysis, the figure layer for multiple figure layer files that record parsing obtains
Sequentially.
In a kind of optional embodiment, program 310 is used for so that processor 302 is directed to any figure layer file packet, benefit
With pictograph identification technology, the first figure layer file determined in the figure layer file packet comprising text is identified.
In a kind of optional embodiment, the first figure layer file is pure words figure layer file;Program 310 is used for so that place
The reason identification of device 302 obtains the text in the first figure layer file, and location information of the shorthand in the first figure layer file;To knowledge
The text not obtained carries out editing and processing;Editing and processing includes the translation text by character translation for appointed language;It will translation text
Word is placed on text position in the first figure layer file, with Alternate text, corresponding second figure layer file after being edited.
In a kind of optional embodiment, the first figure layer file is text and textbox figure layer file;Program 310 is used for
So that the identification of processor 302 obtains the text and textbox in the first figure layer file, and shorthand frame is in the first figure layer file
In position and dimension information;Editing and processing is carried out to the text that identification obtains;It is specified that editing and processing, which includes by character translation,
The translation text of language;According to the dimension information of textbox, the display information of setting translation text;Show that information includes translation text
Word size information and/or font information;Translation text is placed on textbox position in the first figure layer file, to replace text
Word, corresponding second figure layer file after being edited.
In a kind of optional embodiment, program 310 is used for so that processor 302 is provided to the progress of the first figure layer file
The operation entry of editing and processing, to utilize operation entry editor text.
It is real to may refer to the above-mentioned PSD Document Editing realized based on demixing technology for the specific implementation of each step in program 310
Corresponding description in the corresponding steps in example is applied, this will not be repeated here.It is apparent to those skilled in the art that being
Convenienct and succinct, the equipment of foregoing description and the specific work process of module of description, can be with reference in preceding method embodiment
Corresponding process description, details are not described herein.
The scheme provided through this embodiment includes the file of multiple PSD files based on layering analysis module batch parsing
Set, obtains the corresponding figure layer file packet of each PSD file;For any figure layer file packet, executes following operation: determining the figure
It include the first figure layer file of text in layer file packet;Editing and processing is carried out to the text in the first figure layer file, is edited
Corresponding second figure layer file afterwards;The first figure layer file in the figure layer file packet is replaced using the second figure layer file, merging should
Figure layer file packet, corresponding PSD file after being edited.Using the present invention, rapidly PSD file can be edited, and
Without special Viewing software tool, the requirement to tool operation technical ability is reduced.It is got the present invention is based on demixing technology and includes
First figure layer file of text will be converted into the volume to text in figure layer file to the editing and processing of text in script PSD file
Processing is collected, editor's difficulty to PSD file is reduced, is improved to PSD Document Editing efficiency.Further, the present invention can locate in batches
Manage PSD file, with manually using special Viewing software tool editor PSD file compared with, it is more rapidly easier, greatly reduce flower
The time taken and cost of labor more utilize promotion and implementation.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, such as right
As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool
Thus claims of body embodiment are expressly incorporated in the specific embodiment, wherein each claim conduct itself
Separate embodiments of the invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any
Can in any combination mode come using.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.The use of word first, second, and third does not indicate any sequence.These words can be construed to title.
The invention discloses: a kind of PSD file editing method realized based on demixing technology of A1. comprising:
Include the file set of multiple PSD files based on layering analysis module batch parsing, it is corresponding to obtain each PSD file
Figure layer file packet;
For any figure layer file packet, following operation is executed:
Determine the first figure layer file in the figure layer file packet comprising text;To the text in the first figure layer file into
Edlin processing, corresponding second figure layer file after being edited;
The first figure layer file in the figure layer file packet is replaced using the second figure layer file, merges the figure layer file
Packet, corresponding PSD file after being edited.
A2. method according to a1, wherein described that multiple PSD files are included based on the batch parsing of layering analysis module
File set, obtaining the corresponding figure layer file packet of each PSD file further comprises:
For any PSD file in the file set, based on layering analysis module by the PSD document analysis be comprising
The figure layer file packet of multiple figure layer files;Wherein, the figure layer file is picture format file.
A3. the method according to A2, wherein described that multiple PSD files are included based on the batch parsing of layering analysis module
File set, obtaining the corresponding figure layer file packet of each PSD file further comprises:
For any PSD file in the file set, when based on layering analysis module by the PSD document analysis,
The Layer Order for multiple figure layer files that record parsing obtains.
A4. the method according to any one of A1-A3, wherein comprising text in the determination figure layer file packet
First figure layer file further comprises:
For any figure layer file packet, using pictograph identification technology, identifies and determine in the figure layer file packet comprising text
First figure layer file of word.
A5. method according to a1, wherein the first figure layer file is pure words figure layer file;
The text in the first figure layer file carries out editing and processing, corresponding second figure layer text after being edited
Part further comprises:
Identification obtains the text in the first figure layer file, and position of the shorthand in the first figure layer file
Information;
Editing and processing is carried out to the text that identification obtains;It is turning over for appointed language that the editing and processing, which includes by character translation,
Translation word;
The translation text is placed in the first figure layer file text position to obtain to replace the text
Corresponding second figure layer file after to editor.
A6. method according to a1, wherein the first figure layer file is text and textbox figure layer file;
The text in the first figure layer file carries out editing and processing, corresponding second figure layer text after being edited
Part further comprises:
Identification obtains the text and textbox in the first figure layer file, and records the textbox in first figure
Position and dimension information in layer file;
Editing and processing is carried out to the text that identification obtains;It is turning over for appointed language that the editing and processing, which includes by character translation,
Translation word;
According to the dimension information of the textbox, the display information of the translation text is set;The display information includes
Translate text size information and/or font information;
The translation text is placed on textbox position in the first figure layer file, to replace the text,
Corresponding second figure layer file after being edited.
A7. the method according to A5 or A6, wherein described pair identifies that obtained text carries out editing and processing and further wraps
It includes:
The operation entry that editing and processing is carried out to the first figure layer file is provided, to utilize the operation entry editor
The text.
The invention also discloses: B8. a kind of electronic equipment, comprising: processor, memory, communication interface and communication bus,
The processor, the memory and the communication interface complete mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is following that the executable instruction executes the processor
Operation:
Include the file set of multiple PSD files based on layering analysis module batch parsing, it is corresponding to obtain each PSD file
Figure layer file packet;
For any figure layer file packet, following operation is executed:
Determine the first figure layer file in the figure layer file packet comprising text;To the text in the first figure layer file into
Edlin processing, corresponding second figure layer file after being edited;
The first figure layer file in the figure layer file packet is replaced using the second figure layer file, merges the figure layer file
Packet, corresponding PSD file after being edited.
B9. the electronic equipment according to B8, the executable instruction further make the processor execute following operation:
For any PSD file in the file set, based on layering analysis module by the PSD document analysis be comprising
The figure layer file packet of multiple figure layer files;Wherein, the figure layer file is picture format file.
B10. the electronic equipment according to B9, the executable instruction further make the processor execute following behaviour
Make:
For any PSD file in the file set, when based on layering analysis module by the PSD document analysis,
The Layer Order for multiple figure layer files that record parsing obtains.
B11. according to the electronic equipment of any one of B8-B10, the executable instruction further executes the processor
It operates below:
For any figure layer file packet, using pictograph identification technology, identifies and determine in the figure layer file packet comprising text
First figure layer file of word.
B12. the electronic equipment according to B8, the executable instruction further make the processor execute following behaviour
Make:
The first figure layer file is pure words figure layer file;
Identification obtains the text in the first figure layer file, and position of the shorthand in the first figure layer file
Information;
Editing and processing is carried out to the text that identification obtains;It is turning over for appointed language that the editing and processing, which includes by character translation,
Translation word;
The translation text is placed in the first figure layer file text position to obtain to replace the text
Corresponding second figure layer file after to editor.
B13. the electronic equipment according to B8, the executable instruction further make the processor execute following behaviour
Make:
The first figure layer file is text and textbox figure layer file;
Identification obtains the text and textbox in the first figure layer file, and records the textbox in first figure
Position and dimension information in layer file;
Editing and processing is carried out to the text that identification obtains;It is turning over for appointed language that the editing and processing, which includes by character translation,
Translation word;
According to the dimension information of the textbox, the display information of the translation text is set;The display information includes
Translate text size information and/or font information;
The translation text is placed on textbox position in the first figure layer file, to replace the text,
Corresponding second figure layer file after being edited.
B14. the electronic equipment according to B12 or B13, the executable instruction further execute the processor with
Lower operation:
The operation entry that editing and processing is carried out to the first figure layer file is provided, to utilize the operation entry editor
The text.
The invention also discloses a kind of computer storage medium of C15., being stored at least one in the storage medium can be held
Row instruction, the executable instruction make processor execute following operation:
Include the file set of multiple PSD files based on layering analysis module batch parsing, it is corresponding to obtain each PSD file
Figure layer file packet;
For any figure layer file packet, following operation is executed:
Determine the first figure layer file in the figure layer file packet comprising text;To the text in the first figure layer file into
Edlin processing, corresponding second figure layer file after being edited;
The first figure layer file in the figure layer file packet is replaced using the second figure layer file, merges the figure layer file
Packet, corresponding PSD file after being edited.
C16. the computer storage medium according to C15, it is following that the executable instruction further executes processor
Operation:
For any PSD file in the file set, based on layering analysis module by the PSD document analysis be comprising
The figure layer file packet of multiple figure layer files;Wherein, the figure layer file is picture format file.
C17. the computer storage medium according to C16, it is following that the executable instruction further executes processor
Operation:
For any PSD file in the file set, when based on layering analysis module by the PSD document analysis,
The Layer Order for multiple figure layer files that record parsing obtains.
C18. according to the computer storage medium of any one of C15-C17, the executable instruction further makes processor
Execute following operation:
For any figure layer file packet, using pictograph identification technology, identifies and determine in the figure layer file packet comprising text
First figure layer file of word.
C19. the computer storage medium according to C15, it is following that the executable instruction further executes processor
Operation:
The first figure layer file is pure words figure layer file;
Identification obtains the text in the first figure layer file, and position of the shorthand in the first figure layer file
Information;
Editing and processing is carried out to the text that identification obtains;It is turning over for appointed language that the editing and processing, which includes by character translation,
Translation word;
The translation text is placed in the first figure layer file text position to obtain to replace the text
Corresponding second figure layer file after to editor.
C20. the computer storage medium according to C15, it is following that the executable instruction further executes processor
Operation:
The first figure layer file is text and textbox figure layer file;
Identification obtains the text and textbox in the first figure layer file, and records the textbox in first figure
Position and dimension information in layer file;
Editing and processing is carried out to the text that identification obtains;It is turning over for appointed language that the editing and processing, which includes by character translation,
Translation word;
According to the dimension information of the textbox, the display information of the translation text is set;The display information includes
Translate text size information and/or font information;
The translation text is placed on textbox position in the first figure layer file, to replace the text,
Corresponding second figure layer file after being edited.
C21. the computer storage medium according to C19 or C20, the executable instruction further execute processor
It operates below:
The operation entry that editing and processing is carried out to the first figure layer file is provided, to utilize the operation entry editor
The text.
Claims (10)
1. a kind of PSD file editing method realized based on demixing technology comprising:
Include the file set of multiple PSD files based on layering analysis module batch parsing, obtains the corresponding figure of each PSD file
Layer file packet;
For any figure layer file packet, following operation is executed:
Determine the first figure layer file in the figure layer file packet comprising text;Text in the first figure layer file is compiled
Collect processing, corresponding second figure layer file after being edited;
The first figure layer file in the figure layer file packet is replaced using the second figure layer file, merges the figure layer file packet, obtains
Corresponding PSD file after to editor.
2. according to the method described in claim 1, wherein, described parsed based on layering analysis module batch includes multiple PSD texts
The file set of part, obtaining the corresponding figure layer file packet of each PSD file further comprises:
For any PSD file in the file set, based on layering analysis module by the PSD document analysis for comprising multiple
The figure layer file packet of figure layer file;Wherein, the figure layer file is picture format file.
3. according to the method described in claim 2, wherein, described parsed based on layering analysis module batch includes multiple PSD texts
The file set of part, obtaining the corresponding figure layer file packet of each PSD file further comprises:
For any PSD file in the file set, when based on layering analysis module by the PSD document analysis, record
Parse the Layer Order of obtained multiple figure layer files.
4. method according to any one of claim 1-3, wherein comprising text in the determination figure layer file packet
First figure layer file further comprises:
For any figure layer file packet, using pictograph identification technology, identify that determining includes text in the figure layer file packet
First figure layer file.
5. according to the method described in claim 1, wherein, the first figure layer file is pure words figure layer file;
The text in the first figure layer file carries out editing and processing, after being edited corresponding second figure layer file into
One step includes:
Identification obtains the text in the first figure layer file, and position letter of the shorthand in the first figure layer file
Breath;
Editing and processing is carried out to the text that identification obtains;The editing and processing includes the translation text by character translation for appointed language
Word;
The translation text is placed in the first figure layer file text position to be compiled to replace the text
Corresponding second figure layer file after volume.
6. according to the method described in claim 1, wherein, the first figure layer file is text and textbox figure layer file;
The text in the first figure layer file carries out editing and processing, after being edited corresponding second figure layer file into
One step includes:
Identification obtains the text and textbox in the first figure layer file, and records the textbox in the first figure layer text
Position and dimension information in part;
Editing and processing is carried out to the text that identification obtains;The editing and processing includes the translation text by character translation for appointed language
Word;
According to the dimension information of the textbox, the display information of the translation text is set;The display information includes translation
Text size information and/or font information;
The translation text is placed in the first figure layer file textbox position to obtain to replace the text
Corresponding second figure layer file after editor.
7. method according to claim 5 or 6, wherein described pair identifies that obtained text progress editing and processing is further
Include:
The operation entry that editing and processing is carried out to the first figure layer file is provided, so as to using described in the operation entry editor
Text.
8. a kind of electronic equipment, comprising: processor, memory, communication interface and communication bus, the processor, the storage
Device and the communication interface complete mutual communication by the communication bus;
The memory makes the processor execute following behaviour for storing an at least executable instruction, the executable instruction
Make:
Include the file set of multiple PSD files based on layering analysis module batch parsing, obtains the corresponding figure of each PSD file
Layer file packet;
For any figure layer file packet, following operation is executed:
Determine the first figure layer file in the figure layer file packet comprising text;Text in the first figure layer file is compiled
Collect processing, corresponding second figure layer file after being edited;
The first figure layer file in the figure layer file packet is replaced using the second figure layer file, merges the figure layer file packet, obtains
Corresponding PSD file after to editor.
9. electronic equipment according to claim 8, the executable instruction further makes the processor execute following behaviour
Make:
For any PSD file in the file set, based on layering analysis module by the PSD document analysis for comprising multiple
The figure layer file packet of figure layer file;Wherein, the figure layer file is picture format file.
10. a kind of computer storage medium, an at least executable instruction, the executable instruction are stored in the storage medium
Processor is set to execute following operation:
Include the file set of multiple PSD files based on layering analysis module batch parsing, obtains the corresponding figure of each PSD file
Layer file packet;
For any figure layer file packet, following operation is executed:
Determine the first figure layer file in the figure layer file packet comprising text;Text in the first figure layer file is compiled
Collect processing, corresponding second figure layer file after being edited;
The first figure layer file in the figure layer file packet is replaced using the second figure layer file, merges the figure layer file packet, obtains
Corresponding PSD file after to editor.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910419059.7A CN110210010A (en) | 2019-05-20 | 2019-05-20 | PSD file editing method, electronic equipment based on demixing technology realization |
PCT/CN2019/118895 WO2020233023A1 (en) | 2019-05-20 | 2019-11-15 | Psd file editing method implemented based on layering technology, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910419059.7A CN110210010A (en) | 2019-05-20 | 2019-05-20 | PSD file editing method, electronic equipment based on demixing technology realization |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110210010A true CN110210010A (en) | 2019-09-06 |
Family
ID=67787819
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910419059.7A Pending CN110210010A (en) | 2019-05-20 | 2019-05-20 | PSD file editing method, electronic equipment based on demixing technology realization |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110210010A (en) |
WO (1) | WO2020233023A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111611037A (en) * | 2020-05-09 | 2020-09-01 | 掌阅科技股份有限公司 | View object processing method for electronic book, electronic device and storage medium |
WO2020233023A1 (en) * | 2019-05-20 | 2020-11-26 | 掌阅科技股份有限公司 | Psd file editing method implemented based on layering technology, and electronic device |
CN112330532A (en) * | 2020-11-12 | 2021-02-05 | 上海枫河软件科技有限公司 | Image analysis processing method and equipment |
WO2021134462A1 (en) * | 2019-12-31 | 2021-07-08 | Qualcomm Incorporated | Methods and apparatus to facilitate region of interest tracking for in-motion frames |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107704439A (en) * | 2016-08-09 | 2018-02-16 | 中科领域(北京)科技有限公司 | A kind of multi-layer image word editing method and the system for realizing its method |
CN109598185A (en) * | 2018-09-04 | 2019-04-09 | 阿里巴巴集团控股有限公司 | Image recognition interpretation method, device, equipment and readable storage medium storing program for executing |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104899826B (en) * | 2015-06-23 | 2017-10-24 | 天津华永无线科技有限公司 | A kind of method that mobile phone theme is made based on PSD analytic techniques |
US20190065477A1 (en) * | 2017-08-22 | 2019-02-28 | Korea Data House Co., Ltd. | Method of extracting text in text layer, method of providing translated webcomic, and computer device for performing the same |
CN110210010A (en) * | 2019-05-20 | 2019-09-06 | 掌阅科技股份有限公司 | PSD file editing method, electronic equipment based on demixing technology realization |
-
2019
- 2019-05-20 CN CN201910419059.7A patent/CN110210010A/en active Pending
- 2019-11-15 WO PCT/CN2019/118895 patent/WO2020233023A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107704439A (en) * | 2016-08-09 | 2018-02-16 | 中科领域(北京)科技有限公司 | A kind of multi-layer image word editing method and the system for realizing its method |
CN109598185A (en) * | 2018-09-04 | 2019-04-09 | 阿里巴巴集团控股有限公司 | Image recognition interpretation method, device, equipment and readable storage medium storing program for executing |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020233023A1 (en) * | 2019-05-20 | 2020-11-26 | 掌阅科技股份有限公司 | Psd file editing method implemented based on layering technology, and electronic device |
WO2021134462A1 (en) * | 2019-12-31 | 2021-07-08 | Qualcomm Incorporated | Methods and apparatus to facilitate region of interest tracking for in-motion frames |
CN111611037A (en) * | 2020-05-09 | 2020-09-01 | 掌阅科技股份有限公司 | View object processing method for electronic book, electronic device and storage medium |
CN111611037B (en) * | 2020-05-09 | 2023-04-07 | 掌阅科技股份有限公司 | View object processing method for electronic book, electronic device and storage medium |
CN112330532A (en) * | 2020-11-12 | 2021-02-05 | 上海枫河软件科技有限公司 | Image analysis processing method and equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2020233023A1 (en) | 2020-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110210010A (en) | PSD file editing method, electronic equipment based on demixing technology realization | |
US9098505B2 (en) | Framework for media presentation playback | |
US10521513B2 (en) | Language generation from flow diagrams | |
CN105095168B (en) | A kind of automatic generation method and device of treaty documents | |
US10068380B2 (en) | Methods and systems for generating virtual reality environments from electronic documents | |
US7665061B2 (en) | Code builders | |
US9256583B2 (en) | Conversion of a presentation to Darwin Information Typing Architecture (DITA) | |
US8595236B2 (en) | Searching existing user interfaces to enable design, development and provisioning of user interfaces | |
US20140089786A1 (en) | Automated Processor For Web Content To Mobile-Optimized Content Transformation | |
CN107357496B (en) | Annotation process method, electronic equipment and computer storage medium | |
CN111279335B (en) | Retrieving multilingual documents based on document structure extraction | |
US10338901B2 (en) | Translation of a visual representation into an executable information extraction program | |
US8160865B1 (en) | Systems and methods for managing coordinate geometry for a user interface template | |
CN112420145A (en) | Electronic medical record document data processing method and device and computer readable storage medium | |
CN106886398A (en) | The extracting method and equipment of a kind of CSS | |
CN108055351A (en) | The processing method and processing device of three dimensional file | |
CN103530386B (en) | The edit methods and browser of browsing device net page | |
CN115291854A (en) | Code completion method, device and equipment | |
CN106776779B (en) | Method for generating entity file by JSON data based on Mac platform | |
US10275462B2 (en) | Automatic translation of string collections | |
CN109460227A (en) | A kind of development approach of Website front-end, device, equipment and medium | |
CN107291619A (en) | EMS memory occupation analysis method and device | |
CN116521621A (en) | Data processing method and device, electronic equipment and storage medium | |
CN111880771B (en) | Method and device for generating data visualization module | |
CN111898762B (en) | Deep learning model catalog creation |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190906 |