Method for triggering shooting based on image change and high-speed camera device
By detecting the number of identification blocks of high-speed camera images and storing image block feature values using FPGA registers, the problem of difficulty in efficiently capturing critical moments in complex scenes in the prior art is solved, and high-precision shooting operations and efficient lens capture efficiency are achieved.
Patent Information
- Application Number
- CN202411701714.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-02-25
AI Technical Summary
The prior art is difficult to efficiently capture critical moments in high-speed cameras in complex scenarios, especially in high-speed cameras with tens of thousands of frames per second. The existing simple algorithm based on changes in overall image brightness cannot meet the accuracy requirements.
By detecting the number of identification blocks of the current image, a high-speed camera shooting command will be triggered if the capture threshold is exceeded. The method includes dividing the image to be photographed into a plurality of image blocks, storing the sum of pixel values, maximum value and minimum value of each image block using the FPGA register space, constructing a space vector coordinate system, and calculating the image block space vector size to mark the identification block.
It realizes high-precision shooting operations, can effectively capture critical moments, improves the lens capture efficiency of high-speed cameras, and is suitable for shooting as much critical information as possible under the use of smaller memory conditions.
Smart Images

Figure CN119520965A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of image processing, and in particular relates to a method for triggering shooting based on image changes and a high-speed camera device. Background Art
[0002] High-speed cameras have a high frame rate, usually ranging from thousands to tens of thousands of frames per second. The critical moment is fleeting. In general scenarios, an external precise trigger signal is required to trigger the camera, or the experimenter needs to make precise predictions and react on the spot, so that as much key information as possible can be captured under the condition of using a small memory. Therefore, an intelligent automatic trigger function is very necessary.
[0003] In the existing conventional technology, it mainly uses triggering based on the overall brightness change of the image, and detects the instantaneous brightness contrast difference of the picture as a significant picture capture trigger point. For example, it can be applied to scenes such as sudden sparks, overexposure of the picture, or sudden occlusion against a brighter background. However, the simple algorithm based on the overall brightness change of the image, although it reacts quickly, is limited by the single background and cannot analyze complex scene designs. Once a scene with more complex content appears, the simple algorithm cannot meet the accuracy requirements.
[0004] For low-speed video streams, it is not difficult to identify picture changes through image processing, but for high-speed cameras with tens of thousands of frames per second, it is necessary to calculate and judge each frame in real time, which requires a very efficient algorithm. In view of the shortcomings of the existing technology, it is urgent to design a method for triggering shooting based on image changes and a high-speed camera device to solve the above technical problems. Summary of the invention
[0005] In order to solve the above-mentioned deficiencies in the prior art, the purpose of the present invention is to overcome the existing deficiencies and provide a method for triggering shooting based on image changes, comprising the following steps:
[0006] Detect the number of identification blocks in the current image:
[0007] If the number of identification blocks detected in the current image exceeds the capture threshold, a high-speed camera shooting instruction is triggered;
[0008] If it is detected that the number of identification blocks of the current image does not exceed the capture threshold, the current image is set as the previous image and a new captured image is obtained.
[0009] As a further optimization of the above solution, before acquiring the captured image, the following is also included:
[0010] Designing a constituent unit of any image to be captured as an image block, wherein the image to be captured is composed of N M*M pixel units;
[0011] Open up the FPGA register space of the high-speed camera, mark the Sum register, Sum_New register, Max register, Max_New register, Min register, Min_New register, including Sum0, Sum1, ...Sum N ,Sum_new0,Sum_new1,…Sum_new N , Max0, Max1, …Max N , Max_new0, Max_new1,…Max_new N 、Min0、Min1、…Min N , Min_new0, Min_new1,…Min_new N A total of 6N registers;
[0012] The 6N registers are respectively identified as the sum of the pixel values of the N image blocks of the previous image, the sum of the pixel values of the N image blocks of the current image, the maximum value of the pixels of the N image blocks of the previous image, the maximum value of the pixels of the N image blocks of the current image, the minimum value of the pixels of the N image blocks of the previous image, and the minimum value of the pixels of the N image blocks of the current image.
[0013] As a further optimization of the above solution, the detection method of the identification block includes the following:
[0014] Acquire any image to be captured;
[0015] Based on each image block of any image to be captured, the Sum_new, Max_new, and Min_new registers of the high-speed camera are initialized to 0, and the FPGA receives image data line by line;
[0016] Based on the pixel coordinates of the image to be captured, update the sum of the pixel values of the image block to Sum_new in real time, obtain the maximum and minimum values of the pixel values of the current image block, and write them into the Max_new and Min_new registers accordingly; repeat the above steps to complete the register data writing of a total of 3N image blocks of any image to be captured;
[0017] Collect the previous image of any image to be captured, and obtain register data of a total of 3N image blocks of the previous image;
[0018] Based on the values stored in the Sum, Max, Min registers and the Sum_new, Max_new, Min_new registers, a spatial vector coordinate system is constructed, and the values stored in the Sum, Max, Min registers and the Sum_new, Max_new, Min_new registers of each image block of the image to be captured are used as coordinate values of the coordinate system to calculate the size of the spatial vector;
[0019] If the calculated image block space vector size exceeds the identification threshold, the image block is recorded as an identification block; otherwise, the image block is not identified.
[0020] As a further optimization of the above solution, the method for calculating the size of the space vector includes the following:
[0021] The coordinate values of Sum, Max, and Min registers in the coordinate system are recorded as (a, b, b), and the coordinate values of Sum_new, Max_new, and Min_new registers in the coordinate system are recorded as (x, y, z);
[0022] The vector used to represent the change of the image block
[0023] As a further optimization of the above solution, the method further includes:
[0024] The direction in which the 3N image block data are written into the register is from the left end to the right end of the image to be captured and from top to bottom row by row.
[0025] The present invention also discloses a high-speed camera device for triggering shooting based on image changes, comprising:
[0026] An image acquisition module is used to start shooting of a high-speed camera device;
[0027] An image storage module, used for storing the shooting data content of the high-speed camera device;
[0028] An image analysis module, used for storing corresponding pixel values based on images collected by the high-speed camera device;
[0029] The camera capture module is used to detect the number of identification blocks in the current image:
[0030] If the number of identification blocks detected in the current image exceeds the capture threshold, a high-speed camera shooting instruction is triggered;
[0031] If it is detected that the number of identification blocks of the current image does not exceed the capture threshold, the current image is set as the previous image and a new captured image is obtained.
[0032] As a further optimization of the above solution, the image parsing module includes the following:
[0033] Designing a constituent unit of any image to be captured as an image block, wherein the image to be captured is composed of N M*M pixel units;
[0034] Open up the FPGA register space of the high-speed camera, mark the Sum register, Sum_New register, Max register, Max_New register, Min register, Min_New register, including Sum0, Sum1, ...Sum N ,Sum_new0,Sum_new1,…Sum_new N , Max0, Max1, …Max N , Max_new0, Max_new1,…Max_new N 、Min0、Min1、…Min N , Min_new0, Min_new1,…Min_new N A total of 6N registers;
[0035] The 6N registers are respectively identified as the sum of the pixel values of the N image blocks of the previous image, the sum of the pixel values of the N image blocks of the current image, the maximum value of the pixels of the N image blocks of the previous image, the maximum value of the pixels of the N image blocks of the current image, the minimum value of the pixels of the N image blocks of the previous image, and the minimum value of the pixels of the N image blocks of the current image.
[0036] As a further optimization of the above solution, the camera capture module includes the following:
[0037] Acquire any image to be captured;
[0038] Based on each image block of any image to be captured, the Sum_new, Max_new, and Min_new registers of the high-speed camera are initialized to 0, and the FPGA receives image data line by line;
[0039] Based on the pixel coordinates of the image to be captured, update the sum of the pixel values of the image block to Sum_new in real time, obtain the maximum and minimum values of the pixel values of the current image block, and write them into the Max_new and Min_new registers accordingly; repeat the above steps to complete the register data writing of a total of 3N image blocks of any image to be captured;
[0040] Collect the previous image of any image to be captured, and obtain register data of a total of 3N image blocks of the previous image;
[0041] Based on the values stored in the Sum, Max, Min registers and the Sum_new, Max_new, Min_new registers, a spatial vector coordinate system is constructed, and the values stored in the Sum, Max, Min registers and the Sum_new, Max_new, Min_new registers of each image block of the image to be captured are used as coordinate values of the coordinate system to calculate the size of the spatial vector;
[0042] If the calculated image block space vector size exceeds the identification threshold, the image block is recorded as an identification block; otherwise, the image block is not identified.
[0043] As a further optimization of the above solution, the method for calculating the size of the space vector includes the following:
[0044] The coordinate values of Sum, Max, and Min registers in the coordinate system are recorded as (a, b, c), and the coordinate values of Sum_new, Max_new, and Min_new registers in the coordinate system are recorded as (x, y, z);
[0045] The vector used to represent the change of the image block
[0046] As a further optimization of the above solution, the camera capture module further includes:
[0047] The direction in which the 3N image block data are written into the register is from the left end to the right end of the image to be captured and from top to bottom row by row.
[0048] The present invention adopts the above technical solution, which has the following beneficial effects compared with the prior art:
[0049] 1. The present invention discloses a method for triggering shooting based on image changes. Specifically, before a high-speed camera performs a camera shooting task, the image lens captured by the camera is detected. By successively capturing two consecutive images, the previous image is used as a comparison pattern, and feature area detection is performed on the next consecutive image; the upper and lower consecutive images are divided into multiple image blocks in equal proportion. When it is detected that the image block at the position corresponding to the coordinates of the next image and the previous image has changed significantly, the image block is marked as an identification block. After all image blocks are detected, the number of identification blocks is counted. When the number of identification blocks exceeds a capture threshold, it is indicated that the current image has changed significantly, thereby triggering the high-speed camera to start shooting. The present invention performs regional characterization processing on the images shot by the high-speed camera and constructs a shooting operation triggering algorithm, thereby realizing high-precision shooting operations and effectively capturing key moments.
[0050] 2. The present invention updates the pixel values to the Sum_new, Max_new and Min_new registers in real time based on the pixel coordinates of the image to be captured, so that the characteristic values of all image blocks of any image are written into the registers for subsequent calculation and processing.
[0051] 3. Compared with the traditional image feature recognition algorithm, the present invention speeds up the final identification of image blocks while maintaining the accuracy of image block identification, and improves the lens capture efficiency of the high-speed camera, so as to capture as much key information as possible while using a smaller memory. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0053] Figure 1 It is a schematic diagram of a process of the present invention;
[0054] Figure 2 Another schematic diagram of the process of the present invention;
[0055] Figure 3 It is a schematic diagram of the algorithm effect of the present invention. DETAILED DESCRIPTION
[0056] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0057] like Figure 1-3 As shown, the embodiment of the present invention discloses a method for triggering shooting based on image changes, which specifically includes the following:
[0058] Detect the number of identification blocks in the current image:
[0059] If the number of identification blocks detected in the current image exceeds the capture threshold, a high-speed camera shooting instruction is triggered;
[0060] If it is detected that the number of identification blocks of the current image does not exceed the capture threshold, the current image is set as the previous image and a new captured image is obtained.
[0061] More specifically, the present invention discloses a method for triggering shooting based on image changes, which comprises the following steps: specifically, before a high-speed camera performs a shooting task, the camera detects the image lens captured by the camera, and further, by successively capturing two consecutive images, the previous image is used as a comparison pattern, and feature area detection is performed on the next consecutive image; the upper and lower consecutive images are divided into multiple image blocks in equal proportion, and when it is detected that the image block at the position corresponding to the coordinates of the next image and the previous image has changed significantly, the image block is marked as an identification block, and after all image blocks are detected, the number of identification blocks is counted, and when the number of identification blocks exceeds a capture threshold, it is indicated that the current image has changed significantly, thereby triggering the high-speed camera to start shooting; the present invention performs regional characterization processing on the images captured by the high-speed camera and constructs a shooting operation triggering algorithm, thereby realizing high-precision shooting operations and being able to effectively capture key moments.
[0062] Specifically, before acquiring the captured image, the following steps are also included:
[0063] Designing a constituent unit of any image to be captured as an image block, wherein the image to be captured is composed of N M*M pixel units;
[0064] Open up the FPGA register space of the high-speed camera, mark the Sum register, Sum_New register, Max register, Max_New register, Min register, Min_New register, including Sum0, Sum1, ...Sum N ,Sum_new0,Sum_new1,…Sum_new N , Max0, Max1, …Max N , Max_new0, Max_new1,…Max_new N 、Min0、Min1、…Min N , Min_new0, Min_new1,…Min_new N A total of 6N registers;
[0065] The 6N registers are respectively identified as the sum of the pixel values of the N image blocks of the previous image, the sum of the pixel values of the N image blocks of the current image, the maximum value of the pixels of the N image blocks of the previous image, the maximum value of the pixels of the N image blocks of the current image, the minimum value of the pixels of the N image blocks of the previous image, and the minimum value of the pixels of the N image blocks of the current image.
[0066] More specifically, the present invention provides a method with simple programming and full use of FPGA computing characteristics and computing power. The pixels of the image are read by row, and an image is cut from top to bottom and from left to right into units of M×M pixels, which are called image blocks; the sum, maximum value and minimum value of the pixel values in each image block are calculated respectively as the characteristic value of the block. Specifically, the present invention opens up the FPGA register space of the high-speed camera, including Sum0, Sum1, ...Sum N ,Sum_new0,Sum_new1,…Sum_new N , Max0, Max1, …Max N , Max_new0, Max_new1,…Max_new N 、Min0、Min1、…Min N , Min_new0, Min_new1,…Min_new N A total of 6N registers effectively utilize the efficient computing power of FPGA, can convert conventional image contrast into numerical storage, and based on the selected feature values, can summarize the local image block features to the greatest extent.
[0067] Specifically, the detection method of the identification block includes the following:
[0068] Step 1, obtaining any image to be captured;
[0069] Step 2, based on each image block of any image to be captured, initialize the Sum_new, Max_new, and Min_new registers of the high-speed camera to 0, and the FPGA receives the image data line by line;
[0070] Step 3: Based on the pixel coordinates of the image to be captured, update the sum of the pixel values of the image block to Sum_new in real time, obtain the maximum and minimum values of the pixel values of the current image block, and write them into the Max_new and Min_new registers accordingly; repeat the above steps to complete the register data writing of a total of 3N image blocks of any image to be captured;
[0071] Step 4, collecting the previous image of any image to be captured, and obtaining register data of a total of 3N image blocks of the previous image;
[0072] Step 5, based on the values stored in the Sum, Max, Min registers and the Sum_new, Max_new, Min_new registers, a spatial vector coordinate system is constructed, and the values stored in the Sum, Max, Min registers and the Sum_new, Max_new, Min_new registers of each image block of the image to be captured are respectively used as coordinate values of the coordinate system to calculate the size of the spatial vector;
[0073] Step 6: If the calculated image block space vector size exceeds the identification threshold, the image block is recorded as an identification block; otherwise, the image block is not identified.
[0074] In addition, for the above steps 5 and 6, another calculation method is provided in the embodiment of the present application. In another implementation, the detection method of the identification block includes the following:
[0075] Step 101, obtaining any image to be captured;
[0076] Step 102, based on each image block of any image to be captured, the Sum_new, Max_new, and Min_new registers of the high-speed camera are initialized to 0, and the FPGA receives image data line by line;
[0077] Step 103, based on the pixel coordinates of the image to be captured, update the sum of the pixel values of the image blocks to Sum_new in real time, obtain the maximum and minimum values of the pixel values of the current image blocks, and write them into the Max_new and Min_new registers accordingly; repeat the above steps to complete the register data writing of a total of 3N image blocks of any image to be captured;
[0078] Step 104, collecting the previous image of any image to be captured, and obtaining register data of a total of 3N image blocks of the previous image;
[0079] Step 105, based on the Sum, Max, Min register storage values of each image block of the image to be captured, the feature vector of the image block in the previous image is recorded as (a, b, c), and based on the Sum_new, Max_new, Min_new register storage values of each image block of the image to be captured, the updated feature vector of the image block in the current image is (x, y, z);
[0080] Step 106, calculating the distribution of feature vectors between the image block to be captured in the previous image and all other image blocks, and calculating the updated distribution of feature vectors between the image block to be captured in the current image and all other image blocks;
[0081] Step 107: If the difference between the updated distribution and the distribution of the feature vectors of all image blocks in the previous image is greater than a preset value, the image block is recorded as an identified block; otherwise, the image block is not identified.
[0082] Specifically, in the above step 106, the distribution between the feature vectors of the image block and all other image blocks is calculated (the calculation method of updating the distribution is consistent with the calculation method of the distribution), including:
[0083] Step 1071, calculating the distance between the feature vectors of the image block and all other image blocks in the image.
[0084] When executing step 1071, calculating the distance between the feature vectors of the image block and all other image blocks in the image includes:
[0085] Step 10711, record the coordinate values of the Sum, Max, and Min registers of the i-th image block in the image in the coordinate system as (a i , b i , c i ), the coordinate values of the Sum, Max, and Min registers of the jth image block in the coordinate system are (a j , b j , c j );
[0086] Step 10712, calculate the distance d between the i-th image block in the previous image and the remaining N-1 image blocks (j=1, 2, ..., N, i≠j) ij 1 , calculate the distance d between the i-th image block in the current image and the remaining N-1 image blocks (j=1, 2, ..., N, i≠j) ij 2 ;
[0087] Step 10713, analyze the difference between the N-1 dimensional distance vector composed of the distance between the ith image block in the previous image and the remaining N-1 image blocks (j=1, 2, ..., N, i≠j) and the N-1 dimensional distance vector composed of the distance between the ith image block in the current image and the remaining N-1 image blocks (j=1, 2, ..., N, i≠j), and when the difference is greater than a preset threshold, determine that the ith image block in the image is an identification block.
[0088] In addition, in the above step 106, the distribution between the feature vectors of the image block and all other image blocks is calculated (the calculation method of updating the distribution is consistent with the calculation method of the distribution), and it can also include: step 1072, calculating the distribution discreteness between the feature vectors of the image block in the image and all other image blocks.
[0089] More specifically, the present invention updates the sum of pixel values to the Sum_new, Max_new and Min_new registers in real time based on the pixel coordinates of the image to be captured, so that the characteristic values of all image blocks of any image are written into the registers for subsequent calculation and processing; it should be noted that, as the characteristic value register of the first image is written, since there is no comparison chart, after the item is written into the register, it is directly updated and placed in the Sum, Max, Min registers, thereby reducing the complexity of the shooting operation trigger algorithm designed by the present invention and improving the image processing capability.
[0090] More specifically, the present invention constructs a spatial vector coordinate system based on the values stored in the Sum, Max, Min registers and the Sum_new, Max_new, Min_new registers, and converts traditional two-dimensional data into a spatial coordinate system for comparison operations. Specifically, the values stored in the Sum, Max, Min registers and the Sum_new, Max_new, Min_new registers are used as coordinate system coordinate values to calculate the size of the spatial vector of any type of register value, thereby objectively reflecting the changes of the image block based on the characteristic value of any image block. Compared with traditional image feature recognition algorithms, the present invention speeds up the final judgment of the image block while maintaining the accuracy of image block judgment, and improves the lens capture efficiency of the high-speed camera, so as to capture as much key information as possible while using a smaller memory.
[0091] Specifically, the method for calculating the size of the space vector includes the following:
[0092] The coordinate values of Sum, Max, and Min registers in the coordinate system are recorded as (a, b, c), and the coordinate values of Sum_new, Max_new, and Min_new registers in the coordinate system are recorded as (x, y, z);
[0093] The vector used to represent the change of the image block
[0094] Specifically, the method designed by the present invention also includes:
[0095] The direction in which the 3N image block data are written into the register is from the left end to the right end of the image to be captured and from top to bottom row by row.
[0096] It is particularly important to note that when the number of rows or columns of an image is not an integer multiple of M, the remaining part after cutting is also defined as an independent block. If the remaining part is very small, it can be ignored. Calculating M×M as an image block is to reduce the computational complexity. If it is compared and judged based on single-pixel processing, a large amount of data needs to be cached in the FPGA, which consumes a lot of resources and is not conducive to real-time processing of high-bandwidth data. In actual use, for scenarios where the target size is known in advance, the image block size M×M can be modified to achieve more accurate judgment.
[0097] Specifically, the present invention also discloses an embodiment of a high-speed camera device for triggering shooting based on image changes, comprising:
[0098] An image acquisition module is used to start shooting of a high-speed camera device;
[0099] An image storage module, used for storing the shooting data content of the high-speed camera device;
[0100] An image analysis module, used for storing corresponding pixel values based on images collected by the high-speed camera device;
[0101] The camera capture module is used to detect the number of identification blocks in the current image:
[0102] If the number of identification blocks detected in the current image exceeds the capture threshold, a high-speed camera shooting instruction is triggered;
[0103] If it is detected that the number of identification blocks of the current image does not exceed the capture threshold, the current image is set as the previous image and a new captured image is obtained.
[0104] More specifically, the present invention provides an embodiment of a high-speed camera device for triggering shooting based on image changes, wherein the image acquisition module transmits the image after the high-speed camera lens is turned on to the image storage module, and at this time the high-speed camera is only turned on and no shooting is performed; based on the image analysis module, a corresponding register is opened according to a pre-set setting, and according to the collected image, it is divided into multiple image blocks, and the pixel feature value of each image block is obtained, including the sum, maximum value and minimum value, etc., and written into the corresponding register space;
[0105] After completing the writing of the register, the camera capture module now detects the number of identification blocks in the image. Specifically, it constructs a spatial vector coordinate system, converts the traditional two-dimensional data into a spatial coordinate system for comparison operations, and objectively reflects the changes in the image blocks and marks them based on the characteristic values of any image blocks. It also decides whether to trigger the shooting of the high-speed camera device based on the number of all marked blocks in the final arbitrary image.
[0106] like Figure 3 An embodiment provided as shown is an image composed of 16 image blocks, each of which is composed of 3×3 pixel values. Based on the design of the present invention, the characteristic values (sum of pixel values, maximum value, minimum value) of the 16 image blocks are written into the Sum_new, Max_new, and Min_new registers as needed, and written 16 times in total. After the Sum_new, Max_new, and Min_new registers are written, they are used together with the characteristic values (sum of pixel values, maximum value, and minimum value) of the image blocks of the previous image to construct a spatial coordinate system. If the calculated image block space vector size exceeds the identification threshold, the image block is recorded as an identification block, such as Figure 3 The current image is marked as "1", which means that the image block has changed significantly. Finally, all image blocks of the image are counted. Figure 3 The number is 6. If the capture threshold is 5, the change of the current image exceeds the preset value, thus triggering the high-speed camera shooting instruction. It should be noted that the identifier "1" is used to facilitate the description of the embodiment of the present invention. In the actual high-speed camera algorithm design, only the logical marking information of the identification block is saved and is not displayed through the image.
[0107] The design of the present invention solves the problem of capturing the key moments of a high-speed camera with tens of thousands of frames per second, and achieves the technical effect of calculating and judging each frame in real time.
[0108] It should be noted that the technical means for realizing the high-speed camera device based on image change triggering shooting in another embodiment of the present invention is the same as the method based on image change triggering shooting, and thus will not be described in detail herein.
[0109] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other.
Claims
1. A method for triggering shooting based on image changes, characterized in that: The method comprises the following steps: Detect the number of identification blocks in the current image: If the number of identification blocks detected in the current image exceeds the capture threshold, a high-speed camera shooting instruction is triggered; If it is detected that the number of identification blocks of the current image does not exceed the capture threshold, the current image is set as the previous image and a new captured image is obtained.
2. The method for triggering shooting based on image changes according to claim 1, characterized in that: Before acquiring the captured image, the method further includes: Designing a constituent unit of any image to be captured as an image block, wherein the image to be captured is composed of N M*M pixel units; Open up the FPGA register space of the high-speed camera, mark the Sum register, Sum_New register, Max register, Max_New register, Min register, Min_New register, including Sum0, Sum1, ...Sum N ,Sum_new0,Sum_new1,…Sum_new N , Max0, Max1, …Max N , Max_new0, Max_new1,…Max_new N 、Min0、Min1、…Min N , Min_new0, Min_new1,…Min_new N A total of 6N registers; The 6N registers are respectively identified as the sum Sum of the pixel values of the N image blocks of the previous image, the sum Sum_New of the pixel values of the N image blocks of the current image, the maximum value Max of the pixels of the N image blocks of the previous image, the maximum value Max_New of the pixels of the N image blocks of the current image, the minimum value Min of the pixels of the N image blocks of the previous image, and the minimum value Min_New of the pixels of the N image blocks of the current image.
3. The method for triggering shooting based on image changes according to claim 2, characterized in that: The detection method of the identification block includes the following steps: Acquire any image to be captured; Based on each image block of any image to be captured, the Sum_new, Max_new, and Min_new registers of the high-speed camera are initialized to 0, and the FPGA receives image data line by line; Based on the pixel coordinates of the image to be captured, update the sum of the pixel values of the image block to Sum_new in real time, obtain the maximum and minimum values of the pixel values of the current image block, and write them into the Max_new and Min_new registers accordingly; repeat the above steps to complete the register data writing of a total of 3N image blocks of any image to be captured; Collect the previous image of any image to be captured, and obtain register data of a total of 3N image blocks of the previous image; Based on the values stored in the Sum, Max, Min registers and the Sum_new, Max_new, Min_new registers, a spatial vector coordinate system is constructed, and the values stored in the Sum, Max, Min registers and the Sum_new, Max_new, Min_new registers of each image block of the image to be captured are used as coordinate values of the coordinate system to calculate the size of the spatial vector; If the calculated image block space vector size exceeds the identification threshold, the image block is recorded as an identification block; otherwise, the image block is not identified.
4. The method for triggering shooting based on image changes according to claim 3, characterized in that: The method for calculating the size of the space vector includes the following steps: The coordinate values of Sum, Max, and Min registers in the coordinate system are recorded as (a, b, c), and the coordinate values of Sum_new, Max_new, and Min_new registers in the coordinate system are recorded as (x, y, z); The vector used to represent the change of the image block 5. The method for triggering shooting based on image changes according to claim 1, characterized in that: The method further comprises: The direction in which the 3N image block data are written into the register is from the left end to the right end of the image to be captured and from top to bottom row by row.
6. A high-speed camera device for triggering shooting based on image changes, characterized in that: The device comprises: An image acquisition module is used to start shooting of a high-speed camera device; An image storage module, used for storing the shooting data content of the high-speed camera device; An image analysis module, used for storing corresponding pixel values based on images collected by the high-speed camera device; The camera capture module is used to detect the number of identification blocks in the current image: If the number of identification blocks detected in the current image exceeds the capture threshold, a high-speed camera shooting instruction is triggered; If it is detected that the number of identification blocks of the current image does not exceed the capture threshold, the current image is set as the previous image and a new captured image is obtained.
7. A high-speed camera device based on image change triggering shooting according to claim 6, characterized in that: The image analysis module includes the following: Designing a constituent unit of any image to be captured as an image block, wherein the image to be captured is composed of N M*M pixel units; Open up the FPGA register space of the high-speed camera, mark the Sum register, Sum_New register, Max register, Max_New register, Min register, Min_New register, including Sum0, Sum1, ...Sum N ,Sum_new0,Sum_new1,…Sum_new N , Max0, Max1, …Max N , Max_new0, Max_new1,…Max_new N 、Min0、Min1、…Min N , Min_new0, Min_new1,…Min_new N A total of 6N registers; The 6N registers are respectively identified as the sum of the pixel values of the N image blocks of the previous image, the sum of the pixel values of the N image blocks of the current image, the maximum value of the pixels of the N image blocks of the previous image, the maximum value of the pixels of the N image blocks of the current image, the minimum value of the pixels of the N image blocks of the previous image, and the minimum value of the pixels of the N image blocks of the current image.
8. The high-speed camera device for triggering shooting based on image changes according to claim 7, characterized in that: The camera capture module includes the following: Acquire any image to be captured; Based on each image block of any image to be captured, the Sum_new, Max_new, and Min_new registers of the high-speed camera are initialized to 0, and the FPGA receives image data line by line; Based on the pixel coordinates of the image to be captured, update the sum of the pixel values of the image block to Sum_new in real time, obtain the maximum and minimum values of the pixel values of the current image block, and write them into the Max_new and Min_new registers accordingly; repeat the above steps to complete the register data writing of a total of 3N image blocks of any image to be captured; Collect the previous image of any image to be captured, and obtain register data of a total of 3N image blocks of the previous image; Based on the values stored in the Sum, Max, Min registers and the Sum_new, Max_new, Min_new registers, a spatial vector coordinate system is constructed, and the values stored in the Sum, Max, Min registers and the Sum_new, Max_new, Min_new registers of each image block of the image to be captured are used as coordinate values of the coordinate system to calculate the size of the spatial vector; If the calculated image block space vector size exceeds the identification threshold, the image block is recorded as an identification block; otherwise, the image block is not identified.
9. The high-speed camera device based on image change triggering shooting according to claim 8, characterized in that: The method for calculating the size of the space vector includes the following steps: The coordinate values of Sum, Max, and Min registers in the coordinate system are recorded as (a, b, c), and the coordinate values of Sum_new, Max_new, and Min_new registers in the coordinate system are recorded as (x, y, z); The vector used to represent the change of the image block 10. The high-speed camera device based on image change triggering shooting according to claim 1, characterized in that: The camera capture module also includes: The direction in which the 3N image block data are written into the register is from the left end to the right end of the image to be captured and from top to bottom row by row.