Analysis device, analysis method, and analysis program
The analysis device optimizes compression levels for AI image recognition by using error backpropagation to generate feature maps, addressing inefficient compression and calculation issues in conventional methods.
Patent Information
- Application Number
- JP2022569367
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-12-15
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2040-12-15
AI Technical Summary
Conventional compression processing for image data is not optimized for AI-based image recognition, leading to insufficient compression levels in regions unnecessary for recognition and increased computational load due to unnecessary analysis before compression.
An analysis device determines optimal compression levels for each region based on the influence on AI recognition results, using error backpropagation to generate important feature maps and aggregate influence values, allowing for compression processing tailored to AI recognition needs with reduced calculations.
Achieves compression processing suitable for AI image recognition with a reduced computational burden by determining optimal compression levels for each region, thereby simplifying the processing and reducing unnecessary calculations.
Smart Images

Figure 0007533622000012 
Figure 0007533622000006 
Figure 0007533622000014
Abstract
Description
[Technical field]
[0001] The present invention relates to an analysis device, an analysis method, and an analysis program. [Background technology]
[0002] Generally, when image data is recorded or transmitted, the data size is reduced by compression processing, thereby reducing the recording or transmission costs.
[0003] On the other hand, in recent years, there has been an increase in the number of cases where image data is recorded or transmitted for the purpose of being used for image recognition processing by AI (Artificial Intelligence).Typical AI models include models that use deep learning and machine learning. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2018-101406 A [Patent Document 2] JP 2019-079445 A [Patent Document 3] JP 2011-234033 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, conventional compression processing is based on human visual characteristics, not on AI behavior analysis, which means that areas that are not necessary for AI image recognition processing may not be compressed at a sufficient level.
[0006] On the other hand, if an analysis device or the like is used to analyze areas that are not necessary for AI-based image recognition processing before compression processing, it is expected that the amount of calculations required by the analysis device or the like will increase.
[0007] On one aspect, the goal is to realize compression processing suitable for image recognition processing by AI while reducing the amount of calculation. [Means for solving the problem]
[0008] According to one aspect, an analysis device includes: a determination unit that determines a first compression level for each region based on a degree of influence on a recognition result for each region when a recognition process is performed on each image data item after image quality has been changed; a calculation unit that, when the image data compressed at a second compression level corresponding to the first compression level is decoded, performs a recognition process on the decoded data and calculates a recognition result; The image processing device further comprises a determination unit which determines, depending on the calculated recognition result, whether the image data is to be compressed at the first compression level or the second compression level. Effect of the Invention
[0009] Compression processing suitable for image recognition processing by AI can be achieved with a reduced amount of calculation. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a diagram illustrating an example of a system configuration of a compression processing system. [Diagram 2] FIG. 2 is a diagram illustrating an example of a hardware configuration of the analysis device or the image compression device. [Diagram 3] FIG. 3 is a first diagram illustrating an example of a functional configuration of the analysis device. [Figure 4] FIG. 4 is a diagram showing a specific example of the counting result. [Diagram 5] FIG. 5 is a first diagram showing a specific example of the processes performed by the quantization value setting unit, the accuracy evaluating unit, and the quantization value determining unit. [Figure 6] FIG. 6 is a diagram illustrating an example of a functional configuration of an image compression device. [Figure 7]FIG. 7 is a first flowchart showing an example of the flow of the compression process by the compression processing system. [Figure 8] FIG. 8 is a second diagram illustrating an example of the functional configuration of the analysis device. [Figure 9] FIG. 9 is a second diagram showing a specific example of the processes performed by the quantization value setting unit, the accuracy evaluating unit, and the quantization value determining unit. [Figure 10] FIG. 10 is a second flowchart showing an example of the flow of the compression process by the compression processing system. [Figure 11] FIG. 11 is a third diagram illustrating an example of a functional configuration of the analysis device. [Figure 12] FIG. 12 is a diagram showing a specific example of processing by the CNN unit. [Figure 13] FIG. 13 is a diagram showing a specific example of the process performed by the quantization value determination unit. [Figure 14] FIG. 14 is a third flowchart showing an example of the flow of the compression process by the compression processing system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, each embodiment will be described with reference to the accompanying drawings. In this specification and the drawings, components having substantially the same functional configurations are denoted by the same reference numerals, and redundant description will be omitted.
[0012] [First embodiment] <System configuration of compression processing system> First, a system configuration of an entire compression processing system including an analysis device according to a first embodiment will be described. Fig. 1 is a first diagram showing an example of the system configuration of a compression processing system. In the first embodiment, the processing executed by the compression processing system can be roughly divided into a phase for determining a compression level (a quantization value according to the compression level) and a phase for performing compression processing based on the determined compression level (a quantization value according to the compression level).
[0013] In Fig. 1, 1a shows the system configuration of a compression processing system in a phase where a compression level (a quantization value corresponding to the compression level) is determined, and 1b shows the system configuration of a compression processing system in a phase where compression processing is performed based on the determined compression level (a quantization value corresponding to the compression level).
[0014] As shown in FIG. 1A, the compression processing system in the phase of determining the compression level (the quantization value corresponding to the compression level) includes an image capture device 110, an analysis device 120, and an image compression device .
[0015] The imaging device 110 captures images at a predetermined frame rate and transmits the image data to the analysis device 120. Note that the image data includes an object to be subjected to the recognition process.
[0016] The analysis device 120 has a trained model that performs recognition processing. The analysis device 120 performs recognition processing by inputting image data or decoded data (decoded data obtained by decoding compressed data when compression processing is performed on image data at different compression levels) into the trained model, and outputs the recognition result.
[0017] In addition, the analysis device 120 generates a map (referred to as an "important feature map") indicating the degree of influence on the recognition result by, for example, performing an operational analysis of the trained model using the backpropagation method, and tally up the degree of influence for each specified area (each block used when the compression process is performed).
[0018] The analysis device 120 instructs the image compression device 130 to perform compression processing at a predetermined number of different compression levels (corresponding quantization values), and repeats the same processing for the compressed data when compression processing is performed at each compression level. In other words, the analysis device 120 changes the image quality of the image data, and tallies the degree of influence on the recognition result of each block for each image data after the change.
[0019] Furthermore, the analysis device 120 determines the optimum compression level (the quantization value corresponding to each) for each block from among a predetermined number of different compression levels based on the change in the aggregate value for each compression level (the quantization value corresponding to each compression level). Note that the optimum compression level (the quantization value corresponding to each compression level) refers to the maximum compression level (the quantization value corresponding to each compression level) among the predetermined number of different compression levels that allows an object included in the image data to be correctly recognized and processed.
[0020] Furthermore, the analysis device 120 instructs the image compression device 130 to perform compression processing at a compression level (a quantization value corresponding to the compression level) that is between a predetermined number of different compression levels and is higher than the determined compression level.
[0021] In addition, the analysis device 120 decodes compressed data that has been compressed at a compression level higher than the determined compression level, and inputs the decoded data to the trained model, thereby outputting the recognition result.
[0022] Furthermore, depending on whether the output recognition result is equal to or greater than a predetermined tolerance, the analysis device 120 ultimately determines whether to perform compression processing at the determined compression level or at a compression level higher than the determined compression level.
[0023] On the other hand, as shown in FIG. 1B, the compression processing system in the phase in which compression processing is performed based on the determined compression level (the quantization value corresponding to the determined compression level) includes an analysis device 120, an image compression device 130, and a storage device 140.
[0024] The analysis device 120 transmits the compression level (the quantization value corresponding to the compression level) determined for each block and the image data to the image compression device 130.
[0025] The image compression device 130 performs compression processing on the image data using the determined compression level (a quantization value corresponding to the determined compression level), and stores the compressed data in the storage device 140.
[0026] In this way, the analysis device 120 according to this embodiment calculates the degree of influence of each block on the recognition result, and determines the compression level suitable for the recognition process using the trained model from among a predetermined number of different compression levels. This simplifies the process of determining the compression level suitable for the recognition process (i.e., reduces the amount of calculation).
[0027] Moreover, in the analysis device 120 according to the present embodiment, whether or not a compression process at a higher compression level than the determined compression level is possible is determined by comparing the recognition result with a tolerance (i.e., the determination is made without generating an important feature map). This simplifies the process of determining whether or not a higher compression level is appropriate (i.e., the amount of calculation can be reduced).
[0028] As a result, analysis device 120 according to this embodiment can achieve compression processing suitable for image recognition processing by AI with a reduced amount of calculation.
[0029] <Hardware configuration of analysis device and image compression device> Next, a description will be given of the hardware configurations of analysis device 120 and image compression device 130. Since analysis device 120 and image compression device 130 have similar hardware configurations, both devices will be described together here using FIG.
[0030] 2 is a diagram showing an example of a hardware configuration of an analysis device or an image compression device. Analysis device 120 or image compression device 130 has a processor 201, a memory 202, an auxiliary storage device 203, an I / F (Interface) device 204, a communication device 205, and a drive device 206. The hardware components of analysis device 120 or image compression device 130 are connected to each other via a bus 207.
[0031] The processor 201 has various arithmetic devices such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), etc. The processor 201 reads various programs (for example, an analysis program or an image compression program described later) onto the memory 202 and executes them.
[0032] The memory 202 has a main storage device such as a ROM (Read Only Memory), a RAM (Random Access Memory), etc. The processor 201 and the memory 202 form a so-called computer, and the processor 201 executes various programs read onto the memory 202, causing the computer to realize various functions (the various functions will be described in detail later).
[0033] The auxiliary storage device 203 stores various programs and various data used when the processor 201 executes the various programs.
[0034] The I / F device 204 is a connection device that connects an operation device 210, which is an example of an external device, and a display device 220 with the analysis device 120 or the image compression device 130. The I / F device 204 accepts operations for the analysis device 120 or the image compression device 130 via the operation device 210. The I / F device 204 also outputs the results of processing by the analysis device 120 or the image compression device 130 and displays them via the display device 220.
[0035] The communication device 205 is a communication device for communicating with other devices. In the case of the analysis device 120, it communicates with the imaging device 110 and the image compression device 130 via the communication device 205. In the case of the image compression device 130, it communicates with the analysis device 120 and the storage device 140 via the communication device 205.
[0036] The drive device 206 is a device for setting the recording medium 230. The recording medium 230 here includes media that record information optically, electrically, or magnetically, such as a CD-ROM, a flexible disk, a magneto-optical disk, etc. The recording medium 230 may also include semiconductor memories that record information electrically, such as ROM, flash memory, etc.
[0037] The various programs to be installed in the auxiliary storage device 203 are installed, for example, by setting the distributed recording medium 230 in the drive device 206 and reading out the various programs recorded in the recording medium 230 by the drive device 206. Alternatively, the various programs to be installed in the auxiliary storage device 203 may be installed by being downloaded from a network via the communication device 205.
[0038] <Functional configuration of the analysis device> Next, the functional configuration of analysis device 120 will be described. Fig. 3 is a first diagram showing an example of the functional configuration of an analysis device. As described above, an analysis program is installed in analysis device 120, and analysis device 120 functions as input unit 310, CNN unit 320, quantization value setting unit 330, and output unit 340 by executing the program. Analysis device 120 also functions as important feature map generation unit 350, aggregation unit 360, accuracy evaluation unit 370, and quantization value determination unit 380.
[0039] The input unit 310 acquires image data transmitted from the imaging device 110, or compressed data transmitted from the image compression device 130. The input unit 310 notifies the acquired image data to the CNN unit 320 and the output unit 340. The input unit 310 also decodes the acquired compressed data using a decoding unit (not shown), and notifies the CNN unit 320 of the decoded data.
[0040] The CNN unit 320 is an example of a calculation unit and has a trained model. The CNN unit 320 receives image data or decoded data, performs recognition processing on objects included in the image data or decoded data, and outputs the recognition result.
[0041] The quantization value setting unit 330 is an example of a determination unit. The quantization value setting unit 330 sequentially notifies the output unit 340 of quantization values corresponding to a predetermined number of different compression levels (four types of compression levels in this embodiment) used when the image compression device 130 performs compression processing.
[0042] Furthermore, in response to notifying the output unit 340 of the quantization values corresponding to the predetermined number of different compression levels, the quantization value setting unit 330 reads out the counted values corresponding to the predetermined number of compression levels from the counted result storage unit 390. Furthermore, the quantization value setting unit 330 determines an optimal compression level from among the predetermined number of different compression levels based on the read out counted values. Furthermore, the quantization value setting unit 330 notifies the quantization value determination unit 380 of a quantization value (referred to as a "provisional quantization value") corresponding to the determined optimal compression level (first compression level).
[0043] Furthermore, the quantization value setting unit 330 notifies the output unit 340 and the quantization value determination unit 380 of a quantization value (referred to as an "interpolated quantization value") corresponding to a compression level (second compression level) that is between a predetermined number of different compression levels and is higher than the determined optimal compression level.
[0044] The output unit 340 transmits the image data acquired by the input unit 310 to the image compression device 130. The output unit 340 also sequentially transmits each quantization value (or interpolated quantization value) notified by the quantization value setting unit 330 to the image compression device 130. Furthermore, the output unit 340 transmits the quantization value determined by the quantization value determination unit 380 (referred to as the "determined quantization value") to the image compression device 130.
[0045] The important feature map generation unit 350 is an example of a map generation unit, and generates an important feature map using an error backpropagation method from errors calculated based on the recognition results when a trained model performs recognition processing on image data or decoded data.
[0046] The important feature map generating unit 350 generates the important feature map by using, for example, a back propagation (BP) method, a guided back propagation (GBP) method, or a selective BP method.
[0047] The BP method is a method for visualizing features by calculating the error of each label from the score obtained by performing recognition processing on image data (or decoded data) whose recognition result is the correct label, and visualizing the magnitude of the gradient obtained by backpropagating it to the input layer.The GBP method is a method for visualizing features by visualizing only the positive values of the gradient information as features.
[0048] Furthermore, the selective BP method is a method that maximizes only the error of the correct label and then uses the BP method or GBP method for backpropagation. In the case of the selective BP method, the feature parts that are visualized are the feature parts that only affect the score of the correct label.
[0049] In this way, the important feature map generating unit 350 uses the error backpropagation results obtained by the error backpropagation method such as the BP method, the GBP method, or the selective BP method. As a result, the important feature map generating unit 350 analyzes the signal flow and strength of each path in the CNN unit 320 from when the image data or decoded data is input to when the recognition result is output. As a result, the important feature map generating unit 350 can visualize to what extent which area of the input image data or decoded data has an influence on the recognition result.
[0050] The method for generating an important feature map using the backpropagation method is, for example, "Selvaraju, Ramprasaath R., et al. "Grad-cam: Visual explanations from deep networks via gradient-based localization." The IEEE International Conference on Computer Vision (ICCV), 2017, pp. 618-626", This is disclosed in the literature.
[0051] The counting unit 360 counts the influence of each region on the recognition result for each block based on the important feature map, and calculates a count value of the influence for each block. The counting unit 360 also stores the calculated count value for each block in the count result storage unit 390 in association with the quantization value.
[0052] The accuracy evaluation unit 370 The output unit 340 transmits the interpolated quantized values, and the image compression device 130 performs compression processing based on the interpolated quantized values. The compressed data transmitted from the image compression device 130 is decoded in the input unit 310, When the decoded data is input to the CNN unit 320 and the recognition process is performed, the recognition result is output. The recognition result is obtained from the CNN unit 320. In addition, the accuracy evaluation unit 370 evaluates whether the recognition result obtained from the CNN unit 320 is equal to or greater than a predetermined allowable value, and notifies the quantization value determination unit 380 of the evaluation result.
[0053] The quantization value determination unit 380 is an example of a determination unit, and determines a determined quantization value based on the evaluation result notified by the accuracy evaluation unit 370, and notifies the output unit 340. Specifically, when the accuracy evaluation unit 370 notifies the quantization value determination unit 380 that the evaluation result is equal to or greater than a predetermined allowable value, the quantization value determination unit 380 determines the interpolated quantization value notified by the quantization value setting unit 330 as the determined quantization value, and notifies the output unit 340.
[0054] On the other hand, if the accuracy evaluation unit 370 reports that the evaluation result is less than the specified tolerance, the provisional quantization value reported by the quantization value setting unit 330 is determined to be the final quantization value and reported to the output unit 340.
[0055] <Examples of the results> Next, a specific example of the tally results stored in the tally result storage unit 390 will be described. FIG. 4 is a diagram showing a specific example of the tally results. Of these, 4a shows an example of the arrangement of blocks in image data 410. As shown in 4a, in this embodiment, for the sake of simplicity of explanation, it is assumed that all blocks in the image data 410 are the same size. Also, in the example of 4a, the block number of the upper left block of the image data is "block 1", and the block number of the lower right block is "block m".
[0056] As shown in 4b, the counting result 420 includes information items such as "block number" and "quantization value."
[0057] "Block number" stores the block number of each block in image data 410. "Quantization value" stores "no compression", which indicates that image compression device 130 does not perform compression processing, and quantization values ("Q1" to "Q4") corresponding to four types of compression levels used when image compression device 130 performs compression processing.
[0058] In addition, in the counting result 420, the area specified by the "block number" and the "quantization value" includes the following: Perform a compression process on the image data 410 using the corresponding quantization value; By inputting the decoded data obtained by decoded compressed data, the trained model performs recognition processing. Based on the important feature map calculated when the recognition process was performed, the data was collected in the corresponding block. The aggregated value is stored.
[0059] <Specific examples of processing by the quantization value setting unit, the accuracy evaluation unit, and the quantization value determination unit> Next, a specific example of the processing by the quantization value setting unit 330, the accuracy evaluation unit 370, and the quantization value determination unit 380 will be described. Fig. 5 is a first diagram showing a specific example of the processing by the quantization value setting unit, the accuracy evaluation unit, and the quantization value determination unit. In Fig. 5, graphs 510_1 to 510_m are graphs generated by plotting the aggregated values of each block included in the aggregation result 420, with the quantization value on the horizontal axis and the aggregated value on the vertical axis.
[0060] As shown in graphs 510_1 to 510_m, the change in the aggregate value when compression processing is performed using quantization values ("Q1" to "Q4") corresponding to four types of compression levels differs for each block. If the size of the aggregated value exceeds a certain threshold, or -When the change in the aggregated value exceeds a certain threshold, or If the slope of the aggregated values exceeds a certain threshold, or If the change in the slope of the aggregated value exceeds a certain threshold, The quantization value that satisfies any one of the above conditions is determined as the provisional quantization value of each block.
[0061] The example of Fig. 5 indicates that the quantization value setting unit 330 has determined the provisional quantization value to be "Q3" based on the graph 510_1. The example of Fig. 5 also indicates that the quantization value setting unit 330 has determined the provisional quantization value to be "Q1" based on the graph 510_2. The example of Fig. 5 also indicates that the quantization value setting unit 330 has determined the provisional quantization value to be "Q2" based on the graph 510_3. Furthermore, the example of Fig. 5 indicates that the quantization value setting unit 330 has determined the provisional quantization value to be "Q3" based on the graph 510_m.
[0062] As shown in graphs 510_1 to 510_m, an interpolated quantization value (i.e., a quantization value higher than the provisional quantization value) corresponding to a compression level between the four compression levels and higher than the optimal compression level is transmitted to image compression device 130. x1 , Q x2 , Q x3, Q xm is transmitted to the image compression device 130 as the interpolated quantized value.
[0063] As a result, the image compression device 130 performs compression processing using the interpolated quantization value, and the CNN unit 320 performs recognition processing on the decoded data obtained by decoding the compressed data. The accuracy evaluation unit 370 determines whether the recognition result is equal to or greater than a permissible value, and the quantization value determination unit 380 determines a quantization value based on the determination result.
[0064] The example in Figure 5 shows the interpolation quantization value = "Q x1 ", and recognition processing is performed on the decoded data obtained by decoding the compressed data, thereby outputting recognition result 1. It also shows that the output recognition result 1 is determined to be less than the allowable value, and therefore the provisional quantization value="Q3" is determined as the final quantization value (B1Q) of block 1.
[0065] In addition, in the example of FIG. 5, the interpolation quantization value ="Q x2 ", and recognition processing is performed on the decoded data obtained by decoding the compressed data, thereby outputting recognition result 2. In addition, it is shown that the output recognition result 2 is determined to be less than the allowable value, and therefore the provisional quantization value="Q1" is determined as the final quantization value (B2Q) of block 2.
[0066] In addition, in the example of FIG. 5, the interpolation quantization value ="Q x3 ", and recognition processing is performed on the decoded data obtained by decoding the compressed data, thereby outputting recognition result 3. It also shows that the output recognition result 3 is determined to be less than the allowable value, and therefore the provisional quantization value="Q2" is determined as the final quantization value (B3Q) of block 3.
[0067] Furthermore, the example of FIG. 5 shows that the interpolation quantization value ="Q xm", and the compressed data is decoded and a recognition process is performed on the decoded data, and the recognition result m is output. In addition, since the output recognition result m is determined to be equal to or greater than the allowable value, the interpolation quantization value ="Q xm " is the decision quantization value of block 3 (B m Q) was determined.
[0068] In FIG. 5, reference numeral 530 denotes the determined quantization values of block 1 to block m, B1Q to B m This shows how Q is determined and set in the corresponding block.
[0069] The block size used for counting does not have to match the block size used for compression processing. In that case, the quantization value determination unit 380 determines the quantization value, for example, as follows. When the block size used for compression is larger than the block size used for aggregation The average value of the quantization values based on the aggregated values of each block contained in the block to be used for compression processing (or a value processed using the minimum value, maximum value, or other index) is used as the quantization value of each block to be used for compression processing. When the block size used for compression is smaller than the block size used for aggregation As the quantization value of each block included in the block at the time of aggregation and used in the compression process, a quantization value based on the aggregated value of the block at the time of aggregation is used.
[0070] <Functional configuration of the image compression device> Next, a description will be given of the functional configuration of the image compression device 130. Fig. 6 is a diagram showing an example of the functional configuration of the image compression device 130. As described above, an image compression program is installed in the image compression device 130, and the image compression device 130 functions as an encoding unit 620 by executing the program.
[0071] The coding unit 620 is an example of a compression unit. The coding unit 620 includes a difference unit 621, an orthogonal transform unit 622, a quantization unit 623, an entropy coding unit 624, an inverse quantization unit 625, and an inverse orthogonal transform unit 626. The coding unit 620 also includes an adder 627, a buffer unit 628, an in-loop filter unit 629, a frame buffer unit 630, an intra-screen prediction unit 631, and an inter-screen prediction unit 632.
[0072] The difference unit 621 calculates the difference between image data (for example, the image data 410) and predicted image data, and outputs a prediction residual signal.
[0073] The orthogonal transform unit 622 performs an orthogonal transform process on the prediction residual signal output by the subtraction unit 621 .
[0074] The quantization unit 623 quantizes the prediction residual signal that has been subjected to the orthogonal transform process to generate a quantized signal. The quantization unit 623 generates the quantized signal using the quantization value indicated by the reference numeral 530 (the quantization value (the quantization value corresponding to the four types of compression levels, the interpolated quantization value) transmitted from the analysis device 120 or the determined quantization value).
[0075] The entropy encoding unit 624 performs entropy encoding processing on the quantized signal to generate compressed data.
[0076] The inverse quantization unit 625 inverse quantizes the quantized signal. The inverse orthogonal transformation unit 626 performs an inverse orthogonal transformation process on the inverse quantized signal.
[0077] The adder 627 generates reference image data by adding the signal output from the inverse orthogonal transformer 626 and the predicted image data. The buffer 628 stores the reference image data generated by the adder 627.
[0078] The in-loop filter unit 629 performs a filter process on the reference image data stored in the buffer unit 628. The in-loop filter unit 629 includes: Deblocking filter (DB), Sample Adaptive Offset filter (SAO), -Adaptive loop filter (ALF), Includes:
[0079] The frame buffer unit 630 stores the reference image data filtered by the in-loop filter unit 629 on a frame-by-frame basis.
[0080] The intra prediction unit 631 performs intra prediction based on the reference image data to generate predicted image data. The inter prediction unit 632 performs motion compensation between frames using the input image data (for example, the image data 410) and the reference image data to generate predicted image data.
[0081] The predicted image data generated by the intra prediction unit 631 or the inter prediction unit 632 is output to the subtraction unit 621 and the addition unit 627 .
[0082] In the above description, the encoding unit 620 performs the compression process using an existing video encoding method such as MPEG-2, MPEG-4, H.264, HEVC, etc. However, the compression process by the encoding unit 620 is not limited to these video encoding methods, and may be performed using any encoding method in which the compression rate is controlled by parameters such as quantization.
[0083] <Compression process flow by the compression processing system> Next, a description will be given of the flow of compression processing by the compression processing system 100. Fig. 7 is a first flowchart showing an example of the flow of compression processing by the compression processing system.
[0084] In step S701, the quantization value setting unit 330 initializes the compression level (sets the quantization value (Q1)), and sets the upper limit of the compression level (sets the quantization value (Q4)).
[0085] In step S702, the input unit 310 acquires image data frame by frame, and the CNN unit 320 performs recognition processing on the image data. In addition, the important feature map generation unit 350 generates an important feature map, and the counting unit 360 counts the influence degree of each region block by block, and stores the counting result in the counting result storage unit 390.
[0086] In step S703, the output unit 340 transmits the image data and the current compression level (the quantization value according to the current compression level) to the image compression device 130. The image compression device 130 compresses the transmitted image data at the current compression level (the quantization value according to the current compression level) to generate compressed data.
[0087] In step S704, the input unit 310 acquires compressed data and generates decoded data by decoding the acquired compressed data. The CNN unit 320 performs recognition processing on the decoded data. The important feature map generating unit 350 generates an important feature map, and the counting unit 360 counts the influence degree of each region on a block-by-block basis and stores the counting result in the counting result storage unit 390.
[0088] In step S705, the quantization value setting unit 330 increases the compression level (here, sets the quantization value (Q2)).
[0089] In step S706, the quantization value setting unit 330 judges whether the current compression level exceeds the upper limit (whether the current quantization value exceeds the maximum quantization value (Q4)). If it is judged in step S706 that the current compression level does not exceed the upper limit (No in step S706), the process returns to step S703.
[0090] On the other hand, if it is determined in step S706 that the current compression level has exceeded the upper limit (Yes in step S706), the process proceeds to step S707.
[0091] In step S707, the quantization value setting unit 330 determines a provisional quantization value according to the optimal compression level for each block, based on the counting result stored in the counting result storage unit 390.
[0092] In step S708, the quantization value setting unit 330 notifies the output unit 340 of an interpolated quantization value higher than the determined provisional quantization value, and the output unit 340 transmits the interpolated quantization value to the image compression device 130. In addition, the image compression device 130 performs a compression process on the image data using the interpolated quantization value to generate compressed data.
[0093] In step S709, the input unit 310 acquires compressed data and generates decoded data by decoding the acquired compressed data. The CNN unit 320 performs recognition processing on the decoded data. The accuracy evaluation unit 370 evaluates whether the recognition result is equal to or exceeds a predetermined allowable value.
[0094] In step S710, the quantization value determination unit 380 determines a final quantization value based on the evaluation result, and transmits the final quantization value to the image compression device .
[0095] In step S711, the image compression device 130 compresses the image data with the determined quantization value and stores the compressed data in the storage device 140.
[0096] As is clear from the above description, the analysis device according to the first embodiment acquires each compressed data when a compression process is performed on image data using a predetermined number of different compression levels (quantization values corresponding to the compression levels). The analysis device according to the first embodiment performs a recognition process on decoded data obtained by decoding each compressed data, and generates an important feature map indicating the degree of influence of each region on the recognition result by using an error backpropagation method from an error calculated based on the recognition result. The analysis device according to the first embodiment also aggregates the influence degree on a block basis based on the important feature map, and determines a provisional quantization value corresponding to an optimal compression level for each block of image data based on the aggregate value of each block corresponding to a predetermined number of different compression levels. The analysis device according to the first embodiment also performs a compression process using an interpolation quantization value corresponding to a compression level that is between the predetermined number of different compression levels and is higher than the determined compression level, and acquires compressed data. The analysis device according to the first embodiment also determines either the provisional quantization value or the interpolation quantization value as the determined quantization value depending on whether the recognition result of decoded data obtained by decoding the acquired compressed data is equal to or greater than the allowable value.
[0097] In this way, the analysis device according to the first embodiment determines a compression level (a provisional quantification value corresponding to) suitable for recognition processing from among a predetermined number of different compression levels. This makes it possible to simplify the processing up to determining a compression level suitable for recognition processing. Furthermore, the analysis device according to the first embodiment determines whether or not compression processing is possible at a compression level higher than the determined compression level by comparing the recognition result with an allowable value (i.e., without generating an important feature map). This makes it possible to simplify the processing up to determining whether or not a higher compression level is suitable.
[0098] As a result, according to the first embodiment, compression processing suitable for image recognition processing by AI can be realized with a reduced amount of calculation.
[0099] [Second embodiment] In the above first embodiment, a case has been described in which the compression process is performed using quantization values corresponding to four different compression levels when determining the final quantization value based on the degree of influence on the recognition result.
[0100] In contrast, in the second embodiment, a case will be described in which a compression process is performed using one predetermined type of quantization value to determine a determined quantization value. The second embodiment will be described below, focusing on the differences from the first embodiment.
[0101] <Functional configuration of the analysis device> First, the functional configuration of the analysis device 120 according to the second embodiment will be described. Fig. 8 is a second diagram showing an example of the functional configuration of the analysis device. The difference from the functional configuration shown in Fig. 3 is that the functions of the quantization value setting unit 810, the output unit 820, the accuracy evaluation unit 830, and the quantization value determination unit 840 are different from the functions of the quantization value setting unit 330, the output unit 340, the accuracy evaluation unit 370, and the quantization value determination unit 380.
[0102] The quantization value setting unit 810 is another example of a determination unit, and is a quantization value (Q n ) to the output unit 820. In response to notifying the output unit 340 of the quantization value corresponding to the predetermined type of compression level, the quantization value setting unit 810 reads out a counted value corresponding to the predetermined type of compression level from the counted result storage unit 390. In addition, the quantization value setting unit 810 determines a group to which the read counted value belongs, and notifies the quantization value decision unit 840 of a quantization value corresponding to an optimal compression level (first compression level) previously associated with the determined group as a provisional quantization value.
[0103] In addition, the quantization value setting unit 810 notifies the output unit 820 of a quantization value (called a "limit quantization value" different from the provisional quantization value) corresponding to a compression level (second compression level) different from the optimal compression level pre-assigned to each group.
[0104] The output unit 820 transmits the image data acquired by the input unit 310 to the image compression device 130. In addition, the output unit 820 outputs a quantization value (Q n ) to the image compression device 130. Furthermore, the output unit 820 transmits the limit quantization value notified by the quantization value setting unit 810 to the image compression device 130. Furthermore, the output unit 820 transmits the determined quantization value determined by the quantization value determination unit 840 to the image compression device 130.
[0105] The accuracy evaluation unit 830 By transmitting the limit quantization value from the output unit 820, the image compression device 130 performs a compression process based on the limit quantization value. The compressed data transmitted from the image compression device 130 is decoded in the input unit 310, When the decoded data is input to the CNN unit 320 and the recognition process is performed, the recognition result is output. The recognition result is obtained from the CNN unit 320. In addition, the accuracy evaluation unit 830 evaluates whether the recognition result obtained from the CNN unit 320 is equal to or greater than a predetermined allowable value, and notifies the quantization value determination unit 840 of the evaluation result.
[0106] The quantization value determination unit 840 is another example of a determination unit, and determines a determined quantization value based on the evaluation result notified by the accuracy evaluation unit 830, and notifies the output unit 820. Specifically, when the accuracy evaluation unit 830 notifies the quantization value determination unit 840 that the evaluation result is equal to or greater than a predetermined allowable value, the quantization value determination unit 840 determines the limit quantization value notified by the quantization value setting unit 810 as the determined quantization value, and notifies the output unit 820.
[0107] On the other hand, if the accuracy evaluation unit 830 reports that the evaluation result is less than the specified tolerance, the provisional quantization value reported by the quantization value setting unit 810 is determined to be the determined quantization value and reported to the output unit 820.
[0108] <Specific examples of processing by the quantization value setting unit, the accuracy evaluation unit, and the quantization value determination unit> Next, a specific example of the processing by the quantization value setting unit 810, the accuracy evaluation unit 830, and the quantization value determination unit 840 will be described. Fig. 9 is a second diagram showing a specific example of the processing by the quantization value setting unit, the accuracy evaluation unit, and the quantization value determination unit. In Fig. 9, a graph 910 has the quantization value on the horizontal axis and the total value on the vertical axis, and shows three patterns showing the change in the total value relative to the change in the quantization value. Here, the change in the total value relative to the change in the quantization value has the following properties. For blocks where a low compression level is estimated to be optimal, the graph will rise at the low compression level and the aggregate value will be larger when a high compression level is set (see Group X). For blocks where a medium compression level is estimated to be the optimal compression level, the graph will rise at the medium compression level and the aggregate value for a high compression level will be medium (see Group Y). For blocks where a high compression level is estimated to be optimal, the graph will rise at the high compression level and the aggregate value will be smaller at the high compression level (see Group Z).
[0109] In the example of FIG. 9, the quantization value setting unit 810 sets a quantization value (Q n ) to the output unit 820, the quantization value setting unit 810 can determine which group each block belongs to, and can determine the provisional quantization value of each block.
[0110] In the example of Figure 9, if it is determined that the group belongs to group X, the provisional quantification value = Q X ". Also, if it is determined that the group belongs to group Y, the provisional quantification value = "Q Y ". Also, if it is determined that the group belongs to group Z, the provisional quantification value = "Q Z " is determined.
[0111] In the example of FIG. 9, the limit quantization value at which the decoded data has a predetermined image quality is set to "Q CX " is set for blocks that are determined to belong to group Y as the limit quantization value at which the decoded data has a certain image quality. CY " is set for blocks determined to belong to group Z as the limit quantization value at which the decoded data has a predetermined image quality. CZ " is set.
[0112] As described above, the limit quantization value is transmitted to the image compression device 130, and then compression processing based on the limit quantization value is performed, and the compressed data is transmitted to the analysis device 120. The compressed data is decoded by the input unit 310, and then input to the CNN unit 320 for recognition processing. Furthermore, the accuracy evaluation unit 830 evaluates the recognition result to see if it is equal to or greater than a permissible value.
[0113] In Fig. 9, reference numeral 920 indicates a specific example of a method for determining a quantization value by the quantization value determination unit 840. As shown by reference numeral 920 in Fig. 9, in the case of a block whose aggregated value belongs to group X, ·Quantization limit="Q CX If the recognition result corresponding to " is evaluated to be equal to or greater than the allowable value, the quantization value determination unit 840 determines the limit quantization value = Q CX " is determined as the quantization value. ·Quantization limit="Q CX If the recognition result corresponding to " is evaluated to be less than the allowable value, the quantization value determination unit 840 determines whether the provisional quantization value "Q X " is determined as the quantization value.
[0114] Also, as shown in FIG. 9 with reference numeral 920, in the case of a block whose aggregated value belongs to group Y, ·Quantization limit="Q CY If the recognition result corresponding to " is evaluated to be equal to or greater than the allowable value, the quantization value determination unit 840 determines the limit quantization value = Q CY " is determined as the quantization value. ·Quantization limit="Q CY If the recognition result corresponding to " is evaluated to be less than the allowable value, the quantization value determination unit 840 determines whether the provisional quantization value "Q Y " is determined as the quantization value.
[0115] Also, as shown in FIG. 9 with reference numeral 920, in the case of a block whose aggregated value belongs to group Z, ·Quantization limit="Q CZ If the recognition result corresponding to " is evaluated to be equal to or greater than the allowable value, the quantization value determination unit 840 determines the limit quantization value = Q CZ " is determined as the quantization value. ·Quantization limit="Q CZ If the recognition result corresponding to " is evaluated to be less than the allowable value, the quantization value determination unit 840 determines whether the provisional quantization value "Q Z " is determined as the quantization value.
[0116] <Compression process flow by the compression processing system> Next, there will be described the flow of compression processing by the compression processing system 100. Fig. 10 is a second flowchart showing an example of the flow of compression processing by the compression processing system.
[0117] In step S1001, the quantization value setting unit 810 sets a quantization value (Q n ) to the output unit 820.
[0118] In step S1002, the input unit 310 obtains image data on a frame-by-frame basis.
[0119] In step S1003, the output unit 820 outputs the image data and a quantization value (Q n ) to the image compression device 130. The image compression device 130 then outputs a quantization value (Q n ) to perform compression processing and generate compressed data.
[0120] In step S1004, the input unit 310 acquires and decodes the compressed data generated by the image compression device 130. The CNN unit 320 also performs recognition processing on the decoded data and outputs the recognition result.
[0121] In step S1005, the important feature map generating unit 350 generates an important feature map indicating the degree of influence of each region on the recognition result from the error calculated based on the recognition result, by using the error backpropagation method.
[0122] In step S1006, the counting unit 360 counts the influence of each region on the recognition result for each block based on the important feature map. The counting unit 360 stores the counted value in the counting result storage unit 390.
[0123] In step S1007, the quantization value setting unit 810 determines to which group the total value of each block stored in the totalization result storage unit 390 belongs to. In this way, the quantization value setting unit 810 divides each block into groups.
[0124] In step S1008, the quantization value setting unit 810 notifies the quantization value determination unit 840 of the quantization value (provisional quantization value) corresponding to the optimal compression level associated with each of the determined groups for each block. In addition, the quantization value setting unit 810 notifies the output unit 820 of the limit quantization value associated with each of the determined groups for each block.
[0125] In step S1009, the output unit 820 transmits the limit quantization value to the image compression device 130. In addition, the image compression device 130 performs compression processing using the limit quantization value to generate compressed data and transmits it to the analysis device 120.
[0126] In step S1010, the input unit 310 decodes the compressed data transmitted from the image compression device 130. The CNN unit 320 performs recognition processing on the decoded data. The accuracy evaluation unit 830 evaluates whether the recognition result is equal to or exceeds a predetermined allowable value.
[0127] In step S1011, the quantization value determination unit 840 determines a quantization value for each block based on whether or not the recognition result is equal to or greater than a predetermined allowable value.
[0128] In step S 1012 , the image compression device 130 performs a compression process on the image data using the determined quantization value, and stores the compressed data in the storage device 140 .
[0129] As is clear from the above description, the analysis device according to the second embodiment acquires compressed data when a compression process is performed on image data using one predetermined type of compression level (a quantization value corresponding to the compression level). The analysis device according to the second embodiment generates an important feature map indicating the degree of influence of each region on the recognition result by using an error backpropagation method from an error calculated based on a recognition result when a recognition process is performed on decoded data obtained by decoding the compressed data. The analysis device according to the second embodiment determines a provisional quantization value associated with a group by tallying up the influence levels on a block basis based on the important feature map and determining the group to which the tally value belongs. The analysis device according to the second embodiment acquires compressed data when a compression process is performed using a marginal quantization value different from the provisional quantization value associated with the group. The analysis device according to the second embodiment determines either the provisional quantization value or the marginal quantization value as the determined quantization value depending on whether the recognition result of decoded data obtained by decoding the acquired compressed data is equal to or greater than a permissible value.
[0130] In this way, the analysis device according to the second embodiment performs compression processing on image data at one predetermined compression level, thereby grouping the image data in units of blocks and determining a compression level (a provisional quantization value corresponding to the compression level) suitable for recognition processing. This simplifies the processing up to determining a compression level suitable for recognition processing. Furthermore, the analysis device according to the second embodiment determines whether compression processing using a limit quantization value previously associated with each group is possible by comparing the recognition result with an allowable value (i.e., without generating an important feature map). This simplifies the processing up to determining whether a higher compression level is appropriate.
[0131] As a result, according to the second embodiment, compression processing suitable for image recognition processing by AI can be realized with a reduced amount of calculation.
[0132] [Third embodiment] In the above first embodiment, the compression process is performed using quantization values corresponding to four types of compression levels. However, the types of compression levels used when performing the compression process are not limited to four. For example, if the number of quantization values that can be set in the image compression device 130 is 51, the compression process may be performed using quantization values corresponding to 26 types of compression levels (i.e., using every other quantization value). This makes it possible to determine the determined quantization value with the same increment accuracy as when performing the compression process using 51 quantization values.
[0133] In the above first embodiment, the compression process is performed using one type of interpolation quantization value. However, the number of types of interpolation quantization values used when performing the compression process is not limited to one, and may be multiple.
[0134] In this way, the number of types of compression levels and the number of types of interpolation quantization values are arbitrarily determined depending on how the amount of calculation of the entire compression processing system 100 is designed.
[0135] In the above first and second embodiments, either the provisional quantization value or the interpolated quantization value, or either the provisional quantization value or the bounded quantization value, is determined as the determined quantization value. However, the method of determining the determined quantization value is not limited to this. For example, when determining the determined quantization value, either the provisional quantization value or the interpolated quantization value, or either the provisional quantization value or the bounded quantization value may be selected, and the determined quantization value may be determined after fine-tuning the selected quantization value according to the important feature map.
[0136] In the second embodiment, the limit quantization value is greater than the provisional quantization value, but the limit quantization value may be smaller than the provisional quantization value. Alternatively, the compression process may be performed using both the limit quantization value greater than the provisional quantization value and the limit quantization value smaller than the provisional quantization value, and the recognition result may be evaluated.
[0137] In the above first and second embodiments, it has been described that the image data contains one object to be subjected to the recognition process. However, the image data may contain multiple objects to be subjected to the recognition process, and in such a case, the recognition result may differ for each object.
[0138] In such a case, the quantization value determination units 380 and 840 determine which object each block is included in, and determine the quantization value according to the result of object recognition.
[0139] [Fourth embodiment] In the above first to third embodiments, a case has been described in which the amount of calculation in the analysis device 120 when determining the final quantization value is reduced by simplifying the process up to determining the compression level suitable for recognition processing (or the process up to determining the suitability of a higher compression level). In contrast, in the fourth embodiment, a case will be described in which the amount of calculation in the analysis device 120 when determining the final quantization value is reduced by simplifying the process in the CNN unit. The fourth embodiment will be described below, focusing on the differences from the above first to third embodiments.
[0140] <Functional configuration of the analysis device> First, the functional configuration of the analysis device 120 according to the fourth embodiment will be described. Fig. 11 is a third diagram showing an example of the functional configuration of the analysis device. The difference from the functional configuration shown in Fig. 3 is that the functions of the CNN unit 1110, the quantization value setting unit 1120, and the quantization value determination unit 1130 are different from the functions of the CNN unit 320, the quantization value setting unit 330, and the quantization value determination unit 380.
[0141] The CNN unit 1110 includes a YOLO unit 1111, a post-processing unit 1112, and an object position storage unit 1113.
[0142] The YOLO unit 1111 is an example of a first calculation unit, and is a trained YOLO model that, by inputting image data or decoded data, calculates a score for each cell of the image data or decoded data (a score for each object obtained by performing recognition processing).
[0143] In addition, the YOLO unit 1111 calculates an error for each object for the score of each cell calculated by inputting the decoded data, and back-propagates the calculated error. This allows the important feature map generation unit 350 to generate an important feature map that indicates the degree of influence of each cell on the recognition result.
[0144] When calculating the error, the YOLO unit 1111 uses the score of each cell calculated by inputting image data to the YOLO unit 1111. When calculating the error for each object, the YOLO unit 1111 reads information indicating the position of the object recognized by the post-processing unit 1112 from the object position storage unit 1113 based on the score of each cell calculated by inputting image data, and uses the information.
[0145] The post-processing unit 1112 is an example of an identification unit, and identifies the position of each object included in the image data based on the score of each cell output by inputting the image data to the YOLO unit 1111. In addition, the post-processing unit 1112 stores information indicating the position of each identified object in the object position storage unit 1113.
[0146] In this way, the CNN unit 1110 obtains information indicating the position of each object used when calculating the error for each object by reading it from the object position storage unit 1113 without operating the post-processing unit 1112. In other words, the processing within the CNN unit 1110 is simplified. This makes it possible to reduce the amount of calculation when the important feature map generation unit 350 (an example of a second calculation unit) generates an important feature map by backpropagating the error.
[0147] The quantization value setting unit 1120 sequentially notifies the output unit 340 of quantization values corresponding to a plurality of compression levels (51 types of compression levels that can be set in this embodiment) used when the image compression device 130 performs compression processing.
[0148] The quantization value determination unit 1130 is another example of a determination unit, and in response to notifying the output unit 340 of the quantization values corresponding to the multiple compression levels stored in the counting result storage unit 390, the quantization value determination unit 1130 reads out counting values corresponding to the multiple compression levels from the counting result storage unit 390. The quantization value determination unit 1130 also determines a determined quantization value, which is a quantization value corresponding to an optimal compression level, based on the read counting value. The quantization value determination unit 1130 also notifies the output unit 340 of the determined determined quantization value.
[0149] <Specific Example of Processing by CNN Section> Next, a specific example of the processing by the CNN section 1110 will be described. FIG. 12 is a diagram showing a specific example of the processing by the CNN section. As shown in FIG. 12, when the image data 1210 is input, the YOLO section 1111 calculates the score 1220 for each cell. Also, the calculated score 1220 for each cell is input to the post-processing section 1112, and in the post-processing section 1112, the position 1230 of the object included in the image data 1210 is specified. Further, the post-processing section 1112 stores the information indicating the specified position 1230 of the object in the object position storage section 1113.
[0150] Subsequently, when the decoded data 1210_1 (decoded data obtained by decoding the compressed data compressed using the quantization value = QP1) is input, the YOLO section 1111 calculates the score 1220_1 for each cell. Also, the YOLO section 1111 calculates the error between the calculated score 1220_1 for each cell and the calculated score 1220 for each cell for each object based on the information indicating the position 1230 of each object stored in the object position storage section 1113. Further, the YOLO section 1111 backpropagates the calculated error for each object. As a result, the important feature map generation section 350 can generate an important feature map for the decoded data 1210_1.
[0151] Subsequently, when the decoded data 1210_2 (decoded data obtained by decoding the compressed data compressed using the quantization value = QP2) is input, the YOLO section 1111 calculates the score 1220_2 for each cell. Also, the YOLO section 1111 calculates the error between the calculated score 1220_2 for each cell and the calculated score 1220 for each cell for each object based on the information indicating the position 1230 of each object stored in the object position storage section 1113. Further, the YOLO section 1111 backpropagates the calculated error for each object. As a result, the important feature map generation section 350 can generate an important feature map for the decoded data 1210_2.
[0152] The CNN unit 1110 repeats the above process up to the decoded data 1210_51. This allows the important feature map generating unit 350 to generate an important feature map for the decoded data 1210_51.
[0153] <Specific example of processing by the quantization value determination unit> Next, a specific example of the process by the quantization value determination unit 1130 will be described. Fig. 13 is a diagram showing a specific example of the process by the quantization value determination unit. In Fig. 13, graphs 1310_1 to 1310_m are graphs that take the quantization value on the horizontal axis and the total value on the vertical axis and are generated by plotting the total value of each block (block 1 to block m) against the change in the quantization value.
[0154] The quantization value determination unit 1130 determines, for each of the graphs 1310_1 to 1310_m, for example, the quantization value when the amount of change in the aggregated value exceeds a predetermined threshold as a determined quantization value that is a quantization value according to an optimal compression level.
[0155] The example in Figure 13 shows that the decision quantization value for block 1 is "Q 42 ", the decision quantization value of block 2 is determined to be "Q5", and the decision quantization value of block 3 is determined to be "Q 12 " and the determined quantization value of block 51 is "Q 46 " is shown.
[0156] <Compression process flow by the compression processing system> Next, a description will be given of the flow of compression processing by the compression processing system 100. Fig. 14 is a third flowchart showing an example of the flow of compression processing by the compression processing system. The differences from the first flowchart described using Fig. 7 are steps S1401, S1402, S1403, S1404, and S1405.
[0157] In step S1401, the input unit 310 acquires image data in units of frames, and the CNN unit 1110 performs recognition processing on the image data, calculates a score for each cell, and outputs the recognition result. The CNN unit 1110 also stores information indicating the position of an object included in the image data.
[0158] In step S1402, the important feature map generating unit 350 generates an important feature map by backpropagating the error of the score of each cell calculated for each object. The counting unit 360 counts the influence degree of each region on a block-by-block basis, and stores the counting result in the counting result storage unit 390.
[0159] In step S1403, the input unit 310 acquires compressed data and generates decoded data by decoding the acquired compressed data. The CNN unit 1110 performs recognition processing on the decoded data and outputs a score for each cell.
[0160] In step S1404, the important feature map generating unit 350 generates an important feature map by backpropagating the error of the score of each cell calculated for each object based on the information indicating the position of the object. The counting unit 360 counts the influence degree of each region on a block-by-block basis, and stores the counting result in the counting result storage unit 390.
[0161] In step S1405, the quantization value determination unit 1130 determines a determined quantization value for each block, and transmits the determined quantization value to the image compression device .
[0162] As is clear from the above description, the analysis device according to the fourth embodiment performs a recognition process on image data and calculates a score for each cell. The analysis device according to the fourth embodiment identifies the position of an object included in the image data based on the calculated score for each cell. The analysis device according to the fourth embodiment acquires each compressed data when a compression process is performed on the image data using all settable quantization values. The analysis device according to the fourth embodiment performs a recognition process on decoded data obtained by decoding each compressed data, and calculates an error for each object based on information indicating the position of the identified object. The analysis device according to the fourth embodiment generates an important feature map indicating the degree of influence of each cell on the recognition result by backpropagating the calculated error. The analysis device according to the fourth embodiment also counts the degree of influence on the recognition result on a block basis based on the important feature map, and determines the determined quantization value of each block of the image data based on the counted value of each block corresponding to all settable compression levels.
[0163] In this way, the analysis device according to the fourth embodiment uses information indicating the position of the object identified when performing recognition processing on the image data when calculating the error for each object, which simplifies the processing in the CNN unit when backpropagating the error and generating the important feature map.
[0164] As a result, according to the fourth embodiment, compression processing suitable for image recognition processing by AI can be realized with a reduced amount of calculation.
[0165] [Other embodiments] In the above fourth embodiment, the case where the process in the CNN unit is simplified has been described. However, similarly to the above first to third embodiments, the process up to determining the compression level suitable for the recognition process (or the process up to determining the suitability of a high compression level) may be simplified, and the process in the CNN unit may be further simplified.
[0166] In the above fourth embodiment, the YOLO model is used as the model of the CNN unit, which performs cluster processing using a method such as NMS (Non-Maximum Suppression) to obtain a recognition result (bounding box). However, a CNN model other than the YOLO model may be used as the model of the CNN unit.
[0167] The present invention is not limited to the configurations shown in the above embodiments, combinations with other elements, etc. These points can be changed without departing from the spirit of the present invention, and can be appropriately determined according to the application form. [Explanation of symbols]
[0168] 100: Compression processing system 110: Imaging device 120:Analysis equipment 130: Image compression device 140: Storage device 201: Processor 202: Memory 203: Auxiliary storage device 204 :I / F device 205: Communication equipment 206: Drive device 210: Operating device 220:Display device 310: Input section 320:CNN Department 330: Quantization value setting unit 340: Output section 350: Important feature map generation unit 360: Counting section 370: Accuracy Evaluation Department 380: Quantization value determination unit 390: Counting result storage section 410: Image data 420: Counting results 530: sign 620: Encoding section 621: Difference part 622: Orthogonal transformation section 623:Quantization section 624: Entropy coding unit 625: Inverse quantization section 626: Inverse orthogonal transform unit 627: Addition section 628: Buffer section 629: Loop filter section 630: Frame buffer section 631: In-screen prediction unit 632: Inter-frame prediction unit 810: Quantization value setting unit 820: Output section 830: Accuracy Evaluation Department 840: Quantization value determination unit 1110 :CNN Department 1120: Quantization value setting unit 1130: Quantization value determination unit
Claims
1. a determination unit that determines a first compression level based on a degree of influence on a recognition result of each area when a recognition process is performed on each image data item after the image quality has been changed; a calculation unit that, when the image data compressed at a second compression level corresponding to the first compression level is decoded, performs a recognition process on the decoded data and calculates a recognition result; a determination unit that determines whether the image data is to be compressed at the first compression level or the second compression level according to the calculated recognition result; An analysis device having the above configuration.
2. a counting unit that counts the degree of influence of each region on a recognition result when image data is compressed at a predetermined number of different compression levels and each compressed data is decoded and a recognition process is performed on each decoded data, The analysis device according to claim 1 , wherein the determination unit determines the first compression level from the predetermined number of different compression levels based on the aggregated degree of influence of each of the regions on a recognition result.
3. The analysis device of claim 2 , wherein the second compression level is a compression level between the predetermined number of different compression levels and is a compression level higher than the first compression level.
4. 4. The analysis device according to claim 3, wherein the determination unit determines to compress the image data at the second compression level when the calculated recognition result is equal to or greater than a tolerance value, and determines to compress the image data at the first compression level when the calculated recognition result is less than the tolerance value.
5. The analysis device according to claim 4 , wherein the determination unit adjusts the determined compression level based on the collected degree of influence of each of the regions on the recognition result.
6. a counting unit that counts the degree of influence of each area on a recognition result when image data is compressed at a predetermined one type of compression level, the compressed data is decoded, and then a recognition process is performed on the decoded data; 2. The analysis device according to claim 1, wherein the determination unit determines to which group the aggregated influence degree of each of the regions on the recognition result belongs, and determines a compression level that is pre-associated with the determined group as the first compression level.
7. 7. The analysis device according to claim 6, wherein the second compression level is a compression level that has a predetermined influence on the recognition result of each of the aggregated regions, is a compression level that is different from the first compression level, and is pre-associated with a determined group.
8. 8. The analysis device according to claim 7, wherein the determination unit determines to compress the image data at the second compression level when the calculated recognition result is equal to or greater than a tolerance value, and determines to compress the image data at the first compression level when the calculated recognition result is less than the tolerance value.
9. The analysis device according to claim 8 , wherein the determination unit adjusts the determined compression level based on the collected degree of influence of each of the regions on a recognition result.
10. determining a first compression level based on a degree of influence on a recognition result for each area when a recognition process is performed on each image data item after the image quality has been changed; When the image data compressed at a second compression level corresponding to the first compression level is decoded, a recognition process is performed on the decoded data to calculate a recognition result; determining whether the image data is to be compressed at the first compression level or the second compression level according to the calculated recognition result; An analytical method in which processing is carried out by a computer.
11. determining a first compression level based on a degree of influence on a recognition result for each area when a recognition process is performed on each image data item after the image quality has been changed; When the image data compressed at a second compression level corresponding to the first compression level is decoded, a recognition process is performed on the decoded data to calculate a recognition result; determining whether the image data is to be compressed at the first compression level or the second compression level according to the calculated recognition result; An analysis program that causes a computer to carry out processing.
Citation Information
Patent Citations
Monitoring camera and monitor system
JP2011234033A
Using image analysis algorithm for providing training data to neural network
JP2018101406A
Fire monitoring system
JP2019079445A
JPP7310926B
JPP7409400B
