A method and system for manufacturing an electronic cigarette shell

Through the six-step stretching parameter determination model and image processing technology, the problem of limited thickness gap in the processing of electronic cigarette shells is solved, more flexible thickness design and rich product types are achieved, and production quality and monitoring efficiency are improved.

CN117530504BActive Publication Date: 2024-09-10DONGGUAN JIAKAI PRECISION METAL PRODUCT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311655177.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-05
Publication Date
2024-09-10
Estimated Expiration
2043-12-05

AI Technical Summary

Technical Problem

During the processing of e-cigarette shells, since the outer and inner diameters and side wall thickness of the product have been shaped and cannot be changed, the gap between the bottom wall thickness and the side wall thickness is limited, which limits the variety and design flexibility of e-cigarette products.

Method used

A six-step stretching parameter determination model is used to gradually adjust the size of the base material through specific stretching control parameters and image processing technology to ensure that the gap between the side wall thickness and the bottom thickness is greater than 90%, thus enriching the types and production types of e-cigarette shells .

Benefits of technology

It realizes the flexible thickness design of the electronic cigarette shell, enriches product types, improves material utilization and production quality monitoring and control, and ensures that products meet quality standards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117530504B
    Figure CN117530504B
Patent Text Reader

Abstract

The present invention discloses a method and system for making an electronic cigarette shell, which belongs to the field of manufacturing and processing technology. The method includes: obtaining the original size of the substrate and the target shell size of the electronic cigarette shell to be made; according to the original size and the target shell size, determining the expected size and corresponding stretching control parameters at each stretching through a six-step stretching parameter determination model; according to the stretching parameters at each stretching, stretching the substrate six times; after each stretching, obtaining a cross-sectional image, and determining the current size according to the cross-sectional image; judging whether the difference between the current size and the expected size is greater than a preset difference value; if so, abandoning the stretching once and changing to other substrates; otherwise, continuing the next stretching; until six stretchings are completed, the production of the electronic cigarette shell is completed. By adopting the scheme provided by the present invention, the side wall surface can obtain a more flexible thickness, enriching the shell types of electronic cigarettes, and enriching the production types of electronic cigarette products.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of manufacturing and processing, and in particular relates to a method and system for manufacturing an electronic cigarette shell. Background Art

[0002] The production process of electronic cigarette shells generally includes selecting suitable processing materials, designing the shape and size of the shell according to the function and appearance requirements of the electronic cigarette, taking into account the structural rationality of the shell and the feasibility of production and processing; according to the requirements of the shell design, making suitable molds, etc., processing into the shape and size of the shell, and surface treatment, etc.

[0003] Prior art, such as a Chinese patent with patent publication number CN 106058554 A, discloses a production process for a TYPE-C iron shell, which punches holes, cuts the shape, stretches, and flattens the USB TYPE-C iron shells at the left and right ends of a metal strip in sequence to achieve strong rigidity, uniform stiffness, and a product that is not easily damaged.

[0004] However, the processing of electronic cigarette shells does not only consider the single overall rigidity and strength requirements. Since the thickness and strength requirements of the electronic cigarette shell are mainly concentrated at the bottom, this position also needs to be tightened in the subsequent processing links. Therefore, if the bottom strength is not enough, the subsequent processing cannot be completed. In the previous processing process, since the outer diameter and inner diameter of the product, the side wall thickness has been fixed and cannot be changed, the normal stretching of the bottom wall thickness and the side wall thickness can only differ by about 40% at most. The side wall surface cannot obtain a more flexible thickness, that is, a size far smaller than the bottom thickness, which directly leads to the limitation of the types of electronic cigarette products produced. Summary of the invention

[0005] In order to solve the technical problem that in the current stretching process, the outer diameter and inner diameter of the product and the side wall thickness have been fixed and cannot be changed, the thickness of the stretched bottom wall and the side wall thickness can only differ by about 40% at most, and the side wall surface cannot obtain a more flexible thickness, which directly leads to a relatively single type of electronic cigarette shells and limited types of electronic cigarette product production, the present invention provides a method and system for manufacturing an electronic cigarette shell.

[0006] First aspect

[0007] The present invention provides a method for manufacturing an electronic cigarette shell, comprising:

[0008] S1: Obtaining the original size of the substrate and the target shell size of the electronic cigarette shell to be manufactured;

[0009] S2: according to the original size and the target shell size, determining the expected size and corresponding stretching control parameters for each stretching through a six-step stretching parameter determination model;

[0010] S3: stretching the substrate six times according to the stretching parameters during each stretching;

[0011] S4: after each stretching, obtaining a cross-sectional image, and determining a current size according to the cross-sectional image;

[0012] S5: Determine whether the difference between the current size and the expected size is greater than a preset difference value; if so, abandon the next stretching and change to another substrate; otherwise, continue with the next stretching; until six stretchings are completed, the production of the electronic cigarette shell is completed.

[0013] Second aspect

[0014] The present invention provides a system for manufacturing an electronic cigarette shell, comprising a processor and a memory for storing processor executable instructions; the processor is configured to call the instructions stored in the memory to execute the method for manufacturing the electronic cigarette shell in the first aspect.

[0015] Compared with the prior art, the present invention has at least the following beneficial technical effects:

[0016] (1) In the present invention, the expected size and the corresponding stretching control parameters at each stretching are accurately determined through a six-step stretching parameter determination model, so that the substrate undergoes six specific stretchings, so that the length of the barrel is extended, the thickness of the barrel side wall is orderly reduced, and the thickness of the barrel bottom remains unchanged, and finally an electronic cigarette shell of a target size is formed. After testing, the difference between the side wall thickness and the barrel bottom thickness of the solution provided by the present invention is more than 90%, and the side wall surface can obtain a more flexible thickness, enriching the types of electronic cigarette shells, and further, can enrich the production types of electronic cigarette products.

[0017] (2) In the present invention, by checking the current size and judging whether it meets expectations based on image processing after each stretching, further processing of unqualified products can be avoided, thereby improving material utilization. At the same time, it helps to monitor product quality in real time, discover potential problems in time and take corrective measures to ensure that the produced electronic cigarette shell meets quality standards. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The preferred implementation modes will be described below in a clear and understandable manner with reference to the accompanying drawings, and the above-mentioned characteristics, technical features, advantages and implementation methods of the present invention will be further described.

[0019] Figure 1 It is a schematic flow chart of a method for manufacturing an electronic cigarette shell provided by the present invention.

[0020] Figure 2 It is a schematic diagram of the multiple stretching principle of the electronic cigarette shell processing provided by the present invention.

[0021] Figure 3 It is a schematic diagram of a stretching process of an electronic cigarette shell provided by the present invention.

[0022] Figure 4 It is a schematic diagram of another stretching process of an electronic cigarette shell provided by the present invention.

[0023] Figure 5 It is a structural schematic diagram of a system for manufacturing an electronic cigarette shell provided by the present invention. DETAILED DESCRIPTION

[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.

[0025] Example 1

[0026] In one embodiment, the reference specification Figure 1 , which shows a schematic diagram of a process for manufacturing an electronic cigarette shell provided by the present invention. Figure 2 , which shows a schematic diagram of the multiple stretching principle of the electronic cigarette shell processing provided by the present invention. Figure 3 , which shows a schematic diagram of the stretching process of an electronic cigarette shell provided by the present invention. Figure 4 , showing a schematic diagram of the stretching process of another electronic cigarette shell provided by the present invention.

[0027] The present invention provides a method for manufacturing an electronic cigarette shell, comprising:

[0028] S1: Obtain the original size of the substrate and the target shell size of the electronic cigarette shell to be manufactured.

[0029] The present invention takes the selection of a cylindrical substrate with an original diameter of 75 mm to manufacture an electronic cigarette shell with a target diameter of 30 mm as an example for subsequent description.

[0030] S2: According to the original size and the target shell size, the expected size and corresponding stretching control parameters for each stretching are determined through a six-step stretching parameter determination model.

[0031] The target shell size includes side wall thickness, shell diameter, shell length, etc. In the present invention, shell diameter is often used for explanation for ease of understanding.

[0032] Among them, the stretching control parameters include: tensile strength, oil dripping amount and temperature.

[0033] Continuing with the above example, taking the selection of a cylindrical substrate with an original diameter of 75 mm to make an electronic cigarette shell with a target diameter of 30 mm as an example, the expected size of each stretching and some stretching control parameters are as follows in Table 1:

[0034] Table 1

[0035]

[0036] In the present invention, the expected size and corresponding stretching control parameters of each stretching are accurately determined through a six-step stretching parameter determination model, so that the substrate undergoes six specific stretchings, so that the length of the barrel is extended, the thickness of the barrel side wall is orderly reduced, and the thickness of the barrel bottom remains unchanged, and finally an electronic cigarette shell of a target size is formed. After testing, the difference between the side wall thickness and the barrel bottom thickness of the solution provided by the present invention is more than 90%, and the side wall surface can obtain a more flexible thickness, enriching the types of electronic cigarette shells, and further, can enrich the production types of electronic cigarette products.

[0037] In a possible implementation, S2 specifically includes sub-steps S201 to S204:

[0038] S201: Inputting the original size and the target shell size into the six-step stretching parameter determination model.

[0039] S202: Six-step stretching parameter determination model determines the expected size of each stretch according to the production stretch coefficient:

[0040] d i =d0-α i (d0-d*)

[0041] Among them, d i represents the expected size after the i-th stretching, d0 represents the original size of the substrate, d represents the target shell size, and α i It represents the production elongation coefficient during the i-th stretching, i=1,2,…,6.

[0042] In the present invention, by inputting the original size and the target shell size into the six-step stretching parameter determination model and using the manufacturing elongation coefficient, the expected size at each stretching can be accurately determined. This ensures accurate control of the shell size during the manufacturing process and helps to meet the design requirements.

[0043] In a possible implementation, the training method of the six-step stretching parameter determination model is:

[0044] With the goal of achieving the highest success rate, the objective function of the six-step stretching parameter determination model is constructed:

[0045]

[0046] Where F() represents the objective function, A represents the set of production extension coefficients, A={α i}, max() represents the maximum value function, s represents the production success rate, n1 represents the total number of successes, and N1 represents the total number of productions.

[0047] Set the six-step stretching parameters to determine the constraints of the model.

[0048] Among them, the constraints include: preliminary stretching constraint, completion constraint, stretching coefficient constraint and ultimate stretching coefficient constraint.

[0049] The initial stretch constraints are as follows:

[0050] α1≤λ·Δr

[0051] Here, α1 represents the manufacturing elongation coefficient during the first stretching, λ represents the anisotropic safety factor, and Δr represents the planar anisotropy coefficient of the substrate.

[0052] It should be noted that the initial stretching constraint limits the production elongation coefficient during the first stretching, ensuring that there will be no excessive deformation in the initial stage of stretching and preventing uncontrollable deformation.

[0053] In the present invention, by limiting the initial stretching, the deformation of the product shape can be controlled at the early stage, which helps to avoid irreversible deformation problems in the subsequent stretching stage.

[0054] In a possible implementation, the planar anisotropy coefficient Δr of the substrate is calculated as follows:

[0055] Obtain the width strain and thickness strain of the substrate in a normal tensile test:

[0056] ε b =ln(b / b0)

[0057] ε t =ln(t / t0)=ln[l0b0 / (lb)]

[0058] Among them, ε b represents width strain, ln represents logarithmic function with e as base, b represents the width of the substrate after stretching, b0 represents the original width of the substrate, ε t represents thickness strain, t represents the thickness of the substrate after stretching, t0 represents the thickness of the original substrate, l represents the length of the score line after stretching, and l0 represents the length of the score line of the original substrate.

[0059] According to the width strain and thickness strain, the anisotropy coefficient of the substrate is calculated:

[0060]

[0061] Where r represents the anisotropy coefficient.

[0062] According to the anisotropy coefficients in the three directions parallel to the rolling direction, with an angle of 45° and perpendicular to each other, the plane anisotropy coefficient is calculated:

[0063]

[0064] Among them, Δr represents the plane anisotropy coefficient of the substrate, r0 represents the anisotropy coefficient in the direction parallel to the rolling direction, and r 45 It represents the anisotropy coefficient in the direction with an angle of 45° to the rolling direction, r 90 Represents the anisotropy coefficient in the direction perpendicular to the rolling direction.

[0065] In the present invention, by calculating the anisotropy coefficient in three directions parallel to the rolling direction, at an angle of 45°, and perpendicular to each other, the deformation characteristics of the substrate can be fully understood, providing a scientific basis for optimizing the manufacturing process and improving product quality.

[0066] The completion constraints are as follows:

[0067]

[0068] Where d* represents the target shell size, d6 represents the expected size after the sixth stretch, and ε represents the preset error rate.

[0069] Among them, those skilled in the art can set the size of the preset error rate ε according to actual conditions, and the present invention does not limit it.

[0070] It should be noted that the completion constraint ensures that the error between the final size of the product and the target shell size is within an acceptable range, ensuring that the product reaches the expected size.

[0071] In the present invention, by limiting the error between the final size and the target size, it is possible to ensure that the product quality and specifications meet expectations and improve production consistency.

[0072] The specific stretch factor constraints are:

[0073] m i >m i+1

[0074] Among them, m i represents the stretching coefficient during the i-th stretching, m i+1 Indicates the stretching coefficient during the (i+1)th stretching.

[0075] It should be noted that the stretch coefficient constraint ensures that the stretch coefficient of each stretching is performed in descending order to control the degree of deformation and avoid uneven deformation caused by excessive stretching.

[0076] In the present invention, by limiting the decrease of the stretch coefficient, the overall shape change of the product can be controlled, so that the deformation is more uniform, and the consistency of the product appearance and performance is improved.

[0077] The ultimate tensile coefficient constraint is specifically:

[0078] m i ≤m*

[0079] Wherein, m* represents the ultimate tensile coefficient.

[0080] It should be noted that the ultimate stretch coefficient constraint ensures that the stretch coefficient of each stretch is always less than the ultimate stretch coefficient, avoiding exceeding the ultimate strength of the material and ensuring the safety of the stretching process.

[0081] In the present invention, by setting the limit stretching coefficient, the material can be prevented from breaking during the stretching process, thereby ensuring the controllability and safety of the manufacturing process.

[0082] Under the constraints, the optimal set of production extension coefficients is determined based on an improved genetic algorithm with the goal of maximizing the function value of the objective function.

[0083] In the present invention, with the goal of maximizing the production success rate, a clear objective function is constructed and an improved genetic algorithm is introduced for optimization, in order to find the optimal set of production extension coefficients, and then the processing and production are carried out through the optimal set of production extension coefficients to improve the production success rate and reduce the production of unqualified products, thereby promoting the optimization, automation and efficiency improvement of the production process.

[0084] In a possible implementation, under the constraints of the constraints, with the goal of maximizing the function value of the objective function, based on the improved genetic algorithm, the optimal set of production extension coefficients is determined, specifically including:

[0085] Based on the best point method, the population is initialized, and the population includes multiple individuals, each of which represents a feasible set of production extension coefficients.

[0086] In a possible implementation, based on the best point method, the population is initialized, specifically including:

[0087] Determine the best point:

[0088] C=(c1,c2,···,c6),c i =mod(2cos(2πi / 6),1)

[0089] Wherein, c represents a good point, i=1,2,…,6, mod represents a modular operation, and cos() represents a cosine function.

[0090] Construct a good point set:

[0091] P(C j )={C1,C2,…,C n}

[0092] Among them, P represents the good point set, C j represents the jth good point, j = 1, 2, ..., n, n represents the number of good points. Map the good point set to the definition domain of the population and initialize the population:

[0093] A j =a k +C j (b k -a k )

[0094] Among them, A j Indicates that the good point C j The individuals formed after mapping to the domain of the population, a k represents the lower limit of the kth dimension, b k Represents the upper limit of the k-th dimension.

[0095] In the present invention, by determining a set of optimal points and using them as the basis for the initial population, a set of representative individuals can be established in the search space, which helps to start the global search from a relatively good position and improves the initial search efficiency of the algorithm. At the same time, the optimal point method introduces a certain degree of certainty. Compared with a completely random initial population, such an initialization method can reduce the impact of randomness on the performance of the algorithm. This helps to optimize more stably for some problems, especially when the search space is large.

[0096] The objective function of the model determined by the six-step stretching parameters is used as the fitness function of the improved genetic algorithm to calculate the fitness value of each individual.

[0097] The elite retention strategy is adopted to remove the 10% individuals with the lowest fitness values.

[0098] In the present invention, an elite retention strategy is adopted to ensure that a part of individuals with the highest fitness values ​​are retained in each generation, which prevents information loss, helps to maintain the dominant genes of the population, and accelerates the process of convergence to a better solution.

[0099] Randomly select two individuals, generate a random number, compare the random number with the crossover probability, and when the random number is greater than the crossover probability, perform a gene crossover operation to generate a new individual:

[0100] A1=r1×a1+(1-r1)×a2

[0101] A2=r1×a2+(1-r1)×a1

[0102] Among them, A1 and A2 represent new individuals, a1 and a2 represent old individuals, and r1 represents a random number between 0 and 1.

[0103] In the present invention, two individuals are randomly selected for crossover operation, and mutation is performed according to random numbers and mutation probability, which helps to introduce diversity and explore a wider search space. Such dynamic adjustment improves the flexibility and adaptability of the algorithm.

[0104] Randomly select some individuals, generate a random number, compare the random number with the mutation probability, and when the random number is greater than the mutation probability, perform gene mutation operation to generate new individuals:

[0105]

[0106] Among them, A3 represents the new individual, a3 represents the old individual, and a max Indicates the individual with the largest current fitness value, a min represents the individual with the smallest current fitness value, and r2 represents a random number between 0 and 1.

[0107] In the present invention, the mutation operation can introduce new genetic information, and by making small random changes to the genes of an individual, it helps to introduce new possible solutions in the search space. This helps the algorithm to explore the solution space more comprehensively and avoid falling into the local optimal solution.

[0108] In a possible implementation, the mutation probability is specifically:

[0109]

[0110] Among them, P represents the mutation probability of the current individual, P max represents the maximum mutation probability, P min represents the minimum mutation probability, F represents the fitness of the current individual, and F avg represents the average fitness of the population, F max Represents the maximum fitness among individuals.

[0111] In the present invention, when the population fitness is high, the probability of mutation tends to be smaller, which helps to maintain the excellence of the individual; while when the fitness is poor, the probability of mutation increases, which helps to increase the diversity of the population and prompt the algorithm to explore the search space more comprehensively. At the same time, the range of the probability of mutation is larger when the population fitness is poor, so that the individual mutation can be more flexible in the search space, which helps to better balance exploration and utilization in the optimization process.

[0112] Determine whether the maximum number of iterations has been reached. If so, take the individual with the largest fitness value among the current individuals as the optimal set of production extension coefficients and output it. Otherwise, continue iterating.

[0113] In the present invention, the genetic algorithm can perform global search by randomly generating and evolving individuals, which helps to find the optimal solution among many possible combinations of production extension coefficients, and can ensure that a more effective set of production extension coefficients is found, thereby improving the efficiency and success rate of the entire production process.

[0114] S203: Determine the stretching coefficient for each stretching according to the expected size for each stretching.

[0115]

[0116] Among them, m i represents the stretching coefficient during the i-th stretching.

[0117] S204: Determine the stretching control parameters for each stretching by using a table lookup method according to the expected size and stretching coefficient for each stretching.

[0118] Among them, the table lookup method is a method of obtaining information by looking up a pre-established table or database. Before production, a table is established through experiments or simulations, containing different combinations of expected sizes and stretch coefficients, and the associated stretch control parameters. This table can be a two-dimensional array or a relational database. During each stretching, the table lookup method is used to query the table according to the current expected size and stretch coefficient to find the corresponding stretch control parameters.

[0119] In the present invention, the expected size and stretch coefficient are mapped to specific stretch control parameters, which improves the efficiency of calculation. The table lookup method can usually find the required parameter value more quickly in the case of a large amount of data, which helps to optimize the production process.

[0120] S3: The substrate is stretched six times according to the stretching parameters during each stretching.

[0121] S4: After each stretching, a cross-sectional image is obtained, and the current size is determined according to the cross-sectional image.

[0122] Specifically, by acquiring cross-sectional images, the dimensional changes of the e-cigarette housing can be monitored in real time, which helps to detect any dimensional deviation or deformation in the manufacturing process in a timely manner, so that corrective measures can be taken early. Real-time monitoring helps ensure that the products produced meet the expected quality standards.

[0123] In a possible implementation, S4 specifically includes sub-steps S401 and S402:

[0124] S401: extracting the shell contour in the cross-sectional image.

[0125] In a possible implementation, sub-step S401 specifically includes sub-steps S4011 to S4016:

[0126] S4011: Introduce the Sobel operator to obtain the horizontal feature matrix and vertical feature matrix of the cross-sectional image:

[0127]

[0128]

[0129] Among them, S x represents the horizontal feature matrix, S y represents the vertical feature matrix.

[0130] Among them, the Sobel operator is an edge detection operator commonly used in image processing, which is used to find the area with the most significant change in grayscale intensity in the image, so as to locate the edge in the image. The operator uses convolution operation to calculate the gradient of the image in order to detect the boundary in the image.

[0131] S4012: Calculate the horizontal gradient and the vertical gradient according to the horizontal feature matrix and the vertical feature matrix:

[0132] G x =S x I

[0133] G y =S y I

[0134] Among them, G x represents the horizontal gradient, G y Represents the vertical gradient, and I represents the gray value matrix of the battery cell image.

[0135] S4013: Calculate the gradient strength and gradient direction of the pixel:

[0136]

[0137]

[0138] Among them, G represents the gradient strength and θ represents the gradient direction.

[0139] In the present invention, the Sobel operator and gradient calculation are helpful to detect edge information in the image. By calculating the gradient, the position where the pixel value changes most drastically in the image can be found, thereby locating the shell edge of the cross-sectional image.

[0140] S4014: When there are multiple gradient information in the cross-sectional image, retain the maximum pixel points and suppress the non-maximum pixel points.

[0141] In the present invention, by calculating the gradient and the gradient direction, and suppressing the non-maximum pixel points, it is possible to filter out the unclear edge information, thereby improving the accuracy of contour extraction, which helps to ensure that the extracted shell contour accurately reflects the actual shape.

[0142] S4015: Set a high threshold and a low threshold. When the gradient strength of a pixel is greater than the high threshold, the pixel is determined to be a strong edge pixel. When the gradient strength of a pixel is between the low threshold and the high threshold, the pixel is determined to be a weak edge pixel. When the edge pixel gradient value of a pixel is less than the low threshold, the pixel is suppressed.

[0143] Among them, those skilled in the art can set the size of the high threshold and the low threshold according to actual conditions, and the present invention does not limit this.

[0144] In the present invention, high and low thresholds are used to classify pixels according to their gradient strength, so that the algorithm has better adaptability to images in different regions. This helps to overcome the influence of factors such as illumination changes and noise in images on contour extraction.

[0145] S4016: Connect strong edge pixels to obtain the shell contour.

[0146] In the present invention, a continuous shell contour can be obtained by connecting strong edge pixel points. Such a processing method helps to avoid the breakage of the contour, ensures that the contour is complete, and provides accurate input data for subsequent shape fitting.

[0147] S402: Based on the least square method, a circular fitting is performed on the shell contour to determine the current diameter.

[0148] Among them, the least squares method is a mathematical optimization technique for estimating parameters, and its goal is to find the optimal parameter value by minimizing the residual sum of squares of the observed data.

[0149] In a possible implementation, sub-step S402 specifically includes sub-steps S4021 to S4026:

[0150] S4021: Determine the circular equation to be fitted based on the least squares method:

[0151]

[0152] Right now,

[0153] Among them, D represents the diameter and (A,B) represents the diameter.

[0154] S4022: Order:

[0155]

[0156] Then, the circular equation to be fitted is organized as:

[0157]

[0158] S4023: Determine the deviation function between each edge point and the fitted circle:

[0159]

[0160] Where E represents the deviation function of the least squares method, e i represents the deviation between the i-th edge point and the point on the fitting circle, (x i ,y i ) represents the coordinate value of the i-th edge point.

[0161] In the present invention, the deviation function is used to measure the difference between the fitted circle and the actual data points. By defining the deviation function, the quality of the fit can be quantified, providing a clear target for the subsequent least squares method.

[0162] S4024: Find the partial derivatives of each coefficient in the deviation function:

[0163]

[0164] In the present invention, finding partial derivatives is one of the key steps of the least squares method. By performing partial derivatives on the coefficients in the deviation function, a system of equations can be obtained, and by solving this system of equations, the parameters that minimize the residual sum of squares can be found.

[0165] S4025: Order:

[0166]

[0167] Solve the equation to find p, q, and t.

[0168] S4026: Calculate the current diameter according to the following formula:

[0169]

[0170] In the present invention, the method of automatically extracting the shell contour and circular fitting is adopted to realize the automatic detection of the size of the electronic cigarette shell. This helps to reduce manual intervention, improve the degree of automation on the production line, and reduce possible human errors. At the same time, by measuring the shell contour after each stretching, real-time monitoring of dimensional changes can be achieved. Any shape or size variation can be discovered in time so that adjustments or corrections can be made throughout the manufacturing process to ensure that the product meets the specifications.

[0171] S5: Determine whether the difference between the current size and the expected size is greater than the preset difference value. If so, give up the next stretching and change to another substrate. Otherwise, continue with the next stretching. Until six stretchings are completed, the production of the electronic cigarette shell is completed.

[0172] Among them, those skilled in the art can set the size of the preset difference value according to actual conditions, and the present invention does not limit it.

[0173] In the present invention, by checking the current size and judging whether it meets expectations based on image processing after each stretching, further processing of unqualified products can be avoided, thereby improving material utilization. At the same time, it helps to monitor product quality in real time, discover potential problems in time and take corrective measures to ensure that the produced electronic cigarette shell meets quality standards.

[0174] Compared with the prior art, the present invention has at least the following beneficial technical effects:

[0175] (1) In the present invention, the expected size and the corresponding stretching control parameters at each stretching are accurately determined through a six-step stretching parameter determination model, so that the substrate undergoes six specific stretchings, so that the length of the barrel is extended, the thickness of the barrel side wall is orderly reduced, and the thickness of the barrel bottom remains unchanged, and finally an electronic cigarette shell of a target size is formed. After testing, the difference between the side wall thickness and the barrel bottom thickness of the solution provided by the present invention is more than 90%, and the side wall surface can obtain a more flexible thickness, enriching the types of electronic cigarette shells, and further, can enrich the production types of electronic cigarette products.

[0176] (2) In the present invention, by checking the current size and judging whether it meets expectations based on image processing after each stretching, further processing of unqualified products can be avoided, thereby improving material utilization. At the same time, it helps to monitor product quality in real time, discover potential problems in time and take corrective measures to ensure that the produced electronic cigarette shell meets quality standards.

[0177] Example 2

[0178] In one embodiment, the reference specification Figure 5 , showing a structural schematic diagram of a system for manufacturing an electronic cigarette shell provided by the present invention.

[0179] The present invention provides a system for manufacturing an electronic cigarette shell, comprising a processor 201 and a memory 202 for storing executable instructions of the processor 201. The processor 201 is configured to call the instructions stored in the memory 202 to execute the method for manufacturing the electronic cigarette shell in Example 1.

[0180] The electronic cigarette shell manufacturing system provided by the present invention can realize the steps and effects of the electronic cigarette shell manufacturing method in the above-mentioned embodiment 1, and to avoid repetition, the present invention will not elaborate on it.

[0181] Compared with the prior art, the present invention has at least the following beneficial technical effects:

[0182] (1) In the present invention, the expected size and the corresponding stretching control parameters at each stretching are accurately determined through a six-step stretching parameter determination model, so that the substrate undergoes six specific stretchings, so that the length of the barrel is extended, the thickness of the barrel side wall is orderly reduced, and the thickness of the barrel bottom remains unchanged, and finally an electronic cigarette shell of a target size is formed. After testing, the difference between the side wall thickness and the barrel bottom thickness of the solution provided by the present invention is more than 90%, and the side wall surface can obtain a more flexible thickness, enriching the types of electronic cigarette shells, and further, can enrich the production types of electronic cigarette products.

[0183] (2) In the present invention, by checking the current size and judging whether it meets expectations based on image processing after each stretching, further processing of unqualified products can be avoided, thereby improving material utilization. At the same time, it helps to monitor product quality in real time, discover potential problems in time and take corrective measures to ensure that the produced electronic cigarette shell meets quality standards.

[0184] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0185] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for manufacturing an electronic cigarette shell, characterized in that: include: S1: Obtaining the original size of the substrate and the target shell size of the electronic cigarette shell to be manufactured; S2: according to the original size and the target shell size, determining the expected size and corresponding stretching control parameters for each stretching through a six-step stretching parameter determination model; S3: stretching the substrate six times according to the stretching parameters during each stretching; S4: after each stretching, obtaining a cross-sectional image, and determining a current size according to the cross-sectional image; S5: Determine whether the difference between the current size and the expected size is greater than a preset difference value; if so, abandon the further stretching and change to another substrate; Otherwise, proceed to the next stretch; After six stretches, the electronic cigarette shell is completed; The S2 specifically includes: S201: inputting the original size and the target shell size into the six-step stretching parameter determination model; S202: The six-step stretching parameter determination model determines the expected size of each stretching according to the production stretch coefficient: d i =d0-α i ·(d0-d*) Among them, d i represents the expected size after the i-th stretching, d0 represents the original size of the substrate, d* represents the target shell size, and α i represents the production elongation coefficient during the i-th stretching, i=1,2,L,6; S203: Determine a stretching coefficient for each stretching according to an expected size for each stretching; Among them, m i represents the stretching coefficient during the i-th stretching; S204: Determine the stretching control parameters for each stretching by using a table lookup method according to the expected size and stretching coefficient for each stretching; The S4 specifically includes: S401: extracting the shell contour in the cross-sectional image; S402: performing circular fitting on the shell profile based on the least square method to determine the current diameter; The S401 specifically includes: S4011: Introduce the Sobel operator to obtain the horizontal feature matrix and the vertical feature matrix of the cross-sectional image: Among them, S x represents the horizontal feature matrix, S y represents the vertical feature matrix; S4012: Calculate the horizontal gradient and the vertical gradient according to the horizontal feature matrix and the vertical feature matrix: G x =S x I G y =S y I Among them, G x represents the horizontal gradient, G y represents the vertical gradient, and I represents the gray value matrix of the cell image; S4013: Calculate the gradient strength and gradient direction of the pixel: Among them, G represents the gradient strength and θ represents the gradient direction; S4014: when the cross-sectional image has multiple gradient information, retaining maximum pixel points and suppressing non-maximum pixel points; S4015: Setting a high threshold and a low threshold, when the gradient strength of a pixel point is greater than the high threshold, determining the pixel point as a strong edge pixel point; when the gradient strength of a pixel point is between the low threshold and the high threshold, determining the pixel point as a weak edge pixel point; when the edge pixel gradient value of a pixel point is less than the low threshold, suppressing the pixel point; S4016: Connect the strong edge pixel points to obtain the shell contour; The S402 specifically includes: S4021: Determine the circular equation to be fitted based on the least squares method: Right now, Where D represents diameter, (A,B) represents diameter; S4022: Order: Then, the circular equation to be fitted is organized as: S4023: Determine the deviation function between each edge point and the fitted circle: Where E represents the deviation function of the least squares method, e i represents the deviation between the i-th edge point and the point on the fitting circle, (x i ,y i ) represents the coordinate value of the i-th edge point; S4024: Find the partial derivatives of each coefficient in the deviation function: S4025: Order: Solve the equation to obtain p, q and t; S4026: Calculate the current diameter according to the following formula: The training method of the six-step stretching parameter determination model is: With the goal of achieving the highest success rate, the objective function of the six-step stretching parameter determination model is constructed: Where F() represents the objective function, A represents the set of production extension coefficients, A={α i }, max() represents the maximum value function, s represents the production success rate, n1 represents the total number of successes, and N1 represents the total number of productions; Setting the constraints of the six-step stretching parameter determination model, the constraints include: preliminary stretching constraint, completion constraint, stretching coefficient constraint and ultimate stretching coefficient constraint; The preliminary stretching constraints are specifically: α1≤λ·Δr Among them, α1 represents the production elongation coefficient during the first stretching, λ represents the anisotropic safety factor, and Δr represents the plane anisotropy coefficient of the substrate; The completion constraints are specifically: Where d* represents the target shell size, d6 represents the expected size after the sixth stretch, and ε represents the preset error rate; The stretch factor constraint is specifically: m i >m i+1 Among them, m i represents the stretching coefficient at the i-th stretching, m i+1 represents the stretching coefficient during the i+1th stretching; The ultimate tensile coefficient constraint is specifically: m i ≤m* Wherein, m* represents the ultimate tensile coefficient; Under the constraint of the constraint condition, with the goal of maximizing the function value of the objective function, based on the improved genetic algorithm, determine the optimal set of production extension coefficients; The method of determining the optimal set of production extension coefficients based on an improved genetic algorithm under the constraints of the constraints and taking the maximum function value of the objective function as the goal specifically includes: Based on the best point method, a population is initialized, wherein the population includes a plurality of individuals, and each individual represents a feasible set of production extension coefficients; The objective function of the six-step stretching parameter determination model is used as the fitness function of the improved genetic algorithm to calculate the fitness value of each individual; Adopt the elite retention strategy to remove the 10% of individuals with the lowest fitness values; Randomly select two individuals, generate a random number, compare the random number with the crossover probability, and when the random number is greater than the crossover probability, perform a gene crossover operation to generate a new individual: A1=r1×a1+(1-r1)×a2 A2=r1×a2+(1-r1)×a1 Among them, A1 and A2 represent new individuals, a1 and a2 represent old individuals, and r1 represents a random number between 0 and 1; Randomly select some individuals, generate a random number, compare the random number with the mutation probability, and when the random number is greater than the mutation probability, perform a gene mutation operation to generate a new individual: Among them, A3 represents the new individual, a3 represents the old individual, and a max Indicates the individual with the largest current fitness value, a min represents the individual with the smallest current fitness value, and r2 represents a random number between 0 and 1; Determine whether the maximum number of iterations has been reached; if so, take the individual with the largest fitness value among the current individuals as the optimal set of production extension coefficients and output it; otherwise, continue iterating; The mutation probability is: Among them, P represents the mutation probability of the current individual, Pmax represents the maximum mutation probability, Pmin represents the minimum mutation probability, F represents the fitness of the current individual, Favg represents the average fitness of the population, and Fmax represents the maximum fitness among individuals.

2. The method for manufacturing an electronic cigarette shell according to claim 1, characterized in that: The calculation method of the planar anisotropy coefficient Δr of the substrate is: Obtain the width strain and thickness strain of the substrate in a normal tensile test: ε b =ln(b / b0) ε t =ln(t / t0)=ln[l0b0 / (lb)] Among them, ε b represents width strain, ln represents logarithmic function with e as base, b represents the width of the substrate after stretching, b0 represents the original width of the substrate, ε t represents thickness strain, t represents the thickness of the substrate after stretching, t0 represents the thickness of the original substrate, l represents the length of the score line after stretching, and l0 represents the length of the score line of the original substrate; According to the width strain and the thickness strain, the anisotropy coefficient of the substrate is calculated: Where r represents the anisotropy coefficient; According to the anisotropy coefficients in the three directions parallel to the rolling direction, with an angle of 45° and perpendicular to each other, the plane anisotropy coefficient is calculated: Among them, Δr represents the plane anisotropy coefficient of the substrate, r0 represents the anisotropy coefficient in the direction parallel to the rolling direction, and r 45 It represents the anisotropy coefficient in the direction with an angle of 45° to the rolling direction, r 90 Represents the anisotropy coefficient in the direction perpendicular to the rolling direction.

3. The method for manufacturing an electronic cigarette shell according to claim 2, characterized in that: The initialization of the population based on the best point method specifically includes: Determine the best point: C=(c1,c2,…,c6),c i =mod(2cos(2πi / 6),1) Wherein, c represents the optimal point, i = 1, 2, L, 6, mod represents the modular operation, and cos() represents the cosine function; Construct a good point set: P(C j )={C1,C2,L,C n } Among them, P represents the good point set, C j represents the jth best point, j = 1, 2, L, n, and n represents the number of good points; Map the good point set to the domain of the population and initialize the population: A j =a k +C j (b k -a k ) Among them, A j Indicates that the good point C j The individuals formed after mapping to the domain of the population, a k represents the lower limit of the kth dimension, b k Represents the upper limit of the k-th dimension.

4. A system for manufacturing an electronic cigarette shell, characterized in that: It comprises a processor and a memory for storing processor executable instructions; the processor is configured to call the instructions stored in the memory to execute the method for manufacturing the electronic cigarette shell according to any one of claims 1 to 3.