Data acquisition method and system
By setting a unique scan sequence number in the scan sequence of OCT, the problem of low scanning efficiency caused by the lack of synchronization mechanism in the prior art is solved, and efficient scanning and data processing without reset when eye movements or lesions are discovered is achieved.
Patent Information
- Application Number
- CN202410992419.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2025-03-07
AI Technical Summary
Due to the lack of strict synchronization mechanism during eye scanning, existing optical coherence tomography (OCT) has caused the scanning galvanometer controller and data acquisition card to be reset when eye movements, which has low scanning efficiency.
By setting a unique scan sequence number in the scan sequence set, each scan sequence has a corresponding scan sequence number, and during the scanning galvanometer controller performs scanning according to the scan sequence, the scan data packets sampled and packaged processing of the data acquisition card have a one-to-one correspondence with the scan sequence and the scan sequence number, which improves the stability and reliability of the control process.
It realizes that when the object to be tested moves or the lesion area is discovered, there is no need to reset the scanning galvanometer controller and data acquisition card, which improves the operation efficiency of the scanning equipment and the accuracy of data processing.
Smart Images

Figure CN119580958A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular, to a data acquisition method and system. Background Art
[0002] During the operation of the optical coherence tomography (OCT) scanner, the scanning galvanometer controller controls the deflection of the scanning galvanometer so that the emitted laser beam scans different positions of the eye. The detector collects the light signal returned by the eye, and the data acquisition card obtains the output signal of the detector. The host computer then reads and analyzes the output signal of the data acquisition card, thereby realizing eye detection.
[0003] The scanning of the eyes is done by sending scanning sequences to the scanning galvanometer controller through the host computer, so that the scanning galvanometer executes scanning sequences to scan different positions of the human eye, and the data acquisition card obtains the scanning data corresponding to each scanning sequence. If the eye moves during the scanning process, it needs to be rescanned. Since there is no strict synchronization mechanism between the scanning galvanometer controller and the data acquisition card, the host computer can only reset the scanning galvanometer controller and the data acquisition card, and both sides remain in the initial state, and then the host computer sends new scanning sequences to the scanning galvanometer controller, and at the same time starts the data acquisition card, in order to maintain data synchronization. This method requires interrupting the current data acquisition and resetting the scanning galvanometer controller, and the scanning efficiency is low. Summary of the invention
[0004] In view of the defects in the prior art, the purpose of the present invention is to provide a data acquisition method and system.
[0005] To achieve the above objective, according to one aspect of the present disclosure, a data acquisition method is provided, comprising:
[0006] Acquire a scanning protocol for scanning the object to be detected, wherein the scanning protocol includes a scanning sequence set, and each scanning sequence in the scanning sequence set has a corresponding scanning sequence number;
[0007] Using the scanning sequence set as a target scanning sequence set, scanning the object to be measured according to the target scanning sequence set to determine scanning data;
[0008] A scanning data packet corresponding to each scanning sequence in the target scanning sequence set is acquired, where the scanning data packet includes a scanning sequence number and scanning data corresponding to the scanning sequence.
[0009] Optionally, the method further comprises:
[0010] Determining a target scanning data packet according to a scanning sequence number corresponding to the scanning data packet;
[0011] Image reconstruction or data analysis is performed according to the scan data corresponding to the target scan data packet.
[0012] Optionally, scanning the object to be detected according to the target scanning sequence set to determine the scanning data further includes:
[0013] According to a preset rule, the scanning sequence set is updated to determine an updated scanning sequence set,
[0014] Using the updated scanning sequence set as the target scanning sequence set, each new scanning sequence in the updated scanning sequence set has a corresponding new scanning sequence number;
[0015] The object to be measured is scanned according to the target scanning sequence set to determine scanning data.
[0016] Optionally, the updating the scanning sequence set according to a preset rule to determine an updated scanning sequence set includes:
[0017] If the object to be detected moves, the scanning sequence in the scanning sequence set is updated to determine a new scanning sequence, each of the new scanning sequences having a corresponding new scanning sequence number;
[0018] The updated scanning sequence set is determined according to the new scanning sequence and the new scanning sequence number.
[0019] Optionally, the method for determining whether the object to be detected has moved includes:
[0020] Acquire a target image and a reference image obtained after scanning the object to be measured;
[0021] Determining the displacement of the object to be measured according to the target image and the reference image;
[0022] Whether the object to be detected moves is determined according to the displacement and a preset displacement threshold.
[0023] Optionally, acquiring a target image and a reference image obtained by scanning the object to be measured includes:
[0024] The object to be measured is imaged using at least one of a pupil camera, a fundus camera, an optical coherence tomography scanner, and a confocal scanning system fundus scope to determine the reference image and the target image, wherein the imaging time of the reference image is earlier than the imaging time of the target image.
[0025] Optionally, scanning the object to be detected according to the target scanning sequence set to determine scanning data includes:
[0026] generating a scanning control signal encoded with the scanning sequence number according to each scanning sequence in the target scanning sequence set and the scanning sequence number corresponding to each scanning sequence;
[0027] The object to be detected is scanned according to the scanning control signal encoded with the scanning sequence number to determine the scanning data.
[0028] Optionally, each of the scanning sequences corresponds to a plurality of sub-scanning control signals;
[0029] Optionally, generating a scanning control signal encoded with the scanning sequence number includes:
[0030] Within the effective acquisition time of all the sub-scanning control signals corresponding to each scanning sequence, all bytes of the scanning sequence number are encoded onto the initial scanning control signal to generate a scanning control signal encoded with the scanning sequence number.
[0031] Optionally, the acquiring a scan data packet corresponding to each scan sequence in the target scan sequence set includes:
[0032] Decoding the scanning control signal encoded with the scanning sequence number to determine the scanning sequence number;
[0033] The scanning data packet is generated according to the scanning sequence number and the scanning data.
[0034] According to a second aspect of the present disclosure, there is provided a data acquisition system, comprising:
[0035] A first acquisition module, configured to acquire a scanning protocol for scanning the object to be detected, wherein the scanning protocol includes a scanning sequence set, and each scanning sequence in the scanning sequence set has a corresponding scanning sequence number;
[0036] A scanning module, configured to use the scanning sequence set as a target scanning sequence set, scan the object to be measured according to the target scanning sequence set, and determine scanning data;
[0037] The second acquisition module is used to acquire a scan data packet corresponding to each scan sequence in the target scan sequence set, wherein the scan data packet includes a scan sequence number and scan data corresponding to the scan sequence.
[0038] Compared with the prior art, the embodiments of the present disclosure have at least one of the following beneficial effects:
[0039] Through the above technical solution, a scanning sequence number is set in the scanning sequence set, and each scanning sequence has a unique corresponding scanning sequence number. In the process of the scanning galvanometer controller performing scanning according to the scanning sequence, since the scanning sequence has a corresponding scanning sequence number, the scanning data packets sampled and packaged by the data acquisition card have a one-to-one correspondence with the scanning sequence and the scanning sequence number, thereby improving the stability and reliability of the control process.
[0040] In the embodiments of the present disclosure, when the object to be measured moves or a lesion area is found, there is no need to reset the scanning galvanometer controller and the data acquisition card, nor to interrupt the data acquisition work. By updating the scanning sequence set with a new scanning sequence and a new scanning sequence number, and using the updated scanning sequence set as the target scanning sequence set, the scanning data packet is obtained, and the scanning data is screened according to the scanning sequence number to obtain valid data, thereby improving the operating efficiency of the scanning device. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Other features, objects and advantages of the present disclosure will become more apparent by reading the detailed description of non-limiting embodiments with reference to the following drawings:
[0042] Figure 1 The figure is a flow chart of a data acquisition method according to an exemplary embodiment.
[0043] Figure 2 The figure is a schematic diagram of a data acquisition process according to an exemplary embodiment.
[0044] Figure 3 is a schematic diagram showing the levels of a scanning control signal and a sub-scanning control signal according to an exemplary embodiment
[0045] Figure 4 It is a block diagram of a data acquisition system according to an exemplary embodiment. DETAILED DESCRIPTION
[0046] The present disclosure is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present disclosure, but are not intended to limit the present disclosure in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements may be made without departing from the concept of the present disclosure. These all fall within the scope of protection of the present disclosure.
[0047] Figure 1 The figure is a flow chart of a data acquisition method according to an exemplary embodiment. Figure 2 The figure is a schematic diagram of a data acquisition process according to an exemplary embodiment.
[0048] like Figure 1 , Figure 2 As shown, the present disclosure provides a data acquisition method, comprising:
[0049] S11, obtaining a scanning protocol for scanning the object to be measured.
[0050] The scanning protocol includes a scanning sequence set, and each scanning sequence in the scanning sequence set has a corresponding scanning sequence number.
[0051] like Figure 2 As shown, in the present disclosure, PC (Personal Computer) represents a host computer, Lineparameter represents a scan sequence, Sn represents a scan sequence number, Btrig represents a scan control signal, and Atrig represents a sub-scan control signal.
[0052] For example, a scanning protocol for scanning the object to be detected can be obtained from a PC, wherein the scanning protocol includes a scanning sequence set, and a unique scanning sequence number is encoded for each scanning sequence to form a scanning protocol for scanning the object to be detected.
[0053] During the operation of an optical coherence tomography (OCT) device, a PC sends a scanning protocol to the OCT, specifically, to a scanning galvanometer controller of the OCT. Each scanning sequence in a scanning sequence set in the scanning protocol corresponds to a scanning sequence number.
[0054] S12, taking the scanning sequence set as a target scanning sequence set, scanning the object to be measured according to the target scanning sequence set, and determining scanning data.
[0055] Continuing with the above example, according to the target scanning sequence set sent by the PC, the OCT performs an operation of scanning the object to be measured to obtain scanning data.
[0056] S13, obtaining a scan data packet corresponding to each scan sequence in the target scan sequence set.
[0057] The scanning data packet includes a scanning sequence number corresponding to the scanning sequence and scanning data.
[0058] Continuing with the above example, the data acquisition card obtains the scan data packet through sampling operation.
[0059] Through the above technical solution, a scanning sequence number is set in the scanning sequence set, and each scanning sequence has a unique corresponding scanning sequence number. In the process of the scanning galvanometer controller performing scanning according to the scanning sequence, since the scanning sequence has a corresponding scanning sequence number, the scanning data packets sampled and packaged by the data acquisition card have a one-to-one correspondence with the scanning sequence and the scanning sequence number, thereby improving the stability and reliability of the control process.
[0060] In a possible embodiment, S12, taking the scanning sequence set as the target scanning sequence set, scanning the object to be measured according to the target scanning sequence set to determine the scanning data, may also include S21 to S23.
[0061] S21, performing update processing on the scanning sequence set according to a preset rule to determine an updated scanning sequence set.
[0062] In the present disclosure, the preset rule is: when the object to be detected moves, the scanning sequence set is updated; or when a lesion area is found during scanning, the scanning sequence set is updated.
[0063] In a possible embodiment, if the object to be detected moves, the scan sequence in the scan sequence set is updated to determine a new scan sequence, each new scan sequence having a corresponding new scan sequence number; an updated scan sequence set is determined based on the new scan sequence and the new scan sequence number.
[0064] The situation where the object to be detected moves may include: during the eye scanning process, the eyeball or the head moves.
[0065] The scan sequence with the updated scan sequence number is a new scan sequence.
[0066] In another possible embodiment, when a lesion area is found during the scanning process, each scanning sequence in the scanning sequence set is updated to a new scanning sequence, and the scanning sequence number corresponding to each scanning sequence is updated to the new scanning sequence number to determine an updated scanning sequence set.
[0067] S22: Use the updated scanning sequence set as the target scanning sequence set.
[0068] Each new scanning sequence in the updated scanning sequence set has a corresponding new scanning sequence number.
[0069] S23, scanning the object to be measured according to the target scanning sequence set to determine scanning data.
[0070] Continuing with the above example, if the object to be measured moves, for example, the eyeball moves when scanning the eyes, the updated scanning sequence set is used as the target scanning sequence set to scan the object to be measured, and the latest scanning data of the object to be measured is obtained to prevent the scanning data from being less accurate due to the movement of the object to be measured, thereby affecting subsequent data processing.
[0071] Continuing with the above example, when a lesion area is found during the scanning process, the updated scanning sequence set is used as the target scanning sequence set to scan the lesion area again, and the two scanning data of the lesion area are obtained and compared to determine whether the area is a lesion area, thereby improving the accuracy of the scanning data and providing more scanning data for the lesion area to help diagnose the lesion.
[0072] Through the above technical solution, when the object to be measured moves or a lesion area is found, there is no need to reset the scanning galvanometer controller and the data acquisition card, and there is no need to interrupt the data acquisition work. By updating the scanning sequence set to a new scanning sequence and a new scanning sequence number, and using the updated scanning sequence set as the target scanning sequence set, the scanning data packet is obtained, and the scanning data is filtered according to the scanning sequence number to obtain valid data, thereby improving the operating efficiency of the scanning equipment.
[0073] In a possible embodiment, the method for determining whether the object to be detected has moved may include S31 to S33.
[0074] S31, acquiring a target image and a reference image obtained after scanning the object to be measured.
[0075] As an example, at least one of a pupil camera, a fundus camera, an optical coherence tomography scanner, and a confocal scanning system ophthalmoscope (CSSO) can be used to image the object to be measured to determine a reference image and a target image.
[0076] The imaging time of the reference image is earlier than the imaging time of the target image.
[0077] The reference image may be an image of the object to be measured at an initial moment, or an image of a historical moment separated from the current moment by a preset time threshold, or an image of any historical moment earlier than the imaging time of the target image.
[0078] S32, determining the displacement of the object to be measured according to the target image and the reference image.
[0079] As an example, the target image and the reference image are compared to determine the displacement of the object to be measured. This embodiment does not limit the method for calculating the displacement, and methods such as template matching, feature matching, scale-invariant feature transform (SIFT), and fast nearest neighbor search algorithm (FLANN) can be used to determine the displacement of the object to be measured.
[0080] S33, determining whether the object to be detected moves according to the displacement and a preset displacement threshold.
[0081] As an example, if the displacement is less than a preset displacement threshold, it is determined that the object to be detected has not moved.
[0082] As another example, if the displacement is not less than a preset displacement threshold, it is determined that the object to be detected has moved.
[0083] In a possible embodiment, if the object to be measured moves, the target scanning position is determined according to the displacement and the current scanning position.
[0084] As an example, if the displacement of the object to be measured is -0.1mm and the current scanning position is 1mm, the target scanning position is 1+(-0.1)=0.9mm. The scanning sequence set is updated according to the target scanning position, and the starting scanning position of the updated scanning sequence set is 0.9mm. The scanning galvanometer controller continues to scan the object to be measured from the starting scanning position of 0.9mm according to the updated scanning sequence set.
[0085] Through the above technical solution, by comparing the reference image and the target image, it is determined whether the object to be measured has moved, and a judgment is made as to whether the scanned data set is updated, thereby improving the accuracy of data scanning and data processing.
[0086] In a possible embodiment, scanning the object to be detected according to the target scanning sequence set to determine the scanning data may include:
[0087] According to each scanning sequence in the target scanning sequence set and the scanning sequence number corresponding to each scanning sequence, a scanning control signal encoded with the scanning sequence number is generated.
[0088] The object to be measured is scanned according to the scanning control signal encoded with the scanning sequence number to determine the scanning data.
[0089] As an example, a corresponding initial scan control signal is generated according to each scan sequence in the target scan sequence set sent by the PC, wherein the initial scan signal represents an uncoded scan control signal.
[0090] Each scanning sequence includes a group of scanning line beams, and within the effective acquisition time of the initial scanning control signal, a group of scanning line beams completes scanning of the object to be measured.
[0091] Specifically, the OCT scans the object to be measured according to the initial scanning control signal. During the scanning process, the scanning sequence number corresponding to each scanning sequence is encoded into the initial scanning control signal to generate a corresponding scanning control signal encoded with the scanning sequence number. The OCT then continues to scan the object to be measured according to the scanning control signal encoded with the scanning sequence number to obtain scanning data.
[0092] The effective acquisition time of the initial scanning control signal and the scanning control signal encoded with the scanning sequence number is the same, and the effective acquisition time is the time for scanning the object to be measured.
[0093] As another example, before scanning the object to be measured, a scanning control signal encoded with a scanning sequence number is generated according to each scanning sequence and the corresponding scanning sequence number in the target scanning sequence set sent by the PC. The OCT scans the object to be measured according to the scanning control signal encoded with the scanning sequence number to obtain scanning data.
[0094] In the present disclosure, the scanning galvanometer controller performs scanning of the object to be measured according to a scanning control signal encoded with a scanning sequence number.
[0095] In a possible embodiment, generating a scanning control signal encoded with a scanning sequence number includes:
[0096] Within the effective acquisition time of all sub-scanning control signals corresponding to each scanning sequence, all bytes of the scanning sequence number are encoded onto the initial scanning control signal to generate a scanning control signal encoded with the scanning sequence number.
[0097] Each scanning sequence corresponds to a plurality of sub-scanning control signals.
[0098] Specifically, each scanning sequence includes a group of scanning line beams, and each scanning line beam is controlled by each sub-scanning control signal. Within the effective acquisition time of each sub-scanning control signal, each corresponding scanning line beam completes the scanning of the object to be tested, and encodes at least one byte of the scanning sequence number into the initial scanning control signal; within the effective acquisition time of all sub-scanning control signals, all bytes of the scanning sequence number are encoded into the initial scanning control signal to generate a scanning control signal encoded with the scanning sequence number.
[0099] The number of bytes of the scan sequence number is determined according to the number of sub-scan control signals, ensuring that all bytes of the scan sequence number are encoded on the initial scan control signal within the effective acquisition time of all sub-scan control signals corresponding to each scan sequence.
[0100] Figure 3 The diagram is a level diagram of a scanning control signal and a sub-scanning control signal encoded with a scanning sequence number according to an embodiment.
[0101] like Figure 3 As shown, as an example, the scan sequence number may include 16 bytes, such as bit15, bit14, bit13...bit1, bit0.
[0102] The effective acquisition time of the sub-scan control signal is expressed as the time when the sub-scan control signal displays a high level, and the high level duration of the initial scan control signal is expressed as a scan cycle, or the time interval between the high level starting moment of the scan control signal encoded with the scan sequence number and the low level starting moment of the scan control signal encoded with the scan sequence number obtained after a preset time represents a scan cycle.
[0103] In the present disclosure, the time during which the initial scanning control signal is at a high level when scanning starts is greater than the time during which a complete sub-scanning control signal is at a high level.
[0104] like Figure 3 As shown, when scanning starts, the initial scanning control signal is at a high level, the first sub-scanning control signal is at a high level, and the sub-scanning control signal corresponding to each scanning sequence begins to be sent down. The first high level of the initial scanning control signal indicates that the OCT starts scanning and the scanning galvanometer controller starts working.
[0105] In the process of sending the sub-scan control signal, starting from the second sub-scan control signal outputting a high level, the first byte bit15 of the scan sequence number is encoded into the initial scan control signal, and the above process is repeated to gradually encode the 16 bytes of the scan sequence number into the initial scan control signal. When the high level of the 17th sub-scan control signal ends, the last byte bit0 of the scan sequence number is encoded into the initial scan control signal, thereby completing the entire encoding of the scan sequence number.
[0106] During the time when each sub-scanning control signal outputs a high level, at least one byte of a scanning sequence number is encoded onto the initial scanning control signal.
[0107] There is no limit to the time from when the scanning sequence number starts to be encoded to the initial scanning control signal, and the encoding may start when the nth sub-scanning control signal outputs a high level, where n is an integer of 2, 3, 4, etc.
[0108] After the scanning of 17 sub-scanning control signals is completed, a scanning cycle ends when the scanning control signal encoded with the scanning sequence number displays a low level for the first time. Therefore, in this embodiment, a scanning cycle starts when the initial scanning control signal displays a high level for the first time, and ends when the scanning control signal encoded with the scanning sequence number outputs a low level after the scanning sequence number encoding is completed.
[0109] like Figure 3 As shown, the scanning control signal encoded with the scanning sequence number carries the level information of 0001001110000000, where 0 represents a low level and 1 represents a high level, and 0001001110000000 is the encoding result corresponding to the scanning sequence number.
[0110] In the scanning process of the optical coherence tomography (OTC) device, the number of sub-scanning control signals is relatively large, and it is possible to ensure that all bytes of the scanning sequence number can be encoded into the scanning control signal.
[0111] The object to be measured is scanned according to the scanning control signal encoded with the scanning sequence number to determine the scanning data.
[0112] The scanning data acquired by the OCT according to the scanning control signal encoded with the scanning sequence number is line scanning data, which can be used to reconstruct a B-scan image, that is, a tomographic image.
[0113] Through the above technical solution, the scanning sequence number is encoded into the scanning control signal, so that the scanning data obtained by the scanning galvanometer through the scanning operation corresponds to the scanning sequence number one by one, thereby improving the reliability and stability of the control process.
[0114] In a possible embodiment, S13, obtaining a scan data packet corresponding to each scan sequence in the target scan sequence set, includes S41 to S42.
[0115] S41, decoding the scanning control signal encoded with the scanning sequence number to determine the scanning sequence number.
[0116] like Figure 2 As shown, specifically, the data acquisition card acquires scan data within the effective acquisition time corresponding to each scan sequence, and decodes the scan control signal encoded with the scan sequence number to decode the scan sequence number.
[0117] S42, generating a scan data packet according to the scan sequence number and the scan data.
[0118] Continuing with the above example, the data acquisition card packages the decoded scanning sequence number and the corresponding scanning data to generate a scanning data packet, so that each scanning data has a corresponding scanning sequence number.
[0119] In a possible embodiment, a data acquisition method may further include S14 to S15.
[0120] S14, determining a target scanning data packet according to a scanning sequence number corresponding to the scanning data packet.
[0121] S15, performing image reconstruction or data analysis according to the scan data corresponding to the target scan data packet.
[0122] Specifically, the PC reads the scanning data packet from the data acquisition card, and filters the scanning data according to the scanning sequence number to obtain a valid scanning data packet, i.e., a target scanning data packet, and performs data analysis or image reconstruction based on the scanning data in the valid scanning data packet, thereby improving the screening efficiency of valid data, being able to obtain valid data during one OCT scanning process, and improving the operating efficiency of the equipment.
[0123] Through the above technical solution, by setting the scanning sequence number in the scanning sequence, each scanning data and each scanning sequence have a one-to-one correspondence with the scanning sequence number, thereby improving the stability and reliability of the control process. In addition, during the control process, there is no need to reset the scanning galvanometer and the data acquisition card, and there is no need to interrupt the data acquisition work, thereby improving the operating efficiency of the scanning equipment and the data processing efficiency.
[0124] Figure 4 It is a block diagram of a data acquisition system according to an exemplary embodiment.
[0125] Based on the same concept, the present disclosure also provides a data acquisition system 100, such as Figure 4 As shown, it includes: a first acquisition module 110, a scanning module 120, and a second acquisition module 130.
[0126] A first acquisition module 110 is used to acquire a scanning protocol for scanning the object to be detected, wherein the scanning protocol includes a scanning sequence set, and each scanning sequence in the scanning sequence set has a corresponding scanning sequence number;
[0127] A scanning module 120, configured to use the scanning sequence set as a target scanning sequence set, scan the object to be detected according to the target scanning sequence set, and determine scanning data;
[0128] The second acquisition module 130 is used to acquire a scan data packet corresponding to each scan sequence in the target scan sequence set, wherein the scan data packet includes a scan sequence number and a scan data corresponding to the scan sequence.
[0129] Through the above technical solution, a scanning sequence number is set in the scanning sequence set, and each scanning sequence has a unique corresponding scanning sequence number. In the process of the scanning galvanometer controller performing scanning according to the scanning sequence, since the scanning sequence has a corresponding scanning sequence number, the scanning data packets sampled and packaged by the data acquisition card have a one-to-one correspondence with the scanning sequence and the scanning sequence number, thereby improving the stability and reliability of the control process.
[0130] Optionally, the data acquisition system 100 further includes:
[0131] A data screening module, used to determine a target scanning data packet according to a scanning sequence number corresponding to the scanning data packet;
[0132] The data processing module is used to perform image reconstruction or data analysis according to the scanning data corresponding to the target scanning data packet.
[0133] Optionally, the scanning module 120 further includes:
[0134] The first updating submodule is used to update the scanning sequence set according to a preset rule to determine an updated scanning sequence set.
[0135] A second updating submodule, configured to use the updated scanning sequence set as the target scanning sequence set, wherein each new scanning sequence in the updated scanning sequence set has a corresponding new scanning sequence number;
[0136] The scanning submodule is used to scan the object to be detected according to the target scanning sequence set to determine scanning data.
[0137] Optionally, the first updating submodule is used to update the scanning sequence in the scanning sequence set if the object to be tested moves, and determine a new scanning sequence, each of the new scanning sequences having a corresponding new scanning sequence number; and determine the updated scanning sequence set based on the new scanning sequence and the new scanning sequence number.
[0138] Optionally, the first updating submodule further includes:
[0139] An image acquisition submodule is used to acquire a target image and a reference image obtained after scanning the object to be measured;
[0140] A displacement determination submodule, used to determine the displacement of the object to be measured according to the target image and the reference image;
[0141] The judging submodule is used to determine whether the object to be detected moves according to the displacement and a preset displacement threshold.
[0142] Optionally, the image acquisition submodule is used to image the object to be measured using at least one of a pupil camera, a fundus camera, an optical coherence tomography scanner, and a confocal scanning system ophthalmoscope to determine the reference image and the target image, wherein the imaging time of the reference image is earlier than the imaging time of the target image.
[0143] Optionally, the scanning module 120 further includes:
[0144] an encoding submodule, configured to generate a scanning control signal encoded with the scanning sequence number according to each scanning sequence in the target scanning sequence set and the scanning sequence number corresponding to each scanning sequence;
[0145] The scanning submodule is further used to scan the object to be detected according to the scanning control signal encoded with the scanning sequence number to determine the scanning data.
[0146] Optionally, each scanning sequence corresponds to a plurality of sub-scanning control signals.
[0147] Optionally, the encoding submodule is used to encode all bytes of the scanning sequence number onto the initial scanning control signal within the effective acquisition time of all the sub-scanning control signals corresponding to each scanning sequence, so as to generate a scanning control signal encoded with the scanning sequence number;
[0148] Optionally, the second acquisition module 130 includes:
[0149] A decoding submodule, used for decoding the scanning control signal encoded with the scanning sequence number to determine the scanning sequence number;
[0150] The data acquisition submodule is used to generate the scan data packet according to the scan sequence number and the scan data.
[0151] Regarding the embodiment of the above system, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0152] Based on the same concept as above, an electronic device is also provided, comprising: a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and a data acquisition method for executing when the processor executes the program.
[0153] Optionally, the memory is used to store programs; the memory may include volatile memory (English: volatile memory), such as random-access memory (English: random-access memory, abbreviated: RAM), such as static random-access memory (English: static random-access memory, abbreviated: SRAM), double data rate synchronous dynamic random access memory (English: Double Data Rate Synchronous Dynamic Random Access Memory, abbreviated: DDR SDRAM), etc.; the memory may also include non-volatile memory (English: non-volatile memory), such as flash memory (English: flash memory). The memory is used to store computer programs (such as applications, functional modules, etc. that implement the above method), computer instructions, etc., and the above computer programs, computer instructions, etc. can be partitioned and stored in one or more memories. And the above computer programs, computer instructions, data, etc. can be called by the processor.
[0154] The processor is used to execute the computer program stored in the memory to implement the various steps in the method involved in the above embodiment. For details, please refer to the relevant description in the above method embodiment.
[0155] The processor and the memory may be independent structures or integrated structures. When the processor and the memory are independent structures, the memory and the processor may be coupled and connected via a bus.
[0156] In an embodiment of the present invention, a non-temporary computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of a data acquisition method in any of the above embodiments are implemented.
[0157] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0158] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0159] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0160] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0161] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0162] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A data acquisition method, characterized in that: include: Acquire a scanning protocol for scanning the object to be detected, wherein the scanning protocol includes a scanning sequence set, and each scanning sequence in the scanning sequence set has a corresponding scanning sequence number; Using the scanning sequence set as a target scanning sequence set, scanning the object to be measured according to the target scanning sequence set to determine scanning data; A scanning data packet corresponding to each scanning sequence in the target scanning sequence set is acquired, where the scanning data packet includes a scanning sequence number and scanning data corresponding to the scanning sequence.
2. The method according to claim 1, characterized in that The method further comprises: Determining a target scanning data packet according to a scanning sequence number corresponding to the scanning data packet; Image reconstruction or data analysis is performed according to the scan data corresponding to the target scan data packet.
3. The method according to claim 1, characterized in that The step of scanning the object to be detected according to the target scanning sequence set to determine the scanning data further includes: According to a preset rule, the scanning sequence set is updated to determine an updated scanning sequence set, Using the updated scanning sequence set as the target scanning sequence set, each new scanning sequence in the updated scanning sequence set has a corresponding new scanning sequence number; The object to be measured is scanned according to the target scanning sequence set to determine scanning data.
4. The method according to claim 3, characterized in that The updating process of the scanning sequence set according to the preset rule to determine the updated scanning sequence set includes: If the object to be detected moves, the scanning sequence in the scanning sequence set is updated to determine a new scanning sequence, each of the new scanning sequences having a corresponding new scanning sequence number; The updated scanning sequence set is determined according to the new scanning sequence and the new scanning sequence number.
5. The method according to claim 4, characterized in that The method for determining whether the object to be detected moves comprises: Acquire a target image and a reference image obtained after scanning the object to be measured; Determining the displacement of the object to be measured according to the target image and the reference image; Whether the object to be detected moves is determined according to the displacement and a preset displacement threshold.
6. The method according to claim 5, characterized in that The step of acquiring a target image and a reference image obtained by scanning the object to be measured includes: The object to be measured is imaged using at least one of a pupil camera, a fundus camera, an optical coherence tomography scanner, and a confocal scanning system fundus scope to determine the reference image and the target image, wherein the imaging time of the reference image is earlier than the imaging time of the target image.
7. The method according to claim 3, characterized in that Scanning the object to be detected according to the target scanning sequence set to determine scanning data includes: generating a scanning control signal encoded with the scanning sequence number according to each scanning sequence in the target scanning sequence set and the scanning sequence number corresponding to each scanning sequence; The object to be detected is scanned according to the scanning control signal encoded with the scanning sequence number to determine the scanning data.
8. The method according to claim 7, characterized in that Each scanning sequence corresponds to a plurality of sub-scanning control signals; The generating of the scanning control signal encoded with the scanning sequence number comprises: Within the effective acquisition time of all the sub-scanning control signals corresponding to each scanning sequence, all bytes of the scanning sequence number are encoded onto the initial scanning control signal to generate a scanning control signal encoded with the scanning sequence number.
9. The method according to claim 7, characterized in that: The acquiring of the scan data packet corresponding to each scan sequence in the target scan sequence set includes: Decoding the scanning control signal encoded with the scanning sequence number to determine the scanning sequence number; The scanning data packet is generated according to the scanning sequence number and the scanning data.
10. A data acquisition system, characterized in that: include: A first acquisition module, configured to acquire a scanning protocol for scanning the object to be detected, wherein the scanning protocol includes a scanning sequence set, and each scanning sequence in the scanning sequence set has a corresponding scanning sequence number; A scanning module, configured to use the scanning sequence set as a target scanning sequence set, scan the object to be measured according to the target scanning sequence set, and determine scanning data; The second acquisition module is used to acquire a scan data packet corresponding to each scan sequence in the target scan sequence set, wherein the scan data packet includes a scan sequence number and scan data corresponding to the scan sequence.