CN104239005B - Figure alignment schemes and device - Google Patents
Figure alignment schemes and device Download PDFInfo
- Publication number
- CN104239005B CN104239005B CN201310230711.3A CN201310230711A CN104239005B CN 104239005 B CN104239005 B CN 104239005B CN 201310230711 A CN201310230711 A CN 201310230711A CN 104239005 B CN104239005 B CN 104239005B
- Authority
- CN
- China
- Prior art keywords
- aligned
- alignment
- experience
- alignment pattern
- regulated value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Image Processing (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of figure alignment schemes and devices, belong to user-interface design technical field.The method includes:When by alignment pattern to be aligned figure be aligned when, from metadata obtain by the alignment pattern to it is described be aligned figure be aligned aligned position;The metadata includes the alignment pattern, the correspondence for being aligned figure and the aligned position;It is that the alignment pattern is aligned figure alignment by alignment edge to described with the aligned position.The technical solution of the embodiment of the present invention, can according to the alignment pattern that metadata includes, be aligned the correspondence of figure and aligned position, it is that alignment pattern is aligned by alignment edge to figure is aligned with aligned position, with in the prior art, the technical solution that alignment pattern can only be aligned to the outer edge for being aligned figure is compared, a large amount of manual adjustment can be efficiently reduced, raising alignment efficiency is greatly enhanced.
Description
Technical field
The present invention relates to user interfaces(User Interface;UI)Design field, more particularly to a kind of figure pair
Neat method and device.
Background technology
In existing UI design fields, wherein the design about figure is a wherein critically important part.
Automatic aligning function is a common function about graphic designs in existing Software for Design.Automatic aligning work(
It can refer specifically to, it is just automatic to inhale if the alignment pattern and to be aligned Graph Distance close when pulling alignment pattern
It is attached to snap to the outer edge for being aligned figure, the design efficiency of figure can be improved.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:It is in the prior art
Alignment pattern can only be snapped to the outer edge for being aligned figure by figure alignment scheme.And UI design in, when need by
When alignment pattern is aligned to other aligned positions being aligned outside the outer edge of figure, it can only be realized by a large amount of manual adjustment
Alignment causes existing figure alignment less efficient.
Invention content
In order to solve problems in the prior art, an embodiment of the present invention provides a kind of figure alignment schemes and devices.It is described
Technical solution is as follows:
On the one hand, a kind of figure alignment schemes are provided, the method includes:
It, to when being aligned figure and being aligned, is obtained the alignment pattern to described right from metadata when by alignment pattern
The aligned position of neat figure alignment;The metadata includes the alignment pattern, described is aligned figure and the alignment bit
The correspondence set;
It is that the alignment pattern is aligned figure alignment by alignment edge to described with the aligned position.
Optionally, in figure alignment schemes as described above, it is described when by alignment pattern to be aligned figure be aligned when, from
In metadata obtain by the alignment pattern to it is described be aligned figure be aligned aligned position before, further include:
Determine that it includes the alignment pattern and the correspondence for being aligned figure to exist in the metadata.
Optionally, in figure alignment schemes as described above, further include:
When it includes the alignment pattern and the correspondence for being aligned figure to be not present in the metadata, according to
The color for being aligned figure is aligned the profile of figure described in analysis, determines that the alignment pattern is aligned figure to described
The aligned position of shape alignment;
The method further comprises:
The alignment pattern, the correspondence for being aligned figure and the aligned position are stored in the metadata
In.
Optionally, it is that the alignment is schemed at alignment edge with the aligned position in figure alignment schemes as described above
Shape to it is described be aligned figure alignment after, further include:
The maximum experience regulated value of weighted value is obtained from experience library;
Alignment adjusting is carried out to the alignment pattern according to the experience regulated value.
Optionally, in figure alignment schemes as described above, the alignment pattern is carried out according to the experience regulated value
After alignment is adjusted, further include:
Terminate when figure is aligned, updates the corresponding weighted value of experience regulated value described in the experience library.
Optionally, in figure alignment schemes as described above, the alignment pattern is carried out according to the experience regulated value
After alignment is adjusted, further include:
Receive the aligned instruction that user is sent out by human-machine interface module;The aligned instruction includes correcting regulated value;
Alignment adjusting is carried out to the alignment pattern according to the amendment regulated value.
Optionally, in figure alignment schemes as described above, the alignment pattern is carried out according to the amendment regulated value
After alignment is adjusted, further include:
New experience regulated value is calculated according to the experience regulated value and the amendment regulated value;
Weighted value is assigned for the new experience regulated value;
The new experience regulated value and the new corresponding weighted value of experience regulated value are increased into the experience library
In.
On the other hand, a kind of figure alignment means are provided, described device includes:
Acquisition module, for, to when being aligned figure alignment, being obtained the alignment from metadata when by alignment pattern
Figure to it is described be aligned figure be aligned aligned position;The metadata includes the alignment pattern, described is aligned figure
The correspondence of shape and the aligned position;
Alignment module, for being that the alignment pattern is aligned figure pair by alignment edge to described with the aligned position
Together.
Optionally, in figure alignment means as described above, further include:
Determining module, for when, to when being aligned figure alignment, the acquisition module is obtained from metadata by alignment pattern
Take by the alignment pattern to it is described be aligned figure be aligned aligned position before, determine in the metadata exist include institute
State alignment pattern and the correspondence for being aligned figure.
Optionally, in figure alignment means as described above, the determining module is additionally operable to not deposit in the metadata
Including the alignment pattern and when the correspondence for being aligned figure, according to the color for being aligned figure, analysis
The profile for being aligned figure determines the alignment pattern to the aligned position for being aligned figure and being aligned;
Described device further includes:
Memory module, for depositing the alignment pattern, the correspondence for being aligned figure and the aligned position
Enter in the metadata.
Optionally, further include experience adjustment module in figure alignment means as described above:
The acquisition module is additionally operable in the alignment module be that the alignment is schemed at alignment edge with the aligned position
Shape to it is described be aligned figure alignment after, from experience library obtain the maximum experience regulated value of weighted value;
Experience adjustment module, for carrying out alignment adjusting to the alignment pattern according to the experience regulated value.
Optionally, in figure alignment means as described above, further include:
Update module, for being carried out pair to the alignment pattern according to the experience regulated value in the experience adjustment module
After neat adjusting, terminates when figure is aligned, update the corresponding weighted value of experience regulated value described in the experience library.
Optionally, in figure alignment means as described above, further include:
Receiving module is received and is used after carrying out alignment adjusting to the alignment pattern according to the experience regulated value
The aligned instruction that family is sent out by human-machine interface module;The aligned instruction includes correcting regulated value;
Adjustment module is corrected, for carrying out alignment adjusting to the alignment pattern according to the amendment regulated value.
Optionally, in figure alignment means as described above, further include:
Computing module, for being carried out pair to the alignment pattern according to the amendment regulated value in the amendment adjustment module
After neat adjusting, new experience regulated value is calculated according to the experience regulated value and the amendment regulated value;
Module is assigned, for assigning weighted value for the new experience regulated value;
Increase module, for increasing the new experience regulated value and the corresponding weighted value of the new experience regulated value
To in the experience library.
The advantageous effect that technical solution provided in an embodiment of the present invention is brought is:
By, to when being aligned figure and being aligned, being obtained alignment pattern from metadata to being aligned figure when by alignment pattern
The aligned position of shape alignment;It is that alignment pattern is aligned by alignment edge to figure is aligned with aligned position.The embodiment of the present invention
Technical solution, aligned position can be any position being aligned in figure, be not limited to be aligned the outer edge of figure.Cause
The technical solution of this embodiment of the present invention, can according to the alignment pattern that metadata includes, be aligned figure and aligned position
Correspondence, with aligned position be alignment edge by alignment pattern to figure alignment is aligned, and in the prior art, alignment figure
The technical solution that shape can only be aligned to the outer edge for being aligned figure is compared, and can efficiently reduce a large amount of manual adjustment, greatly
Big enhancing improves alignment efficiency.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings
Attached drawing.
Fig. 1 is the flow chart for the figure alignment schemes that one embodiment of the invention provides;
Fig. 2 is the instance graph of figure alignment schemes provided in an embodiment of the present invention;
Fig. 3 is the flow chart for the figure alignment schemes that another embodiment of the present invention provides;
Fig. 4 is the structural schematic diagram for the figure alignment means that one embodiment of the invention provides;
Fig. 5 is the structural schematic diagram for the figure alignment means that another embodiment of the present invention provides;
Fig. 6 is the structural schematic diagram of the terminal device involved by the embodiment of the present invention.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Fig. 1 is the flow chart for the figure alignment schemes that one embodiment of the invention provides.As shown in Figure 1, the figure of the present embodiment
Shape alignment schemes, can specifically include following steps:
100, it, to when being aligned figure and being aligned, is obtained alignment pattern from metadata to being aligned figure when by alignment pattern
The aligned position of shape alignment;
Metadata in the present embodiment includes alignment pattern, is aligned figure and the correspondence of aligned position.This reality
It can be the arbitrary graphic in Software for Design to apply the alignment pattern of example and be aligned figure.Such as in software UI designs, quilt
Alignment pattern can be the front view of mobile terminal, and alignment pattern can be the tool bar etc. being shown on mobile terminal screen
Deng.
101, it is that alignment pattern is aligned by alignment edge to figure is aligned with aligned position.
The executive agent of the figure alignment schemes of the present embodiment is figure alignment means, such as the figure alignment means are specific
It can be the device that a UI design software integrates.
The figure alignment schemes of the present embodiment, by when by alignment pattern to be aligned figure be aligned when, from metadata
Obtain by alignment pattern to be aligned figure be aligned aligned position;In metadata;It is that alignment edge will alignment with aligned position
Figure is aligned to figure is aligned.The technical solution of the present embodiment, aligned position can be any position being aligned in figure,
It is not limited to be aligned the outer edge of figure.Therefore the technical solution of this hair embodiment, pair that can include according to metadata
Neat figure, the correspondence for being aligned figure and aligned position are alignment edge by alignment pattern to being aligned with aligned position
Figure is aligned, and in the prior art, the technical solution that alignment pattern can only be aligned to the outer edge for being aligned figure is compared, can
A large amount of manual adjustment is efficiently reduced, raising alignment efficiency is greatly enhanced.
Optionally, on the basis of the technical solution of above-mentioned embodiment illustrated in fig. 1, step 100 " when by alignment pattern to quilt
When alignment pattern is aligned, obtained from metadata by alignment pattern to be aligned aligned position that figure is aligned " before, can be with
Including:Determine the correspondence for existing in metadata and including alignment pattern and being aligned figure.
Still optionally further, on the basis of the technical solution of above-described embodiment, when there is no include alignment in metadata
When figure and the correspondence for being aligned figure, according to the color for being aligned figure, analysis is aligned the profile of figure, determination pair
Neat figure is to the aligned position for being aligned figure and being aligned.Further, can be that alignment edge will according to the aligned position at this time
Alignment pattern is aligned to figure is aligned.
Such as the instance graph that Fig. 2 is figure alignment schemes provided in an embodiment of the present invention.As shown in Fig. 2, to be aligned figure
Shape 1 is the front view of mobile terminal, and alignment pattern 2 is for tool bar.When by the tool bar shown in mobile terminal to the shifting
When the front view alignment of dynamic terminal, it is aligned the color of the front view of 1 mobile terminal of figure by analysis, i.e. mobile terminal
Frame is black, and screen displaying part is white, the profile of mobile terminal front view is analyzed, it is known that the screen of mobile terminal
When any part, which part frame is, can be determined in this way when the tool bar is arranged on the screen of the mobile terminal, the tool bar
It should be the screen left-justify with mobile terminal, rather than be aligned with the left hand edge of the front view of mobile terminal.So as to true
Determine the left hand edge for the screen that aligned position is the mobile terminal.It is similarly different according to the figure being aligned in practical application, the alignment
Position can also be the right hand edge either top edge of mobile terminal screen or the mobile terminal screen of the screen of the mobile terminal
Lower edge, herein no longer one by one citing repeat.
Still optionally further, can also include:By alignment pattern, it is aligned the correspondence deposit of figure and aligned position
In metadata.In this way, when can be aligned in order to which the alignment pattern is aligned figure to this again, quick obtaining to alignment bit
It sets, improves the efficiency of alignment.
Still optionally further, on the basis of the technical solution of above-described embodiment, wherein step 101 " is with aligned position
Alignment edge " later, can also include the following steps alignment pattern to figure alignment is aligned:
(1)The maximum experience regulated value of weighted value is obtained from experience library;
(2)Rule of thumb regulated value carries out alignment adjusting to alignment pattern.
Storage is by multiple experience regulated values and the corresponding weighted value of each experience regulated value wherein in the experience library.It needs
Bright, the weighted value in the present embodiment can be arranged according to the access times of the empirical value, the number which uses
More, corresponding weighted value is bigger, and the number that otherwise empirical value uses is fewer, and corresponding weighted value is smaller.In addition, this implementation
Weighted value in example can also be arranged according to the time that the experience regulated value uses, if the time that the empirical value uses is newer,
Indicating the experience weighted value, adopted probability is larger recently, and corresponding weighted value can be arranged bigger.If the empirical value makes
Time is older, and indicating the experience weighted value, adopted probability is smaller recently, and corresponding weighted value can be arranged smaller.
Therefore can also be in addition to each experience regulated value in the experience library, corresponding weighted value of each experience regulated value etc can be with
Frequency of use and usage time including each experience regulated value etc..
The experience regulated value is specifically as follows the empirical value of lateral adjustments, the empirical value of longitudinally adjust in the present embodiment
Etc..In this way can be after step 101 alignment, rule of thumb regulated value is by alignment pattern lateral adjustments empirical value, longitudinally
Empirical value is adjusted, is aligned to the aligned position for being aligned figure.
Still optionally further, on the basis of the technical solution of above-described embodiment, work as step(2)" rule of thumb regulated value
Carrying out alignment adjusting to alignment pattern " later, can also include:Terminate when figure is aligned, experience regulated value in update experience library
Corresponding weighted value.That is, after if rule of thumb regulated value carries out alignment adjusting to alignment pattern, figure is aligned at this time
Terminate, that is, indicates that alignment pattern has reached user demand to figure alignment is aligned.Experience in experience library can be updated at this time
The corresponding weighted value of regulated value.Particularly due to the experience regulated value is used again, the experience tune in experience library can be updated
The frequency of use and usage time of section value, so as to be further added by the weighted value of the experience regulated value.
Still optionally further, on the basis of the technical solution of above-described embodiment, step(2)" rule of thumb regulated value pair
Alignment pattern, which carries out alignment adjusting, " later, can also include the following steps:
(a)Receive the aligned instruction that user is sent out by human-machine interface module;Aligned instruction includes correcting regulated value;
(b)Alignment adjusting is carried out to alignment pattern according to regulated value is corrected.
That is, after rule of thumb alignment pattern is adjusted in regulated value, it cannot still meet the alignment of user
Demand, user can include correcting regulated value by human-machine interface module input aligned instruction, aligned instruction at this time;Such as it repaiies
Positive regulator value may include how much laterally correcting adjusting again, and longitudinal to correct adjusting again how many etc..The aligned instruction can be to use
What family directly inputted, touch show equipment in, can be user directly by pull alignment pattern caused by.
Still optionally further, on the basis of the technical solution of above-described embodiment, step(b)" according to amendment regulated value pair
Alignment pattern carries out alignment adjusting " after, it can also include the following steps:
(ⅰ)Rule of thumb regulated value and amendment regulated value calculate new experience regulated value;
(ⅱ)Weighted value is assigned for new experience regulated value;
(ⅲ)New experience regulated value and the new corresponding weighted value of experience regulated value are increased in experience library.
For example, when using experience regulated value alignment adjust after, if user also by correct regulated value to alignment pattern into
Row is adjusted, and rule of thumb new experience regulated value can be calculated in regulated value and amendment regulated value at this time.And can be for this
New experience regulated value assigns weighted value;By new experience regulated value and the new corresponding weighted value of experience regulated value increase to through
It tests in library.The frequency of use and usage time of the new experience regulated value can also be stored in experience library simultaneously.As this is new
Experience regulated value is just calculated, and rule of thumb alignment pattern is adjusted in regulated value and amendment regulated value respectively, is equivalent to
It has carried out the new experience regulated value of primary basis alignment pattern is adjusted, the frequency of use of this stylish experience regulated value is
1 time.In this way, new experience regulated value can be also increased in experience library, used convenient for next time.
All optional technical solutions of above-described embodiment, may be used combinable mode and arbitrarily combine, form this hair
Bright alternative embodiment, no longer repeats one by one again.
The technical solution of above-described embodiment, can according to the alignment pattern that metadata includes, be aligned figure and alignment
The correspondence of position is alignment edge by alignment pattern to being aligned figure alignment with aligned position, and in the prior art, right
The technical solution that neat figure can only be aligned to the outer edge for being aligned figure is compared, and a large amount of artificial tune can be efficiently reduced
Section greatly enhances raising alignment efficiency.Further, the technical solution of above-described embodiment, warp that can also rule of thumb in library
It tests regulated value alignment pattern is adjusted, or can also further receive the alignment that user is sent out by human-machine interface module
Instruction;Aligned instruction includes correcting regulated value;And alignment adjusting is carried out to alignment pattern according to regulated value is corrected, it can be into one
The efficiency of step enhancing alignment.
Fig. 3 is the flow chart for the figure alignment schemes that another embodiment of the present invention provides.As shown in figure 3, the present embodiment
Figure alignment schemes are further introduced in further detail on the basis of the technical solution of above-mentioned Fig. 1 and above-mentioned alternative embodiment
Technical scheme of the present invention.As shown in figure 3, the figure alignment schemes of the present embodiment, can specifically include following steps:
200, when by alignment pattern to when being aligned figure and being aligned, judge in metadata with the presence or absence of include alignment pattern with
It is aligned the correspondence of figure;When included, step 201 is executed;Otherwise when not including, step 202 is executed;
201, from metadata obtain by alignment pattern to be aligned figure be aligned aligned position;Execute step 203;
202, according to the color of figure is aligned, analysis is aligned the profile of figure, determines alignment pattern to being aligned figure
The aligned position of shape alignment;Execute step 203;
After corresponding step 202, can also include:By alignment pattern, it is aligned the corresponding of figure and aligned position and closes
In system's deposit metadata.In this way, can in order to again by the alignment pattern to this be aligned figure be aligned when, quick obtaining to pair
The efficiency of alignment is improved in neat position.
203;It is that alignment pattern is aligned by alignment edge to figure is aligned with aligned position;Execute step 204;
204, the maximum experience regulated value of weighted value is obtained from experience library;Execute step 205;
205, rule of thumb regulated value carries out alignment adjusting to alignment pattern;Execute step 206;
After corresponding step 205, can also include:When figure alignment terminates, experience regulated value corresponds in update experience library
Weighted value.
206, judge whether user has and adjust the alignment pattern again;When being, step 207 is executed;Otherwise when not having
When having adjusting, terminate.
207, the aligned instruction that user is sent out by human-machine interface module is received;Execute step 208;
The aligned instruction includes correcting regulated value in the present embodiment.
208, alignment adjusting is carried out to alignment pattern according to amendment regulated value;Execute step 209;
209, rule of thumb regulated value and amendment regulated value calculate new experience regulated value;Execute step 210;
210, weighted value is assigned for new experience regulated value;Execute step 211;
211, new experience regulated value and the new corresponding weighted value of experience regulated value are increased in experience library.
In this way, the step can also increase to new experience regulated value in experience library, used convenient for next time.
The figure alignment schemes of the present embodiment, can according to the alignment pattern that metadata includes, be aligned figure and right
The correspondence of neat position is alignment edge by alignment pattern to being aligned figure alignment with aligned position, and in the prior art,
The technical solution that alignment pattern can only be aligned to the outer edge for being aligned figure is compared, and a large amount of artificial tune can be efficiently reduced
Section greatly enhances raising alignment efficiency.Further, the technical solution of above-described embodiment, warp that can also rule of thumb in library
It tests regulated value alignment pattern is adjusted, or can also further receive the alignment that user is sent out by human-machine interface module
Instruction;Aligned instruction includes correcting regulated value;And alignment adjusting is carried out to alignment pattern according to regulated value is corrected, it can be into one
The efficiency of step enhancing alignment.
Fig. 4 is the structural schematic diagram for the figure alignment means that one embodiment of the invention provides.As shown in figure 4, the present embodiment
Figure alignment means, can specifically include:Acquisition module 10 and alignment module 11.
Wherein acquisition module 10 is used for when by alignment pattern, to when being aligned figure alignment, being obtained from metadata will alignment
Figure to be aligned figure be aligned aligned position;The metadata includes alignment pattern, is aligned figure and aligned position
Correspondence;Alignment module 11 is connect with acquisition module 10, the aligned position that alignment module 11 is used to obtain with acquisition module 10
Alignment pattern is aligned to figure is aligned for alignment edge.
The figure alignment means of the present embodiment realize that figure alignment is implemented with above-mentioned correlation technique by using above-mentioned module
The realization mechanism of example is identical, can refer to the related of above-described embodiment in detail and record, details are not described herein.
The figure alignment means of the present embodiment, by using above-mentioned module realize when by alignment pattern to being aligned figure pair
Qi Shi, from metadata obtain by alignment pattern to be aligned figure be aligned aligned position;In metadata;It is with aligned position
Alignment pattern is aligned by alignment edge to figure is aligned.The technical solution of the present embodiment, aligned position can be to be aligned figure
Any position in shape is not limited to be aligned the outer edge of figure.Therefore the technical solution of this hair embodiment, can be according to member
Alignment pattern that data include, the correspondence for being aligned figure and aligned position are that alignment edge will be right with aligned position
Neat figure is to figure alignment is aligned, and in the prior art, alignment pattern can only be to the skill for the outer edge alignment for being aligned figure
Art scheme is compared, and a large amount of manual adjustment can be efficiently reduced, and greatly enhances raising alignment efficiency.
Fig. 5 is the structural schematic diagram for the figure alignment means that another embodiment of the present invention provides.As shown in figure 5, this implementation
The figure alignment means of example can also include further following skill on the basis of the technical solution of above-mentioned embodiment illustrated in fig. 4
Art scheme.
As shown in figure 5, the figure alignment means of the present embodiment can also include determining module 12.The determining module 12 is used for
When by alignment pattern, to when being aligned figure and being aligned, acquisition module 10 is obtained alignment pattern from metadata to being aligned figure
Before the aligned position of alignment, the correspondence for existing in metadata and including alignment pattern and being aligned figure is determined.Obtain mould
Block 10 is connect with determining module 12, acquisition module 10 be used for when determining module 12 determine in metadata exist include alignment pattern with
When being aligned the correspondence of figure, from metadata obtain by alignment pattern to be aligned figure be aligned aligned position
Still optionally further, which is additionally operable to when there is no include alignment pattern and be aligned figure in metadata
When the correspondence of shape, according to the color for being aligned figure, analysis is aligned the profile of figure, determines alignment pattern to being aligned
The aligned position of figure alignment;
Still optionally further, the figure alignment means of the present embodiment can also include memory module 13, the memory module 13
It is connect with acquisition module 10, which is used for alignment pattern, is aligned the alignment that figure and acquisition module 10 obtain
In the correspondence deposit metadata of position.
Still optionally further, further include experience adjustment module 14 in the figure alignment means of the present embodiment.Wherein obtain mould
Block 10 is additionally operable to be to be aligned edge with aligned position in alignment module 11 by alignment pattern to after being aligned figure alignment, from warp
Test the acquisition maximum experience regulated value of weighted value in library;Experience adjustment module 14 is connect with acquisition module 10, experience adjustment module
The 14 experience regulated value for being obtained according to acquisition module 10 carries out alignment adjusting to alignment pattern.
Still optionally further, further include update module 15 in the figure alignment means of the present embodiment.The update module 15 is used
After in experience adjustment module 14, rule of thumb regulated value carries out alignment adjusting to alignment pattern, terminate when figure is aligned, more
The corresponding weighted value of experience regulated value in new experience library.
Still optionally further, in the figure alignment means of the present embodiment further include receiving module 16 and amendment adjustment module
17.After the receiving module 16 is for rule of thumb regulated value to carry out alignment adjusting to alignment pattern, reception user passes through man-machine
The aligned instruction that interface module is sent out;Aligned instruction includes correcting regulated value;Adjustment module 17 is corrected with receiving module 16 to connect
It connects, corrects the amendment regulated value of aligned instruction that adjustment module 17 is used to receive according to receiving module 16 and alignment pattern is carried out pair
It is neat to adjust.
Still optionally further, further include computing module 18 in the figure alignment means of the present embodiment, assign module 19 and increase
Add module 20.Wherein computing module 18 is connect with acquisition module 10 and receiving module 16 respectively, and computing module 18 is for correcting
After adjustment module carries out alignment adjusting according to amendment regulated value to alignment pattern, adjusted according to the experience that acquisition module 10 obtains
Amendment regulated value in the aligned instruction that value and receiving module 16 receive calculates new experience regulated value;It assigns module 19 and calculates
Module 18 connects, and assigns module 19 with the new experience regulated value for being used to calculate for computing module 18 and assigns weighted value;Increase mould
Block 20 respectively with computing module 18 and assign module 19 connect, increase module 20 be used for by computing module 18 be calculated newly
Experience regulated value is increased to the corresponding weighted value of new experience regulated value that module 19 be imparting is assigned in experience library.
All optional technical solutions of the present embodiment, may be used combinable mode and arbitrarily combine, and form the present invention
Alternative embodiment, no longer repeat one by one again.
The figure alignment means of the present embodiment realize that figure alignment is implemented with above-mentioned correlation technique by using above-mentioned module
The realization mechanism of example is identical, can refer to the related of above-described embodiment in detail and record, details are not described herein.
The figure alignment means of the present embodiment realize the alignment figure for including according to metadata by using above-mentioned module
Shape, the correspondence for being aligned figure and aligned position, with aligned position be alignment edge by alignment pattern to being aligned figure
Alignment, in the prior art, the technical solution that alignment pattern can only be aligned to the outer edge for being aligned figure is compared, can be effective
Ground reduces a large amount of manual adjustment, greatly enhances raising alignment efficiency.Further, the technical solution of above-described embodiment, may be used also
Alignment pattern is adjusted with the experience regulated value in rule of thumb library, or can also further receive user pass through it is man-machine
The aligned instruction that interface module is sent out;Aligned instruction includes correcting regulated value;And according to correct regulated value to alignment pattern into
Row alignment is adjusted, and can further enhance the efficiency of alignment.
It should be noted that:The figure alignment means that above-described embodiment provides are when figure is aligned, only with above-mentioned each function
The division progress of module, can be as needed and by above-mentioned function distribution by different function moulds for example, in practical application
Block is completed, i.e., the internal structure of device is divided into different function modules, to complete all or part of work(described above
Energy.In addition, the figure alignment means that above-described embodiment provides belong to same design with figure alignment schemes embodiment, it is specific real
Existing process refers to embodiment of the method, and which is not described herein again.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
Fig. 6 is the structural schematic diagram of the terminal device involved by the embodiment of the present invention, which can be used for implementing
The figure alignment schemes provided in above-described embodiment.Specifically:
Terminal device 600 may include RF(Radio Frequency, radio frequency)Circuit 110 including there are one or one with
Memory 120, input unit 130, display unit 140, sensor 150, the voicefrequency circuit of upper computer readable storage medium
160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include there are one or more than one processing core
The components such as processor 180 and power supply 190.It will be understood by those skilled in the art that terminal device structure shown in Fig. 6 is simultaneously
The restriction to terminal device is not constituted, may include either combining certain components or not than illustrating more or fewer components
Same component arrangement.Wherein:
RF circuits 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent to
Base station.In general, RF circuits 110 include but not limited to antenna, at least one amplifier, tuner, one or more oscillators, use
Family identity module(SIM)Card, transceiver, coupler, LNA(Low Noise Amplifier, low-noise amplifier), duplex
Device etc..In addition, RF circuits 110 can also be communicated with network and other equipment by radio communication.The wireless communication can make
With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely
Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA
(Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS
(Short Messaging Service, short message service) etc..
Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operation
Software program and module, to perform various functions application and data processing.Memory 120 can include mainly storage
Program area and storage data field, wherein storing program area can storage program area, the application program needed at least one function
(Such as sound-playing function, image player function etc.)Deng;Storage data field can be stored to be created according to using for terminal device 600
The data built(Such as audio data, phone directory etc.)Deng.In addition, memory 120 may include high-speed random access memory, also
May include nonvolatile memory, a for example, at least disk memory, flush memory device or the storage of other volatile solid-states
Device.Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to depositing
The access of reservoir 120.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function
Control related keyboard, mouse, operating lever, optics or the input of trace ball signal.Specifically, input unit 130 may include touching
Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used
Family is on it or neighbouring touch operation(For example user uses any suitable objects or attachment such as finger, stylus in touch-sensitive table
Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional
, touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used
The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch
Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180
The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically,
Other input equipments 132 can include but is not limited to physical keyboard, function key(Such as volume control button, switch key etc.)、
It is one or more in trace ball, mouse, operating lever etc..
Display unit 140 can be used for showing information input by user or the information and terminal device that are supplied to user
600 various graphical user interface, these graphical user interface can by figure, text, icon, video and its arbitrary combination Lai
It constitutes.Display unit 140 may include display panel 141, optionally, may be used LCD (Liquid Crystal Display,
Liquid crystal display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) it is aobvious to configure
Show panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detect it is on it or attached
After close touch operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing device 180 according to touch event
Type corresponding visual output is provided on display panel 141.Although in figure 6, touch sensitive surface 131 and display panel 141
It is to realize input and input function as two independent components, but in some embodiments it is possible to by touch sensitive surface 131
It is integrated with display panel 141 and realizes and output and input function.
Terminal device 600 may also include at least one sensor 150, for example, optical sensor, motion sensor and other
Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can basis
The light and shade of ambient light adjusts the brightness of display panel 141, proximity sensor can when terminal device 600 is moved in one's ear,
Close display panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect all directions
On(Generally three axis)The size of acceleration can detect that size and the direction of gravity, can be used to identify mobile phone posture when static
Application(Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function(For example it pedometer, strikes
It hits)Deng;Gyroscope, barometer, hygrometer, thermometer, infrared sensor for can also configure as terminal device 600 etc. other
Sensor, details are not described herein.
Voicefrequency circuit 160, loud speaker 161, microphone 162 can provide the audio interface between user and terminal device 600.
The transformed electric signal of the audio data received can be transferred to loud speaker 161, is converted by loud speaker 161 by voicefrequency circuit 160
It is exported for voice signal;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, is connect by voicefrequency circuit 160
Be converted to audio data after receipts, then by after the processing of audio data output processor 180, it is such as another to be sent to through RF circuits 110
One terminal device, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that
Earphone jack, to provide the communication of peripheral hardware earphone and terminal device 600.
WiFi belongs to short range wireless transmission technology, and terminal device 600 can help user to receive and dispatch by WiFi module 170
Email, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 6
Show WiFi module 170, but it is understood that, and it is not belonging to must be configured into for terminal device 600, it completely can root
It is omitted in the range for the essence for not changing invention according to needs.
Processor 180 is the control centre of terminal device 600, utilizes each of various interfaces and connection whole mobile phone
Part by running or execute the software program and/or module that are stored in memory 120, and calls and is stored in memory
Data in 120 execute the various functions and processing data of terminal device 600, to carry out integral monitoring to mobile phone.It is optional
, processor 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modulatedemodulate
Adjust processor, wherein the main processing operation system of application processor, user interface and application program etc., modem processor
Main processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal device 600 further includes the power supply 190 powered to all parts(Such as battery), it is preferred that power supply can lead to
Cross power-supply management system and processor 180 be logically contiguous, to by power-supply management system realize management charging, electric discharge and
The functions such as power managed.Power supply 190 can also include one or more direct current or AC power, recharging system, electricity
The random components such as source fault detection circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, terminal device 600 can also include camera, bluetooth module etc., and details are not described herein.Specifically exist
In the present embodiment, the display unit of terminal device is touch-screen display, terminal device further include have memory and one or
The more than one program of person, one of them either more than one program be stored in memory and be configured to by one or
The execution of more than one processor states one or more than one program includes the instruction for being operated below:
It, to when being aligned figure and being aligned, is obtained the alignment pattern to described right from metadata when by alignment pattern
The aligned position of neat figure alignment;The metadata includes the alignment pattern, described is aligned figure and the alignment bit
The correspondence set;
It is that the alignment pattern is aligned figure alignment by alignment edge to described with the aligned position.
Optionally, which is additionally operable to storage to give an order:Determine that it includes the alignment figure to exist in the metadata
Shape and the correspondence for being aligned figure.
Optionally, which is additionally operable to storage to give an order:
When it includes the alignment pattern and the correspondence for being aligned figure to be not present in the metadata, according to
The color for being aligned figure is aligned the profile of figure described in analysis, determines that the alignment pattern is aligned figure to described
The aligned position of shape alignment;Further comprise:By the alignment pattern, pair for being aligned figure and the aligned position
It should be related in the deposit metadata.
Optionally, which is additionally operable to storage to give an order:The maximum experience of weighted value is obtained from experience library to adjust
Value;Alignment adjusting is carried out to the alignment pattern according to the experience regulated value.
Optionally, which is additionally operable to storage to give an order:Terminate when figure is aligned, updates described in the experience library
The corresponding weighted value of experience regulated value.
Optionally, which is additionally operable to storage to give an order:According to the experience regulated value to the alignment pattern into
After row alignment is adjusted, the method further includes:Receive the aligned instruction that user is sent out by human-machine interface module;The alignment
Instruction includes correcting regulated value;Alignment adjusting is carried out to the alignment pattern according to the amendment regulated value.
Optionally, which is additionally operable to storage to give an order:According to the experience regulated value and the amendment regulated value
Calculate new experience regulated value;Weighted value is assigned for the new experience regulated value;By the new experience regulated value and described
The new corresponding weighted value of experience regulated value increases in the experience library.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.
Claims (12)
1. a kind of figure alignment schemes, which is characterized in that the method includes:
It, to when being aligned figure alignment, is obtained from metadata and the alignment pattern is aligned figure to described when by alignment pattern
The aligned position of shape alignment;The metadata includes the alignment pattern, described is aligned figure and the aligned position
Correspondence;
It is that the alignment pattern is aligned figure alignment by alignment edge to described with the aligned position;
The maximum experience regulated value of weighted value is obtained from experience library;
Alignment adjusting is carried out to the alignment pattern according to the experience regulated value.
2. according to the method described in claim 1, it is characterized in that, it is described when by alignment pattern to be aligned figure be aligned when,
From in metadata obtain by the alignment pattern to it is described be aligned figure be aligned aligned position before, the method is also wrapped
It includes:
Determine that it includes the alignment pattern and the correspondence for being aligned figure to exist in the metadata.
3. according to the method described in claim 2, it is characterized in that, the method further includes:
When it includes the alignment pattern and the correspondence for being aligned figure to be not present in the metadata, according to described
It is aligned the color of figure, the profile of figure is aligned described in analysis, determines that the alignment pattern is aligned figure pair to described
Neat aligned position;
The method further comprises:
The alignment pattern, the correspondence for being aligned figure and the aligned position are stored in the metadata.
4. according to the method described in claim 1, it is characterized in that, being carried out to the alignment pattern according to the experience regulated value
After alignment is adjusted, the method further includes:
Terminate when figure is aligned, updates the corresponding weighted value of experience regulated value described in the experience library.
5. according to the method described in claim 1, it is characterized in that, being carried out to the alignment pattern according to the experience regulated value
After alignment is adjusted, the method further includes:
Receive the aligned instruction that user is sent out by human-machine interface module;The aligned instruction includes correcting regulated value;
Alignment adjusting is carried out to the alignment pattern according to the amendment regulated value.
6. according to the method described in claim 5, it is characterized in that, being carried out to the alignment pattern according to the amendment regulated value
After alignment is adjusted, the method further includes:
New experience regulated value is calculated according to the experience regulated value and the amendment regulated value;
Weighted value is assigned for the new experience regulated value;
The new experience regulated value and the new corresponding weighted value of experience regulated value are increased in the experience library.
7. a kind of figure alignment means, which is characterized in that described device includes:
Acquisition module, for, to when being aligned figure alignment, being obtained the alignment pattern from metadata when by alignment pattern
To the aligned position for being aligned figure and being aligned;The metadata include the alignment pattern, it is described be aligned figure and
The correspondence of the aligned position;
Alignment module, for being that the alignment pattern is aligned figure alignment by alignment edge to described with the aligned position;
The acquisition module is additionally operable to obtain the maximum experience regulated value of weighted value from experience library;
Experience adjustment module, for carrying out alignment adjusting to the alignment pattern according to the experience regulated value.
8. device according to claim 7, which is characterized in that described device further includes:
Determining module, for when, to when being aligned figure alignment, the acquisition module is obtained from metadata will by alignment pattern
The alignment pattern to it is described be aligned figure be aligned aligned position before, determine in the metadata exist include described right
Neat figure and the correspondence for being aligned figure.
9. device according to claim 8, it is characterised in that:
The determining module, is additionally operable in the metadata that there is no include the alignment pattern and described be aligned figure
When correspondence, according to the color for being aligned figure, it is aligned the profile of figure described in analysis, determines the alignment pattern
To the aligned position for being aligned figure and being aligned;
Described device further includes:
Memory module, for the alignment pattern, the correspondence for being aligned figure and the aligned position to be stored in institute
It states in metadata.
10. device according to claim 7, which is characterized in that described device further includes:
Update module, for carrying out alignment tune to the alignment pattern according to the experience regulated value in the experience adjustment module
After section, terminates when figure is aligned, update the corresponding weighted value of experience regulated value described in the experience library.
11. device according to claim 7, which is characterized in that described device further includes:
It is logical to receive user after carrying out alignment adjusting to the alignment pattern according to the experience regulated value for receiving module
Cross the aligned instruction that human-machine interface module is sent out;The aligned instruction includes correcting regulated value;
Adjustment module is corrected, for carrying out alignment adjusting to the alignment pattern according to the amendment regulated value.
12. according to the devices described in claim 11, which is characterized in that described device further includes:
Computing module, for carrying out alignment tune to the alignment pattern according to the amendment regulated value in the amendment adjustment module
After section, new experience regulated value is calculated according to the experience regulated value and the amendment regulated value;
Module is assigned, for assigning weighted value for the new experience regulated value;
Increase module, for the new experience regulated value and the new corresponding weighted value of experience regulated value to be increased to institute
It states in experience library.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310230711.3A CN104239005B (en) | 2013-06-09 | 2013-06-09 | Figure alignment schemes and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310230711.3A CN104239005B (en) | 2013-06-09 | 2013-06-09 | Figure alignment schemes and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104239005A CN104239005A (en) | 2014-12-24 |
CN104239005B true CN104239005B (en) | 2018-07-27 |
Family
ID=52227156
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310230711.3A Active CN104239005B (en) | 2013-06-09 | 2013-06-09 | Figure alignment schemes and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104239005B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104978428A (en) * | 2015-07-10 | 2015-10-14 | 无锡天脉聚源传媒科技有限公司 | Method and device for displaying abstract pictures of resources |
CN105787926B (en) * | 2016-02-04 | 2018-07-27 | 上海爱福窝云技术有限公司 | A kind of method and device of figure automatic aligning |
CN109815535B (en) * | 2018-12-18 | 2023-08-22 | 北京金百泽科技有限公司 | Method and device for integrally aligning graphic objects of PCB (printed Circuit Board) material |
CN110389810B (en) * | 2019-07-31 | 2023-03-31 | 创新先进技术有限公司 | Method, device and equipment for quickly placing UI (user interface) control on virtual canvas |
CN113554725A (en) * | 2020-04-24 | 2021-10-26 | 西安诺瓦星云科技股份有限公司 | Multi-pattern moving adsorption method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001291106A (en) * | 2000-04-11 | 2001-10-19 | Olympus Optical Co Ltd | Method and device for aligning image |
CN1760915A (en) * | 2004-10-01 | 2006-04-19 | Medcom医学图像处理有限公司 | Registration of first and second image data of an object |
CN101901472A (en) * | 2010-07-07 | 2010-12-01 | 清华大学 | Method for aligning non-rigid robust batch images based on matrix rank minimization |
CN102077570A (en) * | 2008-06-24 | 2011-05-25 | 皇家飞利浦电子股份有限公司 | Image processing |
CN102411620A (en) * | 2010-11-16 | 2012-04-11 | 微软公司 | Method For Displaying Relative Image Searching Result |
CN102461152A (en) * | 2009-06-24 | 2012-05-16 | 惠普开发有限公司 | Compilation of images |
-
2013
- 2013-06-09 CN CN201310230711.3A patent/CN104239005B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001291106A (en) * | 2000-04-11 | 2001-10-19 | Olympus Optical Co Ltd | Method and device for aligning image |
CN1760915A (en) * | 2004-10-01 | 2006-04-19 | Medcom医学图像处理有限公司 | Registration of first and second image data of an object |
CN102077570A (en) * | 2008-06-24 | 2011-05-25 | 皇家飞利浦电子股份有限公司 | Image processing |
CN102461152A (en) * | 2009-06-24 | 2012-05-16 | 惠普开发有限公司 | Compilation of images |
CN101901472A (en) * | 2010-07-07 | 2010-12-01 | 清华大学 | Method for aligning non-rigid robust batch images based on matrix rank minimization |
CN102411620A (en) * | 2010-11-16 | 2012-04-11 | 微软公司 | Method For Displaying Relative Image Searching Result |
Also Published As
Publication number | Publication date |
---|---|
CN104239005A (en) | 2014-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104243671B (en) | Volume adjusting method, device and electronic equipment | |
CN106933525B (en) | A kind of method and apparatus showing image | |
CN105224556B (en) | Waterfall stream interface display methods and device | |
CN104252341B (en) | The client device of the skin change method of application program, device and application program | |
CN103530115B (en) | Application program display method and device and terminal equipment | |
CN103605471B (en) | Single-hand control method, device and handheld device | |
CN103473051A (en) | Method and device for saving terminal power consumption | |
CN106791955B (en) | A kind of method and system of determining live streaming duration | |
CN105022616A (en) | Method and device for generating web page | |
CN106293375B (en) | A kind of method for changing scenes and equipment | |
CN104239005B (en) | Figure alignment schemes and device | |
US9977651B2 (en) | Mobile terminal and image processing method thereof | |
CN103325332A (en) | Webpage refreshing method, device and equipment | |
CN106204423A (en) | A kind of picture-adjusting method based on augmented reality, device and terminal | |
CN103310009A (en) | Method, device and terminal for updating webpage data | |
CN106504303B (en) | A kind of method and apparatus playing frame animation | |
CN106951139A (en) | Message notifying frame display methods and device | |
CN103399657B (en) | The control method of mouse pointer, device and terminal unit | |
CN107957841A (en) | Roll screenshotss method and device | |
CN107734152A (en) | A kind of mobile terminal and brightness control method with illumination functions | |
CN109002238A (en) | Number of characters display methods, device, terminal and computer readable storage medium | |
CN110413639A (en) | Data check method and device, electronic equipment and computer readable storage medium | |
CN104616333A (en) | Game video processing method and device | |
CN103677944A (en) | Method and device for manufacturing screen locking interface and terminal device | |
CN106023088B (en) | A kind of method and device adjusting brightness of image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |