[go: up one dir, main page]

CN104239005A - Graphic alignment method and device - Google Patents

Graphic alignment method and device Download PDF

Info

Publication number
CN104239005A
CN104239005A CN201310230711.3A CN201310230711A CN104239005A CN 104239005 A CN104239005 A CN 104239005A CN 201310230711 A CN201310230711 A CN 201310230711A CN 104239005 A CN104239005 A CN 104239005A
Authority
CN
China
Prior art keywords
alignment
aligned
experience
regulated value
alignment pattern
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310230711.3A
Other languages
Chinese (zh)
Other versions
CN104239005B (en
Inventor
李志锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310230711.3A priority Critical patent/CN104239005B/en
Publication of CN104239005A publication Critical patent/CN104239005A/en
Application granted granted Critical
Publication of CN104239005B publication Critical patent/CN104239005B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a graph alignment method and device and belongs to the technical field of user interface design. The method includes that when aligning graphs are aligned to aligned graphs, aligning positions of aligning the aligning graphs to the aligned graphs are obtained from metadata; the metadata include corresponding relation of the aligning graphs, the aligned graphs and the aligning positions; the aligning positions serve as aligning edges to align the aligning graphs to the aligned graphs. By means of the technical scheme, the aligning positions sever as the aligning edges to align the aligning graphs to the aligned graphs according to the corresponding relation of the aligning graphs, the aligned graphs and the aligning positions in the metadata. Compared with technical schemes that aligning graphs are merely aligned to outer edges of the aligned graphs in the prior art, the technical scheme has the advantages that massive manual adjustments can be effectively reduced, and the aligning efficiency can be greatly increased.

Description

Figure alignment schemes and device
Technical field
The present invention relates to user interface (User Interface; UI) design field, particularly a kind of figure alignment schemes and device.
Background technology
In existing UI design field, the design wherein about figure is a wherein very important part.
Automatic aligning function is about graphic designs common function in existing Software for Design.Automatic aligning function specifically refers in time pulling alignment pattern, if this alignment pattern and to be aligned Graph Distance very near, snaps to the outward flange being aligned figure, can improve the design efficiency of figure with regard to automatic absorbing.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem: figure alignment scheme of the prior art, only alignment pattern can be snapped to the outward flange being aligned figure.And in UI design, when needing alignment pattern to align to other aligned positions outside the outward flange being aligned figure, alignment can only be realized by a large amount of manual adjustment, cause existing figure alignment efficiency lower.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of figure alignment schemes and device.Described technical scheme is as follows:
On the one hand, provide a kind of figure alignment schemes, described method comprises:
When by alignment pattern to be aligned figure alignment time, obtain from metadata by described alignment pattern to described be aligned figure alignment aligned position; Described metadata comprise described alignment pattern, described in be aligned the corresponding relation of figure and described aligned position;
With described aligned position for described alignment pattern is aligned figure alignment to described by alignment edge.
Alternatively, in figure alignment schemes as above, described when by alignment pattern to be aligned figure alignment time, obtain from metadata by described alignment pattern to described be aligned figure alignment aligned position before, also comprise:
Determine to exist in described metadata to comprise described alignment pattern and the described corresponding relation being aligned figure.
Alternatively, in figure alignment schemes as above, also comprise:
When do not exist in described metadata comprise described alignment pattern and described be aligned the corresponding relation of figure time, according to the described color being aligned figure, be aligned the profile of figure described in analysis, determine that described alignment pattern is to the described aligned position being aligned figure alignment;
Described method further comprises:
By described alignment pattern, described in be aligned the corresponding relation of figure and described aligned position stored in described metadata.
Alternatively, in figure alignment schemes as above, with described aligned position for alignment edge by described alignment pattern to described be aligned figure alignment after, also comprise:
The experience regulated value that weighted value is maximum is obtained from experience storehouse;
Carry out alignment according to described experience regulated value to described alignment pattern to regulate.
Alternatively, in figure alignment schemes as above, according to described experience regulated value to described alignment pattern carry out alignment regulate after, also comprise:
When figure alignment terminates, upgrade the weighted value that described in described experience storehouse, experience regulated value is corresponding.
Alternatively, in figure alignment schemes as above, according to described experience regulated value to described alignment pattern carry out alignment regulate after, also comprise:
Receive the aligned instruction that user is sent by human-machine interface module; Described aligned instruction comprises correction regulated value;
Carry out alignment according to described correction regulated value to described alignment pattern to regulate.
Alternatively, in figure alignment schemes as above, according to described correction regulated value to described alignment pattern carry out alignment regulate after, also comprise:
New experience regulated value is calculated according to described experience regulated value and described correction regulated value;
For described new experience regulated value gives weighted value;
Described new experience regulated value and weighted value corresponding to described new experience regulated value are increased in described experience storehouse.
On the other hand, provide a kind of figure alignment means, described device comprises:
Acquisition module, for when by alignment pattern to be aligned figure alignment time, obtain from metadata by described alignment pattern to described be aligned figure alignment aligned position; Described metadata comprise described alignment pattern, described in be aligned the corresponding relation of figure and described aligned position;
Alignment module, for described aligned position for alignment edge by described alignment pattern to described be aligned figure alignment.
Alternatively, in figure alignment means as above, also comprise:
Determination module, for when by alignment pattern to be aligned figure alignment time, described acquisition module obtain from metadata by described alignment pattern to described be aligned figure alignment aligned position before, determine in described metadata exist comprise described alignment pattern and the described corresponding relation being aligned figure.
Alternatively, in figure alignment means as above, described determination module, also for when do not exist in described metadata comprise described alignment pattern and described be aligned the corresponding relation of figure time, according to the described color being aligned figure, be aligned the profile of figure described in analysis, determine that described alignment pattern is to the described aligned position being aligned figure alignment;
Described device also comprises:
Memory module, for by described alignment pattern, described in be aligned the corresponding relation of figure and described aligned position stored in described metadata.
Alternatively, in figure alignment means as above, experience adjustment module is also comprised:
Described acquisition module, also for described alignment module with described aligned position for alignment edge by described alignment pattern to described be aligned figure alignment after, from experience storehouse, obtain the experience regulated value that weighted value is maximum;
Experience adjustment module, regulates for carrying out alignment according to described experience regulated value to described alignment pattern.
Alternatively, in figure alignment means as above, also comprise:
Update module, after alignment regulates, when figure alignment terminates, upgrades the weighted value that described in described experience storehouse, experience regulated value is corresponding for carrying out described alignment pattern according to described experience regulated value in described experience adjustment module.
Alternatively, in figure alignment means as above, also comprise:
Receiver module, for carrying out after alignment regulates, receiving the aligned instruction that sent by human-machine interface module of user to described alignment pattern according to described experience regulated value; Described aligned instruction comprises correction regulated value;
Revising adjustment module, regulating for carrying out alignment according to described correction regulated value to described alignment pattern.
Alternatively, in figure alignment means as above, also comprise:
Computing module, after alignment regulates, calculates new experience regulated value according to described experience regulated value and described correction regulated value for carrying out described alignment pattern according to described correction regulated value in described correction adjustment module;
Give module, for giving weighted value for described new experience regulated value;
Increase module, for described new experience regulated value and weighted value corresponding to described new experience regulated value being increased in described experience storehouse.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By when by alignment pattern to be aligned figure alignment time, obtain from metadata by alignment pattern to be aligned figure alignment aligned position; Be that alignment pattern is alignd to being aligned figure by alignment edge with aligned position.The technical scheme of the embodiment of the present invention, aligned position for being aligned the optional position in figure, can not be defined as the outward flange being aligned figure.Therefore the technical scheme of the embodiment of the present invention, the alignment pattern that can comprise according to metadata, the corresponding relation being aligned figure and aligned position, be that alignment pattern is alignd to being aligned figure by alignment edge with aligned position, with prior art, alignment pattern can only be compared to the technical scheme of the outward flange alignment being aligned figure, can effectively reduce a large amount of manual shift, greatly strengthen and improve alignment efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The process flow diagram of the figure alignment schemes that Fig. 1 provides for one embodiment of the invention;
The instance graph of the figure alignment schemes that Fig. 2 provides for the embodiment of the present invention;
The process flow diagram of the figure alignment schemes that Fig. 3 provides for another embodiment of the present invention;
The structural representation of the figure alignment means that Fig. 4 provides for one embodiment of the invention;
The structural representation of the figure alignment means that Fig. 5 provides for another embodiment of the present invention;
The structural representation of the terminal device of Fig. 6 involved by the embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
The process flow diagram of the figure alignment schemes that Fig. 1 provides for one embodiment of the invention.As shown in Figure 1, the figure alignment schemes of the present embodiment, specifically can comprise the steps:
100, when by alignment pattern to be aligned figure alignment time, obtain from metadata by alignment pattern to be aligned figure alignment aligned position;
Metadata in the present embodiment comprises alignment pattern, is aligned the corresponding relation of figure and aligned position.The alignment pattern of the present embodiment can be the arbitrary graphic in Software for Design with being aligned figure.Such as in software UI designs, being aligned figure can be the front elevation of mobile terminal, and alignment pattern can for being presented at tool bar on mobile terminal screen etc.
101, be that alignment pattern is alignd to being aligned figure by alignment edge with aligned position.
The executive agent of the figure alignment schemes of the present embodiment is figure alignment means, and such as this figure alignment means is specifically as follows the integrated device of a UI design software.
The figure alignment schemes of the present embodiment, by when by alignment pattern to be aligned figure alignment time, obtain from metadata by alignment pattern to be aligned figure alignment aligned position; In metadata; Be that alignment pattern is alignd to being aligned figure by alignment edge with aligned position.The technical scheme of the present embodiment, aligned position for being aligned the optional position in figure, can not be defined as the outward flange being aligned figure.Therefore the technical scheme of this embodiment, the alignment pattern that can comprise according to metadata, the corresponding relation being aligned figure and aligned position, be that alignment pattern is alignd to being aligned figure by alignment edge with aligned position, with prior art, alignment pattern can only be compared to the technical scheme of the outward flange alignment being aligned figure, can effectively reduce a large amount of manual shift, greatly strengthen and improve alignment efficiency.
Alternatively, on the basis of above-mentioned technical scheme embodiment illustrated in fig. 1, step 100 " when by alignment pattern to when being aligned figure alignment; obtain from metadata and alignment pattern " before, can also be comprised: determine to exist in metadata and comprise alignment pattern and be aligned the corresponding relation of figure to the aligned position being aligned figure alignment.
Further alternatively, on the basis of the technical scheme of above-described embodiment, when there is not the corresponding relation comprising alignment pattern and be aligned figure in metadata, according to the color being aligned figure, analyze the profile being aligned figure, determine that alignment pattern is to the aligned position being aligned figure alignment.Further, now can according to this aligned position for alignment pattern be alignd to being aligned figure by alignment edge.
The instance graph of the figure alignment schemes that such as Fig. 2 provides for the embodiment of the present invention.As shown in Figure 2, to be aligned the front elevation that figure 1 is mobile terminal, alignment pattern 2 for tool bar be example.When front elevation from the tool bar will shown in mobile terminal to this mobile terminal alignment time, by analyzing the color being aligned the front elevation of figure 2 mobile terminal, namely the frame of mobile terminal is black, screen displaying part is white, analyze the profile of mobile terminal front elevation, any part when can know the screen of mobile terminal, which part frame is, when can determine like this to arrange this tool bar on the screen of this mobile terminal, this tool bar should be the screen left-justify with mobile terminal, instead of aligns with the left hand edge of the front elevation of mobile terminal.Thus can determine that aligned position is the left hand edge of the screen of this mobile terminal.In like manner different according to the figure that aligns in practical application, this aligned position can also be the right hand edge of the screen of this mobile terminal, or the coboundary of mobile terminal screen or the lower limb of mobile terminal screen, illustrates no longer one by one repeat at this.
Further alternatively, can also comprise: by alignment pattern, be aligned the corresponding relation of figure and aligned position stored in metadata.Like this, can so that when again this alignment pattern being aligned figure alignment to this, quick obtaining, to aligned position, improves the efficiency of alignment.
Further alternatively, on the basis of the technical scheme of above-described embodiment, wherein step 101 " is that alignment pattern " afterwards, can also comprise the steps: to being aligned figure alignment by alignment edge with aligned position
(1) from experience storehouse, obtain the maximum experience regulated value of weighted value;
(2) rule of thumb regulated value carries out alignment adjustment to alignment pattern.
Wherein store in this experience storehouse by multiple experience regulated value and weighted value corresponding to each experience regulated value.It should be noted that, the weighted value in the present embodiment can be arranged according to the access times of this empirical value, and the number of times that this empirical value uses is more, and corresponding weighted value is larger, otherwise the number of times that this empirical value uses is fewer, and corresponding weighted value is less.In addition, the time that the weighted value in the present embodiment also can use according to this experience regulated value is arranged, if the time that this empirical value uses is newer, represent that the nearest adopted probability of this experience weighted value is comparatively large, it is larger that corresponding weighted value can be arranged.If the time that this empirical value uses is older, represent that the nearest adopted probability of this experience weighted value is less, it is less that corresponding weighted value can be arranged.Therefore can also except each experience regulated value in this experience storehouse, weighted value that each experience regulated value is corresponding and so on, can also comprise the frequency of utilization and service time etc. of each experience regulated value.
In the present embodiment, this experience regulated value is specifically as follows the empirical value of lateral adjustments, empirical value longitudinally regulated etc.Like this can after step 101 be alignd, rule of thumb regulated value is by alignment pattern lateral adjustments empirical value, longitudinally regulates empirical value, to the aligned position alignment being aligned figure.
Further alternatively, on the basis of the technical scheme of above-described embodiment, when step (2) " rule of thumb regulated value alignment pattern carried out alignment regulate " after, can also comprise: when figure alignment terminates, upgrade the weighted value that in experience storehouse, experience regulated value is corresponding.That is, if after rule of thumb regulated value carries out alignment adjustment to alignment pattern, now figure alignment terminates, namely represent that alignment pattern reaches user's request to being aligned figure alignment.Now can upgrade the weighted value that in experience storehouse, experience regulated value is corresponding.Specifically because this experience regulated value is used again, frequency of utilization and the service time of this experience regulated value in experience storehouse can be upgraded, thus the weighted value of this experience regulated value can be increased again.
Further alternatively, on the basis of the technical scheme of above-described embodiment, step (2) " rule of thumb regulated value to alignment pattern carry out alignment regulate " afterwards, can also comprise the steps:
A () receives the aligned instruction that user is sent by human-machine interface module; Aligned instruction comprises correction regulated value;
B () is carried out alignment according to correction regulated value to alignment pattern and is regulated.
That is, after rule of thumb regulated value regulates alignment pattern, still can not meet the alignment requirement of user, now user can input aligned instruction by human-machine interface module, and aligned instruction comprises correction regulated value; Such as correction regulated value can comprise horizontal correction again and regulate how many, and longitudinal adjustment of correction is again how many etc.This aligned instruction directly can input for user, in the touch display device, and can directly by pulling, alignment pattern produces for user.
Further alternatively, on the basis of the technical scheme of above-described embodiment, step (b) can also comprise the steps: after " carrying out alignment according to correction regulated value to alignment pattern to regulate "
(I) rule of thumb regulated value and correction regulated value calculates new experience regulated value;
(II) is new experience regulated value imparting weighted value;
New experience regulated value and weighted value corresponding to new experience regulated value are increased in experience storehouse by (III).
Such as, align after regulating when utilizing experience regulated value, if user also regulates alignment pattern by revising regulated value, now rule of thumb regulated value and correction regulated value can calculate new experience regulated value.And can be that new experience regulated value gives weighted value for this; New experience regulated value and weighted value corresponding to new experience regulated value are increased in experience storehouse.Frequency of utilization and the service time of this new experience regulated value can also be stored in experience storehouse simultaneously.Experience regulated value as new in this just calculates, rule of thumb regulated value and correction regulated value regulate alignment pattern respectively, be equivalent to carry out once regulating alignment pattern according to new experience regulated value, the frequency of utilization of this stylish experience regulated value is 1 time.Like this, new experience regulated value also can be increased in experience storehouse, be convenient to use next time.
All alternatives of above-described embodiment, can adopt combinable mode combination in any, form optional embodiment of the present invention, again repeat no longer one by one.
The technical scheme of above-described embodiment, the alignment pattern that can comprise according to metadata, the corresponding relation being aligned figure and aligned position, be that alignment pattern is alignd to being aligned figure by alignment edge with aligned position, with prior art, alignment pattern can only be compared to the technical scheme of the outward flange alignment being aligned figure, can effectively reduce a large amount of manual shift, greatly strengthen and improve alignment efficiency.Further, the technical scheme of above-described embodiment, can also regulate alignment pattern by the experience regulated value rule of thumb in storehouse, or can also receive the aligned instruction that user sent by human-machine interface module further; Aligned instruction comprises correction regulated value; And according to correction regulated value, alignment adjustment is carried out to alignment pattern, the efficiency of alignment can be strengthened further.
The process flow diagram of the figure alignment schemes that Fig. 3 provides for another embodiment of the present invention.As shown in Figure 3, the figure alignment schemes of the present embodiment, on the basis of the technical scheme of above-mentioned Fig. 1 and above-mentioned embodiment, introduces technical scheme of the present invention further in further detail.As shown in Figure 3, the figure alignment schemes of the present embodiment, specifically can comprise the steps:
200, when by alignment pattern to be aligned figure alignment time, judge in metadata, whether to there is the corresponding relation comprising alignment pattern He be aligned figure; When included, step 201 is performed; Otherwise when not comprising, perform step 202;
201, obtain alignment pattern from metadata to the aligned position being aligned figure alignment; Perform step 203;
202, according to the color being aligned figure, analyze the profile being aligned figure, determine that alignment pattern is to the aligned position being aligned figure alignment; Perform step 203;
After corresponding step 202, can also comprise: by alignment pattern, be aligned the corresponding relation of figure and aligned position stored in metadata.Like this, can so that when again this alignment pattern being aligned figure alignment to this, quick obtaining, to aligned position, improves the efficiency of alignment.
203; Be that alignment pattern is alignd to being aligned figure by alignment edge with aligned position; Perform step 204;
204, from experience storehouse, obtain the maximum experience regulated value of weighted value; Perform step 205;
205, rule of thumb regulated value carries out alignment adjustment to alignment pattern; Perform step 206;
After corresponding step 205, can also comprise: when figure alignment terminates, upgrade the weighted value that in experience storehouse, experience regulated value is corresponding.
206, judge whether user has and again regulate this alignment pattern; In time being, perform step 207; Otherwise when not regulating, terminate.
207, the aligned instruction that user is sent by human-machine interface module is received; Perform step 208;
In the present embodiment, this aligned instruction comprises correction regulated value.
208, carry out alignment according to correction regulated value to alignment pattern to regulate; Perform step 209;
209, rule of thumb regulated value and correction regulated value calculate new experience regulated value; Perform step 210;
210, for new experience regulated value gives weighted value; Perform step 211;
211, new experience regulated value and weighted value corresponding to new experience regulated value are increased in experience storehouse.
Like this, this step also can be increased to new experience regulated value in experience storehouse, is convenient to use next time.
The figure alignment schemes of the present embodiment, the alignment pattern that can comprise according to metadata, the corresponding relation being aligned figure and aligned position, be that alignment pattern is alignd to being aligned figure by alignment edge with aligned position, with prior art, alignment pattern can only be compared to the technical scheme of the outward flange alignment being aligned figure, can effectively reduce a large amount of manual shift, greatly strengthen and improve alignment efficiency.Further, the technical scheme of above-described embodiment, can also regulate alignment pattern by the experience regulated value rule of thumb in storehouse, or can also receive the aligned instruction that user sent by human-machine interface module further; Aligned instruction comprises correction regulated value; And according to correction regulated value, alignment adjustment is carried out to alignment pattern, the efficiency of alignment can be strengthened further.
The structural representation of the figure alignment means that Fig. 4 provides for one embodiment of the invention.As shown in Figure 4, the figure alignment means of the present embodiment, specifically can comprise: acquisition module 10 and alignment module 11.
Wherein acquisition module 10 for when by alignment pattern to be aligned figure alignment time, obtain from metadata by alignment pattern to be aligned figure alignment aligned position; This metadata comprises alignment pattern, is aligned the corresponding relation of figure and aligned position; Alignment module 11 is connected with acquisition module 10, alignment module 11 for the aligned position that obtains with acquisition module 10 for alignment edge by alignment pattern to being aligned figure alignment.
The figure alignment means of the present embodiment, identical with the realization mechanism of above-mentioned related method embodiment by adopting above-mentioned module to realize figure alignment, with reference to the relevant record of above-described embodiment, can not repeat them here in detail.
The figure alignment means of the present embodiment, by adopt above-mentioned module realize when by alignment pattern to be aligned figure alignment time, obtain from metadata by alignment pattern to be aligned figure align aligned position; In metadata; Be that alignment pattern is alignd to being aligned figure by alignment edge with aligned position.The technical scheme of the present embodiment, aligned position for being aligned the optional position in figure, can not be defined as the outward flange being aligned figure.Therefore the technical scheme of this embodiment, the alignment pattern that can comprise according to metadata, the corresponding relation being aligned figure and aligned position, be that alignment pattern is alignd to being aligned figure by alignment edge with aligned position, with prior art, alignment pattern can only be compared to the technical scheme of the outward flange alignment being aligned figure, can effectively reduce a large amount of manual shift, greatly strengthen and improve alignment efficiency.
The structural representation of the figure alignment means that Fig. 5 provides for another embodiment of the present invention.As shown in Figure 5, the figure alignment means of the present embodiment, on the basis of above-mentioned technical scheme embodiment illustrated in fig. 4, can also comprise following technical scheme further.
As shown in Figure 5, the figure alignment means of the present embodiment can also comprise determination module 12.This determination module 12 for when by alignment pattern to be aligned figure alignment time, acquisition module 10 to obtain alignment pattern to before the aligned position being aligned figure alignment from metadata, determines to exist in metadata to comprise alignment pattern and be aligned the corresponding relation of figure.Acquisition module 10 is connected with determination module 12, acquisition module 10 is for determining to there is the corresponding relation comprising alignment pattern and be aligned figure in metadata during when determination module 12, obtains alignment pattern to the aligned position being aligned figure alignment from metadata
Further alternatively, also for when there is not the corresponding relation comprising alignment pattern and be aligned figure in metadata in this determination module 12, according to the color being aligned figure, analyze the profile being aligned figure, determine that alignment pattern is to the aligned position being aligned figure alignment;
Further alternatively, the figure alignment means of the present embodiment can also comprise memory module 13, this memory module 13 is connected with acquisition module 10, this memory module 13 for by alignment pattern, be aligned the corresponding relation of the aligned position that figure and acquisition module 10 obtain stored in metadata.
Further alternatively, experience adjustment module 14 is also comprised in the figure alignment means of the present embodiment.Wherein acquisition module 10 is also in alignment module 11 being alignment edge with aligned position by alignment pattern to after being aligned figure alignment, obtains the experience regulated value that weighted value is maximum from experience storehouse; Experience adjustment module 14 is connected with acquisition module 10, and experience adjustment module 14 is carried out alignment for the experience regulated value obtained according to acquisition module 10 to alignment pattern and regulated.
Further alternatively, update module 15 is also comprised in the figure alignment means of the present embodiment.This update module 15 for experience adjustment module 14 rule of thumb regulated value to carry out alignment pattern after alignment regulates, when figure alignment terminates, upgrading the weighted value that in experience storehouse, experience regulated value is corresponding.
Further alternatively, also comprise receiver module 16 in the figure alignment means of the present embodiment and revise adjustment module 17.This receiver module 16 carries out after alignment regulates, receiving the aligned instruction that user is sent by human-machine interface module to alignment pattern for rule of thumb regulated value; Aligned instruction comprises correction regulated value; Revise adjustment module 17 to be connected with receiver module 16, correction adjustment module 17 carries out alignment adjustment for the correction regulated value of the aligned instruction received according to receiver module 16 to alignment pattern.
Further alternatively, also comprise computing module 18 in the figure alignment means of the present embodiment, give module 19 and increase module 20.Wherein computing module 18 is connected with acquisition module 10 and receiver module 16 respectively, computing module 18 is for carrying out after alignment regulates to alignment pattern according to correction regulated value in correction adjustment module, the correction regulated value in the aligned instruction of the experience regulated value obtained according to acquisition module 10 and receiver module 16 reception calculates new experience regulated value; Give module 19 to be connected with computing module 18, give module 19 and give weighted value for the new experience regulated value calculated for computing module 18; Increase module 20 respectively with computing module 18 with gives module 19 and be connected, increase module 20 for the new experience regulated value that calculated by computing module 18 with to give module 19 be that the weighted value that the new experience regulated value of imparting is corresponding is increased in experience storehouse.
All alternatives of the present embodiment, can adopt combinable mode combination in any, form optional embodiment of the present invention, again repeat no longer one by one.
The figure alignment means of the present embodiment, identical with the realization mechanism of above-mentioned related method embodiment by adopting above-mentioned module to realize figure alignment, with reference to the relevant record of above-described embodiment, can not repeat them here in detail.
The figure alignment means of the present embodiment, the alignment pattern comprised according to metadata, the corresponding relation being aligned figure and aligned position is realized by adopting above-mentioned module, be that alignment pattern is alignd to being aligned figure by alignment edge with aligned position, with prior art, alignment pattern can only be compared to the technical scheme of the outward flange alignment being aligned figure, can effectively reduce a large amount of manual shift, greatly strengthen and improve alignment efficiency.Further, the technical scheme of above-described embodiment, can also regulate alignment pattern by the experience regulated value rule of thumb in storehouse, or can also receive the aligned instruction that user sent by human-machine interface module further; Aligned instruction comprises correction regulated value; And according to correction regulated value, alignment adjustment is carried out to alignment pattern, the efficiency of alignment can be strengthened further.
It should be noted that: the figure alignment means that above-described embodiment provides is when figure aligns, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the figure alignment means that above-described embodiment provides and figure alignment schemes embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The structural representation of the terminal device of Fig. 6 involved by the embodiment of the present invention, this terminal device may be used for the figure alignment schemes implementing to provide in above-described embodiment.Specifically:
Terminal device 600 can comprise RF(Radio Frequency, radio frequency) circuit 110, the storer 120 including one or more computer-readable recording mediums, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include the parts such as processor 180 and power supply 190 that more than or processes core.It will be understood by those skilled in the art that the terminal device structure shown in Fig. 6 does not form the restriction to terminal device, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
RF circuit 110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, transfer to more than one or one processor 180 to process; In addition, base station is sent to by relating to up data.Usually, RF circuit 110 includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupling mechanism, LNA(Low Noise Amplifier, low noise amplifier), diplexer etc.In addition, RF circuit 110 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, global system for mobile communications), 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 (WCDMA)), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.
Storer 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of storer 120 by running, thus performs the application of various function and data processing.Storer 120 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal device 600.In addition, storer 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 120 can also comprise Memory Controller, to provide the access of processor 180 and input block 130 pairs of storeies 120.
Input block 130 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, control lever, optics or trace ball signal and inputs.Particularly, input block 130 can comprise Touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface 131 or near Touch sensitive surface 131 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, Touch sensitive surface 131 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 180, and the order that energy receiving processor 180 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also comprise other input equipments 132.Particularly, other input equipments 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 140 can be used for the various graphical user interface showing information or the information being supplied to user and the terminal device 600 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 140 can comprise display panel 141, optionally, the form such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) can be adopted to configure display panel 141.Further, Touch sensitive surface 131 can cover display panel 141, when Touch sensitive surface 131 detects thereon or after neighbouring touch operation, send processor 180 to determine the type of touch event, on display panel 141, provide corresponding vision to export with preprocessor 180 according to the type of touch event.Although in figure 6, Touch sensitive surface 131 and display panel 141 be as two independently parts realize input and input function, in certain embodiments, can by Touch sensitive surface 131 and display panel 141 integrated and realize input and output function.
Terminal device 600 also can comprise at least one sensor 150, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 141, proximity transducer when terminal device 600 moves in one's ear, can cut out display panel 141 and/or backlight.As the one of motion sensor; Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration; size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for terminal device 600 also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal device 600.Voicefrequency circuit 160 can by receive voice data conversion after electric signal, be transferred to loudspeaker 161, by loudspeaker 161 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 162, voice data is converted to after being received by voicefrequency circuit 160, after again voice data output processor 180 being processed, through RF circuit 110 to send to such as another terminal device, or export voice data to storer 120 to process further.Voicefrequency circuit 160 also may comprise 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 send and receive e-mail by WiFi module 170, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 6 shows WiFi module 170, be understandable that, it does not belong to must forming of terminal device 600, can omit in the scope of essence not changing invention as required completely.
Processor 180 is control centers of terminal device 600, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 120 and/or module is stored in by running or performing, and call the data be stored in storer 120, perform various function and the process data of terminal device 600, thus integral monitoring is carried out to mobile phone.Optionally, processor 180 can comprise one or more process core; Preferably, processor 180 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 180.
Terminal device 600 also comprises the power supply 190(such as battery of powering to all parts), preferably, power supply can be connected with processor 180 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 190 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal device 600 can also comprise camera, bluetooth module etc., does not repeat them here.Specifically in the present embodiment, the display unit of terminal device is touch-screen display, terminal device also includes storer, and one or more than one program, one of them or more than one program are stored in storer, and are configured to be performed by more than one or one processor state more than one or one routine package containing the instruction for carrying out following operation:
When by alignment pattern to be aligned figure alignment time, obtain from metadata by described alignment pattern to described be aligned figure alignment aligned position; Described metadata comprise described alignment pattern, described in be aligned the corresponding relation of figure and described aligned position;
With described aligned position for described alignment pattern is aligned figure alignment to described by alignment edge.
Alternatively, this storer is also for storing to give an order: determine to exist in described metadata to comprise described alignment pattern and the described corresponding relation being aligned figure.
Alternatively, this storer is also for storing to give an order:
When do not exist in described metadata comprise described alignment pattern and described be aligned the corresponding relation of figure time, according to the described color being aligned figure, be aligned the profile of figure described in analysis, determine that described alignment pattern is to the described aligned position being aligned figure alignment; Further comprise: by described alignment pattern, described in be aligned the corresponding relation of figure and described aligned position stored in described metadata.
Alternatively, this storer is also for storing to give an order: from experience storehouse, obtain the experience regulated value that weighted value is maximum; Carry out alignment according to described experience regulated value to described alignment pattern to regulate.
Alternatively, this storer is also for storing to give an order: when figure alignment terminates, upgrade the weighted value that described in described experience storehouse, experience regulated value is corresponding.
Alternatively, this storer is also for storing to give an order: carry out after alignment regulates according to described experience regulated value to described alignment pattern, described method also comprises: the aligned instruction that sent by human-machine interface module of reception user; Described aligned instruction comprises correction regulated value; Carry out alignment according to described correction regulated value to described alignment pattern to regulate.
Alternatively, this storer is also for storing to give an order: calculate new experience regulated value according to described experience regulated value and described correction regulated value; For described new experience regulated value gives weighted value; Described new experience regulated value and weighted value corresponding to described new experience regulated value are increased in described experience storehouse.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (14)

1. a figure alignment schemes, is characterized in that, described method comprises:
When by alignment pattern to be aligned figure alignment time, obtain from metadata by described alignment pattern to described be aligned figure alignment aligned position; Described metadata comprise described alignment pattern, described in be aligned the corresponding relation of figure and described aligned position;
With described aligned position for described alignment pattern is aligned figure alignment to described by alignment edge.
2. method according to claim 1, is characterized in that, described when by alignment pattern to be aligned figure alignment time, obtain from metadata by described alignment pattern to described be aligned figure alignment aligned position before, described method also comprises:
Determine to exist in described metadata to comprise described alignment pattern and the described corresponding relation being aligned figure.
3. method according to claim 2, is characterized in that, described method also comprises:
When do not exist in described metadata comprise described alignment pattern and described be aligned the corresponding relation of figure time, according to the described color being aligned figure, be aligned the profile of figure described in analysis, determine that described alignment pattern is to the described aligned position being aligned figure alignment;
Described method further comprises:
By described alignment pattern, described in be aligned the corresponding relation of figure and described aligned position stored in described metadata.
4., according to the arbitrary described method of claim 1-3, it is characterized in that, with described aligned position for alignment edge by described alignment pattern to described be aligned figure alignment after, described method also comprises:
The experience regulated value that weighted value is maximum is obtained from experience storehouse;
Carry out alignment according to described experience regulated value to described alignment pattern to regulate.
5. method according to claim 4, is characterized in that, according to described experience regulated value to described alignment pattern carry out alignment regulate after, described method also comprises:
When figure alignment terminates, upgrade the weighted value that described in described experience storehouse, experience regulated value is corresponding.
6. method according to claim 4, is characterized in that, according to described experience regulated value to described alignment pattern carry out alignment regulate after, described method also comprises:
Receive the aligned instruction that user is sent by human-machine interface module; Described aligned instruction comprises correction regulated value;
Carry out alignment according to described correction regulated value to described alignment pattern to regulate.
7. method according to claim 6, is characterized in that, according to described correction regulated value to described alignment pattern carry out alignment regulate after, described method also comprises:
New experience regulated value is calculated according to described experience regulated value and described correction regulated value;
For described new experience regulated value gives weighted value;
Described new experience regulated value and weighted value corresponding to described new experience regulated value are increased in described experience storehouse.
8. a figure alignment means, is characterized in that, described device comprises:
Acquisition module, for when by alignment pattern to be aligned figure alignment time, obtain from metadata by described alignment pattern to described be aligned figure alignment aligned position; Described metadata comprise described alignment pattern, described in be aligned the corresponding relation of figure and described aligned position;
Alignment module, for described aligned position for alignment edge by described alignment pattern to described be aligned figure alignment.
9. device according to claim 8, is characterized in that, described device also comprises:
Determination module, for when by alignment pattern to be aligned figure alignment time, described acquisition module obtain from metadata by described alignment pattern to described be aligned figure alignment aligned position before, determine in described metadata exist comprise described alignment pattern and the described corresponding relation being aligned figure.
10. device according to claim 9, is characterized in that:
Described determination module, also for when do not exist in described metadata comprise described alignment pattern and described be aligned the corresponding relation of figure time, according to the described color being aligned figure, be aligned the profile of figure described in analysis, determine that described alignment pattern is to the described aligned position being aligned figure alignment;
Described device also comprises:
Memory module, for by described alignment pattern, described in be aligned the corresponding relation of figure and described aligned position stored in described metadata.
11.-10 arbitrary described devices according to Claim 8, it is characterized in that, described device also comprises experience adjustment module:
Described acquisition module, also for described alignment module with described aligned position for alignment edge by described alignment pattern to described be aligned figure alignment after, from experience storehouse, obtain the experience regulated value that weighted value is maximum;
Experience adjustment module, regulates for carrying out alignment according to described experience regulated value to described alignment pattern.
12. devices according to claim 11, is characterized in that, described device also comprises:
Update module, after alignment regulates, when figure alignment terminates, upgrades the weighted value that described in described experience storehouse, experience regulated value is corresponding for carrying out described alignment pattern according to described experience regulated value in described experience adjustment module.
13. devices according to claim 11, is characterized in that, described device also comprises:
Receiver module, for carrying out after alignment regulates, receiving the aligned instruction that sent by human-machine interface module of user to described alignment pattern according to described experience regulated value; Described aligned instruction comprises correction regulated value;
Revising adjustment module, regulating for carrying out alignment according to described correction regulated value to described alignment pattern.
14. devices according to claim 13, is characterized in that, described device also comprises:
Computing module, after alignment regulates, calculates new experience regulated value according to described experience regulated value and described correction regulated value for carrying out described alignment pattern according to described correction regulated value in described correction adjustment module;
Give module, for giving weighted value for described new experience regulated value;
Increase module, for described new experience regulated value and weighted value corresponding to described new experience regulated value being increased in described experience storehouse.
CN201310230711.3A 2013-06-09 2013-06-09 Figure alignment schemes and device Active CN104239005B (en)

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 true CN104239005A (en) 2014-12-24
CN104239005B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
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
CN105787926A (en) * 2016-02-04 2016-07-20 上海爱福窝云技术有限公司 Figure automatic alignment method and apparatus
CN109815535A (en) * 2018-12-18 2019-05-28 北京金百泽科技有限公司 A kind of method and device that PCB material Drawing Object is integrally aligned
CN110389810A (en) * 2019-07-31 2019-10-29 阿里巴巴集团控股有限公司 A kind of method, device and equipment for quickly putting UI control on virtual canvas
CN113554725A (en) * 2020-04-24 2021-10-26 西安诺瓦星云科技股份有限公司 Multi-pattern mobile adsorption method and device thereof
CN115130033A (en) * 2022-07-19 2022-09-30 支付宝(杭州)信息技术有限公司 Method and system for front-end element alignment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
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
DE602004015796D1 (en) * 2004-10-01 2008-09-25 Medcom Ges Fuer Medizinische B Registration of an ultrasound image with an image from a 3D scan, for example from a computed tomography (CT) or magnetic resonance tomography (MR)
EP2291995A1 (en) * 2008-06-24 2011-03-09 Koninklijke Philips Electronics N.V. Image processing
CN102461152A (en) * 2009-06-24 2012-05-16 惠普开发有限公司 Compilation of images
CN101901472B (en) * 2010-07-07 2012-12-19 清华大学 Method for aligning non-rigid robust batch images based on matrix rank minimization
US9384216B2 (en) * 2010-11-16 2016-07-05 Microsoft Technology Licensing, Llc Browsing related image search result sets

Cited By (8)

* Cited by examiner, † Cited by third party
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
CN105787926A (en) * 2016-02-04 2016-07-20 上海爱福窝云技术有限公司 Figure automatic alignment method and apparatus
CN105787926B (en) * 2016-02-04 2018-07-27 上海爱福窝云技术有限公司 A kind of method and device of figure automatic aligning
CN109815535A (en) * 2018-12-18 2019-05-28 北京金百泽科技有限公司 A kind of method and device that PCB material Drawing Object is integrally aligned
CN109815535B (en) * 2018-12-18 2023-08-22 北京金百泽科技有限公司 Method and device for integrally aligning graphic objects of PCB (printed Circuit Board) material
CN110389810A (en) * 2019-07-31 2019-10-29 阿里巴巴集团控股有限公司 A kind of method, device and equipment for quickly putting UI control on virtual canvas
CN113554725A (en) * 2020-04-24 2021-10-26 西安诺瓦星云科技股份有限公司 Multi-pattern mobile adsorption method and device thereof
CN115130033A (en) * 2022-07-19 2022-09-30 支付宝(杭州)信息技术有限公司 Method and system for front-end element alignment

Also Published As

Publication number Publication date
CN104239005B (en) 2018-07-27

Similar Documents

Publication Publication Date Title
CN105005909A (en) Method and device for predicting lost users
CN103530115B (en) Application program display method and device and terminal equipment
CN105302408A (en) Method and apparatus for adjusting position of hover button and terminal
CN105487889A (en) Application interface updating method and device
CN103473051A (en) Method and device for saving terminal power consumption
CN104965716A (en) Icon updating method, client apparatus, and terminal apparatus
CN104834529A (en) Method and device for optimizing performance of application
CN104636047A (en) Method and device for operating objects in list and touch screen terminal
CN103310009A (en) Method, device and terminal for updating webpage data
CN104252341A (en) Method and device for resurfacing application program and client side device of application program
CN103645837A (en) Method and device for amplifying display fonts
CN104134043B (en) Content is hidden, separates method, device and the terminal hidden
CN103399633A (en) Wireless remote control method and mobile terminal
CN105302452A (en) Gesture interaction-based operation method and device
CN104602135A (en) Method and device for controlling full screen play
CN104239005A (en) Graphic alignment method and device
CN104951637A (en) Method and device for obtaining training parameters
CN103177217A (en) File scan method, file scan system, client-side and server
CN104599129A (en) Affirming method and device for executing operation
CN104238931A (en) Information input method, information input device and electronic equipment
CN103561155B (en) Send the method for note, device and terminal
CN104869550A (en) Communication event processing method and device
CN103399745A (en) Method, device and terminal device for sending instant messages
CN104468961A (en) Method and device for prompting position of terminal
CN103501373A (en) Method, device and terminal for making call

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