Target recognition algorithm verification data transmission method, device, equipment and storage medium

By embedding instruction information into the target test image data, the problem of the lack of scalability and synchronization of the data source in the verification of target recognition algorithms is solved, and the synchronous transmission of image data and instruction data is realized, which improves the reliability and flexibility of algorithm simulation verification.

CN116149966BActive Publication Date: 2025-10-31THE GENERAL DESIGNING INST OF HUBEI SPACE TECH ACAD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310137549.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-20
Publication Date
2025-10-31
Estimated Expiration
2043-02-20

AI Technical Summary

Technical Problem

In existing target recognition algorithm performance simulation verification, the data source lacks scalability, and image data and command data cannot be synchronized, which affects the algorithm performance evaluation results in the missile-borne high-speed platform environment.

Method used

Target pixels are embedded in the target test image data. The corresponding test instruction data is obtained through the test instruction information carried by the pixels. During the reading process, the image data and instruction data are sent synchronously. A pre-reading and timer mechanism is used to ensure data synchronization.

Benefits of technology

It achieves scalability of the data source, ensures strict matching and synchronous transmission of image data and instruction information, and meets the needs of algorithm simulation and performance evaluation under high dynamic platform conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116149966B_ABST
    Figure CN116149966B_ABST
Patent Text Reader

Abstract

This application relates to a method, apparatus, device, and storage medium for verifying data transmission in target recognition algorithm applications. It pertains to the field of target recognition algorithm performance simulation verification. The method includes, during the reading of target test image data embedded with target pixels, obtaining target test instruction data corresponding to the target test image data based on the test instruction information carried by the target pixel when a target pixel is read; and synchronously sending the target test image data and target test instruction data to a target program, enabling the target program to execute the target recognition algorithm based on the target test image data and target test instruction data. This application achieves data source scalability by embedding pixels carrying corresponding instruction information into the image data to match the instruction data with the image data and synchronously sending the matched data. This ensures that the image data and instruction data are not two independent datasets, thereby ensuring the consistency between the image data and the control instructions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of target recognition algorithm performance simulation and verification technology, and in particular to a target recognition algorithm verification data transmission method, apparatus, device and storage medium. Background Technology

[0002] Typically, when performing performance simulation verification of target recognition algorithms, it is necessary to simultaneously send image data and corresponding instruction data (i.e., verification data) to the algorithm module under test to meet the input requirements of the target recognition algorithm simulation test. In this scenario, the commonly used method is to pre-write the evaluation system parsing program, which reads the images and instructions in a fixed order and sends the data simultaneously. Based on this method, another approach is to rename the images and instructions and read the image data on the host computer in a confirmed file read / write order. This method can automatically add image data by specifying a folder, but the management of images and instructions is separated, which introduces certain error risks during the entire image and instruction transmission process.

[0003] While the two solutions described above effectively address the data read / write problem, they still suffer from the following issues: Firstly, because the current solution primarily relies on a fixed data source built through a host computer application, meaning the data source reading mechanism is uniquely determined by the host computer, continuous data additions will result in newly added image data and command information being unrecognizable by the host computer. Only by modifying the host computer application can compatibility with the new data source be achieved, leading to a strong sense of closure and poor flexibility—meaning a lack of data source scalability. Secondly, since command data and image data are relatively independent in the current solution, misalignment between them is possible. If a misalignment occurs and the system lacks a robust resynchronization or reset mechanism, all subsequent image transmissions will be affected. This is particularly problematic in high-speed missile-borne platform environments, where the asynchrony between image and command data will have a more severe impact on the performance evaluation of missile-borne target recognition algorithms. Summary of the Invention

[0004] This application provides a target recognition algorithm verification data transmission method, apparatus, device, and storage medium to solve the problems of lack of data source scalability and inability to ensure synchronization between image data and instruction data in related technologies.

[0005] Firstly, a method for verifying data transmission using a target recognition algorithm is provided, comprising the following steps:

[0006] During the process of reading target test image data embedded with target pixels, when the target pixel is read, target test instruction data corresponding to the target test image data is obtained based on the test instruction information carried by the target pixel.

[0007] The target test image data and the target test instruction data are synchronously sent to the target program so that the target program can execute the target recognition algorithm based on the target test image data and the target test instruction data.

[0008] In some embodiments, the number of target pixels is 2, one of the target pixels carries test instruction information including a position identifier corresponding to the test instruction data, and the other target pixel carries test instruction information including a content identifier corresponding to the test instruction data.

[0009] In some embodiments, obtaining target test instruction data corresponding to the target test image data based on the test instruction information carried by the target pixel includes:

[0010] The target control instruction file containing the test instruction data corresponding to the target test image data is located based on the position identifier in the test instruction information carried by a target pixel.

[0011] Select target test instruction data from the target control instruction file that corresponds to the content identifier in the test instruction information carried by another target pixel.

[0012] In some embodiments, after the step of locating the target control instruction file containing the test instruction data corresponding to the target test image data based on the location identifier in the test instruction information carried by a target pixel, the method further includes:

[0013] Record the location identifier to form a historical location identifier, and store the test instruction data in the target control instruction file into the memory;

[0014] During the process of reading the next target test image data, when the first target pixel in the next target test image data is read, it is determined whether the position identifier in the test instruction information carried by the first target pixel is the same as the historical position identifier.

[0015] If so, then filter out the target test instruction data from the memory that corresponds to the content identifier in the test instruction information carried by the second target pixel in the next target test image data;

[0016] If not, then based on the first target pixel, perform the step of locating the target control instruction file containing the test instruction data corresponding to the target test image data according to the location identifier in the test instruction information carried by the target pixel.

[0017] In some embodiments, during the process of reading target test image data embedded with target pixels, when the target pixel is read, obtaining target test instruction data corresponding to the target test image data based on the test instruction information carried by the target pixel includes:

[0018] During the process of reading the target test image data containing the target pixels, the read target test image data is stored in the buffer;

[0019] When the target pixel is read, target test instruction data corresponding to the target test image data is obtained based on the test instruction information carried by the target pixel, and the target test instruction data is stored in the buffer.

[0020] When the timer trigger signal is received, the target test image data and target test instruction data are extracted from the buffer.

[0021] In some embodiments, after the step of storing the target test instruction data in the cache, the method further includes:

[0022] Read the next target test image data containing the target pixel, and based on the next target test image data containing the target pixel, execute the step of obtaining the target test instruction data corresponding to the target test image data based on the test instruction information carried by the target pixel when the target pixel is read.

[0023] In some embodiments, prior to the step of reading the target test image data embedded with target pixels, the method further includes:

[0024] A preset number of target pixels are embedded in the test image data to form target test image data, wherein the target pixels carry test instruction information corresponding to the test image data.

[0025] Secondly, a target recognition algorithm verification data transmission device is provided, comprising:

[0026] The reading unit is used to, during the process of reading target test image data embedded with target pixels, obtain target test instruction data corresponding to the target test image data based on the test instruction information carried by the target pixel when the target pixel is read;

[0027] The sending unit is used to synchronously send the target test image data and the target test instruction data to the target program, so that the target program can execute the target recognition algorithm based on the target test image data and the target test instruction data.

[0028] Thirdly, a target recognition algorithm verification data transmission device is provided, comprising: a memory and a processor, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the aforementioned target recognition algorithm verification data transmission method.

[0029] Fourthly, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program, which, when executed by a processor, implements the aforementioned target recognition algorithm verification data transmission method.

[0030] The beneficial effects of the technical solution provided in this application include: achieving scalability of the data source, ensuring strict matching of image data and instruction information, and synchronous data transmission.

[0031] This application provides a method, apparatus, device, and storage medium for transmitting data to verify a target recognition algorithm. The method includes, during the reading of target test image data embedded with target pixels, upon reading a target pixel, obtaining target test instruction data corresponding to the target test image data based on test instruction information carried by the target pixel; and synchronously sending the target test image data and the target test instruction data to a target program, so that the target program can execute a target recognition algorithm based on the target test image data and the target test instruction data. This application embeds pixels carrying corresponding instruction information into image data, and matches the instruction data with the image data based on these pixels. This eliminates the need for unique confirmation of the data source by the host computer. While achieving data source scalability, it ensures that the image data and instruction data are not two independent datasets, thus avoiding data misalignment. Furthermore, during transmission, strictly synchronized transmission of matching data ensures the consistency between image data and control instructions, thereby meeting the requirements for algorithm simulation and performance evaluation under high-dynamic platform conditions. Attached Figure Description

[0032] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0033] Figure 1A flowchart illustrating a target recognition algorithm verification data transmission method provided in an embodiment of this application;

[0034] Figure 2 This is a schematic diagram of the image data test source modification process provided in the embodiments of this application;

[0035] Figure 3 Example diagram of the modified image data format provided in the embodiments of this application;

[0036] Figure 4 This is a schematic diagram illustrating the matching format of image data and instruction data provided in the embodiments of this application;

[0037] Figure 5 This is a schematic diagram of the instruction data reading process provided in an embodiment of this application;

[0038] Figure 6 This is a schematic diagram of the data reading and sending timing provided in the embodiments of this application;

[0039] Figure 7 This is a schematic diagram of the structure of a target recognition algorithm verification data transmission device provided in an embodiment of this application. Detailed Implementation

[0040] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0041] This application provides a target recognition algorithm verification data transmission method, apparatus, device, and storage medium, which can solve the problems of lack of data source scalability and inability to ensure synchronization between image data and instruction data in related technologies.

[0042] Figure 1 This application provides a target recognition algorithm verification data transmission method, which includes the following steps:

[0043] Step S10: During the process of reading target test image data embedded with target pixels, when the target pixel is read, target test instruction data corresponding to the target test image data is obtained based on the test instruction information carried by the target pixel.

[0044] As an example, it is understood that during target recognition algorithm performance simulation verification, verification data (i.e., image data and corresponding instruction data) needs to be sent synchronously to the algorithm module under test to meet the input requirements of the target recognition algorithm simulation test. In this embodiment, target pixels are embedded in the target test image data in the verification data, and the matching of image data and instruction data is achieved through these target pixels. It should be noted that the target test image data in this embodiment is not limited to missile-borne target test image data; it can also be other types of target test image data, which can be determined according to actual needs and is not limited here.

[0045] For details, see Figure 2 As shown, when a user needs to modify the test source, the original image source is directly modified to the required image source, and image source data is added. Simultaneously, corresponding instruction information is embedded into the image source data to form the target test image data (see [link]). Figure 3 As shown), this completes the modification of the test source, enabling the host computer to read the target test image data during the target test image data reading process. When the target pixel is read, the host computer can read the target test instruction data corresponding to the target test image data based on the test instruction information carried by the target pixel, thus completing the matching of control instruction data and image data. This allows different data sources to be confirmed and read by the host computer, thereby ensuring the sustainable integration of data sources. This ensures the sustainable integration of the platform built according to this embodiment and ensures that the image data and instruction data are not two independent datasets, providing a basis for the synchronous transmission of image data and instruction data.

[0046] Furthermore, prior to the step of reading the target test image data embedded with target pixels, the method further includes:

[0047] A preset number of target pixels are embedded in the test image data to form target test image data, wherein the target pixels carry test instruction information corresponding to the test image data.

[0048] As an example, it should be understood that for test images used to verify the performance of target recognition algorithms, since image edges typically contain relatively little information, adjusting the initial pixel information on the image will not change the image's attributes and its impact on the system is negligible. Therefore, in this embodiment, the initial few pixels of the image are replaced with target pixels carrying synchronization information; that is, a preset number of target pixels are embedded in the test image data to form target test image data. These target pixels carry test instruction information corresponding to the test image data. This test instruction information can be test instruction data or an identifier indicating the test instruction data, allowing the host computer to find and read the corresponding test instruction data based on the identifier. The specific method used can be determined according to actual needs and is not limited here.

[0049] It should be noted that the number of target pixels can be 1 or 2, or it can be determined according to actual needs, and there is no limit here.

[0050] Furthermore, the number of target pixels is 2, one of the target pixels carries test instruction information including a position identifier corresponding to the test instruction data, and the other target pixel carries test instruction information including a content identifier corresponding to the test instruction data.

[0051] As an example, in this embodiment, the test instruction information carried by the target pixel is preferably set as an identifier for indicating test instruction data. See also... Figure 3 As shown, the number of target pixels is preferably two, then one of the target pixels carries the test instruction information as a position identifier corresponding to the test instruction data (i.e., Figure 3 The first sequence number in the file represents the file sequence number, used to locate the file containing the test instruction data; the other target pixel carries the test instruction information, which is the content identifier corresponding to the test instruction data (i.e., Figure 3 The second serial number in the file represents the instruction serial number, which is used to obtain the required test instruction data content in the corresponding file.

[0052] It should be noted that the size of the instruction data that the target pixel can support in this embodiment can be determined according to the image bit width. For example, when the image bit width is 8 bits, a total of 256*256 sets of instructions can be supported, while when the image bit width is 16 bits, 65536*65536 sets of instructions can be supported.

[0053] Furthermore, the step of obtaining target test instruction data corresponding to the target test image data based on the test instruction information carried by the target pixel includes:

[0054] The target control instruction file containing the test instruction data corresponding to the target test image data is located based on the position identifier in the test instruction information carried by a target pixel.

[0055] Select target test instruction data from the target control instruction file that corresponds to the content identifier in the test instruction information carried by another target pixel.

[0056] As an example, in this embodiment, when the host computer reads the target test image data, it reads the file number and instruction number carried by the target pixel, and locates the corresponding path in the file list according to the file number, that is, finds the corresponding target control instruction file, and finds the target test instruction data corresponding to the instruction number in the target control instruction file under the path, thereby realizing the matching of image data and instruction data.

[0057] For details, see Figure 4 As shown, taking a target pixel with position identifier number 1 and another target pixel with content identifier number 2 as an example: when number 1 is read, the instruction file 1 corresponding to number 1 is found from the host computer file list (which stores instruction files 1 to N). Instruction file 1 stores instructions 1 to N. Instruction file 1 is the target control instruction file. When number 2 is read, instruction 2 corresponding to number 2 is found from the control instruction list corresponding to instruction file 1. Instruction 2 is the target test instruction data.

[0058] Furthermore, after the step of locating the target control instruction file containing the test instruction data corresponding to the target test image data based on the position identifier in the test instruction information carried by a target pixel, the method further includes:

[0059] Record the location identifier to form a historical location identifier, and store the test instruction data in the target control instruction file into the memory;

[0060] During the process of reading the next target test image data, when the first target pixel in the next target test image data is read, it is determined whether the position identifier in the test instruction information carried by the first target pixel is the same as the historical position identifier.

[0061] If so, then filter out the target test instruction data from the memory that corresponds to the content identifier in the test instruction information carried by the second target pixel in the next target test image data;

[0062] If not, then based on the first target pixel, perform the step of locating the target control instruction file containing the test instruction data corresponding to the target test image data according to the location identifier in the test instruction information carried by the target pixel.

[0063] As an example, it is understandable that, under normal circumstances, the instructions corresponding to consecutive images are not scattered across multiple instruction files, and the instruction files are usually small. Therefore, to ensure rapid matching of instructions and images, in this embodiment, when an instruction file is read for the first time, the system automatically stores the contents of the instruction file (i.e., instructions 1 to N) in a memory such as RAM, and records the current instruction file sequence number. When the instruction file is read again, if the instruction file sequence number matches, the corresponding instruction can be retrieved directly from RAM; if they do not match, the instruction file reading process is repeated, and the sequence number is updated. This pre-reading method avoids unnecessary time waste caused by file access operations in each cycle, reducing the time loss when reading files and thus effectively improving the efficiency of instruction reading.

[0064] Specifically, taking target test image data A as the first target test image data and target test image data B as the second target test image data as an example: After reading the target control instruction file 1 corresponding to the position identifier (i.e., sequence number 1) carried by the first target pixel A1 in target test image data A, the sequence number 1 is recorded, and instructions 1 to N in the target control instruction file 1 are stored in RAM; then, when the content identifier (i.e., sequence number 2) carried by the second target pixel A2 in target test image data A is read, instruction 2 corresponding to sequence number 2 is filtered out from RAM, thus completing the matching of target test image data A with its corresponding target test instruction data;

[0065] See Figure 5 As shown, when reading the next target test image data B, if the position identifier carried by the first target pixel B1 in the target test image data B is read, it is determined whether the RAM is empty. If it is empty, the same process as the above target test image data is executed to match the target test image data B with its corresponding target test instruction data. If it is not empty, it is determined whether the position identifier is the same as the recorded sequence number 1. If they are the same, the instructions stored in the RAM are retrieved, and the instructions corresponding to the content identifier carried by the second target pixel B2 in the target test image data B are directly filtered out from the RAM to match the target test image data B with its corresponding target test instruction data.

[0066] If they are different, the target control instruction file (e.g., target control instruction file 3) corresponding to the position identifier (e.g., sequence number 3) carried by the first target pixel B1 is read, the position identifier is recorded, and the identifier sequence number in RAM is updated to the position identifier. At the same time, instructions 1 to N of the target control instruction file are updated and stored in RAM. Then, when the content identifier (e.g., sequence number 5) carried by the second target pixel B2 in the target test image data B is read, instruction 5 corresponding to sequence number 5 is filtered out from RAM. Thus, the matching of the target test image data B with its corresponding target test instruction data is completed.

[0067] Furthermore, during the process of reading the target test image data embedded with target pixels, when the target pixel is read, obtaining the target test instruction data corresponding to the target test image data based on the test instruction information carried by the target pixel includes:

[0068] During the process of reading the target test image data containing the target pixels, the read target test image data is stored in the buffer;

[0069] When the target pixel is read, target test instruction data corresponding to the target test image data is obtained based on the test instruction information carried by the target pixel, and the target test instruction data is stored in the buffer.

[0070] When the timer trigger signal is received, the target test image data and target test instruction data are extracted from the buffer.

[0071] As an example, it's understandable that, typically, the amount of image data transmitted is larger than the amount of command data; moreover, image data is often transmitted via Ethernet, Cameralink, etc., while command data is transmitted via serial ports, CAN, etc. Therefore, the time consumed by image data transmission is much longer than the time consumed by control command data, meaning there is a synchronization problem in the transmission of image and command data. Thus, to address the above phenomenon, it is necessary to ensure two synchronizations in system data transmission: synchronization between command data and image data, and synchronization between the image transmission frequency and the preset frequency. To achieve these two synchronizations, this embodiment proposes a timer mechanism: after the user sets a fixed transmission frequency, a timer register stably obtains the response signal based on that set frequency; and since the timer's response time has a certain lag between the system's start-up time, this time difference can be used for pre-fetching of images and commands.

[0072] The specific implementation scheme for stably obtaining the response signal based on the set frequency through the timing register is as follows: Taking target test image data A as the first target test image data, and the position identifier and content identifier carried by its two corresponding target pixels being sequence number 1 and sequence number 2 respectively, see [example missing]. Figure 6 As shown, when the host computer starts working, it first reads the target test image data A according to the user's preset configuration and stores the read content in a buffer such as a FIFO. At the same time, it locates the target control instruction file and its corresponding target test instruction data according to the read sequence number 1 and sequence number 2, and stores the target test instruction data in the FIFO as well. When the instruction is loaded, a flag bit is given to the host computer to indicate that the current instruction is in a sendable state.

[0073] After the host computer obtains the command can be sent status, it starts to wait for the trigger signal of the external timer. When the external timer trigger signal is received, it will extract the target test image data and target test command data from the FIFO and send the command data and image data synchronously. This ensures that the image signal and command signal are transmitted synchronously and orderly during the data transmission process, reducing the possibility of command and image misalignment during the transmission process.

[0074] For example, the trigger time of the external timer is 20ms. When the instruction is in the sendable state, the count value of the external timer is 10. Since 20ms has not yet been reached, the instruction data and image data are not sent and we need to continue waiting. When the count value of the external timer is 20, the external timer trigger signal will be sent so that the host computer can extract the target test image data and target test instruction data from the FIFO and send the instruction data and image data synchronously.

[0075] Furthermore, after the step of storing the target test instruction data in the cache, the method further includes:

[0076] Read the next target test image data containing the target pixel, and based on the next target test image data containing the target pixel, execute the step of obtaining the target test instruction data corresponding to the target test image data based on the test instruction information carried by the target pixel when the target pixel is read.

[0077] As an example, it should be understood that the timer's response time lags behind the system's start-up time; that is, image transmission lags behind image reading by n lines. Therefore, when image reading is complete, image transmission may not yet be finished. Thus, to ensure system real-time performance, this time difference can be used for pre-fetching of images and instructions.

[0078] For details, see Figure 6As shown, taking target test image data B as the second target test image data as an example, after completing the reading of target test image data A and its corresponding target test instruction data, the reading of target test image data B and its corresponding target test instruction data begins directly. That is, the reading of target test image data B begins before the transmission of target test image data A and its corresponding target test instruction data is completed. Then, after waiting for the transmission of target test image data A and its corresponding target test instruction data to be completed and receiving the external timer trigger signal again, target test image data B and its corresponding target test instruction data are sent, and so on, until all the images that the user needs to send have been transmitted. It can be seen that the parallel reading and synchronous sending mechanism provided in this embodiment can effectively reduce data link latency and ensure that data transmission is carried out entirely according to the preset frequency.

[0079] Step S20: The target test image data and the target test instruction data are synchronously sent to the target program so that the target program can execute the target recognition algorithm based on the target test image data and the target test instruction data.

[0080] As an example, in this embodiment, when the host computer receives an external timer trigger signal, it extracts the target test image data and target test instruction data from the FIFO, and simultaneously sends the target test instruction data and target test image data to the target program, so that the target program can execute the target recognition algorithm under test according to the target test image data and target test instruction data, thereby realizing the simulation evaluation of the performance of the target recognition algorithm.

[0081] In summary, addressing the issues in data transmission during real-time performance evaluation of missile-borne target recognition algorithms on high-speed missile platforms, this embodiment simulates the transmission mode of missile-borne platform data and command data streams. It proposes a real-time data synchronization method for controlling algorithm performance testing, which includes an effective data source matching mechanism and a synchronous transmission mechanism. This ensures that the data source is scalable while achieving strict matching and synchronous transmission of image and command data, thus meeting the needs of algorithm simulation and performance evaluation under high-dynamic platform conditions.

[0082] Specifically, by embedding pixels carrying corresponding instruction information into the image data, the matching of instruction data and image data is completed based on these pixels. This eliminates the need for the host computer to uniquely confirm the reading of the data source, achieving data source scalability, improving the flexibility of reading different data sources, and ensuring that the image data and instruction data are not two independent datasets. Furthermore, regarding the data synchronization transmission mechanism, this embodiment reduces the time loss when reading files by using a pre-reading mechanism for the control instruction file, and ensures that the instruction data and image data are transmitted in a strict one-to-one correspondence through a timer-based file transfer mechanism, thereby avoiding data misalignment.

[0083] This application embodiment also provides a target recognition algorithm verification data transmission device, including:

[0084] The reading unit is used to, during the process of reading target test image data embedded with target pixels, obtain target test instruction data corresponding to the target test image data based on the test instruction information carried by the target pixel when the target pixel is read;

[0085] The sending unit is used to synchronously send the target test image data and the target test instruction data to the target program, so that the target program can execute the target recognition algorithm based on the target test image data and the target test instruction data.

[0086] Furthermore, the number of target pixels is 2, one of the target pixels carries test instruction information including a position identifier corresponding to the test instruction data, and the other target pixel carries test instruction information including a content identifier corresponding to the test instruction data.

[0087] Furthermore, the reading unit is specifically used for:

[0088] The target control instruction file containing the test instruction data corresponding to the target test image data is located based on the position identifier in the test instruction information carried by a target pixel.

[0089] Select target test instruction data from the target control instruction file that corresponds to the content identifier in the test instruction information carried by another target pixel.

[0090] Furthermore, the reading unit is specifically used for:

[0091] Record the location identifier to form a historical location identifier, and store the test instruction data in the target control instruction file into the memory;

[0092] During the process of reading the next target test image data, when the first target pixel in the next target test image data is read, it is determined whether the position identifier in the test instruction information carried by the first target pixel is the same as the historical position identifier.

[0093] If so, then filter out the target test instruction data from the memory that corresponds to the content identifier in the test instruction information carried by the second target pixel in the next target test image data;

[0094] If not, then based on the first target pixel, perform the step of locating the target control instruction file containing the test instruction data corresponding to the target test image data according to the location identifier in the test instruction information carried by the target pixel.

[0095] Furthermore, the reading unit is specifically used for:

[0096] During the process of reading the target test image data containing the target pixels, the read target test image data is stored in the buffer;

[0097] When the target pixel is read, target test instruction data corresponding to the target test image data is obtained based on the test instruction information carried by the target pixel, and the target test instruction data is stored in the buffer.

[0098] When the timer trigger signal is received, the target test image data and target test instruction data are extracted from the buffer.

[0099] Furthermore, the reading unit is specifically used for:

[0100] Read the next target test image data containing the target pixel, and based on the next target test image data containing the target pixel, execute the step of obtaining the target test instruction data corresponding to the target test image data based on the test instruction information carried by the target pixel when the target pixel is read.

[0101] Furthermore, the device also includes an embedding unit for:

[0102] A preset number of target pixels are embedded in the test image data to form target test image data, wherein the target pixels carry test instruction information corresponding to the test image data.

[0103] It should be noted that those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the device and each unit described above can be referred to the corresponding process in the aforementioned target recognition algorithm verification data transmission method embodiment, and will not be repeated here.

[0104] The apparatus provided in the above embodiments can be implemented as a computer program, which can be used in, for example... Figure 7 The target recognition algorithm shown is verified to run on the data transmission device.

[0105] This application also provides a target recognition algorithm verification data transmission device, including: a memory, a processor, and a network interface connected via a system bus. The memory stores at least one instruction, which is loaded and executed by the processor to implement all or part of the steps of the aforementioned target recognition algorithm verification data transmission method.

[0106] The network interface is used for network communication, such as sending assigned tasks. Those skilled in the art will understand that... Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0107] A processor can be a CPU, or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor, or any conventional processor. The processor is the control center of a computer device, connecting all parts of the computer device through various interfaces and lines.

[0108] Memory can be used to store computer programs and / or modules. The processor performs various functions of the computer device by running or executing the computer programs and / or modules stored in the memory, and by accessing data stored in the memory. Memory can primarily include a program storage area and a data storage area. The program storage area can store the operating system, application programs required for at least one function (such as video playback, image playback, etc.), etc.; the data storage area can store data created based on the use of the mobile phone (such as video data, image data, etc.). Furthermore, memory can include high-speed random access memory (RAM), and can also include non-volatile memory, such as hard disks, RAM, plug-in hard disks, SmartMedia Cards (SMC), Secure Digital Cards (SD cards), Flash Cards, at least one disk storage device, flash memory devices, or other volatile solid-state storage devices.

[0109] This application also provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements all or part of the steps of the aforementioned target recognition algorithm verification data transmission method.

[0110] The embodiments of this application can implement all or part of the aforementioned processes, or they can be accomplished by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various methods described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added to or subtracted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.

[0111] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, servers, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.

[0112] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0113] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0114] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for verifying data transmission using a target recognition algorithm, characterized in that, Includes the following steps: During the process of reading target test image data embedded with target pixels, when the target pixel is read, target test instruction data corresponding to the target test image data is obtained based on the test instruction information carried by the target pixel. The target test image data and the target test instruction data are synchronously sent to the target program so that the target program can execute the target recognition algorithm based on the target test image data and the target test instruction data; The number of target pixels is 2. One of the target pixels carries test instruction information including a position identifier corresponding to the test instruction data, and the other target pixel carries test instruction information including a content identifier corresponding to the test instruction data. The step of obtaining target test instruction data corresponding to the target test image data based on the test instruction information carried by the target pixel includes: The target control instruction file containing the test instruction data corresponding to the target test image data is located based on the position identifier in the test instruction information carried by a target pixel. Filter out the target test instruction data from the target control instruction file that corresponds to the content identifier in the test instruction information carried by another target pixel; Prior to the step of reading the target test image data embedded with target pixels, the method further includes: A preset number of target pixels are embedded in the test image data to form target test image data, wherein the target pixels carry test instruction information corresponding to the test image data.

2. The target recognition algorithm verification data transmission method as described in claim 1, characterized in that, After the step of locating the target control instruction file containing the test instruction data corresponding to the target test image data based on the location identifier in the test instruction information carried by a target pixel, the method further includes: Record the location identifier to form a historical location identifier, and store the test instruction data in the target control instruction file into the memory; During the process of reading the next target test image data, when the first target pixel in the next target test image data is read, it is determined whether the position identifier in the test instruction information carried by the first target pixel is the same as the historical position identifier. If so, then filter out the target test instruction data from the memory that corresponds to the content identifier in the test instruction information carried by the second target pixel in the next target test image data; If not, then based on the first target pixel, perform the step of locating the target control instruction file containing the test instruction data corresponding to the target test image data according to the location identifier in the test instruction information carried by the target pixel.

3. The target recognition algorithm verification data transmission method as described in claim 1, characterized in that, During the process of reading target test image data embedded with target pixels, when the target pixel is read, target test instruction data corresponding to the target test image data is obtained based on the test instruction information carried by the target pixel, including: During the process of reading the target test image data containing the target pixels, the read target test image data is stored in the buffer; When the target pixel is read, target test instruction data corresponding to the target test image data is obtained based on the test instruction information carried by the target pixel, and the target test instruction data is stored in the buffer. When the timer trigger signal is received, the target test image data and target test instruction data are extracted from the buffer.

4. The target recognition algorithm verification data transmission method as described in claim 3, characterized in that, After the step of storing the target test instruction data in the cache, the method further includes: Read the next target test image data containing the target pixel, and based on the next target test image data containing the target pixel, execute the step of obtaining the target test instruction data corresponding to the target test image data based on the test instruction information carried by the target pixel when the target pixel is read.

5. A target recognition algorithm verification data transmission device, characterized in that, include: The reading unit is used to, during the process of reading target test image data embedded with target pixels, obtain target test instruction data corresponding to the target test image data based on the test instruction information carried by the target pixel when the target pixel is read; The sending unit is used to synchronously send the target test image data and the target test instruction data to the target program, so that the target program can execute the target recognition algorithm based on the target test image data and the target test instruction data; An embedding unit is used to embed a preset number of target pixels into test image data to form target test image data, wherein the target pixels carry test instruction information corresponding to the test image data. The number of target pixels is 2. One of the target pixels carries test instruction information including a position identifier corresponding to the test instruction data, and the other target pixel carries test instruction information including a content identifier corresponding to the test instruction data. The step of obtaining target test instruction data corresponding to the target test image data based on the test instruction information carried by the target pixel includes: The target control instruction file containing the test instruction data corresponding to the target test image data is located based on the position identifier in the test instruction information carried by a target pixel. Select target test instruction data from the target control instruction file that corresponds to the content identifier in the test instruction information carried by another target pixel.

6. A target recognition algorithm verification data transmission device, characterized in that, include: A memory and a processor, wherein the memory stores at least one instruction, which is loaded and executed by the processor to implement the target recognition algorithm verification data transmission method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program that, when executed by a processor, implements the target recognition algorithm verification data transmission method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Intelligent vehicle inspection method and system, computer equipment and storage medium

    CN111027371A

  • Code conversion method and device based on verification picture, and computer equipment

    CN111580823A