Method and device for identifying front side and back side of thermosensitive film and printing system
The method and device automate the identification of thermal film orientation using image analysis and optical density detection, improving reliability and preventing print head damage by ensuring correct film placement.
Patent Information
- Application Number
- CN202411546288.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-01-03
AI Technical Summary
Existing medical thermal films require manual identification of the front and back sides, leading to low recognition reliability and potential damage to the thermal print head due to incorrect placement.
A method and device that utilize image acquisition, detection area determination, and optical density detection to automatically identify the front and back sides of thermal films by comparing detected optical density with a preset threshold, preventing incorrect printing and protecting the print head.
Enhances recognition reliability by automatically distinguishing film orientation, reducing the risk of damage to the print head and ensuring proper printing.
Smart Images

Figure CN119239146A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical device technology, and in particular to a method, device and printing system for identifying the front and back sides of a thermal film. Background Art
[0002] Medical thermal film is a film used for printing medical images. The coating of the film contains heat-sensitive materials. When stimulated by a certain temperature, these heat-sensitive materials will undergo physical or chemical changes to form images. During the printing process, the print head of the thermal printer selectively heats the film through the heating element according to the instructions of the digital image signal, so that the heat-sensitive materials in the corresponding parts of the film develop color, and finally form medical images, such as images of X-ray, CT, MRI and other examination results.
[0003] Placing medical thermal film upside down may cause unclear printing or even damage the thermal print head, affecting the printing effect and the service life of the printer. Existing thermal films can distinguish the front and back sides by the appearance and touch of the film, but this method still requires manual identification of the front and back sides of the film, and the recognition reliability is low. Summary of the invention
[0004] The present application provides a method, device and printing system for identifying the front and back sides of a thermal film, which are used to solve the technical problem that the existing medical thermal film requires manual identification of the front and back sides of the film, and the identification reliability is low.
[0005] In order to solve the above technical problems, the first aspect of the present application provides a method for identifying the front and back sides of a thermal film, comprising:
[0006] Acquiring a thermal film image, and determining a detection area from the thermal film image;
[0007] According to the detection area, the detection area is heated and printed by controlling the printing probe;
[0008] By controlling the optical density detection probe to perform optical density detection on the detection area, a detection optical density is obtained;
[0009] The front and back side identification result of the thermal film is determined according to the comparison result between the detected optical density and the preset optical density threshold.
[0010] Preferably, the step of determining the detection area from the thermal film image comprises:
[0011] Determining the actual printing area in the thermal film according to the comparison result between the acquired actual printing image and the thermal film image;
[0012] A detection area is determined from the actual printing area.
[0013] Preferably, the step of determining the detection area from the thermal film image comprises:
[0014] Determining an image display area of the thermal film according to the film specification of the thermal film and the actual printed image obtained;
[0015] According to the edge area of the image display area, a detection area is determined from the edge area.
[0016] Preferably, the step of determining the detection area from the thermal film image comprises:
[0017] The detection area is determined according to the film specifications of the thermal film and the corresponding relationship between the preset film specifications and the coordinates of the detection area.
[0018] Preferably, the determining the front and back side recognition result of the thermal film according to the comparison result of the detected optical density and a preset optical density threshold value comprises:
[0019] When the detected optical density is greater than a preset optical density threshold, it is determined that the detection area is located on the front side of the thermal film; when the detected optical density is not greater than the preset optical density threshold, it is determined that the detection area is located on the back side of the thermal film.
[0020] At the same time, the second aspect of the present application provides a device for identifying the front and back sides of a thermal film, comprising:
[0021] A detection area determination unit, used to obtain a thermal film image and determine a detection area from the thermal film image;
[0022] A printing process control unit, used for performing heating and printing process on the detection area by controlling the printing probe according to the detection area;
[0023] An optical density detection control unit, used for performing optical density detection on the detection area by controlling the optical density detection probe to obtain the detected optical density;
[0024] The front and back side determination unit is used to determine the front and back side identification result of the thermal film according to the comparison result between the detected optical density and the preset optical density threshold.
[0025] Preferably, the detection area determination unit is specifically used for:
[0026] Determine the actual printing area in the thermal film according to the comparison result between the acquired actual printing image and the thermal film image, and determine the detection area from the actual printing area;
[0027] or;
[0028] Determine an image display area of the thermal film according to the film specification of the thermal film and the actual printed image obtained, and determine a detection area from the edge area of the image display area according to the edge area of the image display area;
[0029] or;
[0030] According to the film specification of the thermal film and the acquired actual printed image, the image display area of the thermal film is determined, and according to the edge area of the image display area, the detection area is determined from the edge area.
[0031] Preferably, the front and back side determination unit is specifically used for:
[0032] When the detected optical density is greater than a preset optical density threshold, it is determined that the detection area is located on the front side of the thermal film; when the detected optical density is not greater than the preset optical density threshold, it is determined that the detection area is located on the back side of the thermal film.
[0033] The third aspect of the present application provides a thermal film printing system, comprising: a conveying mechanism, a printing device, a densitometer and a control terminal, wherein the control terminal is integrated with a thermal film front and back side identification device as provided in the second aspect of the present application.
[0034] Preferably, the control terminal is also used for:
[0035] According to the recognition result of the front and back sides of the thermal film, when the detection area is located on the back side of the thermal film, a printing stop instruction is generated.
[0036] It can be seen from the above technical solutions that this application has the following advantages:
[0037] The solution provided in the present application first confirms the detection area from the thermal film, then controls the printing probe to perform heating and printing processing on the specific detection area, and then performs optical density detection on the printed detection area. Finally, based on the comparison result of the obtained detection optical density and the preset optical density threshold, it is determined whether the plane of the current thermal film facing the printing probe is the front side. In the process of continuous printing of the film, it is possible to timely identify whether the film is placed upside down, thereby improving the recognition reliability and avoiding damage to the printing probe caused by invalid printing. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0039] Figure 1 A schematic diagram of a flow chart of an embodiment of a method for identifying the front and back sides of a thermal film provided in the present application.
[0040] Figure 2 Schematic diagram of the positional relationship between the thermal film and the image display area.
[0041] Figure 3 This is a schematic structural diagram of an embodiment of a device for identifying the front and back sides of a thermal film provided in the present application. DETAILED DESCRIPTION
[0042] The present application provides a method, device and printing system for identifying the front and back sides of a thermal film, which are used to solve the technical problem that the existing medical thermal film requires manual identification of the front and back sides of the film, and the identification reliability is low.
[0043] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0044] First, a detailed description of an embodiment of a thermal film printing system provided by the present application is as follows:
[0045] The present embodiment provides a thermal film printing system, including: a conveying mechanism, a printing device, a densitometer and a control terminal.
[0046] Among them, the conveying mechanism is used to move the thermal film, which can be realized by a conveyor belt or a manipulator; the control terminal is integrated with a thermal film front and back side identification device as provided in the present application, and a thermal film front and back side identification method provided in the present application can be implemented through the thermal film front and back side identification device. The detailed description of the thermal film front and back side identification method provided in the present application can be found in the following embodiments.
[0047] See also Figure 1 The present embodiment provides a method for identifying the front and back sides of a thermal film, comprising:
[0048] Step 101, obtaining a thermal film image, and determining a detection area from the thermal film image;
[0049] Step 102: According to the detection area, the detection area is heated and printed by controlling the printing probe;
[0050] Step 103, performing optical density detection on the detection area by controlling the optical density detection probe to obtain the detection optical density;
[0051] Step 104: Determine the front and back side recognition result of the thermal film according to the comparison result between the detected optical density and the preset optical density threshold.
[0052] It should be noted that the recognition method provided in this embodiment first determines the detection area from the range of the thermal film according to the detected thermal film and the thermal film image. The number of detection areas is generally one, but in the face of some special implementation scenarios, multiple detection areas can also be set as needed. The detection area set in this embodiment is preferably a rectangular area: length: recognition aperture of the densitometer + 3mm; width: recognition aperture of the densitometer * 1.5mm; the reason for this setting is due to design errors, installation errors and printed film offset errors. After determining the detection area, the detection area is heated and printed by controlling the printing probe according to the coordinates of the detection area. After the printing process is completed, the optical density detection probe module is controlled to perform optical density detection on the printed detection area. The obtained detection optical density is compared with the preset optical density threshold value. According to the comparison result, it is determined whether the surface where the current detection area is located is the front side.
[0053] More specifically, the detection area is determined from the thermal film image in this embodiment, and there are several derivative determination methods as follows:
[0054] Determine the actual printing area in the thermal film according to the comparison result of the acquired actual printing image and the thermal film image;
[0055] The detection area is determined from the actual printing area.
[0056] or;
[0057] Determine the image display area of the thermal film according to the film specification of the thermal film and the actual printed image obtained;
[0058] According to the edge area of the image display area, a detection area is determined from the edge area.
[0059] or;
[0060] The detection area is determined according to the film specifications of the thermal film and the corresponding relationship between the preset film specifications and the coordinates of the detection area.
[0061] It should be noted that, firstly, the specific method of the first method is to determine the image area in the image that needs to be processed by the printing probe, that is, the actual printing area, based on the actual printing image obtained, such as the patient's X-ray image / CT image, and then determine the detection area in the determined actual printing area for optical density detection. In this method, since the detection area and the actual printing area are in an inclusive relationship, the detection printing traces generated during the detection process can be covered by the subsequent actual printing traces, and will not affect the normal use of the thermal film;
[0062] The second method is to determine the image display area of the thermal film according to the film specifications of the thermal film and the actual printed image obtained. The relationship between the thermal film specifications and the image display area can be found in Figure 2 As shown in the figure, the black frame represents the range of the thermal film, the gray frame represents the display range of the image, and the black mark area represents the selected detection area. Then, according to the determined image display area range, a detection area is determined from the edge area of the image display area. In this way, the detection print marks generated during the detection process are located outside the effective display range of the film image, which can reduce the impact on the use of the film.
[0063] The third method is to pre-set the correspondence between the film specifications and the detection area coordinates. During the detection process, the actual specifications of the film are first determined, and then the corresponding detection area coordinates are determined according to the preset correspondence, thereby determining the detection area.
[0064] More specifically, in this embodiment, according to the comparison result between the detected optical density and the preset optical density threshold, determining the front and back recognition result of the thermal film includes:
[0065] When the detected optical density is greater than the preset optical density threshold, it is determined that the detection area is located on the front side of the thermal film; when the detected optical density is not greater than the preset optical density threshold, it is determined that the detection area is located on the back side of the thermal film.
[0066] It should be noted that, due to the normal placement of the film, the optical density of the black mark area after printing will be very large, generally greater than 3.0; if the film is placed upside down, the optical density of the black mark area after printing will be relatively small, close to the optical density of the unprinted film, generally less than 0.3. Therefore, when the detected optical density > the preset optical density threshold, the optical density threshold can be around 1.4~1.6, at this time the film is placed normally (optical density is generally greater than 3.0), the printer continues to print; otherwise, it can be determined that the film is placed upside down (optical density is generally less than 0.3), at this time the printer is controlled to stop printing, and a prompt is given that the film is placed upside down.
[0067] The above is a detailed description of an embodiment of a method for identifying the front and back sides of a thermal film provided by the present application. The following is a detailed description of an embodiment of a device for identifying the front and back sides of a thermal film provided by the present application.
[0068] See also Figure 3 , a device for identifying the front and back sides of a thermal film provided in an embodiment of the present application comprises:
[0069] The detection area determination unit 201 is used to obtain a thermal film image and determine a detection area from the thermal film image;
[0070] The printing control unit 202 is used to control the printing probe to heat and print the detection area according to the detection area;
[0071] The optical density detection control unit 203 is used to control the optical density detection probe to perform optical density detection on the detection area to obtain the detected optical density;
[0072] The front and back side determination unit 204 is used to determine the front and back side identification result of the thermal film according to the comparison result between the detected optical density and the preset optical density threshold.
[0073] Further, the detection area determination unit 201 is specifically used for:
[0074] According to the comparison result of the acquired actual printing image and the thermal film image, the actual printing area in the thermal film is determined, and the detection area is determined from the actual printing area;
[0075] or;
[0076] Determine the image display area of the thermal film according to the film specification of the thermal film and the actual printed image obtained, and determine the detection area from the edge area according to the edge area of the image display area;
[0077] or;
[0078] According to the film specification of the thermal film and the acquired actual printed image, the image display area of the thermal film is determined, and according to the edge area of the image display area, the detection area is determined from the edge area.
[0079] Furthermore, the front and back side determination unit 204 is specifically used for:
[0080] When the detected optical density is greater than the preset optical density threshold, it is determined that the detection area is located on the front side of the thermal film; when the detected optical density is not greater than the preset optical density threshold, it is determined that the detection area is located on the back side of the thermal film.
[0081] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the terminals, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0082] In the several embodiments provided in the present application, it should be understood that the disclosed terminals, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0083] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0084] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0085] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0086] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0087] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0088] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for identifying the front and back sides of a thermal film, characterized in that: include: Acquiring a thermal film image, and determining a detection area from the thermal film image; According to the detection area, the detection area is heated and printed by controlling the printing probe; By controlling the optical density detection probe to perform optical density detection on the detection area, a detection optical density is obtained; The front and back side identification result of the thermal film is determined according to the comparison result between the detected optical density and the preset optical density threshold.
2. A method for identifying the front and back sides of a thermal film according to claim 1, characterized in that: Determining the detection area from the thermal film image includes: Determining the actual printing area in the thermal film according to the comparison result between the acquired actual printing image and the thermal film image; A detection area is determined from the actual printing area.
3. A method for identifying the front and back sides of a thermal film according to claim 1, characterized in that: Determining the detection area from the thermal film image includes: Determining an image display area of the thermal film according to the film specification of the thermal film and the actual printed image obtained; According to the edge area of the image display area, a detection area is determined from the edge area.
4. A method for identifying the front and back sides of a thermal film according to claim 1, characterized in that: Determining the detection area from the thermal film image includes: The detection area is determined according to the film specifications of the thermal film and the corresponding relationship between the preset film specifications and the coordinates of the detection area.
5. A method for identifying the front and back sides of a thermal film according to claim 1, characterized in that: Determining the front and back side recognition result of the thermal film according to the comparison result of the detected optical density and the preset optical density threshold comprises: When the detected optical density is greater than a preset optical density threshold, it is determined that the detection area is located on the front side of the thermal film; when the detected optical density is not greater than the preset optical density threshold, it is determined that the detection area is located on the back side of the thermal film.
6. A device for identifying the front and back sides of a thermal film, characterized in that: include: A detection area determination unit, used to obtain a thermal film image and determine a detection area from the thermal film image; A printing process control unit, used for performing heating and printing process on the detection area by controlling the printing probe according to the detection area; An optical density detection control unit, used for performing optical density detection on the detection area by controlling the optical density detection probe to obtain the detected optical density; The front and back side determination unit is used to determine the front and back side identification result of the thermal film according to the comparison result between the detected optical density and the preset optical density threshold.
7. A device for identifying the front and back sides of a thermal film according to claim 6, characterized in that: The detection area determination unit is specifically used for: Determine the actual printing area in the thermal film according to the comparison result between the acquired actual printing image and the thermal film image, and determine the detection area from the actual printing area; or; Determine an image display area of the thermal film according to the film specification of the thermal film and the actual printed image obtained, and determine a detection area from the edge area of the image display area according to the edge area of the image display area; or; According to the film specification of the thermal film and the acquired actual printed image, the image display area of the thermal film is determined, and according to the edge area of the image display area, the detection area is determined from the edge area.
8. The device for identifying the front and back sides of a thermal film according to claim 6, characterized in that: The front and back side determination unit is specifically used for: When the detected optical density is greater than a preset optical density threshold, it is determined that the detection area is located on the front side of the thermal film; when the detected optical density is not greater than the preset optical density threshold, it is determined that the detection area is located on the back side of the thermal film.
9. A thermal film printing system, characterized in that: include: A conveying mechanism, a printing device, a densitometer and a control terminal, wherein the control terminal is integrated with a thermal film front and back side identification device as described in any one of claims 6 to 8.
10. A thermal film printing system according to claim 9, characterized in that: The control terminal is also used for: According to the recognition result of the front and back sides of the thermal film, when the detection area is located on the back side of the thermal film, a printing stop instruction is generated.
