Totem identification method and system, electronic equipment, storage medium and program product
By training an image recognition model to utilize the ice-crack characteristics of batik, the model first determines whether an image belongs to a batik product before proceeding with further recognition. This solves the problems of resource waste and low efficiency in batik totem recognition and achieves highly efficient recognition results.
Patent Information
- Application Number
- CN202511036345.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-26
- Publication Date
- 2025-11-07
AI Technical Summary
Existing technologies suffer from resource waste and low recognition efficiency when identifying batik patterns, especially in image recognition outside of batik.
By training an image recognition model and utilizing the unique ice-crack characteristics of batik, the model first determines whether an image has ice-crack patterns to identify whether it belongs to a batik product, and then performs further identification, establishing a defense mechanism to save computing resources.
It achieves vertical and targeted recognition of batik totem patterns, saves computing resources, and improves recognition efficiency.
Smart Images

Figure CN120912911A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of image recognition, in particular to a totem recognition method and system, electronic equipment, storage medium and program product. BACKGROUND
[0002] Wax printing, its process is to draw flowers on cloth with wax knife dipped in molten wax, and then immerse in blue and indigo, and then dye off the wax, the cloth surface presents a variety of patterns of blue and white or white and blue. As a way of life "art", Guizhou folk wax printing is an important part of Guizhou folk cultural activities, whether it is the decoration of the house in the festival or the life ceremony of marriage and funeral, whether it is the folk religious belief of ancestor worship and god worship or the clothing and embroidery patterns, all kinds of wax printing technology weaving and dyeing activities are closely related to the specific cultural background and living environment of Guizhou.
[0003] As a cultural heritage, wax printing also needs to establish a database for protection and provide image recognition related interactive design for popular science education and related product identification and differentiation business scenarios. In these business scenarios, if the existing technology based on mass field image recognition is used, it will cause waste of system computing resources, and is not conducive to targeted and efficient identification. There is currently a lack of simple and effective solutions to this problem. SUMMARY
[0004] The purpose of the present application is to provide a totem recognition method, system, electronic equipment, storage medium and program product, which utilizes wax printing.
[0005] To achieve the above-mentioned purpose, the present application provides a totem recognition method, comprising the following steps: training a first image recognition model using a plurality of totem wax printing product images with ice patterns, so that the first image recognition model can recognize the ice patterns in the totem wax printing product; training a second image recognition model using a plurality of totem wax printing product images with ice patterns, so that the second image recognition model can recognize the totem wax printing product; obtaining an identified image, calling the trained first image recognition model to identify the identified image; if the first image recognition model can identify the ice patterns in the totem wax printing product in the identified image, calling the trained second image recognition model to continue identifying the identified image, otherwise stopping identifying.
[0006] Optionally, the second image recognition model is trained using a plurality of totem wax printing product images with ice patterns, so that the second image recognition model can recognize the totem wax printing product, specifically including: training the second image recognition model so that the second image recognition model can recognize the totem category of the totem wax printing product.
[0007] Optionally, the calling the second image recognition model to continue to recognize the recognized image specifically comprises: calling the second image recognition model to continue to recognize the totem class of the recognized image.
[0008] Optionally, the method further comprises: outputting introduction information corresponding to the totem class of the recognized image.
[0009] Optionally, the method further comprises: when a stop-recognizing condition occurs, outputting prompt information.
[0010] Optionally, the method further comprises: when a stop-recognizing condition occurs, calling the second image recognition model to continue to recognize the recognized image according to a received instruction.
[0011] The application further provides a totem recognition system applied to any of the totem recognition methods, and the totem recognition system comprises a training module configured to train the first image recognition model and / or the second image recognition model, an acquisition module configured to acquire the recognized image, and a judgment module configured to judge whether the first image recognition model can recognize ice lines in totem batik products in the recognized image.
[0012] The application further provides an electronic device comprising a memory storing a computer program, a processor in communication connection with the memory and configured to execute the computer program to implement any of the totem recognition methods, and a display in communication connection with the processor and the memory and configured to display a GUI interaction interface related to the totem recognition method.
[0013] The application further provides a storage medium storing a computer program, and the computer program is executed by a processor to implement any of the totem recognition methods.
[0014] The application further provides a computer program product comprising a computer program, and the computer program is executed by a processor to implement any of the totem recognition methods.
[0015] The application has the following beneficial effects:
[0016] The application provides a totem identification method, comprising the following steps: training a first image identification model by using a plurality of images of totem batik products with ice patterns, so that the first image identification model can identify the ice patterns in the totem batik products; training a second image identification model by using a plurality of images of totem batik products with ice patterns, so that the second image identification model can identify the totem batik products; acquiring an identified image, calling the trained first image identification model to identify the identified image; if the first image identification model can identify the ice patterns in the totem batik products in the identified image, calling the trained second image identification model to continue identifying the identified image, otherwise stopping the identification. In the prior art, the target is generally directly trained, and direct identification is performed based on the training when the identified image is acquired. This method can be used on a large scale in some commonly used fields. However, since the batik field is relatively vertical, if the conventional identification method in the prior art is still used in the corresponding identification platform, great resource waste will be caused if the identification platform is called by others to identify and distinguish images in other fields. Therefore, the application establishes a defense mechanism by using the ice patterns unique to the batik process. Whether the identified image belongs to the totem batik product is determined by whether the identified image has ice patterns, and whether further identification is performed is determined based on this. In this way, the verticality and pertinence of the identification scene are realized, the computing resources are saved, and the identification efficiency is improved.
[0017] The application further provides a totem identification system. Since the totem identification system and the totem identification method belong to the same inventive concept, the totem identification system can realize the verticality and pertinence of the identification scene, save computing resources, and improve the identification efficiency.
[0018] The application further provides an electronic device. Since the electronic device and the totem identification method belong to the same inventive concept, the electronic device can realize the verticality and pertinence of the identification scene, save computing resources, and improve the identification efficiency.
[0019] The application further provides a storage medium. Since the storage medium and the totem identification method belong to the same inventive concept, the storage medium can realize the verticality and pertinence of the identification scene, save computing resources, and improve the identification efficiency.
[0020] The application further provides a computer program product. Since the computer program product and the totem identification method belong to the same inventive concept, the computer program product can realize the verticality and pertinence of the identification scene, save computing resources, and improve the identification efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0021] Figure 1 A flowchart of a totem identification method provided by an embodiment of the application is shown.
[0022] Figure 2 A block structure schematic diagram of an electronic device provided by an embodiment of the present application is shown in FIG. 1.
[0023] In the drawings, reference numerals:
[0024] 101 - processor; 102 - communication interface; 103 - memory; 104 - communication bus; 105 - display. DETAILED DESCRIPTION
[0025] In order to make the objectives, advantages and features of the present application clearer, the following further describes the present application in detail with reference to the accompanying drawings and specific embodiments. It should be noted that the drawings are all very simplified and not drawn to scale, and are only used to facilitate and clarify the purpose of assisting the description of the embodiments of the present application. In addition, the structures shown in the drawings are often part of the actual structures. In particular, the emphasis shown in each drawing is different, and sometimes different scales are used.
[0026] It should be understood that when an element or layer is referred to as "on" or "connected to" other elements or layers, it may be directly on or connected to other elements or layers, or there may be intervening elements or layers. Conversely, when an element is referred to as "directly on" or "directly connected to" other elements or layers, there are no intervening elements or layers. Although the terms first, second, third, etc., may be used to describe various elements, components, areas, layers, and / or portions, these elements, components, areas, layers, and / or portions should not be limited by these terms. These terms are only used to distinguish one element, component, area, layer, or portion from another element, component, area, layer, or portion. Therefore, without departing from the teachings of this invention, the first element, component, area, layer, or portion discussed below may be referred to as a second element, component, area, layer, or portion. Spatial relation terms such as "below," "under," "below," "above," "on top," "above," etc., may be used herein for convenience of description to describe the relationship between one element or feature shown in the figures and other elements or features. It should be understood that, in addition to the orientations shown in the figures, spatial relational terms are intended to also include different orientations of the devices in use and operation. For example, if the devices in the figures are flipped, then elements or features described as “below,” “under,” or “below” will be oriented “on” other elements or features. Devices may be oriented additionally (rotated 90 degrees or otherwise) and the spatial descriptive terms used herein will be interpreted accordingly. The terminology used herein is intended only to describe particular embodiments and is not intended to limit the invention. When used herein, the singular forms “a,” “an,” and “the” are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “comprising” is used to identify the presence of features, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or groups. When used herein, the terms “and / or” include any and all combinations of the associated listed items.
[0027] The purpose of this invention is to provide a totem recognition method, system, electronic device, storage medium, and program product that utilizes the unique ice-pattern characteristics of batik to achieve verticality and specificity in the recognition scene, save computing resources, and improve recognition efficiency.
[0028] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating a totem recognition method provided in an embodiment of the present invention. Figure 1To achieve the above object, the application provides a totem identification method, which comprises the following steps: training a first image identification model by using a plurality of images of totem batik products with ice lines, so that the first image identification model can identify the ice lines in the totem batik products; training a second image identification model by using a plurality of images of totem batik products with ice lines, so that the second image identification model can identify the totem batik products; obtaining an identified image, and calling the trained first image identification model to identify the identified image; if the first image identification model can identify the ice lines in the totem batik products in the identified image, calling the trained second image identification model to continue identifying the identified image, otherwise stopping the identification.
[0029] In the prior art, the target is generally directly trained, and direct identification is performed based on the training when the identified image is obtained. This method can be used on a large scale in some commonly used fields. However, since the batik field is relatively vertical, if the conventional identification method in the prior art is still used in the corresponding identification platform, great resource waste will be caused if the identification platform is called by others to identify and distinguish images in other fields. Based on this, the application establishes a defense mechanism by using the ice lines specific to the batik process. Whether the identified image belongs to the totem batik product is determined by whether the identified image has ice lines, and whether further identification is performed is determined based on this. In this way, the verticality and pertinence of the identification scene are realized, the computing resources are saved, and the identification efficiency is improved.
[0030] It should be noted that in a more specific business scenario, the user needs to identify the totem category in the batik product. Based on this, the application further provides the following technical solution: the second image identification model is trained by using a plurality of images of totem batik products with ice lines, so that the second image identification model can identify the totem batik products, and specifically, the second image identification model is trained so that the second image identification model can identify the totem category of the totem batik product. On this basis, further, the second image identification model is called to continue identifying the identified image, and specifically, the second image identification model is called to continue identifying the totem category of the identified image. In this way, the application further has the function of identifying the totem category.
[0031] In some specific business scenarios, the application further provides a corresponding popularization introduction function, and based on this, the application further comprises: outputting introduction information corresponding to the totem category of the identified image.
[0032] It should also be noted that it should be considered that some wax printing products may not be able to identify ice veins, but are indeed scenes of wax printing products, such as some effect drawings, pictures with incomplete and unclear ice veins, or drawn wax printing images that are drawn without real wax printing and cannot show ice veins. Based on this, the present application also includes: when the stop identifying condition occurs, output prompt information. This scheme is essentially a fault-tolerant correction mechanism. When the identified image is indeed a wax printing image, but the ice veins are not identified, the user is allowed to manually force identification, and based on this, it also includes: when the stop identifying condition occurs, according to the received instruction, the second image recognition model is called to continue identifying the identified image. In order to prevent malicious use of pictures in other fields to occupy identification resources, a permission mechanism can be set at this link, for example, according to the received instruction, it must come from an administrator permission instruction, to maintain the goal of establishing a defense mechanism of the present application.
[0033] The present application also provides a totem identification system applied to any of the totem identification methods described above, characterized in that it comprises: a training module for training the first image recognition model and / or the second image recognition model; an acquisition module for acquiring the identified image; and a judgment module for judging whether the first image recognition model can identify ice veins in totem wax printing products in the identified image. Since the totem identification system and the totem identification method belong to the same inventive concept, the totem identification system can achieve verticality and pertinence of the identification scene, save computing resources, and improve identification efficiency. Since the totem identification system provided by the present application belongs to the same inventive concept as the totem identification method described above, the totem identification system provided by the present application has all the advantages of the totem identification method described above, so the beneficial effects of the totem identification system provided by the present application will not be described one by one.
[0034] Please refer to Figure 2 , Figure 2 The block structure schematic diagram of the electronic device provided by an embodiment of the present application is shown in FIG. 1. As shown in FIG. 1, the present application also provides an electronic device, which comprises: Figure 2
[0035] a memory 103 storing a computer program;
[0036] a processor 101 connected in communication with the memory, which invokes the computer program to execute any of the totem identification methods described above;
[0037] a display 105 connected in communication with the processor and the memory, for displaying a GUI interaction interface related to the totem identification method.
[0038] Since the electronic device and the totem identification method belong to the same inventive concept, the electronic device can realize the verticality and pertinence of the identification scene, save computing resources, and improve the identification efficiency.
[0039] Since the electronic device and the totem identification method belong to the same inventive concept, the electronic device has all the advantages of the totem identification method, and thus the beneficial effects of the electronic device are not repeated here.
[0040] As shown in Figure 2 The electronic device further includes a communication interface 102 and a communication bus 104, wherein the processor 101, the communication interface 102, and the memory 103 complete mutual communication through the communication bus 104. The communication bus 104 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus 104 can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, only one thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface 102 is used for communication between the electronic device and other devices.
[0041] The processor 101 in the present application can be a Central Processing Unit (CPU), and can also be other general-purpose processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASIC), Field-Programmable Gate Arrays (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc. The processor 101 is the control center of the electronic device, and connects each part of the electronic device through various interfaces and lines.
[0042] The memory 103 can be used to store the computer program, and the processor 101 realizes various functions of the electronic device by running or executing the computer program stored in the memory 103 and calling the data stored in the memory 103.
[0043] The memory 103 can include non-volatile and / or volatile memory. 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. As an illustration and not a limitation, RAM is available in many forms that include static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), Rambus DRAM (RDRAM), direct Rambus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM) etc.
[0044] The application further provides a storage medium, which stores a computer program, and the computer program is executed by a processor to implement the totem identification method.
[0045] Since the storage medium and the totem identification method belong to the same inventive concept, the storage medium can identify the verticality and pertinence of the scene, save computing resources, and improve identification efficiency.
[0046] Since the storage medium provided by the application and the totem identification method described above belong to the same inventive concept, the storage medium provided by the application has all the advantages of the totem identification method described above, and therefore the beneficial effects of the storage medium provided by the application will not be described one by one.
[0047] The storage medium of the embodiment of the application can adopt any combination of one or more computer readable media. The readable medium can be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or apparatus, or any combination of the above. More specific examples (non-exhaustive list) of the computer readable storage medium include: an electrical connection having one or more wires, a portable computer hard disk, a hard disk, a random access memory (RAM), a read only memory (ROM), an erasable programmable read only memory (EPROM or flash memory), an optical fiber, a portable compact disk read only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this paper, the computer readable storage medium can be any tangible medium containing or storing a program that can be used by or combined with an instruction execution system, device or apparatus.
[0048] The computer readable program code can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the code which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0049] The application further provides a computer program product comprising a computer program which, when executed by a processor, implements the totem identification method according to any one of the preceding embodiments.
[0050] Since the computer program product and the totem identification method belong to the same inventive concept, the computer program product can identify the verticality and pertinence of the scene, save computing resources, and improve the identification efficiency.
[0051] Since the computer program product and the totem identification method belong to the same inventive concept, the computer program product has all the advantages of the totem identification method described above, and therefore the beneficial effects of the computer program product provided by the application will not be described one by one.
[0052] If the application is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0053] It should be further understood that, although the present application has been described as above with reference to the preferred embodiments, the above embodiments are not intended to limit the present application. For any person skilled in the art, many possible variations and modifications of the technical solutions disclosed above, or equivalent embodiments of equivalent changes, can be made without departing from the scope of the technical solutions of the present application. Therefore, any simple modification, equivalent change and modification of the above embodiments made in accordance with the technical essence of the present application, without departing from the content of the technical solutions of the present application, shall still fall within the scope of protection of the technical solutions of the present application.
[0054] It should also be understood that the terms "first", "second", "third" and the like, used in the description and in the claims, are used to describe various elements, steps, steps, etc. and do not imply a logical or chronological order of one to the other, unless otherwise specified or indicated by the context.
[0055] In addition, it is to be appreciated that the terms "comprise", "comprising", "include", "including", "contain", "containing", "have", "having", "carry", "carrying", "comprised of", "comprising of", "including of", "consist of", "consisting of", "consists of", "have of", "having of", "carry of", "carrying of", "consist of", "consisting of", "consists of", "have of", "having of", "carry of", "carrying of", "consist of", "consisting of", "consists of", "have of", "having of", "carry of", "carrying of", "consist of", "consisting of", "consists of", "have of", "having of", "carry of", "carrying of", "consist of", "consisting of", "consists of", "have of", "having of", "carry of", "carrying of", "consist of", "consisting of", "consists of", "have of", "having of", "carry of", "carrying of", "consist of", "consisting of", "consists of", "have of", "having of", "carry of", "carrying of", "consist of", "consisting of", "consists of", "have of", "having of", "carry of", "carrying of", "consist of", "consisting of", "consists of", "have of", "having of", "carry of", "carrying of", "consist of", "consisting of", "consists of", "have of", "having of", "carry of", "carrying of", "consist of", "consisting of", "consists of", "have of", "having of", "carry of", "carrying of", "consist of", "consisting of", "consists of", "have of", "having of", "carry of", "carrying of", "consist of", "consisting of", "consists of", "have of", "having of", "carry of", "carrying of", "consist of", "consisting of", "consists of", "have of", "having of", "carry of
Claims
1. A totem identification method, characterized by, The method comprises the following steps: training a first image recognition model by using a plurality of images of totem wax-dyed products with ice patterns, so that the first image recognition model can recognize the ice patterns in the totem wax-dyed products; training a second image recognition model by using a plurality of images of totem wax-dyed products with ice patterns, so that the second image recognition model can recognize the totem wax-dyed products; obtaining an identified image, and calling the trained first image recognition model to recognize the identified image; if the first image recognition model can recognize the ice patterns in the totem wax-dyed products in the identified image, calling the trained second image recognition model to continue recognizing the identified image, otherwise stopping the recognition.
2. The totem recognition method of claim 1, wherein, The step of training the second image recognition model by using a plurality of images of totem wax-dyed products with ice patterns, so that the second image recognition model can recognize the totem wax-dyed products, specifically comprises: training the second image recognition model so that the second image recognition model can recognize the totem category of the totem wax-dyed products.
3. The totem recognition method of claim 2, wherein, The step of calling the second image recognition model to continue recognizing the identified image, specifically comprises: calling the second image recognition model to continue recognizing the totem category of the identified image.
4. The totem recognition method of claim 3, wherein, Further comprising: outputting introduction information corresponding to the totem category of the identified image.
5. The totem recognition method of claim 1, wherein, Further comprising: when the stopping recognition condition occurs, outputting prompt information.
6. The totem recognition method of claim 1, wherein, Further comprising: when the stopping recognition condition occurs, calling the second image recognition model to continue recognizing the identified image according to the received instruction.
7. A totem identification system applied to the totem identification method according to any one of claims 1 to 6, characterized in that, comprise: a training module configured to train the first image recognition model and / or the second image recognition model; an acquisition module configured to acquire the identified image; a judgment module configured to judge whether the first image recognition model can recognize the ice patterns in the totem wax-dyed products in the identified image.
8. An electronic device, comprising: comprise: a memory configured to store a computer program; a processor configured to communicate with the memory, and execute the computer program to implement the totem recognition method according to any one of claims 1-6; a display configured to communicate with the processor and the memory, and display a GUI interaction interface related to the totem recognition method.
9. A storage medium storing a computer program, characterized by The computer program is executed by the processor to implement the totem recognition method according to any one of claims 1-6.
10. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the totem recognition method according to any one of claims 1-6.