CN108416747B - Element position correction method, element position correction device, computer equipment and storage medium - Google Patents

Element position correction method, element position correction device, computer equipment and storage medium Download PDF

Info

Publication number
CN108416747B
CN108416747B CN201810161847.6A CN201810161847A CN108416747B CN 108416747 B CN108416747 B CN 108416747B CN 201810161847 A CN201810161847 A CN 201810161847A CN 108416747 B CN108416747 B CN 108416747B
Authority
CN
China
Prior art keywords
picture
correction
picture element
rule
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810161847.6A
Other languages
Chinese (zh)
Other versions
CN108416747A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810161847.6A priority Critical patent/CN108416747B/en
Priority to PCT/CN2018/081549 priority patent/WO2019165676A1/en
Publication of CN108416747A publication Critical patent/CN108416747A/en
Application granted granted Critical
Publication of CN108416747B publication Critical patent/CN108416747B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/80Geometric correction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/98Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns
    • G06V10/987Detection 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/09Recognition 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 an element position correction method, an element position correction device, computer equipment and a storage medium. The element position correction method includes: acquiring a picture element detection request, wherein the picture element detection request comprises an element ID, a picture element corresponding to the element ID and an element position; acquiring an element correction rule corresponding to the element ID, and displaying an element correction area corresponding to the element ID; if the element position is not in the element correction area, moving the picture element corresponding to the element ID into the element correction area; and receiving a correction confirmation instruction, and finishing the position correction of the picture element based on the correction confirmation instruction. The method is convenient for users to timely and accurately obtain the correct picture placing position, can effectively judge whether the enterprise mark accords with the element correction rule, and converts manual correction of the picture into accurate and efficient automatic operation.

Description

Element position correction method, element position correction device, computer equipment and storage medium
Technical Field
The present invention relates to the field of image recognition, and in particular, to a method and an apparatus for correcting an element position, a computer device, and a storage medium.
Background
The enterprise logo is the concentration of enterprise image, characteristics, reputation and culture, and is a representative of enterprise brand. The visual communication elements that make up the enterprise logo include a variety of forms: such as graphics, numbers, web sites or promotional phrases, etc. When the enterprise logo is widely applied to different transmission media, the enterprise logo may be adaptively subjected to variant design according to differences in printing modes, manufacturing process technologies, material textures, transmission channels, application projects, and the like. Even if variant design occurs, the enterprise logo should follow the basic standard in the spreading process, namely, the proportion and the position of each visual transmission element forming the enterprise logo need to be kept uniform so as to keep the consistency of the spreading enterprise culture.
Whether the proportion and the position of visual transmission elements of the existing enterprise logo accord with the detection standard or not is mainly recognized through human eyes, and the accuracy and the speed of the existing enterprise logo are limited by the capability of the human eyes. How to quickly and effectively identify whether the enterprise mark meets the detection standard becomes a problem to be solved urgently.
Disclosure of Invention
The embodiment of the invention provides an element position correction method, an element position correction device, computer equipment and a storage medium, and aims to solve the problem of effectively identifying whether an enterprise mark meets a detection standard.
In a first aspect, an embodiment of the present invention provides an element position correction method, including:
acquiring a picture element detection request, wherein the picture element detection request comprises an element ID, a picture element corresponding to the element ID and an element position;
acquiring an element correction rule corresponding to the element ID, and displaying an element correction area corresponding to the element ID;
if the element position is not in the element correction area, moving the picture element corresponding to the element ID into the element correction area;
and receiving a correction confirmation instruction, and finishing the position correction of the picture element based on the correction confirmation instruction.
In a second aspect, an embodiment of the present invention provides an element position correction apparatus, including:
the system comprises an acquisition detection request module, a processing module and a display module, wherein the acquisition detection request module is used for acquiring a picture element detection request, and the picture element detection request comprises an element ID, a picture element corresponding to the element ID and an element position;
the acquisition and correction rule module is used for acquiring an element correction rule corresponding to the element ID and displaying an element correction area corresponding to the element ID;
a moving picture element module for moving the picture element corresponding to the element ID into the element correction area if the element position is not within the element correction area;
and the receiving confirmation instruction module is used for receiving a correction confirmation instruction and finishing the position correction of the picture element based on the correction confirmation instruction.
A third aspect of the present invention provides a computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the element position correction method according to the first aspect of the present invention when executing the computer program.
A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the element position correction method according to the first aspect of the present invention.
On one hand, by acquiring the element correction rule corresponding to the element ID and displaying the element correction area corresponding to the element ID, a user can conveniently and accurately acquire the correct placement position of the corresponding picture element in time without carrying out identification and measurement through human eyes, whether the picture element in the enterprise logo accords with the element correction rule or not can be effectively judged, and the efficiency and accuracy of picture element detection are improved; on the other hand, the picture element corresponding to the element ID is moved into the element correction area, the manual correction of the picture is converted into accurate and efficient automatic operation, and the efficiency and the accuracy of picture element correction are further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart of an element position correction method in embodiment 1 of the present invention.
Fig. 2 is another specific flowchart of the element position correction method in embodiment 1 of the present invention.
Fig. 3 is another specific flowchart of the element position correction method in embodiment 1 of the present invention.
Fig. 4 is another specific flowchart of the element position correction method in embodiment 1 of the present invention.
Fig. 5 is another specific flowchart of the element position correction method in embodiment 1 of the present invention.
Fig. 6 is another specific flowchart of the element position correction method in embodiment 1 of the present invention.
Fig. 7 is a schematic block diagram of an element position correction apparatus in embodiment 2 of the present invention.
Fig. 8 is a schematic diagram of a computer device in embodiment 4 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
The technical scheme provided by the embodiment is deployed in an enterprise server and used for identifying whether an enterprise logo meets a detection standard, wherein the detection standard comprises an element correction rule corresponding to each picture element. The enterprise logo is the concentration of enterprise image, characteristics, reputation and culture, and is a representative of enterprise brand. Each enterprise logo can be composed of a plurality of picture elements, such as graphic pictures, text pictures, digital pictures and the like, and each picture element occupies a corresponding position and proportion in the enterprise logo according to design standards, that is, all the picture elements have corresponding positions and proportions in the whole enterprise logo.
It will be appreciated that the enterprise server assigns a unique element ID to each picture element, so that the server can look up the corresponding picture element by the element ID. The element ID is an identifier for identifying a different picture element.
When the enterprise logo is displayed in different situations, the position and the proportion of the original picture element in the enterprise logo may need to be adjusted, so that the position of the original picture element in the enterprise logo is changed, and the enterprise logo conforms to different detection standards. At this time, the element position correction method provided in this embodiment is needed to correspondingly adjust the picture elements in the enterprise logo to a proper position, so as to maintain the overall consistency of the enterprise logo.
The detection standard applied to this embodiment is an element correction rule, and needs to be preset in the enterprise server to enable the server to adjust the position of the picture element according to the element correction rule, so as to keep the overall consistency of the enterprise identifier.
Fig. 1 shows a flowchart of an element position correction method in the present embodiment. As shown in fig. 1, the element position correction method includes the steps of:
s10, a picture element detection request is obtained, wherein the picture element detection request comprises an element ID, a picture element corresponding to the element ID and an element position.
Specifically, the picture element detection request is a request that the server receives to detect whether the element positions of the picture elements constituting the detected enterprise id conform to the element modification rule.
The element position is the position information of the picture element in the detected enterprise logo, and the position information includes length, width, distance from the surrounding picture elements, proportion in the enterprise logo, and the like.
In this step, the server can quickly locate the picture element in the picture corresponding to the element ID by obtaining the element ID and the element position according to the obtained picture element detection request, and detect the picture element.
And S20, acquiring an element correction rule corresponding to the element ID, and displaying an element correction area corresponding to the element ID.
Specifically, the element modification region is a region in which a picture element can be placed on a picture identified by an enterprise when the picture element satisfies an element modification rule. Because the element correction rule corresponding to each picture element reserves a certain error range, namely the area of the element correction region is larger than the area of each picture element, the picture element correction can be carried out smoothly. In the element correction area range, the user can also move the picture element according to subjective feeling, and can also automatically correct the picture element according to a preset correction program.
The following description will be given by taking an element modification rule of a picture element in a company enterprise logo as an example:
the picture to be corrected is an integral picture formed by picture elements, and is an enterprise logo when applied to the embodiment. The picture to be corrected refers to a picture which needs to be corrected.
The element modification rule corresponding to the picture element 1 is as follows:
1) position error acceptance range: may be 0.1% of the height or width of the overall picture to be corrected.
2) The dimension of picture element 1 accounts for the proportion of the picture to be corrected and the distance between adjacent picture elements: 3.75% of the total height (allowing 3.65% to 3.85%), width 100% (allowing 99.9% to 100.1%); if not, prompting that: picture element 1 occupies 3.75% of the total height and 100% of the width.
The element modification rule corresponding to the picture element 2 is as follows:
1) position error acceptance range: may be 0.1% of the height or width of the overall picture to be corrected.
2) The dimension of picture element 2 accounts for the proportion of the picture to be corrected and the distance between adjacent picture elements: 3.75% of the total height (allowing 3.65% to 3.85%), width 100% (allowing 99.9% to 100.1%); if not, prompting that: picture element 2 should have a total height of 3.75% and a width of 100%.
The element modification rule corresponding to the picture element 3 is as follows:
1) position error acceptance range: may be 0.1% of the height or width of the overall picture to be corrected.
2) The dimension of picture element 3 accounts for the proportion of the picture to be corrected and the distance between adjacent picture elements: the top of the picture element 3 is positioned at the boundary of 75%/25% of the transverse width (allowing the boundary of 74.9%/25.1%) and is 7.5% of the height from the bottom (allowing the boundary of 7.4% -7.6%); if not, prompting that: the top of the picture element 3 should be located at the 75%/25% division of the lateral width and at a height of 7.5% from the bottom.
Further, the display mode of the element correction area includes but is not limited to: the area boundary is displayed by a dotted line, or the element correction area is highlighted, or the like.
The step can visually display the element correction area corresponding to the element ID, and avoid the inconvenience of detecting the element correction area by human eyes.
And S30, if the element position is not in the element correction area, moving the picture element corresponding to the element ID into the element correction area.
Specifically, the server moves the picture element corresponding to the element ID to the boundary of the element correction region based on the boundary of the element correction region corresponding to the element ID. The center point of the picture element corresponding to the element ID can be coincided with the center point of the element correction area, so that the picture element is located at the center position of the element correction area, and an adjustable space is provided.
In the step, the server directly moves the picture elements which are not in the element correction area into the element correction area, so that the automation level of the server for correcting the picture is improved, the specific positions of the picture elements do not need to be calculated manually, and the accuracy of the placement positions of the picture elements is improved.
And S40, receiving a correction confirmation instruction, and finishing the position correction of the picture element based on the correction confirmation instruction.
Specifically, the correction confirmation instruction is an instruction sent by the server receiving user to confirm that the position of the current picture element can be confirmed. When the server automatically moves the picture element corresponding to the element ID into the element correction area, a correction confirmation instruction can be sent to the server through the client after the user is satisfied; or after manual fine adjustment by the user, sending a correction confirmation instruction to the server through the client.
Further, when correcting the picture element, the user may also perform operations such as moving, stretching, or shortening the picture element. If the picture element exceeds the element correction area after being finely adjusted by the user, the server can warn the user that the current picture element still does not accord with the element correction rule so as to remind the user to place the picture element in the element correction area.
Further, a polling mechanism is arranged in the server, and the polling mechanism is used for continuously executing the picture element detection request after the position correction of each picture element is completed until all the picture elements are detected and the position correction is performed. All picture elements can be automatically detected through a polling mechanism, and the time for manual confirmation is greatly saved.
Preferably, after step S20, that is, after the step of displaying the element correction area corresponding to the element ID, the method for correcting the element position further includes the following steps:
and S50, if the element position is in the element correction area, continuing to execute the picture element acquisition detection request until the position correction of all the picture elements is finished.
In this step, if the element position is in the element correction region, that is, the picture element meets the requirement of the element correction rule, the element position of the next picture element can be rapidly detected without manual operation.
It is understood that after step S40, i.e. after receiving the correction confirmation instruction, the step of completing the position correction of the picture element based on the correction confirmation instruction also needs to execute step S50. After the picture element is position-corrected in step S40, the server continues to detect the picture element after the position correction. When it is detected that the picture element is already in the element modification area, the requirement of step S50 is met, and the process continues to execute the get picture element detection request until the position modification of all the picture elements is completed, so as to ensure that all the picture elements with modified positions conform to the element modification rule.
According to the element position correction method provided by the embodiment of the invention, the element correction rule corresponding to the element ID is obtained, and the element correction area corresponding to the element ID is displayed, so that a user can conveniently and accurately obtain the correct placement position of the corresponding picture element in time, and the identification and determination are not performed through human eyes any more, thus whether the picture element in the enterprise mark conforms to the element correction rule or not can be effectively judged, and the efficiency and accuracy of picture element detection are improved; by moving the picture element corresponding to the element ID into the element correction area, the manual correction of the picture is converted into accurate and efficient automatic operation, and the efficiency and accuracy of picture element correction are further improved.
In an embodiment, as shown in fig. 2, before step S10, that is, before the step of obtaining the picture element detection request, the element position correction method further includes the following specific steps:
s61, a picture preprocessing request is obtained, wherein the picture preprocessing request comprises a picture to be corrected and a picture ID.
Specifically, the picture to be corrected is an overall picture formed by picture elements, and is an enterprise logo when applied to this embodiment. The picture to be corrected refers to a picture which needs to be corrected.
The picture preprocessing request is received by the server and is used for requesting to preprocess the picture to be corrected corresponding to the picture ID so as to facilitate the detection of whether the picture meets the element correction rule or not. It is understood that the picture ID is a unique identifier assigned by the server to each picture to be modified, so as to identify the picture to be modified.
S62, acquiring a corresponding picture division rule according to the picture ID.
Specifically, the picture dividing rule is a rule for dividing picture elements on the picture to be modified. Because each picture element occupies a certain original position on the picture to be corrected, different picture elements can be cut and divided according to the original position so as to further process each picture element. In this embodiment, the server stores the picture type corresponding to each picture ID in advance, and each picture type corresponds to one picture division rule, so that the server can quickly obtain the corresponding picture division rule through query operation after receiving the picture ID.
Specifically, the server receives the picture to be corrected, stores the picture to be corrected in the memory, and sets a picture coordinate system for the picture to be corrected, so that the server can further process picture elements on the picture to be corrected. Namely, on the basis of setting a picture coordinate system, processing the picture to be corrected according to the picture division rule.
And S63, dividing the picture to be corrected by adopting a picture division rule so as to obtain at least one picture element and a corresponding element position from the picture to be corrected.
In this step, the edge of each picture element is positioned by the picture to be corrected and divided, so that the element position of the picture element in the set picture coordinate system can be obtained, and the server can correct the picture element based on the element position conveniently.
In this embodiment, the server obtains the picture to be corrected in the picture preprocessing request, sets a picture coordinate system for the picture to be corrected, and divides the picture to be corrected according to the picture division rule corresponding to the picture ID, so as to obtain the specific element position of each picture element, thereby facilitating the server to perform rapid and accurate position correction based on the element positions of the picture elements.
In one embodiment, as shown in fig. 3, the step S20, that is, displaying the element modification area corresponding to the element ID, specifically includes the following steps:
and S21, acquiring the correction length, the correction width and the picture element interval of the picture elements based on the element correction rule.
Specifically, the element modification rule includes a modification length, a modification width, and a picture element pitch corresponding to each picture element. The correction length and the correction width are the length and the width of the element correction region in which the picture element is located, which are set by the element correction rule. The picture element pitch is the placement distance between each picture element and the surrounding picture elements, and the distance between each picture element and the edge of the picture to be corrected.
In the step, the server obtains the correction length, the correction width and the picture element distance of the picture elements through the element correction rule, so that the element correction area can be accurately and quickly measured, and the time of manual calculation is saved.
And S22, forming an element correction area on the picture to be corrected where the picture elements are located based on the correction length, the correction width and the picture element spacing of the picture elements.
Specifically, the display mode of the element correction area includes, but is not limited to: the area boundary is displayed by a dotted line, or the element correction area is highlighted, or the like.
In the embodiment, the element correction area of the picture element is obtained through the calculation of the server and displayed, so that the time of manual calculation is greatly saved, and the position accuracy is improved; an element correction area is formed on the picture to be corrected where the picture element is located, so that the element correction area is displayed more intuitively, and the position correction of the picture element is facilitated.
In an embodiment, as shown in fig. 4, the method for correcting the element position further includes the following steps:
s71, a picture element adding request is obtained, wherein the picture element adding request comprises an element ID, a picture element corresponding to the element ID and an element adding rule.
Specifically, the picture element adding request is a request sent by a user to the server to add a new picture element to the picture to be corrected. Each picture element corresponds to an element modification rule, and it can be understood that when a picture element is added, a certain addition rule needs to be satisfied, so that the picture element can be added to the picture to be modified. The rule for adding the picture element to the picture to be modified is an element addition rule.
Further, in consideration of actual needs, in the process of correcting the enterprise logo, a certain picture element may need to be added or deleted, and at this time, the picture element addition request provided by this embodiment needs to be used to meet the actual needs.
In the step, the picture element and the element adding rule corresponding to the picture element are obtained, so that the element adding area corresponding to the picture element can be accurately determined, and meanwhile, the time for manual calculation is greatly saved.
And S72, displaying an element adding area corresponding to the element ID based on the element adding rule, and adding the picture element into the element adding area.
Specifically, the element addition area is calculated by the server according to the element addition rule, and a position area of a new picture element is added to the picture to be corrected.
In the step, the server can automatically add the picture elements to be added into the element adding area, so that the automation degree of picture element addition is improved.
And S73, receiving an adding confirmation instruction to complete position adding of the picture element.
Specifically, the addition confirmation instruction is an instruction for the user to confirm that the position of the picture element is the final position.
Further, the user may directly confirm the element position of the added picture element of the server, or the user may send an addition confirmation instruction to the server after performing fine adjustment. In this step, the user can directly confirm the adding result of the server, or the user can fine-tune the position of the added picture element by himself, so that the flexibility of adding the picture element is enhanced.
The embodiment provides the picture element adding request so as to add a new picture element on the picture to be corrected based on the picture element adding request, thereby expanding the range of correcting the picture element and improving the user experience.
In an embodiment, as shown in fig. 5, the method for correcting the element position further includes the following steps:
s81, acquiring a picture element deleting request, wherein the picture element deleting request comprises an element ID.
Specifically, the picture element deletion request is a request sent by a user to a server to delete an original picture element on a picture to be modified.
In this step, the user can delete the picture element corresponding to the element ID in the picture to be corrected through the picture element deletion request, thereby enhancing the flexibility of correcting the picture element.
And S82, deleting the element correction rule and the picture element corresponding to the element ID.
Specifically, when a picture element is deleted, the picture element no longer exists on the picture to be modified, so that the element modification rule corresponding to the picture element is simultaneously invalidated, and the storage space of the server can be saved by deletion.
In the step, the picture element and the element correction rule corresponding to the picture element are deleted, so that the picture related information carried by the picture to be corrected is simplified, and the server resource is saved.
The embodiment provides a picture element deletion request, so that an existing picture element is deleted on a picture to be corrected based on the picture element deletion request, and the range of correcting the picture element is expanded.
In an embodiment, as shown in fig. 6, after step S20, that is, after the step of displaying the element correction area corresponding to the element ID, the element position correction method further includes the following specific steps:
s91, acquiring a request for forming a virtual combined graph, wherein the virtual combined graph request comprises at least one residual element ID and a combined correction rule corresponding to each residual element ID.
Specifically, the request for forming the virtual combined graph is a request for simultaneously forming and displaying all picture elements which are not modified in the picture to be modified into one combined graph. The combined correction rule is formed by collecting element correction rules corresponding to the remaining graphic elements to be corrected by the server, so that each picture element in the virtual combined graphic conforms to the regulation of the element correction rule. The remaining element ID refers to an identifier corresponding to each picture element that is not corrected in the picture to be corrected.
In the step, the server combines the element correction rules of the remaining picture elements to be corrected to form a combined correction rule once, so that the time of manual calculation is greatly saved, and the accuracy of the element position of each picture element is ensured.
And S92, sequentially combining the residual graphic elements corresponding to the at least one residual element ID according to a preset sequence to form a virtual combined graphic based on all the combined correction rules.
In the step, the server forms the remaining picture elements to be corrected into the virtual combined graph at one time, so that the time for detecting the element positions of the picture elements one by one is saved. In this embodiment, the preset sequence refers to a sequence for correcting picture elements according to the element correction rule. For example, in a picture to be corrected, the position of picture element 1 needs to be specified first, the position of picture element 2 is set based on the position of picture element 1, and so on until the position of the last picture element is specified.
Specifically, the virtual combined graph is formed by combining in sequence according to a preset sequence, so that the requirement of the element correction rule corresponding to each picture element can be met, and the correctness of the placement position of each picture element is guaranteed.
And S93, determining the center position of the picture element based on the residual picture element corresponding to the at least one residual element ID.
The remaining elements refer to the picture elements which are not corrected in the picture to be corrected. Specifically, the picture element center position is a center coordinate value of the virtual combined figure in the set picture coordinate system. The virtual combined graph obtained by calculation is based on the central coordinate value in the set coordinate system, and the virtual combined graph can be accurately placed on the picture to be corrected so as to meet the requirements of the combined correction rule.
And S94, enabling the center of the virtual combined graph to coincide with the center of the picture element so as to finish the correction of the virtual combined graph.
The center position of the picture element is obtained through calculation, and the center of the virtual combined graph is placed on the center position of the picture element in the set picture coordinate system, so that the virtual combined graph is placed at the accurate position.
In the embodiment, the virtual combined graph is formed at one time, so that the time for detecting the element positions of the picture elements one by one is saved.
By acquiring the element correction rule corresponding to the element ID and displaying the element correction area corresponding to the element ID, a user can conveniently and accurately acquire the correct placement position of the corresponding picture element in time, the identification and the measurement are not performed through human eyes any more, whether the picture element in the enterprise logo accords with the element correction rule or not can be effectively judged, and the efficiency and the accuracy of picture element detection are improved; by moving the picture element corresponding to the element ID into the element correction area, the manual correction of the picture is converted into accurate and efficient automatic operation, and the efficiency and accuracy of picture element correction are further improved.
Further, the server provided in this embodiment may obtain the specific element position of each picture element by obtaining the picture to be corrected in the picture preprocessing request, setting a picture coordinate system for the picture to be corrected, and then dividing the picture to be corrected according to the picture division rule corresponding to the picture ID, so that the server can perform fast and accurate position correction based on the element position of the picture element.
Furthermore, the embodiment also obtains and displays the element correction area of the picture element through the server calculation, thereby greatly saving the time of manual calculation and improving the position accuracy; an element correction area is formed on the picture to be corrected where the picture element is located, so that the element correction area is displayed more intuitively, and the position correction of the picture element is facilitated.
The embodiment also provides a request for adding the picture elements and a request for obtaining and forming the virtual combined graph, and expands the range of correcting the picture elements; by forming the virtual combined graph at one time, the time for detecting the element positions of the picture elements one by one is saved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Example 2
Fig. 7 is a schematic block diagram showing an element position correction apparatus corresponding to the element position correction method in one-to-one in embodiment 1. As shown in fig. 7, the element position correction means includes an acquisition detection request module 10, an acquisition correction rule module 20, a moving picture element module 30, and a reception confirmation instruction module 40. The implementation functions of the detection request obtaining module 10, the correction rule obtaining module 20, the moving picture element moving module 30, and the confirmation instruction receiving module 40 correspond to the steps corresponding to the element position correction method in the embodiment one to one, and for avoiding repeated descriptions, detailed descriptions are not needed in this embodiment.
And an obtaining detection request module 10, configured to obtain a picture element detection request, where the picture element detection request includes an element ID, a picture element corresponding to the element ID, and an element position.
And an acquiring modification rule module 20, configured to acquire an element modification rule corresponding to the element ID, and display an element modification area corresponding to the element ID.
And a move picture element module 30, configured to move the picture element corresponding to the element ID into the element correction area if the element position is not within the element correction area.
And a receiving confirmation instruction module 40, configured to receive a correction confirmation instruction, and complete the position correction of the picture element based on the correction confirmation instruction.
Preferably, the element position correction apparatus further includes a continued execution detection request module 50.
And a detection continuing request module 50, configured to continue to execute the request for obtaining the picture element detection until the position correction of all the picture elements is completed.
Preferably, the element position correction apparatus further includes an acquisition picture preprocessing request unit 61, an acquisition division rule unit 62, and an acquisition element position unit 63.
An obtaining picture preprocessing request unit 61 is configured to obtain a picture preprocessing request, where the picture preprocessing request includes a picture to be modified and a picture ID.
And an obtaining division rule unit 62, configured to obtain a corresponding picture division rule according to the picture ID.
An obtaining element position unit 63, configured to divide the picture to be corrected by using a picture division rule, so as to obtain at least one picture element and a corresponding element position from the picture to be corrected.
Preferably, the acquiring and modifying rule module 20 further includes an acquiring and modifying long unit 21 and a forming and modifying area unit 22.
An obtaining correction length unit 21 is configured to obtain a correction length, a correction width, and a picture element pitch of the picture element based on the element correction rule.
A correction area forming unit 22 is configured to form an element correction area on the picture to be corrected where the picture element is located, based on the correction length, the correction width, and the picture element pitch of the picture element.
Preferably, the element position correction apparatus further includes an acquisition addition request unit 71, an addition picture element unit 72, and a reception addition confirmation instruction unit 73.
An acquire-add-request unit 71 configured to acquire a picture element add request including an element ID and a picture element and an element add rule corresponding to the element ID.
An add picture element unit 72, configured to display an element addition region corresponding to the element ID based on the element addition rule, and add the picture element to the element addition region.
A receiving addition confirmation instruction unit 73, configured to receive an addition confirmation instruction to complete position addition of the picture element.
Preferably, the element position correction apparatus further includes an acquire delete request unit 81 and a delete picture element unit 82.
An acquire deletion request unit 81 acquires a picture element deletion request including an element ID.
And a delete picture element unit 82, configured to delete the picture element and the element modification rule corresponding to the element ID.
Preferably, the element position correction apparatus further includes an acquire virtual composite graphic unit 91, a form virtual composite graphic unit 92, a determine center position unit 93, and a complete virtual composite graphic unit 94.
The get virtual combined graphics unit 91 is configured to get a request to form a virtual combined graphics, where the virtual combined graphics request includes at least one remaining element ID and a combined modification rule corresponding to each remaining element ID.
And a virtual combined graphic unit 92 is formed, configured to sequentially combine the remaining graphic elements corresponding to the at least one remaining element ID according to a preset sequence to form a virtual combined graphic based on all the combination correction rules.
A center position determining unit 93, configured to determine a center position of the picture element based on the remaining picture elements corresponding to the at least one remaining element ID.
And a complete virtual combined graphic unit 94 for making the center of the virtual combined graphic coincide with the center of the picture element to complete the correction of the virtual combined graphic.
Example 3
This embodiment provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for correcting the position of an element in embodiment 1 is implemented, and details are not described here again to avoid repetition. Alternatively, the computer program, when executed by the processor, implements the functions of each module/unit in the element position correction apparatus in embodiment 2, and is not described here again to avoid redundancy.
Example 4
Fig. 8 is a schematic diagram of a computer device provided by an embodiment of the invention. As shown in fig. 8, the computer apparatus 200 of this embodiment includes: a processor 210, a memory 220, and a computer program 230 stored in the memory 220 and operable on the processor 210. The processor 210, when executing the computer program 230, implements the steps of the element position correction method in embodiment 1 described above, such as steps S10 to S50 shown in fig. 1. Alternatively, the processor 210, when executing the computer program 230, implements the functions of the respective modules/units of the element position correction apparatus in embodiment 2 described above, such as the functions of the acquisition detection request module 10, the acquisition correction rule module 20, the moving picture element module 30, and the reception confirmation instruction module 40 shown in fig. 7.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (8)

1. An element position correction method, characterized by comprising:
acquiring a picture element detection request, wherein the picture element detection request comprises an element ID, a picture element corresponding to the element ID and an element position;
acquiring an element correction rule corresponding to the element ID, and displaying an element correction area corresponding to the element ID, wherein the method specifically comprises the following steps:
acquiring the correction length, the correction width and the picture element distance of the picture elements based on the element correction rule, wherein the element correction rule comprises a position error acceptance range, the ratio of the dimensionality of the picture elements in the picture to be corrected and the distance between adjacent picture elements;
forming an element correction area on the picture to be corrected where the picture elements are located based on the correction length, the correction width and the picture element spacing of the picture elements;
if the element position is not in the element correction area, moving the picture element corresponding to the element ID into the element correction area;
receiving a correction confirmation instruction, and finishing the position correction of the picture element based on the correction confirmation instruction;
acquiring a request for forming a virtual combined graph, wherein the virtual combined graph request comprises at least one residual element ID and a combined correction rule corresponding to each residual element ID;
sequentially combining the residual graphic elements corresponding to at least one residual element ID according to a preset sequence to form a virtual combined graphic based on all the combined correction rules;
determining the center position of a picture element based on the residual picture element corresponding to at least one residual element ID;
and enabling the center of the virtual combined graph to coincide with the center of the picture element so as to finish the correction of the virtual combined graph.
2. The element position correction method according to claim 1, characterized in that after the step of displaying the element correction area corresponding to the element ID, the element position correction method further comprises:
and if the element position is in the element correction area, continuing to execute the picture element detection acquisition request until the position correction of all the picture elements is finished.
3. The position correction method according to claim 1, wherein, prior to the step of acquiring a picture element detection request, the element position correction method further comprises:
acquiring a picture preprocessing request, wherein the picture preprocessing request comprises a picture to be corrected and a picture ID;
acquiring a corresponding picture division rule according to the picture ID;
and dividing the picture to be corrected by adopting the picture division rule so as to obtain at least one picture element and a corresponding element position from the picture to be corrected.
4. The element position correction method according to claim 1, characterized in that the element position correction method further comprises:
acquiring a picture element adding request, wherein the picture element adding request comprises an element ID, a picture element corresponding to the element ID and an element adding rule;
displaying an element adding area corresponding to the element ID based on the element adding rule, and adding the picture element into the element adding area;
and receiving an adding confirmation instruction to complete the position adding of the picture element.
5. The element position correction method according to claim 1, characterized in that the element position correction method further comprises:
acquiring a picture element deleting request, wherein the picture element deleting request comprises an element ID;
and deleting the element modification rule and the picture element corresponding to the element ID.
6. An element position correction apparatus characterized by comprising:
the system comprises an acquisition detection request module, a processing module and a display module, wherein the acquisition detection request module is used for acquiring a picture element detection request, and the picture element detection request comprises an element ID, a picture element corresponding to the element ID and an element position;
the acquiring and modifying rule module is configured to acquire an element modifying rule corresponding to the element ID, and display an element modifying area corresponding to the element ID, and specifically includes:
the obtaining correction length unit is used for obtaining the correction length, the correction width and the picture element distance of the picture elements based on the element correction rule, wherein the element correction rule comprises a position error acceptance range, the ratio of the dimension of the picture elements in the picture to be corrected and the distance between adjacent picture elements;
a correction area forming unit, configured to form an element correction area on the to-be-corrected picture where the picture element is located, based on the correction length, the correction width, and the picture element pitch of the picture element;
a moving picture element module, configured to move a picture element corresponding to the element ID into the element correction area if the element position is not within the element correction area;
the receiving and confirming instruction module is used for receiving a correction and confirming instruction and finishing the position correction of the picture element based on the correction and confirming instruction;
the method comprises the steps of obtaining a virtual combined graph unit, wherein the virtual combined graph unit is used for obtaining a request for forming a virtual combined graph, and the virtual combined graph request comprises at least one residual element ID and a combined correction rule corresponding to each residual element ID;
forming a virtual combined graph unit, which is used for sequentially combining the residual graph elements corresponding to at least one residual element ID according to a preset sequence to form a virtual combined graph based on all combined correction rules;
a center position determining unit, configured to determine a center position of the picture element based on a remaining picture element corresponding to the at least one remaining element ID;
and the finishing virtual combined graph unit is used for enabling the center of the virtual combined graph to coincide with the center of the picture element so as to finish the correction of the virtual combined graph.
7. A computer arrangement comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the element position correction method according to any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the element position correction method according to any one of claims 1 to 5.
CN201810161847.6A 2018-02-27 2018-02-27 Element position correction method, element position correction device, computer equipment and storage medium Active CN108416747B (en)

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 CN108416747A (en) 2018-08-17
CN108416747B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112823357B (en) * 2019-02-04 2023-11-21 印福仕私人有限公司 Method for pre-printing checking of graphic manuscript file
WO2022082704A1 (en) * 2020-10-23 2022-04-28 上海亦我信息技术有限公司 Model correction method and apparatus, and device

Citations (6)

* Cited by examiner, † Cited by third party
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107239390B (en) * 2016-03-28 2020-11-10 百度在线网络技术(北京)有限公司 Method and device for checking application interface information

Patent Citations (6)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN108416747A (en) 2018-08-17
WO2019165676A1 (en) 2019-09-06

Similar Documents

Publication Publication Date Title
CN111930381B (en) Personalized page configuration method supporting SaaS multi-tenant system
CN107239390B (en) Method and device for checking application interface information
CN108416747B (en) Element position correction method, element position correction device, computer equipment and storage medium
CN105630525B (en) Page synchronization method and device
CN105373285A (en) Method and device for changing application icons of terminal
JPH07262371A (en) Distributed image processor
US9679386B2 (en) Image processing device capable of segmenting an image into plural areas
CN110457271B (en) Tile map updating method and system
CN110096540B (en) Mapping data conversion method, device, storage medium and device
CN104735348A (en) Double-camera photographing method and system
JP5334338B2 (en) Terminal device and drawing display program for terminal device
CN105824843B (en) Map rendering method and device for geographic information system
CN110619018A (en) Map overlay rarefying method, device, equipment and computer storage medium
CN112215811A (en) Image detection method and device, electronic equipment and storage medium
JP2019108755A (en) Road surface repair support device, road surface repair support program, and road surface repair support method
JP7034819B2 (en) Image processing equipment, image processing methods, and programs
CN111914046B (en) Generation method and device of target seating chart and computer equipment
US20150092215A1 (en) Information processing apparatus, method for configuring setting for electronic device, and electronic device
CN112419470A (en) Color rendering method, device, equipment and medium for target area
JP3919722B2 (en) Skin shape measuring method and skin shape measuring apparatus
CN110991050B (en) CAD (computer-aided design) image stacking method and related product
CN109407839B (en) Image adjusting method and device, electronic equipment and computer readable storage medium
JPWO2014119071A1 (en) Image resolution recognition apparatus, image resolution recognition method, and image resolution recognition program
CN107885180B (en) Test apparatus and test method
CN113015092A (en) Network positioning method and device

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