CN107871335A - A kind of image processing method, system and computer-readable recording medium - Google Patents
A kind of image processing method, system and computer-readable recording medium Download PDFInfo
- Publication number
- CN107871335A CN107871335A CN201711255366.3A CN201711255366A CN107871335A CN 107871335 A CN107871335 A CN 107871335A CN 201711255366 A CN201711255366 A CN 201711255366A CN 107871335 A CN107871335 A CN 107871335A
- Authority
- CN
- China
- Prior art keywords
- picture
- word
- pending
- processing
- polar plot
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention provides a kind of image processing method, this method can quickly introduce a large amount of pictures and picture is handled accordingly, while ensure picture quality.The present invention also provides a kind of computer picture processing system, and the picture processing system includes input module, processing component, display module and output precision.Geometry dotted line feature of the invention based on word, with reference to the resolution ratio independent property of polar plot, it is creative that pending area is converted into vector segment in picture processing, and corresponding word vector figure is generated so as to obtain adding after word and keep the picture processing figure of picture quality.Methods described can use webpage connector to realize, simple to operate;For the picture processing of big quantity, it can realize that processing speed is fast respectively by the computer program or instruction module of procedure, picture quality is high.
Description
Technical field
The invention belongs to image processing field, more particularly to a kind of processing method and system of high quality picture.
Background technology
With the development of image processing techniques, the work such as the editor of picture, typesetting can be automatic by computer software
Complete.Such processing software has a lot, and its function is different.For example, this area it is common powerful picture processing it is soft
Part Photoshop, abbreviation PS, its powerful editor and processing function disclosure satisfy that various editor's needs of picture, and can
Preferably keep picture quality.
However, for most people, such as PS etc photo handling software still falls within professional software, its function is numerous
It is more, also need to all kinds of parameters of skilled setting comprising a large amount of feature cards, and in actual editing process, its technical threshold compared with
It is high;In addition, PS etc software belongs to charging software in itself, while installs the larger disk space of software needs, it is not easy to
Large-scale promotion uses in general population.
In face of this problem, the photo handling software for being more easy to introduction or APP of various miniaturizations arise at the historic moment.These are soft
Part or APP generally only have several million sizes, and operating function is simple, can realize foolproof picture processing, such as key beautification/
Add word.Wherein, most known is exactly that U.S. figure is elegant.The software does not only have computerized version sheet, also mobile phone version, more has
Notably, webpage version is have also been developed at present so that the threshold of picture processing substantially reduces.
However, the photo handling software or APP of such miniaturization are although easy to use, but it is actually to sacrifice figure
Tablet quality is cost.For example, the source picture of more than ten M ultrahigh resolution, after U.S. figure show beautifulization of webpage version,
Picture size generally only hundreds of KB are exported, high quality output are selected in processing procedure, output picture size is at most only
There are several M more, greatly reduce the quality of source picture.But for some important events, the matter of the picture after guarantee processing
Amount is highly important;In addition, source picture number is numerous caused by these occasions, also should not be one by one using the picture processing of specialty
Software(Such as PS)Handled.
Therefore, urgent need is a kind of can keep picture quality and be suitable for the method for handling extensive picture, and can
Promoted the use of under relatively low technical threshold.
The content of the invention
To solve the above problems, the invention provides a kind of image processing method, this method can quickly introduce big spirogram
Piece is simultaneously handled picture accordingly, while ensures picture quality.
In the present invention, ensure picture quality it is to be understood that picture before treatment after size be held essentially constant;Example
Such as, pixel it is constant/resolution ratio is constant etc..
As a concrete implementation scheme, picture processing of the invention refers to carry out at word in pending picture
Reason, for example, adding corresponding word.
In the first aspect, the image processing method is realized by browser by webpage, is comprised the following steps:
Picture steps for importing:Webpage is opened by browser, loads pending picture.
The present invention loads pending picture by webpage connector, avoids special software installation process, while use net
The form of page plug-in unit is easy-to-understand, is more beneficial for ordinary people and receives and use.
In the present invention, pending picture is loaded by webpage connector, various ways can be used.If it is determined that user
Browser version is supported to open picture, then directly using the corresponding picture of browser loading;
Otherwise, then search user can locally open the corresponding processing program of the picture, for example, windows Photo Viewers,
The drawing software carried in windows annexes, or other picture processing programs that user may install, pass through the picture
Processing routine opens pending picture, and is automatically loaded into the Webpage of browser and shows.
It is pointed out that in this step, only loading pending picture, any place is not carried out to picture
Reason, therefore, any change will not occur for the quality of picture.
Picture processing region selection step:Select to carry out the part of word processing in pending picture.
Under normal circumstances, some specific regions need to carry out word processing in pending picture.These specific regions
It is that user can be selected by corresponding selection operation, for example, carrying out frame choosing, stroke choosing by mouse, touch-screen etc., enclosing and select
Deng the picture processing region selection step being performed, so as to select the part that word processing is carried out in pending picture.
Picture processing regioinvertions step:The part of word processing will be carried out in the pending picture selected
Picture is converted into polar plot.
In this step, it is necessary to which the picture of processing is only the picture block of some or some specific regions, specifically,
It is some or some subregions of the pending picture that carry out word processing for handling user's selection.
Concrete processing procedure is exactly that the picture block of some or some subregions by this is converted into polar plot.
In practical matter, pending picture is not largely polar plot, but common bitmap.Existing picture
Processing method is also handled in itself both for bitmap.Zone bitmap is converted into region polar plot by the invention,
So as to ensure that picture quality lays the foundation for follow-up word processing.
Common bitmap is converted into polar plot, the existing a variety of common instruments in this area.For example, mentioned in background technology
PS is the bitmap of exportable .eps forms;In addition, VECTOR MAGIC softwares, which are also typical bitmap, turns one of polar plot instrument.
Word vector figure generation step:The word generation word vector figure that will be added in picture.
In traditional image processing method, word is added in picture, is typically to be inserted directly into word.In this process
In, the picture block in the region substantially to inserting word is edited so that word turns into a part for picture or covered
The original region of lid picture.In pixel scale, word and picture do not correspond to, and will lose picture quality during so as to insert word.
In the present invention, word is no longer inserted directly into, but firstly generates word vector figure.For Chinese text
Speech, it is substantially that geometry is realized.With reference to polar plot feature, the present invention proposes the concept of word vector figure.
It is well known that the image or Drawing image of polar plot, also referred to as object-oriented, be mathematically defined as it is a series of by
The point of line connection.Graphic element in vector file is referred to as object.Each object is an entity having a style of one's own, and it has
The attributes such as color, shape, profile, size and screen position.Polar plot is can be come graphing, vector according to geometrical property
One point or a line, polar plot can only lean on Software Create, and file occupancy internal space is smaller, because such image is literary
Part includes independent separate picture, freely unconfined can reconfigure.Its feature be amplification after image will not distortion, and
Resolution ratio is unrelated, suitable for graphic designs, word design and some Mark Designings, Layout Design etc..
Therefore, the step for of the invention enables to the word of generation, and picture is still protected after being inserted into picture
Hold higher quality.
Character area synthesis step:The picture block of word vector figure and foregoing some or some subregions is transformed
Polar plot synthesis.
Because the picture for the part that carry out word processing in foregoing pending picture has been converted into polar plot, to insert
Word also have been converted into word vector figure in itself.In this step, it is necessary to which this two parts polar plot is synthesized, so as to
Form the picture of added word.
When noticeable, because polar plot is substantially that a series of points by line connection form, two polar plots merge
When can be by the preferable uniformity of the realization such as its corresponding vector point/line, without bringing mass loss;Its merging process is real
It is mathematically the corresponding coincidence of dotted line, relative position adjustment, the change of geometry projection etc. in matter, will not more brings the deformation of image.Close
Picture after and can remain polar plot.
Preferably the polar plot after merging can be converted into bitmap as one, then by the bitmap and original pending figure
The other parts combination of piece, so as to form the picture after final processing.
It is, of course, also possible to after being synthesized in above-mentioned synthesis step to two polar plots, bitmap is directly output as, then
The other parts of the bitmap and original pending picture are combined, so as to form the picture after final processing.
It is important to note that it is not that a bitmap is converted into polar plot to be handled it is ensured that its matter
Amount.In fact, in most cases, bitmap is converted directly into polar plot can lose more information on the contrary.Polar plot is only fitted
Share to show simple lines and figure, if the photo of performance personage's landscape is converted into polar plot, that just can only
It is the appearance as Freehandhand-drawing.
Therefore, in the present invention, it is to carry out vector quantization for pending region unit, these region units are to need to add text
The region of word, it is usually expressed as, and amount of color is few, and color lump is big, therefore is just adapted to carry out vector quantization, this hair on the premise of fidelity
A person of good sense is exactly to be found that this point just proposes improved image processing method;It is most important to be, at word
Manage region and corresponding word adding procedure;Because word is in itself as polar plot, its show and simple lines and
Figure.
Thus, in second aspect, the present invention provides a kind of more general image processing method, including:
(1)Picture load step:Load pending picture and show;
(2)Character area selects step:Selection will add the region of word in the pending picture, as pending picture
Block;
(3)Picture block step of converting:The pending picture block is converted into polar plot tile;
(4)Word vector figure generation step:The word generation word vector figure that will be added in the pending picture;
(5)Word picture block generation step:The polar plot tile and the word vector figure are synthesized into word picture block.
At the 3rd aspect, image processing method of the present invention can use computer system to realize that the system can
So that including corresponding computer-readable recording medium, the executable finger of corresponding computer machine is performed by processor and memory
Order, so as to realize affiliated image processing method.
In Computer Systems Organization, it can be made up of, can include corresponding in-out box and processor module
Following part:
(1)Picture loader:Load pending picture and show;
(2)Character area selector:Selection will add the region of word in the pending picture, as pending picture
Block;
(3)Picture block conversion module:The pending picture block is converted into polar plot tile;
(4)Word vector figure generation module:The word generation word vector figure that will be added in the pending picture;
(5)Word picture block generation module:The polar plot tile and the word vector figure are synthesized into word picture block.
On the whole, the geometry dotted line feature of the invention based on word, with reference to the resolution ratio independent property of polar plot, is scheming
It is creative that pending area is converted into vector segment in piece processing, and corresponding word vector figure is generated so as to be added
Add after word and keep the picture processing figure of picture quality.Methods described can use webpage connector to realize, simple to operate;Pin
To the picture processing of big quantity, it can realize that processing speed is fast respectively by the computer program or instruction module of procedure,
Picture quality is high.
The advantage of the present invention further will be embodied by following the drawings and specific embodiments.
Brief description of the drawings
Fig. 1 is the basic framework figure of the picture processing system of the present invention.
Fig. 2 is the generalized flow chart of the image processing method of the present invention.
Fig. 3(a)-3(b)It is pending picture source figure and its attribute.
Fig. 4(a)-4(b)It is prior art processing method design sketch and its attribute.
Fig. 5(a)-5(b)It is processing method design sketch and its attribute of the present invention.
Specific embodiment
Reference picture 1, the picture processing system include input module, processing component, display module and output precision.
The input module includes picture loader, for loading pending picture.Actual to realize, user can be manual
Pending picture is loaded, can also be loaded automatically.The picture of loading can be individual or multiple, such as be loaded directly into
File where picture.
Input module also includes mouse/touchpad/keyboard etc., and other input select tools, can provide user and be treated described
Selection will add the region of word in processing picture, as pending picture block.
Certainly, in real work, if picture format to be processed is consistent, the region that add word is substantially the same,
Then automatically selecting for pending picture block region can be realized by a character area selector.
For example, have taken plurality of pictures in an actual scene, word is added in the central area of these pictures,
These intermediate regions can then be automatically selected out.
Processing component then includes:
Picture block conversion module:The pending picture block is converted into polar plot tile;
Word vector figure generation module:The word generation word vector figure that will be added in the pending picture;
In the present system, user only needs the word to be added by input through keyboard, and word vector figure generation module will be straight
Connect and these words are converted into word vector figure.
Word picture block generation module:The polar plot tile and the word vector figure are synthesized into word picture block.
Output precision then exports last picture processing result, that is, adds the picture after word.
By display module, the display renderings of above-mentioned modules and component can be shown, for example, loading is pending
Picture, the region unit that add word of pending picture, polar plot tile, word vector figure, word picture block and output
The result of component output.
Certainly, Fig. 1 also show composite module, after being synthesized in above-mentioned synthesis step to two polar plots,
Bitmap is directly output as, is then combined the other parts of the bitmap and original pending picture, so as to form final processing
Picture afterwards.
As it was previously stated, the present invention can not only realize in webpage, can also be realized by computer software programs, as
One general photo handling software, or cell phone application program etc. is formed, its general process flow is as shown in Figure 3.
In Fig. 3, in order to keep the integrality of flow, last step is display/combination/output step.But those skilled in the art
Recorded and understood according to the overall plan of this specification, the corresponding steps that display/combination/output step can also be before this are real
It is existing.
Fig. 3(a)- Fig. 5(b)It then respectively show and word added to same pictures using prior art and the inventive method
Qualitative attribute comparison diagram afterwards.
In the present embodiment, pending source picture name is " vivid language networking-artwork ", sees accompanying drawing 3(a);Its attribute
Feature is shown in accompanying drawing 3(b).It can be seen that artwork size is 2.18M.
Fig. 4(a)It is to employ certain existing photo handling software to the source picture " vivid language networking-artwork " top
The design sketch after word " vivid " is added, the design sketch is named as " vivid language networking-prior art processing ";Its attributive character
See accompanying drawing 4(b).It can be seen that after prior art processing, its size is only 152KB;Quality substantially reduces.
Fig. 5(a)It is to employ the method for the invention to add word to the source picture " vivid language networking-artwork " top
Design sketch after " vivid ", the design sketch are named as " vivid language networking-present invention processing ";Its attributive character is shown in accompanying drawing 5
(b).It can be seen that after prior art processing, its size is 2.16MB.Therefore, picture quality is kept not substantially before and after the processing
Become.
It can be seen that according to above-described embodiment data, when method of the invention is handled picture, can preferably keep
Picture quality, and conservation degree maintains a preferably level, and this is that existing simple photo handling software can not compare
's.
It is in addition, simple to operate relative to existing various professional photo handling softwares, the present invention.Its realization principle is based on arrow
The geometrical line point feature of spirogram and word, it is easy to accomplish, this is also the content that existing professional photo handling software is ignored.
In a word, the invention provides a kind of effective image processing method, before treatment after can preferably keep picture
Quality;This method is easy to spread, ordinary people can also rapid left-hand seat, can be promoted the use of under relatively low technical threshold.
Claims (9)
1. a kind of image processing method, it is characterised in that methods described comprises the following steps:
(1)Picture load step:Load pending picture and show;
(2)Character area selects step:Selection will add the region of word in the pending picture, as pending picture
Block;
(3)Picture block step of converting:The pending picture block is converted into polar plot tile;
(4)Word vector figure generation step:The word generation word vector figure that will be added in the pending picture;
(5)Word picture block generation step:The polar plot tile and the word vector figure are synthesized into word picture block.
2. the method as described in claim 1, in the step(5)Afterwards, in addition to:
After processing picture export step, will in the word picture block and the pending picture except the pending picture block it
Outer other parts combination, the picture after output processing.
3. the method for claim 1, wherein step(5)Specifically include:The polar plot tile and the word are sweared
Spirogram carries out polar plot merging, the polar plot after merging is converted into bitmap, as the word picture block after merging.
4. the method as described in claim any one of 1-3, it is characterised in that:The step(1)In, inserted using browsing device net page
Part loads and shows the pending picture.
5. method as claimed in claim 4, wherein, loaded using browsing device net page plug-in unit and show the pending picture,
Specifically include:If it is determined that the browser version of user is supported to open pending picture, then directly using browser loading phase
Answer picture.
6. method as claimed in claim 5, wherein, if it is determined that the browser version of user is not supported to open pending figure
Piece, then the corresponding picture processing program of the pending picture can locally be opened by searching for user, be beaten by the picture processing program
Pending picture is opened, and is automatically loaded into the Webpage of browser and shows.
7. a kind of computer picture processing system, the picture processing system include input module, processing component, display module and
Output precision, wherein, the input module includes picture loader, for loading pending picture;Input module also includes defeated
Enter select tools, there is provided user selects to add the region of word in the pending picture, as pending picture block;Institute
Stating processing component then includes picture block conversion module, word vector figure generation module and word picture block generation module;
The picture block conversion module is used to the pending picture block being converted into polar plot tile;The word vector figure life
The word for being used to be added in the pending picture into module generates word vector figure;
The word picture block generation module is used to the polar plot tile and the word vector figure synthesizing word picture
Block;
The output precision exports last picture processing result;
By display module, the display renderings of above-mentioned modules and component are shown, includes the pending picture of loading, waits to locate
The region unit that add word of picture is managed, what polar plot tile, word vector figure, word picture block and output precision exported
As a result.
8. picture processing system as claimed in claim 7, in addition to composite module, for by the polar plot tile and described
After word vector figure synthesizes word picture block, bitmap is directly output as, then by the bitmap and original pending picture
Other parts combine, so as to form the picture after final processing.
9. the readable storage medium storing program for executing that a kind of computer performs, is stored thereon with computer executable instructions, by processor and deposit
Reservoir, the executable instruction is performed, for realizing the method described in claim any one of 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711255366.3A CN107871335B (en) | 2017-12-04 | 2017-12-04 | Picture processing method and system and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711255366.3A CN107871335B (en) | 2017-12-04 | 2017-12-04 | Picture processing method and system and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107871335A true CN107871335A (en) | 2018-04-03 |
CN107871335B CN107871335B (en) | 2021-12-17 |
Family
ID=61755047
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711255366.3A Active CN107871335B (en) | 2017-12-04 | 2017-12-04 | Picture processing method and system and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107871335B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105516311A (en) * | 2015-12-09 | 2016-04-20 | 中国农业银行股份有限公司 | Electronic map panorama acquisition method and system |
-
2017
- 2017-12-04 CN CN201711255366.3A patent/CN107871335B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105516311A (en) * | 2015-12-09 | 2016-04-20 | 中国农业银行股份有限公司 | Electronic map panorama acquisition method and system |
Also Published As
Publication number | Publication date |
---|---|
CN107871335B (en) | 2021-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110069257B (en) | Interface processing method and device and terminal | |
US7337399B2 (en) | Apparatus, system, and method for editing a region of a document intersecting multiple content component types in a single operation | |
WO2017028611A1 (en) | Form implementation method and apparatus | |
JP2004005568A (en) | Updating of high-speed gui style of legacy application | |
CN105528418B (en) | A kind of design documentation generation method and device | |
KR20080107444A (en) | Two dimensional trees to edit graph-like diagrams | |
CN104915186B (en) | A kind of method and apparatus making the page | |
EP4170580A1 (en) | Picture processing method and apparatus, device, and storage medium | |
US20150199119A1 (en) | Optimizing web site images using a focal point | |
WO2020125481A1 (en) | Method for generating identification pattern, and terminal device | |
CN108898549A (en) | Image processing method, picture processing unit and terminal device | |
CN107179920A (en) | Network engine starts method and device | |
US20160314502A1 (en) | System and method for streamlining the design and development process of multiple advertising units | |
CN112711414B (en) | Form interface adaptation display method and device and storage medium | |
US20210373752A1 (en) | User interface system, electronic equipment and interaction method for picture recognition | |
JP2011086050A (en) | Information processing terminal and computer program | |
CN115220718A (en) | UI design method, design equipment, server and storage medium | |
KR20140096225A (en) | Interactive multimedia E-book authoring apparatus and method | |
CN106293658A (en) | A kind of interface assembly generates method and equipment thereof | |
KR101307790B1 (en) | Authoring method for digital cartoon contents by linked-translation, and computer-readable recording medium for the same | |
CN117478975A (en) | Video generation method, device, computer equipment and storage medium | |
CN107871335A (en) | A kind of image processing method, system and computer-readable recording medium | |
CN110312990A (en) | Configuration method and system | |
US20230401265A1 (en) | Cross-application componentized document generation | |
CN112417345B (en) | Rendering method, rendering device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |