Digitalized simulation generation system for disordered needlework
By converting the color pictures embroidered with random needles into QR codes and using verification characters and derivation equations for segmentation, the problem of insufficient reliability of color pictures in the digital simulation process is solved, and efficient image processing and protection are achieved. Suitable for all types of color picture transmission and storage environments.
Patent Information
- Application Number
- CN202411302431.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2024-12-31
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the digital simulation process of scattered needle embroidery, the reliability of color pictures is insufficient, especially after the widespread promotion of information and communication, and the encoding and reading and writing control methods are efficient and maneuverable when processing a large number of pictures. Poor sex.
By converting the color image into a QR code, and using the starting verification character and derivation equation to form a new verification character, performing split processing and encoding transmission, ensuring that only those who have relevant information can read, write or restore the image, combined with sub-2 Self-adjustment of the R code library to enhance the variable protection level of the picture.
Significantly improve the reliability of color pictures during transmission and storage, reduce manual operation requirements, ensure the completeness and reproducibility of pictures, and are suitable for various types of color pictures transmission and storage environments, effectively responding to reliability under communication conditions. Sexual Threat.
Smart Images

Figure CN119227367A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of random-needle embroidery digital simulation, and in particular relates to a random-needle embroidery digital simulation generation system. Background Art
[0002] With the rapid development of digital segmentation technology, the combination of art and technology is becoming increasingly close. How to use new technologies to digitally segment the current artistic creation and production process to promote the development of current art has become a research hotspot in the current computer field. As a representative of current embroidery art, random needle embroidery has unique embroidery techniques and is good at depicting the texture and color changes of works, especially for oil paintings and photographs. However, its high threshold for employment, low production efficiency and high price have seriously restricted its own development. Research on how to use computer technology to assist the creation and production of random needle embroidery has great cultural and economic significance.
[0003] In order to digitally segment random-stitch embroidery, the existing technical solution with patent publication number "CN108170907B" is often used to achieve digital segmentation of random-stitch embroidery, that is, to extract different object areas and regional vector fields of the input color image; finally, the coordinates of the stitch sequence are transformed into the coordinates of the computer embroidery machine, so as to achieve digital simulation of random-stitch embroidery.
[0004] In order to do a good job of backup, color images are often backed up and stored. With the increasing popularity of information communication today, the reliability of color images should be paid special attention to. After backing up color images, the reliability of color images must be guaranteed. The current color image reliability processing methods are often not easy to deal with complex hacker intrusion methods and a large number of color image processing requirements (such as the processing requirements of reading and writing color images), as follows:
[0005] Color image leakage risk: With the promotion of information communication, the risk of color image leakage has greatly increased. Hackers can use various methods to steal, modify or damage color images, resulting in insufficient reliability of color images.
[0006] Deficiencies of current reliability methods: Although the current encoding and read-write control methods can provide reliability guarantees in some aspects, they have the characteristics of insufficient efficiency and poor flexibility when processing large amounts of color images. In addition, as long as the coding coefficients are stolen or leaked, color images will also face considerable risks.
[0007] There is an urgent need for a variable reliability method: a fixed reliability method is not suitable for variable communication conditions and hacker intrusion methods, so a reliable rule that can be adapted and resist new hacker intrusion methods is needed. Summary of the invention
[0008] In order to solve the defects existing in the prior art, the present invention proposes a random-stitch embroidery digital simulation generation system, which transforms the color image into a two-dimensional code and performs segmentation processing, and then combines the starting verification code and the derivation equation to form a new verification code. The control method of the random-stitch embroidery digital simulation generation system significantly improves the reliability of the color image. Even if the color image is maliciously stolen during transmission, it is not easy for hackers to restore the source color image without accurate verification codes and derivation equations; the control terminal needs to define the starting verification code and modify the derivation equation. Step 6 ensures that only people who have such information can read, write and restore the color image, effectively preventing unauthorized reading and writing of the color image. Through the automated processing flow, such as automatically attaching serial numbers, automatically decomposing images, and automatically generating scrambled sub-QR codes, the control method of the random-needle embroidery digital simulation generation system can efficiently process a large number of color images, reduce the requirements for manual operation, and improve overall efficiency; automatically generate or remove scrambled sub-QR codes according to the number of sub-QR codes in the sub-QR code library, thereby increasing the variable protection level of the color image, so that even when hackers try to parse the color image, it is not easy to obtain usable values; using the starting verification symbol and the derivation equation, it is easy to extract and restore all the sub-QR codes from the sub-QR code library, and thus restore them to the source color image, thereby ensuring the completeness and restorability of the color image.
[0009] The present invention uses the following technical solutions.
[0010] A control method for a random-needle embroidery digital simulation generation system, comprising:
[0011] The input color image is stored and different object regions and regional vector fields of the input color image are extracted; finally, the coordinates of the stitch sequence are transformed into the coordinates of the computer embroidery machine, so as to achieve the digital simulation of random needle embroidery;
[0012] The methods for storing the input color image include:
[0013] Step 1: Segment the color image;
[0014] Step 2: The control terminal defines the starting verification code;
[0015] Step 3: The control terminal modifies a pair of derivation equations obtained by another verification symbol;
[0016] Step 4: Attach corresponding verification symbols to each sub-QR code according to the initial verification symbol and the derivation equation;
[0017] Step 5: Attach corresponding verification symbols to each sub-QR code according to the initial verification symbol and the derivation equation;
[0018] Step 6: Based on the starting verification code set by the control terminal and the derivation equation, all sub-QR codes corresponding to the color image are extracted from the sub-QR code library, and restored to a color image that cannot be modified and has read-only function.
[0019] Preferably, in step 1, the method of segmentation and disposal includes:
[0020] First, the color image is transformed into a QR code, then p-1 dividing lines are drawn on the QR code, and p dividing intervals are obtained, and then serial numbers are assigned to each dividing interval according to the arrangement order;
[0021] Then, the corresponding two-dimensional code is decomposed according to the dividing line, and p sub-two-dimensional codes with serial numbers are obtained.
[0022] Preferably, in step 1, the dividing lines are horizontal dividing lines or vertical dividing lines, and are arranged in an order from left to right or from high to low, and the spacing between the dividing lines is the same.
[0023] Preferably, in step 1, the sequence numbers are 1, 2, 3...p.
[0024] Preferably, step 4 specifically includes:
[0025] Step 4-1: Define the start verifier;
[0026] Step 4-2: Divide the initial verification character into a pair of digital segments according to the digital sequence of the initial verification character, and synchronously obtain the digital value of one of the digital segments;
[0027] Step 4-3: Treat a pair of digital segments as a pair of variable values in a pair of derivation equations, and calculate the corresponding operation values;
[0028] Step 4-4: Based on the digits of the digital segment, extract the digital segment of the corresponding digits in the calculation value obtained by a pair of derivation equations in order from first to last, and aggregate them into a new verification code, and then treat the verification code as the sub-QR code corresponding to the second serial number in the arrangement order.
[0029] Preferably, a pair of digital segments are obtained by equally dividing the initial verification character, so that the number of digits in the pair of digital segments is the same.
[0030] Preferably, an equation input symbol is set on a pair of digital segments according to the equally divided digital segments;
[0031] A pair of equation input symbols respectively correspond to a pair of derived equations, that is, equation input symbols corresponding to the same derived equation, and the corresponding digital segments registered therein are input into the derived equation as variable values.
[0032] Preferably, when the digit amount of a digital segment in a calculation value obtained by a derived equation is smaller than the digit amount of the digital segment, the calculation value is repeatedly docked until its docked value satisfies the condition that the digit amount of the digital segment is not smaller than the digit amount of the digital segment.
[0033] Preferably, step 5 specifically includes:
[0034] Step 5-1: Then follow the method in step 4-1 to step 4-4, and replace the initial verification symbol with a new verification symbol, then perform processing and obtain a number of new verification symbols one by one, and then use them as verification symbols of the sub-QR codes corresponding to the serial numbers according to the arrangement order;
[0035] Step 5-2: Then store the sub-QR code with the verification code into the sub-QR code library;
[0036] The sub-QR code library is used to store all the sub-QR codes corresponding to the color pictures input into the control terminal.
[0037] Preferably, if the number of sub-QR codes in the sub-QR code library is less than a predefined critical number of sub-QR codes, the sub-QR code library automatically generates a corresponding number of scrambled sub-QR codes to increase the number of sub-QR codes to be greater than the critical number of sub-QR codes;
[0038] If the number of sub-QR codes outside the scrambled sub-QR code in the sub-QR code library is not less than the pre-defined critical number of sub-QR codes, the sub-QR code library automatically removes all scrambled sub-QR codes to reduce memory usage. The scrambled sub-QR code is randomly generated.
[0039] Preferably, in step 6, the method of extracting all sub-QR codes corresponding to the color image from the sub-QR code library specifically includes:
[0040] Step 6-1: Get the initial verification code;
[0041] Step 6-2: Obtain the verification code corresponding to each sub-QR code according to the verification code attachment method in the verification code processing module;
[0042] Step 6-3: Extract the sub-QR code with the same verification code from the sub-QR code library according to the verification code obtained in step 6-2;
[0043] Step 6-4: Obtain the corresponding serial number in the extracted sub-QR code, then perform docking on each sub-QR code in the order of the serial number and obtain the corresponding QR code;
[0044] Step 6-5: Restore the QR code to a color image.
[0045] Preferably, a pair of derivation equations are derivation equation one and derivation equation two, derivation equation one is: (y+b1-b2)×b3+b4×b5|, derivation equation two is: |(b1-b2)×b3+y-b4|, and y is a variable value, whose value is the corresponding verification symbol, b1, b2, b3, b4 and b5 are all constants, whose values are defined by the control terminal.
[0046] Preferably, step 4-4 may also be:
[0047] Initially, a modulus of a quantity obtained by subtracting the operation values obtained by a pair of derivation equations is calculated, and then, according to the digit quantity of the initial verification symbol, a digital segment of the corresponding digit quantity is extracted from the modulus in order from first to last, and the digital segment is used as a new verification symbol, and then the verification symbol is used as a sub-QR code corresponding to the second sequence number in the arrangement order;
[0048] Here, when the digital segment digit quantity of the modulus is less than the digital segment digit quantity of the start verification character, the calculated value is repeatedly docked until the docked value satisfies that the digital segment digit quantity is not less than the digital segment digit quantity of the start verification character.
[0049] A random needle embroidery digital simulation generation system, comprising:
[0050] The control terminal is used to store the input color image and extract different object areas and area vector fields of the input color image; finally, the coordinates of the stitch sequence are transformed into the coordinates of the computer embroidery machine, so as to achieve the digital simulation of random needle embroidery;
[0051] The modules running on the control terminal include:
[0052] A color image processing module, which is used to perform segmentation processing on color images;
[0053] The verification code definition module is used to define the starting verification code of the control terminal;
[0054] The verification equation definition module is used to control the terminal to modify a pair of derivation equations obtained by another verification symbol;
[0055] A verification code processing module, used for attaching corresponding verification codes to other sub-QR codes according to the initial verification code and the derivation equation;
[0056] The image extraction module is used to extract all sub-QR codes corresponding to the color image from the sub-QR code library based on the starting verification code set by the control terminal and the derivation equation, and restore them to color images that cannot be modified and have read-only functions.
[0057] Preferably, the start verification character is used to be attached to the sub-QR code corresponding to the first serial number in the arrangement order.
[0058] Preferably, the digit amount of the start verification character is a constant amount, and the digit amount of the start verification character is an even number.
[0059] Preferably, the additional verification symbol is a verification symbol of another sub-QR code.
[0060] The beneficial effects of the present invention are that, compared with the prior art, the technical effects of the present invention include:
[0061] Improved the reliability of color image storage and backup: The reliability of color images during transmission and storage is greatly improved through the segmentation and encoding of color images. Each sub-QR code is attached with a serial number and a verification symbol, so that even if hackers obtain some color image information, they cannot parse out the complete color image.
[0062] Improve the efficiency of color image processing: The color image processing module can automatically convert the input color image into a QR code and perform processing, including segmentation, encoding and the attachment of verification symbols, which greatly improves the efficiency of color image processing and reduces the requirements for manual operations.
[0063] Flexibility and autonomy: The control terminal can customize the constants in the derivation equation and modify the derivation equation. This method increases the level of flexibility and autonomy, so that the color image protection method can be defined according to actual requirements.
[0064] Efficient color image restoration function: Even if the color image is decomposed into several sub-QR codes and stored separately, the image extraction module can accurately extract and restore the original source color image from the sub-QR code library based on the starting verification code and the derivation equation, ensuring the integrity and credibility of the color image.
[0065] Variable controlled sub-QR code library: The sub-QR code library can automatically generate or remove scrambled sub-QR codes according to the number of stored sub-QR codes and pre-defined critical quantities. This not only ensures the efficient use of storage space, but also improves the protection against hacker reading and writing.
[0066] Good suitability: The invention is suitable for various types of color image transmission and storage environments, and can be reliably processed through the invention.
[0067] In short, based on a large number of color image reliability processing systems, through its unique design, it provides a reliable, efficient, flexible and easy-to-use color image protection method, which effectively targets various reliability threats under current communication conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 It is a flow chart of the control method of the random-needle embroidery digital simulation generation system of the present invention;
[0069] Figure 2 It is a partial structural diagram of the random-needle embroidery digital simulation generation system described in the present invention. DETAILED DESCRIPTION
[0070] In order to make the purpose, technical solution and advantages of the present invention clearer, the following will be combined with the drawings in the embodiments of the present invention to clearly and completely express the technical solution of the present invention. The embodiments expressed in the present invention are only some embodiments of the present invention, not all embodiments. According to the spirit of the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the protection scope of the present invention.
[0071] like Figure 1 As shown, the control method of a random-needle embroidery digital simulation generation system of the present invention comprises:
[0072] The input color image is stored, and different object areas and regional vector fields of the input color image are extracted; finally, the coordinates of the stitch sequence are transformed into the coordinates of the computer embroidery machine to achieve the digital simulation of random needle embroidery; different object areas and regional vector fields of the input color image are extracted; finally, the coordinates of the stitch sequence are transformed into the coordinates of the computer embroidery machine to achieve the digital simulation of random needle embroidery. The method can be achieved by the corresponding method of the prior art solution with the publication number of "CN108170907B".
[0073] The methods for storing the input color image include:
[0074] Step 1: Segment the color image;
[0075] Step 2: The control terminal defines the starting verification code;
[0076] Step 3: The control terminal modifies a pair of derivation equations obtained by another verification symbol;
[0077] Step 4: Attach corresponding verification symbols to each sub-QR code according to the initial verification symbol and the derivation equation;
[0078] Step 5: Attach corresponding verification symbols to each sub-QR code according to the initial verification symbol and the derivation equation;
[0079] Step 6: Based on the starting verification code set by the control terminal and the derivation equation, all sub-QR codes corresponding to the color image are extracted from the sub-QR code library, and restored to a color image that cannot be modified and has read-only function.
[0080] In a preferred but non-limiting embodiment of the present invention, in step 1, the method of cutting and disposing comprises:
[0081] First, convert the color image into a QR code, then draw p-1 dividing lines on the QR code and obtain p dividing intervals, and then assign serial numbers to each dividing interval according to the arrangement order; a QR code converter APP can be used to convert the color image into a QR code.
[0082] Then, the corresponding two-dimensional code is decomposed according to the dividing line, and p sub-two-dimensional codes with serial numbers are obtained.
[0083] In a preferred but non-limiting embodiment of the present invention, in step 1, the dividing lines are horizontal dividing lines or vertical dividing lines, and the arrangement order is from left to right or from high to low, and the spacing between several dividing lines is the same.
[0084] In a preferred but non-limiting embodiment of the present invention, in step 1, the sequence numbers are 1, 2, 3...p.
[0085] In a preferred but non-limiting embodiment of the present invention, step 4 specifically comprises:
[0086] Step 4-1: Define the start authenticator; the start authenticator can be defined by yourself.
[0087] Step 4-2: Divide the initial verification character into a pair of digital segments according to the digital sequence of the initial verification character, and synchronously obtain the digital value of one of the digital segments;
[0088] In a preferred but non-limiting embodiment of the present invention, a pair of digital segments are obtained by equally dividing the initial verification symbol, so the number of digits in the pair of digital segments is the same.
[0089] For example, if the initial verification character is '98514323', the pair of digital segments after equal division are '9851' and '4323'.
[0090] Step 4-3: Treat a pair of digital segments as a pair of variable values in a pair of derivation equations, and calculate the corresponding operation values;
[0091] In a preferred but non-limiting embodiment of the present invention, an equation input symbol is automatically set on a pair of digital segments according to the digital segments after being equally divided;
[0092] A pair of equation input symbols respectively correspond to a pair of derived equations, that is, equation input symbols corresponding to the same derived equation, and the corresponding digital segments registered therein are input into the derived equation as variable values.
[0093] Step 4-4: Based on the digits of the digital segment, extract the digital segment of the corresponding digits in the calculation value obtained by a pair of derivation equations in order from first to last, and aggregate them into a new verification code, and then treat the verification code as the sub-QR code corresponding to the second serial number in the arrangement order.
[0094] In a preferred but non-limiting embodiment of the present invention, if the digit amount of a digital segment in a calculation value obtained by a derived equation is smaller than the digit amount of the digital segment, the calculation value is repeatedly docked until its docked value satisfies the condition that the digit amount of the digital segment is not less than the digit amount of the digital segment.
[0095] As:
[0096] If the calculated values obtained by a derived equation are all 352, then the docking values after repeated docking are 352352 or 352352352 or 352352352352, etc.;
[0097] If the calculated values of a pair of derivation equations are 233.4523 and 352 respectively, and the number of digits in the digital segment is four, then the new verification code is '2334-5233';
[0098] If the calculated values of a pair of derivation equations are 1.161 and 1.1136 respectively, and the number of digits in the digital segment is four, then the new verification code is '1161-1113';
[0099] The digital quantity is the number of digits carried by each digital segment.
[0100] In a preferred but non-limiting embodiment of the present invention, step 5 specifically comprises:
[0101] Step 5-1: Then follow the method in step 4-1 to step 4-4, and replace the initial verification symbol with a new verification symbol, then perform processing and obtain a number of new verification symbols one by one, and then use them as verification symbols of the sub-QR codes corresponding to the serial numbers according to the arrangement order;
[0102] Step 5-2: Then store the sub-QR code with the verification code into the sub-QR code library;
[0103] The sub-QR code library is used to store all the sub-QR codes corresponding to the color pictures input into the control terminal.
[0104] In a preferred but non-limiting embodiment of the present invention, if the number of sub-QR codes in the sub-QR code library is less than a pre-defined critical number of sub-QR codes, the sub-QR code library automatically generates a corresponding number of scrambled sub-QR codes to increase the number of sub-QR codes to be greater than the critical number of sub-QR codes;
[0105] If the number of sub-QR codes outside the scrambled sub-QR code in the sub-QR code library is not less than the pre-defined critical number of sub-QR codes, the sub-QR code library automatically removes all scrambled sub-QR codes to reduce memory usage. The scrambled sub-QR code is randomly generated.
[0106] In a preferred but non-limiting embodiment of the present invention, in step 6, the method of extracting all sub-QR codes corresponding to the color image from the sub-QR code library specifically includes:
[0107] Step 6-1: Get the initial verification code;
[0108] Step 6-2: Obtain the verification code corresponding to each sub-QR code according to the verification code attachment method in the verification code processing module;
[0109] Step 6-3: Extract the sub-QR code with the same verification code from the sub-QR code library according to the verification code obtained in step 6-2;
[0110] Step 6-4: Obtain the corresponding serial number in the extracted sub-QR code, then perform docking on each sub-QR code in the order of the serial number and obtain the corresponding QR code;
[0111] Step 6-5: Restore the QR code to a color image.
[0112] The present application transforms the color image into a QR code and performs segmentation processing, and then combines the starting verification code and the derivation equation to form a new verification code. The control method of the random needle embroidery digital simulation generation system significantly improves the reliability of the color image. Even if the color image is maliciously stolen during transmission, without the correct verification code and derivation equation, it is not easy for hackers to restore the source color image; the control terminal needs to define the starting verification code and modify the derivation equation. Step 6 ensures that only people who have such information can read, write and restore the color image, effectively preventing unauthorized reading and writing of the color image.
[0113] Through the automated processing flow, such as automatically attaching serial numbers, automatically decomposing images, and automatically generating scrambled sub-QR codes, the control method of the random-needle embroidery digital simulation generation system can efficiently process a large number of color images, reduce the requirements for manual operation, and improve overall efficiency; automatically generate or remove scrambled sub-QR codes according to the number of sub-QR codes in the sub-QR code library, thereby increasing the variable protection level of the color image, so that even when hackers try to parse the color image, it is not easy to obtain usable values; using the starting verification symbol and the derivation equation, it is easy to extract and restore all the sub-QR codes from the sub-QR code library, and thus restore them to the source color image, thereby ensuring the completeness and restorability of the color image.
[0114] In a preferred but non-limiting embodiment of the present invention, the derived equation is defined as a constant equation, and it does not need to be actively modified by the control terminal, and only the constant in the derived equation needs to be completed;
[0115] If a pair of derivation equations are derivation equation 1 and derivation equation 2, derivation equation 1 is: (y+b1-b2)×b3+b4×b5|, derivation equation 2 is: |(b1-b2)×b3+y-b4|, and y is a variable value, whose value is the corresponding verification symbol, and b1, b2, b3, b4 and b5 are all constants, whose values are defined by the control terminal;
[0116] Here, several control terminals only need to define constant quantities by themselves.
[0117] Another approach mentioned below allows custom definition of constants and modification of derived equations, or here only constants are defined, giving great flexibility and customizable options to suit different reliability requirements.
[0118] In a preferred but non-limiting embodiment of the present invention, step 4-4 may also be:
[0119] Initially, a modulus of a quantity obtained by subtracting the operation values obtained by a pair of derivation equations is calculated, and then, according to the digit quantity of the initial verification symbol, a digital segment of the corresponding digit quantity is extracted from the modulus in order from first to last, and the digital segment is used as a new verification symbol, and then the verification symbol is used as a sub-QR code corresponding to the second sequence number in the arrangement order;
[0120] Here, when the digital segment digit quantity of the modulus is less than the digital segment digit quantity of the start verification character, the calculated value is repeatedly docked until the docked value satisfies that the digital segment digit quantity is not less than the digital segment digit quantity of the start verification character.
[0121] As:
[0122] If the modulus of the quantity obtained by subtracting the calculated values of a pair of derived equations is 352, then the docking value after repeated docking is 352352 or 352352352 or 352352352352, etc.;
[0123] If the number of digits in the initial verification code is eight, then the new verification code after aggregation is '35235235';
[0124] If the modulus of the operation value of a pair of derivation equations is 26621.1236, and the number of digits in the digital segment is eight, then the aggregated new verification symbol is '26621123'. The control terminal may be a computer.
[0125] like Figure 2 As shown, the random-needle embroidery digital simulation generation system of the present invention comprises:
[0126] A control terminal is used to store the input color image and extract different object areas and area vector fields of the input color image; finally, the coordinates of the stitch sequence are transformed into the coordinates of the computer embroidery machine to achieve the digital simulation of random needle embroidery; the method of extracting different object areas and area vector fields of the input color image; finally, the coordinates of the stitch sequence are transformed into the coordinates of the computer embroidery machine to achieve the digital simulation of random needle embroidery can be achieved by the corresponding method of the prior art solution with the publication number of 'CN108170907B'.
[0127] The modules running on the control terminal include:
[0128] A color image processing module, which is used to perform segmentation processing on color images;
[0129] The verification code definition module is used to define the starting verification code of the control terminal;
[0130] In a preferred but non-limiting embodiment of the present invention, the start verification symbol is used to be attached to the sub-QR code corresponding to the first sequence number in the arrangement order.
[0131] In a preferred but non-limiting embodiment of the present invention, the digit amount of the initial verification character is a constant amount, and the digit amount of the initial verification character is an even number.
[0132] The verification equation definition module is used to control the terminal to modify a pair of derivation equations obtained by another verification symbol;
[0133] In a preferred but non-limiting embodiment of the present invention, the additional verification symbol is a verification symbol of another sub-QR code;
[0134] The derivation equation is modified by using the current method of sum, difference, product and quotient, and there is a variable value y in the derivation equation, and the other values are constants, and the variable value y is the start verification symbol or another verification symbol, and the constant value is defined by the control terminal itself;
[0135] In the derived equation, the value higher than zero is taken as the operation value, and the derived equation contains a modulus operator;
[0136] When the value obtained by the modified derivation equation is zero, the modification of the derivation equation of the control terminal is unsatisfactory, and the control terminal needs to be modified again until the value obtained by the modified derivation equation is non-zero;
[0137] Just as if one of the derived equations modified by the control terminal is: |(y+b1-b2)×b3+b4×b5|, here y is a variable value, and b1, b2, b3, b4 and b5 are all constants.
[0138] A verification code processing module, used for attaching corresponding verification codes to other sub-QR codes according to the initial verification code and the derivation equation;
[0139] The image extraction module is used to extract all sub-QR codes corresponding to the color image from the sub-QR code library based on the starting verification code set by the control terminal and the derivation equation, and restore them to color images that cannot be modified and have read-only functions.
[0140] The beneficial effects of the present invention are that, compared with the prior art, the technical effects of the present invention include:
[0141] Improved the reliability of color image storage and backup: The reliability of color images during transmission and storage is greatly improved through the segmentation and encoding of color images. Each sub-QR code is attached with a serial number and a verification symbol, so that even if hackers obtain some color image information, they cannot parse out the complete color image.
[0142] Improve the efficiency of color image processing: The color image processing module can automatically convert the input color image into a QR code and perform processing, including segmentation, encoding and the attachment of verification symbols, which greatly improves the efficiency of color image processing and reduces the requirements for manual operations.
[0143] Flexibility and autonomy: The control terminal can customize the constants in the derivation equation and modify the derivation equation. This method increases the level of flexibility and autonomy, so that the color image protection method can be defined according to actual requirements.
[0144] Efficient color image restoration function: Even if the color image is decomposed into several sub-QR codes and stored separately, the image extraction module can accurately extract and restore the original source color image from the sub-QR code library based on the starting verification code and the derivation equation, ensuring the integrity and credibility of the color image.
[0145] Variable controlled sub-QR code library: The sub-QR code library can automatically generate or remove scrambled sub-QR codes according to the number of stored sub-QR codes and pre-defined critical quantities. This not only ensures the efficient use of storage space, but also improves the protection against hacker reading and writing.
[0146] Good suitability: The invention is suitable for various types of color image transmission and storage environments, and can be reliably processed through the invention.
[0147] In short, based on a large number of color image reliability processing systems, through its unique design, it provides a reliable, efficient, flexible and easy-to-use color image protection method, which effectively targets various reliability threats under current communication conditions.
[0148] 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 above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not deviate from the spirit and scope of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A control method for a random needle embroidery digital simulation generation system, characterized in that: include: The input color image is stored and different object regions and region vector fields of the input color image are extracted; Finally, the coordinates of the stitch sequence are transformed into the coordinates of the computer embroidery machine, so as to achieve the digital simulation of random needle embroidery; The methods for storing the input color image include: Step 1: Segment the color image; Step 2: The control terminal defines the starting verification code; Step 3: The control terminal modifies a pair of derivation equations obtained by another verification symbol; Step 4: Attach corresponding verification symbols to each sub-QR code according to the initial verification symbol and the derivation equation; Step 5: Attach corresponding verification symbols to each sub-QR code according to the initial verification symbol and the derivation equation; Step 6: Based on the starting verification code set by the control terminal and the derivation equation, all sub-QR codes corresponding to the color image are extracted from the sub-QR code library, and restored to a color image that cannot be modified and has read-only function.
2. The control method of the random needle embroidery digital simulation generation system according to claim 1 is characterized in that: In step 1, the method of segmentation and disposal includes: First, the color image is transformed into a QR code, then p-1 dividing lines are drawn on the QR code, and p dividing intervals are obtained, and then serial numbers are assigned to each dividing interval according to the arrangement order; Then, the corresponding two-dimensional code is decomposed according to the dividing line, and p sub-two-dimensional codes with serial numbers are obtained.
3. The control method of the random needle embroidery digital simulation generation system according to claim 2 is characterized in that: In step 1, the dividing lines are horizontal dividing lines or vertical dividing lines, and the arrangement order is from left to right or from high to low, and the spacing between the dividing lines is the same; In step 1, the sequence numbers are 1,2,3...p.
4. The control method of the random needle embroidery digital simulation generation system according to claim 3 is characterized in that: Step 4 specifically includes: Step 4-1: Define the start verifier; Step 4-2: Divide the initial verification character into a pair of digital segments according to the digital sequence of the initial verification character, and synchronously obtain the digital value of one of the digital segments; Step 4-3: Treat a pair of digital segments as a pair of variable values in a pair of derivation equations, and calculate the corresponding operation values; Step 4-4: Based on the digits of the digital segment, extract the digital segment of the corresponding digits in the calculation value obtained by a pair of derivation equations in order from first to last, and aggregate them into a new verification code, and then treat the verification code as the sub-QR code corresponding to the second serial number in the arrangement order.
5. The control method of the random needle embroidery digital simulation generation system according to claim 4 is characterized in that: A pair of digital segments is obtained by equally dividing the initial verification character, so the number of digits in the pair of digital segments is the same; The equation input symbol is set automatically on a pair of digital segments according to the equally divided digital segments; A pair of equation input symbols respectively correspond to a pair of derived equations, that is, equation input symbols corresponding to the same derived equation, and the corresponding digital segments registered therein are input into the derived equation as variable values.
6. The control method of the random needle embroidery digital simulation generation system according to claim 5 is characterized in that: When the digit amount of a digital segment in a calculation value obtained by a derived equation is smaller than the digit amount of the digital segment, the calculation value is repeatedly docked until the docked value satisfies the condition that the digit amount of the digital segment is not smaller than the digit amount of the digital segment.
7. The control method of the random needle embroidery digital simulation generation system according to claim 6 is characterized in that: Step 5 specifically includes: Step 5-1: Then follow the method in step 4-1 to step 4-4, and replace the initial verification symbol with a new verification symbol, then perform processing and obtain a number of new verification symbols one by one, and then use them as verification symbols of the sub-QR codes corresponding to the serial numbers according to the arrangement order; Step 5-2: Then store the sub-QR code with the verification code into the sub-QR code library; The sub-QR code library is used to store all sub-QR codes corresponding to the color pictures input to the control terminal; If the number of sub-QR codes in the sub-QR code library is less than the pre-defined critical number of sub-QR codes, the sub-QR code library automatically generates a corresponding number of scrambled sub-QR codes to increase the number of sub-QR codes to make it greater than the critical number of sub-QR codes; If the number of sub-QR codes outside the scrambled sub-QR code in the sub-QR code library is not less than the pre-defined critical number of sub-QR codes, the sub-QR code library automatically removes all scrambled sub-QR codes to reduce memory usage. The scrambled sub-QR code is randomly generated.
8. The control method of the random-needle embroidery digital simulation generation system according to claim 7 is characterized in that: In step 6, the method of extracting all sub-QR codes corresponding to the color image from the sub-QR code library specifically includes: Step 6-1: Get the initial verification code; Step 6-2: Obtain the verification code corresponding to each sub-QR code according to the verification code attachment method in the verification code processing module; Step 6-3: Extract the sub-QR code with the same verification code from the sub-QR code library according to the verification code obtained in step 6-2; Step 6-4: Obtain the corresponding serial number in the extracted sub-QR code, then perform docking on each sub-QR code in the order of the serial number and obtain the corresponding QR code; Step 6-5: Restore the QR code to a color image; A pair of derivation equations are derivation equation 1 and derivation equation 2. Derivation equation 1 is: (y+b1-b2)×b3+b4×b5|, and derivation equation 2 is: |(b1-b2)×b3+y-b4|, and y is a variable value, whose value is the corresponding verification symbol, and b1, b2, b3, b4 and b5 are all constants, whose values are defined by the control terminal; Step 4-4 may also be: Initially, a modulus of a quantity obtained by subtracting the operation values obtained by a pair of derivation equations is calculated, and then, according to the digit quantity of the initial verification symbol, a digital segment of the corresponding digit quantity is extracted from the modulus in order from first to last, and the digital segment is used as a new verification symbol, and then the verification symbol is used as a sub-QR code corresponding to the second sequence number in the arrangement order; Here, when the digital segment digit quantity of the modulus is less than the digital segment digit quantity of the start verification character, the calculated value is repeatedly docked until the docked value satisfies that the digital segment digit quantity is not less than the digital segment digit quantity of the start verification character.
9. A random needle embroidery digital simulation generation system, characterized in that: include: A control terminal is used to store the input color image and extract different object regions and region vector fields of the input color image; Finally, the coordinates of the stitch sequence are transformed into the coordinates of the computer embroidery machine, so as to achieve the digital simulation of random needle embroidery; The modules running on the control terminal include: A color image processing module, which is used to perform segmentation processing on color images; The verification code definition module is used to define the starting verification code of the control terminal; The verification equation definition module is used to control the terminal to modify a pair of derivation equations obtained by another verification symbol; A verification code processing module, used for attaching corresponding verification codes to other sub-QR codes according to the initial verification code and the derivation equation; The image extraction module is used to extract all sub-QR codes corresponding to the color image from the sub-QR code library based on the starting verification code set by the control terminal and the derivation equation, and restore them to color images that cannot be modified and have read-only functions.
10. The random-needle embroidery digital simulation generation system according to claim 9, characterized in that: The start verification character is used to be attached to the sub-QR code corresponding to the first serial number in the arrangement order; The number of digits of the initial verification character is a constant number, and the number of digits of the initial verification character is an even number; Another verification code is another verification code of a sub-QR code.