CN108416747A - Element position modification method, device, computer equipment and storage medium - Google Patents
Element position modification method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN108416747A CN108416747A CN201810161847.6A CN201810161847A CN108416747A CN 108416747 A CN108416747 A CN 108416747A CN 201810161847 A CN201810161847 A CN 201810161847A CN 108416747 A CN108416747 A CN 108416747A
- Authority
- CN
- China
- Prior art keywords
- picture
- picture element
- modification method
- correcting
- modification
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000002715 modification method Methods 0.000 title claims abstract description 37
- 238000003860 storage Methods 0.000 title claims abstract description 13
- 238000012986 modification Methods 0.000 claims abstract description 59
- 230000004048 modification Effects 0.000 claims abstract description 59
- 238000001514 detection method Methods 0.000 claims abstract description 39
- 238000012937 correction Methods 0.000 claims abstract description 23
- 238000000034 method Methods 0.000 claims abstract description 9
- 238000004590 computer program Methods 0.000 claims description 13
- 230000015572 biosynthetic process Effects 0.000 claims description 6
- 238000007689 inspection Methods 0.000 claims description 2
- 238000007792 addition Methods 0.000 description 29
- 230000006870 function Effects 0.000 description 7
- 230000006854 communication Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000012790 confirmation Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000005259 measurement Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000009826 distribution Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 230000001902 propagating effect Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/80—Geometric correction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/98—Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns
- G06V10/987—Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns with the intervention of an operator
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V2201/00—Indexing scheme relating to image or video recognition or understanding
- G06V2201/09—Recognition of logos
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Multimedia (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a kind of element position modification method, device, computer equipment and storage mediums.The element position modification method includes:Picture element detection request is obtained, picture element detection request includes element ID, picture element corresponding with element ID and element position;Obtain element modification rule corresponding with element ID, the corresponding element correcting regions of display elements ID;If not in element correcting region, picture element corresponding with element ID is moved in element correcting region for element position;It receives to correct and confirms instruction, confirm that the position correction of picture element is completed in instruction based on amendment.This method timely and accurately obtains correct picture placement location convenient for user, can effectively judge whether logo meets element modification rule, and converts artificial correction picture to accurate efficient automation mechanized operation.
Description
Technical field
The present invention relates to picture recognition field more particularly to a kind of element position modification method, device, computer equipment and
Storage medium.
Background technology
Logo is the concentration of corporate image, feature, prestige and culture, is the representative of brand names.Constitute enterprise's mark
The visual communication element of will includes diversified forms:Such as figure, number, network address or slogan etc..When logo is in difference
On communications media when extensive use, according to mode of printing, Manufacturing Techniques, texture material, communication channel and application item etc.
Difference, variant designs may adaptively occur for logo.Even if variant designs occur, logo is in communication process
Basic standard should be followed, that is, the unification of ratio and position need to be kept by constituting each visual communication element of logo, to protect
Hold the consistency for propagating corporate culture.
Whether the ratio of the visual communication element of existing identification logo and position, which meet examination criteria, mainly passes through
What human eye was identified, it is all limited by human eye ability in terms of accuracy and speed.How fast and effeciently to identify that enterprise marks
Whether will meets the problem of examination criteria is as urgent need to resolve.
Invention content
A kind of element position modification method of offer of the embodiment of the present invention, device, computer equipment and storage medium, to solve
The problem of whether logo meets examination criteria efficiently identified.
In a first aspect, the embodiment of the present invention provides a kind of element position modification method, including:
Picture element detection request is obtained, picture element detection request includes element ID, picture corresponding with element ID
Element and element position;
Obtain element modification rule corresponding with element ID, the corresponding element correcting regions of display elements ID;
If element position is moved to element amendment not in element correcting region, by picture element corresponding with element ID
In region;
It receives to correct and confirms instruction, based on the position correction corrected and confirm that the picture element is completed in instruction.
Second aspect, the embodiment of the present invention provide a kind of element position correcting device, including:
Obtain detection request module, for obtain picture element detection request, picture element detection request include element ID,
Picture element corresponding with element ID and element position;
Modification rule module is obtained, for obtaining element modification rule corresponding with element ID, display elements ID is corresponded to
Element correcting region;
Mobile picture element module, if for element position not in element correcting region, it will be corresponding with element ID
Picture element is moved in element correcting region;
It receives and confirms instruction module, confirm instruction for receiving to correct, confirm that the figure is completed in instruction based on the amendment
The position correction of piece element.
Third aspect present invention provides a kind of computer equipment, including memory, processor and is stored in the storage
In device and the computer program that can run on the processor, the processor are realized when executing the computer program such as this
Described in invention first aspect the step of element position modification method.
Fourth aspect present invention provides a kind of computer readable storage medium, and the computer-readable recording medium storage has
Computer program realizes element position amendment side as described in the first aspect of the invention when the computer program is executed by processor
The step of method.
Element position modification method, device, computer equipment and storage medium provided in an embodiment of the present invention, on the one hand,
By obtaining corresponding with element ID element modification rule, the corresponding element correcting regions of display elements ID, be convenient for user and
When accurately obtain the corresponding correct placement location of picture element, measurement is no longer identified by human eye, can be effectively
Whether the picture element in judgement logo meets element modification rule, improves efficiency and the accuracy of picture element detection;
On the other hand, by the way that picture element corresponding with element ID to be moved in element correcting region, artificial correction picture is converted
For accurate efficient automation mechanized operation, the modified efficiency of picture element and accuracy are further increased.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a flow chart of element position modification method in the embodiment of the present invention 1.
Fig. 2 is another particular flow sheet of element position modification method in the embodiment of the present invention 1.
Fig. 3 is another particular flow sheet of element position modification method in the embodiment of the present invention 1.
Fig. 4 is another particular flow sheet of element position modification method in the embodiment of the present invention 1.
Fig. 5 is another particular flow sheet of element position modification method in the embodiment of the present invention 1.
Fig. 6 is another particular flow sheet of element position modification method in the embodiment of the present invention 1.
Fig. 7 is a functional block diagram of element position correcting device in the embodiment of the present invention 2.
Fig. 8 is a schematic diagram of 4 Computer equipment of the embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Embodiment 1
The technical solution that the present embodiment proposes is deployed in enterprise servers, and whether logo meets detection for identification
Standard, the examination criteria include the corresponding element modification rule of each picture element.Logo is corporate image, feature, letter
The concentration of reputation and culture, is the representative of a brand names.Each logo can be made of plurality of picture element, for example be schemed
Shape picture, word picture and digital picture etc., and each picture element occupies phase in logo according to design standard
The position answered and ratio, i.e., all picture elements have corresponding position and ratio in entire enterprise identifies.
It is to be appreciated that enterprise servers distribute a proprietary element ID to each picture element, to server
Corresponding picture element is searched by element ID.Element ID is the mark of different picture elements for identification.
When logo is showed in different occasions, it may be necessary to the position to the original picture element in logo and ratio
Example is adjusted, and to change the position of the original picture element in logo, it is caused to meet different examination criterias.At this time
With regard to needing element position modification method provided in this embodiment, the picture element correspondence in logo is adjusted to suitable position
It sets, to keep the consistency of enterprise's mark on the whole.
Examination criteria is element modification rule applied to the present embodiment, is to need to be set in advance in enterprise servers,
To make server, element modification rule adjusts the position of picture element accordingly, to keep whole consistent of enterprise's mark.
Fig. 1 shows the flow chart of element position modification method in the present embodiment.As shown in Figure 1, the element position amendment side
Method includes the following steps:
S10. picture element detection request is obtained, it includes element ID that picture element detection, which is asked, corresponding with element ID
Picture element and element position.
Specifically, picture element detection request is that server receives, and detection constitutes the figure of enterprise's mark of the detection
Whether the element position of piece element meets the request of element modification rule.
Element position is location information of the picture element in the logo of the detection, the location information include length and width,
Ratio etc. with the spacing of picture element around and in logo.
In this step, server detects request according to the picture element got, by obtaining element ID and element position,
The picture element in the corresponding pictures of element ID can be quickly positioned, which is detected.
S20. element modification rule corresponding with element ID, the corresponding element correcting regions of display elements ID are obtained.
It specifically, can be on the picture that enterprise identifies when element correcting region is that picture element meets element modification rule
Place the region of the picture element.Because the corresponding element modification rule of each picture element can reserve certain error range,
Namely the area of element correcting region is greater than each picture element area of itself, with ensure picture element it is modified smoothly into
Row.Within the scope of the element correcting region, user also can move picture element according to subjective feeling, also can be according to pre-setting
Revision program is corrected automatically.
It is illustrated by taking the element modification rule of a picture element in certain incorporated business mark as an example:
Picture to be modified is the whole picture that picture element is constituted, and is logo applied to the present embodiment.This is to be repaired
Positive picture refers to the picture for needing to be modified processing.
1 corresponding element modification rule of picture element is:
1) site error receives range:Can be whole picture to be modified height or width 0.1%.
2) dimension of picture element 1 accounts for the distance between ratio and adjacent picture element of picture to be modified:Account for total height
3.75% (allow 3.65% to 3.85%), width 100% (allows 99.9% to 100.1%);It is such as unsatisfactory for, prompts:Figure
Piece element 1 accounts for the 3.75% of total height, width 100%.
2 corresponding element modification rule of picture element is:
1) site error receives range:Can be whole picture to be modified height or width 0.1%.
2) dimension of picture element 2 accounts for the distance between ratio and adjacent picture element of picture to be modified:Account for total height
3.75% (allow 3.65% to 3.85%), width 100% (allows 99.9% to 100.1%);It is such as unsatisfactory for, prompts:Figure
Piece element 2 should account for the 3.75% of total height, width 100%.
3 corresponding element modification rule of picture element is:
1) site error receives range:Can be whole picture to be modified height or width 0.1%.
2) dimension of picture element 3 accounts for the distance between ratio and adjacent picture element of picture to be modified:Picture element 3
Top is located at the boundary of transverse width 75%/25% (allowing 74.9%/25.1% boundary), (allows apart from bottom level 7.5%
7.4%-7.6%);It is such as unsatisfactory for, prompts:3 top of picture element should be located at transverse width 75%/25% and demarcate, apart from bottom
Highly 7.5%.
Further, the display mode of element correcting region includes but not limited to:Display area boundary by a dotted line, or
Element correcting region is highlighted etc..
This step can intuitively corresponding element correcting regions of display elements ID, avoid passing through human eye to detect element
The inconvenience of correcting region.
If S30. element position is not in element correcting region, picture element corresponding with element ID is moved to element
In correcting region.
Specifically, boundary of the server based on the corresponding element correcting regions of element ID, will picture corresponding with element ID
Element is moved to the boundary of element correcting region.It, can be by the center of picture element corresponding with element ID applied to originally implementing
Point is overlapped with the central point of element correcting region so that picture element positioned at element correcting region center, with adjustable
Save space.
In this step, the picture element not in element correcting region is directly moved to element correcting region by server
It is interior, the automatization level that server corrects picture is improved, without the artificial specific location for calculating picture element, improves picture element
The precision of placement location.
S40. it receives to correct and confirms instruction, confirm that the position correction of picture element is completed in instruction based on amendment.
Specifically, it corrects and confirms that instruction is that server reception user sends, confirm the position where current image element
The instruction that can be identified.When picture element corresponding with element ID is automatically moved into element correcting region by server, user
It can send to correct by user end to server after satisfaction and confirm instruction;Or after user's manual fine-tuning, then pass through client
End, which sends to correct, confirms instruction to server.
Further, when correcting picture element, the behaviour such as user can also move picture element, stretches or shorten
Make.If picture element exceeds element correcting region after user finely tunes, server can warn user's current image element still not
Meet element modification rule, to remind user that picture element is positioned in element correcting region.
Further, polling mechanism is set in server, which is used to make the position correction of each picture element
After the completion, it continues to execute and obtains picture element detection request, until having detected all picture elements and having carried out position correction.This step
Suddenly all picture elements can be detected by polling mechanism automatically, is greatly saved the time of manual confirmation.
Preferably, after step S20, namely the display elements ID corresponding element correcting regions the step of after, this yuan
Plain position correcting method also specifically comprises the following steps:
If S50. element position is in element correcting region, continues to execute and obtain picture element detection request, until inspection
The position correction of all picture elements is surveyed.
In this step, if element position is in element correcting region namely the picture element meets element modification rule
It is required that can continue to detect the element position of next picture element rapidly, without human intervention.
It is to be appreciated that confirming instruction after step S40, namely receiving to correct, confirm that figure is completed in instruction based on correcting
After the step of position correction of piece element, it is also desirable to execute step S50.When picture element is carried out position correction by step S40
Afterwards, server continues to detect the picture element after correction position.When detecting picture element in element correcting region, then
The requirement for meeting step S50 continues to execute and obtains picture element detection request, until the position for having detected all picture elements is repaiied
Just, to ensure that all picture elements for being corrected position all meet element modification rule.
Element position modification method provided in an embodiment of the present invention is advised by obtaining element amendment corresponding with element ID
Then, the corresponding element correcting regions of display elements ID timely and accurately obtain corresponding picture element convenient for user and correctly put
No longer measurement is identified by human eye in seated position, can effectively judge whether the picture element in logo meets member
Plain modification rule improves efficiency and the accuracy of picture element detection;By the way that picture element corresponding with element ID is moved to
In element correcting region, converts artificial correction picture to accurate efficient automation mechanized operation, further increase picture element and repair
Positive efficiency and accuracy.
In a specific embodiment, as shown in Fig. 2, before step S10, namely picture element detection request step is being obtained
Before rapid, which further includes following specific steps:
S61. picture pretreatment request is obtained, picture pretreatment request includes picture and Image ID to be modified.
Specifically, picture to be modified is the whole picture that picture element is constituted, and is logo applied to the present embodiment.
The picture to be modified refers to the picture for needing to be modified processing.
Picture pretreatment request is that server receives, advance for asking picture to be modified corresponding to Image ID to carry out
Processing, so that its request for being convenient to detect whether to meet element modification rule.It is to be appreciated that Image ID is server to every
The unique mark of a picture distribution to be modified, to identify picture to be modified.
S62. according to Image ID, corresponding picture division rule is obtained.
Specifically, picture division rule is that the picture element on picture to be modified is marked off the rule come.Because of each figure
Piece element all occupies certain home position on picture to be modified, can first shear different picture elements according to the home position
It marks off and, to be further processed each picture element.Each Image ID is prestored in the present embodiment, in server to correspond to
Picture/mb-type, and each picture/mb-type corresponds to a kind of picture division rule, so that server can after receiving Image ID
By inquiry operation, the corresponding picture division rule of quick obtaining.
Specifically, server receives picture to be modified, and the picture to be modified is saved in memory, and to be modified to this
Picture sets Picture Coordinate system, and the picture element on the picture to be modified is further processed convenient for server.Setting figure
On the basis of piece coordinate system, treats amendment picture according to picture division rule and handled.
S63. amendment picture is treated using picture division rule to be divided, it is at least one to be obtained from picture to be modified
Picture element and corresponding element position.
In this step, the edge that each picture element is oriented by picture to be modified is divided, and can obtain the figure
Element position of the piece element in setting Picture Coordinate system is based on the element position convenient for server and corrects picture element.
In the present embodiment, server gives the picture to be modified by obtaining the picture to be modified in picture pretreatment request
After setting Picture Coordinate system, the picture to be modified is divided according to picture division rule corresponding with Image ID, can be obtained every
The specific element position of a picture element, the position that fast accurate is carried out convenient for element position of the server based on picture element are repaiied
Just.
In a specific embodiment, as shown in figure 3, in step S20 namely display elements ID corresponding element amendments area
Domain specifically comprises the following steps:
S21. it is based on element modification rule, the amendment length of picture element is obtained, corrects wide and picture element spacing.
Specifically, element modification rule includes that the corresponding amendment of each picture element is long, corrects wide and picture element spacing.
Correct length and width long and that correct the element correcting region where the picture element that width is the setting of element modification rule.Picture member
Plain spacing is the placement distance between each picture element and surrounding picture element, and each picture element and picture to be modified
The distance at edge.
In this step, server is obtained the amendment length of picture element by element modification rule, corrects wide and picture element
Spacing can accurately and quickly measure element correcting region, save the time manually calculated.
S22. the amendment based on picture element is long, corrects wide and picture element spacing, to be modified where picture element
Formation element correcting region on picture.
Specifically, the display mode of element correcting region includes but not limited to:Display area boundary by a dotted line, or will
Element correcting region highlights etc..
In the present embodiment, the element correcting region of picture element is calculated by server and is shown, is saved significantly
The time by manually calculating is saved, and improves the accuracy of position;It is formed on the picture to be modified where picture element
Element correcting region more intuitively shows element correcting region, is convenient for the position correction of picture element.
In a specific embodiment, as shown in figure 4, the element position modification method also specifically comprises the following steps:
S71. picture element addition request is obtained, picture element addition request includes element ID and figure corresponding with element ID
Piece element and element addition rule.
Specifically, picture element addition request is sent with user orientation server, and new figure is added on picture to be modified
The request of piece element.Each picture element corresponds to an element modification rule, it is possible to understand that ground, when adding picture element
It needs to meet certain addition rule, which could be added in picture to be modified.The addition picture element is to waiting for
It is exactly element addition rule to correct the rule in picture.
Further, it is contemplated that actual demand, during correcting logo, it may be necessary to add or delete some
Picture element needs the picture element addition request for using the present embodiment proposition, to meet actual needs at this time.
In this step, rule is added by obtaining picture element and the corresponding element of picture element, can accurately determine should
The corresponding element Adding Area of picture element, while being greatly saved the time manually calculated.
S72. it is based on element addition rule, the corresponding element Adding Areas display elements ID, and picture element is added to
In element Adding Area.
Specifically, element Adding Area is that server is calculated according to element addition rule, on picture to be modified
Add the band of position of new picture element.
In this step, picture element to be added can be automatically added in element Adding Area by server, improve figure
The degree of automation of piece element addition.
S73. it receives addition and confirms instruction, the position to complete picture element is added.
Specifically, addition confirmation instruction is the instruction that the position where user confirms the picture element is final position.
Further, user can directly the element position of the picture element of the addition of confirmed service device or user into
After row fine tuning, then sends addition to server and confirm instruction.In this step, user can directly confirmed service device addition as a result,
Or user can voluntarily finely tune the position of addition picture element, enhance the flexibility of addition picture element.
The present embodiment provides picture element additions to ask, to be based on picture element addition request on picture to be modified
New picture element is added, the range for correcting picture element is extended, improves user experience.
In a specific embodiment, as shown in figure 5, the element position modification method also specifically comprises the following steps:
S81. picture element removal request is obtained, picture element removal request includes element ID.
Specifically, picture element removal request is sent with user orientation server, is deleted on picture to be modified original
The request of picture element.
In this step, user can delete figure corresponding with element ID in picture to be modified by picture element removal request
The flexibility of picture element is corrected in piece element, enhancing.
S82. the corresponding element modification rules of element ID and picture element are deleted.
Specifically, when deleting picture element, which is no longer present on picture to be modified, therefore, picture member
The corresponding element modification rule of element cancels simultaneously, can delete to save the memory space of server.
This step, by deleting picture element and the corresponding element modification rule of picture element, to simplify the figure to be modified
The picture relevant information that piece carries saves server resource.
The present embodiment provides picture element removal requests, to be based on the picture element removal request on picture to be modified
Existing picture element is deleted, the range for correcting picture element is extended.
In a specific embodiment, it as shown in fig. 6, after step S20, namely repaiies in the corresponding elements of display elements ID
After the step of positive region, which further includes following specific steps:
S91. obtain and form virtual portfolio graphics requests, virtual portfolio graphics requests include at least one surplus element ID and
Combination modification rule corresponding with each surplus element ID.
Specifically, it is that all picture elements of unmodified mistake in picture to be modified are same to form virtual portfolio graphics requests
When form the request of a composite figure and display.Combination modification rule is the remaining graphic element pair to be modified of server set
The element modification rule answered, the combination modification rule of formation, so that each picture element in virtual portfolio figure meets
The regulation of element modification rule.Surplus element ID refers to the corresponding mark of each picture element of unmodified mistake in picture to be modified
Know.
In this step, server once combines the element modification rule of remaining picture element to be modified to form combination and corrects
Rule is greatly saved the time manually calculated, while ensureing the accuracy of the element position of each picture element.
S92. based on all combination modification rules, by the corresponding remaining graphic elements of at least one surplus element ID by pre-
If combination forms virtual portfolio figure to sequence successively.
Remaining picture element to be modified is disposably formed virtual portfolio figure by server in this step, and saving is examined one by one
Survey the time of the element position of picture element.In the present embodiment, preset order refers to being corrected by specified in element modification rule
The sequence of picture element.For example, in a picture to be modified, the position of designated pictures element 1 first is needed, picture element 2
Position is set based on the position of picture element 1, and so on, until specifying the position of the last one picture element.
Specifically, it is combined successively by preset order and forms virtual portfolio figure, it is corresponding that each picture element can be met
The requirement of element modification rule has ensured the correctness of each picture element placement location.
S93. the corresponding remaining picture elements of at least one surplus element ID are based on, determine picture element center.
Surplus element refers to the picture element of unmodified mistake in picture to be modified.Specifically, picture element center
It is centre coordinate value of the virtual portfolio figure in setting Picture Coordinate system.Virtual portfolio figure base is obtained by calculation in this step
In setting the centre coordinate value in coordinate system, virtual portfolio figure can be properly placed on picture to be modified, with full
The requirement of foot combination modification rule.
S94. the center of virtual portfolio figure is made to be overlapped with picture element center, to complete repairing for virtual portfolio figure
Just.
Picture element center is obtained by calculation in this step, and the center of the virtual portfolio figure is positioned over setting
On picture element center in Picture Coordinate system, to ensure that virtual portfolio figure is placed into accurate position.
The present embodiment by disposably forming virtual portfolio figure, save the element position of detection picture element one by one when
Between.
By obtaining corresponding with element ID element modification rule, the corresponding element correcting regions of display elements ID, just
The corresponding correct placement location of picture element is timely and accurately obtained in user, measurement is no longer identified by human eye, it can
Effectively to judge whether the picture element in logo meets element modification rule, improve picture element detection efficiency and
Accuracy;By the way that picture element corresponding with element ID to be moved in element correcting region, convert artificial correction picture to
Accurate efficient automation mechanized operation, further increases the modified efficiency of picture element and accuracy.
Further, server provided in this embodiment is given by obtaining the picture to be modified in picture pretreatment request
After the picture setting Picture Coordinate to be modified system, the figure to be modified is divided according to picture division rule corresponding with Image ID
Piece can obtain the specific element position of each picture element, be carried out convenient for element position of the server based on picture element fast
Fast accurately position correction.
Still further, the present embodiment is also calculated the element correcting region of picture element by server and shows
Come, greatlys save the time by manually calculating, and improve the accuracy of position;In the figure to be modified where picture element
On piece formation element correcting region, more intuitively shows element correcting region, is convenient for the position correction of picture element.
The present embodiment also provides picture element addition request and acquisition forms virtual portfolio graphics requests, extends correction map
The range of piece element;By disposably forming virtual portfolio figure, the time of the element position of detection picture element one by one is saved.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Embodiment 2
Fig. 7 shows the principle frame with the one-to-one element position correcting device of element position modification method in embodiment 1
Figure.As shown in fig. 7, the element position correcting device includes obtaining detection request module 10, obtaining modification rule module 20, is mobile
Picture element module 30 and reception confirm instruction module 40.Wherein, it obtains detection request module 10, obtain modification rule module
20, it moves picture element module 30 and receives element position modification method in the realization function and embodiment that confirm instruction module 40
Corresponding step corresponds, and to avoid repeating, the present embodiment is not described in detail one by one.
Detection request module 10 is obtained, for obtaining picture element detection request, picture element detection request includes element
ID, picture element corresponding with element ID and element position.
Modification rule module 20 is obtained, for obtaining element modification rule corresponding with element ID, ID pairs of display elements
The element correcting region answered.
Mobile picture element module 30, if for element position not in element correcting region, it will be corresponding with element ID
Picture element be moved in element correcting region.
It receives and confirms instruction module 40, confirm instruction for receiving to correct, confirm that picture element is completed in instruction based on correcting
Position correction.
Preferably, which further includes continuing to execute detection request module 50.
Detection request module 50 is continued to execute, if continuing to execute acquisition in element correcting region for element position
Picture element detection request, until having detected the position correction of all picture elements.
Preferably, which further includes obtaining picture pretreatment request unit 61, obtaining division rule
Unit 62 and acquisition element position unit 63.
It obtains picture and pre-processes request unit 61, for obtaining picture pretreatment request, picture pretreatment request includes waiting for
Correct picture and Image ID.
Division rule unit 62 is obtained, for according to Image ID, obtaining corresponding picture division rule.
Element position unit 63 is obtained, picture is corrected for being treated using picture division rule and is divided, with to be repaired
At least one picture element and corresponding element position are obtained in positive picture.
Preferably, which further includes obtaining to correct long unit 21 and formation correcting region unit
22。
It obtains and corrects long unit 21, for being based on element modification rule, obtain the amendment length of picture element, correct wide and figure
Piece element spacing.
Correcting region unit 22 is formed, amendment width long for the amendment based on picture element and picture element spacing are being schemed
Formation element correcting region on picture to be modified where piece element.
Preferably, which further includes obtaining addition request unit 71, addition picture element unit cell 72
Confirm command unit 73 with receiving to add.
Addition request unit 71 is obtained, for obtaining picture element addition request, picture element addition request includes element
ID and picture element corresponding with element ID and element addition rule.
Picture element unit cell 72 is added, for adding regular, the corresponding element Adding Areas display elements ID based on element,
And picture element is added in element Adding Area.
It receives addition and confirms command unit 73, confirm instruction for receiving addition, the position to complete picture element is added.
Preferably, which further includes obtaining removal request unit 81 and deletion picture element unit cell
82。
Removal request unit 81 is obtained, for obtaining picture element removal request, picture element removal request includes element
ID。
Picture element unit cell 82 is deleted, for deleting the corresponding element modification rules of element ID and picture element.
Preferably, which further includes obtaining virtual portfolio graphic element 91, forming virtual portfolio figure
Shape unit 92 determines central position cell 93 and completes virtual portfolio graphic element 94.
Virtual portfolio graphic element 91 is obtained, virtual portfolio graphics requests, virtual portfolio graphics requests are formed for obtaining
Including at least one surplus element ID and combination modification rule corresponding with each surplus element ID.
Virtual portfolio graphic element 92 is formed, is used for based on all combination modification rules, by least one surplus element
The corresponding remaining graphic elements of ID are combined successively by preset order forms virtual portfolio figure.
Central position cell 93 is determined, for based on the corresponding remaining picture elements of at least one surplus element ID, determining
Picture element center.
Virtual portfolio graphic element 94 is completed, the center for making virtual portfolio figure and picture element center weight
It closes, to complete the amendment of virtual portfolio figure.
Embodiment 3
The present embodiment provides a computer readable storage medium, computer journey is stored on the computer readable storage medium
Sequence realizes element position modification method in embodiment 1, to avoid repeating, here not when the computer program is executed by processor
It repeats again.Alternatively, realized when the computer program is executed by processor in embodiment 2 each module in element position correcting device/
The function of unit, to avoid repeating, which is not described herein again.
Embodiment 4
Fig. 8 is the schematic diagram for the computer equipment that one embodiment of the invention provides.As shown in figure 8, the calculating of the embodiment
Machine equipment 200 includes:It processor 210, memory 220 and is stored in memory 220 and can run on processor 210
Computer program 230.Processor 210 realizes element position modification method in above-described embodiment 1 when executing computer program 230
Step, such as step S10 to S50 shown in FIG. 1.Alternatively, processor 210 realizes above-mentioned implementation when executing computer program 230
The function of each module/unit of element position correcting device in example 2, such as shown in Fig. 7 and obtain detection request module 10, obtain
Modification rule module 20, mobile picture element module 30 and the function of receiving confirmation instruction module 40.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion
The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality
Applying example, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each
Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed
Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of element position modification method, which is characterized in that including:
Picture element detection request is obtained, it includes element ID that the picture element detection, which is asked, corresponding with the element ID
Picture element and element position;
Element modification rule corresponding with the element ID is obtained, shows the corresponding element correcting regions of the element ID;
If not in the element correcting region, picture element corresponding with the element ID is moved to for the element position
In the element correcting region;
It receives to correct and confirms instruction, based on the position correction corrected and confirm that the picture element is completed in instruction.
2. element position modification method as described in claim 1, which is characterized in that corresponding in the display element ID
After the step of element correcting region, the element position modification method further includes:
If the element position, which in the element correcting region, continues to execute, obtains picture element detection request, until inspection
The position correction of all picture elements is surveyed.
3. position correcting method as described in claim 1, which is characterized in that in the step of the acquisition picture element detection request
Before rapid, the element position modification method further includes:
Picture pretreatment request is obtained, the picture pretreatment request includes picture and Image ID to be modified;
According to the Image ID, corresponding picture division rule is obtained;
The picture to be modified is divided using the picture division rule, to be obtained at least from the picture to be modified
One picture element and corresponding element position.
4. element position modification method as described in claim 1, which is characterized in that described to show the corresponding members of the element ID
Plain correcting region, including:
Based on the element modification rule, obtains the amendment length of the picture element, corrects wide and picture element spacing;
Amendment based on the picture element is long, corrects wide and picture element spacing, in the picture to be modified where picture element
Upper formation element correcting region.
5. element position modification method as described in claim 1, which is characterized in that the element modification method further includes:
Picture element addition request is obtained, the picture element addition request includes element ID and figure corresponding with the element ID
Piece element and element addition rule;
Rule is added based on the element, shows the corresponding element Adding Areas the element ID, and the picture element is added
It is added in the element Adding Area;
It receives addition and confirms instruction, the position to complete the picture element is added.
6. element position modification method as described in claim 1, which is characterized in that the element modification method further includes:
Picture element removal request is obtained, the picture element removal request includes element ID;
Delete the corresponding element modification rules of the element ID and picture element.
7. element position modification method as described in claim 1, which is characterized in that corresponding in the display element ID
After the step of element correcting region, the element modification method further includes:
Acquisition forms virtual portfolio graphics requests, the virtual portfolio graphics requests include at least one surplus element ID and with it is every
The corresponding combination modification rules of the one surplus element ID;
Based on all combination modification rules, by the corresponding remaining graphic elements of at least one surplus element ID by pre-
If combination forms virtual portfolio figure to sequence successively;
Based on the corresponding remaining picture elements of at least one surplus element ID, picture element center is determined;
The center of the virtual portfolio figure is set to be overlapped with the picture element center, to complete repairing for virtual portfolio figure
Just.
8. a kind of element position correcting device, which is characterized in that including:
Obtain detection request module, for obtaining picture element detection request, picture element detection request include element ID,
Picture element corresponding with the element ID and element position;
Modification rule module is obtained, for obtaining element modification rule corresponding with the element ID, shows the element ID
Corresponding element correcting region;
Mobile picture element module, if for the element position not in the element correcting region, it will be with the element
The corresponding picture elements of ID are moved in the element correcting region;
It receives and confirms instruction module, confirm instruction for receiving to correct, confirm that the picture member is completed in instruction based on the amendment
The position correction of element.
9. a kind of computer equipment, including memory, processor and it is stored in the memory and can be in the processor
The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to
The step of any one of 7 element position modification method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist
In realizing the element position modification method as described in any one of claim 1 to 7 when the computer program is executed by processor
Step.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810161847.6A CN108416747B (en) | 2018-02-27 | 2018-02-27 | Element position correction method, element position correction device, computer equipment and storage medium |
PCT/CN2018/081549 WO2019165676A1 (en) | 2018-02-27 | 2018-04-02 | Element position correcting method, device, computer device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810161847.6A CN108416747B (en) | 2018-02-27 | 2018-02-27 | Element position correction method, element position correction device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108416747A true CN108416747A (en) | 2018-08-17 |
CN108416747B CN108416747B (en) | 2020-07-10 |
Family
ID=63129121
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810161847.6A Active CN108416747B (en) | 2018-02-27 | 2018-02-27 | Element position correction method, element position correction device, computer equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108416747B (en) |
WO (1) | WO2019165676A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020161144A1 (en) * | 2019-02-04 | 2020-08-13 | Enfocus NV | Method for preflighting a graphics artwork file |
CN112424837A (en) * | 2020-10-23 | 2021-02-26 | 上海亦我信息技术有限公司 | Model correction method, device and equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101196950A (en) * | 2006-12-05 | 2008-06-11 | 富士通株式会社 | CAD apparatus, method of editing graphic data, and computer product |
CN103702024A (en) * | 2013-12-02 | 2014-04-02 | 宇龙计算机通信科技(深圳)有限公司 | Image processing device and image processing method |
CN104574321A (en) * | 2015-01-29 | 2015-04-29 | 京东方科技集团股份有限公司 | Image correction method and device and video system |
CN105027163A (en) * | 2013-03-06 | 2015-11-04 | 皇家飞利浦有限公司 | Scan region determining apparatus |
CN105590877A (en) * | 2014-11-12 | 2016-05-18 | 株式会社思可林集团 | Data correcting apparatus, drawing apparatus, inspection apparatus, data correcting method, drawing method, inspection method and recording medium |
CN105653152A (en) * | 2015-12-23 | 2016-06-08 | 北京金山安全软件有限公司 | Picture processing method and device and electronic equipment |
CN107239390A (en) * | 2016-03-28 | 2017-10-10 | 百度在线网络技术(北京)有限公司 | The method and apparatus for proofreading application interface information |
-
2018
- 2018-02-27 CN CN201810161847.6A patent/CN108416747B/en active Active
- 2018-04-02 WO PCT/CN2018/081549 patent/WO2019165676A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101196950A (en) * | 2006-12-05 | 2008-06-11 | 富士通株式会社 | CAD apparatus, method of editing graphic data, and computer product |
CN105027163A (en) * | 2013-03-06 | 2015-11-04 | 皇家飞利浦有限公司 | Scan region determining apparatus |
CN103702024A (en) * | 2013-12-02 | 2014-04-02 | 宇龙计算机通信科技(深圳)有限公司 | Image processing device and image processing method |
CN105590877A (en) * | 2014-11-12 | 2016-05-18 | 株式会社思可林集团 | Data correcting apparatus, drawing apparatus, inspection apparatus, data correcting method, drawing method, inspection method and recording medium |
CN104574321A (en) * | 2015-01-29 | 2015-04-29 | 京东方科技集团股份有限公司 | Image correction method and device and video system |
CN105653152A (en) * | 2015-12-23 | 2016-06-08 | 北京金山安全软件有限公司 | Picture processing method and device and electronic equipment |
CN107239390A (en) * | 2016-03-28 | 2017-10-10 | 百度在线网络技术(北京)有限公司 | The method and apparatus for proofreading application interface information |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020161144A1 (en) * | 2019-02-04 | 2020-08-13 | Enfocus NV | Method for preflighting a graphics artwork file |
CN112424837A (en) * | 2020-10-23 | 2021-02-26 | 上海亦我信息技术有限公司 | Model correction method, device and equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2019165676A1 (en) | 2019-09-06 |
CN108416747B (en) | 2020-07-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111930381B (en) | Personalized page configuration method supporting SaaS multi-tenant system | |
CN104331872B (en) | Image split-joint method | |
CN104850693B (en) | A kind of monitoring device layout method and device | |
CN109916416A (en) | Lane line data processing and update method, device and equipment | |
CN108416747A (en) | Element position modification method, device, computer equipment and storage medium | |
CN110096540B (en) | Mapping data conversion method, device, storage medium and device | |
CN112132961A (en) | Panoramic image template-based digital virtual exhibition hall generation method and system | |
CN112307145A (en) | Batch updating method, device, medium and equipment for historical map data | |
CN101668296A (en) | Method and device for determining communication zone boundaries | |
CN109543683A (en) | Image labeling modification method, device, equipment and medium | |
CN112149764A (en) | Printing method of label printing system and label printing system | |
CN117494399A (en) | Feasibility assessment method, device, equipment and medium for equipment arrangement | |
CN109741448B (en) | Method, device and equipment for drawing three-dimensional fluctuation model based on DEM data | |
CN107478235A (en) | The dynamic map based on template obtains system under network environment | |
CN111914046A (en) | Generation method and device of target seating chart and computer equipment | |
JP2004101780A (en) | Device and method for processing positional coordinate correction | |
CN107465902A (en) | A kind of projection correction's method, apparatus and laser television | |
CN109767484A (en) | With the light and color homogenization method and system of color consistency in a kind of portion three-dimensional picture pasting | |
CN116185186A (en) | Intelligent equipment control method and system based on AR (augmented reality) glasses inspection technology | |
CN113313814B (en) | Indoor design system and method based on reverse modeling and AR technology | |
CN115203767A (en) | Automatic layout method and system for engineering drawings | |
CN109523633A (en) | Model scanning method, apparatus, equipment, storage medium and processor | |
CN112884656B (en) | Printing and imposition method and system for packing box plane expansion diagram image | |
CN111030874B (en) | Service arranging method, equipment, storage medium and device | |
CN113283621A (en) | Parameter processing method based on virtual prism coordinate transformation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |