Online impression method, system and equipment and storage medium
Through the online impression method and system, the complex and inaccurate impression process in the prior art is solved, and a user-friendly online impression solution is realized.
Patent Information
- Application Number
- CN202411915240.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-05-13
AI Technical Summary
The lack of solutions to provide online impressions using standardized platforms in the prior art, resulting in complex and inaccurate impression processes.
Provide an online impression method and system, by obtaining user online impression requests, selecting and customizing seal templates, conducting color checks and seal position adjustments, and finally generating and uploading impression results.
Simplifies impression operations, supports custom settings, and improves the accuracy and user experience of the impression process.
Smart Images

Figure CN119988762A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mold cutting and impression technology, and in particular to an online impression method, system, equipment and storage medium. Background Art
[0002] Moulding and stamping refers to the process of obtaining a seal through digital means on the Internet or a network platform.
[0003] In the related technology, when making an impression, the enterprise usually needs to download the impression collection form first, and then complete the impression work by manually operating the specific impression tool; when setting the impression parameters, the template cannot be shared, which increases the complexity of the operation; since the impression process is not accurate enough, errors are prone to occur during the final use.
[0004] Based on the above analysis of the development status of this technical field, the existing technology lacks a solution for providing online impressions using a standardized platform. Summary of the invention
[0005] The object of the present invention is to provide an online impression method, system, device and storage medium, aiming to solve the above-mentioned problems in the prior art.
[0006] According to a first aspect of an embodiment of the present invention, there is provided an online impression method, comprising:
[0007] Obtaining a user's online impression request and obtaining an impression template pre-stored in a database;
[0008] Obtain the impression collection form uploaded by the user, and display the impression collection form in the client;
[0009] Select a specific stamp template from the stamp template, customize the specific stamp template to get the final stamp, and display the final stamp in the preview area of the client;
[0010] Obtain the impression area marked by the user in the impression collection form, perform color screening on the impression area, and after the screening passes, print the final seal in the impression area to obtain the impression result;
[0011] Crop and adjust the impression results before uploading.
[0012] According to a second aspect of an embodiment of the present invention, there is provided an online impression system, comprising:
[0013] An online request module is used to obtain a user's online impression request and obtain an impression template pre-stored in a database;
[0014] Initialize the configuration module, used to obtain the impression collection form uploaded by the user, and display the impression collection form in the client;
[0015] A preview module is used to select a specific seal template from the seal template, customize the specific seal template to obtain the final seal, and display the final seal in the preview area of the client;
[0016] The impression module is used to obtain the impression area marked by the user in the impression collection form, perform color screening on the impression area, and after the screening passes, print the final seal in the impression area to obtain the impression result;
[0017] The trimming module is used to trim and adjust the impression results before uploading.
[0018] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the online impression method provided in the first aspect of the present disclosure are implemented.
[0019] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, on which a program for implementing information transmission is stored, and when the program is executed by a processor, the steps of the online impression method provided in the first aspect of the present disclosure are implemented.
[0020] The technical solution provided by the embodiment of the present invention includes the following beneficial effects: during the impression process, the user can select an existing template to simplify the operation, and in addition, it supports custom settings, and the user can flexibly adjust according to actual needs.
[0021] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate one or more embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0023] Figure 1 is a flow chart of an online impression method according to an embodiment of the present invention;
[0024] Figure 2 is a schematic diagram of a process architecture of an embodiment of the present invention;
[0025] Figure 3 is a schematic diagram of an online impression system according to an embodiment of the present invention;
[0026] Figure 4 is a schematic diagram of stamp area marking and previewing according to an embodiment of the present invention;
[0027] Figure 5 is a schematic diagram of an impression result of an embodiment of the present invention;
[0028] Figure 6 is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will be combined with the drawings in one or more embodiments of this specification to clearly and completely describe the technical solutions in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.
[0030] Method Embodiment
[0031] According to an embodiment of the present invention, an online impression method is provided. Figure 1 : is a flow chart of an online impression method according to an embodiment of the present invention. Figure 1 As shown, the online impression method according to an embodiment of the present invention specifically includes:
[0032] In step S110, obtaining the user's online impression request and obtaining the impression template pre-stored in the database specifically includes:
[0033] When a user initiates an online impression request, the impression system obtains the impression template from the database of the backend server. The impression template refers to the standard pattern or model used to generate a seal, which usually includes information such as shape, text, pattern, and color.
[0034] In step S120, the impression collection form uploaded by the user is obtained and displayed on the client, which specifically includes:
[0035] When the user selects the impression collection form, the impression system provides the impression collection form from the background server. The user can transmit the impression collection form to the background in real time, or directly select an existing impression collection form from the background server. The impression collection form is a form or file for recording or saving seals;
[0036] In step S130, a specific seal template is selected from the seal templates, the specific seal template is customized to obtain a final seal, and the final seal is displayed in the preview area of the client, specifically including:
[0037] After obtaining the impression collection table, select a specific seal template from the impression templates through the drop-down menu, convert the specific seal template into a hash value, and perform security verification through the hash value;
[0038] Since stamps have diverse characteristics, the specific stamp template is set to include custom options for width, height, color and sampling algorithm. Preferably, the custom options can be expanded according to actual conditions, such as coloring settings and shape changes. If the shape needs to be changed, the text remains unchanged while the outline is changed. In an embodiment of the present invention, the custom selection is implemented as an optional button, a numerical value filling or a sliding bar.
[0039] Among them, the sampling algorithm includes the original, scanned, Gaussian blurred and similar sampled parts of the specific seal template. The specific seal template is the original, so the button for the original is not displayed on the interface. The custom option is executed to obtain the final seal.
[0040] In step S140, the impression area marked by the user in the impression collection table is obtained, and the color of the impression area is checked. After the color is checked, the final seal is printed in the impression area to obtain the impression result;
[0041] Get the rectangular area marked by the user through the mouse click event as the template area.
[0042] During the stamping process, if the stamp base color is white or close to white, it can ensure that the text or pattern on the stamp is clearly visible, especially when using red or other dark-colored stamps. Therefore, it is necessary to check the stamp area for non-white colors, obtain the preset color threshold range, traverse the pixels in the stamp area, and take the pixels exceeding the color threshold range as non-white pixels;
[0043] In the embodiment of the present invention, no color format is required. Common color formats include RGB or HEX. The RGB model includes three channels: red, green, and blue. The numerical RGB three channels of pure white are (255, 255, 255). The color threshold range can be set from (240, 240, 240) to (255, 255, 255), and the HEX representation can be set from #F0F0F0 to #FFFFFF.
[0044] If the proportion of non-white pixels to the total pixels in the stamp area exceeds the ratio threshold, the non-white screening fails and the non-white pixels are processed in turn using the mean filtering method, that is, the average value of the surrounding pixel values is calculated for the non-white pixels and the average value is assigned to the center; otherwise, the non-white screening passes and there is no need to process the non-white pixels, which does not affect the normal stamp display.
[0045] After color checking, the stamp needs to be printed in the stamp area. It is necessary to ensure that the final stamp can be placed in the center of the rectangular area specified by the user as much as possible to enhance the display effect;
[0046] Select the corresponding center point determination method according to the type of the final seal. If the type is a symmetrical figure, the center point determination method used is the centroid method. Otherwise, the center point determination method used is the minimum circumscribed rectangle determination method. The center point determination method is executed to obtain the seal center.
[0047] The centroid method is to calculate the average position of all points as the seal center, which is relatively simple to calculate. The minimum enclosing rectangle is to take the center of the minimum enclosing rectangle of the final seal as the seal center. If the shape of the figure is irregular and has a large deformation, the centroid method may lead to inaccurate results, but the minimum enclosing rectangle can adapt to irregular shapes.
[0048] Determine the matrix center of the stamp area, move the stamp center of the final stamp to coincide with the matrix center, and scale the final stamp completely into the stamp area, using full proportional scaling.
[0049] In step S150, the impression result is trimmed, adjusted and uploaded, which specifically includes:
[0050] The impression result is the final form of the impression area of the final seal in the impression collection table. How to crop it depends on the specific application scenario. For example, if you only need to save part of the information in the table or there is interference outside the collection table, you can remove the redundant part by cropping.
[0051] The method further comprises:
[0052] In step S160, the impression template in the database is added or modified.
[0053] Figure 2 is a schematic diagram of the process architecture of an embodiment of the present invention, such as Figure 2 As shown, the interaction process between the user, the impression system and the server is demonstrated.
[0054] To sum up, in response to the existing problems, this invention provides an online imprinting method, in which users can choose existing templates to simplify operations during the imprinting process; in addition, it supports custom settings, and users can flexibly adjust according to actual needs. The parameters that can be set include width, height, color and sampling algorithm; in the stamping process, the stamping area marked by the user needs to be checked for non-white colors to ensure that the text or pattern on the seal is clearly visible; and according to the seal type, the checked seal is printed in the stamping area. If the type is a symmetrical figure, the center point determination method used is the centroid method, otherwise the center point determination method used is the minimum circumscribed rectangle determination method, which fully considers the characteristics of different shapes to ensure that the final seal can be placed in the center of the rectangular area specified by the user as much as possible to enhance the display effect.
[0055] System Example
[0056] According to an embodiment of the present invention, an online impression system is provided. Figure 3 Schematic diagram of an online impression system according to an embodiment of the present invention. Figure 3 As shown, the online impression system according to an embodiment of the present invention specifically includes:
[0057] An online request module 30 is used to obtain a user's online impression request and obtain an impression template pre-stored in a database;
[0058] Initialization configuration module 32, used to obtain the impression collection form uploaded by the user, and display the impression collection form in the client;
[0059] The preview module 34 is used to select a specific seal template from the stamp template, customize the specific seal template to obtain the final seal, and display the final seal in the preview area of the client, specifically for:
[0060] Select a specific seal template from the stamp templates through the drop-down menu, convert the specific seal template into a hash value, and perform security verification through the hash value;
[0061] Set the specific seal template including custom options of width, height, color and sampling algorithm, where the sampling algorithm includes the original, scanned, Gaussian blurred and similar sampled parts of the specific seal template, and execute the custom options to get the final seal.
[0062] The impression module 36 is used to obtain the impression area marked by the user in the impression collection table, perform color screening on the impression area, and after the screening passes, print the final seal in the impression area to obtain the impression result, which is specifically used for:
[0063] Get the rectangular area marked by the user through the mouse click event as the template area.
[0064] Perform non-white screening on the stamp area, obtain a preset color threshold range, traverse the pixel points in the stamp area, and regard the pixel points exceeding the color threshold range as non-white pixel points;
[0065] If the proportion of non-white pixels to the total pixels in the stamp area exceeds the ratio threshold, the non-white screening fails and the non-white pixels are processed in turn using the mean filtering method; otherwise, the non-white screening passes.
[0066] Select the corresponding center point determination method according to the type of the final seal. If the type is a symmetrical figure, the center point determination method used is the centroid method. Otherwise, the center point determination method used is the minimum circumscribed rectangle determination method. The center point determination method is executed to obtain the seal center.
[0067] Determine the matrix center of the stamp area, move the stamp center of the final stamp to coincide with the matrix center, and scale the final stamp completely into the stamp area.
[0068] The trimming module 38 is used to trim and adjust the impression result before uploading it.
[0069] The above technical solutions of the embodiments of the present invention are illustrated with reference to the following drawings.
[0070] Figure 4 Schematic diagram of stamp area marking and preview in an embodiment of the present invention. Figure 4 As shown, the left side of the system is the display interface of the impression collection table, the right side is the user-defined setting area, the box in the middle and lower part of the impression collection area in the impression collection table is the user-defined impression area, and the lower right side is the preview area;
[0071] Figure 5 Schematic diagram of the impression result of an embodiment of the present invention, such as Figure 5 The following is the display interface after the final settings are completed.
[0072] To sum up, in response to the existing problems, this invention provides an online imprint system, in which users can choose existing templates to simplify operations during the imprint process; in addition, it supports custom settings, and users can flexibly adjust according to actual needs. The parameters that can be set include width, height, color and sampling algorithm; in the stamping process, the stamping area marked by the user needs to be checked for non-white colors to ensure that the text or pattern on the seal is clearly visible; and according to the seal type, the checked seal is printed in the stamping area. If the type is a symmetrical figure, the center point determination method used is the centroid method, otherwise the center point determination method used is the minimum circumscribed rectangle determination method, which fully considers the characteristics of different shapes to ensure that the final seal can be placed in the center of the rectangular area specified by the user as much as possible to enhance the display effect.
[0073] Electronic device embodiment
[0074] Figure 6 6 is a schematic diagram of an electronic device according to an embodiment of the present invention. The electronic device 600 may include at least one processor 610 and a memory 620. The processor 610 may execute instructions stored in the memory 620. The processor 610 is connected to the memory 620 through a data bus. In addition to the memory 620, the processor 610 may also be connected to an input device 630, an output device 640, and a communication device 650 through a data bus.
[0075] The processor 610 may be any conventional processor, such as a commercially available CPU. The processor may also include a graphics processor (Graphic Process Unit, GPU), a field programmable gate array (Field Programmable Gate Array, FPGA), a system on chip (System on Chip, SOC), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or a combination thereof.
[0076] The memory 620 may be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0077] In the embodiment of the present disclosure, executable instructions are stored in the memory 620, and the processor 610 can read the executable instructions from the memory 620 and execute the instructions to implement all or part of the steps of any of the online impression methods in the above exemplary embodiments.
[0078] Computer Readable Storage Medium Embodiments
[0079] In addition to the above-mentioned methods and systems, an exemplary embodiment of the present disclosure may also be a computer program product or a computer-readable storage medium storing the computer program product, wherein the computer product includes computer program instructions that can be executed by a processor to implement all or part of the steps described in the online impression method of any of the above-mentioned exemplary embodiments.
[0080] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages such as Java, C++, etc., and also conventional procedural programming languages such as "C" language or similar programming languages and scripting languages (e.g., Python). The program code may be executed entirely on the user computing device, partially on the user computing device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0081] Computer readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of readable storage media include: a static random access memory (SRAM) with one or more wires electrically connected, an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk or an optical disk, or any suitable combination of the above.
[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. An online impression method, characterized in that: include: Obtaining a user's online impression request and obtaining an impression template pre-stored in a database; Obtaining the impression collection form uploaded by the user, and displaying the impression collection form in the client; Selecting a specific seal template from the seal template, customizing the specific seal template to obtain a final seal, and displaying the final seal in a preview area of the client; Acquire the impression area marked by the user in the impression collection form, perform color screening on the impression area, and after the screening passes, print the final seal in the impression area to obtain the impression result; The impression result is cut, adjusted and uploaded.
2. The method according to claim 1, characterized in that: The method further comprises: Add or modify impression templates in the database.
3. The method according to claim 1, characterized in that: The selecting a specific seal template from the stamp template and customizing the specific seal template to obtain a final seal specifically includes: Select a specific seal template from the stamp templates through a drop-down menu, convert the specific seal template into a hash value, and perform security verification through the hash value; Setting the specific seal template includes custom options of width, height, color and sampling algorithm, wherein the sampling algorithm includes the original, scanned, Gaussian blurred and similar sampled parts of the specific seal template, and executing the custom options to obtain the final seal.
4. The method according to claim 1, characterized in that: The obtaining of the impression area marked by the user in the impression collection table specifically includes: obtaining a rectangular area marked by the user through a mouse click event as the impression area.
5. The method according to claim 1, characterized in that The color checking of the stamp area specifically includes: Performing a non-white screening on the stamp area, obtaining a preset color threshold range, traversing the pixel points in the stamp area, and taking the pixel points exceeding the color threshold range as non-white pixel points; If the proportion of the non-white pixels to the total pixels in the stamp area exceeds the proportion threshold, the non-white screening is not passed, and the non-white pixels are processed in turn using the mean filtering method; otherwise, the non-white screening is passed.
6. The method according to claim 1, characterized in that After the screening is passed, the final seal is printed in the stamp area, and the stamp result is obtained specifically including: Selecting a corresponding center point determination method according to the type of the final seal, if the type is a symmetrical figure, the center point determination method used is the centroid method, otherwise the center point determination method used is the minimum circumscribed rectangle determination method, and executing the center point determination method to obtain the seal center; The matrix center of the stamp area is determined, the stamp center of the final stamp is moved to coincide with the matrix center, and the final stamp is scaled completely into the stamp area.
7. An online impression system, characterized in that: include: An online request module is used to obtain a user's online impression request and obtain an impression template pre-stored in a database; An initialization configuration module is used to obtain the impression collection form uploaded by the user and display the impression collection form in the client; A preview module, used to select a specific seal template from the seal template, customize the specific seal template to obtain a final seal, and display the final seal in a preview area of the client; The impression module is used to obtain the impression area marked by the user in the impression collection form, perform color screening on the impression area, and after the screening passes, print the final seal in the impression area to obtain the impression result; The trimming module is used to trim and adjust the impression result before uploading it.
8. The system according to claim 7, characterized in that The system further comprises: An updating module is used to add or modify the impression template in the database.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the online impression method according to any one of claims 1 to 6 when executed by the processor.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an implementation program for information transmission, and when the program is executed by a processor, the steps of the online impression method according to any one of claims 1 to 6 are implemented.