Printing method and device

By directly intercepting and synthesising the objects to be printed in the preset image, the problems of low resolution and low printing efficiency when acquiring images on the network are solved, and efficient image printing is achieved.

CN119201017APending Publication Date: 2024-12-27BEIJING JINGDONG YUANSHENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411196339.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The prior art when printing images acquired by the network, the resolution is too low and the printing efficiency is low, resulting in excessive system performance consumption.

Method used

By obtaining the printing parameter data from the received printing request, the objects to be printed in the preset image are directly intercepted based on these data, and combined them with the corresponding identification information to generate the target image for printing, ensuring the distinction of the objects to be printed The rate is synchronized with the preset image to improve printing efficiency.

Benefits of technology

It realizes the synchronization of the final image resolution while improving the image printing efficiency, and solves the problems of low printing efficiency and system performance consumption caused by the prior art in order to ensure resolution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201017A_ABST
    Figure CN119201017A_ABST
Patent Text Reader

Abstract

The invention provides a printing method and device, and the method comprises the steps: obtaining printing parameter data from a received printing request; based on the printing parameter data, intercepting a to-be-printed object from the preset image; and performing synthesis processing on the identification information corresponding to the to-be-printed object and the to-be-printed object to generate a target image, and printing the target image. According to the embodiment, the resolution of the printed image can be improved while the image printing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a printing method and device. Background Art

[0002] The Internet has become an important way for people to obtain various types of information. However, when users want to print image information obtained from the Internet, they often face the problem of low resolution. Although there are technologies in the prior art that can use servers to render images to achieve high-definition printing, due to the limitations of server performance, it takes a long time and the resolution of the printed image is also insufficient. Summary of the invention

[0003] In view of this, the present invention provides a printing method, which can improve the resolution of the printed image while improving the image printing efficiency.

[0004] In a first aspect, an embodiment of the present disclosure provides a printing method, the method comprising:

[0005] Obtaining printing parameter data from the received printing request;

[0006] Based on the printing parameter data, intercepting the object to be printed from the preset image;

[0007] The identification information corresponding to the object to be printed is synthesized with the object to be printed to generate a target image, and the target image is printed.

[0008] Optionally, the printing parameter data includes: a zoom level and a screenshot range; based on the printing parameter data, intercepting the object to be printed from the preset image includes:

[0009] An image to be printed corresponding to the zoom level is obtained from each preset image, and an object to be printed is captured from the image to be printed according to a screenshot range.

[0010] Optionally, the printing parameter data includes: base map type; the method further includes:

[0011] Before intercepting the object to be printed from the preset image, confirming that the base map type included in the printing parameter data is the same as the base map type of the preset image;

[0012] In response to the fact that the base map type included in the printing parameter data is different from the base map type of the preset image, the screenshot range is converted into the screenshot range under the base map type of the preset image according to the coordinate conversion relationship between the pre-saved base map type and the base map type of the preset image, and the object to be printed is captured from the preset image according to the screenshot range obtained by the conversion.

[0013] Optionally, the method further comprises:

[0014] Determine an update type corresponding to the update request corresponding to the preset image;

[0015] In response to the update type being a base map type change, adjusting the base map type of the preset image and its business data;

[0016] In response to the update type being a business data change, the business data of the preset image is adjusted; wherein the business data represents different types of geographic entities in the preset image.

[0017] Optionally, the method comprises:

[0018] Create a main task to update the image according to the number of zoom levels of the preset image;

[0019] Segmenting a preset image at a zoom level corresponding to the main task of updating to obtain a plurality of image blocks, determining coordinate distribution information of each image block, and splitting the main task of updating into a plurality of subtasks according to the plurality of image blocks;

[0020] According to the update data in the update request corresponding to the preset image, each image block is updated, and in response to each image block completing the update, multiple image blocks under each update main task are merged to obtain multiple updated preset images at the zoom level corresponding to each update main task.

[0021] Optionally, updating each image block according to update data in an update request corresponding to a preset image includes:

[0022] Adjust the size of the rendering window according to the size data of each image block after segmentation of the preset image under each update main task;

[0023] In the rendering window, the rendering range of each image block is determined according to the coordinate distribution information corresponding to each image block;

[0024] Render each image block according to the update data and the rendering range.

[0025] In a second aspect, an embodiment of the present disclosure provides a printing device, including:

[0026] An acquisition module, used for acquiring printing parameter data from a received printing request;

[0027] An interception module, used for intercepting the object to be printed from the preset image based on the printing parameter data;

[0028] The synthesis module is used to synthesize the identification information corresponding to the object to be printed with the object to be printed to generate a target image and print the target image.

[0029] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps in the above-mentioned first aspect, or any optional implementation of the first aspect are performed.

[0030] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned first aspect, or any optional implementation of the first aspect are executed.

[0031] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, including a computer program, which implements the method of any of the above embodiments when executed by a processor.

[0032] Any of the above aspects or any implementation of any of the aspects can ensure that the resolution of the object to be printed is synchronized with the resolution of the preset image by directly intercepting the object to be printed in the preset image based on the printing parameter data, thereby ensuring the effect of image printing; in addition, by directly intercepting, the problem of using the server to render the object to be printed in order to ensure the resolution in the prior art is solved, which leads to low printing efficiency and consumption of system performance. After determining the object to be printed, it can be synthesized with the corresponding identification information to generate a target image and print the target image, thereby improving the image printing efficiency while ensuring the resolution of the final printed image.

[0033] The effects of the above-mentioned printing device, electronic device and storage medium can be found in the description of the above-mentioned printing method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.

[0035] Figure 1 A flow chart of a printing method provided by an embodiment of the present disclosure is shown;

[0036] Figure 2A schematic diagram of a printing method provided by an embodiment of the present disclosure is shown;

[0037] Figure 3 A schematic diagram of an image printing process provided by an embodiment of the present disclosure is shown;

[0038] Figure 4 A schematic diagram of a process of offline calculation and updating of a preset image provided by an embodiment of the present disclosure is shown;

[0039] Figure 5 A schematic diagram of a printing device provided by an embodiment of the present disclosure is shown;

[0040] Figure 6 An exemplary system architecture is shown in which embodiments of the present disclosure may be applied;

[0041] Figure 7 A schematic diagram of the structure of a computer system of a terminal device or a server used to implement an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0043] It should be noted that in the technical solution of the present invention, the collection, use, storage, sharing and transfer of user personal information involved are in compliance with the provisions of relevant laws and regulations, and it is necessary to inform the user and obtain the user's consent or authorization. When applicable, the user's personal information is de-identified and / or anonymized and / or encrypted.

[0044] Research has found that when users obtain image information on the Internet platform and print it, they often face the problem of low resolution.

[0045] However, although there is a technology in the prior art that can use a server to render images to achieve high-definition printing, due to the limitation of server performance, it takes a long time and the resolution of the printed image is also insufficient.

[0046] Based on the above research, the present invention provides a printing method, which can directly intercept the object to be printed in the preset image based on the printing parameter data, and can ensure that the resolution of the object to be printed is synchronized with the resolution of the preset image, thereby ensuring the effect of image printing; in addition, by directly intercepting, it also solves the problem of low printing efficiency and consumption of system performance caused by using the server to render the object to be printed in order to ensure the resolution in the prior art. After determining the object to be printed, it can be synthesized with the corresponding identification information to generate a target image and print the target image, thereby achieving the goal of improving the image printing efficiency while ensuring the resolution of the final printed image.

[0047] The raising of the above problems and the solutions are the results obtained by the inventor after practice and careful research. The discovery process of the above problems and the solutions proposed for the above problems should be the contributions made by the inventor to the present disclosure during the disclosure process.

[0048] The technical solutions in the present disclosure will be clearly and completely described below in conjunction with the drawings in the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure claimed for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0049] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0050] To facilitate understanding of this embodiment, a printing method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the printing method provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server or other processing device. The terminal device can be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the printing method can be implemented by a processor calling a computer-readable instruction stored in a memory.

[0051] See also Figure 1 As shown, it is a flow chart of a printing method provided in an embodiment of the present disclosure. It should be noted that the present disclosure can be applied to any printing scenario. The content described below is only illustrated by taking the map printing scenario as a possible application scenario, and does not constitute an improper limitation on the present disclosure. The method includes S101 to S103, wherein:

[0052] S101: Acquire printing parameter data from the received printing request.

[0053] In the disclosed embodiment, the user can perform operations such as capturing, previewing, and editing the map that he or she wishes to print in the workspace interface, and then print the map according to his or her own requirements.

[0054] Figure 2 A flow chart of a printing method provided by an embodiment of the present disclosure. Figure 2 As shown, the user can perform operations such as capturing, previewing and editing the preset image in the work area, and then perform subsequent printing tasks according to their own needs. In a specific implementation, a part of the preset image can be displayed in the visual interface of the work area, and the user can drag or zoom in and out the image in the display window according to their own needs, so that the part of the preset image displayed in the display window meets the user's needs. Then, the user can capture the part that he wants to print in the display window and preview the effect.

[0055] In a specific implementation, after the user completes operations such as capturing and editing the map, the start printing control of the workspace interface can be triggered to initiate a print request; wherein the editing operation can be to expand or reduce the selected area, or to add text, labels, etc. to the selected area. After receiving the print request initiated by the user, the execution subject of the embodiment of the present disclosure can obtain the printing parameter data corresponding to the user operation. Specifically, the printing parameter data may include the base map type, zoom level, fence data, center point coordinates, coordinate system conversion data, clipping data, etc. of the map.

[0056] In a specific implementation, after the user completes operations such as capturing and editing the map, the user can choose to lock the current image to record the current operation status, data status on the visualization interface, fence information, visualization range and cropping range, etc., so that the user can continue to operate the map based on the current operation the next time the user enters the map. After clicking the lock control, the execution subject of the embodiment of the present disclosure can transmit all data and status information in the current interface back to the server, and then store it in the cache for the next access.

[0057] In the disclosed embodiment, the base map type of the map may include multiple types, and the coordinate systems of different base maps are different. The user can select a base map type that meets his or her needs from the multiple base maps. For example, for the same address "Beijing South Railway Station", the coordinates of base map A are 39.865265, 116.378731, while the coordinates corresponding to base map B may be 39.87128, 116.385488, so it is necessary to obtain the base map type selected by the user.

[0058] In the disclosed embodiment, since there are multiple base map types, if the coordinate system data under each base map type is calculated, it will cause a waste of server resources. Therefore, a standard base map coordinate system can be set, and the conversion data between the coordinate systems under other base map types and the standard coordinate system can be determined. When the base map type selected by the user is not a standard base map, the coordinate system conversion can be completed according to the corresponding coordinate system conversion data.

[0059] In the disclosed embodiment, since the size of the workspace interface is limited, the displayed base maps are all scaled. When printing the actual base map, it is necessary to combine the cropping range, cropping ratio and other data in the cropping data with the zoom level to calculate the actual size of the printed base map before printing. Therefore, it is necessary to obtain the cropping data corresponding to the user operation.

[0060] In the disclosed embodiment, after obtaining the printing parameter data, the editing operation data of the current image can also be saved so that the user can directly operate based on the existing state when visiting next time. Specifically, the editing operation data may include the current operation state, the data state on the workspace page, fence information, visualization range and other data; wherein the operation state data may indicate whether the base map is edited, whether the fence is edited or deleted, which layers are added to the base map, etc.; the data state may include fence data before the operation, block data, added layer data, etc.; the fence information may include administrative fence, business scope fence, business development fence and other data; the visualization range is the screen size, that is, the display range of the map.

[0061] In a specific implementation, the user can trigger the lock function in the workspace interface to instruct the execution entity of the disclosed embodiment to upload the current printing parameter data and editing operation data to the server and save them in the cache so that the user can continue the operation based on the current operation when visiting next time.

[0062] S102: based on the printing parameter data, intercepting the object to be printed from the preset image.

[0063] In the embodiment of the present disclosure, as described above, the printing parameter data may include a zoom level and a screenshot range, so as to determine the object to be printed from the preset image. Specifically, based on the printing parameter data, the object to be printed is intercepted from the preset image, including: acquiring the image to be printed corresponding to the zoom level from each preset image, and intercepting the object to be printed from the image to be printed according to the screenshot range.

[0064] In a specific implementation, due to different requirements for the printing range and accuracy of the same map, a map with a larger image cannot display specific details, and a map with a smaller image cannot display the complete image. If a very small part is captured from a map image with a large image for printing, it will not only cause some image details to be passively ignored, but may also lead to problems with low resolution. Therefore, for the same map image, the preset images corresponding to each zoom level can be saved according to different zoom levels. When the printing parameter data is obtained, the preset image at the corresponding level can be selected according to the zoom level indicated in the printing parameter data, and the object to be printed can be captured from the preset image at the corresponding zoom level according to the screenshot range indicated in the printing parameter data. In this way, the determined object to be printed can meet the requirements for details and accuracy, and the resolution of the object to be printed can be guaranteed.

[0065] Since maps usually contain a large amount of geographic information, such as roads, rivers, buildings, etc., the details and ranges displayed by these information at different zoom levels are different. Therefore, the preset images at different zoom levels can be distinguished according to the above method, and then the objects to be printed can be determined. In addition, for example, when the preset image is a face image, its content is mainly the face of the person, and the displayed details range will not usually change due to zooming. Whether zooming in or out, the subject in the image is fixed. Therefore, in this printing scenario, the object to be printed can be directly captured in the preset image without having to be captured according to the zoom level.

[0066] It should be noted that the method of intercepting the object to be printed from the preset image can be determined according to the current printing scene. As described above, when the printing scene is map printing, the object to be printed can be confirmed according to the zoom level, and when the printing scene is face photo printing, the object to be printed can be directly determined in the preset image. In actual applications, the corresponding method of intercepting the object to be printed can be set according to the actual printing scene, and different methods of intercepting the object to be printed can also be set in the same printing scene. The embodiments of the present disclosure do not make specific limitations on this, and the function can be realized.

[0067] In the disclosed embodiment, in the map printing scenario, the base map types provided by different service providers are different, and the coordinate systems corresponding to the different base map types are also different. In order to save the computing resources of the server, the coordinate systems corresponding to the different base map types can be converted to the same standard coordinate system, and subsequent calculations are performed on the basis of the conversion. Specifically, the method also includes: before intercepting the object to be printed from the preset image, confirming that the base map type included in the printing parameter data is the same as the base map type of the preset image; in response to the base map type included in the printing parameter data being different from the base map type of the preset image, according to the coordinate conversion relationship between the pre-saved base map type and the base map type of the preset image, the screenshot range is converted to the screenshot range under the base map type of the preset image, and according to the screenshot range obtained by the conversion, the object to be printed is intercepted from the preset image.

[0068] In a specific implementation, the base map type that the preset image relies on may be a standard base map type, and its coordinate system is also a standard coordinate system. The coordinate conversion relationship between the coordinate system of each base map type and the standard coordinate system may be saved in advance. When it is determined that the base map type in the printing parameter data is different from the base map type of the preset image, these coordinate conversion relationships may be used to convert it. Since the screenshot range in the A base map may change after being converted to the coordinate system of the B base map, the screenshot range in the printing parameter data may also be converted into a screenshot range under the standard coordinate system (that is, the base map type of the preset image), and then the object to be printed is cut out from the preset image.

[0069] In another possible implementation, when the base map type in the printing parameter data is different from the base map type of the preset image, it is also possible to identify key feature points in the base map, such as road intersections, landmark buildings, water body boundaries, etc., and match these key feature points with corresponding points in the base map of the preset image. The object to be printed can also be determined from the preset image through the spatial position relationship of these feature points.

[0070] It should be noted that the above is only used as an example of possible implementation methods in the embodiments of the present disclosure and does not constitute an improper limitation on the present invention. When the base map type in the printing parameter data does not match the base map type of the preset image, in addition to the above method, you can also rely on spatial analysis tools, base map metadata, etc. to determine the object to be printed in the preset image. The embodiments of the present disclosure do not make specific limitations on this, and the ability to achieve its functions shall prevail.

[0071] S103: synthesizing the identification information corresponding to the object to be printed with the object to be printed to generate a target image, and printing the target image.

[0072] In this step, after determining the object to be printed, the corresponding identification information, such as watermark, copyright information, etc., can be obtained; then, according to the synthesis algorithm, these identification information are overlaid on the image corresponding to the object to be printed to generate a target image for printing, and then printed.

[0073] like Figure 3 As shown, before printing the target image, the target image can also be beautified, such as adding a corresponding filter to it according to the user's choice. In addition, the user can also preview and edit the generated target image again.

[0074] In the disclosed embodiment, the preset image can also be updated by offline calculation according to the update data. Figure 4 As shown, it is possible to determine whether there is updated data for a preset image in a preset time period according to preset detection rules. In a specific implementation, the preset time period can be selected during the idle time of the server, preferably, it can be set in the early morning of each day, so that the data can be updated in a timely manner and server resources are not occupied. Specifically, it is possible to detect whether there is new or changed data in the database of the day, and the detection rules can be set to check the insertion time, change time and current detection time of the data respectively; illustratively, if the insertion time is within 24 hours of the detection time, it must be new data, and when the update time is within 24 hours of the detection time, and the insertion time is greater than 24 hours, it must be changed data; otherwise, it is considered that the data has not been updated. If there is updated data, the corresponding data needs to be calculated offline.

[0075] In an embodiment of the present disclosure, the method also includes: determining an update type corresponding to an update request corresponding to a preset image; in response to the update type being a base map type change, adjusting the base map type of the preset image and its business data; in response to the update type being a business data change, adjusting the business data of the preset image; wherein the business data represents different types of geographic entities in the preset image.

[0076] In a specific implementation, the update of the preset image may generally include map data update and business data update. The map data update can be divided into two situations. The first is the change of the base map data used by the preset image. For example, some base map data in base map A has changed. At this time, the base map data corresponding to base map A can be updated, and a change record can be inserted into the database to indicate that the base map data has changed. The second is the change of base map type. For example, the preset image has the original base map A changed to base map B. At this time, if the database has the relevant data of base map B, the association relationship between the preset image and the corresponding base map type can be updated. If there is no relevant data of base map B in the database, the data of base map B can be added to the database before updating the association relationship. Business data updates are usually caused by changes in business type, base map type and zoom level range. Business data includes geographic entities such as points, lines, and surfaces on the map. It is easy to understand that when the base map type of the preset image changes, the corresponding business data will inevitably change; for example, if the original fence business is changed to a track business, it can be regarded as a change in the business type; assuming that the initial zoom level is 1-18 levels, if it is changed to 1-20 levels or even more, the size of the base map and other factors need to be updated accordingly.

[0077] In the embodiments of the present disclosure, Figure 4 As shown, when performing offline calculation and updating on a preset image, respective update tasks can be created according to different zoom levels. Specifically, the method includes: creating an update main task according to the number of zoom levels of the preset image; segmenting the preset image at the zoom level corresponding to the update main task to obtain a plurality of image blocks, and determining the coordinate distribution information of each image block, and splitting the update main task into a plurality of subtasks according to the plurality of image blocks; updating each image block according to the update data in the update request corresponding to the preset image, and in response to the completion of the update of each image block, merging the plurality of image blocks under each update main task to obtain a plurality of updated preset images at the zoom level corresponding to each update main task.

[0078] In a specific implementation, if the update data indicates a change in information such as zoom level, base map type, business type, etc., offline calculation and update can be performed based on the update data. For other types of update data, it can be determined whether to put it into the offline calculation and update task according to the actual situation, and the embodiments of the present disclosure are not limited to this.

[0079] Exemplarily, assuming that map A is updated, and the zoom level of map A is 1 to 18, 18 update main tasks can be created, one update main task corresponds to one zoom level, and then the image corresponding to each zoom level can be divided into 100 image blocks. It should be noted here that the number of image blocks can be set by itself, and the basis is the number of resources of the server. Setting it to 100 is only a feasible implementation method of the embodiment of the present disclosure, and does not constitute an improper limitation of the present invention. Each zoom level corresponds to a group of image blocks, and the number of image blocks in each group is 100. Then, the update main task corresponding to each zoom level can be divided into 100 subtasks according to the number of image blocks. Each subtask corresponds to an image block, and the size of each image block is the total pixels / 100 at the corresponding zoom level. In addition, the coordinate distribution data of each image block at the corresponding zoom level can also be recorded. Finally, the corresponding image blocks can be updated under each subtask according to the update data in the update request. When the image blocks at the zoom level are updated, the 100 image blocks at the zoom level can be merged. After the merger is completed, the update main task corresponding to the zoom level can be regarded as completed. When all 18 update main tasks are completed, the update can be regarded as completed. In this way, 18 updated images corresponding to 18 zoom levels are obtained.

[0080] In another possible implementation, the update method of each preset image can also be determined according to the zoom level. For example, for a preset image with a larger zoom level, it can be divided into multiple image blocks and updated separately to ensure image details; while for a preset image with a smaller zoom level, it can be directly updated without dividing it into multiple image blocks. Alternatively, the number of corresponding image blocks can also be determined according to different zoom levels, and the embodiments of the present disclosure do not make specific limitations on this, and the function can be realized.

[0081] In the disclosed embodiment, after obtaining multiple updated preset images at the zoom level corresponding to each of the updated main tasks, it is also possible to save the preset images at each zoom level according to each zoom level, and record the image information of each updated preset image, so that the object to be printed can be determined based on the updated preset image and perform subsequent printing steps.

[0082] In a specific implementation, after obtaining 18 updated images, they can be saved in the database according to the corresponding zoom level, and the image information of the preset image at each zoom level can be recorded. The image information can include information such as map name, zoom level, base map type, update time and save time, and can also be named in the format of "map name + zoom level + base map type + update time + save time" when saving.

[0083] In an embodiment of the present disclosure, each image block is updated according to the update data in the update request corresponding to the preset image, including: adjusting the rendering window size according to the size data of each image block after segmentation of the preset image under each update main task; in the rendering window, determining the rendering range of each image block according to the coordinate distribution information corresponding to each image block; and rendering each image block according to the update data and the rendering range.

[0084] In a specific implementation, when updating an image block, the size of the rendering window used to display the image block can be adjusted according to the size of the image block. In the rendering window, the base map is initialized according to the data of the base map type corresponding to map A, that is, the base map of map A is first rendered in the rendering window, and then the coordinate distribution information corresponding to the image block is used to determine the position of the image block in the base map, and the rendering range corresponding to the image block is located. Finally, according to the determined position, rendering range, the original business data of the image block in map A, and the update data for the image block, the image block is rendered at the corresponding position of the base map. Alternatively, the complete updated preset image after splicing can be directly rendered on the corresponding base map. The embodiment of the present disclosure does not specifically limit the rendering method, and its function can be realized.

[0085] In the disclosed embodiment, an image of map A at each zoom level is finally obtained. When the user selects all images or partial images at a certain zoom level for printing, there is no need for online calculation and rendering, which improves the efficiency of image printing. Without the limitation of server resources, the resolution of image printing can also be improved accordingly.

[0086] According to a second aspect of the embodiment of the present disclosure, Figure 5 As shown, a printing device 500 is provided, comprising:

[0087] The acquisition module 501 is used to acquire the printing parameter data from the received printing request;

[0088] The interception module 502 is used to intercept the object to be printed from the preset image based on the printing parameter data;

[0089] The synthesis module 503 is used to synthesize the identification information corresponding to the object to be printed with the object to be printed to generate a target image, and print the target image.

[0090] Optionally, the printing parameter data includes: a zoom level and a screenshot range; the capture module 202 is specifically used for:

[0091] An image to be printed corresponding to the zoom level is obtained from each preset image, and an object to be printed is captured from the image to be printed according to a screenshot range.

[0092] Optionally, the printing parameter data includes: base map type; the interception module 202 is further used for:

[0093] Before intercepting the object to be printed from the preset image, confirming that the base map type included in the printing parameter data is the same as the base map type of the preset image;

[0094] In response to the fact that the base map type included in the printing parameter data is different from the base map type of the preset image, the screenshot range is converted into the screenshot range under the base map type of the preset image according to the coordinate conversion relationship between the pre-saved base map type and the base map type of the preset image, and the object to be printed is captured from the preset image according to the screenshot range obtained by the conversion.

[0095] Optionally, the device further includes a determining module 504, and the determining module 504 is specifically configured to:

[0096] Determine an update type corresponding to the update request corresponding to the preset image;

[0097] In response to the update type being a base map type change, adjusting the base map type of the preset image and its business data;

[0098] In response to the update type being a business data change, the business data of the preset image is adjusted; wherein the business data represents different types of geographic entities in the preset image.

[0099] Optionally, the device further includes an updating module 505, and the updating module 505 is specifically configured to:

[0100] Create a main task to update the image according to the number of zoom levels of the preset image;

[0101] Segmenting a preset image at a zoom level corresponding to the main task of updating to obtain a plurality of image blocks, determining coordinate distribution information of each image block, and splitting the main task of updating into a plurality of subtasks according to the plurality of image blocks;

[0102] According to the update data in the update request corresponding to the preset image, each image block is updated, and in response to each image block completing the update, multiple image blocks under each update main task are merged to obtain multiple updated preset images at the zoom level corresponding to each update main task.

[0103] Optionally, the updating module 505 is further configured to:

[0104] Adjust the size of the rendering window according to the size data of each image block after segmentation of the preset image under each update main task;

[0105] In the rendering window, the rendering range of each image block is determined according to the coordinate distribution information corresponding to each image block;

[0106] Render each image block according to the update data and the rendering range.

[0107] According to the third aspect of an embodiment of the present disclosure, a printing electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided by the first aspect of the embodiment of the present disclosure.

[0108] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present disclosure is implemented.

[0109] According to a fifth aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and the computer program implements the method of any of the above embodiments when executed by a processor.

[0110] Figure 6 An exemplary system architecture 600 is shown to which a printing method or a printing apparatus embodied in the present disclosure can be applied.

[0111] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0112] The user can use the terminal devices 601, 602, 603 to interact with the server 605 through the network 604 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 601, 602, 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).

[0113] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.

[0114] The server 605 may be a server that provides various services, such as a background management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 601, 602, and 603. The background management server may process the received print request and feed back the processing result (only an example) to the terminal device.

[0115] It should be noted that the printing method provided in the embodiment of the present invention is generally executed by the server 605, and accordingly, the printing device is generally set in the server 605. The printing method provided in the embodiment of the present invention can also be executed by the terminal devices 601, 602, and 603, and accordingly, the printing device can be set in the terminal devices 601, 602, and 603.

[0116] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0117] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of a terminal device suitable for implementing an embodiment of the present invention. Figure 7 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0118] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0119] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0120] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.

[0121] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0122] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0123] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor. For example, a processor includes an acquisition module, an interception module, and a synthesis module. The names of these modules do not limit the modules themselves in some cases. For example, the acquisition module may also be described as a "module for acquiring print parameter data from a received print request."

[0124] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device implements the following method: obtaining printing parameter data from a received printing request; based on the printing parameter data, intercepting an object to be printed from a preset image; synthesizing the identification information corresponding to the object to be printed with the object to be printed to generate a target image, and printing the target image.

[0125] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be based on the protection scope of the claims.

Claims

1. A printing method, characterized in that: include: Obtaining printing parameter data from the received printing request; Based on the printing parameter data, intercepting the object to be printed from the preset image; The identification information corresponding to the object to be printed is synthesized with the object to be printed to generate a target image, and the target image is printed.

2. The method according to claim 1, characterized in that: The printing parameter data includes: a zoom level and a screenshot range; based on the printing parameter data, intercepting the object to be printed from the preset image includes: An image to be printed corresponding to the zoom level is acquired from each preset image, and the object to be printed is captured from the image to be printed according to the screenshot range.

3. The method according to claim 1, characterized in that: The printing parameter data includes: base map type; the method also includes: Before intercepting the object to be printed from the preset image, confirming that the base map type included in the printing parameter data is the same as the base map type of the preset image; In response to the fact that the base map type included in the printing parameter data is different from the base map type of the preset image, the screenshot range is converted into a screenshot range under the base map type of the preset image according to a pre-saved coordinate conversion relationship between the base map type and the base map type of the preset image, and the object to be printed is captured from the preset image according to the screenshot range obtained by the conversion.

4. The method according to claim 1, characterized in that: The method further comprises: Determining an update type corresponding to the update request corresponding to the preset image; In response to the update type being a base map type change, adjusting the base map type of the preset image and its business data; In response to the update type being a business data change, the business data of the preset image is adjusted; wherein the business data represents different types of geographic entities in the preset image.

5. The method according to claim 4, characterized in that The method comprises: Creating and updating a main task according to the number of zoom levels of the preset image; Segmenting the preset image at the zoom level corresponding to the main update task to obtain a plurality of image blocks, determining coordinate distribution information of each image block, and splitting the main update task into a plurality of subtasks according to the plurality of image blocks; According to the update data in the update request corresponding to the preset image, each image block is updated, and in response to each image block completing the update, the multiple image blocks under each update main task are merged to obtain multiple updated preset images at the zoom level corresponding to each update main task.

6. The method according to claim 5, characterized in that Updating each of the image blocks according to the update data in the update request corresponding to the preset image includes: Adjust the size of the rendering window according to the size data of each image block after segmenting the preset image under each of the updating main tasks; In the rendering window, determining a rendering range of each image block according to coordinate distribution information corresponding to each image block; Render each of the image blocks according to the update data and the rendering range.

7. A printing device, characterized in that: include: An acquisition module, used for acquiring printing parameter data from a received printing request; An interception module, used for intercepting the object to be printed from the preset image based on the printing parameter data; The synthesis module is used to synthesize the identification information corresponding to the object to be printed with the object to be printed to generate a target image and print the target image.

8. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.