Automatic typesetting method and device for photovoltaic silk screen plate, electronic equipment and storage medium
Through automated photovoltaic screen printing screen board image stitching and grid line alignment technology, the problems of low efficiency and large error of existing photovoltaic screen printing screen boards are solved, and an efficient and stable automatic layout process is achieved.
Patent Information
- Application Number
- CN202311798344.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-25
- Publication Date
- 2025-07-08
AI Technical Summary
The existing photovoltaic screen printing screen panel layout methods are inefficient and prone to typesetting errors, which are mainly due to the need for manual observation and alignment of film sheets and screen panels, resulting in poor visual fatigue and stability.
By obtaining multiple photovoltaic screen printing screen images and their machine coordinates, performing splicing and target area extraction, using the pixel coordinate system to align the grid lines and target area, and using the machine coordinates of the marking points to determine the layout results, realizing automatic layout.
The stable and batch operation of photovoltaic screen printing screen boards has been achieved, the material costs have been reduced, the layout errors caused by manual comparison have been avoided, and the efficiency has been improved.
Smart Images

Figure CN120278876A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of screen printing, and particularly to an automatic layout method, device, electronic device and storage medium for photovoltaic screen printing stencils. Background Art
[0002] In the existing photovoltaic screen printing stencil layout method, the stencil is first placed on a light-emitting platform, and then the film is placed on the stencil. An operator observes the stencil through an electron microscope. After aligning the pattern on the film with the wire gap parallel to the grid line direction on the stencil, the film is fixed with adhesive tape to complete the layout of the photovoltaic screen printing stencil. The existing photovoltaic screen printing stencil layout method requires manual observation to align the pattern on the film with the wire gap parallel to the grid line direction on the stencil, which is difficult to operate stably and in batches, with low efficiency. Moreover, manual observation of the light-emitting platform is prone to visual fatigue, resulting in layout errors. Summary of the Invention
[0003] In view of this, it is necessary to provide an automatic layout method, device, electronic device and storage medium for photovoltaic screen printing stencils to solve the technical problems of low efficiency and easy occurrence of layout errors in the existing photovoltaic screen printing stencil layout method.
[0004] To achieve the above object, the present invention provides an automatic layout method for photovoltaic screen printing stencils, including:
[0005] Obtaining multiple photovoltaic screen printing stencil images and the corresponding machine coordinates for each photovoltaic screen printing stencil image;
[0006] Stitching the multiple photovoltaic screen printing stencil images to obtain a stencil stitching image;
[0007] Extracting a target area from the stencil stitching image, and in the pixel coordinate system corresponding to the photovoltaic screen printing stencil image, aligning the corresponding grid lines with the target area based on the grid line position data to obtain a stencil stitching image with the grid lines arranged; the target area is a wire gap area parallel to the grid line direction;
[0008] Based on the multiple photovoltaic screen printing stencil images, the corresponding machine coordinates for each photovoltaic screen printing stencil image, and the coordinates of the marking points in the pixel coordinate system, determining the corresponding machine coordinates of the marking points;
[0009] Based on the stencil stitching image with the grid lines arranged and the corresponding machine coordinates of the marking points, determining the layout result corresponding to the multiple photovoltaic screen printing stencil images.
[0010] Further, in the pixel coordinate system corresponding to the photovoltaic screen printing stencil image, based on the grid line position data, aligning the corresponding grid lines with the target area to obtain a stencil splicing image with the grid lines arranged therein includes:
[0011] Obtaining the relative position of the grid lines and the relative position of the marking points;
[0012] Converting the relative position of the grid lines and the relative position of the marking points to the pixel coordinate system to obtain the grid line pixel coordinates and the marking point pixel coordinates;
[0013] Based on the grid line pixel coordinates and the marking point pixel coordinates, controlling the movement of the grid lines in the pixel coordinate system so that each grid line is located in the corresponding target area to obtain a stencil splicing image with the grid lines arranged therein.
[0014] Further, before controlling the movement of the grid lines in the pixel coordinate system, it further includes:
[0015] Arranging the target areas corresponding to each photovoltaic screen printing stencil image in the stencil splicing image according to the coordinates of each photovoltaic screen printing stencil image in the pixel coordinate system.
[0016] Further, the relative position of the grid lines is the position of the grid lines relative to the reference point; the relative position of the marking points is the position of the marking points relative to the reference point; the reference point is the midpoint of any grid line.
[0017] Further, determining the machine coordinates corresponding to the marking points based on the multiple photovoltaic screen printing stencil images, the machine coordinates corresponding to each photovoltaic screen printing stencil image, and the coordinates of the marking points in the pixel coordinate system includes:
[0018] Based on the multiple photovoltaic screen printing stencil images, the machine coordinates corresponding to each photovoltaic screen printing stencil image, and the camera parameters corresponding to the captured photovoltaic screen printing stencil image, determining the relationship between the machine coordinate system, the camera coordinate system, and the pixel coordinate system;
[0019] Based on the coordinates of the marking points in the pixel coordinate system and the relationship between the machine coordinate system, the camera coordinate system, and the pixel coordinate system, determining the machine coordinates corresponding to the marking points.
[0020] Further, determining the machine coordinates corresponding to the marking points based on the coordinates of the marking points in the pixel coordinate system and the relationship between the machine coordinate system, the camera coordinate system, and the pixel coordinate system includes:
[0021] Based on the relationships among the machine coordinate system, the camera coordinate system, and the pixel coordinate system, after converting the coordinates of the marking points in the pixel coordinate system to the coordinates in the camera coordinate system, the coordinates of the marking points in the camera coordinate system are then converted to the corresponding machine coordinates of the marking points.
[0022] Further, the number of the marking points is at least two.
[0023] The present invention also provides a photovoltaic screen printing stencil automatic typesetting device, including:
[0024] An acquisition module, configured to acquire multiple photovoltaic screen printing stencil images and the corresponding machine coordinates of each photovoltaic screen printing stencil image;
[0025] A splicing module, configured to splice the multiple photovoltaic screen printing stencil images to obtain a stencil splicing image;
[0026] An alignment module, configured to extract a target area in the stencil splicing image, and in the pixel coordinate system corresponding to the photovoltaic screen printing stencil image, align the corresponding grid lines with the target area based on the grid line position data to obtain a stencil splicing image with grid lines arranged; the target area is a wire gap area parallel to the grid line direction;
[0027] A coordinate determination module, configured to determine the corresponding machine coordinates of the marking points based on the multiple photovoltaic screen printing stencil images, the corresponding machine coordinates of each photovoltaic screen printing stencil image, and the coordinates of the marking points in the pixel coordinate system;
[0028] A typesetting result determination module, configured to determine the typesetting result corresponding to the multiple photovoltaic screen printing stencil images based on the stencil splicing image with grid lines arranged and the corresponding machine coordinates of the marking points.
[0029] The present invention also provides an electronic device, including a memory and a processor, wherein,
[0030] The memory is configured to store a program;
[0031] The processor is coupled to the memory and is configured to execute the program stored in the memory to implement the steps in the photovoltaic screen printing stencil automatic typesetting method as described in any one of the above.
[0032] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the photovoltaic screen printing stencil automatic typesetting method as described in any one of the above.
[0033] The beneficial effects of the above implementation method are as follows: The automatic layout method for photovoltaic screen printing stencils provided by the present invention obtains multiple photovoltaic screen printing stencil images and the corresponding machine coordinates of each photovoltaic screen printing stencil image, thereby obtaining the corresponding stencil splicing image; extracts the target area in the stencil splicing image, and in the pixel coordinate system corresponding to the photovoltaic screen printing stencil image, based on the grid line position data, aligns the corresponding grid lines with the target area to obtain the stencil splicing image with grid lines arranged. This process only requires obtaining image data and grid line position data, and does not require manual comparison of the film and the stencil; finally, based on the stencil splicing image with grid lines arranged and the machine coordinates corresponding to the marking points, determines the layout result corresponding to multiple photovoltaic screen printing stencil images.
[0034] The above layout process obtains the photovoltaic screen printing stencil images and the corresponding position data, and processes these data to obtain the layout result, without the need for manual comparison of the film and the stencil, reducing the material cost consumed in processing the film; through data processing, stable and batch operation can be achieved, and layout errors caused by human eye visual fatigue are also avoided. Therefore, the present invention solves the technical problems of low efficiency and easy occurrence of layout errors in the existing photovoltaic screen printing stencil layout methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0036] Figure 1 It is a flowchart of an embodiment of the automatic layout method for photovoltaic screen printing stencils provided by the present invention;
[0037] Figure 2 It is a schematic diagram of the stencil splicing image with grid lines arranged provided by the present invention;
[0038] Figure 3 It is a flowchart of another embodiment of the automatic layout method for photovoltaic screen printing stencils provided by the present invention;
[0039] Figure 4 It is a principle block diagram of an embodiment of the automatic layout device for photovoltaic screen printing stencils provided by the present invention;
[0040] Figure 5 It is a schematic structural diagram of an embodiment of the electronic device provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0041] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts belong to the protection scope of the present invention.
[0042] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "a plurality of" is two or more.
[0043] In the embodiments of the present invention, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, product or equipment that includes a series of steps or modules does not necessarily have to be limited to those clearly listed steps or modules, but may include other steps or modules that are not clearly listed or are inherent to these processes, methods, products or equipment.
[0044] In the embodiments of the present invention, the naming or numbering of steps does not mean that the steps in the method flow must be executed in the time / logical order indicated by the naming or numbering. The named or numbered process steps can be changed in the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.
[0045] Referring to "embodiments" herein means that the specific features, structures or characteristics described in connection with the embodiments may be included in at least one embodiment of the present invention. The phrase appears in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.
[0046] The present invention provides an automatic layout method, device, electronic device and storage medium for a photovoltaic screen printing stencil, which will be described separately below.
[0047] As Figure 1 shown, the automatic layout method for a photovoltaic screen printing stencil provided by the present invention includes:
[0048] Step 110, obtaining multiple photovoltaic screen printing stencil images and the machine coordinates corresponding to each photovoltaic screen printing stencil image;
[0049] Step 120, splicing the multiple photovoltaic screen printing stencil images to obtain a stencil splicing image;
[0050] Step 130: Extract the target area in the stencil splicing image, and in the pixel coordinate system corresponding to the photovoltaic screen printing stencil image, align the corresponding grid lines with the target area based on the grid line position data to obtain the stencil splicing image with the grid lines arranged; the target area is the steel wire gap area parallel to the grid line direction.
[0051] Step 140: Based on the multiple photovoltaic screen printing stencil images, the machine coordinates corresponding to each photovoltaic screen printing stencil image, and the coordinates of the marking points in the pixel coordinate system, determine the machine coordinates corresponding to the marking points.
[0052] Step 150: Based on the stencil splicing image with the grid lines arranged and the machine coordinates corresponding to the marking points, determine the layout result corresponding to the multiple photovoltaic screen printing stencil images.
[0053] It can be understood that in this embodiment, the photovoltaic screen printing stencil image can be obtained by shooting with an image acquisition device composed of an industrial camera and a lens. The sizes of the multiple photovoltaic screen printing stencil images can be the same or different.
[0054] The machine coordinates corresponding to each photovoltaic screen printing stencil image are the machine coordinates corresponding to the photovoltaic screen printing stencil image when the photovoltaic screen printing stencil is placed on the operating machine table and photographed by the industrial camera.
[0055] There are multiple parallel steel wires in the original stencil splicing image. After these steel wires are removed, the corresponding area is the target area.
[0056] In a specific embodiment, the stencil splicing image with the grid lines arranged is as Figure 2 shown. First, splice multiple photovoltaic screen printing stencil images 211, 212, and 213 into a stencil splicing image 210; then extract the target areas 220 in the stencil splicing image, and there can be multiple target areas 220; then, align the grid lines 230 with the target areas 220 to obtain the stencil splicing image with the grid lines arranged.
[0057] In some embodiments, the step of aligning the corresponding grid lines with the target area in the pixel coordinate system corresponding to the photovoltaic screen printing stencil image based on the grid line position data to obtain the stencil splicing image with the grid lines arranged includes:
[0058] Obtain the relative position of the grid lines and the relative position of the marking points;
[0059] Convert the relative position of the grid lines and the relative position of the marking points to the pixel coordinate system to obtain the grid line pixel coordinates and the marking point pixel coordinates;
[0060] Based on the grid line pixel coordinates and the marker point pixel coordinates, control the movement of the grid lines in the pixel coordinate system so that each grid line is located in the corresponding target area, and obtain a stencil splicing image with the grid lines arranged;
[0061] Wherein, the relative position of the grid line is the position of the grid line relative to the reference point; the relative position of the marker point is the position of the marker point relative to the reference point; the reference point is the midpoint of any grid line.
[0062] It can be understood that the marker points (also known as mark points or external mark points) are equivalent to different endpoints in the cross coordinate system.
[0063] The reference point can be randomly selected. For the convenience of determining the relative position of the grid line and the relative position of the marker point, the reference point can be a special point, such as the position of the symmetric point.
[0064] In some embodiments, the number of the marker points is at least 2. For example, it can be 2 or 4.
[0065] In some embodiments, before controlling the movement of the grid lines in the pixel coordinate system, it further includes:
[0066] Arrange the target areas corresponding to each photovoltaic screen printing stencil image in the stencil splicing image according to the coordinates of each photovoltaic screen printing stencil image in the pixel coordinate system.
[0067] It can be understood that when obtaining multiple photovoltaic screen printing stencil images, the machine coordinates corresponding to each photovoltaic screen printing stencil image are obtained synchronously, that is, the machine coordinates corresponding to the target areas corresponding to each photovoltaic screen printing stencil image are determined. When sorting the target areas corresponding to each photovoltaic screen printing stencil image, it is necessary to first convert the machine coordinates to the pixel coordinate system to obtain the corresponding pixel coordinates, and then arrange them in sequence according to the corresponding pixel coordinates.
[0068] In some embodiments, the determining the machine coordinates corresponding to the marker points based on the multiple photovoltaic screen printing stencil images, the machine coordinates corresponding to each photovoltaic screen printing stencil image, and the coordinates of the marker points in the pixel coordinate system includes:
[0069] Based on the multiple photovoltaic screen printing stencil images, the machine coordinates corresponding to each photovoltaic screen printing stencil image, and the camera parameters corresponding to the captured photovoltaic screen printing stencil images, determine the relationship between the machine coordinate system, the camera coordinate system, and the pixel coordinate system;
[0070] Based on the coordinates of the marker points in the pixel coordinate system and the relationship between the machine coordinate system, the camera coordinate system, and the pixel coordinate system, determine the machine coordinates corresponding to the marker points.
[0071] Further, determining the machine coordinates corresponding to the marked points based on the coordinates of the marked points in the pixel coordinate system and the relationships among the machine coordinate system, the camera coordinate system, and the pixel coordinate system includes:
[0072] Based on the relationships among the machine coordinate system, the camera coordinate system, and the pixel coordinate system, after converting the coordinates of the marked points in the pixel coordinate system into the coordinates in the camera coordinate system, convert the coordinates of the marked points in the camera coordinate system into the machine coordinates corresponding to the marked points.
[0073] It can be understood that the defined world coordinate system (Xw, Yw, Zw) and the machine coordinate system are the same coordinate system. The world coordinate system is the reference system for the position of the target object, and the position of the origin can be freely set according to the convenience of operation, and it can be located at the base of the robotic arm (machine platform) or the end effector at the front end of the robotic arm.
[0074] The camera coordinate system (Xc, Yc, Zc) is the coordinate system of the camera at its own angle. The origin is at the optical center of the camera, and the Z-axis is parallel to the optical axis of the camera, that is, the shooting direction of the camera lens.
[0075] The unit scale of the pixel coordinate system (u, v) is one pixel, which is the discrete image coordinate or pixel coordinate, and the origin is at the upper left corner of the image.
[0076] The world coordinate system and the camera coordinate system are both three-dimensional coordinate systems (right-handed systems, with the three axes perpendicular to each other). The relationship between the two coordinate systems is a rigid body transformation, and the transformation relationship between the two coordinate systems is determined through the relationship of the rigid body transformation.
[0077] From the camera coordinate system to the image coordinate system, it belongs to a perspective projection relationship, from three-dimensional to two-dimensional. It can also be regarded as a modified model of the pinhole model, satisfying the similarity theorem of triangles.
[0078] Since the image coordinate system and the pixel coordinate system are in the same plane, the difference between the two lies in the position of the coordinate origin and the unit. The origin of the pixel coordinate system is at the upper left corner of the image coordinate system, and at the same time, the unit of the pixel coordinate system is a pixel. Based on this difference, the conversion between the image coordinate system and the pixel coordinate system can be realized.
[0079] In some other embodiments, the process of automatic layout of the photovoltaic screen printing stencil provided by the present invention is as Figure 3 shown, including:
[0080] Step 310: The collected stencil image and the corresponding machine coordinates when taking the image;
[0081] Step 320: Stitch the images through image stitching technology;
[0082] Step 330: Use image processing technology to extract the wire gap area parallel to the grid line in the stitched image;
[0083] Step 340: Define the image pixel coordinate system and arrange the wire gap area parallel to the grid line in the coordinate system according to the coordinates of the stitched image;
[0084] Step 350: The relative position of the grid lines and the relative position of the external mark points;
[0085] Step 360: Convert the grid line coordinates and mark point coordinates to the pixel coordinate system of the image through the relationship between the coordinate systems;
[0086] Step 370: Move the grid lines up and down in the pixel coordinate system so that each grid line can be inside the wire gap area parallel to the grid line;
[0087] Step 380: Through the image data, the corresponding machine coordinates, and the internal and external parameters of the camera, the relationship of machine coordinate system -> camera coordinate system -> pixel coordinate system can be obtained;
[0088] Step 390: Convert the coordinates of the external mark points at this time to the camera coordinate system through pixel coordinates;
[0089] Step 3100: Convert the coordinates of the external mark points in the camera coordinate system to the machine coordinate system;
[0090] Step 3110: The machine coordinates corresponding to the external mark points.
[0091] In summary, the automatic layout method of the photovoltaic screen printing stencil provided by the present invention obtains multiple photovoltaic screen printing stencil images and the corresponding machine coordinates of each photovoltaic screen printing stencil image, so as to obtain the corresponding stitched stencil image; extracts the target area in the stitched stencil image, and in the pixel coordinate system corresponding to the photovoltaic screen printing stencil image, based on the grid line position data, aligns the corresponding grid lines with the target area to obtain the stitched stencil image with the grid lines arranged. This process only needs to obtain the image data and the grid line position data, and does not need to manually compare the film and the stencil; finally, based on the stitched stencil image with the grid lines arranged and the machine coordinates corresponding to the marking points, the layout result corresponding to multiple photovoltaic screen printing stencil images is determined.
[0092] The above layout process obtains the layout result by acquiring the photovoltaic screen printing stencil image and the corresponding position data and processing these data, without the need for manual comparison of the film and the stencil, reducing the material cost consumed in processing the film; through data processing, stable and batch operation can be achieved, and the layout error caused by human visual fatigue can also be avoided; therefore, the present invention solves the technical problems of low efficiency and easy occurrence of layout errors in the existing photovoltaic screen printing stencil layout method.
[0093] The present invention also provides an automatic layout device 400 for a photovoltaic screen printing stencil, comprising:
[0094] An acquisition module 410, configured to acquire multiple photovoltaic screen printing stencil images and the machine coordinates corresponding to each photovoltaic screen printing stencil image;
[0095] A splicing module 420, configured to splice the multiple photovoltaic screen printing stencil images to obtain a stencil splicing image;
[0096] An alignment module 430, configured to extract a target area in the stencil splicing image, and in the pixel coordinate system corresponding to the photovoltaic screen printing stencil image, align the corresponding grid lines with the target area based on the grid line position data to obtain a stencil splicing image with grid lines arranged therein; the target area is a wire gap area parallel to the grid line direction;
[0097] A coordinate determination module 440, configured to determine the machine coordinates corresponding to the marking points based on the multiple photovoltaic screen printing stencil images, the machine coordinates corresponding to each photovoltaic screen printing stencil image, and the coordinates of the marking points in the pixel coordinate system;
[0098] A layout result determination module 450, configured to determine the layout result corresponding to the multiple photovoltaic screen printing stencil images based on the stencil splicing image with grid lines arranged therein and the machine coordinates corresponding to the marking points.
[0099] The automatic layout device for a photovoltaic screen printing stencil provided in the above embodiment can implement the technical solutions described in the above embodiment of the automatic layout method for a photovoltaic screen printing stencil. The specific implementation principles of the above modules or units can be referred to the corresponding content in the above embodiment of the automatic layout method for a photovoltaic screen printing stencil, which will not be elaborated here.
[0100] As Figure 5 shown, the present invention also correspondingly provides an electronic device 500. The electronic device 500 includes a processor 501, a memory 502, and a display 503. Figure 5 Only some components of the electronic device 500 are shown, but it should be understood that it is not required to implement all the shown components, and more or fewer components can be alternatively implemented.
[0101] The memory 502 can be an internal storage unit of the electronic device 500 in some embodiments, such as the hard disk or memory of the electronic device 500. The memory 502 can also be an external storage device of the electronic device 500 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on the electronic device 500.
[0102] Further, the memory 502 may include both the internal storage unit of the electronic device 500 and external storage devices. The memory 502 is used to store the application software installed in the electronic device 500 and various types of data.
[0103] In some embodiments, the processor 501 may be a central processing unit (CPU), a microprocessor, or other data processing chips, and is used to run the program code stored in the memory 502 or process data, such as the automatic layout method of the photovoltaic screen printing stencil in the present invention.
[0104] In some embodiments, the display 503 may be an LED display, a liquid crystal display, a touch liquid crystal display, and an OLED (Organic Light-Emitting Diode) toucher, etc. The display 503 is used to display the information in the electronic device 500 and to display a visual user interface. The components 501 - 503 of the electronic device 500 communicate with each other through the system bus.
[0105] In some embodiments of the present invention, when the processor 501 executes the automatic layout program of the photovoltaic screen printing stencil in the memory 502, the following steps may be implemented:
[0106] Obtain multiple photovoltaic screen printing stencil images, and the machine coordinates corresponding to each photovoltaic screen printing stencil image;
[0107] Stitch the multiple photovoltaic screen printing stencil images to obtain a stencil stitching image;
[0108] Extract the target area in the stencil stitching image, and in the pixel coordinate system corresponding to the photovoltaic screen printing stencil image, align the corresponding grid lines with the target area based on the grid line position data to obtain a stencil stitching image with grid lines arranged; the target area is a wire gap area parallel to the grid line direction;
[0109] Based on the multiple photovoltaic screen printing stencil images, the machine coordinates corresponding to each photovoltaic screen printing stencil image, and the coordinates of the marking point in the pixel coordinate system, determine the machine coordinates corresponding to the marking point;
[0110] Based on the stencil stitching image with grid lines arranged and the machine coordinates corresponding to the marking point, determine the layout result corresponding to the multiple photovoltaic screen printing stencil images.
[0111] It should be understood that: when the processor 501 executes the automatic layout program of the photovoltaic screen printing stencil in the memory 502, in addition to the above functions, other functions may also be implemented. For specific details, reference may be made to the description of the corresponding method embodiments above.
[0112] Furthermore, the embodiments of the present invention do not specifically limit the type of the mentioned electronic device 500. The electronic device 500 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, a laptop, etc. Exemplary embodiments of the portable electronic device include, but are not limited to, portable electronic devices running IOS, android, microsoft or other operating systems. The above portable electronic device may also be other portable electronic devices, such as a laptop with a touch-sensitive surface (such as a touch panel). It should also be understood that in some other embodiments of the present invention, the electronic device 500 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (such as a touch panel).
[0113] On the other hand, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the automatic layout method of the photovoltaic screen printing stencil provided by the above-mentioned various methods. The method includes:
[0114] Obtain multiple photovoltaic screen printing stencil images, and the machine coordinates corresponding to each photovoltaic screen printing stencil image;
[0115] Stitch the multiple photovoltaic screen printing stencil images to obtain a stencil stitching image;
[0116] Extract the target area in the stencil stitching image, and in the pixel coordinate system corresponding to the photovoltaic screen printing stencil image, align the corresponding grid lines with the target area based on the grid line position data to obtain a stencil stitching image with grid lines arranged; the target area is a wire gap area parallel to the grid line direction;
[0117] Based on the multiple photovoltaic screen printing stencil images, the machine coordinates corresponding to each photovoltaic screen printing stencil image, and the coordinates of the marking point in the pixel coordinate system, determine the machine coordinates corresponding to the marking point;
[0118] Based on the stencil stitching image with grid lines arranged and the machine coordinates corresponding to the marking point, determine the layout result corresponding to the multiple photovoltaic screen printing stencil images.
[0119] Those skilled in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. Among them, the computer-readable storage medium is a magnetic disk, an optical disk, a read-only memory or a random access memory, etc.
[0120] The above has introduced in detail the automatic layout method, device, electronic device and storage medium of the photovoltaic screen printing stencil provided by the present invention. Specific examples are used in this article to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.
Claims
1. An automatic layout method for a photovoltaic screen printing stencil, characterized in that, Including: Obtain multiple photovoltaic screen printing stencil images and the machine coordinates corresponding to each photovoltaic screen printing stencil image; Stitch the multiple photovoltaic screen printing stencil images to obtain a stencil stitched image; Extract the target area in the stencil stitched image, and in the pixel coordinate system corresponding to the photovoltaic screen printing stencil image, based on the grid line position data, align the corresponding grid lines with the target area to obtain a stencil stitched image with grid lines arranged; the target area is a wire gap area parallel to the grid line direction; Based on the multiple photovoltaic screen printing stencil images, the machine coordinates corresponding to each photovoltaic screen printing stencil image, and the coordinates of the marking point in the pixel coordinate system, determine the machine coordinates corresponding to the marking point; Based on the stencil stitched image with grid lines arranged and the machine coordinates corresponding to the marking point, determine the layout result corresponding to the multiple photovoltaic screen printing stencil images.
2. The automatic layout method of the photovoltaic screen printing stencil according to claim 1, wherein The step of, in the pixel coordinate system corresponding to the photovoltaic screen printing stencil image, based on the grid line position data, align the corresponding grid lines with the target area to obtain a stencil stitched image with grid lines arranged, includes: Obtain the relative position of the grid lines and the relative position of the marking point; Convert the relative position of the grid lines and the relative position of the marking point to the pixel coordinate system to obtain the grid line pixel coordinates and the marking point pixel coordinates; Based on the grid line pixel coordinates and the marking point pixel coordinates, control the movement of the grid lines in the pixel coordinate system so that each grid line is located in the corresponding target area to obtain a stencil stitched image with grid lines arranged.
3. The automatic layout method of the photovoltaic screen printing stencil according to claim 2, characterized in that, Before controlling the movement of the grid lines in the pixel coordinate system, it further includes: Arrange the target areas corresponding to each photovoltaic screen printing stencil image in the stencil stitched image according to the coordinates of each photovoltaic screen printing stencil image in the pixel coordinate system.
4. The automatic layout method of the photovoltaic screen printing stencil according to claim 2, wherein, The relative position of the grid lines is the position of the grid lines relative to the reference point; the relative position of the marking point is the position of the marking point relative to the reference point; the reference point is the midpoint of any grid line.
5. The automatic layout method of the photovoltaic screen printing stencil according to claim 1, wherein, The step of, based on the multiple photovoltaic screen printing stencil images, the machine coordinates corresponding to each photovoltaic screen printing stencil image, and the coordinates of the marking point in the pixel coordinate system, determine the machine coordinates corresponding to the marking point, includes: Based on the multiple photovoltaic screen printing stencil images, the machine coordinates corresponding to each photovoltaic screen printing stencil image, and the camera parameters corresponding to the captured photovoltaic screen printing stencil images, determine the relationship between the machine coordinate system, the camera coordinate system, and the pixel coordinate system; Based on the coordinates of the marking point in the pixel coordinate system and the relationship between the machine coordinate system, the camera coordinate system, and the pixel coordinate system, determine the machine coordinates corresponding to the marking point.
6. The automatic layout method of the photovoltaic screen printing stencil according to claim 5, characterized in that, The step of, based on the coordinates of the marking point in the pixel coordinate system and the relationship between the machine coordinate system, the camera coordinate system, and the pixel coordinate system, determine the machine coordinates corresponding to the marking point, includes: Based on the relationships among the machine table coordinate system, the camera coordinate system, and the pixel coordinate system, after converting the coordinates of the marking points in the pixel coordinate system to the coordinates in the camera coordinate system, the coordinates of the marking points in the camera coordinate system are converted to the machine table coordinates corresponding to the marking points.
7. The automatic layout method of the photovoltaic screen printing stencil according to any one of claims 1-6, characterized in that, The number of the marking points is at least two.
8. An automatic layout device for a photovoltaic screen printing stencil, characterized in that, It includes: An acquisition module, configured to acquire multiple photovoltaic screen printing stencil images and the machine table coordinates corresponding to each photovoltaic screen printing stencil image; A splicing module, configured to splice the multiple photovoltaic screen printing stencil images to obtain a stencil splicing image; An alignment module, configured to extract a target area in the stencil splicing image and, in the pixel coordinate system corresponding to the photovoltaic screen printing stencil image, based on the grid line position data, align the corresponding grid lines with the target area to obtain a stencil splicing image with grid lines arranged; the target area is a wire gap area parallel to the grid line direction; A coordinate determination module, configured to determine the machine table coordinates corresponding to the marking points based on the multiple photovoltaic screen printing stencil images, the machine table coordinates corresponding to each photovoltaic screen printing stencil image, and the coordinates of the marking points in the pixel coordinate system; A layout result determination module, configured to determine the layout results corresponding to the multiple photovoltaic screen printing stencil images based on the stencil splicing image with grid lines arranged and the machine table coordinates corresponding to the marking points.
9. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory is used to store programs; the processor is coupled to the memory and is configured to execute the programs stored in the memory to implement the steps in the automatic layout method for photovoltaic screen printing stencils according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, The computer program, when executed by the processor, implements the automatic layout method for photovoltaic screen printing stencils according to any one of claims 1 to 7.