A camera photographing method for a blood analyzer
By using the movement direction and distance of the stage in the blood analyzer to calculate the target movement direction and distance of the camera, and automatically adjusting the camera focus, the problem of low photo efficiency caused by frequent focusing in the existing technology is solved, and an efficient and clear picture is achieved. image collection.
Patent Information
- Application Number
- CN202410823334.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-25
AI Technical Summary
Existing blood analyzers need to focus frequently when collecting clear images of multiple areas, resulting in a reduction in photography efficiency. Moreover, due to the uneven structure of the microscope imaging system and the uneven surface of the cell counting plate, observation is troublesome and difficult to obtain. Accurate image.
By controlling the stage to drive the blood sample carrier to move along the preset trajectory, the movement direction and distance of the stage are obtained. Combined with the calculation function, the target movement direction and distance of the camera are determined, and the target movement direction and distance are automatically moved from the first focus position to the second focus position. When taking pictures, ensure that the camera is linked to the stage to reduce focusing operations.
It effectively solves the problem of reduced photography efficiency caused by frequent focusing, improves photography efficiency, ensures image clarity, and reduces the complexity and frequent operations of focusing procedures.
Smart Images

Figure CN118400615B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of blood cell detection, and in particular to a camera photographing method of a blood analyzer. Background Art
[0002] With the development of science and technology, microscopic imaging systems have been applied in routine blood tests. During the image acquisition process, how to accurately and quickly acquire clear images of multiple areas on the cell counting plate is a problem that needs to be solved.
[0003] In the above application scenarios, since blood cells are microscopic objects, it is necessary to control the stage to drive the cell counting board to move multiple times during the observation process, so as to obtain images of multiple areas. Since the structural components of the microscope imaging system in each blood analyzer are not absolutely flat after leaving the factory, and there are certain gaps in the physical connection between the components, which causes fluctuations in the counting board. In addition, the surface of the counting board itself cannot be absolutely flat due to the limitations of the manufacturing process. This phenomenon will cause great trouble to the observation. Therefore, in order to ensure the acquisition of clear images in multiple areas, it is necessary to refocus each time the stage drives the cell counting board to move a photographing position before taking pictures. Failure to focus will result in reduced accuracy of photographing, and conventional focusing methods are more complicated, and frequent focusing will lead to reduced efficiency of photographing.
[0004] Therefore, providing a camera photography method for a blood analyzer that effectively solves the above problems is an urgent problem to be solved by those skilled in the art. Summary of the invention
[0005] The object of the present invention is to provide a camera photographing method for a blood analyzer, which has clear logic, is safe, effective, reliable and easy to operate, can effectively solve the problem of reduced photographing efficiency caused by frequent focusing, and improves photographing efficiency.
[0006] Based on the above objectives, the technical solution provided by the present invention is as follows:
[0007] A camera photographing method for a blood analyzer comprises the following steps:
[0008] Controlling the stage to drive the blood sample carrier to move along a preset trajectory from the first photographing position;
[0009] Acquire a movement direction and a movement distance of the stage at a second photographing position on the preset trajectory relative to the first photographing position;
[0010] According to the movement direction and movement distance of the stage and the calculation function, obtaining the target movement direction and target movement distance of the camera;
[0011] According to the target movement direction and the target movement distance of the camera, the camera is controlled to move from a first focus position to a second focus position along a camera movement path, and then a photo of the blood sample carrier is taken;
[0012] Among them, the first photographing position corresponds to the first focusing position, and the second photographing position corresponds to the second focusing position.
[0013] Preferably, obtaining the movement direction and movement distance of the camera according to the movement direction and movement distance of the stage and a calculation function comprises the following steps:
[0014] According to the moving direction of the stage, obtaining the inclination angle of the stage in the corresponding direction;
[0015] The target movement direction and target movement distance of the camera are calculated and acquired according to the tilt angle of the stage, the movement direction and movement distance of the stage and the calculation function.
[0016] Preferably, the calculation function is specifically:
[0017] ;
[0018] or,
[0019] ;
[0020] in, is the target movement distance of the camera from the first focus position to the second focus position, is the movement distance of the second photographing position relative to the first photographing position stage along the X-axis direction, is the inclination angle of the stage along the X-axis, is the movement distance of the second photographing position relative to the first photographing position stage along the Y-axis direction, is the inclination angle of the stage along the Y-axis.
[0021] Preferably, the calculation function is determined by the following steps:
[0022] Select n consecutive photographing positions on the preset trajectory;
[0023] Define the second photographing position as an adjacent photographing position after the first photographing position;
[0024] Obtaining the movement direction and movement distance of the stage of the m groups of the second photographing positions relative to the first photographing positions as the relative movement direction and relative movement distance of the stage of the m groups;
[0025] According to a preset focusing method, correspondingly obtaining m groups of movement directions and movement distances of the cameras at the second focus positions relative to the first focus positions as target movement directions and target movement distances of the m groups of cameras;
[0026] According to the sequence number of the photographing position, linear fitting is performed on the relative movement direction and relative movement distance of the m groups of the stage and the target movement direction and target movement distance of the m groups of the camera to obtain the calculation function;
[0027] Among them, m≥2, n≥3.
[0028] Preferably, the calculation function is specifically:
[0029] ;
[0030] in, a is the target motion distance of the camera, x is the relative movement distance of the stage in the X-axis relative movement direction or the Y-axis relative movement direction, b, c is a constant.
[0031] Preferably, it also includes:
[0032] Preset the camera's motion threshold;
[0033] Determine whether the target motion distance of the camera is less than the motion threshold of the camera;
[0034] If so, the first focus position is used as the second focus position.
[0035] Preferably, the calculation function is determined by the following steps:
[0036] Preset a reference point, and obtain the movement direction and movement distance of the stage at i photographing positions relative to the reference point;
[0037] According to a preset focusing method, a reference point focus position is obtained, and according to the movement direction and movement distance of the stage at each photographing position relative to the reference point, a target movement direction and target movement distance of the camera at each photographing position focus position relative to the reference point focus position are correspondingly obtained;
[0038] Performing linear fitting on the movement direction and movement distance of the stage at each photographing position relative to the reference point and the target movement direction and target movement distance of the camera at each photographing position focusing position relative to the reference point focusing position, so as to obtain the calculation function;
[0039] Among them, i≥2.
[0040] Preferably, the calculation function is specifically:
[0041] ;
[0042] in, a The target movement distance of the camera for each camera focus position relative to the reference point focus position, x The movement distance of the stage in the X-axis direction or Y-axis direction relative to the reference point for each photographing position, b, c is a constant.
[0043] Preferably, the step of controlling the camera to move from a first focus position to a second focus position along a camera movement path according to the movement direction and movement distance of the camera and then taking a picture of the blood sample carrier comprises the following steps:
[0044] Determining the first focusing position of the camera on the camera motion path according to a preset focusing method;
[0045] Acquire the second focus position according to the first focus position, the target movement direction and the target movement distance of the camera;
[0046] Determining whether the camera is located at the second focus position;
[0047] If so, in response to an image acquisition signal, the camera is controlled to take a picture of the blood sample carrier.
[0048] Preferably, after controlling the camera to move from a first focus position to a second focus position along a camera movement path according to the movement direction and movement distance of the camera, and taking a picture of the blood sample carrier, the method further includes the following steps:
[0049] Determine whether the acquired blood sample photos meet the preset quantity;
[0050] If not, the current photographing position is used as the first photographing position, and the object carrier is controlled to drive the blood sample carrier to continue to move along the preset trajectory.
[0051] The camera photographing method of the blood analyzer provided by the present invention is to control the stage to drive the blood sample carrier to move from a first photographing position along a preset trajectory, obtain the stage movement direction and movement distance of the second photographing position on the preset trajectory relative to the first photographing position, and then combine the calculation function to obtain the camera's target movement direction and target movement distance; according to the camera's target movement direction and target movement distance, control the camera to move from a first focusing position corresponding to the first photographing position along the camera movement path to a second focusing position corresponding to the second photographing position, and then photograph the blood sample carrier.
[0052] The present invention sets a calculation function to determine the movement direction and movement distance of the camera, controls the camera to move from the first focus position to the second focus position, and then takes pictures. The camera and the stage are linked during the entire photographing process. The movement of the camera is based on the tilt and movement of the stage. In this way, no matter where the stage moves to, the camera can automatically move to the focus position to ensure that the clarity of the photograph meets the requirements, and there is no need to run a special focus adjustment program during the photographing process. Compared with the existing technology, it can effectively solve the problem of reduced photographing efficiency caused by frequent focusing, and improve photographing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 A flow chart of a camera photographing method of a blood analyzer provided in an embodiment of the present invention;
[0055] Figure 2 A flowchart of step S3 provided in an embodiment of the present invention;
[0056] Figure 3 A flowchart for determining a second calculation function provided by an embodiment of the present invention;
[0057] Figure 4 A flowchart after obtaining the relative motion distance of the camera provided by an embodiment of the present invention;
[0058] Figure 5 A flowchart for determining a third calculation function provided by an embodiment of the present invention;
[0059] Figure 6 A flowchart of step S4 provided in an embodiment of the present invention;
[0060] Figure 7 The flowchart after step S4 provided in the embodiment of the present invention;
[0061] Figure 8 A schematic diagram of the structure of a blood analyzer provided in an embodiment of the present invention.
[0062] Figure numerals: 1 - camera; 2 - stage; 3 - blood sample carrier (cell counting plate). DETAILED DESCRIPTION
[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0064] The embodiments of the present invention are written in a progressive manner.
[0065] The embodiment of the present invention provides a camera photographing method for a blood analyzer, which at least solves the technical problems in the prior art that an additional optical distance measurement module is required or a large number of training samples are required or a long time is consumed, resulting in low focusing efficiency and accuracy.
[0066] like Figure 1 As shown, a camera photographing method of a blood analyzer comprises the following steps:
[0067] S1. Control the stage to drive the blood sample carrier to move along a preset trajectory from the first photographing position;
[0068] S2. Obtain the movement direction and movement distance of the second photographing position relative to the first photographing position on the preset trajectory;
[0069] S3. Obtain the target movement direction and target movement distance of the camera according to the movement direction and movement distance of the stage and the calculation function;
[0070] S4. According to the target movement direction and target movement distance of the camera, the camera is controlled to move from the first focus position along the camera movement path to the second focus position, and then a picture of the blood sample carrier is taken;
[0071] Among them, the first photographing position corresponds to the first focusing position, and the second photographing position corresponds to the second focusing position.
[0072] In step S1, the stage in the blood analyzer is controlled to drive the blood sample carrier (cell counting plate) to move from the first photographing position along a preset trajectory;
[0073] In this embodiment, the preset trajectory is a pre-set movement path of the stage moving a certain distance in the X-axis direction and the Y-axis direction, and can be specifically set to be: a "J" shape along the Y-axis direction, or a "J" shape along the X-axis; the first photographing position is any photographing position on the preset trajectory, that is, assuming that the preset trajectory is a "J" shape along the X-axis, a photographing position can be set at each inflection point, and the first photographing position can be a photographing position at any inflection point;
[0074] In step S2, the second photographing position is determined in the same manner, and the movement direction and movement distance of the second photographing position relative to the stage of the first photographing position are obtained.
[0075] In this embodiment, the second photographing position may be a photographing position at any other inflection point on the preset trajectory except the first photographing position. That is, assuming that the preset trajectory is a "Ji" shape along the X-axis, the inflection points are defined in sequence from the lower left corner to the upper right corner as , the first photographing position is , with the coordinates [ , ], then the second photographing position is any inflection point except this point from to . Correspondingly, the movement direction and movement distance of the stage of the second photographing position relative to the first photographing position can be measured and obtained. If the second photographing position is , with the coordinates [ , ], then the movement direction of the stage is to move upward along the Y-axis first and then move rightward along the X-axis direction, and the movement distance of the stage is the straight-line distance on the X-axis and the straight-line distance on the Y-axis ;
[0076] Similarly, it can be known that both the first photographing position and the second photographing position are dynamic. The first photographing position can be , or it can be (b ∈ n). The corresponding second photographing position can be any photographing position except the first photographing position. The movement direction and movement distance of the stage can be obtained according to the preset trajectory, the first photographing position, and the position of the second photographing position;
[0077] In step S3, according to the movement direction and movement distance of the stage and the calculation function, the corresponding camera target movement direction and target movement distance are obtained.
[0078] In step S4, according to the target movement direction and target movement distance, and the first focusing position corresponding to the first photographing position, after controlling the camera to move to the second focusing position, a photograph of the blood sample carrier is taken.
[0079] In this embodiment, since the blood sample carrier (cell counting plate) fluctuates during the movement of the stage, it is necessary to perform focusing before each photographing, that is, to control the camera to move to the corresponding focusing position on the camera movement path. Therefore, the corresponding focusing position of the camera is , the corresponding first focusing position is , the second focusing position is , then the movement direction of the camera is to move upward or downward along the Z-axis, and the movement distance of the camera is .
[0080] In summary, this method only needs to complete the first focus (moving from the first focus position to the second focus position), and each subsequent focus before taking pictures can be based on the calculation function, the movement direction and movement distance of the stage (which can be obtained according to the method of step S2), and the corresponding camera movement direction and movement distance can be obtained. The camera can be moved from the previous focus position to the current focus position according to the camera movement direction and movement distance. Obviously, the blood analyzer of the present invention can enter the photo-taking link after running the focus adjustment program once before taking pictures; in the photo-taking link, the camera and the stage are linked by the photo-taking method of the present invention. When the stage moves along the preset trajectory, the camera moves together according to the movement direction and movement distance of the stage, and can always be in the focus position at each photo-taking position to ensure that the clarity of the photo meets the requirements.
[0081] like Figure 2 As shown, preferably, step S3 includes the following steps:
[0082] A1. According to the moving direction of the stage, obtain the inclination angle of the stage in the corresponding direction;
[0083] A2. Calculate and obtain the target movement direction and target movement distance of the camera based on the tilt angle of the stage, the movement direction and movement distance of the stage and the calculation function.
[0084] Preferably, the calculation function is specifically:
[0085] ;
[0086] or,
[0087] ;
[0088] in, is the target movement distance of the camera from the first focus position to the second focus position, is the movement distance of the second photographing position relative to the first photographing position stage along the X-axis direction, is the inclination angle of the stage along the X-axis, is the movement distance of the second photographing position relative to the first photographing position stage along the Y-axis direction, is the inclination angle of the stage along the Y-axis.
[0089] In step A1 to step A2, before the blood analyzer leaves the factory, the stage will be leveled (relatively flat relative to the camera lens). At this time, the inclination angle of the stage is fixed and can be obtained through an angle measurement tool. When the movement direction of the stage is the X-axis or the Y-axis, the inclination angle corresponding to the X-axis direction or the Y-axis direction is obtained; the tangent value of the stage inclination angle is combined with the above-mentioned first calculation function and the movement distance of the second photographing position relative to the first photographing position stage along the X-axis or the Y-axis direction to calculate the movement direction and movement distance of the camera (i.e., the movement distance of the camera from the first focus position to the second focus position, and the movement direction of the camera can be determined by the positional relationship between the first focus position and the second focus position). The first calculation function is pre-stored in the blood analyzer and cannot be changed unless it is returned to the factory for reset.
[0090] like Figure 3 As shown, preferably, the calculation function is determined by the following steps:
[0091] B1. Select n consecutive photo positions on the preset trajectory;
[0092] B2. Define the second photo position as an adjacent photo position after the first photo position;
[0093] B3. Obtain the movement direction and movement distance of the m groups of the second photographing position relative to the first photographing position of the stage as the relative movement direction and relative movement distance of the m groups of the stage;
[0094] B4. According to the preset focusing method, the movement direction and movement distance of the m groups of cameras at the second focus position relative to the first focus position are obtained as the target movement direction and target movement distance of the m groups of cameras;
[0095] B5. linearly fit the relative motion directions and relative motion distances of the m groups of stages and the target motion directions and target motion distances of the m groups of cameras according to the sequence numbers of the photographing positions to obtain a calculation function;
[0096] Among them, m≥2, n≥3.
[0097] Preferably, the calculation function is specifically:
[0098] ;
[0099] in, a is the target motion distance of the camera, x is the relative movement distance of the stage in the X-axis relative movement direction or the Y-axis relative movement direction, b, c is a constant.
[0100] In step B1 to step B5, at least three or more consecutive photographing positions are selected on the preset trajectory, and constraint conditions are set: the second photographing position is the photographing position adjacent to the first photographing position; according to the method of step S2, the target movement direction and target movement distance of at least two groups of objective stages are calculated and obtained; according to the preset focusing method, the target movement direction and target movement distance of at least two groups of cameras are correspondingly obtained; according to the sequence number of the photographing position, the relative movement direction and relative movement distance of the two groups of objective stages and the relative movement direction and relative movement distance of the two groups of cameras are linearly fitted to obtain the above-mentioned second calculation function.
[0101] In this embodiment, select to There are 4 photo positions in total, forming a set corresponding to the first photo position and the second photo position respectively: , 】、
,
,
X axis to the right,
Y axis down,
Z axis up or down,
Z axis up or down,
[0102] Among them, the preset focusing method can be an active focusing method and a passive focusing method, and the active focusing method includes a laser ranging method and a defocus error measurement method;
[0103] Passive focusing is based on digital image processing, and a series of analyses are performed on the acquired images to complete focusing. Specifically, the following options are available: Calculate the camera's movement direction and distance according to the first calculation function, acquire multiple images during the camera's movement, and select the image with the highest definition to complete focusing (i.e., the method for completing the first focus in this case);
[0104] You can also choose to preset the camera's movement direction and set the camera's movement distance according to the camera's lens depth of field, acquire multiple images during the camera's movement, and select the image with the highest resolution to complete the focus.
[0105] like Figure 4 As shown, preferably, it also includes:
[0106] C1. Preset camera motion threshold;
[0107] C2. Determine whether the target motion distance of the camera is less than the camera's motion threshold;
[0108] C3. If yes, the first focus position is used as the second focus position.
[0109] In steps C1 to C3, due to the difference in the preset focus plane of each blood sample carrier (cell counting plate) after being placed in the instrument, and the difference in the flatness of the cell counting plate itself, as well as the influence of thermal expansion and contraction, the shooting time is long. When the above-mentioned influencing factors have little influence, that is, when the relative movement distance of the camera in the Z-axis direction is small, the second focus position can be used as the first focus position, thereby saving shooting time;
[0110] In this embodiment, the motion threshold of the camera is specifically set to half of the depth of field of the camera lens.
[0111] like Figure 5 As shown, preferably, the calculation function is determined by the following steps:
[0112] D1. Preset the reference point and obtain the movement direction and movement distance of the stage at i photo positions relative to the reference point;
[0113] D2. According to the preset focusing method, the reference point focus position is obtained, and according to the movement direction and movement distance of the stage of each photographing position relative to the reference point, the target movement direction and target movement distance of the camera of each photographing position focus position relative to the reference point focus position are obtained;
[0114] D3. Linearly fit the movement direction and movement distance of the stage at each photographing position relative to the reference point and the target movement direction and target movement distance of the camera at each photographing position relative to the reference point to obtain a calculation function;
[0115] Among them, i≥2.
[0116] Preferably, the calculation function is specifically:
[0117] ;
[0118] in, a The target movement distance of the camera for each camera focus position relative to the reference point focus position, x The movement distance of the stage in the X-axis direction or Y-axis direction relative to the reference point for each photographing position, b, c is a constant.
[0119] In step D1, the preset reference point may be any point in the stage motion coordinate system, or any photographing position on the preset trajectory; in accordance with the method of step S2, the stage motion direction and motion distance of each photographing position relative to the reference point are calculated and obtained (at least 2);
[0120] In steps D2 to D3, the reference point focus position is obtained according to the preset focusing method; then, according to the (at least 2) stage movement directions and movement distances of each photographing position relative to the reference point and the reference point focus position, the target movement directions and target movement distances of the camera of (at least 2) each photographing position focus positions (the focus positions corresponding to each photographing position are also obtained according to the preset focusing method) are obtained correspondingly; the stage movement directions and movement distances of (at least 2) each photographing position relative to the reference point and the target movement directions and target movement distances of the camera of (at least 2) each photographing position focus positions relative to the reference point are linearly fitted to obtain the third calculation function mentioned above;
[0121] In this embodiment, for the convenience of calculation, the photo position is selected As a reference point, let its coordinates be [0,0], and the corresponding reference point focus position (that is, the first focus position is the reference point focus position) is , and select the photo location , , according to step S2, calculate and obtain the stage movement direction and movement distance of each reference position relative to the reference point: [Y axis upward, 】 and
Y axis downward,
Z axis up or down,
[0122] like Figure 6 As shown, preferably, step S4 includes the following steps:
[0123] E1. Determine the first focus position of the camera on the camera motion path according to the preset focusing method;
[0124] E2. Obtaining a second focus position according to the first focus position, the target movement direction of the camera, and the target movement distance;
[0125] E3. Determine whether the camera is in the second focus position;
[0126] E4. If yes, in response to the image acquisition signal, control the camera to take a picture of the blood sample carrier.
[0127] In step E1 to step E4, the first focus position of the camera on the camera movement path is determined in the same manner according to the above-mentioned active and passive focus methods, and the camera is controlled to move from the first focus position to the second focus position according to the target movement direction and target movement distance of the camera; after the movement is completed, it is determined whether the camera is at the second focus position, and if so, an image acquisition signal is sent to the camera to control the camera to take a picture of the blood sample carrier (cell counting plate).
[0128] like Figure 7 As shown, preferably, after step S4, the following steps are also included:
[0129] F1. Determine whether the acquired blood sample photos meet the preset quantity;
[0130] F2. If not, the current photographing position is used as the first photographing position, and the stage is controlled to drive the blood sample carrier to continue to move along the preset trajectory.
[0131] In step F1 to step F2, after the photographing is completed, it is determined whether the acquired blood sample photographs meet the required number of blood cell experiments. If not, the current photographing position of the stage is used as the first photographing position, and the stage is controlled to drive the blood sample carrier to continue to move along the preset trajectory until a sufficient number of blood sample photographs are acquired.
[0132] like Figure 8 As shown, the main structure of the blood analyzer includes: a camera 1, a stage 2 and a blood sample carrier 3, and the camera and the stage are driven to move by a driving device (not shown in the figure).
[0133] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by program instructions and related hardware. The aforementioned program instructions can be stored in a computer-readable storage medium. When the program instructions are executed, the steps of the above method embodiment are executed; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a magnetic disk or an optical disk, and other media that can store program codes.
[0134] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "a kind" and / or "the" do not refer to the singular, but also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of clearly identified steps and elements, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements. The elements defined by the sentence "includes a..." do not exclude the existence of other identical elements in the process, method, commodity or device that includes the elements.
[0135] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0136] If a flow chart is used in the present application, the flow chart is used to illustrate the operations performed by the system according to the embodiment of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, each step can be processed in reverse order or simultaneously. At the same time, other operations can also be added to these processes, or a certain step or several steps of operations can be removed from these processes.
[0137] The above is a detailed introduction to a camera photography method of a blood analyzer provided by the present invention. The above description of the disclosed embodiments enables professionals and technicians in the field to implement or use the present invention. Various modifications to these embodiments will be obvious to professionals and technicians in the field, and the general principles defined in this article can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown in this article, but will conform to the widest scope consistent with the principles and novel features disclosed in this article.
Claims
1. A camera photography method for a blood analyzer, characterized in that: The steps include: Controlling the stage to drive the blood sample carrier to move along a preset trajectory from the first photographing position; Acquire a movement direction and a movement distance of the stage at a second photographing position on the preset trajectory relative to the first photographing position; According to the movement direction and movement distance of the stage and the calculation function, obtaining the target movement direction and target movement distance of the camera; According to the target movement direction and the target movement distance of the camera, the camera is controlled to move from a first focus position to a second focus position along a camera movement path, and then a photo of the blood sample carrier is taken; The preset trajectory is a pre-set movement path of the stage moving a certain distance in the X-axis direction and the Y-axis direction respectively; Wherein, the first photographing position corresponds to the first focusing position, and the second photographing position corresponds to the second focusing position; The calculation function is determined by the following steps: Select n consecutive photographing positions on the preset trajectory; Define the second photographing position as an adjacent photographing position after the first photographing position; Obtaining the movement direction and movement distance of the stage of the m groups of the second photographing positions relative to the first photographing positions as the relative movement direction and relative movement distance of the stage of the m groups; According to a preset focusing method, correspondingly obtaining m groups of movement directions and movement distances of the cameras at the second focus positions relative to the first focus positions as target movement directions and target movement distances of the m groups of cameras; According to the sequence number of the photographing position, linear fitting is performed on the relative movement direction and relative movement distance of the m groups of the stage and the target movement direction and target movement distance of the m groups of the camera to obtain the calculation function; Among them, m≥2, n≥3.
2. The camera photographing method of the blood analyzer according to claim 1, characterized in that: The calculation function is specifically: ; in, a is the target motion distance of the camera, x is the relative movement distance of the stage in the X-axis relative movement direction or the Y-axis relative movement direction, b, c is a constant.
3. The camera photographing method of the blood analyzer according to claim 2, characterized in that: Also includes: Preset the camera's motion threshold; Determine whether the target motion distance of the camera is less than the motion threshold of the camera; If so, the first focus position is used as the second focus position.
4. A camera photography method for a blood analyzer, characterized in that: The steps include: Controlling the stage to drive the blood sample carrier to move along a preset trajectory from the first photographing position; Acquire a movement direction and a movement distance of the stage at a second photographing position on the preset trajectory relative to the first photographing position; According to the movement direction and movement distance of the stage and the calculation function, obtaining the target movement direction and target movement distance of the camera; According to the target movement direction and the target movement distance of the camera, the camera is controlled to move from a first focus position to a second focus position along a camera movement path, and then a photo of the blood sample carrier is taken; Wherein, the first photographing position corresponds to the first focusing position, and the second photographing position corresponds to the second focusing position; The calculation function is determined by the following steps: Preset a reference point, and obtain the movement direction and movement distance of the stage in the X-axis direction or the Y-axis direction of i photographing positions relative to the reference point; According to a preset focusing method, a reference point focus position is obtained, and according to the movement direction and movement distance of the stage at each photographing position relative to the reference point, a target movement direction and target movement distance of the camera at each photographing position focus position relative to the reference point focus position are correspondingly obtained; Performing linear fitting on the movement direction and movement distance of the stage at each photographing position relative to the reference point and the target movement direction and target movement distance of the camera at each photographing position focusing position relative to the reference point focusing position, so as to obtain the calculation function; Among them, i≥2.
5. The camera photographing method of the blood analyzer according to claim 4, characterized in that: The calculation function is specifically: ; in, a The target movement distance of the camera for each camera focus position relative to the reference point focus position, x The movement distance of the stage in the X-axis direction or Y-axis direction relative to the reference point for each photographing position, b, c is a constant.
6. The camera photographing method of the blood analyzer according to any one of claims 1 or 4, characterized in that: The method of controlling the camera to move from a first focus position to a second focus position along a camera movement path according to a target movement direction and a target movement distance of the camera, and then taking a picture of the blood sample carrier comprises the following steps: Determining the first focusing position of the camera on the camera motion path according to a preset focusing method; Acquire the second focus position according to the first focus position, the target movement direction and the target movement distance of the camera; Determining whether the camera is located at the second focus position; If so, in response to an image acquisition signal, the camera is controlled to take a picture of the blood sample carrier.
7. The camera photographing method of a blood analyzer according to any one of claims 1 or 4, characterized in that: After controlling the camera to move from a first focus position to a second focus position along a camera movement path according to the target movement direction and target movement distance of the camera, and taking a picture of the blood sample carrier, the method further includes the following steps: Determine whether the acquired blood sample photos meet the preset quantity; If not, the current photographing position is used as the first photographing position, and the object carrier is controlled to drive the blood sample carrier to continue to move along the preset trajectory.
