IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND IMAGE PROCESSING PROGRAM

JP7552735B2Active Publication Date: 2024-09-18FUJITSU LTD
5 Cites 0 Cited by

Patent Information

Application Number
JP2022576327
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-01-22
Publication Date
2024-09-18
Estimated Expiration
2041-01-22

Smart Images

  • Figure 0007552735000015
    Figure 0007552735000015
  • Figure 0007552735000009
    Figure 0007552735000009
  • Figure 0007552735000007
    Figure 0007552735000007
Patent Text Reader

Abstract

In the case of performing encoding with a compression ratio greater than a limit compression ratio at which recognition by artificial intelligence is possible, the present invention suppresses a degradation in recognition accuracy. This image processing device comprises: a determination unit which, when encoding image data of each frame of moving image data, determines whether overflow occurs in a virtual buffer; and a change unit which, when the overflow is determined to occur, refers to information to be recognized, and changes, to a quantization value higher than that according to the limit compression ratio, a quantization value of a block at a position corresponding to an area of a recognition target other than a recognition target designated by the information to be recognized from among recognition targets included in the image data.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image processing device, an image processing method, and an image processing program. [Background technology]

[0002] When video data is encoded and transmitted, for example, bit rate control is performed to encode the data at a compression ratio according to the transmission load.

[0003] On the other hand, when encoding and transmitting video data for use in recognition processing by AI (Artificial Intelligence), it may be possible to increase the compression rate up to the limit at which the AI ​​can recognize the recognition target (i.e., at the limit compression rate). [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2019-050896 A [Patent Document 2] JP 2020-003785 A Summary of the Invention [Problem to be solved by the invention]

[0005] However, even when encoding at the limit compression rate, it is possible that an overflow may occur in the virtual buffer. In such a case, if the compression rate of each block is increased uniformly beyond the limit compression rate, it becomes difficult for the AI ​​to recognize all recognition targets contained in the video data, and the recognition accuracy drops significantly.

[0006] In one aspect, the objective is to suppress a decrease in recognition accuracy when encoding at a compression rate that exceeds the limit compression rate at which AI recognition is possible. [Means for solving the problem]

[0007] According to one aspect, an image processing device includes: a determination unit that determines whether or not an overflow occurs in a virtual buffer when encoding image data of each frame of video image data; It is determined that an overflow will occur. The amount of information allocated is reported based on the virtual buffer position. When the recognition target information is referenced, the quantization value of a block at a position corresponding to an area of ​​a recognition target other than the recognition target specified by the recognition target information among the recognition targets included in the image data is calculated. Based on the amount of information, and a change unit for changing the quantization value to a higher value than the quantization value according to the limit compression rate. Effect of the Invention

[0008] When encoding at a compression rate that exceeds the limit at which AI recognition is possible, it is possible to suppress a decrease in recognition accuracy. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is a first diagram illustrating an example of a system configuration of an image processing system. [Diagram 2] FIG. 2 is a diagram illustrating an example of a hardware configuration of the image processing device and the server device. [Diagram 3] FIG. 3 is a first diagram illustrating an example of a functional configuration of the analysis unit of the image processing device. [Figure 4] FIG. 4 is a diagram showing a specific example of the processing of the CNN unit and the important feature map generating unit. [Diagram 5] FIG. 5 is a diagram showing a specific example of the process of the counting unit. [Figure 6] FIG. 6 is a diagram showing a specific example of the process of the quantization value map generating unit. [Figure 7] FIG. 7 is a first diagram illustrating an example of a functional configuration of a bit rate control unit of an image processing device. [Figure 8] FIG. 8 is a first flowchart showing the flow of image processing by the image processing device. [Figure 9]FIG. 9 is a second diagram illustrating an example of the functional configuration of the analysis unit of the image processing device. [Figure 10] FIG. 10 is a diagram showing a specific example of the processing of the CNN unit and the signal strength calculation unit. [Figure 11] FIG. 11 is a second flowchart showing the flow of image processing by the image processing device. [Figure 12] FIG. 12 is a second diagram illustrating an example of the system configuration of the image processing system. [Figure 13] FIG. 13 is a third diagram illustrating an example of the functional configuration of the analysis unit of the image processing device. [Figure 14] FIG. 14 is a second diagram illustrating an example of the functional configuration of the bit rate control unit of the image processing device. [Figure 15] FIG. 15 is a third flowchart showing the flow of image processing by the image processing device. [Figure 16] FIG. 16 is a fourth diagram illustrating an example of the functional configuration of the analysis unit of the image processing device. As shown in FIG. [Figure 17] FIG. 17 is a fourth flowchart showing the flow of image processing by the image processing device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] 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.

[0011] [First embodiment] <Image processing system configuration> First, the system configuration of an entire image processing system including an image processing device according to a first embodiment will be described. Fig. 1 is a first diagram showing an example of the system configuration of an image processing system. As shown in Fig. 1, an image processing system 100 includes an imaging device 110, an image processing device 120, and a server device 130. In the image processing system 100, the image processing device 120 and the server device 130 are connected to each other via a network 140 so as to be able to communicate with each other.

[0012] The imaging device 110 captures images at a predetermined frame cycle and transmits the video data to the image processing device 120. The video data includes image data of frames that include at least an object (recognition target) to be the subject of recognition processing, and image data of frames that do not include an object (recognition target) to be the subject of recognition processing (including only objects other than the recognition target). Furthermore, the video data may include image data of frames that do not include any object.

[0013] An image processing program is installed in the image processing device 120, and the image processing device 120 functions as an analysis unit 121, an encoding unit 122, and a bit rate control unit 123 by executing the image processing program.

[0014] The analysis unit 121 has a trained model for performing recognition processing. The analysis unit 121 performs recognition processing by inputting image data or decoded data (decoded data obtained by decoding encoded data when encoding processing is performed on image data with different quantization values ​​(also called quantization steps)) of each frame of video image data to the trained model.

[0015] In addition, during the recognition process, the analysis unit 121 performs an operation analysis of the trained model using, for example, the backpropagation method to generate a map (called an "important feature map") indicating the degree of influence on the recognition result, and tally up the degree of influence for each predetermined region. Note that the predetermined region here refers to a block used when the encoding process is performed.

[0016] The analysis unit 121 also instructs the encoding unit 122 to perform encoding processing with a predetermined number of different quantization values, and repeats the same processing as above for each decoded data obtained by decoding the encoded data when the encoding processing is performed on the image data with each quantization value. Note that, hereinafter, a set of quantization values ​​for each block instructed to the encoding unit 122 is referred to as a "quantization value map."

[0017] In other words, the analysis unit 121 changes the image quality of the image data to be input to the trained model by changing the quantization value map, and tally up the degree of influence on the recognition result of each block for each image data after the change.

[0018] Furthermore, the analysis unit 121 searches for an optimal quantization value for each block based on the change in the aggregated value resulting from the change in the quantization value map. The optimal quantization value refers to a quantization value corresponding to the limit compression ratio that allows correct recognition of the recognition target included in the image data, among a predetermined number of different quantization values. In this embodiment, a set of quantization values ​​corresponding to the limit compression ratios calculated for each block is referred to as a "provisional quantization value map."

[0019] Furthermore, the analysis unit 121 notifies the bit rate control unit 123 of the provisional quantization value map and information indicating the area to be recognized ("target area information"). Note that the target area information is calculated based on the recognition result output from the trained model by performing a recognition process on the image data.

[0020] The encoding unit 122 uses the quantization value map instructed by the analysis unit 121 to perform encoding processing on image data of the corresponding frame of the video image data, and returns the generated encoded data to the analysis unit 121.

[0021] Furthermore, the encoding unit 122 notifies the bit rate control unit 123 of the amount of information of the encoded data (actual amount of information) measured when encoding processing was performed on the image data of the frame to be processed previously. Furthermore, in response to having been notified of the actual amount of information, the encoding unit 122 performs encoding processing on the image data of the frame to be processed this time using the determined quantization value map notified by the bit rate control unit 123, and transmits the encoded data to the server device 130.

[0022] The bit rate control unit 123 calculates a "virtual buffer position" indicating the current remaining amount of the virtual buffer based on the acquired actual information amount. The bit rate control unit 123 also predicts a change in the virtual buffer position when encoding processing is performed on the image data of the frame to be processed this time using the provisional quantization value map.

[0023] Furthermore, the bit rate control unit 123 determines whether or not an overflow will occur in the virtual buffer based on the predicted changed virtual buffer position. If it is determined that an overflow will not occur, the bit rate control unit 123 notifies the encoding unit 122 of the provisional quantization value map as the determined quantization value map.

[0024] On the other hand, when it is determined that an overflow occurs, the bit rate control unit 123 identifies a recognition target other than the previously designated recognition target among the recognition targets indicated by the target area information. Furthermore, the bit rate control unit 123 changes the quantization value of a block at a position corresponding to the area of ​​the identified recognition target in the provisional quantization value map to a quantization value higher than the quantization value according to the limit compression rate. Then, the bit rate control unit 123 notifies the encoding unit 122 of the provisional quantization value map after the quantization value is changed as the determined quantization value map.

[0025] In this way, when it is determined that an overflow occurs in the virtual buffer, the bit rate control unit 123 performs encoding processing at a compression rate exceeding the limit compression rate for the areas of the provisional quantization value map for recognition targets other than the pre-specified recognition target. This makes it possible to maintain the recognition accuracy for the pre-specified recognition target while avoiding overflow in the virtual buffer. In other words, according to the image processing device 120, it is possible to suppress a decrease in recognition accuracy when encoding at a compression rate exceeding the limit compression rate at which recognition by AI is possible.

[0026] A decryption program is installed in the server device 130, and the server device 130 functions as a decryption unit 131 by executing the decryption program.

[0027] The decoding unit 131 decodes the encoded data transmitted from the image processing device 120 to generate decoded data. The decoding unit 131 stores the generated decoded data in the decoded data storage unit 132.

[0028] <Hardware configuration of image processing device and server device> Next, a description will be given of the hardware configuration of the image processing device 120 and the server device 130. Fig. 2 is a diagram showing an example of the hardware configuration of the image processing device and the server device.

[0029] 2A is a diagram showing an example of the hardware configuration of an image processing device 120. The image processing device 120 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 the image processing device 120 are connected to each other via a bus 207.

[0030] 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 image processing program, etc.) onto the memory 202 and executes them.

[0031] The memory 202 has a main storage device such as a Read Only Memory (ROM) and a Random Access Memory (RAM). 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.

[0032] The auxiliary storage device 203 stores various programs and various data used when the processor 201 executes the various programs.

[0033] The I / F device 204 is a connection device that connects the image processing device 120 with the imaging device 110, which is an example of an external device.

[0034] The communication apparatus 205 is a communication device for communicating with the server apparatus 130, which is an example of another apparatus.

[0035] The drive device 206 is a device for setting the recording medium 210. The recording medium 210 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 210 may also include semiconductor memories that record information electrically, such as ROM, flash memory, etc.

[0036] The various programs to be installed in the auxiliary storage device 203 are installed, for example, by setting the distributed recording medium 210 in the drive device 206 and reading out the various programs recorded in the recording medium 210 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.

[0037] 2B is a diagram showing an example of the hardware configuration of the server device 130. Note that the hardware configuration of the server device 130 is generally the same as that of the image processing device 120, and therefore differences from the image processing device 120 will be mainly described here.

[0038] The processor 221, for example, reads out a decryption program or the like onto the memory 222 and executes it. The auxiliary storage device 223 realizes the decryption data storage unit 132, for example.

[0039] The I / F device 224 accepts operations for the server device 130 via an operation device 231. In addition, the I / F device 224 outputs results of processing by the server device 130 and displays them via a display device 232. In addition, the communication device 225 communicates with the image processing device 120.

[0040] <Functional configuration of the analysis unit of the image processing device> Next, a functional configuration of the analysis unit 121 of the image processing device 120 will be described. Fig. 3 is a first diagram showing an example of a functional configuration of the analysis unit of the image processing device. As shown in Fig. 3, the analysis unit 121 has an input unit / decoding unit 310, a CNN unit 320, an important feature map generation unit 330, a counting unit 340, a quantization value map generation unit 350, and an output unit 360.

[0041] The input unit / decoding unit 310 obtains image data of each frame of the video data transmitted from the imaging device 110, and notifies the CNN unit 320. The input unit / decoding unit 310 also obtains encoded data notified by the encoding unit 122, decodes the encoded data, and notifies the CNN unit 320 of the decoded data.

[0042] The CNN unit 320 has a trained model that performs recognition processing. The CNN unit 320 executes the trained model by inputting image data or decoded data. In addition, the CNN unit 320 inputs image data and notifies the important feature map generation unit 330 and the quantization value map generation unit 350 of the recognition result output from the trained model.

[0043] In addition, the CNN unit 320 receives the decoded data and notifies the important feature map generation unit 330 of the recognition result output from the trained model.

[0044] The important feature map generating unit 330 obtains the recognition result output from the trained model. In addition, the important feature map generating unit 330 generates an important feature map by the backpropagation method using the obtained recognition result.

[0045] Specifically, the important feature map generating unit 330 calculates an error between a recognition result obtained by inputting image data and a recognition result obtained by inputting decoded data. The important feature map generating unit 330 also backpropagates the calculated error to obtain an error backpropagation result from the input layer of the trained model. Furthermore, the important feature map generating unit 330 generates an important feature map based on the obtained error backpropagation result, and notifies the counting unit 340.

[0046] For details on how to generate an important feature map using the backpropagation method, see, 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.

[0047] The counting unit 340 counts the influence of each region on the recognition result for each block based on the notified important feature map, and calculates a count value of the influence for each block. The counting unit 340 also stores the calculated count value for each block in the count result storage unit 370 in association with the quantization value used in the encoding process.

[0048] The quantization value map generation unit 350 generates a quantization value map while sequentially changing the quantization value for each block, and notifies the output unit 360. Note that the change range when sequentially changing the quantization value is assumed to be predetermined.

[0049] Also, the quantization value map generation unit 350 generates a provisional quantization value map by searching for a quantization value corresponding to the limit compression rate for each block based on the aggregation result stored in the aggregation result storage unit 370, and notifies the output unit 360.

[0050] Furthermore, the quantization value map generation unit 350 generates information (target region information) indicating the region to be recognized based on the recognition result obtained from the CNN unit 320, and notifies the output unit 360.

[0051] The output unit 360 notifies the quantization value map generated by the quantization value map generation unit 350 to the encoding unit 122. Also, the output unit 360 notifies the image data of the corresponding frame of the moving image data to the encoding unit 122. Furthermore, the output unit 360 notifies the provisional quantization value map and the target region information generated by the quantization value map generation unit 350 to the bit rate control unit 123.

[0052] <Specific Examples of the Processing of the CNN Unit and the Important Feature Map Generation Unit> Next, specific examples of the processing of the CNN unit 320 and the important feature map generation unit 330 among the units constituting the analysis unit 121 will be described. FIG. 4 is a first diagram showing a specific example of the processing of the CNN unit and the important feature map generation unit.

[0053] As shown in FIG. 4, the CNN unit 320 has an input layer, a hidden layer, and an output layer as a learned model. When image data is input to the layer 401 of the input layer, the image data is processed in the forward propagation direction in each layer. As a result, a recognition result 410 is output from the layer 402 of the output layer (see the thick solid arrow). Note that the example in FIG. 4 shows a state in which image data 430 including three "persons", which is an example of the recognition target, is input.

[0054] Similarly, when decoded data 1 is input to layer 401 of the input layer, the decoded data 1 is processed in the forward propagation direction in each layer, and a recognition result 411 is output from layer 402 of the output layer (see the solid thick arrow). Note that the decoded data 1 is, for example, a quantization value Q 1 The quantization value map is a set of quantization values, and the encoded data is then decoded by the input unit / decoding unit 310 to obtain data.

[0055] Similarly, when decoded data 2 is input to layer 401 of the input layer, the decoded data 2 is processed in the forward propagation direction in each layer, and a recognition result 412 is output from layer 402 of the output layer (see solid thick arrow). Note that the decoded data 2 is, for example, a quantization value Q 2 The quantization value map is a set of quantization values, and the encoded data is then decoded by the input unit / decoding unit 310 to obtain data.

[0056] Although not shown in FIG. 4, similar processing is performed on decoded data 3, decoded data 4, . . . , and the recognition results are output.

[0057] As shown in FIG. 4, the important feature map generating unit 330 A recognition result 410 output by processing the image data in the forward propagation direction; Each recognition result (recognition results 411, 412, ...) output by processing each decoded data (decoded data 1, 2, ...) in the forward propagation direction, Calculate each error between them (error 1, 2, ...).

[0058] Furthermore, the important feature map generation unit 330 backpropagates each calculated error (error 1, 2, ...) from the output layer 402. As a result, each important feature map (important feature maps 421, 422, ...) is output from the input layer 401 of the CNN unit 320 as an error backpropagation result (see dotted thick arrows). The important feature map generation unit 330 notifies the counting unit 340 of each important feature map (important feature maps 421, 422, ...) output from the CNN unit 320.

[0059] <Specific example of processing in the aggregation section> Next, a specific example of the process of the counting unit 340, among the units constituting the analysis unit 121, will be described. FIG. 5 is a diagram showing a specific example of the process of the counting unit. Among them, 5a shows an example of the arrangement of blocks used when encoding process is performed on image data 510. As shown in 5a, in this embodiment, for the sake of simplicity of explanation, it is assumed that all blocks in the image data 510 are the same size. Also, in the example of 5a, the block number of the upper left block of the image data 510 is "block 1", and the block number of the lower right block is "block m".

[0060] As shown in 5b, the counting result 520 calculated by the counting unit 340 includes the information items "block number" and "quantization value."

[0061] "Block number" stores the block number of each block in image data 510. "Quantization value" stores a predetermined number of quantization values ​​that can be set when encoding unit 122 performs encoding processing.

[0062] In the example of 5b, for the sake of simplicity, four types of quantization values ​​("Q 1 "From"Q 4 Although only "") is described, it is assumed that four or more types of quantization values ​​can be set in the encoding process by the encoding unit 122.

[0063] In addition, in the tabulation result 520, the column corresponding to "Block number" and "Quantization value" contains the following: Performing an encoding process on the image data 510 using the corresponding quantization value; Based on the important feature map calculated when the recognition process was performed on the decoded data, the data was collected in the corresponding block. The "aggregated value" is stored.

[0064] <Specific example of processing by the quantization value map generating unit> Next, a specific example of the process of quantization value map generating unit 350, among the units constituting analysis unit 121, will be described. Fig. 6 is a diagram showing a specific example of the process of the quantization value map generating unit. In Fig. 6, graphs 610_1 to 610_m are graphs that have 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 included in total result 520.

[0065] As shown in the graphs 610_1 to 610_m, the change in the total value when the encoding process is performed using each quantization value 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 to be the quantization value according to the limit compression ratio of each block.

[0066] In the example of FIG. 6, the quantization value map generating unit 350 generates a quantization value according to the limit compression ratio based on a graph 610_1 as “Q 3 6 shows that the quantization value map generating unit 350 has determined the quantization value according to the limit compression ratio as "Q 1 6 shows that the quantization value map generating unit 350 has determined the quantization value according to the limit compression ratio as "Q 26 shows that the quantization value map generating unit 350 determines the quantization value according to the limit compression ratio as "Q 3 " indicates that it was determined that

[0067] The example in FIG. 6 shows how a provisional quantization value map is generated by setting quantization values ​​according to the limit compression ratios for each of blocks 1 to m in image data 510.

[0068] <Functional configuration of the bit rate control unit> Next, a functional configuration of the bit rate control unit 123 of the image processing device 120 will be described. Fig. 7 is a first diagram showing an example of the functional configuration of the bit rate control unit of the image processing device. As shown in Fig. 7, the bit rate control unit 123 has an information amount prediction unit 710, a virtual buffer position calculation unit 720, an overflow determination unit 730, an allocated information amount calculation unit 740, and a quantization value map determination unit 750.

[0069] Among these, the information amount prediction unit 710 specifies the information amount (predicted information amount) of encoded data when encoding processing is performed on image data of a frame to be processed using the provisional quantization value map.

[0070] 7, the information amount prediction unit 710 has a statistical information amount 760 (a table storing, as a predicted information amount, a statistical value of the information amount of encoded data when encoding processing is performed using each quantization value) in advance. Therefore, the information amount prediction unit 710 refers to the statistical information amount 760 to specify the predicted information amount.

[0071] The information amount prediction unit 710 also notifies the quantization value map determination unit 750 of the provisional quantization value map and the target area information notified by the analysis unit 121. In FIG. 7, reference numeral 770 denotes a specific example of the provisional quantization value map and the target area information. In reference numeral 770, the numerical values ​​in each block represent the quantization value according to the limit compression rate. In reference numeral 770, the thick line denotes the outer edge of the block at a position corresponding to the area of ​​the recognition target (an example of the target area information). In the example of reference numeral 770, for the sake of convenience, a "person" as an example of the recognition target is superimposed and displayed.

[0072] The virtual buffer position calculation unit 720 calculates a virtual buffer position based on the actual information amount acquired from the encoding unit 122. Furthermore, based on the virtual buffer position and the predicted information amount, the virtual buffer position calculation unit 720 predicts a change in the virtual buffer position when encoding processing is performed on image data of a frame to be processed using the provisional quantization value map.

[0073] The overflow determination unit 730 is an example of a determination unit, and determines whether or not an overflow will occur based on the prediction result of the changed virtual buffer position predicted by the virtual buffer position calculation unit 720. If the overflow determination unit 730 determines that an overflow will not occur, it notifies the quantization value map determination unit 750 of the determination result. On the other hand, if the overflow determination unit 730 determines that an overflow will occur, it notifies the allocated information amount calculation unit 740 of the determination result.

[0074] When the allocation information amount calculation unit 740 is notified by the overflow determination unit 730 of the determination result that an overflow will occur, it calculates the amount of information of the allocatable coded data, based on the virtual buffer position calculated by the virtual buffer position calculation unit 720. In addition, the allocation information amount calculation unit 740 notifies the quantization value map determination unit 750 of the amount of information of the allocatable coded data.

[0075] The quantization value map determination unit 750 is an example of a change unit, and generates a determined quantization value map. Specifically, when the overflow determination unit 730 notifies the quantization value map determination unit 750 of the determination result that an overflow will not occur, the quantization value map determination unit 750 notifies the encoding unit 122 of the provisional quantization value map notified by the information amount prediction unit 710 as the determined quantization value map.

[0076] On the other hand, when the quantization value map determination unit 750 is notified of the amount of information of the encoded data that can be allocated by the allocation information amount calculation unit 740, it refers to the "recognition target information". Note that the recognition target information is assumed to specify in advance a recognition target that should be recognized with priority when there is a possibility of an overflow occurring in the virtual buffer. In addition, in the recognition target information, the method of specifying the recognition target that should be recognized with priority is arbitrary, and it is assumed to be specified by, for example, the attribute, size, position, etc. of the recognition target.

[0077] Then, the quantization value map determination unit 750 specifies a recognition target other than the recognition target specified by the recognition target information among a plurality of recognition targets included in the image data (specifically, a plurality of recognition targets included in the target area information notified by the information amount prediction unit 710). Also, the quantization value map determination unit 750 changes the quantization value of a block at a position corresponding to the area of ​​the specified recognition target in the provisional quantization value map notified by the information amount prediction unit 710 to a quantization value higher than the quantization value according to the limit compression rate.

[0078] At this time, the quantization value map determination unit 750 determines the change range of the quantization value based on the amount of information of the allocatable encoded data notified by the allocation information amount calculation unit 740. Furthermore, the quantization value map determination unit 750 notifies the encoding unit 122 of the changed temporary quantization value map in which the quantization value has been changed as a determined quantization value map.

[0079] 7, reference numeral 780 indicates an example of a provisional quantization value map after the quantization value is changed. The example of reference numeral 780 indicates that the quantization value of a block at a position corresponding to the area of ​​recognition targets 782 and 783 other than the recognition target 781 specified in the recognition target information among the recognition targets 781 to 783 is changed to a quantization value higher than the quantization value according to the limit compression rate.

[0080] <Image processing flow> Next, a description will be given of the flow of image processing by the image processing device 120. Fig. 8 is a first flowchart showing the flow of image processing by the image processing device.

[0081] In step S801, the analysis unit 121 initializes the quantization values ​​to generate a default quantization value map.

[0082] In step S802, the analysis unit 121 acquires image data or encoded data. If the analysis unit 121 acquires encoded data, the analysis unit 121 decodes the encoded data to generate decoded data.

[0083] In step S803, the analysis unit 121 performs a recognition process on the image data or the decoded data, outputs the recognition result, and calculates target area information. The analysis unit 121 also calculates an error between the recognition result output by performing the recognition process on the image data and the recognition result output by performing the recognition process on the decoded data.

[0084] In step S804, the analysis unit 121 generates an important feature map by backpropagating the calculated error.

[0085] In step S805, the analysis unit 121 tabulates the generated important feature map on a block-by-block basis, and stores the result in the tabulation result storage unit 370.

[0086] In step S806, the analysis unit 121 determines whether or not the analysis has been performed on all of a predetermined number of quantization values ​​that can be set in the encoding unit 122. In step S806, if it is determined that there is a quantization value that has not been analyzed (NO in step S806), the process proceeds to step S807.

[0087] In step S807, the analysis unit 121 increases the quantization value and changes the quantization value map. The encoding unit 122 performs encoding processing on the image data using the changed quantization value map to generate encoded data. Then, the process returns to step S802.

[0088] On the other hand, if it is determined in step S806 that the analysis has been performed for all quantized values ​​(YES in step S806), the process proceeds to step S808.

[0089] In step S808, the analysis unit 121 searches for a quantization value corresponding to the limit compression rate for each block, and generates a provisional quantization value map. The analysis unit 121 notifies the generated provisional quantization value map to the bit rate control unit 123 together with the target region information.

[0090] In step S809, the bit rate control unit 123 obtains the actual information amount and calculates the virtual buffer position.

[0091] In step S810, the bit rate control unit 123 determines whether or not an overflow will occur when encoding processing is performed on image data of a frame to be processed using the provisional quantization value map.

[0092] If it is determined in step S810 that an overflow will occur (YES in step S810), the process proceeds to step S811. In step S811, the bit rate control unit 123 calculates the amount of allocated information.

[0093] In step S812, the bit rate control unit 123 refers to the recognition target information and identifies a recognition target other than the recognition target previously specified by the recognition target information among the recognition targets indicated by the target area information. The bit rate control unit 123 also changes the quantization value of a block at a position corresponding to the area of ​​the identified recognition target in the provisional quantization value map by a change width based on the amount of assigned information, and generates a determined quantization value map. Furthermore, the bit rate control unit 123 notifies the generated determined quantization value map to the encoding unit 122.

[0094] On the other hand, if it is determined in step S810 that an overflow has not occurred (NO in step S810), the process proceeds to step S813.

[0095] In step S813, the bit rate control unit 123 notifies the encoding unit 122 of the provisional quantization value map as the determined quantization value map.

[0096] In step S814, the encoding unit 122 performs encoding processing on the image data of the frame to be processed using the notified determined quantization value map, and generates encoded data.

[0097] In step S815, the encoding unit 122 transmits the generated encoded data to the server device .

[0098] In step S816, the analysis unit 121 determines whether or not to end the image processing. If it is determined in step S816 that the image processing is not to be ended (NO in step S816), the process returns to step S801. In this case, the analysis unit 121 initializes the quantization value and generates a default quantization value map before acquiring image data of the next frame in the video data.

[0099] On the other hand, if it is determined in step S816 that the image processing is to be ended (YES in step S816), the image processing is ended.

[0100] As is clear from the above description, the image processing device 120 according to the first embodiment determines whether an overflow will occur in the virtual buffer when performing encoding processing on image data of a frame to be processed of video image data. Furthermore, the image processing device 120 according to the first embodiment refers to the recognition target information when it is determined that an overflow will occur. Furthermore, the image processing device 120 according to the first embodiment changes the quantization value of a block at a position corresponding to an area of ​​a recognition target other than a recognition target previously designated by the recognition target information, among the recognition targets included in the image data, to a quantization value higher than the quantization value according to the limit compression rate.

[0101] In this way, in the first embodiment, when it is determined that an overflow will occur in the virtual buffer, the areas of the recognition target other than the specified recognition target are encoded at a compression rate that exceeds the limit compression rate.

[0102] As a result, according to the first embodiment, it is possible to maintain the recognition accuracy for a pre-specified recognition target while avoiding overflow in the virtual buffer. In other words, according to the first embodiment, it is possible to suppress a decrease in recognition accuracy when encoding at a compression ratio exceeding the limit compression ratio at which recognition by AI is possible.

[0103] [Second embodiment] In the above-described first embodiment, when generating a provisional quantization value map, an important feature map is generated by backpropagating the error of the recognition result, and the generated important feature map is aggregated on a block-by-block basis to determine a quantization value corresponding to the limit compression rate for each block.

[0104] In contrast, in the second embodiment, when generating a provisional quantization value map, the signal intensity of each region of the feature map output from the hidden layer in the recognition process is aggregated on a block-by-block basis to determine a quantization value for each block according to the limit compression rate.

[0105] The second embodiment will be described below, focusing on the differences from the first embodiment.

[0106] <Functional configuration of the analysis unit of the image processing device> First, the functional configuration of the analysis unit of the image processing device 120 according to the second embodiment will be described. Fig. 9 is a second diagram showing an example of the functional configuration of the analysis unit of the image processing device. As shown in Fig. 9, the analysis unit 900 includes an input unit / decoding unit 310, a CNN unit 910, a signal intensity calculation unit 920, a quantization value map generation unit 930, and an output unit 360.

[0107] Of these, the input unit / decoding unit 310 and the output unit 360 have the same functions as the input unit / decoding unit 310 and the output unit 360 in FIG. 3, and therefore a description thereof will be omitted here.

[0108] The CNN unit 910 has a trained model that performs recognition processing. The CNN unit 910 executes the trained model by inputting image data or decoded data. The CNN unit 910 also inputs image data and notifies the quantization value map generation unit 930 of the recognition result output from the trained model. Furthermore, the CNN unit 910 outputs a feature map from a hidden layer when the trained model is executed.

[0109] The signal strength calculation unit 920 acquires the feature map output from the CNN unit 910, and calculates the influence of each block of the image data on the recognition result by tallying the signal strength of the acquired feature map by block, and stores the calculated influence in the signal strength storage unit 940. When tallying the signal strength of the feature map by block, the signal strength calculation unit 920 calculates the error for two specified feature maps, and back-propagates the calculated error to acquire the error back-propagation result from the input layer of the trained model. Then, the signal strength calculation unit 920 generates a block map that specifies the positional relationship between each area of ​​the feature map and each block of the image data from the correspondence relationship between the acquired "error back-propagation result" and the "error between feature maps".

[0110] In the signal strength calculation unit 920, using the generated block map, the signal strength of the feature map is aggregated in units of blocks, thereby calculating the degree of influence on the recognition result of each block of the image data.

[0111] The quantization value map generation unit 930 sequentially changes the quantization value for each block, generates a quantization value map, and notifies the output unit 360. Further, the quantization value map generation unit 930 generates a tentative quantization value map by searching for a quantization value corresponding to the limit compression rate for each block based on the aggregation result of the signal strength stored in the signal strength storage unit 940. Also, the quantization value map generation unit 930 notifies the generated tentative quantization value map to the output unit 360.

[0112] Furthermore, the quantization value map generation unit 930 generates target region information based on the recognition result obtained from the CNN unit 910 and notifies the output unit 360.

[0113] <Specific Examples of the Processing of the CNN Unit and the Signal Strength Calculation Unit> Next, among the units constituting the analysis unit 900, specific examples of the processing of the CNN unit 910 and the signal strength calculation unit 920 will be described. FIG. 10 is a diagram showing specific examples of the processing of the CNN unit and the signal strength calculation unit.

[0114] As shown in FIG. 10, the CNN unit 910 has an input layer, a hidden layer, and an output layer as a learned model. When the image data is input to the layer 1001 of the input layer of the CNN unit 910, the image data is processed in the forward propagation direction in each layer, and a feature map 1000 (an example of the first feature map) is output from the layer 1002 of the hidden layer (see the thick solid arrow). Note that the example of FIG. 10 shows a state where the image data 1050 including three "persons" as an example of the recognition target is input.

[0115] Similarly, when decoded data 1 is input to layer 1001 of the input layer, the decoded data 1 is processed in the forward propagation direction in each layer, and a feature map 1010 (an example of a second feature map) is output from layer 1002 of the hidden layer (see the solid thick arrow). Note that the decoded data 1 is, for example, a quantization value Q 1 The quantization value map is a set of quantization values, and the encoded data is then decoded by the input unit / decoding unit 310 to obtain data.

[0116] Similarly, when decoded data 2 is input to layer 1001 of the input layer, the decoded data 2 is processed in the forward propagation direction in each layer, and a feature map 1020 (another example of the second feature map) is output from layer 1002 of the hidden layer (see the solid thick arrow). Note that the decoded data 2 is, for example, a quantization value Q 2 The quantization value map is a set of quantization values, and the encoded data is then decoded by the input unit / decoding unit 310 to obtain data.

[0117] Although not shown in FIG. 10, the same process is performed for decoded data 3, decoded data 4, . . . , and feature maps are output.

[0118] Here, the signal intensity calculation unit 920 calculates the error between the feature map 1000 and the feature map 1010, and back-propagates the calculated error from the hidden layer 1002. As a result, the error back-propagation result is output from the input layer 1001 of the CNN unit 910.

[0119] In the signal strength calculation unit 920, The backpropagation result output from layer 1001 of the input layer, The error between feature map 1000 and feature map 1010 From this correspondence, a block map 1030 is generated that specifies the positional relationship of which blocks of the image data the signal intensity of each region of the feature map (feature maps 1000, 1010, 1020, ...) output from hidden layer 1002 corresponds to.

[0120] Furthermore, the signal strength calculation unit 920 aggregates the signal strength of each feature map output from the hidden layer 1002 on a block-by-block basis based on the block map 1030, and generates a graph 1040 showing the change in signal strength for each block. The graph 1040 has the quantization value on the horizontal axis and the signal strength on the vertical axis, and the higher the signal strength, the higher the influence on the recognition result. The signal strength calculation unit 920 stores the generated graph 1040 in the signal strength storage unit 940.

[0121] As a result, the quantization value map generating unit 930 performs the following operations, for example: - When the signal strength falls below a certain threshold, or -When the change in signal strength exceeds a certain threshold, or If the signal strength gradient exceeds a certain threshold, or If the change in the slope of the signal strength exceeds a certain threshold, The quantization value that satisfies any one of the above conditions is determined to be the quantization value according to the limit compression ratio of each block.

[0122] <Image processing flow> Next, a flow of image processing by the image processing device 120 will be described. Fig. 11 is a second flowchart showing the flow of image processing by the image processing device. The difference from the first flowchart described using Fig. 8 is steps S1101 to S1103.

[0123] In step S1101, the analysis unit 900 processes the image data or decoded data in the forward propagation direction up to a predetermined processing range, and outputs a feature map from a hidden layer.

[0124] In step S1102, if the image data or decoded data being processed is a target for error backpropagation (e.g., image data, decoded data 1), the analysis unit 900 calculates an error of the feature map and backpropagates the calculated error to the input layer. In addition, the analysis unit 900 generates a block map using the error backpropagation result output from the input layer.

[0125] In step S1103, the analysis unit 900 uses the generated block map to count the signal intensity of each region of the feature map output in step S1101 for each block.

[0126] As is clear from the above description, the image processing device 120 according to the second embodiment determines a quantization value corresponding to the limit compression rate for each block by aggregating the signal intensity of each region of the feature map output from the hidden layer on a block-by-block basis.

[0127] As a result, according to the second embodiment, it is possible to obtain the same effects as those of the first embodiment.

[0128] [Third embodiment] In the above first and second embodiments, a case has been described in which after generating a provisional quantization value map, it is determined whether or not an overflow will occur in the virtual buffer, and if it is determined that an overflow will occur, the quantization value of the provisional quantization value map is changed.

[0129] In contrast, in the third embodiment, a case will be described in which it is first determined whether an overflow will occur in the virtual buffer, and when it is determined that an overflow will occur, the quantization value is changed by modifying the important feature map. The following describes the third embodiment, focusing on the differences from the first and second embodiments.

[0130] <Image processing system configuration> First, the system configuration of the entire image processing system including the image processing device according to the third embodiment will be described. Fig. 12 is a second diagram showing an example of the system configuration of the image processing system. The image processing system 100 of Fig. 12 differs from the image processing system 100 of Fig. 1 in that the functions of the analysis unit 1210 and the bit rate control unit 1220 realized by the image processing device 120 are different from the functions of the analysis unit 121 and the bit rate control unit 123 of Fig. 1. Therefore, the functions of the analysis unit 1210 and the bit rate control unit 1220 will be described below.

[0131] The analysis unit 1210 is another example of a modification unit, and has a trained model for performing recognition processing. The analysis unit 1210 performs recognition processing by inputting image data or decoded data of each frame of video data to the trained model.

[0132] In addition, the analysis unit 1210 generates an important feature map by performing an operation analysis of the trained model using, for example, the backpropagation method during the recognition process. At this time, the analysis unit 1210 determines whether or not overflow prediction information has been notified from the bit rate control unit 1220.

[0133] If it is determined that the overflow prediction information has not been notified, the analysis unit 1210 counts up the influence levels for each block for the generated important feature map.

[0134] On the other hand, when it is determined that the overflow prediction information has been notified, the analysis unit 1210 refers to the recognition target information and identifies, among the recognition targets included in the image data, recognition targets other than the recognition target previously specified by the recognition target information. The analysis unit 1210 also performs a correction on the important feature map to invalidate the influence of the position corresponding to the area of ​​the identified recognition target. The analysis unit 1210 then tallies the influence on a block-by-block basis for the important feature map after the correction to invalidate the influence.

[0135] In addition, the analysis unit 1210 instructs the encoding unit 122 to perform encoding processing using a predetermined number of different quantization values, and repeats the same processing as described above for each decoded data obtained by decoded the encoded data when encoding processing is performed on the image data using each quantization value.

[0136] That is, the analysis unit 1210 changes the quantization value map to change the image quality of the image data to be input to the trained model, and then counts the degree of influence on the recognition result of each block for each image data after the change. At that time, it is determined whether or not overflow prediction information has been notified, and if so, a correction is made to invalidate the degree of influence.

[0137] In addition, the analysis unit 1210 generates a determined quantization value map by searching for a quantization value corresponding to the limit compression rate for each block based on the change in the total value caused by changing the quantization value map. Furthermore, the analysis unit 121 notifies the encoding unit 122 of the generated determined quantization value map.

[0138] The bit rate control unit 1220 is another example of a determination unit, and calculates a virtual buffer position based on the actual information amount. The bit rate control unit 1220 also determines whether the calculated virtual buffer position exceeds a predetermined threshold, and if it determines that it exceeds the threshold, notifies the analysis unit 1210 of overflow prediction information.

[0139] <Functional configuration of the analysis unit of the image processing device> Next, a functional configuration of the analysis unit 1210 of the image processing device 120 will be described. Fig. 13 is a third diagram showing an example of the functional configuration of the analysis unit of the image processing device. As shown in Fig. 13, the analysis unit 1210 has an input unit / decoding unit 310, a CNN unit 320, an important feature map generation unit 1310, a counting unit 340, a quantization value map generation unit 1320, and an output unit 1330.

[0140] Of these, the input unit / decoding unit 310, the CNN unit 320, and the counting unit 340 have the same functions as the input unit / decoding unit 310, the CNN unit 320, and the counting unit 340 in FIG. 3, and therefore description thereof will be omitted here.

[0141] The important feature map generating unit 1310 acquires the recognition result output from the trained model of the CNN unit 320. In addition, the important feature map generating unit 1310 generates an important feature map by the backpropagation method using the acquired recognition result.

[0142] Specifically, the important feature map generating unit 330 calculates an error between a recognition result obtained by inputting image data and a recognition result obtained by inputting decoded data. The important feature map generating unit 1310 also backpropagates the calculated error to obtain an error backpropagation result from the input layer of the trained model. Furthermore, the important feature map generating unit 330 generates an important feature map based on the obtained error backpropagation result.

[0143] At this time, the important feature map generating unit 1310 judges whether or not overflow prediction information has been notified by the bit rate control unit 1220. When it is determined that the overflow prediction information has not been notified, the important feature map generating unit 1310 notifies the counting unit 340 of the generated important feature map.

[0144] On the other hand, when it is determined that overflow prediction information has been notified by the bit rate control unit 1220, the important feature map generation unit 1310 refers to the recognition target information. Then, the important feature map generation unit 1310 corrects the generated important feature map so as to invalidate the influence of positions corresponding to areas of recognition targets other than the recognition target specified by the recognition target information. Furthermore, the important feature map generation unit 1310 notifies the counting unit 340 of the corrected important feature map in which the influence has been invalidated.

[0145] In this way, when it is determined that the overflow prediction information has been notified, the important feature map generating unit 1310 invalidates the influence of positions in the important feature map corresponding to the areas of the recognition target other than the pre-specified recognition target. As a result, for the area, the encoding process is performed at a compression rate that exceeds the compression rate (limit compression rate) that would be determined based on the aggregation result when the influence is aggregated without invalidation. As a result, it is possible to maintain the recognition accuracy of the pre-specified recognition target while avoiding overflow in the virtual buffer. In other words, it is possible to suppress the deterioration of the recognition accuracy when encoding at a compression rate that exceeds the limit compression rate at which AI recognition is possible.

[0146] The quantization value map generating unit 1320 generates a quantization value map while sequentially changing the quantization value for each block, and notifies the output unit 1330. In addition, the quantization value map generating unit 1320 generates a determined quantization value map by searching for a quantization value corresponding to the limit compression rate for each block based on the counting result stored in the counting result storage unit 370, and notifies the output unit 1330.

[0147] The output unit 1330 notifies the encoding unit 122 of the quantization value map generated by the quantization value map generation unit 1320. In addition, the output unit 1330 notifies the encoding unit 122 of the determined quantization value map generated by the quantization value map generation unit 1320. Furthermore, the output unit 1330 notifies the encoding unit 122 of image data of a corresponding frame of the video data.

[0148] 13, reference numeral 1340 indicates an example of a determined quantization value map when it is determined that overflow prediction information has been notified. In the example of reference numeral 1340, the quantization value of a block at a position corresponding to the areas of recognition targets 1342 and 1343 other than the recognition target 1341 specified in the recognition target information among the recognition targets 1341 to 1343 is maximum.

[0149] <Functional configuration of the bit rate control unit> Next, a functional configuration of the bit rate control unit 1220 of the image processing device 120 will be described. Fig. 14 is a second diagram showing an example of the functional configuration of the bit rate control unit of the image processing device. As shown in Fig. 14, the bit rate control unit 1220 has a virtual buffer position calculation unit 1401 and an overflow determination unit 1402.

[0150] The virtual buffer position calculation unit 1401 calculates a virtual buffer position based on the actual information amount acquired from the encoding unit 122. In addition, the virtual buffer position calculation unit 1401 notifies the overflow determination unit 1402 of the calculated virtual buffer position.

[0151] The overflow determination unit 1402 determines whether the virtual buffer position notified by the virtual buffer position calculation unit 1401 is equal to or greater than a predetermined threshold. If the overflow determination unit 1402 determines that the virtual buffer position is less than the predetermined threshold, it determines that the possibility of an overflow occurring is low. On the other hand, if the overflow determination unit 1402 determines that the virtual buffer position is equal to or greater than the predetermined threshold, it determines that the possibility of an overflow occurring is high, and notifies the analysis unit 1210 of overflow prediction information.

[0152] <Image processing flow> Next, a description will be given of the flow of image processing by the image processing device 120. Fig. 15 is a third flowchart showing the flow of image processing by the image processing device.

[0153] In step S1501, the analysis unit 1210 initializes the quantization values ​​to generate a default quantization value map.

[0154] In step S1502, the analysis unit 1210 acquires image data or encoded data. If the analysis unit 1210 acquires encoded data, the analysis unit 1210 decodes the encoded data to generate decoded data.

[0155] In step S1503, the analysis unit 1210 performs a recognition process on the image data or the decoded data, and outputs the recognition result. The analysis unit 1210 also calculates an error between the recognition result output by performing the recognition process on the image data and the recognition result output by performing the recognition process on the decoded data.

[0156] In step S1504, the analysis unit 1210 generates an important feature map by backpropagating the calculated error.

[0157] In step S1505, the analysis unit 1210 determines whether or not overflow prediction information has been notified by the bit rate control unit 1220. If it is determined in step S1505 that overflow prediction information has been notified (YES in step S1505), the process proceeds to step S1506.

[0158] In step S1506, the analysis unit 1210 refers to the recognition target information and identifies recognition targets included in the image data other than the recognition target previously specified by the recognition target information. The analysis unit 1210 also performs a correction to the important feature map to invalidate the influence of the position corresponding to the area of ​​the identified recognition target, generates a corrected important feature map, and then proceeds to step S1507.

[0159] On the other hand, if it is determined in step S1505 that the overflow prediction information has not been notified (NO in step S1505), the process proceeds directly to step S1507.

[0160] In step S1507, the analysis unit 1210 counts up the influence levels for each block of either the important feature map generated in step S1504 or the important feature map corrected in step S1506.

[0161] In step S1508, the analysis unit 1210 determines whether or not the analysis has been performed on all of the predetermined number quantization values ​​that can be set in the encoding unit 122. In step S1508, if it is determined that there is a quantization value that has not been analyzed (NO in step S1508), the process proceeds to step S1509.

[0162] In step S1509, the analysis unit 1210 increases the quantization value and changes the quantization value map. The encoding unit 122 performs encoding processing on the image data using the changed quantization value map to generate encoded data. Then, the process returns to step S1502.

[0163] On the other hand, if it is determined in step S1508 that analysis has been performed on all quantized values ​​(YES in step S1508), the process proceeds to step S1510.

[0164] In step S1510, the analysis unit 1210 searches for a quantization value corresponding to the limit compression rate for each block, and generates a determined quantization value map. The analysis unit 1210 notifies the encoding unit 122 of the generated determined quantization value map.

[0165] In step S1511, the encoding unit 122 performs encoding processing on the image data of the frame to be processed using the notified determined quantization value map, and generates encoded data.

[0166] In step S1512, the encoding unit 122 transmits the generated encoded data to the server device .

[0167] In step S1513, the analysis unit 1210 determines whether or not to end the image processing. If it is determined in step S1513 that the image processing is not to be ended (NO in step S1513), the process returns to step S1501. In this case, the analysis unit 1210 initializes the quantization value and generates a default quantization value map before acquiring image data of the next frame in the video data.

[0168] On the other hand, if it is determined in step S1513 that the image processing is to be ended (YES in step S1513), the image processing is ended.

[0169] As is clear from the above description, the image processing device 120 according to the third embodiment determines whether or not an overflow will occur in the virtual buffer when performing encoding processing on image data of a frame to be processed of video image data. Furthermore, the image processing device 120 according to the third embodiment refers to the recognition target information when it is determined that an overflow will occur. Furthermore, the image processing device 120 according to the third embodiment corrects the important feature map by invalidating the influence of positions corresponding to areas of recognition targets other than those previously specified by the recognition target information, among the recognition targets included in the image data.

[0170] As a result, in the third embodiment, when it is determined that an overflow will occur in the virtual buffer, the areas of the recognition target other than the specified recognition target will be encoded at a compression rate exceeding the limit compression rate.

[0171] As a result, according to the third embodiment, it is possible to maintain the recognition accuracy for a pre-specified recognition target while avoiding overflow in the virtual buffer. In other words, according to the third embodiment, it is possible to suppress a decrease in recognition accuracy when encoding at a compression ratio exceeding the limit compression ratio at which recognition by AI is possible.

[0172] [Fourth embodiment] In the above third embodiment, a case has been described in which the important feature map is modified when it is determined that an overflow will occur in the virtual buffer.

[0173] In contrast, in a fourth embodiment, a case will be described in which, when it is determined that an overflow will occur in the virtual buffer, the aggregation result for each block regarding the signal intensity of each region of the feature map is corrected.

[0174] The fourth embodiment will be described below, focusing on the differences from the second and third embodiments.

[0175] <Functional configuration of the analysis unit of the image processing device> First, a functional configuration of the analysis unit 1210 of the image processing device 120 according to the fourth embodiment will be described. Fig. 16 is a fourth diagram showing an example of the functional configuration of the analysis unit of the image processing device. As shown in Fig. 16, the analysis unit 1210 has an input unit / decoding unit 310, a CNN unit 910, a signal intensity calculation unit 1610, a quantization value map generation unit 1620, and an output unit 1630.

[0176] Of these, the input unit / decoding unit 310 and the CNN unit 910 have the same functions as the input unit / decoding unit 310 in FIG. 3 and the CNN unit 910 in FIG. 9, and therefore description thereof will be omitted here.

[0177] The signal strength calculation unit 1610 obtains the feature map output from the CNN unit 910, and calculates the influence of each block of the image data on the recognition result by tallying up the signal strength of the obtained feature map on a block-by-block basis. At this time, the signal strength calculation unit 1610 determines whether or not overflow prediction information has been notified from the bit rate control unit 1220.

[0178] If it is determined that the overflow prediction information has not been notified, the signal strength calculation unit 1610 stores the signal strengths tallied for each block in the signal strength storage unit 940.

[0179] On the other hand, when it is determined that the overflow prediction information has been notified, the signal strength calculation unit 1610 refers to the recognition target information and identifies recognition targets included in the image data other than the recognition target previously specified by the recognition target information. The signal strength calculation unit 1610 also performs correction to invalidate the signal strength of the block at the position corresponding to the area of ​​the identified recognition target among the signal strengths collected by block. The signal strength calculation unit 1610 then stores the signal strength of each block after correction to invalidate the signal strength in the signal strength storage unit 940.

[0180] The quantization value map generating unit 1620 generates a quantization value map while sequentially changing the quantization value for each block, and notifies the output unit 1630. The quantization value map generating unit 1620 also generates a determined quantization value map by searching for a quantization value corresponding to the limit compression rate for each block based on the aggregation result of the signal strength stored in the signal strength storage unit 940. The quantization value map generating unit 1620 also notifies the output unit 1630 of the generated determined quantization value map.

[0181] The output unit 1630 notifies the encoding unit 122 of the quantization value map generated by the quantization value map generation unit 1620. In addition, the output unit 1630 notifies the encoding unit 122 of the determined quantization value map generated by the quantization value map generation unit 1620. Furthermore, the output unit 1630 notifies the encoding unit 122 of image data of a corresponding frame of the video data.

[0182] 16, reference numeral 1640 indicates an example of a determined quantization value map when it is determined that overflow prediction information has been notified. In the example of reference numeral 1640, the quantization value of a block at a position corresponding to the areas of recognition targets 1642 and 1643 other than recognition target 1641 specified in the recognition target information among recognition targets 1641 to 1643 is maximum.

[0183] <Image processing flow> Next, a flow of image processing by the image processing device 120 will be described. Fig. 17 is a fourth flowchart showing the flow of image processing by the image processing device. The differences from the third flowchart described using Fig. 15 are steps S1701 to S1703 and S1704.

[0184] In step S1701, the analysis unit 1210 processes the image data or decoded data in the forward propagation direction up to a predetermined processing range, and outputs a feature map from a hidden layer.

[0185] In step S1702, if the image data or decoded data being processed is a target for error backpropagation (for example, image data, decoded data 1), the analysis unit 1210 calculates an error of the feature map and backpropagates the calculated error to the input layer. In addition, the analysis unit 1210 generates a block map using the error backpropagation result output from the input layer.

[0186] In step S1703, the analysis unit 1210 uses the generated block map to aggregate the signal intensity of each region of the feature map output in step S1701 for each block.

[0187] In step S1704, the analysis unit 1210 refers to the recognition target information and identifies recognition targets included in the image data other than the recognition target previously designated by the recognition target information. The analysis unit 1210 also performs correction to invalidate the aggregation result of the signal intensity of the block at the position corresponding to the area of ​​the identified recognition target, among the signal intensity aggregated by block.

[0188] As is clear from the above description, when it is determined that an overflow will occur in the virtual buffer, the image processing device 120 according to the fourth embodiment modifies the aggregation result for each block regarding the signal intensity of each region of the feature map.

[0189] As a result, according to the fourth embodiment, it is possible to obtain the same effects as those of the third embodiment.

[0190] [Fifth embodiment] In the above embodiments, the recognition target information has been described as being fixed. However, the recognition target information may be variable, and may be switched, for example, on a frame-by-frame basis. Specifically, for example, it is assumed that the first to third recognition targets are included as three recognition targets across a plurality of frames. In this case, when performing encoding processing on image data of the first frame, the first recognition target is specified as the recognition target information, and when performing encoding processing on image data of the second frame, the second recognition target is specified as the recognition target. Furthermore, when performing encoding processing on image data of the third frame, the third recognition target is specified as the recognition target information.

[0191] In this way, by sequentially changing the recognition target specified in the recognition target information, the first to third recognition targets are each recognized once every three frames. In this case, for example, it becomes possible to complement the first recognition target in the image data of the second and third frames by using the image data of the first frame in which the first recognition target is recognized and the image data of the fourth frame in which the first recognition target is then recognized.

[0192] Furthermore, in each of the above embodiments, the number of layers included in the CNN unit is set to five due to space limitations, but the number of layers included in the CNN unit may be five or more.

[0193] 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]

[0194] 100: Image processing system 110: Imaging device 120: Image processing device 121:Analysis Department 122: Encoding section 123: Bit rate control section 130: Server device 131: Decoding section 310: Input section / decoding section 320:CNN Department 330: Important feature map generation unit 340: Counting section 350: Quantization value map generation unit 360: Output section 710: Information volume prediction unit 720: Virtual buffer position calculation unit 730: Overflow judgment unit 740: Allocated information amount calculation unit 750: Quantization value map determination unit 900:Analysis Department 910 :CNN Department 920: Signal strength calculation unit 930: Quantization value map generation unit 1210:Analysis Department 1220: Bit rate control section 1310: Important feature map generation unit 1320: Quantization value map generator 1330: Output section 1401: Virtual buffer position calculation unit 1402: Overflow judgment unit 1610: Signal strength calculation unit 1620: Quantization value map generator 1630: Output section

Claims

1. a determination unit that determines whether or not an overflow occurs in a virtual buffer when encoding image data of each frame of video image data; a change unit which, when it is determined that an overflow will occur and the amount of information allocated based on the virtual buffer position is notified, refers to the recognition target information and changes the quantization value of a block at a position corresponding to an area of ​​a recognition target other than the recognition target specified by the recognition target information among the recognition targets included in the image data, to a quantization value higher than the quantization value corresponding to the limit compression rate based on the amount of information; An image processing device comprising:

2. The present invention further includes an analysis unit that calculates the degree of influence of each block of the image data on the recognition result by backpropagating errors between a recognition result obtained by performing a recognition process on the image data and a recognition result obtained by performing a recognition process on a plurality of decoded data obtained by encoding the image data using different quantization values ​​and then decoding the image data, and that determines a quantization value of each block when encoding the image data, thereby generating a provisional quantization value map of quantization values ​​corresponding to a limit compression rate, The change unit is The image processing apparatus of claim 1 , further comprising: modifying quantization values ​​in the temporary quantization value map.

3. A determination unit that determines whether or not an overflow occurs in a virtual buffer when encoding image data of each frame of video image data; a modification unit which, when it is determined that an overflow will occur, refers to the recognition target information and modifies the quantization value of a block at a position corresponding to an area of ​​a recognition target other than the recognition target specified by the recognition target information among the recognition targets included in the image data, to a quantization value higher than the quantization value corresponding to the limit compression rate; The change unit is calculating an influence of each block of the image data on the recognition result by backpropagating an error between a recognition result obtained by performing a recognition process on the image data and a recognition result obtained by performing a recognition process on a plurality of decoded data obtained by encoding the image data using different quantization values ​​and then decoding the encoded data; and an image processing device that changes a quantization value to a higher value than the quantization value corresponding to the limit compression rate by correcting a degree of influence on a recognition result of blocks at positions corresponding to areas of recognition targets other than a recognition target specified by the recognition target information among the recognition targets included in the image data.

4. A determination unit that determines whether or not an overflow occurs in a virtual buffer when encoding image data of each frame of video image data; a change unit which, when it is determined that an overflow will occur, refers to the recognition target information and changes the quantization value of a block at a position corresponding to an area of ​​a recognition target other than the recognition target specified by the recognition target information among the recognition targets included in the image data, to a quantization value higher than the quantization value corresponding to the limit compression rate; an analysis unit that acquires a first feature map output from a hidden layer when a recognition process is performed on the image data, and a plurality of second feature maps output from a hidden layer when a recognition process is performed on a plurality of decoded data obtained by encoding the image data using different quantization values ​​and then decoding the image data, calculates a degree of influence of each block of the image data on a recognition result by tallying up signal intensities of each region of the first feature map and the plurality of second feature maps for each block, and determines a quantization value of each block when encoding the image data, thereby generating a provisional quantization value map of quantization values ​​according to a limit compression rate, The change unit is The image processing device modifies the quantization values ​​in the temporary quantization value map.

5. A determination unit that determines whether or not an overflow occurs in a virtual buffer when encoding image data of each frame of video image data; a modification unit which, when it is determined that an overflow will occur, refers to the recognition target information and modifies the quantization value of a block at a position corresponding to an area of ​​a recognition target other than the recognition target specified by the recognition target information among the recognition targets included in the image data, to a quantization value higher than the quantization value corresponding to the limit compression rate; The change unit is When a recognition process is performed on the image data, a first feature map is output from a hidden layer, and when a recognition process is performed on a plurality of decoded data obtained by encoding the image data using different quantization values ​​and then decoding the image data, a plurality of second feature maps are output from the hidden layer; calculating an influence of each block of the image data on a recognition result by tallying up signal intensities of each region of the first feature map and the plurality of second feature maps for each block; an image processing device that changes a quantization value to a higher value than the quantization value corresponding to the limit compression rate by correcting a degree of influence on a recognition result of blocks at positions corresponding to areas of recognition targets other than a recognition target specified by the recognition target information among the recognition targets included in the image data.

6. The image processing device according to claim 1 , wherein the recognition target specified by the recognition target information is changed on a frame-by-frame basis.

7. The image processing device according to claim 1 , further comprising an encoding unit that encodes the image data using the quantization value changed by the change unit.

8. determining whether or not an overflow occurs in a virtual buffer when encoding image data of each frame of the video image data; when it is determined that an overflow will occur and the amount of information allocated based on the virtual buffer position is notified, the recognition target information is referenced, and the quantization value of a block at a position corresponding to an area of ​​a recognition target other than the recognition target specified by the recognition target information among the recognition targets included in the image data is changed to a quantization value higher than the quantization value corresponding to the limit compression rate based on the amount of information; An image processing method in which the processing is performed by a computer.

9. determining whether or not an overflow occurs in a virtual buffer when encoding image data of each frame of the video image data; when it is determined that an overflow will occur and the amount of information allocated based on the virtual buffer position is notified, the recognition target information is referenced, and the quantization value of a block at a position corresponding to an area of ​​a recognition target other than the recognition target specified by the recognition target information among the recognition targets included in the image data is changed to a quantization value higher than the quantization value corresponding to the limit compression rate based on the amount of information; An image processing program that causes a computer to carry out the processing.

Citation Information

Patent Citations

  • Picture quality evaluation system

    JP1995184062A

  • Picture coding device

    JP2005005862A

  • Semiconductor device, encoding control method and camera apparatus

    JP2017168878A

  • Cooker

    JP2019050896A

  • Illumination system and projection device

    JP2020003785A