CN110648339A - Trademark cutting method and device, computer equipment and storage medium - Google Patents

Trademark cutting method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110648339A
CN110648339A CN201910924137.9A CN201910924137A CN110648339A CN 110648339 A CN110648339 A CN 110648339A CN 201910924137 A CN201910924137 A CN 201910924137A CN 110648339 A CN110648339 A CN 110648339A
Authority
CN
China
Prior art keywords
trademark
template
cut
cutting
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910924137.9A
Other languages
Chinese (zh)
Other versions
CN110648339B (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.)
Guangdong Kangpai Huanchuang Technology Co ltd
Original Assignee
Guangdong Esquel Textiles 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 Guangdong Esquel Textiles Co Ltd filed Critical Guangdong Esquel Textiles Co Ltd
Priority to CN201910924137.9A priority Critical patent/CN110648339B/en
Publication of CN110648339A publication Critical patent/CN110648339A/en
Application granted granted Critical
Publication of CN110648339B publication Critical patent/CN110648339B/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
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30124Fabrics; Textile; Paper

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Control Of Cutting Processes (AREA)

Abstract

The application relates to a trademark cutting method, a trademark cutting device, computer equipment and a storage medium. The method comprises the following steps: determining a template searching area of a trademark to be cut in the full-page trademark; extracting an image in the template searching area in the trademark to be cut as a local image of the trademark; matching the trademark local image with a reference trademark local image corresponding to the template searching area; if so, acquiring a corrected trademark template preset for the template search area; the corrected trademark template is obtained by correcting the original trademark template according to the deformation degree of the trademark to be cut; and cutting the trademark to be cut by adopting the corrected trademark template. By adopting the method, the cutting quality of the trademark can be ensured, the one-time continuous cutting of the whole trademark can be realized, and the cutting efficiency of the trademark can be effectively improved.

Description

Trademark cutting method and device, computer equipment and storage medium
Technical Field
The application relates to the field of trademark processing, in particular to a trademark cutting method, a device, computer equipment and a storage medium.
Background
In the textile and clothing industry, a woven label is usually used as a mark of a brand, and the woven label is a cloth mark which is woven on clothes and trousers and contains characters, letters and LOGO patterns. In the process of producing and processing trademarks, cutting the trademarks is an essential process. Because the woven trademark is woven by yarn, and the yarn has the physical characteristic of resilience, the trademarks in each row have deformation in different degrees under the condition of no tension.
The existing cutting method for woven labels adopts a laser cutting machine to cut, the laser cutting machine identifies and cuts labels according to the created label template by adopting similarity, because the label similarity is very close to each other, and the market has extremely strict requirements on the labels, so that a plurality of products which do not meet the requirements on product quality can be cut during cutting.
However, in the above cutting process, operations such as machine adjustment, cutting, material rolling, material spreading, material pulling, cutting and the like need to be performed repeatedly, so that the machine utilization rate is low, the labor intensity of personnel is very high, and resource waste is also caused.
Therefore, the conventional trademark cutting method has the problem of low cutting efficiency.
Disclosure of Invention
In view of the above, it is necessary to provide a trademark cutting method, a trademark cutting apparatus, a computer device, and a storage medium, which can improve the trademark cutting efficiency.
A method of cutting a trademark, the method comprising:
determining a template searching area of a trademark to be cut in the full-page trademark;
extracting an image in the template searching area in the trademark to be cut as a local trademark image;
matching the trademark local image with a reference trademark local image corresponding to the template searching area;
if so, acquiring a corrected trademark template preset for the template search area; the corrected trademark template is obtained by correcting the original trademark template according to the deformation degree of the trademark to be cut;
and cutting the trademark to be cut by adopting the corrected trademark template.
In one embodiment, the determining a template search area of the trademark to be cut in the full-page trademark comprises:
determining the cutting position of the trademark to be cut;
determining a template searching area of the trademark to be cut according to the cutting position;
in one embodiment, before determining the cutting position of the trademark to be cut, the method further includes:
determining a trademark cutting path, and determining the cutting position of the trademark to be cut according to the trademark cutting path.
In one embodiment, the step of determining a trademark cutting path comprises:
and determining the positioning points of the trademark, and sequentially connecting the positioning points to obtain the trademark cutting path.
In one embodiment, the determining the location point of the trademark includes:
receiving a trigger operation of a user on the template searching area of the trademark;
generating a positioning point of the trademark according to the triggering operation;
the trademark has a corresponding template search area.
A trademark cutting device, the device comprising:
the area determining module is used for determining a template searching area of the trademark to be cut in the full-page trademark;
the image extraction module is used for extracting an image in the template search area in the trademark to be cut as a trademark local image;
the image matching module is used for matching the trademark local image with a benchmark trademark local image corresponding to the template searching area;
the template acquisition module is used for acquiring a corrected trademark template preset for the template search area if the corrected trademark template is matched with the template search area; the corrected trademark template is obtained by correcting the original trademark template according to the deformation degree of the trademark to be cut;
and the cutting module is used for cutting the trademark to be cut by adopting the trademark correcting template.
In one embodiment, the device region determining module further includes:
the position determining submodule is used for determining the cutting position of the trademark to be cut;
and the area determining submodule is used for determining a template searching area of the trademark to be cut according to the cutting position.
In one embodiment, the apparatus further comprises:
and the path determining module is used for determining a trademark cutting path and determining the cutting position of the trademark to be cut according to the trademark cutting path.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
determining a template searching area of a trademark to be cut in the full-page trademark;
extracting an image in the template searching area in the trademark to be cut as a local trademark image;
matching the trademark local image with a reference trademark local image corresponding to the template searching area;
if so, acquiring a corrected trademark template preset for the template search area; the corrected trademark template is obtained by correcting the original trademark template according to the deformation degree of the trademark to be cut;
and cutting the trademark to be cut by adopting the corrected trademark template.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
determining a template searching area of a trademark to be cut in the full-page trademark;
extracting an image in the template searching area in the trademark to be cut as a local trademark image;
matching the trademark local image with a reference trademark local image corresponding to the template searching area;
if so, acquiring a corrected trademark template preset for the template search area; the corrected trademark template is obtained by correcting the original trademark template according to the deformation degree of the trademark to be cut;
and cutting the trademark to be cut by adopting the corrected trademark template.
According to the trademark cutting method, the trademark cutting device, the computer equipment and the storage medium, the template searching area of the trademark to be cut is determined in the full-page trademark, the image in the template searching area in the trademark to be cut is further extracted, the extracted image is matched with the benchmark trademark image corresponding to the template searching area, and the corrected trademark template is selected according to the matching result; and if so, acquiring a corrected trademark template preset for the template search area so as to acquire a corrected trademark template corresponding to the trademark to be cut, and finally cutting the trademark to be cut by adopting the corrected trademark template. According to the method, the to-be-cut trademark and the corrected trademark template are mutually corresponding through the template search area, each trademark of the whole trademark is cut by the method, each trademark in the whole trademark can be cut by the corresponding corrected trademark template, the cutting quality of the trademarks is guaranteed, meanwhile, the whole trademark is cut continuously at one time, and the cutting efficiency of the trademarks is effectively improved.
Drawings
FIG. 1 is a diagram illustrating an exemplary embodiment of a cutting method for cutting a trademark;
FIG. 2 is a schematic flow chart of a label cutting method according to an embodiment;
FIG. 3 is a schematic illustration of an imposition of a trademark in one embodiment;
FIG. 4 is a schematic view showing the structure of a trademark cutting device in one embodiment;
FIG. 5 is a schematic view of a label cutting path in one embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It should be noted that the "plurality of columns" and "at least one" mentioned herein mean two or more.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The trademark cutting method provided by the application can be applied to the application environment shown in fig. 1. The server 102 is communicated with the trademark cutting device 104 through a network, the server 102 is connected with the display screen 106 through the network, a user can perform template correction, set search areas, customize trademark cutting paths and other operations on the display screen 106, the trademark cutting device 104 is provided with a cutting head for cutting trademarks, and the cutting head is provided with a camera device for extracting trademark local images. The server 102 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, there is a flow chart of a trademark cutting method, the trademark cutting method comprising the steps of:
step 202, determining a template searching area of the trademark to be cut in the full-page trademark.
Wherein, full-page trademark comprises a plurality of columns of trademarks, and each column of trademarks comprises at least one trademark.
The trademark to be cut can be a trademark to be cut in the full-page trademarks.
The template search area may be a local area in the whole trademark area, and the area is smaller than the whole trademark area. For example, the area where the mark such as a letter, a LOGO, a character, a pattern, etc. on the trademark is located may be set as the template search area; each quotient is labeled with its corresponding template search area.
For example, as shown in fig. 3, which is a schematic diagram of an entire trademark, the entire trademark includes 3 columns, each column includes 3 trademarks, and the first column, the second column and the third column have different trademark deformation degrees. For example, the degrees of deformation of the trademark S11, the trademark S21, and the trademark S31 may be different when the trademark S11, the trademark S12, and the trademark S13 are defined as a first column, the trademark S21, the trademark S22, and the trademark S23 are defined as a second column, and the trademark S31, the trademark S32, and the trademark S33 are defined as a third column. The template search area of trademark S11 may be set as S1120, similarly the template search area of trademark S21 may be set as S2120, and the template search area of trademark S31 may be set as S3120, and thus the set template search areas are different from each other in order to distinguish trademarks of different deformation degrees.
In the specific implementation, the cutting position of the trademark to be cut can be determined, the cutting position is provided with a corresponding template searching area, and the template searching area of the trademark to be cut can be determined according to the cutting position. For example, after cutting a trademark, the trademark cutting device moves to the cutting position of the next trademark, and according to the cutting position, the template search area corresponding to the position is called, so that the template search area of the trademark to be cut is determined.
And 204, extracting the image in the template searching area in the trademark to be cut as a local image of the trademark.
In the specific implementation, after the template search area of the trademark to be cut is determined, the image in the template search area on the trademark to be cut is collected through the camera equipment on the cutting head, and the image is used as a local image of the trademark to prepare for image matching in the next step.
For example, in S11, after determining that the template search area is S1120, the server 102 transmits an image capture instruction to the image capture apparatus, and the image capture apparatus receives the image capture instruction, captures the image in the template search area S1120, obtains an image in the template search area S1120, and records the image as a trademark partial image of the trademark S11 as S1120'.
And step 206, matching the trademark local image with a reference trademark local image corresponding to the template searching area of the trademark.
The reference trademark local image represents an image corresponding to a template search area set for a trademark.
In a specific implementation, after obtaining the trademark local image of the trademark to be cut, the server 102 matches the trademark local image with the image corresponding to the template search area set for the trademark to be cut, that is, the marks such as the patterns, the letters, the symbols and the like in the two images can be compared, whether the marks and the positions of the marks in the template search area are consistent or not is judged, and the trademark template is selected and corrected according to the judgment result.
For example, if the template search region provided for the trademark S11 is denoted as S1122, the image corresponding to the region S1122 is the reference trademark partial image and is denoted as S1122'. The matching of the trademark partial image with the reference trademark partial image corresponding to the template search area is to match the trademark partial image S1120 'of the trademark S11 with the reference trademark partial image S1122' and determine whether or not the pattern, the pattern shape, the pattern size, the pattern position, and the like in the two images match each other so as to select the corrected trademark template in accordance with the determination result.
Step 208, if the match is found, acquiring a corrected trademark template preset for the template search area; the corrected trademark template is obtained by correcting the original trademark template according to the deformation degree of the trademark to be cut.
Wherein the original trademark template may be a template for cutting an undeformed trademark.
The number of the corrected trademark templates can be multiple, and each trademark is marked with the corresponding trademark template.
Wherein, the deformation degree of each trademark may be the same, and the same modified trademark template may be used for trademarks with the same deformation degree.
In specific implementation, the server 102 matches a trademark local image extracted from a template search area corresponding to a position of a trademark to be cut with a reference trademark local image corresponding to the template search area, and when the two images are matched, executes a template calling operation to call a corrected trademark template preset for the template search area to serve as the corrected trademark template of the trademark to be cut.
For example, when the trademark partial image S1120 'of the trademark S11 is judged to match the pattern, the pattern shape, the pattern size, the pattern position, and the like in the reference trademark partial image S1122', the two images are matched, and the corrected trademark template preset for the template search area, that is, the corrected trademark template S112 is acquired.
In practice, the modified trademark template may be set in various ways. In one of the ways of setting the modified trademark template, the user may create a corresponding original trademark template for the entire plate of trademarks, and then modify the created original trademark template for the degree of deformation of each column of trademarks to obtain the modified trademark template.
The original trademark template may be modified in various ways depending on the degree of distortion of the trademark, for example, the original trademark template may be used first to cut the trademark to be cut, the cut trademark may be incomplete, the correction of the original trademark template is to be the curve which separates the template contour after the trademark cutting from the actual outer contour of the trademark, i.e. the convex curve is contracted, the curve with a closer distance, i.e. the concave curve is expanded to obtain a trademark template matched with the actual outer contour of the trademark, and finally the trademark template is expanded for a certain distance, the resulting trademark template is used as a modified trademark template with the sewing position of the reserved trademark, as shown in figure 3, the circular arc solid line of the trademark outer ring represents the actual outer contour of the trademark, and the circular arc dotted line represents the trademark contour obtained after expanding a certain distance.
And step 210, cutting the trademark to be cut by adopting the corrected trademark template.
In specific implementation, after obtaining the corrected trademark template of the trademark to be cut, the server 102 sends a cutting instruction to the trademark cutting device 104, and after receiving the cutting instruction, the trademark cutting device 104 cuts the trademark to be cut by using the obtained corrected trademark template.
For example, when the corrected trademark template S112 of the trademark S11 is obtained, the trademark cutting device 104 receives the cutting command, and cuts the trademark S11 using the corrected trademark template S112.
In the trademark cutting method, a template searching area of a trademark to be cut is determined in the full-page trademark, an image in the template searching area in the trademark to be cut is further extracted, the extracted image is matched with a benchmark trademark image corresponding to the template searching area, and a corrected trademark template is selected according to a matching result; and if so, acquiring a corrected trademark template preset for the template search area so as to acquire a corrected trademark template corresponding to the trademark to be cut, and finally cutting the trademark to be cut by adopting the corrected trademark template. According to the method, the to-be-cut trademark and the corrected trademark template are mutually corresponding through the template search area, each trademark of the whole trademark is cut by the method, each trademark in the whole trademark can be cut by the corresponding corrected trademark template, the cutting quality of the trademarks is guaranteed, meanwhile, the whole trademark is cut continuously at one time, and the cutting efficiency of the trademarks is effectively improved.
In one embodiment, step 202 includes: determining the cutting position of the trademark to be cut; and determining a template searching area of the trademark to be cut according to the cutting position.
For example, in fig. 3, the cutting position of trademark S11 is the first row and the first column, the template search area of the cutting position is S1120, the server 102 records the cutting position by a position coordinate (x1, y1), when the cutting head moves from the initial position to the cutting position of the trademark to be cut, the position coordinate (x1, y1) of trademark S11 can be determined according to the moving distance, i.e. the cutting position of trademark S11 can be determined, and the server 102 calls the corresponding template search area according to the cutting position, so that the template search area of the trademark to be cut can be determined in the full-page trademark.
Alternatively, when the cutting of the trademark cutting device 104 is completed to the position of the trademark S21 from the cut of the trademark S11, the position coordinates (x2, y1) of the trademark S21 can be determined from the distance moved by the cutting head, the cut position of the trademark S21 can be determined, and further the template search area S2120 of the trademark S21 can be determined from the cut position.
In the embodiment, the determination of the searching area of the template of the trademark to be cut can be realized by determining the cutting position of the trademark to be cut, and the traditional method for identifying and cutting the trademark to be cut by adopting similarity is separated from the traditional method for realizing the correspondence between the trademark to be cut and the template for correcting the trademark through the searching area of the template.
In an embodiment, before the step 304, the method further includes: and determining a trademark cutting path, and determining the cutting position of the trademark to be cut according to the trademark cutting path.
Wherein, the trademark cutting path refers to a trademark cutting sequence for cutting in the full-page trademark.
The trademark cutting path can be set by a user in a self-defined mode.
In the specific implementation, after the trademark cutting device 104 finishes cutting one to-be-cut trademark 1, the trademark cutting device 104 acquires the next trademark as the to-be-cut trademark 2 according to a set trademark cutting path, the cutting head of the trademark cutting device 104 moves to the cutting position of the to-be-cut trademark 2, the operations from step 202 to step 210 are continuously executed, that is, according to the cutting position of the to-be-cut trademark 2, the template search area 2 of the to-be-cut trademark 2 is determined, the image in the template search area 2 in the to-be-cut trademark 2 is extracted and used as the trademark local image 2, the trademark local image 2 is matched with the reference trademark local image corresponding to the template search area 2, if the trademark local image is matched, the corrected trademark template 2 preset for the template search area 2 is acquired, and the to-be-cut trademark 2 is cut by using the corrected trademark template 2.
For example, in fig. 5, a schematic diagram of a customized cutting path of a trademark is shown, where the cutting path of the trademark is: S11-S21-S31-S32-S22-S12-S13-S23-S33, the trademark cutting device 104 cuts one by one according to the trademark cutting path, and the operations from step 202 to step 210 are repeatedly executed, so that the cutting of the whole trademark is completed.
Further, after the whole trademark is cut according to the trademark cutting path, the trademark cutting path can be continuously used for cutting the next trademark without resetting a new trademark cutting path.
In one embodiment, the step of determining the cutting path of the trademark comprises: and determining the positioning point of the trademark, and sequentially connecting the positioning points to obtain the trademark cutting path.
The positioning point is a point carrying coordinate position information of a trademark.
In the specific implementation, a user clicks the positioning points in sequence, and the positioning points are connected according to the clicking sequence to obtain a continuous connecting route which is used as a trademark cutting route. Further, the full-page trademark is cut according to the trademark cutting path.
There are various connection methods of the anchor points, for example, the anchor points may be connected column by column, and the anchor point closest to the last anchor point in the previous column is used as the starting point of the next column, so as to obtain an S-shaped connection route, as shown in fig. 5.
In the embodiment, the positioning points are connected in sequence to realize the self-definition of the trademark cutting path, the method can be separated from the operation of cutting one row in the traditional cutting method and returning to the operation of cutting the next row at the starting point, the repeated moving distance of the cutting head is reduced, and the cutting time for cutting the whole trademark is saved.
In one embodiment, the step of determining the location point of the trademark includes: receiving a trigger operation of a user on a template searching area of a trademark; generating a positioning point of the trademark according to the triggering operation; the trademark has a corresponding template search area.
In the specific implementation, after a user corrects an original trademark template to obtain a corrected trademark template of each trademark, setting a template search area on the corrected trademark template, wherein the same corrected trademark template can be set with the same template search area, after the template search area of each trademark is obtained, the user can generate a positioning point by clicking the template search area, so that the positioning point of each trademark is obtained, and the positioning points are connected to obtain a trademark cutting path.
For example, regarding the trademark in fig. 3, the template search area of the trademark S11 is S1120, the user clicks the template search area S1120 on the display screen to send a trigger command, the server 102 receives the trigger command to generate the position coordinates (x1, y1) corresponding to the trademark S11, and the point including the position coordinate information may be used as the anchor point of the trademark S11.
In this embodiment, the server generates the positioning point of the trademark by receiving the trigger operation of the user to the template search area of the trademark, and the determination of the position coordinates corresponding to each trademark can be realized by the method.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, a schematic structural diagram of a trademark cutting device is provided, and the trademark cutting device specifically includes: a region determination module 402, an image extraction module 404, an image matching module 406, a template acquisition module 408, and a segmentation module 410, wherein:
the area determining module 402 is used for determining a template searching area of the trademark to be cut in the full-page trademark;
an image extraction module 404, configured to extract an image in the template search area in the trademark to be cut, as a trademark local image;
the image matching module 406 is configured to match the trademark local image with a reference trademark local image corresponding to the template search area;
the template obtaining module 408 is configured to obtain a modified trademark template preset for the template search area when matching; the corrected trademark template is obtained by correcting the original trademark template according to the deformation degree of the trademark to be cut;
and the cutting module 410 is used for cutting the trademark to be cut by adopting the corrected trademark template.
In an embodiment, the area determining module 402 is specifically configured to: determining the cutting position of the trademark to be cut; and determining a template searching area of the trademark to be cut according to the cutting position.
In one embodiment, the above trademark cutting device further comprises: and the path determining module is used for determining a trademark cutting path and determining the cutting position of the trademark to be cut according to the trademark cutting path.
In one embodiment, the path determining module is specifically configured to: and determining the positioning point of the trademark, and sequentially connecting the positioning points to obtain the trademark cutting path.
In one embodiment, the path determining module is specifically configured to: receiving a trigger operation of a user on a template searching area of a trademark; generating a positioning point of the trademark according to the triggering operation; the trademark has a corresponding template search area.
For specific limitations of the trademark cutting device, reference may be made to the above limitations of the trademark cutting method, which are not described in detail herein. The modules in the trademark cutting device can be completely or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing trademark cutting data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a trademark cutting method.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
determining a template searching area of a trademark to be cut in the full-page trademark;
extracting an image in the template searching area in the trademark to be cut as a local image of the trademark;
matching the trademark local image with a reference trademark local image corresponding to the template searching area;
if so, acquiring a corrected trademark template preset for the template search area; the corrected trademark template is obtained by correcting the original trademark template according to the deformation degree of the trademark to be cut;
and cutting the trademark to be cut by adopting the corrected trademark template.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and determining the cutting position of the trademark to be cut, and determining the template searching area of the trademark to be cut according to the cutting position.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and determining a trademark cutting path, and determining the cutting position of the trademark to be cut according to the trademark cutting path.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and determining the positioning points of the trademark, and sequentially connecting the positioning points to obtain a trademark cutting path.
In one embodiment, the processor, when executing the computer program, further performs the steps of: receiving a trigger operation of a user on a template searching area of a trademark; generating a positioning point of the trademark according to the triggering operation; the trademark has a corresponding template search area.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
determining a template searching area of a trademark to be cut in the full-page trademark;
extracting an image in the template searching area in the trademark to be cut as a local image of the trademark;
matching the trademark local image with a reference trademark local image corresponding to the template searching area;
if so, acquiring a corrected trademark template preset for the template search area; the corrected trademark template is obtained by correcting the original trademark template according to the deformation degree of the trademark to be cut;
and cutting the trademark to be cut by adopting the corrected trademark template.
In one embodiment, the computer program when executed by the processor further performs the steps of: and determining the cutting position of the trademark to be cut, and determining the template searching area of the trademark to be cut according to the cutting position.
In one embodiment, the computer program when executed by the processor further performs the steps of: and determining a trademark cutting path, and determining the cutting position of the trademark to be cut according to the trademark cutting path.
In one embodiment, the computer program when executed by the processor further performs the steps of: and determining the positioning points of the trademark, and sequentially connecting the positioning points to obtain a trademark cutting path.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving a trigger operation of a user on a template searching area of a trademark; generating a positioning point of the trademark according to the triggering operation; the trademark has a corresponding template search area.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of cutting a trademark, the method comprising:
determining a template searching area of a trademark to be cut in the full-page trademark;
extracting an image in the template searching area in the trademark to be cut as a local trademark image;
matching the trademark local image with a reference trademark local image corresponding to the template searching area;
if so, acquiring a corrected trademark template preset for the template search area; the corrected trademark template is obtained by correcting the original trademark template according to the deformation degree of the trademark to be cut;
and cutting the trademark to be cut by adopting the corrected trademark template.
2. The method according to claim 1, wherein the determining the template search area of the trademark to be cut in the full-page trademark comprises the following steps:
determining the cutting position of the trademark to be cut;
and determining a template searching area of the trademark to be cut according to the cutting position.
3. The method according to claim 2, wherein before determining the cutting position of the trademark to be cut, the method further comprises:
determining a trademark cutting path, and determining the cutting position of the trademark to be cut according to the trademark cutting path.
4. The method of claim 3, wherein the step of determining a brand cutting path comprises:
and determining the positioning points of the trademark, and sequentially connecting the positioning points to obtain the trademark cutting path.
5. The method of claim 4, wherein the determining the location point of the trademark comprises:
receiving a trigger operation of a user on the template searching area of the trademark;
generating a positioning point of the trademark according to the triggering operation;
the trademark has a corresponding template search area.
6. A trademark cutting device, characterized in that the device comprises:
the area determining module is used for determining a template searching area of the trademark to be cut in the full-page trademark;
the image extraction module is used for extracting an image in the template search area in the trademark to be cut as a trademark local image;
the image matching module is used for matching the trademark local image with a benchmark trademark local image corresponding to the template searching area;
the template acquisition module is used for acquiring a corrected trademark template preset for the template search area when the matched regions are matched; the corrected trademark template is obtained by correcting the original trademark template according to the deformation degree of the trademark to be cut;
and the cutting module is used for cutting the trademark to be cut by adopting the trademark correcting template.
7. The apparatus of claim 6, wherein the region determining module comprises:
the position determining submodule is used for determining the cutting position of the trademark to be cut;
and the area determining submodule is used for determining a template searching area of the trademark to be cut according to the cutting position.
8. The apparatus of claim 6, further comprising:
and the path determining module is used for determining a trademark cutting path and determining the cutting position of the trademark to be cut according to the trademark cutting path.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 5 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN201910924137.9A 2019-09-27 2019-09-27 Trademark cutting method and device, computer equipment and storage medium Active CN110648339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910924137.9A CN110648339B (en) 2019-09-27 2019-09-27 Trademark cutting method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910924137.9A CN110648339B (en) 2019-09-27 2019-09-27 Trademark cutting method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110648339A true CN110648339A (en) 2020-01-03
CN110648339B CN110648339B (en) 2022-08-19

Family

ID=68992842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910924137.9A Active CN110648339B (en) 2019-09-27 2019-09-27 Trademark cutting method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110648339B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115108117A (en) * 2022-05-26 2022-09-27 盈合(深圳)机器人与自动化科技有限公司 Cutting method, system, terminal and computer storage medium
CN117291987A (en) * 2023-11-27 2023-12-26 武汉华工赛百数据系统有限公司 Method, device, computer equipment and storage medium for identifying cutting position of excess material

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2734440Y (en) * 2004-07-06 2005-10-19 东莞市粤铭激光技术有限公司 Full-automatic camera shooting brand cutting machine
CN201596852U (en) * 2010-01-19 2010-10-06 广东大族粤铭激光科技股份有限公司 Master-slave mode camera allocated intelligent laser cutting system
CN102229025A (en) * 2011-06-02 2011-11-02 广东大族粤铭激光科技股份有限公司 Machine-vision-based mixed graph cutting process
CN103544691A (en) * 2012-07-19 2014-01-29 苏州比特速浪电子科技有限公司 Image processing method and unit
CN203768815U (en) * 2014-03-23 2014-08-13 云南云岭高速公路工程咨询有限公司 Complete cover beam steel form of bridge
CN104923923A (en) * 2015-03-19 2015-09-23 上海咔咻智能科技有限公司 Laser positioning cutting system based on large-format visual guidance and distortion rectification
CN106203342A (en) * 2016-07-01 2016-12-07 广东技术师范学院 Target identification method based on multi-angle local feature coupling
CN106447701A (en) * 2015-08-05 2017-02-22 佳能株式会社 Methods and devices for image similarity determining, object detecting and object tracking
CN108845998A (en) * 2018-04-03 2018-11-20 南昌奇眸科技有限公司 A kind of trademark image retrieval matching process
CN109785283A (en) * 2018-11-27 2019-05-21 佛山市奥策科技有限公司 A kind of textural characteristics matching process and device for fabric segmentation

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2734440Y (en) * 2004-07-06 2005-10-19 东莞市粤铭激光技术有限公司 Full-automatic camera shooting brand cutting machine
CN201596852U (en) * 2010-01-19 2010-10-06 广东大族粤铭激光科技股份有限公司 Master-slave mode camera allocated intelligent laser cutting system
CN102229025A (en) * 2011-06-02 2011-11-02 广东大族粤铭激光科技股份有限公司 Machine-vision-based mixed graph cutting process
CN103544691A (en) * 2012-07-19 2014-01-29 苏州比特速浪电子科技有限公司 Image processing method and unit
CN203768815U (en) * 2014-03-23 2014-08-13 云南云岭高速公路工程咨询有限公司 Complete cover beam steel form of bridge
CN104923923A (en) * 2015-03-19 2015-09-23 上海咔咻智能科技有限公司 Laser positioning cutting system based on large-format visual guidance and distortion rectification
CN106447701A (en) * 2015-08-05 2017-02-22 佳能株式会社 Methods and devices for image similarity determining, object detecting and object tracking
CN106203342A (en) * 2016-07-01 2016-12-07 广东技术师范学院 Target identification method based on multi-angle local feature coupling
CN108845998A (en) * 2018-04-03 2018-11-20 南昌奇眸科技有限公司 A kind of trademark image retrieval matching process
CN109785283A (en) * 2018-11-27 2019-05-21 佛山市奥策科技有限公司 A kind of textural characteristics matching process and device for fabric segmentation

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115108117A (en) * 2022-05-26 2022-09-27 盈合(深圳)机器人与自动化科技有限公司 Cutting method, system, terminal and computer storage medium
CN117291987A (en) * 2023-11-27 2023-12-26 武汉华工赛百数据系统有限公司 Method, device, computer equipment and storage medium for identifying cutting position of excess material
CN117291987B (en) * 2023-11-27 2024-03-01 武汉华工赛百数据系统有限公司 Method, device, computer equipment and storage medium for identifying cutting position of excess material

Also Published As

Publication number Publication date
CN110648339B (en) 2022-08-19

Similar Documents

Publication Publication Date Title
CN110648339B (en) Trademark cutting method and device, computer equipment and storage medium
US11200404B2 (en) Feature point positioning method, storage medium, and computer device
US20170308739A1 (en) Human face recognition method and recognition system
CN110796082B (en) Nameplate text detection method and device, computer equipment and storage medium
CN111898411B (en) Text image labeling system, method, computer device and storage medium
CN110619330A (en) Recognition model training method and device, computer equipment and recognition method
CN110213357B (en) Service data rollback method, device, computer equipment and storage medium
CN111242126A (en) Irregular text correction method and device, computer equipment and storage medium
CN108304243B (en) Interface generation method and device, computer equipment and storage medium
KR20110076750A (en) Word recognition method and recording medium of program recognition word and information process device
US20190385318A1 (en) Superimposing position correction device and superimposing position correction method
CN112766275B (en) Seal character recognition method and device, computer equipment and storage medium
US20180107877A1 (en) Image processing apparatus, image processing method, and image processing system
CN108564045B (en) Augmented reality data processing method and device, storage medium and computer equipment
CN111667479A (en) Pattern verification method and device for target image, electronic device and storage medium
US20240062545A1 (en) Information processing device, information processing method, and recording medium
CN108897772B (en) Data source supplementing method and device, computer equipment and storage medium
JP2021044803A5 (en)
CN113298069A (en) Steel seal character recognition method and device, computer equipment and storage medium
CN112132011A (en) Face recognition method, device, equipment and storage medium
CN111860372A (en) Artificial intelligence-based expression package generation method, device, equipment and storage medium
JP2021108022A5 (en)
CN107329943B (en) Intelligent graph adding method, storage medium and application server
CN110781739B (en) Method, device, computer equipment and storage medium for extracting pedestrian characteristics
CN109857998A (en) A kind of intelligence generates the method and device of EXCEL table

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
TR01 Transfer of patent right

Effective date of registration: 20230208

Address after: No. 38, Mingli Road, Hecheng Street, Gaoming District, Foshan City, Guangdong Province, 528500 (residence application)

Patentee after: Guangdong Kangpai Huanchuang Technology Co.,Ltd.

Address before: 528500 Guangdong city of Foshan province river export processing zone

Patentee before: Guangdong Esquel Textile Co.,Ltd.

TR01 Transfer of patent right