Image forming medium determination method, device, apparatus, and storage medium
Patent Information
- Application Number
- CN202511477438.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-15
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2045-10-15
AI Technical Summary
[0006]有鉴于此,本申请提供了一种图像形成介质确定方法、装置、设备及存储介质,以利于解决现有技术中当前图像形成系统无法根据单据内容量自动适配成像介质尺寸,进而导致容易触发图像图像形成作业中断,以及成像介质资源浪费的问题
所述基于所述图像形成作业中对象的位置信息,判断所述图像形成作业中对象是否均位于所述第一介质类型对应介质的预设区域,包括:
Smart Images

Figure CN121300721B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image forming technology, and more specifically to a method, apparatus, device, and storage medium for determining an image forming medium. Background Technology
[0002] A hospital information system refers to an information system that utilizes modern technologies such as computer hardware and software and network communication technology to provide comprehensive automated management and various services for the overall operation of a hospital. In the daily operation of modern medical institutions, doctors mainly use medical information systems to issue various examination orders, prescriptions, and reports on desktop terminals.
[0003] To achieve efficient and economical image formation operations, hospitals typically maintain a variety of standard image forming media, including A4 and A5 sizes, to accommodate document output needs of varying volumes. When an image forming operation is required, the medical information system usually issues the image forming job to the driver in a fixed A4 format. The driver converts the A4-sized image forming job into raster data and sends it to the image forming apparatus. The image forming apparatus then completes the operation on the A4-sized imaging medium based on the received raster data.
[0004] However, when a user places A5 paper in the paper tray for a document with limited content (such as only the top half containing content), the image forming device may still detect a mismatch between the actual size of the loaded imaging medium and the size required by the job instruction, even though the received image forming job data specifies an A4 size. This triggers an error and interrupts the job process. In other words, the current image forming system cannot automatically adapt the imaging medium size according to the document's content, leading to frequent image forming job interruptions and wasted imaging medium resources.
[0005] It should be noted that the information disclosed in the background section of this application is intended only to enhance the understanding of the general background of this application, and should not be construed as an admission or in any way implying that the information constitutes prior art known to those skilled in the art. Summary of the Invention
[0006] In view of this, this application provides a method, apparatus, device and storage medium for determining an image forming medium, in order to solve the problem that current image forming systems in the prior art cannot automatically adapt the size of the imaging medium according to the amount of document content, which leads to easy interruption of image forming operation and waste of imaging medium resources.
[0007] In a first aspect, this application provides a method for determining an image forming medium, the method being applied to a terminal device, the terminal device being configured with a processing mode including an automatic recognition mode, the method comprising: When the terminal device is in the automatic identification mode, the following steps are performed: Based on the acquired image forming job of the first medium type, determine the object information in the image forming job, the object information including the position information of the object in the image forming job; Based on the location information of the objects in the image forming operation, it is determined whether all the objects in the image forming operation are located in a preset area of the medium corresponding to the first medium type; When all objects in the image forming operation are located in a preset area of the medium corresponding to the first medium type, the medium type corresponding to the image forming operation is adjusted to a second medium type that matches the preset area; Wherein, the media size corresponding to the first media type is larger than the media size corresponding to the second media type.
[0008] In this embodiment, the terminal device automatically identifies the positional distribution of objects in the image forming operation and intelligently determines whether the content originally intended for output on a larger medium can be completely contained within a smaller target medium. Thus, while ensuring the integrity of the content, the output medium type is automatically adjusted to a smaller, more consumable medium. It is understood that this method, by accurately identifying the positional distribution of objects and matching it with a preset area, effectively prevents problems such as image forming operation interruptions, errors, or abnormal cropping of imaging content caused by medium type mismatch, ensuring the reliability of the image forming operation.
[0009] In one possible implementation, the preset area includes: a first preset area and / or a second preset area, wherein the first preset area is the front half of the medium of the first medium type along the paper feeding direction, and the second preset area is the rear half of the medium of the first medium type along the paper feeding direction. The step of adjusting the medium type corresponding to the image forming operation to a second medium type that matches the preset region includes: When all objects in the image forming operation are located in the first preset area, the medium type of the first image forming operation is adjusted to the second medium type associated with the first preset area; When all objects in the image forming job are located in the second preset area, the second image forming job located in the second preset area is selected, and the media type of the second image forming job is adjusted to the second media type associated with the second preset area.
[0010] It should be noted that the first image forming operation refers to the image forming operation corresponding to the first preset area; the second image forming operation refers to the image forming operation corresponding to the second preset area.
[0011] In this embodiment of the application, by dividing the medium of the first medium type into two preset areas along the paper feeding direction and judging the object aggregation situation respectively, it is beneficial to achieve fine recognition of the object position. On this basis, the system can automatically and accurately switch the job to the corresponding medium type, effectively preventing problems such as paper jams, errors or incomplete content imaging caused by medium mismatch, and significantly improving the output reliability of imaging results.
[0012] In one possible implementation, selecting the second image forming job located in the second preset region when all objects in the image forming job are located in the second preset region includes: When all objects in the image forming job are located in the second preset area, the information content corresponding to the image forming job is rotated 180 degrees at the PCL printing language level.
[0013] In this embodiment, by performing the 180-degree rotation operation directly at the PCL level, the computational overhead associated with moving, rotating, and cropping complex objects such as high-resolution images at the driver end is avoided. By performing the above processing operations directly at the PCL level, the processing time is significantly reduced, and the overall response speed and adaptability of the system are improved.
[0014] In one possible implementation, the object information also includes quality information of the objects in the image forming operation; The step of determining whether all objects in the image forming operation are located within a preset area of the medium corresponding to the first medium type, based on the position information of the objects in the image forming operation, includes: Based on the quality information of the objects in the image forming operation, the quality of each object in the image forming operation is obtained; Based on the location information of the objects in the image forming operation, it is determined whether all qualified objects in the image forming operation are located in the preset area of the medium corresponding to the first medium type.
[0015] In this embodiment, by introducing the judgment of object quality information in the image forming operation, a quality qualified screening condition is added on the basis of the original position judgment. This ensures that only qualified objects are included in the judgment range of media adaptation, effectively avoiding the risk of misjudgment caused by the existence of objects with quality defects, and further improving the accuracy and reliability of media type adjustment, thereby ensuring the content quality of the final output document.
[0016] In one possible implementation, the quality information includes object type, object color, and object grayscale. The step of obtaining the quality of each object in the image forming operation based on the quality information of the objects in the image forming operation includes: obtaining the quality of each object in the image forming operation based on the object type, object color, object grayscale, and background information corresponding to the image forming operation.
[0017] In this embodiment, by comprehensively analyzing object type, object color, object grayscale, and background information corresponding to the image forming operation, the quality of the object is evaluated in multiple dimensions, thereby avoiding imaging abnormalities or resource waste caused by quality misjudgment and improving the intelligence and adaptability of image forming decisions.
[0018] In one possible implementation, the terminal device includes a user interface that displays the automatic recognition mode control, and the method further includes: In response to the automatic recognition mode control triggered on the user interface, the automatic recognition mode is activated.
[0019] In this embodiment, by providing an intuitive user interface, users can proactively activate the automatic recognition mode according to actual printing needs, enhancing the flexibility and operability of human-computer interaction. This ensures that the automation function is not accidentally triggered, reducing the risk of output errors caused by misoperation, and also allows users to independently decide whether to adopt a media adaptation strategy in specific situations. Thus, while improving operational convenience, it further enhances the controllability and user acceptance of the entire image formation process.
[0020] In one possible implementation, the user interface further displays a first preset area printing mode control and / or a second preset area printing mode control; In response to a first preset area printing mode control triggered by the user interface, the media type of the first image forming job is adjusted to a second media type associated with the first preset area; In response to a second preset area printing mode control triggered by the user interface, a second image forming job located in the second preset area is selected, and the media type of the second image forming job is adjusted to a second media type associated with the second preset area.
[0021] In this embodiment, by providing intuitive manual controls, users can actively select specific printing area modes according to their actual needs. This retains the intelligence of automatic recognition while increasing operational flexibility and controllability. Users can directly specify that the content should be imaged onto a preset small-size medium, avoiding errors caused by automatic recognition deviations, further reducing the risk of paper mismatch, simplifying the operation process, and improving user satisfaction.
[0022] In one possible implementation, the user interface also displays a close control; In response to a close control triggered by the user interface, the image forming job is rendered and the image forming apparatus is dispatched.
[0023] In this embodiment, by providing a clear shutdown control, users can actively determine whether to use media size replacement, which enhances the user's control over the image forming process and optimizes the overall user experience.
[0024] In one possible implementation, the image forming job corresponds to formats including PDF and EMF.
[0025] In this embodiment of the application, by supporting PDF and EMF, two common image generation job formats, the system's compatibility and parsing reliability for image generation jobs from different sources are enhanced.
[0026] Secondly, embodiments of this application provide an image forming medium determination apparatus, applied to a terminal device, the terminal device being configured with a processing mode including an automatic recognition mode, the apparatus comprising: The object information determination module is used to determine object information in the image forming operation based on the acquired image forming operation of the first medium type, wherein the object information includes the position information of the object in the image forming operation; The judgment module is used to determine, based on the position information of the objects in the image forming operation, whether all the objects in the image forming operation are located in a preset area of the medium corresponding to the first medium type; The second medium type adjustment module is used to adjust the medium type corresponding to the image forming operation to a second medium type that matches the preset area when all objects in the image forming operation are located in a preset area of the medium corresponding to the first medium type. Wherein, the media size corresponding to the first media type is larger than the media size corresponding to the second media type.
[0027] Thirdly, embodiments of this application provide a terminal device, including: processor; Memory; And a computer program, wherein the computer program is stored in the memory, the computer program including instructions that, when executed by the processor, cause the image forming apparatus to perform the method described in any one of the terminal devices.
[0028] Fourthly, embodiments of this application provide a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform the method described in any one of the first aspects.
[0029] It is understood that the image forming medium determining apparatus provided in the second aspect, the terminal device provided in the third aspect, and the computer-readable storage medium provided in the fourth aspect are all used to perform some or all of the methods provided in this application. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods, and will not be repeated here. Attached Figure Description
[0030] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of this application.
[0032] Figure 2 This is a schematic diagram of an image forming apparatus provided in an embodiment of this application.
[0033] Figure 3 This is a flowchart illustrating a method for determining an image forming medium, as provided in an embodiment of this application.
[0034] Figure 4 This is a schematic diagram of an admission record provided in an embodiment of this application.
[0035] Figure 5 A schematic diagram of the first and second preset regions provided in the embodiments of this application.
[0036] Figure 6 This is an imaging schematic diagram illustrating the image formation process before and after a media type switch, as provided in an embodiment of this application.
[0037] Figure 7a -c is a schematic diagram of image changes in an image forming operation at the PCL printing language level, provided in an embodiment of this application.
[0038] Figure 8 This is a schematic diagram of the user interface of a terminal device provided in an embodiment of this application.
[0039] Figure 9 This is a schematic diagram of the user interface of another terminal device provided in an embodiment of this application.
[0040] Figure 10 This is a schematic flowchart of another image forming medium determination method provided in an embodiment of this application.
[0041] Figure 11 This is a schematic flowchart of another image forming medium determination method provided in an embodiment of this application.
[0042] Figure 12 This is a schematic diagram of an image forming medium determination device provided in the embodiments of this application.
[0043] Figure 13 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Detailed Implementation
[0044] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0045] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0046] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0047] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0048] To facilitate understanding, specific application scenarios will be illustrated below.
[0049] See Figure 1 This is a schematic diagram illustrating an application scenario provided by an embodiment of this application. For example... Figure 1As shown, this application scenario includes an image forming apparatus 101 and a terminal device 102. The image forming apparatus 101 and the terminal device 102 can be connected via wired communication, wireless network communication, or physical interface communication. In one possible implementation, the wired communication is physical interface communication, for example, Universal Serial Bus (USB) interface communication; the wireless network communication can be Wi-Fi communication or Bluetooth communication.
[0050] Terminal device 102 includes, but is not limited to, mobile phones, tablets, personal computers (PCs), wearable devices, etc. Terminal device 102 is equipped with a print driver adapted to image forming apparatus 101, enabling application software installed on terminal device 102 to drive image forming apparatus 101 to perform image forming operations. When a user uses the application software on terminal device 102 to perform image forming, the application software calls the print driver to drive image forming apparatus 101 to perform image forming operations, thereby realizing the image forming medium determination method through the print driver.
[0051] Image forming apparatus 101 includes, but is not limited to: inkjet printers, laser printers, light-emitting diode (LED) printers, copiers, scanners, or multifunction fax machines, as well as multi-function peripherals (MFPs) that perform the above functions in a single device. Image forming apparatus 101 includes an image forming control unit and an image forming unit. The image forming control unit controls the entire image forming apparatus 101, and the image forming unit, under the control of the image forming control unit, forms an image on the fed paper based on image forming data and developer such as toner stored in consumables.
[0052] In this application embodiment, the image forming system can be applied to a variety of information systems, including but not limited to HIS, bank information systems, or factory information systems.
[0053] In this embodiment, the image forming apparatus 101 may include a first paper tray and a second paper tray. The first paper tray can be used to accommodate a medium of a first media type, and the second paper tray can be used to accommodate a medium of a second media type. The size of the medium of the first media type is larger than the size of the medium of the second media type. For example, if the first media type is A4 and the second media type is A5, then the first paper tray can accommodate an A4 image forming medium, and the second paper tray can accommodate an A5 image forming medium. In one possible implementation, the medium is paper.
[0054] In this embodiment, the image forming apparatus 101 is described as a desktop machine. Compared to large copiers, small desktop machines typically do not have multiple types of paper trays. Generally, in desktop machines, the first paper tray is a standard paper tray, and the second paper tray is a manual paper tray. Figure 2 This is a schematic diagram of an image forming apparatus provided in an embodiment of this application, such as... Figure 2 As shown, the image forming apparatus 101 includes a manual paper tray 201 and a standard paper tray 202. The standard paper tray 202 can be used to accommodate standard-sized paper, for example, A4 paper. Figure 2 As shown, the manual paper feed tray 201 is a paper feed slot that allows users to manually insert paper. The manual paper feed tray 201 can accommodate non-standard sized paper, for example, A5 paper. The user can manually insert the A5 paper into the manual paper feed tray 201. Figure 2 As shown, the manual paper feed tray 201 is actually a paper inlet. If A4 paper is put into the manual paper feed tray 201, the A4 paper is easy to fall off. Therefore, the manual paper feed tray 201 is more suitable for placing small A5 paper.
[0055] In related technologies, hospitals typically maintain a variety of standard imaging media, such as A4 and A5, to accommodate document output needs of varying volumes. When image formation is required, the medical information system usually issues the image formation job to the driver in a fixed A4 format. The driver converts the A4-sized image formation job into raster data and sends it to the image forming apparatus. The image forming apparatus then completes the operation on the A4-sized imaging media based on the received raster data.
[0056] However, when a user places A5 paper in the paper tray for a document with limited content (such as only the top half containing content), the image forming device may still detect a mismatch between the actual size of the loaded imaging medium and the size required by the job instruction, even though the received image forming job data specifies an A4 size. This triggers an error and interrupts the job process. In other words, the current image forming system cannot automatically adapt the imaging medium size according to the document's content, leading to frequent image forming job interruptions and wasted imaging medium resources.
[0057] To address the aforementioned issues, this embodiment of the application automatically identifies the positional distribution of objects during image formation operations using a terminal device. It intelligently determines whether the content originally intended for output on a larger medium can be completely contained within a smaller target medium. Thus, while ensuring the integrity of the image content, the output medium type is automatically adjusted to a smaller, more consumable medium. It is understood that this method, by accurately identifying the positional distribution of objects and matching it with a preset area, effectively prevents problems such as image formation operation interruptions, errors, or abnormal image content cropping caused by medium type mismatch, ensuring the reliability of the image formation operation. Specifically, a detailed description is provided below with reference to the accompanying drawings and specific implementation methods.
[0058] See Figure 3 This is a schematic flowchart illustrating a method for determining an image forming medium provided in an embodiment of this application. This method can be applied to... Figure 1 In the application scenarios shown, such as Figure 3 As shown, it mainly includes the following steps.
[0059] Step S301: Determine the object information in the image forming job based on the obtained image forming job of the first medium type.
[0060] First, it should be noted that the terminal device has several processing modes for media types. One of these is the automatic identification mode. When the terminal device is in automatic identification mode, it can automatically identify the location distribution of objects in the image forming operation and automatically adjust the media type corresponding to the image forming operation.
[0061] It should be noted that the "object" mentioned above refers to the specific content presented in the image forming process, such as text or patterns. For easier understanding, see [link to relevant documentation]. Figure 4 This is a schematic diagram of an admission record provided in an embodiment of this application. (See figure.) Figure 4 The text portion area (including) Figure 4 The text divider and the text divider are all objects in this image generation process.
[0062] In specific implementation, based on the acquired image forming job with a preset output format of the first media type, the attribute and layout information of the graphic and text objects contained in the job are parsed. Among them, the object information is the position information of the objects in the image forming job, such as the coordinate range of each object within the page.
[0063] Understandably, by parsing the image to form the data format of the task, object information that can be used to analyze the distribution characteristics of page content can be extracted, providing a data basis for subsequent judgment on whether the content is concentrated in a specific area.
[0064] The aforementioned image forming operation of the first media type refers to an image forming operation whose corresponding media type at the data level is the first media type. For example, if the first media type is A4 paper, then after the driving system processes the image forming operation of the first media type, the size of the generated raster data will be A4 size.
[0065] Step S302: Based on the position information of the objects in the image forming operation, determine whether all objects in the image forming operation are located in the preset area of the medium corresponding to the first medium type.
[0066] In this embodiment, it is determined whether all objects in the image forming operation are located within a preset area of the medium corresponding to the first medium type. Here, "preset area" refers to a specific area range predefined according to the medium size. For example, an A4 medium is divided into an upper half and a lower half along the paper feeding direction, namely the first preset area and the second preset area.
[0067] See Figure 5 This is a schematic diagram of the first and second preset regions provided in the embodiments of this application. Figure 5 As shown in (1), the upper half of the A4 medium is divided into a first preset area along the paper feeding direction; as shown in (1), Figure 5 As shown in (2), the lower half of the A4 medium is divided into a second preset area along the paper feeding direction.
[0068] Of course, those skilled in the art may, according to actual needs, set the first medium type to correspond to the medium or divide it into more preset areas, and this application does not impose specific restrictions on this.
[0069] In step S301 above, the coordinates of each object are compared with the spatial range of the preset area by parsing the object location information. If the coordinates of all objects fall within the same preset area, it is determined that the area concentration condition is met.
[0070] However, in practical applications, it has been found that relying solely on object location information for judgment may lead to errors. For example, some image processing operations may contain non-substantial objects (such as watermarks, invisible markers, etc.) that are the same color as the background, completely transparent, or extremely light gray. Although these objects are located within a preset area, they should not be considered valid criteria for judging media adjustments. To address this issue, object quality judgment is introduced as a filtering condition in addition to location-based judgment.
[0071] Specifically, in one possible implementation, the quality of each object in the image forming operation is first obtained based on the quality information of the objects in the image forming operation; then, based on the position information of the objects in the image forming operation, it is determined whether all qualified objects in the image forming operation are located in the preset area of the medium corresponding to the first medium type.
[0072] Understandably, based on the quality information of objects in the image forming process, unqualified objects (such as transparent objects or objects with the same color as the background) are filtered out, and only qualified objects with effective visual content are retained.
[0073] In this embodiment, by introducing the judgment of object quality information in the image forming operation, a quality qualified screening condition is added on the basis of the original position judgment. This ensures that only qualified objects are included in the judgment range of media adaptation, effectively avoiding the risk of misjudgment caused by the existence of objects with quality defects, and further improving the accuracy and reliability of media type adjustment, thereby ensuring the content quality of the final output document.
[0074] In one possible implementation, the aforementioned "quality information" includes visual attributes such as the object's type, color, and grayscale. In other words, the quality of each object in the image forming operation is obtained based on its object type, color, grayscale, and the background information corresponding to the image forming operation.
[0075] The above process further refines the standards for quality judgment, clarifying that quality assessment must be conducted comprehensively based on object type, color, grayscale, and background information. For example, for "object type," different types such as text, graphics, and images can be distinguished and differentiated thresholds can be set; for "object color" and "object grayscale," visibility differences need to be calculated by comparing with background information; finally, a quality rating for each object is output through a pre-set quality assessment model.
[0076] In the embodiments of this application, the above-mentioned multi-dimensional evaluation mechanism can effectively identify and exclude objects that have coordinate information but are not actually visible or do not need to be printed, thereby avoiding imaging abnormalities or resource waste caused by quality misjudgment, and further improving the accuracy and practicality of media type adjustment.
[0077] Step S303: When all objects in the image forming operation are located in the preset area of the medium corresponding to the first medium type, adjust the medium type corresponding to the image forming operation to the second medium type that matches the preset area.
[0078] In this embodiment of the application, after determining that all objects in the image forming operation are concentrated in a specific preset area of the medium corresponding to the first medium type, the medium type corresponding to the image forming operation is adjusted to a second medium type that matches the preset area.
[0079] The media size corresponding to the first media type is larger than the media size corresponding to the second media type.
[0080] The aforementioned "adjusting the media type corresponding to the image forming job to the second media type that matches the preset area" essentially modifies the page size attribute in the print job instruction, that is, switching the output media from the larger first media type to the smaller second media type that matches the content distribution area.
[0081] For ease of understanding, see Figure 6 This is an imaging schematic diagram illustrating the image formation process before and after a media type switch, as provided in an embodiment of this application. Specifically, as shown... Figure 6 As shown in (1) and (2), the first medium type is A4. When it is detected that all objects in the image forming operation are located in the first preset area or the second preset area of the medium corresponding to the first medium type, the medium type corresponding to the image forming operation is adjusted to A5.
[0082] Understandably, this step resolves the contradiction between fixed output size and dynamic content distribution. Through intelligent recognition and instruction adjustment, the image forming apparatus can complete the output with a matching medium type, thereby fundamentally avoiding error interruptions caused by medium size mismatch and achieving continuity of the image forming workflow and high efficiency in resource utilization.
[0083] It is understood that the determination in the above embodiments relies on a clear definition of the "preset area". Therefore, in one possible implementation, the preset area is specifically divided into a first preset area and a second preset area, corresponding to the front and rear halves of the medium along the paper feed direction, respectively. Furthermore, when all objects are concentrated in the first preset area, the system adjusts their medium type to the second medium type associated with that area; similarly, if all objects are located in the second preset area, a second image forming operation located in the second preset area is selected, and the medium type of the second image forming operation is adjusted to the second medium type associated with the second preset area.
[0084] In this embodiment of the application, by dividing the medium of the first medium type into two preset areas along the paper feeding direction and judging the object aggregation situation respectively, it is beneficial to achieve fine recognition of the object position. On this basis, the system can automatically and accurately switch the job to the corresponding medium type, effectively preventing problems such as paper jams, errors or incomplete content imaging caused by medium mismatch, and significantly improving the output reliability of imaging results.
[0085] It should be noted that if all objects are concentrated in the latter half of the corresponding medium along the paper feed direction, to achieve correct output of this part of the content in the second medium type, complex coordinate movement calculations are required for each object within the page, resulting in high processing complexity and consuming significant system storage and computing resources. To address the above issues, this application replaces the above process with page rotation, which is faster and consumes fewer storage resources.
[0086] Specifically, in one possible implementation, when all objects in the image forming job are located in the second preset area, the system does not directly select the lower half of the area, but rotates the entire job page 180 degrees at the PCL printing language level.
[0087] It should be noted that the "processing at the PCL printing language level" means that the image data processing and conversion operations of this application are completed at the stage of generating the final printer language command stream, rather than at the higher-level application, graphics device interface, or object-level rendering stage.
[0088] PCL (Printer Command Language) is a widely supported control language for image forming apparatuses. Essentially, it's a collection of high-level commands that instruct the apparatus on how to format and output the entire page. Operating at this level means the system treats the entire page as a single logical entity and controls its final output form by modifying global instructions that describe that entity, rather than directly manipulating individual text, graphics, or image objects within the page.
[0089] Understandably, since the operation targets a high-level instruction set describing the page, rather than the massive number of low-level objects or pixels that make up the page, the processing does not require parsing, traversing, or calculating the precise coordinates, outlines, or pixel values of every object within the page. For example, when it is necessary to print content concentrated in the lower half of an A4 imaging medium onto an A5 imaging medium, the system does not need to identify the specific position of each text block or image in the lower half and move them one by one to the new page. Instead, it only needs to insert an instruction to "rotate the entire page by 180 degrees" into the PCL command stream, followed by an instruction to "set the output medium size to A5". This global instruction-based processing method has extremely low computational load and extremely fast processing speed, significantly reducing the consumption of terminal device computing resources and improving processing efficiency.
[0090] Meanwhile, PCL is an abstract description independent of device resolution. Rotation, scaling, and cropping commands at this level are applicable to any type of page content, whether it's vector text, geometric shapes, or high-resolution bit images. For example, for a PDF report containing high-precision medical images, object-level operations would require decoding, rotating, and re-encoding the large-format images, a process that is extremely time-consuming and may result in image quality loss. However, at the PCL level, regardless of the complexity of the content, a single rotation command can process the entire page uniformly, completely avoiding performance bottlenecks or quality degradation caused by processing specific complex objects. This ensures that the system can stably and efficiently process image creation jobs with different content compositions.
[0091] For ease of understanding, see Figure 7a -c is a schematic diagram illustrating image changes in an image formation operation at the PCL printing language level, provided in an embodiment of this application. Firstly, as... Figure 7a As shown in the figure, an inspection report is presented where all objects in an image forming operation are located in the second preset area; at this time, due to Figure 7a When all objects in the image forming task are located within the second preset area, rotate the entire task page 180 degrees to obtain the desired result. Figure 7b The inspection report is shown; finally, the second image forming operation located in the first preset area can be directly selected to obtain the image. Figure 7c The test report shown.
[0092] Understandably, by performing 180-degree rotation and cropping operations directly at the PCL level, the computational overhead associated with moving, rotating, and cropping complex objects such as high-resolution images at the driver end is avoided. By performing these operations directly at the PCL level, processing time is significantly reduced, improving the overall system response speed and adaptability.
[0093] In this embodiment, the terminal device automatically identifies the positional distribution of objects in the image forming operation and intelligently determines whether the content originally intended for output on a larger medium can be completely contained within a smaller target medium. Thus, while ensuring the integrity of the content, the output medium type is automatically adjusted to a smaller, more consumable medium. It is understood that the above method, by accurately identifying the positional distribution of objects and matching it with a preset area, effectively prevents problems such as image forming operation interruptions and errors caused by media type mismatch, ensuring the reliability of the image forming operation.
[0094] To enable users to flexibly control the processing mode, a user interface interaction mechanism can be introduced on the terminal device. Specifically, in one possible implementation, an "automatic mode recognition" control is provided in the user interface. In response to the automatic mode recognition control triggered on the user interface, the automatic mode recognition is activated.
[0095] In this embodiment, by providing an intuitive user interface, users can proactively activate the automatic recognition mode according to actual printing needs, enhancing the flexibility and operability of human-computer interaction. This ensures that the automation function is not accidentally triggered, reducing the risk of output errors caused by misoperation, and also allows users to independently decide whether to adopt a media adaptation strategy in specific situations. Thus, while improving operational convenience, it further enhances the controllability and user acceptance of the entire image formation process.
[0096] Furthermore, to address potential misjudgments in automatic identification, such as interference from watermarks or tables in the template, one possible implementation provides two fixed processing mode controls on the user interface: a "first preset area printing mode" control and a "second preset area printing mode" control.
[0097] Specifically, in response to a first preset area printing mode control triggered on the user interface, the media type of the first image forming job is adjusted to a second media type associated with the first preset area; in response to a second preset area printing mode control triggered on the user interface, a second image forming job located in the second preset area is selected, and the media type of the second image forming job is adjusted to a second media type associated with the second preset area.
[0098] For ease of understanding, see Figure 8 This is a schematic diagram of the user interface of a terminal device provided in an embodiment of this application. As shown in the figure, the user interface displays a window that says "Print A4 size as A5". The window also includes an "Automatic Recognition Mode" control, a "First Preset Area Printing Mode" control, and a "Second Preset Area Printing Mode" control.
[0099] Understandably, when automatic recognition fails, the system can bypass the automatic judgment logic and the user can directly trigger the corresponding control. The system will respond to this manual command and forcibly perform cropping and media type adjustment for the specified area (upper or lower half).
[0100] By providing intuitive manual controls, users can actively select specific printing area modes according to their actual needs, retaining the intelligence of automatic recognition while increasing operational flexibility and controllability. Users can directly specify that the content should be imaged onto preset small-sized media, avoiding errors caused by automatic recognition deviations, further reducing the risk of paper mismatch, simplifying the operation process, and improving user satisfaction.
[0101] To ensure compatibility and user habits, the user interface also provides a "close" control. Specifically, in one possible implementation, in response to the close control triggered by the user interface, the image forming job is rendered and the image forming apparatus is dispatched. For ease of understanding, see [link to relevant documentation]. Figure 9 This is a schematic diagram of the user interface of another terminal device provided in an embodiment of this application. As shown in the figure, the user interface displays a window that says "Print A4 size as A5". The window also includes an "Automatic Recognition Mode" control, a "First Preset Area Printing Mode" control, a "Second Preset Area Printing Mode" control, and a "Close" control.
[0102] Understandably, when the user triggers the "close" control, the system completely ignores the entire intelligent processing flow, rendering the entire image forming job in the most basic way and sending it to the image forming device. This ensures that even when the user does not need this function or encounters a completely incompatible image forming job, the system can still complete the printing output in a default and reliable manner, maintaining the reversibility of the function and the backward compatibility of the system. In other words, by providing an explicit close control, users can actively determine not to use media size changes, enhancing their control over the image forming job process and optimizing the overall user experience.
[0103] For ease of understanding, the image forming medium determination method provided in this application embodiment will be described in detail below with reference to a specific implementation method.
[0104] See Figure 10 This is a flowchart illustrating another image forming medium determination method provided in an embodiment of this application. This method can be applied to... Figure 1 In the application scenarios shown, such as Figure 10 As shown, it mainly includes the following steps.
[0105] Step S1001: Obtain an image forming job for the first medium type.
[0106] Step S1002: In response to the close control triggered on the user interface, control all modes to be closed.
[0107] Step S1003: In response to the automatic recognition mode control triggered on the user interface, control the start of automatic recognition mode.
[0108] Step S1004: In response to the first preset area printing mode control triggered on the user interface, control the start of the first preset area printing mode.
[0109] Step S1005: In response to the second preset area printing mode control triggered on the user interface, control the start of the second preset area printing mode.
[0110] Step S1006: Determine whether all objects in the image forming operation are located in the first preset area or the second preset area.
[0111] When all objects in the image forming operation are located in the first preset area or the second preset area, step S1007 is executed; when the objects in the image forming operation are not all located in the first preset area or the second preset area, step S1010 is executed.
[0112] Step S1007: Determine whether all objects in the image forming operation are located in the first preset area.
[0113] When all objects in the image forming operation are located in the first preset area, step S1008 is executed; when the objects in the image forming operation are not all located in the first preset area, step S1009 is executed.
[0114] Step S1008: Adjust the medium type of the first image forming operation to the second medium type associated with the first preset region.
[0115] Step S1009: Rotate the information content corresponding to the image forming job by 180 degrees at the PCL printing language level, and select the second image forming job located in the first preset area.
[0116] Step S1010: Render the image forming operation and send it to the image forming device.
[0117] For details regarding the specific content involved in the implementation of this application, please refer to the description in the embodiments shown above. For the sake of brevity, these details will not be repeated here.
[0118] In one possible implementation, the image forming jobs can be in PDF and EMF formats.
[0119] In practical applications, some terminal systems receive data in PDF format. In this case, it is necessary to use the pdfium library to parse the number of objects and traverse the coordinate information of each object; then determine whether the coordinate information of each object is within the first or second preset area corresponding to the A4 medium; if the coordinate information of each object is within the first or second preset area, it indicates that the image forming job can be performed using the A5 medium; otherwise, the image forming job is performed using the original A4 medium.
[0120] Of course, in Windows systems, the processor module of the Windows print driver converts the SPL data into EMF format, and then makes a judgment based on the object coordinate information in the EMF format. The specific judgment logic is similar to the method described above, and will not be elaborated further for the sake of brevity.
[0121] In this embodiment of the application, by supporting PDF and EMF, two common image generation job formats, the system's compatibility and parsing reliability for image generation jobs from different sources are enhanced.
[0122] For ease of understanding, the image forming medium determination method provided in this application embodiment will be described in detail below with reference to a specific implementation method.
[0123] See Figure 11 This is a flowchart illustrating another image forming medium determination method provided in an embodiment of this application. This method can be applied to... Figure 1 In the application scenarios shown, such as Figure 11As shown, it mainly includes the following steps.
[0124] Step S1101: Begin.
[0125] Step S1102: Obtain an image forming job of the first media type in PDF format.
[0126] Step S1103: Obtain an image forming job of the first media type in SPL format.
[0127] Step S1104: Parse the image using the pdfium library to determine the number of job objects, and iterate through the coordinate information of each object.
[0128] Step S1105: Convert the SPL data to EMF format and obtain the coordinate information of each object in the EMF format.
[0129] Step S1106: Determine whether all objects in the image forming operation are located in the first preset area or the second preset area.
[0130] When all objects in the image forming operation are located in the first preset area or the second preset area, step S1107 is executed; when the objects in the image forming operation are not all located in the first preset area or the second preset area, step S1110 is executed.
[0131] Step S1107: Determine whether all objects in the image forming operation are located in the first preset area.
[0132] When all objects in the image forming operation are located in the first preset area, step S1108 is executed; when the objects in the image forming operation are not all located in the first preset area, step S1109 is executed.
[0133] Step S1108: Adjust the medium type of the first image forming operation to the second medium type associated with the first preset region.
[0134] Step S1109: Rotate the information content corresponding to the image forming job by 180 degrees at the PCL printing language level, and select the second image forming job located in the first preset area.
[0135] Step S1110: Render the image forming operation and send it to the image forming device.
[0136] Step S1111: End.
[0137] For details regarding the specific content involved in the implementation of this application, please refer to the description in the embodiments shown above. For the sake of brevity, these details will not be repeated here.
[0138] Corresponding to the above method embodiments, this application also provides a schematic diagram of the structure of an image forming medium determination apparatus. Specifically, see... Figure 12 This is a schematic diagram of an image forming medium determining apparatus provided in an embodiment of this application. As shown in the figure... Figure 12 The image forming medium determining apparatus 1200 is shown. The image forming medium determining apparatus 1200 collectively includes: an object information determining module 1201, a judging module 1202, and a second medium type adjusting module 1203. Specifically, the object information determining module 1201 is used to determine object information in an image forming operation based on an acquired image forming operation of a first medium type; the judging module 1202 is used to determine whether all objects in the image forming operation are located within a preset area of the medium corresponding to the first medium type based on the object's position information; the second medium type adjusting module 1203 is used to adjust the medium type corresponding to the image forming operation to a second medium type that matches the preset area when all objects in the image forming operation are located within the preset area of the medium corresponding to the first medium type. The size of the medium corresponding to the first medium type is larger than the size of the medium corresponding to the second medium type.
[0139] For details regarding the specific content involved in the implementation of this application, please refer to the description in the embodiments shown above. For the sake of brevity, these details will not be repeated here.
[0140] Corresponding to the above embodiments, this application also provides a schematic diagram of the structure of a terminal device. See also... Figure 13 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. The terminal device 1300 may include a processor 1301, a memory 1302, and a communication unit 1303. These components communicate through one or more buses. Those skilled in the art will understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiments of the present invention. It can be a bus topology or a star topology, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0141] The communication unit 1303 is used to establish a communication channel, enabling the electronic device to communicate with other devices. It receives user data from other devices or sends user data to other devices.
[0142] The processor 1301 serves as the control center of the terminal device, connecting various parts of the terminal device via various interfaces and lines. It executes software programs, instructions, and / or modules stored in the memory 1302, and calls data stored in the memory to perform various functions of the electronic device and / or process data. The processor can be composed of integrated circuits (ICs), such as a single packaged IC or multiple packaged ICs with the same or different functions connected together. For example, the processor 1301 may only include a central processing unit (CPU). In this embodiment of the invention, the CPU may have a single processing core or include multiple processing cores.
[0143] The memory 1302 is used to store the execution instructions of the processor 1301. The memory 1302 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0144] When the execution instructions in memory 1302 are executed by processor 1301, the terminal device 1300 is able to execute. Figure 3 Some or all of the steps in the illustrated embodiments.
[0145] In a specific implementation, this application also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, it may include some or all of the steps in the various embodiments of the simulation scene generation method provided by this invention. The storage medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0146] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, the simultaneous existence of A and B, or the existence of B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects have an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0147] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0148] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0149] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0150] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the device embodiments and terminal embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.
Claims
1. A method for determining an image forming medium, characterized in that, The method is applied to a terminal device, the terminal device being configured with a processing mode including an automatic identification mode, and the method includes: When the terminal device is in the automatic identification mode, the following steps are performed: Based on the acquired image forming job of the first medium type, determine the object information in the image forming job, the object information including the position information of the object in the image forming job; Based on the location information of the objects in the image forming operation, it is determined whether all the objects in the image forming operation are located in a preset area of the medium corresponding to the first medium type; When all objects in the image forming operation are located in a preset area of the medium corresponding to the first medium type, the medium type corresponding to the image forming operation is adjusted to a second medium type that matches the preset area; Wherein, the media size corresponding to the first media type is larger than the media size corresponding to the second media type; The object information also includes the quality information of the objects in the image forming operation; The step of determining whether all objects in the image forming operation are located within a preset area of the medium corresponding to the first medium type, based on the position information of the objects in the image forming operation, includes: Based on the quality information of the objects in the image forming operation, the quality of each object in the image forming operation is obtained; Based on the location information of the objects in the image forming operation, it is determined whether all qualified objects in the image forming operation are located in the preset area of the medium corresponding to the first medium type.
2. The method according to claim 1, characterized in that, The preset area includes: a first preset area and / or a second preset area, wherein the first preset area is the front half of the medium of the first medium type along the paper feeding direction, and the second preset area is the rear half of the medium of the first medium type along the paper feeding direction; The step of adjusting the medium type corresponding to the image forming operation to a second medium type that matches the preset region includes: When all objects in the image forming operation are located in the first preset area, the medium type of the first image forming operation is adjusted to the second medium type associated with the first preset area; When all objects in the image forming job are located in the second preset area, the second image forming job located in the second preset area is selected, and the media type of the second image forming job is adjusted to the second media type associated with the second preset area.
3. The method according to claim 2, characterized in that, When all objects in the image forming operation are located within the second preset region, selecting the second image forming operation located within the second preset region includes: When all objects in the image forming job are located in the second preset area, the information content corresponding to the image forming job is rotated 180 degrees at the PCL printing language level.
4. The method according to claim 1, characterized in that, The quality information includes object type, object color, and object grayscale; The step of obtaining the quality of each object in the image forming operation based on the quality information of the objects in the image forming operation includes: obtaining the quality of each object in the image forming operation based on the object type, object color, object grayscale, and background information corresponding to the image forming operation.
5. The method according to claim 2, characterized in that, The terminal device includes a user interface that displays the automatic recognition mode control, and the method further includes: In response to the automatic recognition mode control triggered on the user interface, the automatic recognition mode is activated.
6. The method according to claim 5, characterized in that, The user interface also displays a first preset area printing mode control and / or a second preset area printing mode control; In response to a first preset area printing mode control triggered by the user interface, the media type of the first image forming job is adjusted to a second media type associated with the first preset area; In response to a second preset area printing mode control triggered by the user interface, a second image forming job located in the second preset area is selected, and the media type of the second image forming job is adjusted to a second media type associated with the second preset area.
7. An image forming medium determining apparatus, characterized in that, Applied to a terminal device, the terminal device being configured with a processing mode including an automatic identification mode, the device comprising: The object information determination module is used to determine object information in the image forming operation based on the acquired image forming operation of the first medium type, wherein the object information includes the position information of the object in the image forming operation; The judgment module is used to determine, based on the position information of the objects in the image forming operation, whether all the objects in the image forming operation are located in a preset area of the medium corresponding to the first medium type; The second medium type adjustment module is used to adjust the medium type corresponding to the image forming operation to a second medium type that matches the preset area when all objects in the image forming operation are located in a preset area of the medium corresponding to the first medium type. Wherein, the media size corresponding to the first media type is larger than the media size corresponding to the second media type; The object information also includes the quality information of the objects in the image forming operation; The judgment module is specifically used to obtain the quality of each object in the image forming operation based on the quality information of the objects in the image forming operation; and to determine whether all qualified objects in the image forming operation are located in a preset area of the medium corresponding to the first medium type based on the position information of the objects in the image forming operation.
8. A terminal device, characterized in that, include: processor; Memory; And a computer program, wherein the computer program is stored in the memory, the computer program including instructions that, when executed by the processor, cause the image forming apparatus to perform the method of any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Image forming medium determination method and apparatus, and terminal device
CN116567157A