Image recognition algorithm test method based on artificial intelligence
By constructing test scenarios and using the FasterR-CNN model and the Laplacian of Gaussian pyramid decomposition method, we solve the test problems of image recognition algorithms when the data volume is large and the type is complex, and achieve accurate and fast image recognition performance evaluation, significantly improving Test efficiency and accuracy.
Patent Information
- Application Number
- CN202410589778.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-13
- Publication Date
- 2024-09-10
AI Technical Summary
The existing technology is difficult to provide an accurate and efficient image recognition algorithm testing method, especially when processing images with large amounts of data and complex data types, it is difficult to ensure the accuracy of image recognition.
Through the steps of data collection, classification, design of test scenarios, image preprocessing, simulated image input and performance evaluation, FasterR-CNN model and Gaussian Laplacian pyramid decomposition method are used to construct test scenarios and evaluate the accuracy of the image recognition algorithm. , stability and real-time performance.
It realizes image recognition testing under simulated real scenarios, significantly improves the accuracy and efficiency of testing, saves testing cost and time, and fully reflects the algorithm performance.
Smart Images

Figure CN118628873A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image recognition, and in particular to an image recognition algorithm testing method based on artificial intelligence. Background Art
[0002] In the process of image recognition, with the increasing development of artificial intelligence technology, image recognition technology has been widely used in various fields. Deep learning algorithms provide a very effective feature extraction framework, especially the convolutional neural network in the deep learning network can automatically learn target features from a large amount of data, thereby enhancing the accuracy of image recognition.
[0003] However, in the process of processing images, since images contain a large amount of information and have the characteristics of large data volume and complex and diverse data types, in order to ensure the accuracy of image recognition, it is necessary to test and evaluate the image recognition algorithm. In order to evaluate the performance of the image recognition algorithm, an accurate and efficient testing method is needed. In view of the problems existing in the existing image recognition algorithm testing methods, the present invention proposes an image recognition algorithm testing method based on artificial intelligence. Summary of the invention
[0004] 1. Technical issues to be solved
[0005] In view of the shortcomings of the prior art, the present invention provides an image recognition algorithm testing method based on artificial intelligence, which is mainly used to solve the problem that in the existing process of image processing, since the image contains a large amount of information, has the characteristics of large data volume and complex and diverse data types, in order to ensure the accuracy of image recognition, it is necessary to test and evaluate the image recognition algorithm. In order to evaluate the performance of the image recognition algorithm, an accurate and efficient testing method is needed.
[0006] (II) Technical solution
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] An image recognition algorithm testing method based on artificial intelligence comprises the following steps:
[0009] S1: Data collection, collecting image data in various scenes through image acquisition equipment, and transferring the collected image data to the computer for storage;
[0010] S2: Data processing, after classifying and arranging the data collected in S1 in a computer, an image database is constructed in the computer based on the collected data;
[0011] S3: Design test scenarios. Before image recognition, design different test scenarios based on the actual needs of the image.
[0012] S4: Image preprocessing: Process the images in the image database through image processing software to extract image features;
[0013] S5: simulated image input, after the test scene is constructed, the images in the image database are input in a simulated real scene;
[0014] S6: Execute image recognition, pass the simulated image to the image recognition algorithm to be tested, and obtain the recognition result;
[0015] S7: Performance evaluation: Compare the recognition results obtained in S5 with the preset standard results to evaluate the algorithm performance.
[0016] Furthermore, the image acquisition device is any one or more of a camera, a still camera and a video camera.
[0017] Based on the above solution, the differences in the test scenes include any one or more of different lighting conditions, different angles and different backgrounds.
[0018] As a further solution of the present invention, the test scene is constructed using a FasterR-CNN model.
[0019] Furthermore, the image processing software optimizes each historical image using a Gaussian Laplace pyramid decomposition method to obtain a first image, extracts the contour of the first image to obtain the contour of the historical image, calculates the grayscale histogram of the first image, performs grayscale mean conversion on the grayscale histogram to obtain a second image, extracts features of the second image, and obtains image features of the historical image.
[0020] On the basis of the above scheme, the data generated during the test process are processed and analyzed during the test process, and the processing and analysis content includes image data and recognition results.
[0021] As a further solution of the present invention, the comparison content in S5 includes calculation accuracy, stability and real-time performance.
[0022] (III) Beneficial effects
[0023] Compared with the prior art, the present invention provides an image recognition algorithm testing method based on artificial intelligence, which has the following beneficial effects:
[0024] 1. In the present invention, a test scene is first constructed to simulate the real scene, and image input is performed to recognize the image in the simulated real scene, which greatly restores the real scene and makes the test method closer to practical application.
[0025] 2. After the test is completed, the present invention compares and evaluates the test results with the preset standard results to evaluate the accuracy, stability and real-time performance of the algorithm, which can fully reflect the algorithm performance.
[0026] 3. The testing method of the present invention is simple and easy to implement, and the testing method and testing efficiency are relatively fast, which greatly saves the testing cost and the testing time. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 This is a schematic diagram of the process structure of an image recognition algorithm testing method based on artificial intelligence proposed by the present invention. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] Example 1
[0030] Reference Figure 1 , an image recognition algorithm testing method based on artificial intelligence, comprising the following steps:
[0031] S1: Data collection, collecting image data in various scenes through image acquisition equipment, and transferring the collected image data to the computer for storage;
[0032] S2: Data processing, after classifying and arranging the data collected in S1 in a computer, an image database is constructed in the computer based on the collected data;
[0033] S3: Design test scenarios. Before image recognition, design different test scenarios based on the actual needs of the image.
[0034] S4: Image preprocessing: Process the images in the image database through image processing software to extract image features;
[0035] S5: simulated image input. After the test scene is constructed, the images in the image database are input in the simulated real scene. By first constructing the test scene, simulating the real scene, and inputting the image in the simulated real scene to recognize the image, the real scene is greatly restored, making the test method closer to actual application.
[0036] S6: Execute image recognition, pass the simulated image to the image recognition algorithm to be tested, and obtain the recognition result;
[0037] S7: Performance evaluation: Compare the recognition results obtained in S5 with the preset standard results to evaluate the algorithm performance. After the test is completed, compare the test results with the preset standard results to evaluate the accuracy, stability and real-time performance of the algorithm, which can fully reflect the algorithm performance. At the same time, the test method is simple and easy, and the test method and test efficiency are fast, which greatly saves the cost of testing and saves the time of testing.
[0038] In the present invention, the image acquisition devices are cameras and video cameras, the differences in test scenes include different lighting conditions and different backgrounds, the FasterR-CNN model is used to construct the test scene, the image processing software uses the Gaussian Laplace pyramid decomposition method to optimize each historical image to obtain a first image, extract the contour of the first image to obtain the contour of the historical image, calculate the grayscale histogram of the first image, perform grayscale mean conversion on the grayscale histogram to obtain a second image, extract features of the second image to obtain image features of the historical image, and process and analyze the data generated during the test process, the processing and analysis content includes image data and recognition results, and the comparison content in S5 includes calculation accuracy, stability and real-time performance.
[0039] Example 2
[0040] Reference Figure 1 , an image recognition algorithm testing method based on artificial intelligence, comprising the following steps:
[0041] S1: Data collection, collecting image data in various scenes through image acquisition equipment, and transferring the collected image data to the computer for storage;
[0042] S2: Data processing, after classifying and arranging the data collected in S1 in a computer, an image database is constructed in the computer based on the collected data;
[0043] S3: Design test scenarios. Before image recognition, design different test scenarios based on the actual needs of the image.
[0044] S4: Image preprocessing: Process the images in the image database through image processing software to extract image features;
[0045] S5: simulated image input. After the test scene is constructed, the images in the image database are input in the simulated real scene. By first constructing the test scene, simulating the real scene, and inputting the image in the simulated real scene to recognize the image, the real scene is greatly restored, making the test method closer to actual application.
[0046] S6: Execute image recognition, pass the simulated image to the image recognition algorithm to be tested, and obtain the recognition result;
[0047] S7: Performance evaluation: Compare the recognition results obtained in S5 with the preset standard results to evaluate the algorithm performance. After the test is completed, compare the test results with the preset standard results to evaluate the accuracy, stability and real-time performance of the algorithm, which can fully reflect the algorithm performance. At the same time, the test method is simple and easy, and the test method and test efficiency are fast, which greatly saves the cost of testing and saves the time of testing.
[0048] In the present invention, the image acquisition device is a camera, and the differences in the test scenes include different lighting conditions and different angles. The FasterR-CNN model is used to construct the test scene. The image processing software uses the Gaussian Laplace pyramid decomposition method to optimize each historical image to obtain a first image, extract the contour of the first image to obtain the contour of the historical image, calculate the grayscale histogram of the first image, perform grayscale mean conversion on the grayscale histogram to obtain a second image, extract the features of the second image, and obtain the image features of the historical image. During the test, the data generated during the test is processed and analyzed, and the processing and analysis content includes image data and recognition results. The comparison content in S5 includes calculation accuracy, stability and real-time performance.
[0049] Example 3
[0050] Reference Figure 1 , an image recognition algorithm testing method based on artificial intelligence, comprising the following steps:
[0051] S1: Data collection, collecting image data in various scenes through image acquisition equipment, and transferring the collected image data to the computer for storage;
[0052] S2: Data processing, after classifying and arranging the data collected in S1 in a computer, an image database is constructed in the computer based on the collected data;
[0053] S3: Design test scenarios. Before image recognition, design different test scenarios based on the actual needs of the image.
[0054] S4: Image preprocessing: Process the images in the image database through image processing software to extract image features;
[0055] S5: simulated image input. After the test scene is constructed, the images in the image database are input in the simulated real scene. By first constructing the test scene, simulating the real scene, and inputting the image in the simulated real scene to recognize the image, the real scene is greatly restored, making the test method closer to actual application.
[0056] S6: Execute image recognition, pass the simulated image to the image recognition algorithm to be tested, and obtain the recognition result;
[0057] S7: Performance evaluation: Compare the recognition results obtained in S5 with the preset standard results to evaluate the algorithm performance. After the test is completed, compare the test results with the preset standard results to evaluate the accuracy, stability and real-time performance of the algorithm, which can fully reflect the algorithm performance. At the same time, the test method is simple and easy, and the test method and test efficiency are fast, which greatly saves the cost of testing and saves the time of testing.
[0058] In the present invention, the image acquisition device is a camera, a still camera and a video camera. The differences in the test scenes include different lighting conditions, different angles and different backgrounds. The FasterR-CNN model is used to construct the test scene. The image processing software optimizes each historical image using a Gaussian Laplace pyramid decomposition method to obtain a first image, extracts the contour of the first image to obtain the contour of the historical image, calculates the grayscale histogram of the first image, performs grayscale mean conversion on the grayscale histogram to obtain a second image, extracts features of the second image to obtain image features of the historical image, and processes and analyzes data generated during the test process. The processing and analysis content includes image data and recognition results. The comparison content in S5 includes calculation accuracy, stability and real-time performance.
[0059] In the description of this article, it should be noted that relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
Claims
1. An image recognition algorithm testing method based on artificial intelligence, characterized in that: The following steps are involved: S1: Data collection, collecting image data in various scenes through image acquisition equipment, and transferring the collected image data to the computer for storage; S2: Data processing, after classifying and arranging the data collected in S1 in a computer, an image database is constructed in the computer based on the collected data; S3: Design test scenarios. Before image recognition, design different test scenarios based on the actual needs of the image. S4: Image preprocessing: Process the images in the image database through image processing software to extract image features; S5: simulated image input, after the test scene is constructed, the images in the image database are input in a simulated real scene; S6: Execute image recognition, pass the simulated image to the image recognition algorithm to be tested, and obtain the recognition result; S7: Performance evaluation: Compare the recognition results obtained in S5 with the preset standard results to evaluate the algorithm performance.
2. The method for testing an image recognition algorithm based on artificial intelligence according to claim 1, characterized in that: The image acquisition device is any one or more of a camera, a still camera and a video camera.
3. The method for testing an image recognition algorithm based on artificial intelligence according to claim 1, characterized in that: The differences in the test scenes include any one or more of different lighting conditions, different angles and different backgrounds.
4. The method for testing an image recognition algorithm based on artificial intelligence according to claim 1, characterized in that: The constructed test scene adopts the FasterR-CNN model.
5. The method for testing an image recognition algorithm based on artificial intelligence according to claim 1, characterized in that: The image processing software optimizes each historical image using the Gaussian Laplace pyramid decomposition method to obtain a first image, extracts the contour of the first image to obtain the contour of the historical image, calculates the grayscale histogram of the first image, performs grayscale mean conversion on the grayscale histogram to obtain a second image, extracts features of the second image, and obtains image features of the historical image.
6. The method for testing an image recognition algorithm based on artificial intelligence according to claim 5, characterized in that: The data generated during the test are processed and analyzed, and the processing and analysis content includes image data and recognition results.
7. The method for testing an image recognition algorithm based on artificial intelligence according to claim 1, characterized in that: The comparison contents in S5 include calculation accuracy, stability and real-time performance.
Citation Information
Patent Citations
Computer image recognition function and performance related test method
CN114721962A
House type image recognition and modeling method based on artificial intelligence image recognition
CN115410218A
Data acquisition and reading method based on computer vision image
CN116503622A
Image recognition method and system based on artificial intelligence
CN117649531A
Cited By
Intelligent testing method for bonding function of high-temperature bonding machine for connecting pipe
CN121026638A
