Light spot positioning method, device, equipment and medium
By controlling the flickering of the lamp beads and forming a flicker heat map, the problem of low accuracy in spot positioning in the prior art in complex environments is solved, and high-precision spot positioning and stable and reliable measurement results are achieved.
Patent Information
- Application Number
- CN202510080519.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-20
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2045-01-20
AI Technical Summary
The existing spot positioning methods rely on static image analysis and are susceptible to background noise. Especially under complex lighting conditions, it is difficult to achieve high-precision spot positioning.
By controlling the lamp beads in the specified direction to flash in a predetermined mode, and continuously collect image sequences using the imaging device to form a scintillation heat map, achieving high-precision spot positioning. The method includes steps such as light bead flicker control, image acquisition, grayscale value subtraction and accumulation, binary segmentation and bright area recognition.
It significantly improves the anti-interference ability of the system, can effectively distinguish target spots from ambient light and other non-target light sources, ensures the stability and reliability of the measurement results, and improves positioning accuracy and image clarity.
Smart Images

Figure CN119540338B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical calibration, and in particular to a light spot positioning method, device, equipment and medium. Background Art
[0002] In recent years, with the development of vision correction technology, especially the widespread application of defocus lenses (such as progressive multifocal lenses, peripheral defocus control lenses, etc.) in the prevention and control of myopia in adolescents, the demand for axial length measurement has increased. Traditional axial length measurement methods usually only focus on the data at the center of the eye. However, in order to customize defocus lenses more accurately, it is necessary to measure the axial length of multiple positions of the eye except the center.
[0003] When performing multi-directional axial length measurement, the subject is required to look in different directions so that the instrument can capture the axial length data in all directions. The key to this process is to accurately locate the light spot at the current measurement direction. However, in actual operation, the interference of ambient stray light and the movement of the light spot caused by the rotation of the human eye make it very challenging to accurately identify and locate the light spot at the specified direction. These problems may not only lead to measurement failure, but also affect the accuracy of the final glasses fitting parameters, thereby affecting the correction effect.
[0004] Therefore, existing spot positioning methods often rely on static image analysis and are easily affected by background noise. Especially under complex lighting conditions, it is difficult to achieve high-precision spot positioning, which needs to be solved urgently. Summary of the invention
[0005] The main purpose of this application is to provide a light spot positioning method, device, equipment and medium, aiming to solve the technical problem that the existing light spot positioning method often relies on static image analysis and is easily affected by background noise, especially under complex lighting conditions, and it is difficult to achieve high-precision light spot positioning.
[0006] In order to achieve the above-mentioned invention object, the present application proposes a light spot positioning method, the method comprising:
[0007] Based on the first start instruction, the lamp beads at the specified position in the current image area are controlled to flash;
[0008] Based on the imaging device, a plurality of images of the current image area are collected in time sequence to form a light spot image sequence;
[0009] Subtracting the grayscale values of two adjacent spot images in the spot image sequence in chronological order, and taking the absolute values for accumulation to obtain a flicker heat map;
[0010] Binarizing and segmenting the flicker heat map to obtain a positioning map;
[0011] The bright area in the positioning map is identified to obtain the positioned light spot position.
[0012] Furthermore, the step of controlling the flashing of the lamp beads at the specified position in the current image area based on the first start instruction includes:
[0013] Identify the start-up sequence corresponding to the lamp beads in the specified position in the first start-up instruction;
[0014] According to the startup sequence, the lamp beads in the specified position are controlled to flash at a preset frequency for a specified time length or number of times.
[0015] Furthermore, the step of acquiring multiple images of the current image area in a time sequence based on the imaging device to form a spot image sequence includes:
[0016] Based on a preset acquisition frequency, the imaging device is started to continuously acquire images of the current image area, wherein the preset acquisition frequency is set based on the flashing frequency of the lamp beads at the specified position, so as to acquire different states of the lamp beads at the specified position being on or off;
[0017] When the preset conditions are met, the image acquisition of the current image area is stopped to obtain a spot image sequence.
[0018] Furthermore, the step of subtracting the grayscale values of two adjacent spot images in the spot image sequence in chronological order and accumulating the absolute values to obtain the flicker heat map includes:
[0019] Preprocessing the light spot images in the acquired light spot image sequence to obtain a preprocessed image;
[0020] Selecting the first and second images from the sequence of continuously acquired spot images as a starting image pair;
[0021] Based on the initial image pair, image pairs generated by adjacent spot images are determined in time sequence;
[0022] For each pair of images, calculating the grayscale value difference at corresponding positions of two images in the image pair pixel by pixel;
[0023] Based on the difference value of the gray value difference, taking the absolute value of the difference value to obtain the absolute gray value;
[0024] The absolute grayscale values are sequentially accumulated into a same accumulation matrix;
[0025] The accumulation matrix is updated according to each accumulation result until the update of the accumulation matrix corresponding to the last image is completed to form the flicker heat map.
[0026] Furthermore, the step of performing binary segmentation on the flicker heat map to obtain a positioning map includes:
[0027] Preprocessing the flicker heat map to obtain a preprocessed flicker heat map;
[0028] Performing pixel conversion on the preprocessed flicker heat map based on a preset threshold value to obtain a binarized preprocessed flicker heat map;
[0029] Morphological operations are applied to the binarized preprocessed scintillation heat map to obtain the localization map.
[0030] Furthermore, before the step of performing pixel conversion on the preprocessed flicker heat map based on a preset threshold to obtain a binarized preprocessed flicker heat map, the step includes:
[0031] Based on the synchronization mechanism, identifying the designated position of the lamp bead corresponding to the current pre-processed flicker heat image during image acquisition;
[0032] Based on the specified position, a preset coordinate range is determined to define a region of interest including the target lamp bead;
[0033] For the region of interest, a threshold of pixels inside the region of interest is calculated based on the use of an adaptive algorithm to obtain a preset threshold.
[0034] Furthermore, the step of identifying the bright area in the positioning map to obtain the positioned light spot position includes:
[0035] Identify and mark all connected domains in the positioning map to filter out pixel regions that are too small or whose shapes do not meet the preset size;
[0036] For each connected domain that meets the conditions, the coordinates of the centroid of the connected domain are calculated as the final spot position.
[0037] The second aspect of the present application provides a light spot positioning device, comprising:
[0038] A control module, used for controlling the flashing of the lamp beads at the specified position in the current image area based on the first start instruction;
[0039] A forming module, used for collecting multiple images of the current image area in a time sequence based on an imaging device to form a light spot image sequence;
[0040] An accumulation module, used for subtracting the grayscale values of two adjacent light spot images in the light spot image sequence in chronological order, and taking the absolute values for accumulation to obtain a flicker heat map;
[0041] A segmentation module, used for performing binary segmentation on the flicker heat map to obtain a positioning map;
[0042] The recognition module is used to recognize the bright area in the positioning map to obtain the positioned light spot position.
[0043] A third aspect of the present application provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
[0044] The fourth aspect of the present application also includes a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of any of the above methods when executed by a processor.
[0045] Beneficial effects: This application achieves high-precision positioning of the target light spot in a complex environment by controlling the lamp beads in the specified orientation to flash according to a predetermined pattern, and using an imaging device to continuously capture an image sequence to form a flashing heat map. This method significantly improves the anti-interference ability of the system, and can effectively distinguish the target light spot from ambient stray light and other non-target light sources, ensuring the stability and reliability of the measurement results. The gray value subtraction and accumulation and binary segmentation optimization processing not only improves the positioning accuracy, but also makes the final positioning map clearer and more specific. The entire process has a high degree of automation, simplifies the operating procedures, and reduces the errors caused by human factors. It is particularly suitable for application scenarios that require measuring multiple eye axis positions. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 This is a schematic flow chart of a light spot positioning method according to an embodiment of the present application;
[0047] Figure 2 This is a schematic block diagram of the structure of a light spot positioning device according to an embodiment of the present application;
[0048] Figure 3 This is a schematic diagram of the position of the lamp beads in one embodiment of the present application;
[0049] Figure 4 A schematic diagram of an original image according to an embodiment of the present application;
[0050] Figure 5 The original image, flickering heat map and positioning map of one embodiment of the present application show a schematic diagram of the positioning process;
[0051] Figure 6 A schematic block diagram of the structure of a computer device according to an embodiment of the present application.
[0052] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0054] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "above", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of features, integers, steps, operations, elements, modules, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, modules, components, and / or groups thereof. It should be understood that when an element is said to be "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any module and all combinations of one or more associated listed items.
[0055] Those skilled in the art will understand that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art in the field to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.
[0056] Reference Figure 1 The embodiment of the present invention provides a light spot positioning method, including steps S1-S5, specifically:
[0057] S1, controlling the flashing of the lamp beads at the specified position in the current image area based on the first start instruction;
[0058] S2, collecting multiple images of the current image area in a time sequence based on an imaging device to form a spot image sequence;
[0059] S3, subtracting the grayscale values of two adjacent spot images in the spot image sequence in chronological order, and adding up the absolute values to obtain a flicker heat map;
[0060] S4, performing binary segmentation on the flicker heat map to obtain a positioning map;
[0061] S5. Identify the bright area in the positioning map to obtain the positioned light spot position.
[0062] As described in step S1 above, the system controls the lamp beads at the specified position in the current image area to flash according to the received first start-up instruction. This process is the basis of the entire spot positioning method, ensuring that the subsequent steps can accurately identify and locate the target spot. The system first receives the first start-up instruction from the user or the automatic control system. This instruction contains information about which specific position lamp beads need to be activated. For example, Figure 3 As shown in the figure, when measuring the axial length of multiple parts of the human eye, it may be necessary to activate the lamp beads in the center, top, bottom, left, and right positions in sequence. The command information usually includes the position parameters of the lamp beads, the flashing frequency, the brightness level, and the possible duration or number of cycles.
[0063] The first start-up instruction can be a single control instruction of the user, that is, one instruction corresponds to the flashing of the lamp bead in a specified direction at a specified frequency. When operating only for a specified direction, the system will focus on controlling the only specified lamp bead in the area. For example, during the initial measurement, the user chooses to activate the lamp bead in the center of the eye first. At this time, the system will continuously turn the lamp bead on and off at a predetermined frequency, thereby forming an obvious flashing feature in a series of images acquired by the imaging device. This single lamp bead control method is relatively simple and direct, and is suitable for preliminary testing or calibration stages.
[0064] It can also be an automatic start-up instruction. That is, the instruction contains the start-up order and corresponding flashing frequency of all the lamp beads in the current image. Once the start-up instruction is recognized, the lamp beads in the specified position are started in sequence according to the flashing frequency and the corresponding number of flashes based on the start-up order. After completing the measurement of one position, the system will automatically switch to the lamp beads in the next specified position. Specifically, the system can activate the lamp beads in each position in turn according to a preset order (such as starting from the center, then up, down, left, and right in turn). Before each switch, the system will ensure that the measurement of the current position has been completed and the data has been properly saved. In order to ensure seamless connection during the switching process, the system will also monitor the status of the lamp beads and provide feedback to ensure that they work as expected.
[0065] Furthermore, the system also has the ability to adjust dynamically. For example, if it detects that the ambient lighting conditions have changed, or the subject's eye movement causes the light spot position to shift, the system can adjust the flashing mode or intensity of the lamp beads in real time to maintain the best measurement effect.
[0066] Step S1 precisely controls the flashing of the lamp beads in the specified direction, laying a solid foundation for the subsequent spot image acquisition and processing. Whether it is for a single light strip area or the automatic switching of multiple light strips, this step can ensure that the target light spot is still clearly visible against a complex background, thereby improving the accuracy and reliability of the overall measurement. This method not only simplifies the operation process, but also greatly improves the user experience, especially in application scenarios that require multi-directional axial length measurement.
[0067] As described in step S2 above, a series of images of the current image area are collected in time sequence by an imaging device, and finally a sequence of light spot images is formed. The collection in time sequence can be continuous collection, and its collection frequency corresponds to the different states of the light beads on and off. It can also be indirect collection in time sequence, for example, the collection is performed at a collection frequency higher than the flashing frequency of the lamp beads, and only the clearest image in the corresponding state of the current light beads on and off is collected based on the corresponding collection frequency to form a sequence of light spot images. Or the corresponding images are collected in time sequence according to other factors to ensure that the final sequence of light spot images contains the light spot images of different states of the current lamp beads. This process is the basis for ensuring that the subsequent processing steps can accurately capture the dynamic changes of the target light spot. Before starting the collection, ensure that the imaging device (such as a camera or a dedicated imaging sensor) has been correctly configured and is ready for continuous shooting. The continuous shooting can include images taken at different shooting frequencies, and the formation includes setting appropriate resolution, frame rate, exposure time and other parameters to ensure that high-quality image data is obtained. For different application scenarios, it may also be necessary to adjust the angle and focal length of the imaging device to ensure that it can cover the entire measurement area of interest. In order to capture the different states of the lamp beads, the system will synchronously control the working state of the imaging device. Specifically, while the lamp beads in each specified position flash according to the predetermined pattern, the imaging device will continue to capture images at the specified acquisition frequency to ensure that each shot can capture the different states of the lamp beads on and off, so that it is easier to distinguish the target light spot from other interfering light sources in subsequent processing, such as Figure 4 The original image (spot image) collected in the light-on state. According to the system settings or user instructions, the imaging device will start to continuously collect images of the current image area. At this time, the imaging device will continue to shoot at the set frame rate until a sufficient number of images are collected for analysis. For situations where multiple specified directions need to be measured continuously, the continuous acquisition process will be restarted each time the lamp beads are switched to ensure that the data for each direction is independent and complete. Each image taken should be saved immediately to a temporary storage device and transmitted to the subsequent processing module in real time as needed. This step is very important to ensure the integrity and timeliness of the image data. Especially when processing a large number of images, an efficient storage and transmission mechanism can significantly improve the response speed and processing efficiency of the system.
[0068] Furthermore, during the image acquisition process, the quality of the image obtained is monitored, and if blurry, overexposed or other quality issues are identified, the relevant parameters are automatically adjusted or the operator is prompted to take measures to ensure that high-quality images are acquired. For example, the exposure time and gain are automatically adjusted, or the user is reminded to adjust the ambient light conditions.
[0069] When the preset conditions are met (for example, a predetermined number of images has been reached, a certain amount of time has passed, or the entire flashing cycle has been completed), the imaging device will stop continuous acquisition and prepare to enter the next processing stage. These preset conditions can be flexibly set according to specific measurement requirements to ensure that sufficient valid data can be obtained each time. If an acquisition process includes measurements in multiple directions, the system assigns a unique identifier to each specified direction and the corresponding lamp bead to achieve effective management of the image sequence corresponding to each direction. Ensure that data from different directions can be correctly identified and processed in subsequent processing. In addition, timestamp information can be combined to ensure the order and correlation between image sequences in various directions.
[0070] In step S2, the imaging device continuously collects a series of images of the current image area to form a spot image sequence, which provides rich data support for subsequent processing. Whether it is for single-orientation or multi-orientation measurement, this step can ensure the stable acquisition of high-quality images, thereby improving the accuracy and reliability of overall spot positioning. This method not only simplifies the operation process, but also greatly improves the user experience, especially in application scenarios that require multi-orientation axial length measurement.
[0071] As described in step S3 above, the grayscale values of adjacent images in the spot image sequence are subtracted and the absolute values are accumulated to finally generate a flicker heat map. This process is intended to highlight those areas that change significantly over time, that is, the location of the target spot, thereby providing a clear basis for subsequent binary segmentation and spot positioning.
[0072] Select the first and second images from the sequence of continuously acquired spot images as the starting image pair. This is the first step to start the comparison, after which the remaining adjacent image pairs will be processed in chronological order. Make sure that adjacent frames are selected each time so that the subtlest changes can be captured. For each pair of adjacent images selected, calculate the grayscale value difference at the corresponding positions of the two images pixel by pixel. That is, for each pixel point (x, y), calculate I1(x, y)-I2(x, y), where I1 and I2 represent the grayscale values of the two adjacent images at that pixel point. This step helps to identify which areas have undergone brightness changes.
[0073] Take the absolute value of the grayscale value difference to eliminate the influence of negative numbers. This ensures that any brightness change is considered a positive change, regardless of whether it is brighter or darker. For example, if the grayscale value of a pixel in two adjacent images is 100 and 80 respectively, the absolute value after subtraction is 20. The absolute grayscale value differences between adjacent images are accumulated into a cumulative matrix. For the first calculation, this cumulative matrix is initialized to zero; for each subsequent pair of adjacent images, the results are added to the corresponding pixel positions in the cumulative matrix. In this way, over time, those areas that change frequently (i.e., flicker) will show higher values in the cumulative matrix. Then continue to select the next pair of adjacent images (i.e., the second and third, and so on), and repeat the above steps until all image pairs have been processed. Each calculation updates the value in the cumulative matrix, and finally forms a complete flicker heat map. In this process, the system will continue to track the changes of each pixel to ensure that no important dynamic information is missed.
[0074] Furthermore, you can choose to normalize the accumulation matrix for better visualization or comparison with other image features. Normalization can scale all pixel values to a specific range, such as 0 to 255. This step helps to increase the contrast of the heat map, making the target spot more obvious.
[0075] Considering that some pixels in the edge area of the image may not be able to find corresponding adjacent pixels for subtraction, the system needs to specially handle these boundary conditions, including using mirror filling, constant filling or ignoring boundary pixels to ensure that the entire image area can be effectively processed. At the same time, in order to adapt to target spots of different sizes, the above steps can be repeated at different scales. For example, by adjusting the image resolution or applying a multi-scale filter, it is ensured that the changes in spots of various sizes can be captured. This method is particularly suitable for complex scenes and improves the robustness and adaptability of the system. After the above series of operations, the final result is a flicker heat map. In this figure, the areas with higher brightness represent those locations that flicker frequently in the image sequence, while the darker areas represent relatively stable backgrounds or other non-target light sources. This heat map not only intuitively shows the changes in the target light spot, but also provides a solid data foundation for subsequent binary segmentation.
[0076] In summary, step S3 successfully generates a flicker heat map by subtracting the grayscale values of adjacent images in the spot image sequence in chronological order and accumulating the absolute values. This process effectively highlights the location of the target spot, enhances the system's anti-interference ability and positioning accuracy, and provides reliable support for subsequent spot positioning. This method not only simplifies the data processing process, but also greatly improves the accuracy and reliability of the overall measurement.
[0077] As described in the above step S4, by performing binarization processing on the generated flicker heat map, the information in the image is simplified into two states: the target area (usually represented by white or bright colors) and the background area (usually represented by black or dark colors).
[0078] The core of binarization is to choose an appropriate threshold to distinguish the target area from the background area. The choice of this threshold is crucial because it directly determines which pixels are considered to be part of the target spot and which are considered to be the background. You can choose to set the threshold manually, or you can use an automatic algorithm such as Otsu's method to dynamically determine the optimal threshold based on the image histogram. Once the threshold is determined, the next step is to compare each pixel in the flicker heat map with this threshold. If the grayscale value of a pixel is greater than or equal to the threshold, it is set to the target area (for example, assigned a value of 255, that is, white), otherwise it is set to the background area (for example, assigned a value of 0, that is, black). In this way, the original grayscale image is converted into a binary image with only black and white. Since there may be some random noise in the actual acquisition process, these noises may cause a small number of non-target areas to be mistakenly marked as target areas. In order to reduce this effect, additional pre-processing or post-processing steps can be introduced before or after binarization, such as using morphological operations (opening and closing operations), Gaussian blurring and other techniques to smooth the image and remove small isolated points or disconnected target areas. If the target light spot has different sizes, in some cases, the above binarization process can be repeated at multiple scales and the results can be combined to improve positioning accuracy. For example, a rough segmentation is first performed at a lower resolution, and then further refined at a higher resolution. After the above processing, the final result is a binary positioning map, in which the bright area clearly identifies the location of the target light spot. This map is not only intuitive and easy to understand, but can also be directly used for subsequent measurement or analysis. The bright area in the positioning map represents the location of the light spot to be located, while the dark area is the background or other non-target area.
[0079] Finally, to ensure that the effect of binary segmentation meets expectations, the positioning map can be compared with the original flicker heat map and other relevant information (such as the known target spot position) for verification. If deviations or omissions are found in the positioning, the process can be optimized by adjusting the threshold, improving the noise filtering method, etc., until a satisfactory positioning result is obtained.
[0080] In summary, step S4 successfully generated a positioning map by binary segmenting the flicker heat map, making the location of the target light spot clearer and more specific. This method not only simplifies data processing, but also improves the accuracy and reliability of light spot positioning, providing a solid foundation for subsequent axial length measurement.
[0081] As described in step S5 above, after completing the binary segmentation of the scintillation heat map and obtaining the positioning map, the next key step is to identify the bright area representing the target spot position in these positioning maps.
[0082] First, connected component analysis can be used to mark all independent bright areas on the localization map. A connected domain is a group of pixels in an image that have the same properties (such as brightness or color) and are connected to each other. By scanning the entire image, the system can automatically find and number each connected domain, thereby distinguishing them.
[0083] For each marked connected domain, its geometric features such as area, perimeter, shape, etc. are further extracted, and the candidate target light spot areas that meet the conditions are screened out according to the preset conditions. For example, the minimum / maximum area restrictions can be set to exclude those areas that obviously do not meet the light spot size; or which connected domains are more likely to be real light spots can be determined based on shape regularity. Once the possible target light spots are confirmed, the next step is to calculate the center of gravity or center of mass of each light spot as its representative position coordinates. This can usually be achieved by calculating the average value of all pixel coordinates in the connected domain through a simple mathematical formula. This step provides the most accurate location information of the light spot.
[0084] Since some artifacts caused by non-target factors may be introduced in actual operation, such as abnormal bright spots formed by ambient light reflection, they need to be identified and removed before the final determination of the light spot position. By comparing the data sets obtained at different time points, we can observe which "light spots" are fixed and which change over time, so as to distinguish between real light spots and artifacts.
[0085] If the positions of certain reference points are known in advance, the identified light spot can be matched to these reference points to verify the accuracy of the identification result and make necessary calibration adjustments. This helps to improve the overall positioning accuracy and ensure that the measured axial length data is reliable and valid.
[0086] Through the above steps, the S5 stage effectively identifies the bright areas representing the target light spots from the positioning map and accurately obtains their position information. This method not only improves the speed and efficiency of light spot positioning, but also enhances the robustness and adaptability of the system, and can ensure high measurement accuracy even in the face of complex and changeable actual application scenarios.
[0087] Based on steps S1-S5, this solution realizes high-precision positioning of the target light spot in a complex environment by controlling the lamp beads in the specified orientation to flash according to a predetermined pattern, and using an imaging device to continuously collect image sequences to form a flashing heat map. This method significantly improves the anti-interference ability of the system, can effectively distinguish the target light spot from ambient stray light and other non-target light sources, and ensures the stability and reliability of the measurement results. Through the gray value subtraction and accumulation and binary segmentation optimization processing, not only the positioning accuracy is improved, but also the final positioning map is clearer and clearer. The whole process has a high degree of automation, simplifies the operation process, and reduces the errors caused by human factors. It is particularly suitable for application scenarios that require measuring multiple axial positions, such as providing glasses parameters for customized defocus lenses for teenagers. In addition, this method reduces the need for re-operation due to failed or inaccurate measurements, shortens the overall measurement time, and improves the comfort of the subject. Its flexible application range and robustness also provide new solutions and technical support for other fields that require precise light spot positioning. In short, this method has made significant progress in many aspects and meets the needs of modern ophthalmic medical and optometry industries for multi-directional axial length measurement. Figure 5 As shown, the original image (corresponding to Figure 5 Original refers to the collected light spot image, where the original image contains multiple light spots of different brightness and positions, including Figure 4 The other light spots, stray light, and light spots to be located (light spots caused by the flickering of lamp beads) shown in the figure are the starting point of the entire processing flow. Figure 5 Hot in: Generate a flicker heat map through preprocessing steps (such as smoothing filtering, contrast adjustment, etc.). By subtracting the grayscale values of adjacent frame images and accumulating the absolute values, the position of the target light spot that flickers frequently will gradually be highlighted. At this time, through the operation of the flashing lamp beads, multiple light spots in the original image can be processed into a significant bright area after multiple acquisitions and processing comparisons. Positioning map (corresponding to Figure 5 Locate in ): Binarize the flicker heat map based on the preset threshold, and apply morphological operations (such as expansion and corrosion) to further optimize the image and eliminate noise. Furthermore, if there are other light spots in the flicker heat map, all connected domains can be identified and marked, and the areas with too small areas or shapes that do not meet the preset standards can be filtered out, and the centroid coordinates of the connected domains that meet the conditions can be calculated as the final light spot position. Finally, only one significant bright area is retained in the positioning map, representing the final determined light spot position. These pictures clearly show the entire process from original image acquisition to final light spot positioning, ensuring the accuracy and robustness of light spot recognition. Through this series of steps, the system can efficiently and accurately identify and locate the target light spot, providing reliable data support for subsequent applications.
[0088] In one embodiment, the step of controlling the flashing of the lamp beads at the specified position in the current image area based on the first start instruction includes:
[0089] S10, identifying the start-up sequence corresponding to the lamp beads in the specified position in the first start-up instruction;
[0090] S11. According to the startup sequence, control the lamp beads in the specified position to flash at a preset frequency for a specified time or number of times.
[0091] In this embodiment, the process of controlling the flashing of the lamp beads at the specified position in the current image area based on the first start instruction is a refinement of a specific step in the light spot positioning method. This process is intended to ensure that only the lamp beads at a specific position flash in a predetermined manner, thereby providing a clear and easily distinguishable signal source for subsequent light spot identification and positioning. The following is a brief explanation of this embodiment:
[0092] When the system receives the first start-up instruction, the first thing it does is to identify the instruction and parse out the specified position that needs to be activated. This step ensures that the system knows which lamp or lamps should be operated. Next, the system will determine how the lamps in these specified positions should be started in sequence according to pre-set rules. Different applications may require different start-up sequences, such as clockwise, counterclockwise, or random order. Finally, according to the start-up sequence determined above, the system will accurately control the lamp beads in each specified position to flash at a preset frequency and last for a certain duration or number of times. The selection of the preset frequency should take into account the reaction speed of the human eye and the ability of the imaging device to capture images to ensure that the generated flicker heat map can effectively distinguish the target light spot from other interference factors. At the same time, by limiting the duration or number of flickers, it is ensured that a sufficient amount of captured images are generated.
[0093] In summary, in this embodiment, by accurately parsing the start-up instructions and finely controlling the flashing behavior of the lamp beads, effective marking of the light spot in a specific orientation is achieved, laying a solid foundation for the subsequent accurate light spot positioning using the flash heat map technology. Such a design not only enhances the anti-interference ability of the system, but also improves the speed and accuracy of light spot positioning.
[0094] In one embodiment, the step of acquiring multiple images of the current image area in a time sequence based on an imaging device to form a spot image sequence includes:
[0095] S20, based on a preset acquisition frequency, starting the imaging device to continuously acquire images of the current image area, wherein the preset acquisition frequency is set based on the flashing frequency of the lamp beads at the specified position, so as to acquire different states of the lamp beads at the specified position being on and off;
[0096] S30. When the preset conditions are met, stop collecting images of the current image area to obtain a light spot image sequence.
[0097] In this embodiment, when the system starts image acquisition, it controls the imaging device to continuously shoot the current image area according to the preset acquisition frequency. This acquisition frequency is deliberately set to synchronize with the flashing frequency of the lamp beads in the specified position, in order to ensure that each shot can accurately capture the image of the lamp beads in two different states, on and off. This synchronization mechanism is essential for generating clear flicker heat maps, because it can effectively highlight the location of the target light spot while reducing the influence of ambient stray light and other interference factors.
[0098] Next, the system will continue to monitor the image acquisition process and stop the acquisition after the preset conditions are met. These preset conditions may include reaching a predetermined number of images, passing a certain time period, or completing the entire lamp bead flashing cycle. Once these conditions are met, the imaging device will stop working, and a series of complete spot images have been collected at this time, forming a so-called spot image sequence. This sequence contains the brightness change information of the lamp beads at various time points, providing a solid data basis for subsequent processing steps. In this way, this embodiment not only ensures the quality and efficiency of image acquisition, but also enhances the degree of automation of the system and reduces the need for human intervention. The synchronous acquisition frequency design enables the system to maintain high-precision spot positioning capabilities under complex backgrounds, thereby improving the reliability and accuracy of the overall measurement. In summary, in this embodiment, by accurately controlling the acquisition frequency of the imaging device and stopping the acquisition according to the preset conditions, the effective capture of the on and off state of the lamp beads in the specified orientation is achieved, the quality of the spot image sequence is ensured, and the subsequent spot positioning processing is guaranteed. This method not only simplifies the operation process, but also greatly improves the accuracy and reliability of spot positioning.
[0099] In one embodiment, the step of subtracting the grayscale values of two adjacent spot images in the spot image sequence in chronological order and accumulating the absolute values to obtain the flicker heat map includes:
[0100] S30, preprocessing the spot images in the acquired spot image sequence to obtain a preprocessed image;
[0101] S31, selecting a first image and a second image from a sequence of continuously acquired spot images as a starting image pair;
[0102] S32, determining image pairs generated by adjacent spot images in chronological order based on the initial image pair;
[0103] S33, for each pair of images, calculating the grayscale value difference at corresponding positions of two images in the image pair pixel by pixel;
[0104] S34, taking the absolute value of the difference value based on the gray value difference to obtain an absolute gray value;
[0105] S35, accumulating the absolute gray values sequentially into the same accumulation matrix;
[0106] S36, updating the accumulation matrix according to each accumulation result until the update of the accumulation matrix corresponding to the last image is completed to form the flicker heat map.
[0107] In this embodiment, the grayscale values of two adjacent spot images in the spot image sequence are subtracted in chronological order, and the absolute values are taken for accumulation, and the process of finally obtaining the flicker heat map includes the following steps: First, each image in the acquired spot image sequence is preprocessed (such as noise removal and contrast enhancement) to improve the effect of subsequent processing. Then, the first and second images are selected from the continuously acquired spot image sequence as the starting image pair, and the image pairs generated by the adjacent spot images are determined in chronological order. For each pair of images, the grayscale value difference at the corresponding position of the two images is calculated pixel by pixel, and then the absolute value of these difference values is taken to obtain the absolute grayscale value. Next, these absolute grayscale values are sequentially accumulated into the same accumulation matrix, and the accumulation matrix is updated according to each accumulation result until the update of the accumulation matrix corresponding to the last image pair is completed, thereby forming the final flicker heat map. This method not only effectively highlights the position change of the target spot, but also enhances the anti-interference ability and positioning accuracy of the system, ensuring that the target spot can be clearly separated even in a complex background, and providing a reliable data basis for subsequent binary segmentation and spot positioning.
[0108] In one embodiment, the step of performing binary segmentation on the scintillation heat map to obtain a positioning map includes:
[0109] S40, preprocessing the flicker heat map to obtain a preprocessed flicker heat map;
[0110] S41, performing pixel conversion on the pre-processed flicker heat map based on a preset threshold value to obtain a binarized pre-processed flicker heat map;
[0111] S42, applying morphological operations to the binarized preprocessed scintillation heat map to obtain the positioning map.
[0112] In this embodiment, after the spot image sequence processing is completed and the flicker heat map is formed, in order to more accurately locate the position of the target spot, the flicker heat map needs to be further binarized and segmented. First, the flicker heat map is preprocessed. This step may include but is not limited to smoothing filtering to reduce noise, adjust contrast and other operations, the purpose of which is to optimize the image quality for subsequent processing. Then, based on a pre-set threshold (the selection of the threshold can be determined according to the specific experimental environment and requirements), each pixel in the preprocessed flicker heat map is converted into a binary state (usually black and white), that is, if the grayscale value of a pixel is higher than or equal to the threshold, it is set to white (or black), otherwise it is set to black (or white). This step effectively simplifies the image information and makes the target area more obvious. Finally, in order to eliminate possible small noise points or areas with poor connection, morphological operations such as expansion and corrosion are applied to the binarized image to obtain a clearer and more coherent target positioning map. Through this series of steps, the positioning map finally generated can accurately reflect the position of the target spot, providing a solid foundation for subsequent analysis.
[0113] In one embodiment, before the step of performing pixel conversion on the preprocessed flicker heat map based on a preset threshold to obtain a binarized preprocessed flicker heat map, the method includes:
[0114] S50, based on the synchronization mechanism, identifying the designated position corresponding to the lamp bead of the current pre-processed flicker heat image during image acquisition;
[0115] S51, based on the specified orientation, determining a preset coordinate range, and defining an area of interest including a target light strip;
[0116] S52: For the region of interest, a threshold of pixels inside the region of interest is calculated using an adaptive algorithm to obtain a preset threshold.
[0117] In this embodiment, first, a synchronization mechanism is used to ensure the spatiotemporal consistency between the collected pre-processed flicker heat map and the actual light source (such as lamp beads). This means that through some time or signal synchronization method, it is possible to accurately identify which part of the image corresponds to the lamp bead that is lit at a specific moment and its specified position. This step ensures the accuracy of subsequent analysis, because the light source can only be accurately located when the image data and the timing information are correctly matched. Once the specified position of the lamp bead is confirmed, a pre-set coordinate range is determined based on this position information to define a region of interest (ROI) containing the target light strip. The selection of ROI is crucial because it limits the part of the image we are concerned about, thereby reducing unnecessary calculations and improving the efficiency and accuracy of subsequent processing. The area should surround the expected target light strip as closely as possible, while avoiding taking background noise or other irrelevant objects into consideration. Only the area of interest is processed, reducing the computational burden brought by global analysis, tightly surrounding the expected target light strip, avoiding background noise or other irrelevant objects from being taken into account, and improving positioning accuracy. Existing technologies usually process the entire image uniformly, which may lead to a waste of computing resources and be easily interfered by background. This solution focuses on key areas through ROI selection, improving processing efficiency and anti-interference ability.
[0118] For the delineated area of interest, an adaptive algorithm is used to dynamically calculate the threshold of the internal pixel points. This is because factors such as lighting conditions and background brightness may vary in different areas, and a fixed global threshold may not be applicable to all situations. The adaptive algorithm can automatically adjust the threshold according to local features, so that the binarization process is more in line with the actual situation, thereby improving the quality of the final positioning map. This method can effectively cope with complex and changeable environmental factors and enhance the robustness and adaptability of the system. The existing technology usually uses a fixed global threshold, which is difficult to adapt to the lighting differences in different areas and is prone to misjudgment. This solution uses an adaptive threshold method to link the area corresponding to the lamp beads in the current image. Through the synchronization mechanism and ROI selection, it ensures that each analysis is targeted at the correct image area, greatly improving the accuracy of spot positioning, limiting the processing range, reducing computing resource consumption, improving the system response speed and processing efficiency, and providing more refined and reliable segmentation results.
[0119] In summary, this embodiment not only makes innovative improvements in technical details, but also demonstrates significant advantages in practical applications. By introducing synchronization mechanism, ROI selection and adaptive threshold method, this solution effectively solves the problems existing in the prior art and provides a more accurate, efficient and reliable solution for spot positioning.
[0120] In one embodiment, the step of identifying the bright area in the positioning map to obtain the positioned light spot position includes:
[0121] S60, identifying and marking all connected domains in the positioning map to filter out pixel regions that are too small or whose shapes do not meet a preset size;
[0122] S61 . For each connected domain that meets the conditions, calculate the centroid coordinates of the connected domain as the final light spot position.
[0123] In this embodiment, first, the system will identify and mark all connected domains in the positioning map. A connected domain refers to an area in the image composed of adjacent white pixels, which represents possible target light spots. Through this step, different bright areas can be separated. Next, these connected domains are screened to filter out pixel areas that are too small or whose shapes do not meet the preset standards. For example, the minimum / maximum area limit and specific shape rules are set to exclude small areas or abnormal shapes that are obviously not target light spots. For each connected domain that meets the conditions, the system will calculate its centroid coordinates as the final light spot position. The centroid coordinates can be determined by simply calculating the average value of all pixel coordinates in the connected domain. By identifying and marking all connected domains and screening according to preset conditions, it is ensured that only the real target light spot is retained, the accuracy of positioning is improved, small areas or abnormal shapes that do not meet the conditions can be removed, the influence of background noise and other interference factors is reduced, and the possibility of misjudgment is reduced. The whole process has a high degree of automation, simplifies the operation process, reduces the need for human intervention, and improves the overall measurement efficiency.
[0124] Reference Figure 2 , is a structural block diagram of a light spot positioning device in an embodiment of the present application, the device includes:
[0125] The control module 100 is used to control the flashing of the lamp beads at the specified position in the current image area based on the first start instruction;
[0126] A forming module 200 is used to collect multiple images of the current image area in a time sequence based on an imaging device to form a spot image sequence;
[0127] An accumulation module 300 is used to perform grayscale subtraction on two adjacent light spot images in the light spot image sequence in chronological order, and to accumulate the absolute values to obtain a flicker heat map;
[0128] The segmentation module 400 is used to perform binary segmentation on the flicker heat map to obtain a positioning map;
[0129] The identification module 500 is used to identify the bright area in the positioning map to obtain the positioned light spot position.
[0130] Furthermore, the control module 100 further includes an identification unit, and the identification unit is used to:
[0131] Identify the start-up sequence corresponding to the lamp beads in the specified position in the first start-up instruction;
[0132] According to the startup sequence, the lamp beads in the specified position are controlled to flash at a preset frequency for a specified time length or number of times.
[0133] Furthermore, the forming module 200 further includes a collecting unit, and the collecting unit is used to:
[0134] Based on a preset acquisition frequency, the imaging device is started to continuously acquire images of the current image area, wherein the preset acquisition frequency is set based on the flashing frequency of the lamp beads at the specified position, so as to acquire different states of the lamp beads at the specified position being on or off;
[0135] When the preset conditions are met, the image acquisition of the current image area is stopped to obtain a spot image sequence.
[0136] Furthermore, the accumulation module 300 further includes an image pair calculation unit, and the image pair calculation unit is used to:
[0137] Preprocessing the light spot images in the acquired light spot image sequence to obtain a preprocessed image;
[0138] Selecting the first and second images from the sequence of continuously acquired spot images as a starting image pair;
[0139] Based on the initial image pair, image pairs generated by adjacent spot images are determined in time sequence;
[0140] For each pair of images, calculating the grayscale value difference at corresponding positions of two images in the image pair pixel by pixel;
[0141] Based on the difference value of the gray value difference, taking the absolute value of the difference value to obtain the absolute gray value;
[0142] The absolute grayscale values are sequentially accumulated into a same accumulation matrix;
[0143] The accumulation matrix is updated according to each accumulation result until the update of the accumulation matrix corresponding to the last image is completed to form the flicker heat map.
[0144] Furthermore, the segmentation module 400 further includes a conversion unit, and the conversion unit is used to:
[0145] Preprocessing the flicker heat map to obtain a preprocessed flicker heat map;
[0146] Performing pixel conversion on the preprocessed flicker heat map based on a preset threshold value to obtain a binarized preprocessed flicker heat map;
[0147] Morphological operations are applied to the binarized preprocessed scintillation heat map to obtain the localization map.
[0148] Furthermore, the conversion unit further includes an interest identification subunit, and the interest identification subunit is used to:
[0149] Based on the synchronization mechanism, identifying the designated position of the lamp bead corresponding to the current pre-processed flicker heat image during image acquisition;
[0150] Based on the specified orientation, a preset coordinate range is determined to define a region of interest including a target light strip;
[0151] For the region of interest, a threshold of pixels inside the region of interest is calculated based on the use of an adaptive algorithm to obtain a preset threshold.
[0152] Furthermore, the recognition module 500 further includes a bright area recognition unit, and the bright area recognition unit is used to:
[0153] Identify and mark all connected domains in the positioning map to filter out pixel regions that are too small or whose shapes do not meet the preset size;
[0154] For each connected domain that meets the conditions, the coordinates of the centroid of the connected domain are calculated as the final spot position.
[0155] Reference Figure 6 In the embodiment of the present application, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 6As shown. The computer device includes a processor, an internal memory, a storage medium (non-volatile storage medium) and a network interface connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes the above-mentioned storage medium (non-volatile storage medium) and the internal memory. The storage medium (non-volatile storage medium) stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the storage medium (non-volatile storage medium). The database of the computer device is used to store usage data in a process of a light spot positioning method, etc. The network interface of the computer device is used to communicate with an external terminal through a network connection. Furthermore, the above-mentioned computer device can also be provided with an input device and a display screen, etc. When the above computer program is executed by the processor, a method for locating a light spot is implemented, including the following steps: based on the first startup instruction, the light beads in the specified position in the current image area are controlled to flash; based on the imaging device, multiple images of the current image area are collected in time sequence to form a light spot image sequence; grayscale values of two adjacent light spot images in the light spot image sequence are subtracted in time order, and the absolute values are accumulated to obtain a flash heat map; the flash heat map is binarized to obtain a positioning map; the bright area in the positioning map is identified to obtain the located light spot position. Those skilled in the art can understand that Figure 6 The structure shown in is merely a block diagram of a portion of the structure related to the present application solution and does not constitute a limitation on the computer device to which the present application solution is applied.
[0156] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, a method for locating a light spot is implemented, including the following steps: based on a first startup instruction, controlling the flashing of a lamp bead at a specified position in the current image area; based on an imaging device, collecting multiple images of the current image area in a time sequence to form a light spot image sequence; subtracting the grayscale values of two adjacent light spot images in the light spot image sequence in chronological order, and taking the absolute values for accumulation to obtain a flash heat map; performing binary segmentation on the flash heat map to obtain a positioning map; identifying the bright area in the positioning map to obtain the located light spot position. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.
[0157] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0158] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, device, article or method including the element.
[0159] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A light spot positioning method, characterized in that: The method comprises: Based on the first start instruction, the lamp beads at the specified position in the current image area are controlled to flash; Based on the imaging device, a plurality of images of the current image area are collected in time sequence to form a light spot image sequence; Subtracting the grayscale values of two adjacent spot images in the spot image sequence in chronological order, and taking the absolute values for accumulation to obtain a flicker heat map; Binarizing and segmenting the flicker heat map to obtain a positioning map; Identify the bright area in the positioning map to obtain the positioned light spot position; The step of performing binary segmentation on the flicker heat map to obtain a positioning map comprises: Preprocessing the flicker heat map to obtain a preprocessed flicker heat map; Performing pixel conversion on the preprocessed flicker heat map based on a preset threshold value to obtain a binarized preprocessed flicker heat map; Applying morphological operations to the binarized preprocessed flicker heat map to obtain the localization map; Before the step of performing pixel conversion on the preprocessed flicker heat map based on a preset threshold to obtain a binarized preprocessed flicker heat map, the method includes: Based on the synchronization mechanism, identifying the designated position of the lamp bead corresponding to the current pre-processed flicker heat image during image acquisition; Based on the specified position, a preset coordinate range is determined to define a region of interest including the target lamp bead; For the region of interest, a threshold of pixels inside the region of interest is calculated based on the use of an adaptive algorithm to obtain a preset threshold.
2. The spot positioning method according to claim 1, characterized in that: The step of controlling the flashing of the lamp beads at the specified position in the current image area based on the first start instruction includes: Identify the start-up sequence corresponding to the lamp beads in the specified position in the first start-up instruction; According to the startup sequence, the lamp beads in the specified position are controlled to flash at a preset frequency for a specified time length or number of times.
3. The spot positioning method according to claim 1, characterized in that: The step of acquiring multiple images of the current image area in a time sequence based on an imaging device to form a spot image sequence includes: Based on a preset acquisition frequency, the imaging device is started to continuously acquire images of the current image area, wherein the preset acquisition frequency is set based on the flashing frequency of the lamp beads at the specified position, so as to acquire different states of the lamp beads at the specified position being on or off; When the preset conditions are met, the image acquisition of the current image area is stopped to obtain a spot image sequence.
4. The spot positioning method according to claim 1, characterized in that: The step of subtracting the grayscale values of two adjacent spot images in the spot image sequence in chronological order and accumulating the absolute values to obtain the flicker heat map includes: Preprocessing the light spot images in the acquired light spot image sequence to obtain a preprocessed image; Selecting the first and second images from the sequence of continuously acquired spot images as a starting image pair; Based on the initial image pair, image pairs generated by adjacent spot images are determined in time sequence; For each pair of images, calculating the grayscale value difference at corresponding positions of two images in the image pair pixel by pixel; Based on the difference value of the gray value difference, taking the absolute value of the difference value to obtain the absolute gray value; The absolute grayscale values are sequentially accumulated into a same accumulation matrix; The accumulation matrix is updated according to each accumulation result until the update of the accumulation matrix corresponding to the last image is completed to form the flicker heat map.
5. The spot positioning method according to claim 1, characterized in that: The step of identifying the bright area in the positioning map to obtain the positioned light spot position comprises: Identify and mark all connected domains in the positioning map to filter out pixel regions that are too small or whose shapes do not meet the preset size; For each connected domain that meets the conditions, the centroid coordinates of the connected domain are calculated as the final spot position.
6. A spot positioning device, used to execute the method according to any one of claims 1 to 5, characterized in that: include: A control module, used for controlling the flashing of the lamp beads at the specified position in the current image area based on the first start instruction; A forming module, used for collecting multiple images of the current image area in a time sequence based on an imaging device to form a light spot image sequence; An accumulation module, used for subtracting the grayscale values of two adjacent light spot images in the light spot image sequence in chronological order, and taking the absolute values for accumulation to obtain a flicker heat map; A segmentation module, used for performing binary segmentation on the flicker heat map to obtain a positioning map; The recognition module is used to recognize the bright area in the positioning map to obtain the positioned light spot position.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Flicker target detection system and method based on motion camera in specific environment
CN110909719A
Infrared target lamp recognition method based on complex background
CN112883986A