Cross-paper gridding picture cutting method and device, electronic equipment and medium

The grid control panel automates the cropping process for large images, addressing manual errors and inefficiencies in traditional methods, providing precise and efficient image cropping across paper.

CN119088326APending Publication Date: 2024-12-06SHENZHEN EFERCRO ELECTRONIC TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Traditional methods for printing large-size, high-resolution images require manual cropping of images into multiple parts, which is cumbersome and prone to errors, affecting user experience and efficiency.

Method used

A method and device for cropping gridded images across paper using a grid control panel that automatically calculates and adjusts the grid coverage range and position based on user input, supporting batch processing and reducing manual errors.

Benefits of technology

Enables precise and efficient cropping of images across paper with improved user interface design, reducing learning costs and time, and supporting various paper sizes and cropping ratios, thus enhancing user experience and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088326A_ABST
    Figure CN119088326A_ABST
Patent Text Reader

Abstract

The invention provides a cross-paper gridding picture cutting method and device, electronic equipment and a medium, and relates to the technical field of picture printing. The cross-paper gridding picture cutting method comprises the following steps: constructing a grid control panel, and setting control parameters of the grid control panel based on cutting operation requirements; receiving a to-be-clipped picture sent by the user equipment; according to an operation signal sent by the user equipment based on the control parameter, determining a grid coverage range and coverage position data of the to-be-cut picture in the grid control panel; and cutting the grid coverage area according to the coverage position data to generate a plurality of cross-paper gridding pictures. According to the method, the corresponding operation display is carried out on the to-be-cut picture according to the requirements of the user, then cutting is carried out on the grid control panel according to the grid coverage range and the coverage position data, the picture cutting process is simplified, and then the accuracy and continuity of picture printing are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of picture printing technology, for example, to a method, device, electronic device and medium for cutting gridded pictures across paper. Background Art

[0002] In the field of image printing technology, with the popularization of digital content and the continuous improvement of image resolution, users have a growing demand for printing large-size, high-resolution images. However, traditional printing equipment and paper size limit the possibility of directly printing large-size images. In order to overcome this limitation, it is usually necessary to divide large-size images into multiple small parts, print them separately, and then splice them to achieve a complete printing effect. Cross-paper grid image processing methods have emerged.

[0003] At present, when users need to print pictures that exceed the size of a single A4 paper, they usually need to use picture cropping tools to manually crop the pictures, and then send the cropped pictures to the printer one by one for printing. In the related art, users generally use third-party picture editing software to crop pictures, but the cropping operation process is relatively complicated and prone to errors, resulting in the current cropping process of cross-paper grid pictures affecting the user experience and the cropping efficiency. Summary of the invention

[0004] The present application aims to provide a method, device, electronic device and medium for cropping gridded images across paper.

[0005] According to one aspect of the present application, a method for cutting a cross-paper grid image is provided, comprising: Build a grid control panel and set the control parameters of the grid control panel based on the cropping operation requirements; Receiving a picture to be cropped sent by a user device; Determine, according to an operation signal sent by the user device based on the control parameters, a grid coverage range and coverage position data of the image to be cropped in the grid control panel; The grid coverage is cropped based on the coverage position data to generate multiple gridded images across the paper.

[0006] According to some embodiments, constructing a grid control panel includes: Get the paper demand sent by the user device; Determine the panel range ratio based on paper requirements; Set the default control panel based on the panel range ratio and screen properties of the display screen; Generate a grid control panel based on the preset grid line drawing requirements and the default control panel.

[0007] According to some embodiments, determining the panel range ratio according to paper requirements includes: According to the paper demand, determine the quantity demand, paper size demand and paper laying demand; Determine the panel range ratio based on quantity requirements, sheet size requirements, and sheet layup requirements.

[0008] According to some embodiments, setting control parameters of the grid control panel based on the clipping operation requirements includes: According to the cutting operation requirement, determining whether the user corresponding to the user device performs the operation requirement setting; In the case of setting the operation requirement, rewriting the preset touch mode based on the operation requirement setting to determine the target touch mode, and determining the target touch interception mode based on the target touch mode; In the case where no operation requirement is set, the preset touch mode is determined as the target touch mode, and the preset touch interception mode corresponding to the preset touch mode is determined as the target touch interception mode.

[0009] According to some embodiments, determining the grid coverage range and coverage position data of the to-be-cropped picture in the grid control panel according to an operation signal sent by a user based on a control parameter includes: Determine, according to an operation signal sent by the user device based on the control parameter, a corresponding touch operation and a picture adjustment method corresponding to the touch operation; The image to be cropped is adjusted based on the image adjustment method to determine a pre-processed image; According to the image adjustment method and the center coordinates of the grid control panel, the coverage position data of the pre-processed image and the grid coverage range are determined.

[0010] According to some embodiments, the method further comprises: Grayscale processing is performed on multiple gridded images across sheets of paper to determine multiple images to be printed; Determine the corresponding printer and printing order according to printing requirements; Connect the printer and output multiple pictures to be printed in the printing order.

[0011] According to some embodiments, connecting a printer and outputting a plurality of pictures to be printed in a printing order includes: Connect to the printer and detect whether the printer has paper; When there is paper, send multiple pictures to be printed to the printer for printing; When there is no paper, a prompt to add paper is sent to the user device, so that a plurality of pictures to be printed are sent to the printer after the user adds paper.

[0012] According to one aspect of the present application, a device for cutting a cross-paper grid image is provided, comprising: A control parameter determination module is used to construct a grid control panel and set control parameters of the grid control panel based on the requirements of the clipping operation; A picture receiving module, used for receiving a picture to be cropped sent by a user device; A coverage determination module, used to determine the grid coverage range and coverage position data of the image to be cropped in the grid control panel according to an operation signal sent by the user equipment based on the control parameters; The range clipping module is used to clip the grid coverage range according to the coverage position data to generate multiple gridded images across the paper.

[0013] Optionally, when constructing a grid control panel, the control parameter determination module is specifically used to: Get the paper demand sent by the user device; Determine the panel range ratio based on paper requirements; Set the default control panel based on the panel range ratio and screen properties of the display screen; Generate a grid control panel based on the preset grid line drawing requirements and the default control panel.

[0014] Optionally, when the control parameter determination module determines the panel range ratio according to paper requirements, it is specifically used to: According to the paper demand, determine the quantity demand, paper size demand and paper laying demand; Determine the panel range ratio based on quantity requirements, sheet size requirements, and sheet layup requirements.

[0015] Optionally, when the control parameter determination module sets the control parameters of the grid control panel based on the clipping operation requirements, it is specifically used to: According to the cutting operation requirement, determining whether the user corresponding to the user device performs the operation requirement setting; In the case of setting the operation requirement, rewriting the preset touch mode based on the operation requirement setting to determine the target touch mode, and determining the target touch interception mode based on the target touch mode; In the case where no operation requirement is set, the preset touch mode is determined as the target touch mode, and the preset touch interception mode corresponding to the preset touch mode is determined as the target touch interception mode.

[0016] Optionally, the coverage determination module is specifically used for: Determine, according to an operation signal sent by the user device based on the control parameter, a corresponding touch operation and a picture adjustment method corresponding to the touch operation; The image to be cropped is adjusted based on the image adjustment method to determine a pre-processed image; According to the image adjustment method and the center coordinates of the grid control panel, the coverage position data of the pre-processed image and the grid coverage range are determined.

[0017] Optionally, the cutting device for the cross-paper gridded picture further includes a picture printing module, which is used to: Grayscale processing is performed on multiple gridded images across sheets of paper to determine multiple images to be printed; Determine the corresponding printer and printing order according to printing requirements; Connect the printer and output multiple pictures to be printed in the printing order.

[0018] Optionally, when the picture printing module is connected to a printer and outputs a plurality of pictures to be printed in a printing order, it is specifically used to: Connect to the printer and detect whether the printer has paper; When there is paper, send multiple pictures to be printed to the printer for printing; When there is no paper, a prompt to add paper is sent to the user device, so that a plurality of pictures to be printed are sent to the printer after the user adds paper.

[0019] According to one aspect of the present application, an electronic device is provided, which includes: a processor; and a memory storing a computer program, wherein when the computer program is executed by the processor, the processor executes the method for cropping a gridded picture across paper as described above.

[0020] According to one aspect of the present application, a non-transitory computer-readable medium is provided, on which readable instructions are stored. When the instructions are executed by a processor, the processor executes the method for cropping a gridded image across paper as described above.

[0021] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application.

[0022] Through the above-mentioned embodiments provided by the present application, the precise cropping preview of the picture can be realized through simple operations such as zooming and moving by the user, without in-depth understanding of complex image processing technology. The design of the grid control panel fully considers the user habits, making the operation interface friendly, the process smooth, and reducing the learning cost and the threshold of use. By automatically calculating the grid coverage range and coverage position data of the picture to be cropped in the grid control panel, the time of manual judgment and marking is reduced, and the processing speed is improved. Batch processing and automatic cropping are supported, and multiple pictures can be processed at the same time, which greatly improves work efficiency. The precise control and parameterized setting of the grid control panel are used to avoid the problem of inaccurate cropping caused by manual error or visual error during manual cropping. The control parameters of the grid control panel can be flexibly set according to the specific cropping requirements of the user, supporting a variety of paper sizes and cropping ratios, and meeting the image processing requirements in different scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of 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 exceeding the scope of protection required by the present application.

[0024] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application; Figure 2 A flow chart of a method for cropping a gridded image across paper provided in an embodiment of the present application; Figure 3 A block diagram of a device for cutting a cross-paper gridded picture provided in an embodiment of the present application; Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this application will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.

[0026] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0027] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0028] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0029] It should be understood that although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another component. Therefore, the first component discussed below can be referred to as the second component without departing from the teachings of the concepts of the present application. As used herein, the term "and / or" includes any one of the associated listed items and all combinations of one or more.

[0030] Figure 1 A schematic diagram of an application scenario according to an exemplary embodiment is shown. The cropping method of cross-paper gridded images of the present application can be built on an image processing server. The user can send the to-be-cropped images that need to be cropped and printed to the image processing server through the user device, and the image processing server can display the to-be-cropped images in the center of the established grid control panel. The user can also send operation signals such as zooming and moving for the to-be-cropped images to the image processing server through the user device. The image processing server analyzes the situation of the processed images on the grid control panel, determines the grid coverage range and coverage position data for cropping, and then obtains multiple cross-paper gridded images and sends them to the printer, so that the printer prints the desired images.

[0031] For specific implementation methods, please refer to the following embodiments.

[0032] Figure 2This is a flow chart of a method for cropping a cross-paper gridded image provided in an embodiment of the present application. The method of this embodiment can be applied to an image processing server in the above application scenario. Figure 2 As shown, the method includes: step S20, step S21, step S22 and step S23.

[0033] In step S20, a grid control panel is constructed, and control parameters of the grid control panel are set based on the cropping operation requirements.

[0034] In this application, the image processing server can exchange information with the user device used by the user, and the image to be cropped can be displayed on the user device, so that the user can perform operations such as zooming and moving. The grid control panel should include an interactive image display area that can dynamically load and display the image to be cropped. The grid control panel can include a grid divided by virtual lines, which can be related to the cropping requirements or the paper size that the user wants to use for printing.

[0035] The cropping operation requirements may include the user's requirements for cropping, moving, scaling, etc. of the image, and may also include other operation requirements, such as the size of the grid, information about the printer used, etc. The control parameters may include which touch operation represents scaling, which touch operation represents moving, etc.

[0036] According to an example embodiment, a UI interface of a grid control panel can be constructed on a user device using HTML / CSS / JavaScript (or similar frameworks such as React, Vue, etc.). Based on the cropping operation requirements sent by the user through the user device or pre-stored, a grid is dynamically drawn using a Canvas element or SVG, etc., and parameters corresponding to pre-stored different settings are automatically found as control parameters.

[0037] In step S21, a picture to be cropped sent by a user equipment is received.

[0038] The user can send the to-be-cropped picture to the picture processing server through the user device, and the picture processing server receives it accordingly.

[0039] In some implementations, the image to be cropped may be displayed in the center of the grid control panel by default.

[0040] In other implementations, the picture to be cropped may include multiple pictures.

[0041] In step S22, according to the operation signal sent by the user equipment based on the control parameters, the grid coverage range and coverage position data of the to-be-cropped picture in the grid control panel are determined.

[0042] In the present application, the grid coverage range can be used to indicate how many grids are covered by the image in the grid control panel, which can be represented by the area of ​​the grid. If less than one grid is covered, it can be calculated as one grid. The coverage position data can be represented by the coordinate information of the image in the grid control panel. In some implementations, a coordinate system can be established with the center point of the grid control panel as the origin.

[0043] According to an example embodiment, an operation signal, such as zooming or moving, sent by a user device based on a control parameter may be received, and the size and position of the image to be cropped may be adjusted accordingly based on the operation signal, and the number of grids covered by the image to be cropped in the grid control panel at the current moment may be calculated. The area of ​​each grid may be extracted from the control parameter, and the grid coverage range may be determined. The position of the image to be cropped adjusted according to the operation signal may be detected and represented by coordinate information as coverage position data.

[0044] In some implementations, if there are multiple pictures to be cropped, the picture processing server may also layout the pictures to be cropped based on the user's operation signal.

[0045] In step S23, the grid coverage range is cropped according to the coverage position data to generate a plurality of gridded images across the paper.

[0046] According to an example embodiment, the image to be cropped is positioned based on the coverage position data, and then cut according to the grid lines between the grids within the grid coverage range to obtain multiple cross-paper gridded images. The number of cross-paper gridded images corresponds to the number of grids within the grid coverage range.

[0047] This application can realize accurate cropping preview of pictures through simple operations such as zooming and moving by users, without in-depth understanding of complex image processing technology. The design of the grid control panel fully considers user habits, making the operation interface friendly, the process smooth, and reducing the learning cost and usage threshold. By automatically calculating the grid coverage range and coverage position data of the image to be cropped in the grid control panel, the time for manual judgment and marking is reduced, and the processing speed is improved. It supports batch processing and automatic cropping, and can process multiple pictures at the same time, greatly improving work efficiency. The precise control and parameterized settings of the grid control panel are used to avoid inaccurate cropping caused by manual errors or visual errors during manual cropping. The control parameters of the grid control panel can be flexibly set according to the user's specific cropping needs, supporting a variety of paper sizes and cropping ratios, and meeting the image processing needs in different scenarios.

[0048] According to some embodiments, a grid control panel may be generated in combination with paper requirements. Specifically, the following may be performed: obtaining paper requirements sent by a user device; determining a panel range ratio according to the paper requirements; setting a default control panel based on the panel range ratio and screen properties of a display screen; and generating a grid control panel according to preset grid line drawing requirements and the default control panel.

[0049] In the present application, the paper requirement may include the display mode of the paper in the user device when printing the picture. The panel range ratio may be used to represent the total aspect ratio of multiple sheets of paper. The screen attributes of the display screen may include the clarity, the length and width of the screen, etc., and the screen attributes are pre-stored.

[0050] The preset grid line drawing requirement may be used to indicate a preset way of drawing grid lines. In some implementations, the grid lines may be drawn according to the required paper size so that the size of the drawn grid corresponds to the paper size.

[0051] According to an example embodiment, a user may send a paper requirement to an image processing server through a user device. The image processing server may extract a display mode of the paper from the paper requirement, and the display mode may be used to indicate the form in which the paper is laid, the length and width after laying, etc. The screen attributes of the display screen stored in advance are obtained, and the length and / or width of the display screen are filled with paper in proportion to the panel range under the premise of clear display, and a default control panel is generated. A grid is drawn on the default control panel according to the preset grid line drawing requirements, and a grid control panel is generated.

[0052] This application obtains the paper requirements sent by the user device, flexibly determines the panel range ratio, and combines the screen properties of the display screen to achieve the precise layout of the grid control panel, ensuring the best visual effects and user experience on different devices. The generated grid control panel intuitively displays the relationship between the cropping area and the paper requirements, allowing users to understand at a glance how the cropped image will adapt to the selected paper, thereby reducing the difficulty of operation and improving the convenience of user operation. The construction process of the grid control panel fully considers the precision requirements of cropping, and ensures the accuracy and consistency of the cropping results through scientific and reasonable grid division.

[0053] According to some embodiments, the panel range ratio can be calculated based on the paper quantity requirement and paper size requirement. Specifically, the quantity requirement, paper size requirement and paper laying requirement can be determined according to the paper requirement; and the panel range ratio can be determined based on the quantity requirement, paper size requirement and paper laying requirement.

[0054] In this application, paper requirements may specifically include the number of papers required when printing pictures, the size of the paper, such as A4 paper, and the paper laying requirements in the user device, for example, 6 sheets of paper are required and displayed according to the 2*3 laying requirements.

[0055] According to an exemplary embodiment, the quantity requirement, the paper size requirement and the paper laying requirement are extracted from the paper requirement. The above number of papers are virtually laid according to the paper laying, and then the length and width of the virtually laid paper are calculated based on the size of each paper as the panel range ratio.

[0056] This application takes into account the diverse needs of users for paper, including quantity, size, and laying methods, to ensure that the constructed grid control panel can accurately meet the actual needs of users. This flexibility enables the technology to be widely used in various image cutting and printing scenarios. Through accurate calculations based on the number, size, and laying requirements of paper, it can ensure that the range ratio of the grid control panel is highly matched with the actual use of paper.

[0057] According to some embodiments, the corresponding target touch mode and target touch interception method can be determined in different situations when the user has set the operation requirement and when the user has not set the operation requirement. Specifically, it can be: determined whether the user corresponding to the user device has set the operation requirement according to the cropping operation requirement; when the operation requirement is set, the preset touch mode is rewritten based on the operation requirement setting to determine the target touch mode, and the target touch interception method is determined based on the target touch mode; when the operation requirement is not set, the preset touch mode is determined as the target touch mode, and the preset touch interception mode corresponding to the preset touch mode is determined as the target touch interception mode.

[0058] In the present application, the tailoring operation requirement may include a field corresponding to the user's operation requirement. If the user sets the operation requirement, the corresponding field is not empty. If the user does not set the operation requirement, the corresponding field is empty.

[0059] The preset touch mode is a pre-set touch mode. In some implementations, two-finger touch zoom, single-finger touch slide, long press to add pictures, etc. can be set. The preset touch interception method can avoid conflicts between operations such as picture movement and control panel movement, that is, avoid conflicts between default operations and target touch modes corresponding to user needs.

[0060] According to an example embodiment, when setting operation requirements, the operation requirement setting can be extracted from the clipping operation requirements, and the preset touch mode can be rewritten using View or UIView to obtain the target touch mode. Based on the target touch mode, a mode that does not conflict with the target touch mode can be found in the pre-set multiple touch connection modes as the target touch interception mode.

[0061] In the case where no operation requirement is set, the preset touch mode may be determined as the target touch mode, and a preset touch interception mode corresponding to the preset touch mode may be searched as the target touch interception mode.

[0062] The present application determines the target touch mode and the target touch interception method according to the requirements of the cutting operation, allowing the user to make personalized settings according to their own cutting operation requirements, including the touch mode and the touch interception method. By rewriting the preset touch mode to adapt to the user's operation requirements, the technical solution realizes the dynamic adjustment of the touch mode. This flexibility enables the grid control panel to better adapt to the user's operation requirements in different scenarios, improving the flexibility and response speed of the operation. The preset touch interception mode exists to prevent unnecessary false touches during the operation process. Intelligently selecting the touch interception method based on whether the user sets the operation requirements not only ensures the smoothness of the user's operation, but also effectively reduces the occurrence of false operations, and improves the accuracy and reliability of the operation.

[0063] According to some embodiments, the cropped image can be adjusted according to user needs to determine the coverage position data and the grid coverage range. Specifically, the corresponding touch operation and the image adjustment method corresponding to the touch operation can be determined according to the operation signal sent by the user device based on the control parameters; the cropped image is adjusted based on the image adjustment method to determine the preprocessed image; the coverage position data and the grid coverage range of the preprocessed image are determined according to the image adjustment method and the center coordinates of the grid control panel.

[0064] In this application, the image adjustment method can be used to indicate the corresponding operation of the user's operation signal on the image. The coverage position data can be used to represent the position where the image to be cropped is moved to, and the grid coverage range can be used to represent the situation where the image to be cropped covers the grid after scaling.

[0065] According to an example embodiment, a touch operation and a corresponding picture adjustment method can be extracted from the operation signal. The signal to be cropped is adjusted according to the picture adjustment method, such as scaling, moving, etc., and the adjusted picture is determined as the preprocessed picture. The position point touched on the preprocessed picture when the user moves the picture can be detected, and the touch process of the position point can be followed to determine the position where the touch ends as the target position data of the position point. Based on the position of the position point in the preprocessed picture, the position data of the four corner points of the preprocessed picture are determined as the coverage position data.

[0066] If the preprocessed image is also scaled, the scaled preprocessed image can be checked against the panel range ratio, and the width and height of the image can be recalculated to obtain the covered grid as the grid coverage range.

[0067] In other implementations, the time when the picture starts to move, the direction of the touch movement, and the position where the movement stops may also be detected, and then the distance from the new position of the picture to the original position of the picture may be calculated, and the coverage position data may be further determined in combination with the distance.

[0068] This application can immediately perform corresponding image adjustment operations by responding to the user's operation signals in real time, so that the user can intuitively see the changes in the image in the grid control panel. With the help of the precise coordinate system and grid division of the grid control panel, the coverage position data and grid coverage range of the pre-processed image can be accurately calculated, providing users with accurate cropping references, making cropping operations more accurate. Users do not need to manually calculate and adjust the position and size of the image, they can complete these tasks through simple touch operations. This automated processing method greatly simplifies the cropping process, reduces the user's time and energy investment, and improves cropping efficiency.

[0069] According to some embodiments, multiple gridded images across sheets of paper can also be printed, specifically: multiple gridded images across sheets of paper can be grayscaled to determine multiple images to be printed; according to printing requirements, the corresponding printer and printing order can be determined; the printer can be connected and the multiple images to be printed can be output in the printing order.

[0070] In this application, the printing requirement may include the ID of the printer and the order in which the pictures are printed. The printer corresponds to the required paper size, which can be a single print or a large poster printed by assembling each picture. The printing requirement may be sent by the user to the image processing server through the user device. In some implementations, if a large poster is printed, the printing order is empty.

[0071] According to the example embodiment, multiple cross-paper gridded images can be grayed out to obtain multiple images to be printed. The printer and the printing order are extracted from the printing requirements, and then the image processing server can connect to the corresponding printer, and then send the images to be printed to the printer according to the printing order to print out the multiple images to be printed.

[0072] This application can significantly reduce the amount of image data while retaining key image information by gray-scaling multiple cross-paper gridded images. Gray-scaling makes the image more suitable for black-and-white printing environments, removes unnecessary color information, and makes the printed images clearer and sharper. According to different printing requirements, the corresponding printer can be intelligently selected and the printing parameters can be configured, ensuring the smooth completion of the printing task and meeting diverse printing requirements. By determining a reasonable printing order, the system can optimize the execution process of the printing job.

[0073] According to some embodiments, it is possible to detect whether the printer has paper, specifically: connecting the printer and detecting whether the printer has paper; if there is paper, sending multiple pictures to be printed to the printer for printing; if there is no paper, sending a paper adding prompt to the user device, so as to send multiple pictures to be printed to the printer after the user adds paper.

[0074] According to an example embodiment, the printer can be identified and a communication connection can be established through Bluetooth, wireless connection, etc. The image processing server can send a query instruction of the paper status to the connected printer and receive the paper status fed back by the printer. The image processing server can determine whether there is paper in the printer according to the paper status.

[0075] When there is paper, multiple pictures to be printed are sent to the printer for printing; when there is no paper, a prompt to add paper is sent to the user device, and after adding paper, multiple pictures to be printed are sent to the printer for printing.

[0076] This application detects the paper status of the printer in real time and can start the print job immediately when there is paper, avoiding printing interruptions caused by lack of paper. This helps maintain the continuity of the print job and improves overall printing efficiency. When the printer is detected to be out of paper, it can automatically send a prompt to the user's device to add paper. After receiving the prompt, the user can respond quickly and add paper, thereby reducing the user's time and energy investment in waiting for the printer to detect itself or the user to actively check the paper status.

[0077] The following describes an apparatus embodiment of the present application, which can be used to execute the method embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, reference can be made to the method embodiment of the present application.

[0078] Figure 3 This is a block diagram of a device for cutting a cross-paper grid image provided by an embodiment of the present application. Figure 3 As shown, the cross-paper gridded picture cropping device 300 includes a control parameter determination module 301 , a picture receiving module 302 , a coverage determination module 303 and a range cropping module 304 .

[0079] A control parameter determination module 301 is used to construct a grid control panel and set control parameters of the grid control panel based on the cropping operation requirements; The picture receiving module 302 is used to receive the picture to be cropped sent by the user equipment; A coverage determination module 303, configured to determine a grid coverage range and coverage position data of the to-be-cropped picture in the grid control panel according to an operation signal sent by the user equipment based on the control parameters; The range clipping module 304 is used to clip the grid coverage range according to the coverage position data to generate multiple gridded images across the paper.

[0080] Optionally, when constructing a grid control panel, the control parameter determination module 301 is specifically used to: Get the paper demand sent by the user device; Determine the panel range ratio based on paper requirements; Set the default control panel based on the panel range ratio and screen properties of the display screen; Generate a grid control panel based on the preset grid line drawing requirements and the default control panel.

[0081] Optionally, when the control parameter determination module 301 determines the panel range ratio according to the paper requirement, it is specifically used to: According to the paper demand, determine the quantity demand, paper size demand and paper laying demand; Determine the panel range ratio based on quantity requirements, sheet size requirements, and sheet layup requirements.

[0082] Optionally, when the control parameter determination module 301 sets the control parameters of the grid control panel based on the clipping operation requirements, it is specifically used to: According to the cutting operation requirement, determining whether the user corresponding to the user device performs the operation requirement setting; In the case of setting the operation requirement, rewriting the preset touch mode based on the operation requirement setting to determine the target touch mode, and determining the target touch interception mode based on the target touch mode; In the case where no operation requirement is set, the preset touch mode is determined as the target touch mode, and the preset touch interception mode corresponding to the preset touch mode is determined as the target touch interception mode.

[0083] Optionally, the coverage determination module 303 is specifically configured to: Determine, according to an operation signal sent by the user device based on the control parameter, a corresponding touch operation and a picture adjustment method corresponding to the touch operation; The image to be cropped is adjusted based on the image adjustment method to determine a pre-processed image; According to the image adjustment method and the center coordinates of the grid control panel, the coverage position data of the pre-processed image and the grid coverage range are determined.

[0084] Optionally, the cross-paper gridding picture cutting device 300 further includes a picture printing module 305, which is used to: Grayscale processing is performed on multiple gridded images across sheets of paper to determine multiple images to be printed; Determine the corresponding printer and printing order according to printing requirements; Connect the printer and output multiple pictures to be printed in the printing order.

[0085] Optionally, when the picture printing module 305 is connected to a printer and outputs a plurality of pictures to be printed in a printing order, it is specifically used to: Connect to the printer and detect whether the printer has paper; When there is paper, send multiple pictures to be printed to the printer for printing; When there is no paper, a prompt to add paper is sent to the user device, so that a plurality of pictures to be printed are sent to the printer after the user adds paper.

[0086] The device performs functions similar to the method provided above. For other functions, please refer to the previous description and will not be repeated here.

[0087] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 4 As shown, the electronic device 400 of this embodiment may include: a memory 401 and a processor 402 .

[0088] The memory 401 stores a computer program. When the computer program is executed by the processor 402, the processor 402 executes the method in the above embodiment.

[0089] The processor 402 and the memory 401 are connected, for example, via a bus.

[0090] Optionally, the electronic device 400 may further include a transceiver. It should be noted that in actual applications, the number of transceivers is not limited to one, and the structure of the electronic device 400 does not constitute a limitation on the embodiments of the present application.

[0091] Processor 402 may be a CPU (Central Processing Unit), a general purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 402 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0092] The bus may include a path to transmit information between the above components. The bus may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0093] The memory 401 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0094] The memory 401 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 402. The processor 402 is used to execute the application code stored in the memory 401 to implement the contents shown in the above method embodiment.

[0095] The electronic devices include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs, desktop computers, etc. It can also be a server, etc. Figure 4 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0096] The electronic device of this embodiment can be used to execute the method of any of the above embodiments, and its implementation principle and technical effect are similar, which will not be described in detail here.

[0097] The present application also provides a non-transitory computer-readable storage medium having computer-readable instructions stored thereon. When the aforementioned instructions are executed by a processor, the processor executes the method in the above embodiment.

[0098] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a non-transient computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0099] The embodiments of the present application are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and its core idea of ​​the present application. At the same time, changes or deformations made by those skilled in the art based on the ideas of the present application, the specific implementation methods and the scope of application of the present application, all belong to the scope of protection of the present application. In summary, the content of this specification should not be construed as a limitation on the present application.

Claims

1. A method for cropping gridded images across paper. It is characterized in that include: Constructing a grid control panel, and setting control parameters of the grid control panel based on the cropping operation requirements; Receiving a picture to be cropped sent by a user device; Determine, according to an operation signal sent by the user equipment based on the control parameter, a grid coverage range and coverage position data of the to-be-cropped picture in the grid control panel; The grid coverage range is cropped according to the coverage position data to generate a plurality of gridded images across the paper.

2. The method according to claim 1, It is characterized in that The grid control panel is constructed, comprising: Acquire the paper demand sent by the user device; Determine the panel range ratio according to the paper requirements; Setting a default control panel based on the panel range ratio and screen properties of the display screen; The grid control panel is generated according to the preset grid line drawing requirement and the default control panel.

3. The method according to claim 2, It is characterized in that Determining the panel range ratio according to the paper requirement includes: According to the paper requirements, determine the quantity requirements, paper size requirements and paper laying requirements; The panel range ratio is determined based on the quantity requirement, the paper size requirement, and the paper laying requirement.

4. The method according to claim 1, It is characterized in that The step of setting the control parameters of the grid control panel based on the clipping operation requirements includes: Determining, according to the cropping operation requirement, whether a user corresponding to the user device performs operation requirement setting; In the case of performing the operation requirement setting, rewriting the preset touch mode based on the operation requirement setting to determine the target touch mode, and determining the target touch interception mode based on the target touch mode; In the case where the operation requirement setting is not performed, the preset touch mode is determined as the target touch mode, and the preset touch interception mode corresponding to the preset touch mode is determined as the target touch interception mode.

5. The method according to claim 1, It is characterized in that The determining, according to the operation signal sent by the user equipment based on the control parameter, the grid coverage range and coverage position data of the to-be-cropped picture in the grid control panel includes: Determining, according to an operation signal sent by the user equipment based on the control parameter, a corresponding touch operation and a picture adjustment method corresponding to the touch operation; Adjusting the image to be cropped based on the image adjustment method to determine a pre-processed image; The coverage position data and the grid coverage range of the pre-processed image are determined according to the image adjustment method and the center coordinates of the grid control panel.

6. The method according to any one of claims 1 to 5, It is characterized in that Also includes: Grayscale processing is performed on the plurality of cross-paper gridded images to determine a plurality of images to be printed; Determine the corresponding printer and printing order according to printing requirements; Connecting to the printer and outputting the plurality of pictures to be printed in the printing order.

7. The method according to claim 6, It is characterized in that The connecting to the printer and outputting the plurality of pictures to be printed in the printing order comprises: Connecting to the printer and detecting whether the printer has paper; If there is paper, sending the plurality of pictures to be printed to the printer for printing; In the case where there is no paper, a prompt to add paper is sent to the user device, so that the multiple pictures to be printed are sent to the printer after the user adds paper.

8. A cutting device for a gridded picture across paper, It is characterized in that include: A control parameter determination module, used to construct a grid control panel and set control parameters of the grid control panel based on the cropping operation requirements; A picture receiving module, used for receiving a picture to be cropped sent by a user device; A coverage determination module, configured to determine the grid coverage range and coverage position data of the to-be-cropped picture in the grid control panel according to an operation signal sent by the user equipment based on the control parameter; The range clipping module is used to clip the grid coverage range according to the coverage position data to generate multiple gridded images across the paper.

9. An electronic device, It is characterized in that include: processor; A memory storing a computer program, which, when executed by the processor, enables the processor to execute the method for cropping a cross-paper gridded image as described in any one of claims 1-7.

10. A non-transitory computer-readable storage medium, It is characterized in that Computer-readable instructions are stored thereon, and when the instructions are executed by a processor, the processor executes the method for cropping a cross-paper gridded image as described in any one of claims 1-7.