Control method of multi-compartment slide scanning equipment, multi-compartment slide scanning equipment and storage medium
By freezing and updating the scanning schedule sequence and slot status in the multi-slide scanning device, the problem of status changes caused by the opening of the compartment door was solved, and a more efficient batch scanning process was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN SHENGQIANG TECH
- Filing Date
- 2026-05-29
- Publication Date
- 2026-07-31
AI Technical Summary
In batch scanning of multi-compartment pathological slide automatic scanning equipment, the state of the slide compartments is prone to change after the compartment doors are opened, which leads to unreliable scanning scheduling sequences and increases the probability of anomalies.
When a warehouse door is detected to be open, the scanning scheduling sequence and warehouse-by-warehouse input are frozen. The changed warehouses are continuously sampled and marked. After the door is closed, an existence matrix is constructed through slot detection, and the slot status and scheduling sequence of the affected warehouses are updated.
It reduces the probability of anomalies during batch scanning, ensures that the scanning scheduling sequence is consistent with the physical state, avoids the risk of empty scanning, and reduces the efficiency loss caused by full verification.
Smart Images

Figure CN122345728B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a control method for a multi-compartment slide scanning device, the multi-compartment slide scanning device, and a storage medium. Background Technology
[0002] In batch scanning operations, multi-slide pathology automatic scanning equipment typically first identifies the distribution of slides within the slide compartment, generates a scanning schedule sequence based on the slide distribution, and then sequentially completes slide retrieval, positioning, focusing, scanning, return to the compartment, and scheduling of the next slide based on the scanning schedule sequence, thereby achieving continuous scanning of multiple slides.
[0003] However, in real-world applications, operators often open the slide compartment doors during batch scanning to add, change, or remove slides, check their positions, or handle abnormal slides. Once the doors are open, some slides may have been removed, reinstalled, rearranged, or have additional slides added or removed. Furthermore, issues such as improper compartment insertion, loose latches, misaligned or protruding slides, and changes in the slide's position can easily occur. At this point, the scan scheduling sequence and slide status previously recorded by the equipment become unreliable, increasing the probability of anomalies in subsequent scanning processes.
[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main objective of this application is to provide a control method, a multi-compartment slide scanning device, and a storage medium for a multi-compartment slide scanning device, aiming to solve the technical problem of how to reduce the probability of abnormalities in batch scanning of multi-compartment pathological slides.
[0006] To achieve the above objectives, this application proposes a control method for a multi-compartment slide scanning device, the control method comprising: When the door is detected to be open, the scanning is stopped and the current scanning schedule sequence, as well as the current baseline per-slide input quantity and slot status of each slide compartment, are saved. Based on the preset periodic sampling of the input volume of each slide compartment, when the input volume of each slide compartment is different from the baseline input volume of each slide compartment, the compartment position change bitmap corresponding to the slide compartment is set to the first preset value. When the compartment door is detected to have been closed for a preset period of time, the affected compartments are determined based on the compartment location change bitmap and the full review rollback flag corresponding to each of the glass slide compartments. Based on a preset slot detection path, each slot in the affected compartment is detected to determine the slot detection sampling value of each slot, and the slot existence matrix of the affected compartment is determined based on the slot detection sampling value. The slot existence matrix is used to indicate whether there is a glass slide in each slot. The slot status of the affected warehouse and the scan scheduling sequence are updated according to the slot existence matrix so that a scan can be performed according to the new scan scheduling sequence after the scan is resumed.
[0007] In one embodiment, after the step of determining the affected compartments based on the compartment location change bitmap and full review rollback flag corresponding to each of the slide compartments after detecting that the compartment door has been closed for a preset time, the method further includes: Set the differential cleaning flag of each slot in the affected warehouse to the first preset value; Based on the differential cleanup flag, the entity to be scanned corresponding to the slot and the slot status of the slot are deleted from the scan scheduling sequence.
[0008] In one embodiment, the step of updating the slot status of the affected warehouse and the scan scheduling sequence according to the slot existence matrix includes: Iterate through the slots of the affected warehouse; If the current slot is traversed and the corresponding matrix value in the slot existence matrix is the first preset value, then the slot status of the current slot is set to be scanned, and an entity to be scanned is created and added to the scan scheduling sequence according to the slot number and warehouse number of the current slot. If the matrix value corresponding to the current slot in the slot existence matrix is the second preset value, then the slot state of the current slot is set to empty.
[0009] In one embodiment, before the step of determining the affected compartments based on the compartment location change bitmap and the full review rollback flag corresponding to each of the slide compartments, the method further includes: The insertion status of each slide compartment is verified to determine whether the insertion status of the slide compartment meets the conditions for resuming scanning. When the placement status of the slide compartment meets the recovery scan conditions, the step of determining the affected compartment based on the compartment position change bitmap and full review rollback flag corresponding to each slide compartment is executed.
[0010] In one embodiment, if the step of sampling the input quantity of each slide compartment based on a preset period fails, or the step of verifying the insertion status of each slide compartment fails, then the full verification rollback flag of the slide compartment is set to the first preset value. The step of determining the affected warehouses based on the warehouse location change bitmap and the full review rollback flag corresponding to each of the slide warehouses includes: If the location change bitmap or the full review rollback flag corresponding to the slide compartment is the first preset value, then the slide compartment is determined to be the affected compartment.
[0011] In one embodiment, if the detection of each slot in the affected compartment based on the preset slot detection path fails, or if the insertion state of the slide compartment does not meet the recovery scanning conditions, the abnormal blocking index value is set to the first preset value. After the step of updating the slot status of the affected warehouse and the scan scheduling sequence according to the slot existence matrix, the method further includes: When the abnormal blocking index value is not the first preset value, the scanning is resumed, and the scanning order of each slot is determined according to the new scanning scheduling sequence.
[0012] In one embodiment, the step of verifying the insertion status of each of the slide compartments includes at least one of the following: The presence detection signal of the slide compartment is acquired to determine whether the slide compartment exists. The presence detection signal of the slide compartment is acquired to determine whether the slide compartment body is inserted into place; The detection signal of the slide compartment is obtained to determine whether the slide compartment is locked.
[0013] In one embodiment, the step of detecting each slot in the affected warehouse based on a preset slot detection path, determining the slot detection sampling value of each slot, and determining the slot existence matrix of the affected warehouse based on the slot detection sampling value includes: Based on the preset slot detection path, determine the first slot detection sampling value for each slot; If the first slot detection sampling value meets the preset glass slide existence condition, then the slot is taken as a candidate slot; Based on a preset offset, two or more second slot detection sampling values are collected in each candidate slot. If the second slot detection sampling value meets the preset slide existence condition, then the matrix value of the slot existence matrix corresponding to the candidate slot is set to the first preset value.
[0014] In addition, to achieve the above objectives, this application also proposes a multi-compartment slide scanning device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the control method for the multi-compartment slide scanning device as described above.
[0015] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the control method of the multi-compartment slide scanning device as described above.
[0016] This application provides a control method for a multi-slide scanning device. When the door is detected to be open, the current scanning schedule sequence and the baseline per-slide input and slot status of each slide compartment are first frozen and saved as a reference for subsequent comparisons. During the door opening period, the per-slide input is continuously sampled at a preset cycle. Once the input deviates from the reference value, the slide compartment is immediately marked as an affected compartment and its changed state is locked, even if the compartment is reinserted. When the door is detected to be closed and stable, affected compartments are screened based on the slot change bitmap, and the loading motion unit is driven to perform multi-position detection on each slot along a preset path. A slot existence matrix is constructed based on the comparison results of the sampled values and preset thresholds to accurately determine whether a slide exists in each slot. Finally, only the affected compartments are reconstructed based on the slot existence matrix and their slot status is updated. For unaffected compartments, their original scanning progress and schedule sequence are completely retained, ultimately generating a new scanning schedule sequence that is strictly consistent with the current physical state, reducing the probability of anomalies in subsequent batch scanning processes. Attached Figure Description
[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a flowchart illustrating an embodiment of the control method for the multi-compartment slide scanning device of this application. Figure 2 This is a flowchart illustrating a second embodiment of the control method for the multi-compartment slide scanning device of this application. Figure 3 This is a flowchart illustrating the control method of the multi-compartment slide scanning device of this application in Embodiment 3. Figure 4 This is a flowchart illustrating the control method of the multi-compartment slide scanning device of this application, as provided in Embodiment 5.
[0020] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0021] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of this application and are not intended to limit this application.
[0022] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific embodiments. It should be noted that all actions involving the acquisition of signals, information, or data in this application are performed in accordance with the relevant data protection laws and regulations of the country where the application is located, and with authorization from the owner of the corresponding device.
[0023] In batch scanning operations, multi-slide pathology automatic scanning equipment typically first identifies the distribution of slides within the slide compartment, generates a scanning schedule sequence based on the slide distribution, and then sequentially completes slide retrieval, positioning, focusing, scanning, return to the compartment, and scheduling of the next slide based on the scanning schedule sequence, thereby achieving continuous scanning of multiple slides.
[0024] However, in real-world applications, operators often open the slide compartment doors during batch scanning to add, change, or remove slides, check their positions, or handle abnormal slides. Once the doors are open, some slides may have been removed, reinstalled, rearranged, or have additional slides added or removed. Furthermore, issues such as improper compartment insertion, loose latches, misaligned or protruding compartments, and altered slide conditions may arise. At this point, the scan scheduling sequence and slide status previously recorded by the equipment become unreliable, increasing the probability of anomalies in subsequent scanning processes.
[0025] In view of the above problems, this application proposes a control method for a multi-compartment slide scanning device. When the compartment door is detected to be open, the current scanning schedule sequence and the baseline per-compartment input quantity and slot status of each slide compartment are first frozen and saved as a reference for subsequent comparison. During the compartment door opening period, the per-compartment input quantity is continuously sampled at a preset period. Once the input quantity deviates from the reference value, the slide compartment is immediately marked as an affected compartment and its changed state is locked, even if the compartment is reinserted. When the compartment door is detected to be closed and stabilized, the affected compartments are screened based on the compartment change bitmap, and the loading motion unit is driven to perform multi-position detection on each slot along a preset path. A slot existence matrix is constructed based on the comparison results of the sampled values and preset thresholds to accurately determine whether a slide exists in each slot. Finally, only the affected compartments are reconstructed based on the slot existence matrix and their slot status is updated, while the unaffected compartments retain their original scanning progress and schedule sequence. This ultimately generates a new scanning schedule sequence that is strictly consistent with the current physical state, reducing the probability of anomalies in subsequent batch scanning processes.
[0026] First Embodiment The first embodiment of this application provides a control method for a multi-compartment slide scanning device, referring to... Figure 1 In this embodiment, the control method of the multi-compartment slide scanning device includes steps S10 to S50: Step S10: When the door of the slide chamber is detected to be open, stop scanning and save the current scanning schedule sequence, as well as the current baseline per-slide input quantity and slot status of each slide chamber.
[0027] It should be noted that the scan scheduling sequence is the execution sequence used by the host control unit to schedule slide retrieval, positioning, scanning, and return to the slide compartment. The slide compartment is a pluggable storage unit in a multi-compartment slide scanning device, with each compartment containing multiple slots for placing slides. Slot status refers to the working status of each slot in each slide compartment in the software status image, including completed, failed, pending scan, and currently scanning states.
[0028] The baseline unit-by-unit input volume refers to the unit-by-unit input volume recorded at the moment the door is opened, which serves as the baseline for subsequent determination of unit position changes.
[0029] The input quantities for each slide compartment include the in-situ input, presence input, compartment latch input, or equivalent compartment status input corresponding to the slide compartment. The presence input is a sensor signal used to detect whether the slide compartment is physically present in the multi-compartment slide scanning device; the in-situ input is a sensor signal used to detect whether the slide compartment is correctly inserted into the standard position specified by the multi-compartment slide scanning device, such as slot depth and alignment; the compartment latch input is a sensor signal used to detect whether the mechanical latch of the slide compartment is closed, such as the status of locking mechanisms such as latches and hooks; the equivalent mechanical latch input refers to other mechanical locking mechanism signals that are functionally equivalent to the compartment latch input, such as the closed status of magnetic locks and spring latches.
[0030] For example, a photoelectric proximity switch, such as a diffuse reflection photoelectric sensor, is installed on the side wall of the equipment compartment. When the slide compartment is inserted, the compartment body blocks the light path, and the diffuse reflection photoelectric sensor outputs a high-level signal as a presence input, indicating that the compartment is present. A mechanical limit switch, such as a micro switch or a limit switch, is installed at the bottom or side wall of the compartment slot. When the slide compartment is fully inserted to the standard position, the compartment body triggers the mechanical limit switch contacts to close, outputting a low-level signal as an in-position input, indicating that the compartment is inserted in place. A micro switch is installed next to the compartment latch mechanism. When the latch closes, the latching action presses the micro switch contacts to close, and the micro switch outputs a high-level signal as a latch input, indicating that the latch is locked and the compartment is locked. Optionally, if the slide compartment uses a magnetic lock, a magnetic switch, such as a Hall sensor, can be used to detect the status of the magnetic lock. When the compartment is fixed by the magnetic lock, the Hall sensor detects a change in the magnetic field and outputs a high-level signal as an equivalent compartment status input, indicating that the magnetic lock is locked and the compartment is locked. If the slide compartment uses a spring clip, a spring clip position sensor, such as a displacement sensor, can be used to detect the status of the spring clip. When the spring clip is fully embedded in the compartment's slot, the displacement sensor detects that the clip is in position and outputs a low-level signal as an equivalent compartment status input, indicating that the compartment is locked.
[0031] Specifically, the host control unit monitors the door status input I_door(t) in real time through the door status detection component. When it detects that the door status input I_door(t) has switched from the closed state to the open state, it immediately stops the current batch scanning process and switches to the recovery mode after the door is opened. After switching to the recovery mode, the host control unit saves the software state image Q_shadow before the door was opened. This software state image Q_shadow contains the slot status of each slot in each slide compartment, the scan scheduling sequence, the scan completion count, the scan failure count, and the identifier of the currently scanned object. The host control unit synchronously records the baseline track-by-track input I_rack_ref(i) at the moment the door opens, that is, the value of the track-by-track input corresponding to slide compartment i at the moment the door opens, as a comparison baseline for subsequent determination of whether the track-by-track input has changed. At the same time, the host control unit prohibits new pre-scan, slide retrieval, or door control commands from entering, and switches the current mechanical execution units, such as the loading motion unit and the scanning execution unit, to the safe waiting position to avoid the mixing of actions during the door opening and recovery actions. Optionally, the host computer writes the software state image Q_shadow before the door is opened, the initialized compartment change bitmap B_move, the baseline compartment input I_rack_ref(i), and the current scan object identifier into a persistent recovery snapshot P_snap, so that if the software exits abnormally during the recovery period, it can continue to recover from the snapshot after restarting, instead of treating all slide compartments as an unknown state.
[0032] Step S20: Based on a preset period, sample the input amount of each slide compartment. When the input amount of each slide compartment is different from the baseline input amount of each slide compartment, set the compartment position change bitmap corresponding to the slide compartment to a first preset value.
[0033] The preset period is a sampling time interval set by the host control unit, used to periodically collect the unit-by-unit input I_rack(i,t) of each slide compartment during the opening of the compartment door, representing the unit-by-unit input of slide compartment i at the current sampling time t. The compartment position change bitmap is a bitmap indexed by slide compartment, denoted as B_move. When B_move(i) equals the first preset value, it indicates that slide compartment i has changed during the opening of the compartment door; when B_move(i) equals the second preset value, it indicates that slide compartment i has not changed during the opening of the compartment door. The first and second preset values can be any different specific values, and this application does not limit them. For ease of understanding, exemplarily, in this embodiment and the following embodiments, 1 is used as the first preset value and 0 is used as the second preset value, that is, B_move(i)=1 indicates that slide compartment i has changed during the opening of the compartment door, and B_move(i)=0 indicates that slide compartment i has not changed during the opening of the compartment door.
[0034] For example, during the time the slide door remains open, the host control unit collects the current tracked input quantity I_rack(i,t) of each slide compartment through the tracked input channel according to a preset cycle. Then, the host control unit compares the current tracked input quantity I_rack(i,t) of each slide compartment i bit by bit with its corresponding baseline tracked input quantity I_rack_ref(i). If the current tracked input quantity of any slide compartment i is inconsistent with the baseline tracked input quantity, the host control unit immediately sets the corresponding compartment position change bitmap B_move(i) of that slide compartment i to the first preset value, i.e., sets B_move(i) = 1.
[0035] It should be noted that the host control uses latching control logic for the shelf location change bitmap B_move(i). That is, once the shelf location change bitmap B_move(i) of slide compartment i is set to the first preset value, it will remain at the first preset value until the current recovery is completed, i.e., until step S50 is executed. Even if the per-slide input of slide compartment i is restored to the baseline per-slide input in subsequent sampling, the change mark will not be cleared. When entering recovery mode, i.e., at the moment the shelf door is opened, the initial value of the shelf location change bitmap B_move(i) of slide compartment i is the second preset value by default.
[0036] Step S30: When it is detected that the compartment door has been closed for a preset time, the affected compartment is determined based on the compartment position change bitmap and full review rollback flag corresponding to each of the glass slide compartments.
[0037] It should be noted that the preset duration is a time threshold set by the host control unit to confirm the stable state after the slide compartment door is closed, avoiding interference from door vibration or accidental triggering. The full review return flag is a logical flag, denoted as F_full. When F_full is the first preset value of 1, it indicates that due to an abnormal monitoring link or unreliable recovery range, all slide compartments need to be included in the affected range; when F_full is the second preset value of 0, it indicates that only slide compartments that changed during the door opening period will be processed. The affected compartments are denoted as R_aff, which is the set of slide compartments that need status cleanup and slot re-checking. Its range is jointly determined by the compartment change bitmap B_move and the full review return flag F_full. When entering recovery mode, i.e., at the moment the door opens, the initial value of the full review return flag defaults to the second preset value.
[0038] For example, the host control unit continuously monitors the door status input I_door(t). When it detects that I_door(t) has switched from the open state to the closed state, it starts a timer. Only when the door remains closed for a preset duration does the host control unit determine that the door is stably closed and allow the subsequent detection stage to proceed. Afterward, the host control unit reads the compartment change bitmap B_move and the full review return flag F_full generated in step S20, and performs a logical OR operation on the compartment change bitmap B_move(i) and the full review return flag F_full corresponding to each slide compartment i, i.e., R_aff(i) = B_move(i) OR F_full. If the operation result R_aff(i) is the first preset value 1, then the slide compartment i is determined to belong to the affected compartment R_aff; if the operation result R_aff(i) is 0, then the slide compartment i is determined not to belong to the affected compartment.
[0039] Step S40: Detect each slot in the affected compartment based on a preset slot detection path, determine the slot detection sampling value of each slot, and determine the slot existence matrix of the affected compartment based on the slot detection sampling value. The slot existence matrix is used to indicate whether a glass slide exists in each slot.
[0040] It should be noted that the preset slot detection path is denoted as P_det(i,j,k), which refers to the standardized movement trajectory executed by the loading motion unit to detect the j-th slot of slide compartment i. It includes k different detection positions or postures, such as directly in front of the slot or offset to the left or right. The slot detection sampling value is denoted as A_det(i,j,k), which refers to the k physical signals collected by the slot detection unit after the loading motion unit reaches the position specified by P_det(i,j,k), such as photoelectric reflection intensity, image features, or pressure values. The slot presence matrix is denoted as M_slot, and its matrix value M_slot(i,j) represents the presence status of the slide in the j-th slot of slide compartment i. When M_slot(i,j) is the first preset value of 1, it means that there is a slide in the j-th slot of slide compartment i. When M_slot(i,j) is the second preset value of 0, it means that the j-th slot of slide compartment i is empty.
[0041] For example, the host control unit uses each slide compartment in the affected compartment R_aff as the slide compartment to be inspected. For the j-th slot of each slide compartment to be inspected, it calls the preset slot detection path P_det(i,j,k) to generate a sequence of control instructions for the loading motion unit containing k target detection positions. Then, the host control unit sends instructions to the loading motion unit, driving it to move sequentially to each target detection position defined by P_det(i,j,k). Each time the loading motion unit reaches a target detection position, it triggers the slot detection unit to collect physical signals and records the collected raw data as the slot detection sample value A_det(i,j,k). The host control unit performs a consistency analysis on the sampled values A_det(i,j,k) of all slots in a single slot: If all sampled values of the j-th slot of slide compartment i fall within the preset slide presence threshold range, then the slot is determined to contain a slide, and M_slot(i,j) is set to the first preset value, i.e., M_slot(i,j)=1; If all sampled values of the j-th slot of slide compartment i fall within the empty slot threshold range, then the slot is determined to be empty, and M_slot(i,j) is set to the second preset value, i.e., M_slot(i,j)=0; If the sampled values of the j-th slot of slide compartment i fluctuate beyond the preset allowable range, cannot converge, or fall into the abnormal range, then the detection is determined to be a failure, and M_slot(i,j) is set to the preset abnormal value.
[0042] To better understand the solution presented in this example, we will further explain this example in conjunction with specific application scenarios.
[0043] Assume the slot detection unit uses a photoelectric sensor to emit and receive reflected light. High reflectivity of surfaces like glass or labels results in strong return voltages; conversely, empty slots with black backgrounds or deep holes absorb light, leading to weak return voltages. Define the slot detection sampling value A_det(i,j,k) as the analog voltage value returned by the photoelectric sensor, in volts (V), with a range of 0V-5V and a preset allowable fluctuation range of ±0.5V. The host control unit has three preset judgment intervals: The glass slide has a threshold voltage range of 3.5V to 5.0V; Empty slot threshold range: 0V~1.5V; Abnormal range: 1.5V~3.5V.
[0044] For the j-th slot (i,j) of slide compartment i, if the host control unit samples at three positions (k=3) and obtains three sets of data: A_det(i,j,1)=4.2V; A_det(i,j,2)=4.3V; A_det(i,j,3)=4.1V, then all the sampled values (4.2V, 4.3V, 4.1V) fall within the slide presence threshold range, and the numerical fluctuation is within the preset allowable range. Therefore, it is determined that there is a slide in the slot (i,j), and M_slot(i,j)=1 is set.
[0045] After traversing all valid slots in the affected compartments and completing the detection, the host control unit summarizes the judgment results of all slots and generates a complete slot existence matrix M_slot. This slot existence matrix accurately maps the physical slide distribution of each slot under the current hardware state.
[0046] Step S50: Update the slot status of the affected warehouse and the scan scheduling sequence according to the slot existence matrix, so as to perform a scan according to the new scan scheduling sequence after the scan is resumed.
[0047] For example, the host control traverses all slide compartments belonging to the affected compartment set R_aff, and performs a status update operation for the slots within each compartment. Specifically, for the j-th slot of each slide compartment i, it reads the corresponding slot existence matrix value M_slot(i,j). If M_slot(i,j)=1, the host control generates a new entity to be scanned for that slot and marks its slot status as pending scanning. Simultaneously, it clears any outdated states remaining in the old software state mirror Q_shadow for that slot, such as old completed or failed states. If M_slot(i,j)=0, the host control marks the slot status of that slot as empty or invalid and deletes all old entity references and status records associated with that slot in Q_shadow. Then, the host control binds the updated slot status with the newly generated entity to be scanned, forming an entity mapping relationship E_map(i,j). For slots with M_slot(i,j)=1, the entity mapping relationship includes the slot's warehouse number, slot number, entity identifier, and new slot status; for slots with M_slot(i,j)=0, the entity mapping relationship is empty.
[0048] After constructing the entities to be scanned and their mapping relationships, the host computer collects the original scan scheduling sequence and slot status of unaffected compartments (i.e., those not belonging to R_aff), as well as the newly constructed entity mapping relationship E_map(i,j) for affected compartments. Based on the original scan scheduling sequence and slot status of the unaffected compartments, and the newly constructed entity mapping relationship, a new scan scheduling sequence is reorganized and constructed. This new scan scheduling sequence eliminates all invalid old entities. After the scanning process is resumed, the host computer uses this new scan scheduling sequence to schedule slide retrieval, positioning, scanning, and return to the compartment.
[0049] In this embodiment, when the slide chamber door is detected to be open, the current scanning schedule sequence and the baseline per-slide input and slot status of each slide chamber are first frozen and saved as the benchmark for subsequent comparison. During the period when the slide chamber door is open, the per-slide input is continuously sampled at a preset period. Once the input is detected to deviate from the benchmark value, the slide chamber is immediately marked as an affected chamber and its changed state is locked. Even if the chamber is reinserted, the mark is not cleared. When the slide chamber door is detected to be closed and stabilized, the affected chambers are screened based on the slot change bitmap, and the loading motion unit is driven to perform multi-position detection on each slot along a preset path. Based on the comparison results of the sampled values and preset thresholds, a slot existence matrix is constructed to accurately determine whether a slide exists in each slot. Finally, only the affected chambers are reconstructed based on the slot existence matrix and the slot status is updated. For unaffected chambers, their original scanning progress and schedule sequence are completely retained. This eliminates failed tasks, avoids the risk of empty scanning, and avoids the efficiency loss caused by full verification. Finally, a new scanning schedule sequence that is strictly consistent with the current physical state is generated, which significantly reduces the probability of anomalies in the batch scanning process.
[0050] Second Embodiment Based on the first embodiment described above, referring to... Figure 2 In this embodiment, after step S30, steps S60 to S70 are also included: Step S60: Set the differential cleaning flag of each slot in the affected warehouse to a first preset value.
[0051] It should be noted that the differential clearing flag, denoted as C_clear(i,j), is a logical flag used to indicate whether the old software state image record of the j-th slot of slide chamber i needs to be deleted. When C_clear(i,j) is at the first preset threshold of 1, it indicates that the slot's state needs to be cleared; when C_clear(i,j) is at the second preset threshold of 0, it indicates that clearing is not required. Upon entering recovery mode, i.e., when the slide chamber door is opened, the initial value of the differential clearing flag C_clear(i,j) for the j-th slot of slide chamber i defaults to the second preset value.
[0052] Step S70: Based on the differential cleanup flag, delete the entity to be scanned corresponding to the slot and the slot status of the deleted slot from the scan scheduling sequence.
[0053] For example, the host control unit traverses all slots in all slide compartments, selects slots with differential cleanup flag C_clear(i,j)=1 as cleanup targets, and then accesses the current scan scheduling sequence Q_act to identify and remove entities associated with the slot (i,j) to be cleaned. This removal operation includes removing the entity's index relationship in the scan scheduling sequence and removing it from the list of pending tasks to prevent scanning requests from being initiated for expired or altered slides. Simultaneously, the host control unit accesses the software state mirror Q_shadow to erase or reset all historical state records related to the slot (i,j) to be cleaned, including but not limited to completed state, failed state, pending scan state, and currently scanning state, to an empty state. Optionally, the host control unit can synchronously correct statistical data related to deleted slots, such as rolling back completion or failure counts that may have been included in the count, to ensure that the statistical results are consistent with the cleaned state. Disconnect the mapping relationship between the deleted slot and the old entity, release the corresponding memory or cache resources, and ensure that the deleted slot returns to the initial or pending reconstruction state at the software level.
[0054] Based on this, refer to Figure 2 The above step S50 includes steps S51 to S53: Step S51: Traverse the slots of the affected warehouse.
[0055] Step S52: If the matrix value corresponding to the current slot in the slot existence matrix is the first preset value, then the slot status of the current slot is set to be scanned, and an entity to be scanned is created and added to the scan scheduling sequence according to the slot number and warehouse number of the current slot.
[0056] Step S53: If the matrix value corresponding to the current slot in the slot existence matrix is the second preset value, then the slot state of the current slot is set to empty.
[0057] For example, the host computer reads the set of affected slide compartments R_aff. For each slide compartment i in R_aff, it iterates through all the slots j it contains and reads the matrix value M_slot(i,j) corresponding to the current slot (i,j) in the slot existence matrix M_slot. If M_slot(i,j) is equal to the first preset value 1, the host computer determines that there is a slide in the slot (i,j), updates the slot status of the slot (i,j) from the old state to the state to be scanned, and generates a new entity to be scanned based on the compartment number i and slot number j of the current slot (i,j). The newly created entity to be scanned is inserted into the scan scheduling sequence Q_act, making it an object that can be scanned later. If the value of M_slot(i,j) is equal to the second preset value of 0, the host control determines that there is no glass slide in slot (i,j) and sets the slot status of slot (i,j) to empty. Since there is no glass slide in slot, the host control does not create or retain any entity to be scanned in the scan scheduling sequence Q_act, ensuring that slot does not participate in the subsequent scan process.
[0058] This embodiment introduces a differential cleanup mechanism to precisely clean the slot status of affected bins before constructing a new scan scheduling sequence. Specifically, by adding a differential cleanup flag to all slots belonging to the affected bin set, and based on this flag, old entities to be scanned and expired slot statuses associated with these slots in the scan scheduling sequence are deleted in a targeted manner. This ensures that any failed tasks caused by bin movement or slide additions or removals can be completely removed during slot reconstruction, effectively avoiding logical conflicts caused by the mixing of old and new statuses. At the same time, since the cleanup operation only targets affected bins, the slot status of unaffected bins is completely preserved, thereby eliminating the risk of false scans while minimizing unnecessary data reconstruction overhead and improving recovery efficiency.
[0059] Third Embodiment Based on the above embodiments, in this embodiment, referring to... Figure 3 The steps S30 above are preceded by steps S80 to S90: Step S80: Verify the insertion status of each slide compartment to determine whether the insertion status of the slide compartment meets the conditions for resuming scanning.
[0060] Insertion status refers to the physical installation status of the slide compartment in the multi-compartment slide scanning equipment, including whether the compartment exists, whether it is inserted in place, and whether it is mechanically locked. Resumption of scanning conditions refers to the prerequisites for the slide compartment to be safely called for scanning, including the presence of the compartment, the compartment being inserted in place, and the compartment being locked.
[0061] For example, the host computer drives the loading motion unit to perform verification on each slide compartment, reading the presence input, in-position input, compartment deactivation input, or detection position return value of each slide compartment, and generating a compartment validity verification result V_rack(i). When the insertion state of slide compartment i meets the above-mentioned recovery scan conditions, V_rack(i) is the first preset value 1. The above-mentioned detection position return value is the actual coordinate or attitude data fed back by the loading motion unit when performing the detection action, used to help confirm whether the compartment is tilted.
[0062] Furthermore, step S80 above includes at least one of the following steps S81 to S83: Step S81: Obtain the presence detection signal of the slide chamber to determine whether the slide chamber exists.
[0063] Step S82: Obtain the in-situ detection signal of the slide compartment to determine whether the slide compartment body is inserted into place.
[0064] Step S83: Obtain the latch detection signal of the slide compartment to determine whether the slide compartment is locked.
[0065] For example, the aforementioned presence detection signal can be the presence input in the first embodiment, the aforementioned in-situ detection signal can be the in-situ input in the first embodiment, and the aforementioned latch detection signal can be the latch input or an equivalent mechanical locking input in the first embodiment. Specific implementation methods for obtaining the aforementioned detection signals can be found in the first embodiment, and will not be elaborated upon here.
[0066] Optionally, in addition to the aforementioned presence detection signal, in-situ detection signal, and compartment buckle detection signal, the host control unit can also synchronously acquire the actual coordinates fed back by the loading motion unit during the detection process, compare the actual coordinates with the preset correct coordinates to confirm whether the compartment is tilted or deformed. When the actual coordinates are inconsistent with the preset correct coordinates, it is determined that the slide compartment's insertion state does not meet the conditions for resuming scanning.
[0067] Step S90: When the insertion state of the slide compartment meets the recovery scan conditions, the step of determining the affected compartment based on the compartment position change bitmap and full review rollback flag corresponding to each slide compartment is executed.
[0068] If all the slide compartments to be tested meet the conditions for recovery scanning, that is, the validity verification result V_rack(i) of each slide compartment i is the first preset value 1, then the host control unit determines that it is in a safe state and then executes step S30 to determine the affected compartments based on the compartment change bitmap and the full review rollback flag.
[0069] Furthermore, if the step of sampling the input quantity of each slide compartment based on a preset period fails, or the step of verifying the insertion status of each slide compartment fails, the full-volume review rollback flag of the slide compartment is set to a first preset value. Subsequently, if the compartment change bitmap or the full-volume review rollback flag corresponding to the slide compartment is at the first preset value, the slide compartment is determined to be an affected compartment.
[0070] For example, when performing step S20 above, if the host control detects an abnormality in the module-by-module monitoring thread, an interruption in the module-by-module input channel communication, or unreliable sampling data such as signal jumps exceeding a threshold, then the step of sampling the module-by-module input amount of each slide module based on a preset period is determined to have failed. In this case, the full-quantity verification rollback flag F_full is directly set to the first preset value, i.e., F_full=1, so that all slide modules are considered as affected modules. Alternatively, if the host control drives the loading motion unit to perform module-by-module verification on all slide modules and cannot read the presence input, in-place input, module debit input, and detection position return value of each slide module, or if the read data is abnormal, then the step of verifying the insertion status of each slide module is determined to have failed. In this case, the full-quantity verification rollback flag F_full is directly set to the first preset value, i.e., F_full=1, so that all slide modules are considered as affected modules.
[0071] Furthermore, if the above-mentioned step of detecting each slot in the affected compartment based on the preset slot detection path fails, or if the insertion state of the slide compartment does not meet the conditions for resuming scanning, the abnormal blocking index value is set to a first preset value. Subsequently, after the above-mentioned step of updating the slot status of the affected compartment and the scanning scheduling sequence according to the slot existence matrix, when the abnormal blocking index value is not the first preset value, scanning is resumed, and the scanning order of each slot is determined according to the new scanning scheduling sequence.
[0072] For example, if any slot in the affected compartment is determined to have failed detection, or if the sampling values of the same slot at different target detection positions have logical conflicts, the host control immediately sets the abnormal blocking flag F_block to the first preset value 1, terminating the current detection process. Alternatively, if the validity verification result V_rack(i) of any slide compartment i is 0, the host control determines that the placement state of slide compartment i does not meet the conditions for resuming scanning. In this case, instead of proceeding to step S30, the host sets the abnormal blocking flag F_block to the first preset value 1 and outputs abnormal information, terminating the current verification process.
[0073] This embodiment improves the physical safety of recovery by adding a pre-verification step of the slide compartment insertion status before determining the affected compartment. Specifically, the drive loading motion unit, in conjunction with sensors, acquires presence detection signals, in-place detection signals, and compartment latch detection signals for each compartment, confirming from multiple dimensions whether the slide compartment physically exists, is properly inserted, and is mechanically locked. Through this verification, the multi-compartment slide scanning equipment can identify hardware anomalies such as compartment misalignment, lack of locking, or missing compartments before executing the scan scheduling sequence update. Only when the insertion status fully meets the recovery scanning conditions is the subsequent affected compartment determination and slot detection steps allowed to proceed, effectively preventing slide retrieval failures, mechanical collisions, or image artifacts caused by improper physical installation of the compartments, and reducing the failure rate of subsequent scans.
[0074] Fourth embodiment Based on the above embodiments, in this embodiment, the slot detection sampling value includes a first slot detection sampling value and a second slot detection sampling value, and the above step S40 includes steps S41 to S44: Step S41: Determine the first slot detection sampling value for each slot according to the preset slot detection path.
[0075] The first slot detection sampling value is denoted as A_det_first(i,j), which refers to the physical signal collected by the detection unit when the loading motion unit moves along the preset slot detection path to the target detection position of the j-th slot of the slide compartment i.
[0076] Step S42: If the first slot detection sampling value meets the preset glass slide existence condition, then the slot is taken as a candidate slot.
[0077] For example, when the first slot detection sampling value of the j-th slot of slide compartment i falls within the slide presence threshold range, it is determined that the first slot detection sampling value meets the preset slide presence condition, and the j-th slot of slide compartment i is taken as a candidate slot.
[0078] Step S43: Based on a preset offset, collect two or more second slot detection sampling values in each candidate slot.
[0079] The preset offset refers to the incremental distance the loading motion unit moves relative to the target detection position in the horizontal or vertical direction during the candidate slot detection process. The second slot detection sampling value is denoted as A_det_second(i,j,k), which refers to the multiple sets of physical signals collected after the loading motion unit moves to different positions within the candidate slot based on the preset offset.
[0080] Step S44: If the second slot detection sampling value meets the preset slide existence condition, then set the matrix value of the slot existence matrix corresponding to the candidate slot to the first preset value.
[0081] For example, when all the second slot detection sample values of the j-th slot of slide compartment i also fall within the slide presence threshold range, it is determined that the second slot detection sample values meet the preset slide presence condition, and the matrix value M_slot(i,j) of the slot presence matrix corresponding to the j-th slot of slide compartment i is set to the first preset value 1. When any second slot detection sample value of the j-th slot of slide compartment i falls within the empty slot threshold range, or when the fluctuation of the second slot detection sample value exceeds the preset allowable range, fails to converge, or falls into the abnormal range, M_slot(i,j) is set to the preset abnormal value.
[0082] This embodiment introduces a two-stage detection mechanism of coarse scanning and fine measurement verification. First, based on a preset slot detection path, the first slot detection sample value is obtained. Only slots that meet the characteristics of the slide are listed as candidate slots, effectively filtering out a large number of empty slots or obviously invalid areas, reducing the redundancy of subsequent calculations. Then, for these candidate slots, multi-point acquisition is performed based on a preset offset to obtain two or more second slot detection sample values, and the consistency of multiple sets of data is used to confirm the slide entity. This multi-position verification mechanism can effectively overcome signal misjudgment caused by slide warping, surface stains, or single sampling angle deviation, thereby significantly reducing the false alarm rate and missed detection rate of slot status, improving the accuracy of subsequent slot existence matrix construction, and thus reducing the failure rate of subsequent scans.
[0083] Fifth Embodiment To aid in understanding the implementation flow of the control method for the multi-compartment slide scanning device obtained by combining the above embodiments, please refer to... Figure 4 , Figure 4 A simplified flowchart of a control method for a multi-compartment slide scanning device is provided, specifically: First, after the slide compartment door is opened, the scanning mode switches to recovery mode. The device saves the software state image Q_shadow and records the baseline track-by-track input I_rack_ref(i) for each slide compartment as the baseline data for subsequent recovery. Simultaneously, the track-by-track input I_rack(i,t) is sampled at a preset period t. The host control compares the baseline track-by-track input I_rack_ref(i) of slide compartment i with the real-time sampled track-by-track input I_rack(i,t). If they are not equal, the corresponding compartment position change map B_move(i) for slide compartment i is set to 1 (first preset value), marking that the slide compartment has a compartment position change and needs to be included in the affected compartment set. If an abnormality occurs in the track-by-track monitoring thread, the track-by-track input channel communication is interrupted, or the sampled data is unreliable during the sampling of track-by-track input, the full review rollback flag F_full(i) is set to 1, directly treating all slide compartments as affected compartments. After waiting for the slide doors to close stably for a preset time, the placement status of each slide compartment i is verified, generating a compartment validity verification result V_rack(i). When the compartment validity verification result V_rack(i) of slide compartment i is 0 (second preset value), the abnormal blocking flag F_block is set to 1, blocking subsequent detection processes to avoid accidents caused by hardware abnormalities. At the same time, the original software image state of slide compartments that do not belong to the affected compartment set R_aff is preserved to reduce data reconstruction overhead. When the compartment validity verification result V_rack(i) of slide compartment i is 1, the verification is successful. The compartment with changed position (B_move=1) or the compartment with full verification (F_full=1) is included in the affected compartment set by a logical OR operation R_aff[i]=B_move(i) OR F_full(i). Further, each slot j in slide compartment i is detected according to the slot detection action path P_det(i,j,k), and the slot detection sampling value A_det(i,j,k) is collected. The presence of a slide in the slot is determined by the slot detection sampling value, and the matrix value M_slot(i,j) of the slot presence matrix M_slot is generated. If the matrix value M_slot(i,j)=1, it means that there is a slide in slot j and subsequent scanning is required. A scanned entity is generated for slot j and written into the entity mapping relationship E_map(i,j). If the matrix value M_slot(i,j)=0, it means that there is no slide in slot j and subsequent scanning is not required. Slot j is set to an empty state or no-task state, and the old scanned record in Q_shadow is deleted. When the matrix value M_slot(i,j) of the slot presence matrix M_slot is not 0 or 1, it indicates an abnormal status detection. The abnormal blocking flag F_block is set to 1, and detection is stopped.Finally, the scheduling function Schedule(E_map, Q_shadow, C_dev) is called to integrate the entities to be scanned with historical states, generating a new scan scheduling sequence Q_act. Here, C_dev represents the loading motion constraints, warehouse distribution constraints, or equivalent device scheduling constraints. When the scan scheduling sequence Q_act is valid and F_block=0, Q_act is used as the subsequent scheduling input to switch to scan mode and resume the device's positioning, chip retrieval, scanning, and return-to-warehouse processes.
[0084] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the control method of the multi-compartment slide scanning device of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0085] This application provides a multi-compartment slide scanning device, which includes: a door status detection component, multiple pluggable slide compartments, a compartment-by-compartment in-situ input channel, a compartment validity detection component, a loading motion unit, a slot detection unit, a host computer for saving software status images and generating scan scheduling sequences, and a scan execution unit for performing positioning, focusing, scanning, and compartment return actions. The door status detection component, the compartment-by-compartment in-situ input channel, the compartment validity detection component, and the slot detection unit are all electrically connected to the host computer; the loading motion unit moves along a preset slot detection path under the control of the host computer to complete compartment-level and slot-level detection actions.
[0086] The multi-compartment slide scanning device provided in this application, employing the control method of the multi-compartment slide scanning device in the above embodiments, can solve the technical problem of how to reduce the probability of abnormalities in batch scanning of multi-compartment pathological slides. Compared with the prior art, the beneficial effects of the multi-compartment slide scanning device provided in this application are the same as the beneficial effects of the control method of the multi-compartment slide scanning device provided in the above embodiments, and other technical features in this multi-compartment slide scanning device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0087] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0088] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0089] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the control method of the multi-compartment slide scanning device in the above embodiments.
[0090] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory, optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, radio frequency (RF), etc., or any suitable combination thereof.
[0091] The aforementioned computer-readable storage medium may be included in the slide scanning device; or it may exist independently and not assembled into the slide scanning device.
[0092] The aforementioned computer-readable storage medium carries one or more programs that, when executed by the slide scanning device, enable the slide scanning device to write computer program code for performing the operations of this application in one or more programming languages or a combination thereof. These programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, or as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0093] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0094] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0095] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the control method of the multi-compartment slide scanning device described above, which can solve the technical problem of how to reduce the probability of abnormalities in batch scanning of multi-compartment pathological slides. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the control method of the multi-compartment slide scanning device provided in the above embodiments, and will not be repeated here.
[0096] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the control method for the multi-compartment slide scanning device described above.
[0097] The computer program product provided in this application solves the technical problem of how to reduce the probability of abnormalities in batch scanning of multi-compartment pathology slides. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the control method of the multi-compartment slide scanning equipment provided in the above embodiments, and will not be repeated here.
[0098] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A control method of a multi-cartridge glass slide scanning apparatus, characterized by, The control method for the multi-compartment slide scanning device includes: When the door is detected to be open, the scanning is stopped and the current scanning schedule sequence, as well as the current baseline per-slide input quantity and slot status of each slide compartment, are saved. Based on the preset periodic sampling of the input volume of each slide compartment, when the input volume of each slide compartment is different from the baseline input volume of each slide compartment, the compartment position change bitmap corresponding to the slide compartment is set to the first preset value. When the compartment door is detected to have been closed for a preset period of time, the affected compartments are determined based on the compartment location change bitmap and the full review rollback flag corresponding to each of the glass slide compartments. The affected compartment is inspected based on a preset slot detection path to determine the slot detection sampling value of each slot, and a slot existence matrix of the affected compartment is determined based on the slot detection sampling value. The slot existence matrix is used to indicate whether a slide exists in each slot. The step of inspecting each slot in the affected compartment based on the preset slot detection path to determine the slot detection sampling value of each slot and determining the slot existence matrix of the affected compartment based on the slot detection sampling value includes: determining a first slot detection sampling value for each slot based on the preset slot detection path; if the first slot detection sampling value meets a preset slide existence condition, then the slot is selected as a candidate slot; based on a preset offset, two or more second slot detection sampling values are collected in each candidate slot; if the second slot detection sampling value meets the preset slide existence condition, then the matrix value of the slot existence matrix corresponding to the candidate slot is set to the first preset value. The affected warehouse's slot status and the scan scheduling sequence are updated according to the slot existence matrix so that scanning can be performed according to the new scan scheduling sequence after scanning is resumed. The step of updating the affected warehouse's slot status and the scan scheduling sequence according to the slot existence matrix includes: traversing the slots of the affected warehouse; if the matrix value corresponding to the current slot in the slot existence matrix is a first preset value, then the slot status of the current slot is set to be scanned, and an entity to be scanned is created and added to the scan scheduling sequence according to the slot number and warehouse number of the current slot; if the matrix value corresponding to the current slot in the slot existence matrix is a second preset value, then the slot status of the current slot is set to empty. The step of determining the affected slide compartments based on the compartment location change bitmap and full review rollback flag corresponding to each slide compartment after detecting that the compartment door has been closed for a preset time further includes: Set the differential cleaning flag of each slot in the affected warehouse to the first preset value; Based on the differential cleanup flag, the entity to be scanned corresponding to the slot and the slot status of the slot are deleted from the scan scheduling sequence.
2. The control method for the multi-compartment slide scanning device as described in claim 1, characterized in that, Before the step of determining the affected warehouses based on the warehouse location change bitmap and full review rollback flag corresponding to each of the slide warehouses, the method further includes: The insertion status of each slide compartment is verified to determine whether the insertion status of the slide compartment meets the conditions for resuming scanning. When the placement status of the slide compartment meets the recovery scan conditions, the step of determining the affected compartment based on the compartment position change bitmap and full review rollback flag corresponding to each slide compartment is executed.
3. The control method for the multi-compartment slide scanning device as described in claim 2, characterized in that, If the step of sampling the input quantity of each slide compartment based on the preset period fails, or the step of verifying the insertion status of each slide compartment fails, then the full verification rollback flag of the slide compartment is set to the first preset value. The step of determining the affected warehouses based on the warehouse location change bitmap and the full review rollback flag corresponding to each of the slide warehouses includes: If the location change bitmap or the full review rollback flag corresponding to the slide compartment is the first preset value, then the slide compartment is determined to be the affected compartment.
4. The control method for the multi-compartment slide scanning device as described in claim 2, characterized in that, If the detection of each slot in the affected compartment based on the preset slot detection path fails, or if the insertion state of the slide compartment does not meet the recovery scanning conditions, the abnormal blocking index value is set to the first preset value. After the step of updating the slot status of the affected warehouse and the scan scheduling sequence according to the slot existence matrix, the method further includes: When the abnormal blocking index value is not the first preset value, the scanning is resumed, and the scanning order of each slot is determined according to the new scanning scheduling sequence.
5. The control method for the multi-compartment slide scanning device as described in claim 2, characterized in that, The step of verifying the insertion status of each slide compartment includes at least one of the following: The presence detection signal of the slide compartment is acquired to determine whether the slide compartment exists. The presence detection signal of the slide compartment is acquired to determine whether the slide compartment body is inserted into place; The detection signal of the slide compartment is obtained to determine whether the slide compartment is locked.
6. A multi-compartment slide scanning device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the control method for the multi-compartment slide scanning device as described in any one of claims 1 to 5.
7. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the control method of the multi-compartment slide scanning device as described in any one of claims 1 to 5.