Image forming method, control device, electronic device and storage medium

By segmenting, reducing and amplifying the image, the problem of high load and long data transmission time of image formation during image formation is solved, and the amount of image formation data is reduced and the processing speed is improved, ensuring the success of operation and file quality.

CN119180748APending Publication Date: 2024-12-24DALIAN RUITU INTELLIGENT PRINTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411009092.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

In the image formation process, especially during large-data image formation operations, the raster processing leads to high load on image formation driving, the generated image formation command file is too large, and the data transmission time is long, which may lead to the image formation operation failure.

Method used

By segmenting, reducing and enlarging the image, the resolution of the image is reduced, the amount of image forming data is reduced, the size of image forming command files is reduced, the data transmission speed is improved, the processing load of the image forming device is reduced, and the operation is ensured. success.

Benefits of technology

The data amount of image forming data is effectively reduced, the data transmission speed is improved, the processing load of the image forming device is reduced, the successful execution of the image forming operation is ensured, and the processing of the image forming device is improved while ensuring file quality. speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119180748A_ABST
    Figure CN119180748A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an image forming method, control equipment, electronic equipment and a storage medium. The method comprises the following steps: acquiring a first data image in image forming data; obtaining a to-be-processed image based on the first data image; reducing the to-be-processed image according to a set proportion to obtain a reduced image corresponding to the to-be-processed image; magnifying the reduced image to obtain a magnified image corresponding to the reduced image, the size of the magnified image being equal to the size of the to-be-processed image; obtaining a calculation result of the resolution of the amplified image and the resolution of the to-be-processed image; if the calculation result is within the set range, determining the amplified image or the reduced image corresponding to the amplified image as a target image; the image data of the target image is transmitted to the image forming apparatus. According to the invention, the resolution of the first data image can be reduced, the data volume of the image formation data is reduced, and the image formation data transmission speed is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an image forming method, a control device, an electronic device and a storage medium. Background Art

[0002] In the process of image forming by the image forming device, it is usually necessary to set the target resolution in the image forming driver, so that after starting the image forming operation, the application sends the image forming data to the image forming driver according to the target resolution, and after receiving the image forming data, the image forming driver divides the image forming data into raster data and vector data, and sends it to the image forming device to print the image. The resolution of the raster data and the vector data are both the target resolution.

[0003] However, when the above operation is performed on image formation operations with large amounts of data, especially large-size images such as background images of PPT, when image formation is performed in a view using layer technology, raster processing will cause the image formation driver to continue to work at a high load, and the image formation command file generated by the image formation driver will also be very large, resulting in a long time for transmitting the image formation data to the image forming device, a high image processing load on the image forming device side, and a long time for the image forming device to process data. When the cache space of the image forming device is insufficient, the image formation operation is likely to fail. Summary of the invention

[0004] In view of this, the present application provides an image forming method, a control device, an electronic device and a storage medium, so as to help solve the problem that the amount of image forming data is too large, resulting in too large an image forming command file, too long an image forming data transmission time, a high processing load of the image forming device, and failure of the image forming operation.

[0005] In a first aspect, an embodiment of the present application provides an image forming method, which is applied to a control device, comprising:

[0006] acquiring a first data image in the image forming data;

[0007] Obtaining an image to be processed based on the first data image;

[0008] Reducing the image to be processed according to a set ratio to obtain a reduced image corresponding to the image to be processed;

[0009] Enlarging the reduced image to obtain an enlarged image corresponding to the reduced image, wherein the size of the enlarged image is equal to the size of the image to be processed;

[0010] Obtaining a calculation result of the resolution of the enlarged image and the resolution of the image to be processed;

[0011] If the calculation result is within a set range, the enlarged image or the reduced image corresponding to the enlarged image is confirmed as a target image;

[0012] The image data of the target image is transmitted to an image forming device so that the data size of the output image data is smaller than the data size of the image forming data.

[0013] By performing processes such as segmenting and reducing the first data image, the embodiment of the present application can reduce the resolution of the first data image, thereby reducing the amount of image formation data, reducing the size of the image formation command file, speeding up the transmission of image formation data to the image forming device, reducing the image processing load of the image forming device, and ensuring the successful execution of the image formation operation.

[0014] By comparing the calculation results of the resolution of the enlarged image and the resolution of the corresponding segmented image, such as the difference or ratio, with a set range, when the calculation result is within the set range, the enlarged image corresponding to the calculation result is used as the target image. The embodiment of the present application controls the resolution of the image formation data sent down within a controllable range, thereby ensuring the quality of the file output by the image forming device.

[0015] In a possible implementation manner, obtaining the to-be-processed image based on the first data image includes:

[0016] Performing segmentation processing on the first data image to obtain at least two segmented images;

[0017] Each of the segmented images is used as an image to be processed.

[0018] In a possible implementation manner, the segmenting the first data image to obtain at least two segmented images includes:

[0019] Determine a blank area or a same color gamut area of ​​the first data image;

[0020] The first data image is segmented based on the blank area or the same color gamut area to obtain at least two segmented images.

[0021] The embodiment of the present application can segment the first data image according to the blank area, or determine the same color area according to the connected area, and segment the first data image according to the same color area, so as to ensure that the splicing part is the same color area during subsequent splicing, thereby avoiding the problem of uneven splicing caused by resolution difference.

[0022] In a possible implementation manner, the segmenting the first data image to obtain at least two segmented images includes:

[0023] Segmenting the first data image to obtain at least two sub-images;

[0024] Each of the sub-images is subjected to a white margin stripping process to obtain at least two segmented images.

[0025] In the embodiment of the present application, the outer margin borders of the sub-images obtained after segmentation are stripped, so that when subsequent images are spliced ​​together, the difference in the margins around the images when the resolutions are different can be reduced.

[0026] In a possible implementation manner, before segmenting the first data image to obtain at least two segmented images, the method further includes:

[0027] Determining whether the size of the first data image is greater than a set size threshold;

[0028] If the size of the first data image is larger than a set size threshold, the first data image is segmented to obtain at least two segmented images.

[0029] In an embodiment of the present application, the size of the first data image includes the length and width of the first data image and / or the area of ​​the first data image. When determining whether the size of the first data image is greater than a set size threshold, the length and width of the first data image are compared with the length and width in the set size threshold, respectively, and / or the area of ​​the first data image is compared with the area in the set size threshold. When at least one of the length and width of the first data image is greater than the corresponding set size threshold, and / or the area of ​​the first data image is greater than the area in the set size threshold, it is considered that the size of the first data image is greater than the set size threshold.

[0030] In a possible implementation, the method further includes:

[0031] If the size of the first data image is smaller than or equal to the set size threshold, the first data image is confirmed as a target image.

[0032] In the embodiment of the present application, the size of the first data image is determined. For a first data image of a relatively small size, the image segmentation processing step can be omitted, thereby improving the efficiency of the image forming operation.

[0033] In a possible implementation, the method further includes:

[0034] If the calculation result is not within the set range, the image to be processed is confirmed as a target image.

[0035] The embodiment of the present application outputs image data of the corresponding segmented image for an enlarged image whose calculation result is not within a set range, thereby ensuring the resolution of the image forming data sent down, and relative to the entire first data image, the storage capacity of the image data of the segmented image is smaller, thereby improving the image processing speed of the image forming device.

[0036] In a possible implementation, the method further includes:

[0037] When the target image is a reduced image corresponding to the enlarged image, the resolution attribute of the reduced image is sent to the image forming device at the same time as the image data of the target image is sent. The resolution attribute is the difference between the resolution of the image forming environment and the resolution of the enlarged image corresponding to the reduced image.

[0038] In an embodiment of the present application, after the image forming device receives the image data of the reduced image and the resolution attribute of the reduced image, it can enlarge the reduced image back to its original size based on the resolution attribute, and then perform a stitching operation on the reduced image that has been enlarged back to its original size, thereby obtaining a final image for image formation, and the final image has a lower resolution than the original first data image.

[0039] In a possible implementation, the method further includes:

[0040] When the target image is a reduced image corresponding to the enlarged image, the magnification factor of the reduced image is sent to the image forming device simultaneously with the image data of the target image. The magnification factor is the size ratio of the enlarged image corresponding to the reduced image to the reduced image.

[0041] In an embodiment of the present application, after the image forming device receives the image data of the reduced image and the magnification factor of the reduced image, it can enlarge the reduced image back to its original size based on the magnification factor, and then perform a stitching operation on the reduced image enlarged back to its original size to obtain the final image.

[0042] In a possible implementation manner, before determining whether the size of the first data image is greater than a set size threshold, the method further includes:

[0043] determining whether an image volume of the first data image is greater than a set volume threshold, the image volume of the first data image being the amount of data of the first data image;

[0044] If the image volume of the first data image is greater than a set volume threshold, generating a compressed image based on the first data image, wherein the image volume of the compressed image is less than or equal to the set volume threshold;

[0045] sending the image data of the compressed image to the image forming device;

[0046] If the image volume of the first data image is less than or equal to the set volume threshold, it is determined whether the size of the first data image is greater than the set size threshold.

[0047] The embodiment of the present application limits the image volume of the first data image, compresses the first data image whose image volume is greater than the set volume threshold, and determines the size of the first data image whose image volume is not greater than the set volume threshold, thereby ensuring the transmission rate of the image forming data.

[0048] In a possible implementation manner, before sending the image data of the target image to the image forming device, the method further includes:

[0049] Determine whether the image volume of the target image is greater than a set volume threshold, the image volume of the target image being the amount of data of the target image;

[0050] If the image volume of the target image is greater than a set volume threshold, generating a compressed image based on the target image, wherein the image volume of the compressed image is less than or equal to the set volume threshold;

[0051] sending the image data of the compressed image to the image forming device;

[0052] If the image volume of the target image is less than or equal to the set volume threshold, the image data of the target image is sent to the image forming device.

[0053] The embodiment of the present application limits the image volume of the first data image, compresses the first data image whose image volume is greater than the set volume threshold, and determines the size of the first data image whose image volume is not greater than the set volume threshold, thereby ensuring the transmission rate of the image forming data.

[0054] In a possible implementation manner, the first data image includes a raster image in the image forming data, and the raster image includes background image data.

[0055] In the embodiment of the present application, the first data image may also include other images in the image forming data whose resolution is not of concern to the user.

[0056] In a second aspect, an embodiment of the present application provides a control device, including:

[0057] A first acquisition unit, used for acquiring a first data image in the image forming data;

[0058] A second acquisition unit, configured to obtain an image to be processed based on the first data image;

[0059] A reduction unit, used to reduce the image to be processed according to a set ratio to obtain a reduced image corresponding to the image to be processed;

[0060] an enlarging unit, configured to enlarge the reduced image to obtain an enlarged image corresponding to the reduced image, wherein the size of the enlarged image is equal to the size of the image to be processed;

[0061] A third acquisition unit, used for acquiring a calculation result of the resolution of the enlarged image and the resolution of the image to be processed;

[0062] a confirmation unit, configured to confirm the enlarged image or the reduced image corresponding to the enlarged image as a target image when the calculation result is within a set range;

[0063] The sending unit is used to send the image data of the target image to the image forming device so that the data volume of the output image data is smaller than the data volume of the image forming data.

[0064] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0065] processor;

[0066] Memory;

[0067] A computer program is stored in the memory, and when the computer program is executed, the electronic device executes any one of the methods described in the first aspect.

[0068] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any method described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0070] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0071] Figure 2 A schematic diagram of a process of an image forming method provided in an embodiment of the present application;

[0072] Figure 3A schematic diagram of segmentation of a first data image provided in an embodiment of the present application;

[0073] Figure 4 A schematic diagram of segmenting another first data image provided in an embodiment of the present application;

[0074] Figure 5 A schematic diagram of reducing and enlarging an image to be processed provided in an embodiment of the present application;

[0075] Figure 6 A schematic diagram of a specific implementation process of a printing method provided in an embodiment of the present application;

[0076] Figure 7 A schematic diagram of another embodiment of the present application for performing reduction and enlargement processing on an image to be processed;

[0077] Figure 8 A schematic diagram of the structure of a control device provided in an embodiment of the present application;

[0078] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0079] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0080] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0081] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0082] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0083] In order to better understand the embodiments of the present application, the terms or concepts that may be involved in the embodiments are explained below.

[0084] DPI (Dots Per Inch): is a unit of measurement used for dot matrix digital images, which refers to the number of sampled, displayable or output dots per inch. DPI is a unit of measurement for the resolution of devices such as printers and mice. It is one of the main parameters for measuring the printing accuracy of printers. Generally speaking, the higher the DPI value, the higher the printing accuracy of the printer.

[0085] Image formation driven UI: Image formation driven UI (User Interface) is a new approach to user interface development. They provide a dynamic and flexible way to generate a driven user interface on the server and send it to the client through an API (Application Programming Interface). This approach can provide faster iteration speed and a more personalized user experience.

[0086] See also Figure 1 , is a schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 As shown, the application scenario includes: a control device 110 and an image forming device 120, wherein the control device 110 and the image forming device 120 are interconnected through a wired or wireless communication network to transmit information. During the image forming process, the control device 110 converts the print data into a printer language, and sends the printer language to the image forming device 120, and the image forming device 120 performs the image forming operation.

[0087] The communication network between the control device 110 and the image forming device 120 may be a local area network or a wide area network transferred through a relay device. When the communication network is a local area network, exemplarily, the communication network may be a short-distance communication network such as a wifi hotspot network, a wifi P2P network, a Bluetooth network, a zigbee network or a near field communication (NFC) network. When the communication network is a wide area network, exemplarily, the communication network may be a third-generation wireless telephone technology (3G) network, a fourth-generation mobile communication technology (4G) network, a fifth-generation mobile communication technology (5G) network, a future-evolved public land mobile network (PLMN) or the Internet.

[0088] It should be pointed out that Figure 1 This is only an exemplary description and should not be used as a limitation on the scope of protection of this application. For example, the image forming device 120 includes but is not limited to a printer, a copier, a fax machine, a multifunctional image making and copying device, an electrostatic printing device, and any other similar device. The control device 110 includes but is not limited to a computer, a mobile phone, a tablet computer, an internal server of an enterprise, a cloud server, and other electronic devices that can communicate with the image forming device 120. In some possible implementations, the control device 110 may also be referred to as a host computer, a host, and the like.

[0089] In the process of executing image formation, it is usually necessary to set the target resolution in the image formation driver UI, so that after starting the image formation operation, the application sends the image formation data to the image formation driver according to the target resolution. After receiving the image formation data, the image formation driver divides the image formation data into raster data and vector data, and sends it to the image forming device, wherein the resolution of the raster data and the vector data are both the target resolution.

[0090] However, when the above operation is performed on image formation operations with large amounts of data, especially large-size images such as background images of PPT, when image formation is performed in a view using layer technology, raster processing will cause the image formation driver to continue to work at a high load, and the image formation command file generated by the image formation driver will also be very large, resulting in a long time for transmitting the image formation data to the image forming device, a high image processing load on the image forming device side, and a long time for the image forming device to process data. When the cache space of the image forming device is insufficient, the image formation operation is likely to fail.

[0091] In response to the above problems, the embodiments of the present application provide an image forming method, a control device, an electronic device and a storage medium. The embodiments of the present application can reduce the resolution of the first data image by splitting, reducing and other processing on the first data image, thereby reducing the amount of image formation data, reducing the size of the image formation command file, speeding up the transmission of image formation data to the image forming device, reducing the image processing load of the image forming device, and ensuring the successful execution of the image formation operation.

[0092] A detailed description is given below with reference to the accompanying drawings.

[0093] See also Figure 2 , is a schematic diagram of a flow chart of an image forming method provided in an embodiment of the present application. The method can be applied to Figure 1 In the control device of the application scenario shown, Figure 2 As shown, it mainly includes the following steps.

[0094] S201: Acquire a first data image in image formation data.

[0095] The image formation data sent by the application software to the image formation driver includes raster data and vector data, wherein raster data refers to pixel data composed of pixels, and in the embodiment of the present application mainly includes background image data in the image formation data, and in some embodiments, the image formed by raster data may also be called a raster image, and the raster image may also be called a first data image; vector data refers to data stored in a vector structure, and in the embodiment of the present application mainly includes text data and graphic data in the image formation data.

[0096] In the embodiment of the present application, since the raster image mainly includes the background image, and the background image is not the main content in the image formation process, the user generally does not pay attention to its resolution. Based on this, the image formation driver can obtain the raster image in the image formation data after receiving the image formation data, and reduce the overall data volume of the image formation data by reducing the resolution of the raster image.

[0097] Unlike raster images, vector data is the main focus of users. Therefore, when the image forming driver receives the image forming data, it sends the vector data therein to the image forming device at the original resolution, wherein the original resolution is the resolution of the image forming data received by the image forming driver, that is, the target resolution set by the user in the image forming driver. It should be noted that the user can set the target resolution according to the needs, and the embodiment of the present application does not make specific requirements for this. For example, the user can set the target resolution to 600DPI.

[0098] In a possible implementation manner, the first data image may also include other images in the image forming data whose resolution is not of concern to the user.

[0099] S202: Obtaining an image to be processed based on the first data image.

[0100] In the embodiment of the present application, after the image forming driver obtains the first data image, it obtains the image to be processed according to the first data image. Specifically, the image forming driver can directly use the first data image as the image to be processed, or it can segment the first data image to obtain at least two segmented images, and use each segmented image as the image to be processed. In a specific implementation, the image forming driver can segment the first data image according to a set segmentation method, such as evenly dividing the first data image into multiple parts, dividing it by color area, etc. For example, Figure 3 As shown, the image forming driver obtains Figure 3 After the first data image 300 in (a), the Figure 3(b) shows the dotted line, the first data image 300 is divided into four equal parts, and finally the following is obtained: Figure 3 (c) The segmented images 301, 302, 303 and 304, wherein the segmented images 301, 302, 303 and 304 are the images to be processed, that is, according to Figure 3 In the manner shown, four images to be processed can be obtained.

[0101] In a possible implementation, in order to prevent the problem of uneven stitching due to resolution differences in subsequent image stitching, the first data image may be segmented according to blank areas, or may be segmented according to the same color gamut. Specifically, after the image forming driver acquires the first data image, it determines the blank areas or the same color gamut areas in the first data image, and segments the first data image based on the blank areas or the same color gamut areas, thereby obtaining at least two segmented images. For example, Figure 4 As shown, the image forming driver obtains Figure 4 After the first data image 400 in (a), the first data image 400 can be segmented based on the blank area of ​​the first data image 400, and the segmentation line is as follows: Figure 4 As shown by the dotted line in (b), the final result is Figure 4 (c) The segmented images 401, 402, 403 and 404 are the images to be processed, that is, according to Figure 4 In the manner shown, four images to be processed can be obtained.

[0102] It should be noted that, to determine the same color gamut area in the first data image, reference may be made to the connected domain judgment technology in the related art, which will not be elaborated herein for the sake of brevity.

[0103] In a possible implementation, in order to reduce the difference in the margins around the segmented images when the subsequent resolutions are different, the segmented images can be obtained by using the technology of stripping the outer margin border. Specifically, after the image forming driver obtains the first data image, it segments the first data image according to the set segmentation method to obtain multiple sub-images, and performs the outer margin border stripping process on each sub-image, so as to obtain at least two segmented images after the outer margin borders are stripped.

[0104] The outer white border of an image refers to the area from the edge of the image to the inside. When N consecutive bytes are not the background color, the position of the initial byte in the N bytes is a point in the outer white border. All such points in the image are connected to obtain the outer white border.

[0105] It should be noted that the specific technical means for stripping the outer white border of the image can refer to the contents in the relevant technology. For the sake of brevity, the embodiments of the present application will not be repeated here.

[0106] In one possible implementation, to ensure data processing efficiency, after acquiring the first data image, the image formation driver may first compare the length and width of the first data image, and / or the area of ​​the first data image, with a set size threshold to confirm whether the size of the first data image is greater than the set size threshold; if the size of the first data image is greater than the set size threshold, the first data image is segmented according to the set segmentation method; if the size of the first data image is less than or equal to the set size threshold, the first data image is directly used as the target image. In a specific implementation, before performing an image forming operation, the user may set a size threshold of the first data image in the image forming driver UI, including the length and width of the first data image and / or the area of ​​the first data image. After the image forming driver acquires the first data image, the length and width of the first data image are respectively compared with the length and width in the set size threshold, and / or the area of ​​the first data image is compared with the area in the set size threshold. When the length of the first data image is greater than the length in the set size threshold, and / or when the width of the first data image is greater than the width in the set size threshold, and / or when the area of ​​the first data image is greater than the area in the set size threshold, the first data image is segmented according to the set segmentation method to obtain at least two segmented images, that is, to obtain at least two images to be processed.

[0107] It should be noted that the user can set the length and width in the size threshold according to their needs, and the embodiment of the present application does not make specific requirements for this.

[0108] In the embodiment of the present application, the size of the first data image is determined. For a first data image with a relatively small size, the image segmentation processing step can be omitted, thereby improving the efficiency of the image forming operation.

[0109] In one possible implementation, when the image forming driver segments the first data image, the length and width of the segmented image and / or the area of ​​the segmented image may be limited to a range less than or equal to a set size threshold, thereby ensuring that the size of each data sent to the image forming device is within the required range and reducing the amount of data transmitted each time.

[0110] In practical applications, the image volume of the first data image, that is, the data volume of the first data image, is the size of the storage capacity of the image forming device occupied by the image data, and is also an image attribute that affects the transmission of image data. Therefore, a threshold value can be set for this image attribute to ensure the transmission speed of the image forming data. Specifically, before performing the image forming operation, the user can set the volume threshold of the first data image in the image forming driver UI. After the image forming driver obtains the first data image, the image volume of the first data image is compared with the set volume threshold. If the image volume of the first data image is greater than the set volume threshold, the first data image is compressed to obtain a compressed image, and the image data of the compressed image is sent to the image forming device. If the image volume of the first data image is less than or equal to the set volume threshold, the size threshold determination operation is performed on the first data image.

[0111] The embodiment of the present application limits the image volume of the first data image, compresses the first data image whose image volume is greater than the set volume threshold, and determines the size of the first data image whose image volume is not greater than the set volume threshold, thereby ensuring the transmission rate of the image forming data.

[0112] In the embodiment of the present application, dividing the first data image into smaller images can ensure the efficiency of transmitting the image forming data to the image forming device in the subsequent steps.

[0113] S203: reducing the image to be processed according to a set ratio to obtain a reduced image corresponding to the image to be processed.

[0114] In the embodiment of the present application, since the resolution of the first data image can be reduced by reducing the size of the first data image, thus reducing the amount of data, after the image forming driver obtains the image to be processed, the image to be processed can be reduced according to a set ratio to obtain a reduced image corresponding to the image to be processed. Specifically, when reducing the image to be processed, the horizontal and vertical directions of the image to be processed need to be reduced in the same proportion, such as reducing the horizontal and vertical directions of the image to be processed by 1 / 2. Of course, in practical applications, it can also be reduced by 0.95, 0.90, 0.85, 0.80...0.1, etc., and the present application does not make specific limitations on this.

[0115] It should be noted that the reduction in the embodiment of the present application refers to reducing the size of the first data image rather than compressing the first data image.

[0116] S204: Enlarging the reduced image to obtain an enlarged image corresponding to the reduced image, wherein the size of the enlarged image is equal to the size of the image to be processed.

[0117] In the embodiment of the present application, although the reduced image obtained by reducing the image to be processed has a lower resolution, it does not necessarily meet the quality requirements of image formation. Therefore, it is necessary to determine whether the resolution of the reduced image meets the requirements. However, since the reduced image needs to be enlarged to the original size in the subsequent image formation process, and then spliced ​​with other images, and then the image formation operation is performed, it is ultimately necessary to confirm whether the image after the reduced image is enlarged to the original size meets the quality requirements of image formation.

[0118] Based on this, after acquiring the reduced image corresponding to the image to be processed, the image forming driver of the embodiment of the present application enlarges the reduced image based on the size of the image to be processed to obtain an enlarged image corresponding to the reduced image, that is, the enlarged image corresponding to the image to be processed, wherein the size of the enlarged image is equal to the size of the corresponding image to be processed. Figure 3 As an example, after obtaining the image 301 to be processed, the image forming driver performs the following operations according to Figure 5 As shown, the image to be processed 301 ( Figure 5 (a)) first reduce the size and obtain the corresponding reduced image ( Figure 5 (b)), and then enlarge it to get the corresponding enlarged image ( Figure 5 (c)), where Figure 5 The enlarged image of (c) has the same size as the image to be processed 301.

[0119] S205: Obtain calculation results of the resolution of the enlarged image and the resolution of the image to be processed.

[0120] In the embodiment of the present application, for the enlarged image, the image forming driver obtains the resolution of the enlarged image and the resolution of the image to be processed corresponding to the enlarged image, and performs a difference or ratio calculation between the resolution of the enlarged image and the resolution of the corresponding image to be processed to obtain a resolution difference calculation result or a resolution ratio calculation result, wherein the difference calculation result is the resolution of the corresponding image to be processed minus the resolution of the enlarged image, and the ratio calculation result is the ratio of the resolution of the corresponding image to be processed to the resolution of the enlarged image. Figure 5 For example, the image formation driver obtains Figure 5 (c) The enlarged image resolution r1 and Figure 5 (a) The resolution of the image to be processed is r2, and the difference calculation result of the resolution is S1 = r2-r1, the ratio calculation result is S2 = r2 / r1, and S2>1. In the specific implementation, the value range of S1 and S2 can be determined according to specific needs, and the embodiment of the present application does not make specific requirements for this.

[0121] S206: If the calculation result is within the set range, the enlarged image or the reduced image corresponding to the enlarged image is confirmed as the target image.

[0122] In an embodiment of the present application, for the difference or ratio calculation result between the resolution of the enlarged image and the resolution of the corresponding image to be processed, a difference range for judging whether the difference meets the requirements or a ratio range for judging whether the contrast meets the requirements is pre-set. After the difference or ratio is obtained, the difference is compared with the set difference range or the ratio is compared with the set ratio range. If the difference is within the set difference range or the ratio is within the set ratio range, it is proved that the resolution of the enlarged image can meet the quality requirements of subsequent image formation. Therefore, the enlarged image or the reduced image corresponding to the enlarged image can be confirmed as the target image. If the difference or ratio is not within the set range, it is proved that the resolution of the enlarged image cannot meet the quality requirements of subsequent image formation. Therefore, the corresponding image to be processed can be directly used as the target image. For example, Figure 5 For example, Figure 5 (c) The enlarged image resolution r1 and Figure 5 The difference S1 of the resolution r2 of the image to be processed in (a) is compared with the set difference range. If the difference S1 is within the set difference range, Figure 5 (c) is used as the target image. If the difference S1 is not within the set difference range, Figure 5 (a) is confirmed as the target image, or Figure 5 (c) The enlarged image resolution r1 and Figure 5 The ratio S2 of the resolution r2 of the image to be processed in (a) is compared with the set ratio range. If the ratio S2 is within the set ratio range, Figure 5 (c) is used as the target image. If the ratio S2 is not within the set ratio range, Figure 5 The image to be processed in (a) is taken as the target image.

[0123] In the embodiment of the present application, the difference between the resolution of the enlarged image and the resolution of the corresponding image to be processed is compared with a set difference range. When the difference is within the difference range, the enlarged image or the reduced image corresponding to the enlarged image is used as the target image, or the ratio of the resolution of the enlarged image and the resolution of the corresponding image to be processed is compared with a set ratio range. When the ratio is within the ratio range, the enlarged image or the reduced image corresponding to the enlarged image is used as the target image. On the basis of reducing the image resolution, the image resolution is guaranteed to be within the range acceptable to the user. For the enlarged image whose difference or ratio is not within the set range, the image to be processed is also used as the target image. Therefore, relative to the entire image formation data, the data volume of the output image is reduced, thereby improving the image processing speed of the image forming device and ensuring the quality of the document output by the final image forming device.

[0124] S207: Sending the image data of the target image to the image forming device.

[0125] In the embodiment of the present application, after the target image is confirmed, the image data of the target image can be sent to the image forming device. Figure 5 For example, when confirming Figure 5 (c) an enlarged image or Figure 5 After reducing the target image of (b), you can Figure 5 (c) image data of the enlarged image (target image) or Figure 5 The image data of the reduced image of (b) is sent to the image forming device to output image data whose storage capacity is smaller than the storage capacity of the image forming data.

[0126] After the image data of the enlarged image is sent to the image forming device, the image forming device can directly perform a splicing operation on the enlarged image based on the image data of the enlarged image, thereby obtaining a final image for image formation, which has a lower resolution than the original first data image.

[0127] If the image data of the reduced image corresponding to the target image is sent to the image forming device, the time for transmitting the image data to the image forming device can be reduced. However, after the image forming device receives the image data of the reduced image, it is necessary to enlarge the reduced image back to its original size (the size before reduction) based on the image data of the reduced image before performing the stitching operation and obtaining the final image.

[0128] Therefore, when sending the image data of the reduced image to the image forming device, in a possible implementation, the resolution attribute of the reduced image can also be sent at the same time, wherein the resolution attribute is the difference between the resolution of the image forming environment (i.e., the target resolution set by the user in the image forming driver UI) and the resolution of the enlarged image corresponding to the reduced image. Exemplarily, if the resolution of the image forming environment is 600DPI, and the resolution of the enlarged image corresponding to the reduced image is 300DPI, then the resolution attribute = 600DPI-300DPI = 300DPI. After the image forming device receives the image data of the reduced image and the resolution attribute of the reduced image, it can enlarge the reduced image back to its original size based on the image data and the resolution attribute of the reduced image, and then perform a splicing operation on the reduced image that has been enlarged back to its original size, thereby obtaining the final image.

[0129] In another possible implementation, when the image forming driver sends the image data of the reduced image to the image forming device, it can also send the magnification factor of the reduced image, wherein the magnification factor is the size ratio of the enlarged image to the reduced image corresponding to the reduced image. Exemplarily, if the horizontal size of the enlarged image is twice that of the reduced image, and the vertical size is twice that of the reduced image, then the magnification is (x=2, y=2). After the image forming device receives the image data of the reduced image and the magnification of the reduced image, it can enlarge the reduced image back to its original size based on the image data of the reduced image and the magnification, and then perform a splicing operation on the reduced image that has been enlarged back to its original size to obtain the final image.

[0130] It should be noted that the content of the final image obtained by the image forming device based on the image data of the reduced image, the resolution attribute of the reduced image or the magnification factor of the reduced image can be referred to the description in the relevant technology. For the sake of brevity, the embodiments of the present application will not be described here.

[0131] For large images that users do not pay much attention to, such as PPT backgrounds, the embodiment of the present application reduces the size of the image formation command file by appropriately lowering the resolution of the background image and differentiating the output of the first data image, thereby speeding up the rate at which the image formation data is transmitted to the image multiplication device, thereby further reducing the image processing load of the image forming device and improving the image formation speed.

[0132] It should be noted that in the embodiment of the present application, the user can choose whether to reduce the resolution of the first data image on the image formation driving UI. If the user chooses to reduce the resolution of the first data image, Figure 2The image forming method shown in the figure performs image processing. If the user does not choose to reduce the resolution of the first data image, the image data of the first data image is directly sent to the image forming device. In specific implementation, three resolution reduction options of high, medium and low can be set on the interface of the image formation driving UI. The user can select different resolution reduction options according to needs, wherein the high resolution reduction option represents the maximum resolution reduction, the medium resolution reduction option represents a medium resolution reduction, and the low resolution reduction option represents the minimum resolution reduction. The specific value of the resolution reduction in each resolution reduction option can be set according to actual conditions, and the embodiment of the present application does not make specific requirements for this.

[0133] It can be understood that in the embodiment of the present application, the image data of the first data image, the segmented image, the reduced image and the enlarged image are all raster data, and the data transmission between the image forming driver and the image forming device is the corresponding raster data transmission.

[0134] In an embodiment of the present application, before the image data of the target image is sent to the image forming device, the image volume of the target image can also be judged. Specifically, the image volume of the target image is compared with a set volume threshold. If the image volume of the target image is greater than the set volume threshold, the target image is compressed to obtain a compressed image, and the image data of the compressed image is sent to the image forming device. If the image volume of the target image is less than or equal to the set volume threshold, the image data of the target image is sent to the image forming device.

[0135] The embodiment of the present application limits the image volume of the target image, compresses the target image whose image volume is greater than the set volume threshold, and ensures the transmission rate of the image forming data.

[0136] The following takes a printer as an example, and combines the specific embodiments to Figure 2 The image forming method will be described in detail.

[0137] See also Figure 6 , is a schematic diagram of a specific implementation process of a printing method provided in an embodiment of the present application. Figure 6 As shown, the printing method specifically includes the following steps.

[0138] S601: Set the resolution of the print driver to 600 DPI.

[0139] Users can set the resolution of the printing environment to 600 DPI and the length, width and other attribute thresholds of the raster image in the print driver UI.

[0140] S602: Start the printing operation.

[0141] After the relevant settings are completed, the user starts the printing operation. It should be noted that the parameters set in S601 can be stored in the control device so that the user can directly use them when printing next time.

[0142] S603: The application sends 600 DPI print data.

[0143] The application sends 600DPI print data according to the user's settings.

[0144] S604: The print driver obtains an image attribute threshold.

[0145] After the user starts the printing operation, the print driver obtains the image attribute threshold set by the user.

[0146] S605: The print driver obtains print data.

[0147] When the application sends the print data, the print driver obtains the print data sent by the application.

[0148] S606: Determine whether it is raster data.

[0149] After the print driver obtains the print data, it determines whether the print data is raster data. If the print data is raster data, the process proceeds to step S608 ; if the print data is not raster data, the process proceeds to step S607 .

[0150] S607: The print data is packaged normally.

[0151] For non-raster data, such as vector data such as text data and graphic data, as well as some smaller raster data, raster data whose resolution does not meet the requirements after processing, they are directly printed and packaged, and the packaged data is sent to the printer, which performs the printing operation.

[0152] S608: Determine whether it is greater than the image attribute threshold.

[0153] For a grating image, first determine whether the length and width of the grating image and / or the area of ​​the grating image are greater than the set image attribute threshold. If the length and width of the grating image and / or the area of ​​the grating image are not greater than the set image attribute threshold, enter step S607. If the length and / or width of the grating image and / or the area of ​​the grating image are greater than the set image attribute threshold, enter step S609.

[0154] S609: Segment, reduce, and enlarge the raster data.

[0155] For larger raster data, segmentation processing is performed to obtain multiple segmented images. Figure 4For example, the embodiment of the present application segments the grating image 400 according to the blank area to obtain four segmented images 401, 402, 403 and 404, wherein the segmented image 401 includes the capital letter "A", the segmented image 402 includes the capital letter "CD", the segmented image 403 is a pure white image, and the segmented image 404 includes the word "Print".

[0156] Take the segmented image 401 as the image to be processed according to the following Figure 7 The horizontal and vertical proportional reduction processing is performed in the manner shown in the figure to obtain a reduced image corresponding to the segmented image 401. Figure 7 (b). Similarly, Figure 7 In the illustrated method, the segmented images 402 , 403 and 404 are respectively used as images to be processed, and the segmented images 402 , 403 and 404 are reduced to obtain reduced images corresponding to the segmented images 402 , 403 and 404 .

[0157] For reduced images Figure 7 (b) Performing horizontal and vertical proportional enlargement processing to obtain an enlarged image corresponding to the segmented image 401 Figure 7 (c) where Figure 7 (c) Size and Figure 7 (a), that is, the same size as the segmented image 401. Similarly, the enlarged images corresponding to the segmented images 402, 403 and 404 are obtained in the same manner.

[0158] S610: Whether the resolution difference is within a set difference range.

[0159] Obtain the resolutions of the segmented images 401, 402, 403 and 404, and the resolutions of the enlarged images corresponding to the segmented images 401, 402, 403 and 404, respectively, and calculate the difference between the resolution of each segmented image and the corresponding enlarged image, that is, calculate the resolution of the segmented image 401 and the corresponding enlarged image Figure 7 (c) The difference in resolution S 1-401 , the resolution difference S between the segmented image 402 and the corresponding enlarged image 1-402 , the resolution difference S between the segmented image 403 and the corresponding enlarged image 1-403 , the resolution difference S between the segmented image 404 and the corresponding enlarged image 1-404 , determine whether the difference is within the set difference range, if not, proceed to step S607, if within the set difference range, proceed to step S611. For example, the difference S 1-401 In the set range, the process proceeds to step S611 to reduce the image size. Figure 7 (b) Packaging and sending to the printer, the difference S 1-402If it is not within the set range, the process goes to step S607, where the segmented image 402 is packaged and sent to the printer. 1-403 If it is not within the set range, the process goes to step S607, where the segmented image 403 is packaged and sent to the printer. 1-404 If it is not within the set range, the process proceeds to step S607 to package the segmented image 404 and send it to the printer.

[0160] In a specific implementation, reference may also be made to S610 to determine whether the resolution ratio is within a set ratio range, thereby processing the segmented image. For the sake of brevity, the embodiment of the present application will not be described in detail herein.

[0161] It should be noted that since the segmented image 403 is a pure white image, in a specific implementation, the segmented image 403 may be ignored, that is, the segmented images obtained after segmenting the grating image 400 only include the segmented images 401 , 402 and 404 .

[0162] S611: Encapsulate the reduced image and set the resolution attribute or magnification factor

[0163] Print driver to reduce the image Figure 7 (b) is packaged, and based on the DPI (300 DPI) of the reduced image and the set resolution 600 DPI, the resolution attribute of the reduced image is set to 300 DPI, and the packaged image data of the reduced image and the resolution attribute 300 DPI are sent to the printer. Alternatively, the magnification factor is set based on the size of the reduced image and the size of the enlarged image corresponding to the reduced image, that is, based on Figure 7 (b) and Figure 7 (c) The magnification factor is set to (x=2, y=2), and the image data of the packaged reduced image and the magnification factor (x=2, y=2) are sent to the printer.

[0164] It can be seen that the image data finally obtained by the printer includes the image data of the segmented images 402, 403 and 404, and the image data of the reduced image Figure 7 (b) The image data obtained by the printer is a mixture of 600 DPI and 300 DPI. The printer reduces the image based on the resolution attribute 300 DPI or the magnification factor (x=2, y=2). Figure 7 (b) After zooming in, the zoomed Figure 7 (b) The image is spliced ​​with the segmented images 402, 403 and 404 to obtain the final data to be printed, and the printing operation is performed.

[0165] It should be noted that when the print driver sends mixed image data of 600DPI and 300DPI to the printer, it will also send the print environment resolution of 600DPI to the printer at the same time.

[0166] Corresponding to the above embodiment, the embodiment of the present application also provides a structural schematic diagram of a control device.

[0167] See also Figure 8 , is a schematic diagram of the structure of a control device provided in an embodiment of the present application. Figure 8 As shown, the control device 800 includes: a first acquisition unit 801, used to acquire a first data image in the image forming data; a second acquisition unit 802, used to obtain a to-be-processed image based on the first data image; a reduction unit 803, used to reduce the to-be-processed image according to a set ratio to obtain a reduced image corresponding to the to-be-processed image; an enlargement unit 804, used to enlarge the reduced image to obtain an enlarged image corresponding to the reduced image, wherein the size of the enlarged image is equal to the size of the to-be-processed image; a third acquisition unit 805, used to obtain a calculation result of the resolution of the enlarged image and the resolution of the to-be-processed image; a confirmation unit 806, used to confirm the enlarged image or the reduced image corresponding to the enlarged image as a target image when the calculation result is within a set range; a sending unit 807, used to send the image data of the target image to the image forming device, so that the data amount of the output image data is less than the data amount of the image forming data.

[0168] The specific contents of the embodiments of the present application can be found in the description of the above method embodiments, which will not be repeated here for the sake of brevity.

[0169] Corresponding to the above embodiments, the present application also provides an electronic device.

[0170] See also Fig. 9 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the electronic device 900 may include: a processor 910, a memory 920, and a communication unit 930. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiment of the present invention. It can be a bus structure or a star structure, and can also include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0171] The communication unit 930 is used to establish a communication channel so that the electronic device can communicate with other devices, receive user data sent by other devices or send user data to other devices.

[0172] The processor 910 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It runs or executes software programs, instructions, and / or modules stored in the memory 920, and calls data stored in the memory to perform various functions of the electronic device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of a plurality of packaged ICs with the same or different functions. For example, the processor 910 can include only a central processing unit (CPU). In the embodiment of the present application, the CPU can be a single computing core or multiple computing cores.

[0173] The memory 920 is used to store the execution instructions of the processor 910. The memory 920 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0174] When the execution instructions in the memory 720 are executed by the processor 910, the electronic device 900 can execute Figure 2 Some or all of the steps in the illustrated embodiments.

[0175] In a specific implementation, the present application further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the image forming method provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0176] In a specific implementation, the present application also provides a computer program product, wherein the computer program product includes executable instructions, and when the executable instructions are executed on a computer, the computer executes part or all of the steps in each embodiment of the image forming method provided in the present application.

[0177] Those skilled in the art can clearly understand that the technology in the embodiments of the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application or some parts of the embodiments.

[0178] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.

Claims

1. An image forming method, applied to a control device, characterized in that: include: acquiring a first data image in the image forming data; Obtaining an image to be processed based on the first data image; Reducing the image to be processed according to a set ratio to obtain a reduced image corresponding to the image to be processed; Enlarging the reduced image to obtain an enlarged image corresponding to the reduced image, wherein the size of the enlarged image is equal to the size of the image to be processed; Obtaining a calculation result of the resolution of the enlarged image and the resolution of the image to be processed; If the calculation result is within a set range, the enlarged image or the reduced image corresponding to the enlarged image is confirmed as a target image; The image data of the target image is transmitted to an image forming device so that the data size of the output image data is smaller than the data size of the image forming data.

2. The method according to claim 1, characterized in that: The step of obtaining the image to be processed based on the first data image includes: Performing segmentation processing on the first data image to obtain at least two segmented images; Each of the segmented images is used as an image to be processed.

3. The method according to claim 2, characterized in that The step of segmenting the first data image to obtain at least two segmented images includes: Determine a blank area or a same color gamut area of ​​the first data image; The first data image is segmented based on the blank area or the same color gamut area to obtain at least two segmented images.

4. The method according to claim 2, characterized in that: The step of segmenting the first data image to obtain at least two segmented images includes: Segmenting the first data image to obtain at least two sub-images; Each of the sub-images is subjected to a white margin stripping process to obtain at least two segmented images.

5. The method according to claim 2, characterized in that: Before segmenting the first data image to obtain at least two segmented images, the method further includes: Determining whether the size of the first data image is greater than a set size threshold; If the size of the first data image is larger than a set size threshold, the first data image is segmented to obtain at least two segmented images.

6. The method according to claim 5, characterized in that The method further comprises: If the size of the first data image is smaller than or equal to the set size threshold, the first data image is confirmed as a target image.

7. The method according to claim 1, characterized in that The method further comprises: If the calculation result is not within the set range, the image to be processed is confirmed as a target image.

8. The method according to claim 1, characterized in that The method further comprises: When the target image is a reduced image corresponding to the enlarged image, the resolution attribute of the reduced image is sent to the image forming device at the same time as the image data of the target image is sent. The resolution attribute is the difference between the resolution of the image forming environment and the resolution of the enlarged image corresponding to the reduced image.

9. The method according to claim 1, characterized in that: The method further comprises: When the target image is a reduced image corresponding to the enlarged image, the magnification factor of the reduced image is sent to the image forming device simultaneously with the image data of the target image. The magnification factor is the size ratio of the enlarged image corresponding to the reduced image to the reduced image.

10. The method according to claim 5, characterized in that Before determining whether the size of the first data image is greater than a set size threshold, the method further includes: determining whether an image volume of the first data image is greater than a set volume threshold, the image volume of the first data image being the amount of data of the first data image; If the image volume of the first data image is greater than a set volume threshold, generating a compressed image based on the first data image, wherein the image volume of the compressed image is less than or equal to the set volume threshold; sending the image data of the compressed image to the image forming device; If the image volume of the first data image is less than or equal to the set volume threshold, it is determined whether the size of the first data image is greater than the set size threshold.

11. The method according to claim 1, 6 or 7, characterized in that: Before sending the image data of the target image to the image forming device, the method further includes: Determine whether the image volume of the target image is greater than a set volume threshold, the image volume of the target image being the amount of data of the target image; If the image volume of the target image is greater than a set volume threshold, generating a compressed image based on the target image, wherein the image volume of the compressed image is less than or equal to the set volume threshold; sending the image data of the compressed image to the image forming device; If the image volume of the target image is less than or equal to the set volume threshold, the image data of the target image is sent to the image forming device.

12. The method according to claim 1, characterized in that The first data image includes a raster image in the image forming data, and the raster image includes background image data.

13. A control device, characterized in that: include: A first acquisition unit, used for acquiring a first data image in the image forming data; A second acquisition unit, configured to obtain an image to be processed based on the first data image; A reduction unit, used to reduce the image to be processed according to a set ratio to obtain a reduced image corresponding to the image to be processed; an enlarging unit, configured to enlarge the reduced image to obtain an enlarged image corresponding to the reduced image, wherein the size of the enlarged image is equal to the size of the image to be processed; A third acquisition unit, used for acquiring a calculation result of the resolution of the enlarged image and the resolution of the image to be processed; a confirmation unit, configured to confirm the enlarged image or the reduced image corresponding to the enlarged image as a target image when the calculation result is within a set range; The sending unit is used to send the image data of the target image to the image forming device so that the data volume of the output image data is smaller than the data volume of the image forming data.

14. An electronic device, characterized in that: include: processor; Memory; A computer program is stored in the memory, and when the computer program is executed, the electronic device executes the method according to any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 12.