Computer system, and data compression method
The system efficiently generates compatible compressed data by preprocessing and using standard codecs to detect and prioritize important objects, addressing compatibility and speed issues in existing DNN-based compression techniques.
Patent Information
- Application Number
- JP2023058140
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2043-03-31
AI Technical Summary
Existing irreversible compression techniques, such as those using Deep Neural Networks (DNNs), face issues with compatibility to common data formats, require extensive retraining when important object definitions change, and are slow due to high computational demands, especially with high-resolution data.
A computer system with a compression unit that includes an important object detector and a compression level information generator, using preprocessing and standard codecs to generate compatible compressed data efficiently, without the need for extensive retraining, by detecting important objects and adjusting bit allocation based on their importance.
The system generates compatible compressed data at high speed while maintaining image quality for important objects, reducing computational overhead and enabling fast processing of high-resolution data without the need for extensive retraining.
Smart Images

Figure 2024145685000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a compression technique for reducing the amount of data. [Background technology]
[0002] From the viewpoint of reducing the cost required for storing and transmitting data, lossy compression techniques with high compression ratios are required. Furthermore, in addition to having a high compression ratio, these lossy compression techniques are required to be highly efficient from the viewpoint of suppressing the computational cost required for compression. Moreover, from the viewpoint of compatibility, it is desirable that the compressed data generated by lossy compression techniques conform to a commonly used data format.
[0003] As examples of lossy compression techniques, standardized compression techniques such as Advanced Video Coding (AVC), High Efficiency Video Coding (HEVC), and Versatile Video Coding (VVC) are known for video data.
[0004] In addition, a technology is known that uses a Deep Neural Network (DNN) such as an autoencoder to control the bit allocation amount for each region based on the importance of each region of multidimensional data, and generate compressed data (paragraphs 0169 to 0178 of Patent Document 1).
[0005] In industrial data, it is not always necessary to reproduce all information contained in the data with high fidelity after compression and decompression. For example, in the case of inspecting a power transmission tower using video data captured by a drone, high image quality is required in the area where the power transmission tower is captured, while degradation of image quality can be tolerated in the area of vegetation in the background. According to Patent Document 1, data suitable for the application and with a high compression ratio can be generated by controlling the bit allocation amount so that the area where important objects such as the power transmission tower are present has high image quality and the other areas are highly compressed. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] JP 2020-155071 A Summary of the Invention [Problem to be solved by the invention]
[0007] The technology disclosed in Patent Document 1 is expected to achieve a high compression rate. However, since the type of bit string that the DNN generates as compressed data is determined by learning, there is a problem (problem 1) in that the compressed data generated by the lossy compression technology disclosed in Patent Document 1 is not compatible with commonly used data formats such as AVC. [Means for solving the problem]
[0008] A representative example of the invention disclosed in the present application is as follows: That is, a computer system includes at least one computer having a processor, a storage device connected to the processor, and an interface connected to the processor, and includes a model that outputs inference data indicating the importance of each area of multidimensional data, a compression level information generation unit that generates compression level information including a parameter for determining the data amount of each area of the multidimensional data based on the inference data, and a compressor that generates the compressed data in a data format that ensures compatibility with a transmission destination of the compressed data by lossy compression using the compression level information. Effect of the Invention
[0009] According to the present invention, it is possible to efficiently generate compressed data that ensures compatibility with a transmission destination. Problems, configurations, and effects other than those described above will become apparent from the following description of the embodiments. [Brief description of the drawings]
[0010] [Figure 1]FIG. 1 is a diagram illustrating an overview of a system according to a first embodiment. [Diagram 2] FIG. 1 illustrates an example of a system configuration according to a first embodiment. [Diagram 3] FIG. 13 is a diagram illustrating an example of a data structure of pre-processing parameter management information according to the first embodiment. [Figure 4] FIG. 11 is a diagram illustrating an example of a data structure of important object designation information according to the first embodiment. [Diagram 5] 11 is a flowchart illustrating an example of a registration process of important object designation data executed by a compression unit according to the first embodiment. [Figure 6] 13 is a diagram illustrating an example of an important object designation interface provided by a compression unit according to the first embodiment. FIG. [Figure 7] 11 is a flowchart illustrating an example of a compression process executed by a compression unit according to the first embodiment. [Figure 8] 11 is a flowchart illustrating an example of pre-processing executed by a compression unit according to the first embodiment. [Figure 9] 11 is a flowchart illustrating an example of a compression level information generating process executed by a compression unit according to the first embodiment. [Figure 10] FIG. 11 is a diagram illustrating an example of a data structure of important object designation information according to the second embodiment. [Figure 11] FIG. 11 is a diagram illustrating an example of an important object designation interface provided by a compression unit according to the second embodiment. [Figure 12A] FIG. 13 is a diagram illustrating another example of the data structure of important object designation information according to the second embodiment. [Figure 12B] FIG. 13 is a diagram illustrating another example of the data structure of important object designation information according to the second embodiment. [Figure 13A] FIG. 13 is a diagram illustrating another example of an important object designation interface provided by the compression unit according to the second embodiment. [Figure 13B] FIG. 13 is a diagram illustrating another example of an important object designation interface provided by the compression unit according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] In addition to the above-mentioned problems, the technology described in Patent Document 1 has the following problems. (Problem 2) Since the definition of an important object and the bit allocation amount for each region are hard-coded as learning parameters of the DNN, when changing the definition of an important object, a large amount of learning data including teacher data indicating the important object is required, and re-learning takes time. (Problem 3) Since the DNN accepts input of high-resolution original data, determines the bit allocation amount, and generates compressed data, the compression speed is slow. For example, when a convolutional neural network is used as the DNN, the amount of calculation generally increases in proportion to the input resolution. Therefore, it takes a long time to process high-resolution data such as Full-HD and 4K.
[0012] Hereinafter, an embodiment of the present invention that solves the three problems will be described with reference to the drawings. However, the present invention should not be interpreted as being limited to the description of the embodiment shown below. It will be easily understood by those skilled in the art that the specific configuration can be changed without departing from the concept or purpose of the present invention.
[0013] In the configurations of the invention described below, the same or similar configurations or functions are given the same reference numerals, and duplicated explanations are omitted. EXAMPLES
[0014] First, an overview of the system according to the first embodiment will be described with reference to Fig. 1. Fig. 1 is a diagram for explaining the overview of the system according to the first embodiment.
[0015] The system of the first embodiment comprises a data generation source 100, an important object specification interface 101, and a compression unit .
[0016] The data generation source 100 is an entity that generates data to be compressed, and is, for example, an image sensor that generates moving image data. In this embodiment, a case will be described in which the data generation source 100 is an image sensor that generates moving image data.
[0017] The data generation source 100 and the generated data are not limited thereto, and may be, for example, an image sensor that generates still image data, a vibration sensor that generates one-dimensional time series data, or the like. The data generation source 100 is not limited to a sensor, and may be software such as Computer Graphics that generates video data and still image data. The data of the data generation source 100 may be data obtained by processing data generated by a sensor and software, such as a segmentation map obtained by applying a machine learning model of Semantic Segmentation to each frame of video data. The data of the data generation source 100 may be a video file, etc. stored in a recording device. There may be a plurality of data generation sources 100.
[0018] The compression unit 102 is a module that compresses the data generated by the data generation source 100. The compression unit 102 may generate compressed data 103 for each frame of a video, or may generate compressed data 103 for every predetermined number of frames. The compression unit 102 includes a video data pre-processing unit 120, an important object detector 121, a compression level information generation unit 122, and an encoder 123.
[0019] When the compression unit 102 acquires video data to be compressed, it inputs a frame of the data (hereinafter, an original frame) to the video data pre-processing unit 120. The video data pre-processing unit 120 performs pre-processing such as downscaling on the input original frame, and generates a processed frame with a changed resolution, etc.
[0020] The important object detector 121 takes as input important object designation data stored in important object designation information 232 (see Figure 4) and the processed frame generated by the video data pre-processing unit 120, and calculates, for each pixel in the processed frame, the probability that the pixel is an important object.
[0021] The important object detector 121 is a machine learning model for semantic segmentation that uses, for example, a few-shot learning or zero-shot learning technique.
[0022] The compression level information generator 122 calculates compression level information for each compression unit of the encoder 123 based on the processing result of the important object detector 121 .
[0023] The encoder 123 compresses the original frame based on the compression level information generated by the compression level information generating unit 122, and generates compressed data 103. The encoder 123 is, for example, an encoder of a standardized video codec such as AVC. Note that the encoder 123 is not limited to the above-mentioned software encoder, and may be an HEVC encoder or a hardware encoder.
[0024] Here, the compression level information is a parameter of the encoder 123 that controls the bit allocation amount for each region. When the encoder 123 is an encoder conforming to AVC, the compression unit of the encoder 123 is a macroblock, and the compression level information is a Quantization Parameter value (QP value) for each macroblock, difference information of the QP value for each macroblock, information specifying the enhancement degree of image quality for each macroblock, etc. In this case, the compression level information generating unit 122 calculates the maximum value of the probability for each macroblock for the output of the important object detector 121, assigns a predetermined QP value to a macroblock whose maximum value is greater than a predetermined threshold, and generates, as the compression level information, spatial distribution information of the QP value in which a relatively large predetermined QP value is assigned to the other macroblocks. Note that the above-mentioned compression level information is merely an example, and is not limited thereto.
[0025] The important object designation information 232 is information for managing pairs of images and annotation data including an important object for each combination of the data generation source 100 and the type of important object. The important object designation information 232 shown in FIG. 1 stores important object designation data in which a power transmission tower is designated as an important object of the data generation source A. The important object designation data corresponds to an image in which the power transmission tower is shown and annotation data representing an area in which the power transmission tower is located in the image, for an identifier of the data generation source A and an identifier indicating the type of the power transmission tower designated by the user. A plurality of important objects may be designated for one data generation source 100, or a plurality of important object designation data defining one important object may be registered. The important object designation data is set by the user via the important object designation interface 101.
[0026] The configuration of the system according to the first embodiment will be described with reference to Fig. 2. Fig. 2 is a diagram illustrating an example of the configuration of the system according to the first embodiment.
[0027] The computer 200 is hardware that realizes the compression unit 102, and includes, for example, a calculation device 210, a switch 211, a memory 212, a front-end interface 213, and a back-end interface 214.
[0028] The front-end interface 213 is an interface for connecting to the data generation source 100 and the management terminal 201. The back-end interface 214 is an interface for connecting to the storage device 202 and the network 203.
[0029] The arithmetic device 210 is a device that controls the entire computer 200, and may be, for example, a general-purpose arithmetic device such as a CPU (Central Processing Unit), an accelerator such as a GPU (Graphical Processing Unit) and an FPGA (Field Programmable Gate Array), or a hardware encoder / decoder for a standard codec such as HEVC, or may be a combination of the above. The arithmetic device 210 is connected to a memory 212 and the like via a switch 211.
[0030] The memory 212 stores programs executed by the arithmetic device 210 and information used by the programs. The memory 212 is also used as a work area. The memory 212 of the first embodiment stores a compression program 230 that realizes the compression unit 102, pre-processing parameter management information 231, and important object designation information 232. The memory 212 may also store programs and information such as an OS (Operating System).
[0031] The storage device 202 may be a block device configured with a Hard Disk Drive (HDD) and a Solid State Drive (SSD), a file storage, a content storage, a volume constructed on a storage system, or any other method for accumulating data. In addition, if there is no need to store compressed data, the storage device 202 may be omitted.
[0032] The network 203 is a communication network such as a Local Area Network (LAN) or the Internet. The compression unit 102 can transmit the compressed data 103 to another device via the network 106. If there is no need to transmit the compressed data 103 to another device, the network 203 may be omitted.
[0033] The compression unit 102 may be realized using hardware in which hardware such as ICs (Integrated Circuits) are interconnected, or some of the functions of the compression unit 102 may be realized using a single semiconductor element as an ASIC (Application Specific Integrated Circuit) and an FPGA. The compression unit 102 may also be realized using a VM (Virtual Machine) realized by virtualization technology. Components other than those shown here may also be added.
[0034] The data generation source 100, the management terminal 201, the computer 200, and the storage device 202 may be different hardware devices, may be VMs running on the same computer, may be different containers running on the same OS (Operating System), or may be applications running on the same OS. Also, a combination of a plurality of implementation forms may be used. For example, the data generation source 100 is an image sensor, the compression unit 102 is an edge device connected to the image sensor and including a computing device 210, the management terminal 201 is a terminal that can be operated by a user, and the storage device 202 is an HDD.
[0035] FIG. 3 is a diagram showing an example of the data structure of the pre-processing parameter management information 231 according to the first embodiment.
[0036] The pre-processing parameter management information 231 is, for example, data in a table format, and stores entries including a data generation source 301, a downscaling coefficient 302, and a downscaling algorithm 303. Note that the fields included in the entries are merely examples and are not limiting.
[0037] The data source 301 is a field for storing an identifier of the data source 100. The identifier of the data source 100 is, for example, a character string named by a user, a Media Access Control (MAC) address or an Internet Protocol (IP) address assigned to the data source 100, or any code capable of identifying the data source 100. Note that, if the data source 100 is self-evident, the entry does not need to include the data source 301.
[0038] The downscaling coefficient 302 and the downscaling algorithm 303 are fields that store parameters for controlling the conversion of the original frame.
[0039] In the pre-processing parameter management information 231 shown in FIG. 3, an entry is set that defines pre-processing for reducing the length and width of the original frame of the data generation source A to 1 / 16 by using a bilinear algorithm.
[0040] The pre-processing parameter management information 231 may be set by a user via the management terminal 201, or may be automatically set by the arithmetic device 210 when the compression unit 102 is started or a new data generation source 100 is added, or may be set by other methods. For example, when a data generation source 100 is added, the arithmetic device 210 can check the codec of the encoder 123 and determine the downscale coefficient based on the check result. For example, if the codec of the encoder 123 is AVC and compression level information can be specified by a QP value in units of 16 pixel x 16 pixel macroblocks, the arithmetic device 210 can set the downscale coefficient 302 to 1 / 16 based on the information that the encoder 123 is an AVC encoder.
[0041] Note that the larger the downscale coefficient, the longer the processing time increases, but there is a trade-off in that the accuracy of the important object detector 121 improves, so a value other than the inverse of the length of one piece of a macroblock may be set. Also, the downscale coefficient does not need to be a constant, and may be dynamically changed for each frame. For example, first, processing is performed with a downscale coefficient of 1 (i.e., the resolution is not changed), and if the area of the important object detected by the important object detector 121 is large, it is determined that the important object is captured in a relatively large size and downscaling will not have a significant effect on detection, and the downscale coefficient is reduced to 1 / 2 in the next frame. In this manner, the downscale coefficient may be dynamically adjusted until it becomes the inverse of the length of one piece of a macroblock at the minimum. Also, the above adjustment process may be performed again at a predetermined frame interval. Also, the range of values used for dynamic adjustment may be managed by the preprocessing parameter management information 231.
[0042] The method of setting the various fields of the pre-processing parameter management information 231 is not limited to this.
[0043] In addition, the pre-processing parameter management information 231 may have any data structure that can manage parameters related to frame conversion, and may also have a data structure other than a table, such as XML (Extensible Markup Language), YAML (YAML Ain't a Markup Language), a hash table, or a tree structure.
[0044] FIG. 4 is a diagram showing an example of the data structure of the important object designation information 232 according to the first embodiment.
[0045] The important object designation information 232 is, for example, data in a table format, and stores entries including a data generation source 401, an object type 402, an image 403, and an annotation 404. Note that the fields included in the entry are merely examples and are not limited to these.
[0046] The data source 401 is a field for storing the identifier of the data source 100 and is the same as the data source 301 .
[0047] The object type 402 is a field that stores an identifier that indicates the type of important object. The identifier is, for example, a character string named by the user, but is not limited to this. In addition, when one important object designation data is set for one type of important object, the entry does not need to include the object type 402.
[0048] Image 403 and annotation 404 are fields that store image and annotation data for specifying an important object. For example, image 403 stores an image including an important object, and annotation 404 stores a monochrome image (annotation data) indicating an area in the image where the important object exists. Note that the annotation data is not limited to the above. For example, it may be XML data that stores the coordinates and size of a bounding box that indicates the area where the important object exists, or data in any other data format.
[0049] Here, a specific example of information stored in the important object designation information 232 will be described with reference to FIG. 4. In the important object designation information 232 shown in FIG. 4, important object designation data related to two types of important objects "obj1" and "obj2" are stored for the data generation source 100 to which the identifier "A" is assigned. The important object to which the identifier "obj1" is assigned is a power transmission tower, and two important object designation data 411 and 412 are set. The image 403 of the important object designation data 411 and 412 stores an image including the power transmission tower, and the annotation 404 stores a monochrome image showing the area in the image where the power transmission tower exists. The important object to which the identifier "obj2" is assigned is a wind power generator, and one important object designation data 413 is set. The image 403 of the important object designation data 413 stores an image including the wind power generator, and the annotation 404 stores a monochrome image showing the area in the image where the wind power generator exists.
[0050] The data structure of the important object specification information 232 is not limited to table format data, and may be a data structure other than a table, such as XML, YAML, a hash table, or a tree structure.
[0051] The important object designation information 232 may be divided into information for managing the correspondence between the data generation source and the object type, and information for managing the correspondence between the object type and the image and annotation data. By managing the information in this manner, the definition information of the important object can be shared among a plurality of data generation sources 100.
[0052] Next, the process executed by the compression unit 102 will be described with reference to FIGS.
[0053] Fig. 5 is a flowchart for explaining an example of a registration process of important object designation data executed by the compression unit 102 of the embodiment 1. Fig. 6 is a diagram showing an example of an important object designation interface 101 provided by the compression unit 102 of the embodiment 1.
[0054] The arithmetic device 210 functioning as the compression unit 102 starts the process described below when it receives a request from the management terminal 201 via the front-end interface 213. Note that the trigger for executing the process is not limited to the above-mentioned, and may be the start-up of the computer 200, etc.
[0055] The arithmetic device 210 provides the important object designation interface 101 for setting important object designation data to the management terminal 201 via the front-end interface 213 (step S501). Here, the important object designation interface 101 will be described with reference to FIG.
[0056] The important object designation interface 101 is displayed on a display device (not shown) of the management terminal 201. A user operates the important object designation interface 101 using an input device (not shown) of the management terminal 201.
[0057] A table 600 is displayed on the important object designation interface 101. The table 600 is a table for confirming and registering entries (important object designation data) including a data generation source 611, an object type 612, an image 613, and an annotation 614. The data generation source 611, the object type 612, the image 613, and the annotation 614 are the same fields as the data generation source 401, the object type 402, the image 403, and the annotation 404.
[0058] 6. The important object designation data registered in the important object designation information 232 may be displayed in the table 600. Entries 621, 622, and 623 in FIG.
[0059] The delete button 601 is an operation button for deleting an entry from the table 600. When the user operates the delete button 601, important object designation data corresponding to the entry is deleted from the important object designation information 232. Note that the important object designation data may be deleted by an operation other than the operation of the delete button 601.
[0060] The add button 602 is an operation button for adding an entry to the table 600. Note that an entry may be automatically added after a value is set in the last entry. In this case, the add button 602 is not necessary.
[0061] The entry 624 is an entry added by operating the add button 602. The identifier of the important object may be input directly by the user, or a drop-down list may be displayed so that the user can select it. The drop-down list includes the identifiers of existing object types and "New". When "New" is selected, the arithmetic device 210 automatically generates and assigns an identifier. The image may be input directly by the user as a file path, or the user may operate an operation button such as a Brows button displayed in the field to select it. The annotation data may be input directly by the user as annotation data generated in advance, or the user may operate an operation button such as a Brows button displayed in the field to select it. In addition, when the annotation 614 is clicked, the management terminal 201 may display a depiction screen of the annotation data, and the user may depict the annotation data representing the area in which the important object exists on the screen.
[0062] The setting button 603 is an operation button for registering the contents of the table 600 in the important object designation information 232. When the user operates the setting button 603, the management terminal 201 transmits a registration request including the table 600 to the compression unit 102. The compression unit 102 receives the registration request via the front-end interface 213, and updates the important object designation information 232 in accordance with the contents of the table 600.
[0063] The verification button 604 is an operation button for verifying the contents of the table 600. When the user operates the verification button 604, the management terminal 201 transmits a verification request for the table 600 to the compression unit 102. The compression unit 102 receives the verification request via the front-end interface 213, verifies the contents of the table 600, and responds with the result to the management terminal 201. The management terminal 201 displays the result in a field 605. For example, the compression unit 102 can verify whether the contents of the table 600 are sufficient by inferring the image 613 with the important object detector 121 and evaluating the error of the result with respect to the annotation 614, and respond with the result as a binary value of OK or NG. However, the specific content of the verification process is not limited to this. Also, the verification process may be executed by the management terminal 201. Also, the verification result is not limited to the binary value of OK or NG, and an image in which the result of inferring the image 613 with the important object detector 121 is visualized may be displayed in the field 605, or any other information may be displayed.
[0064] This concludes the description of the important object designation interface 101. Note that the important object designation interface 101 is not limited to that shown in Fig. 6. Other information not shown may be displayed, a different operation method may be used, or the design may be different. Return to the description of Fig. 5.
[0065] The arithmetic device 210 acquires the important object designation data input via the important object designation interface 101 (step S502), and updates the important object designation information 232 based on the data (step S503). After that, the arithmetic device 210 ends the registration process of the important object designation data.
[0066] FIG. 7 is a flowchart illustrating an example of the compression process executed by the compression unit 102 according to the first embodiment.
[0067] When the arithmetic unit 210 functioning as the compression unit 102 receives a new original frame via, for example, the front-end interface 213, it starts the compression process described below.
[0068] The arithmetic unit 210 performs pre-processing on the acquired original frame (step S701). Details of the pre-processing will be described with reference to Fig. 8. In the pre-processing, for example, a processed frame is generated by performing pre-processing such as downscaling.
[0069] The calculation device 210 extracts important object designation data related to the data generation source 100 of the original frame from the important object designation information 232 (step S702).
[0070] For example, in the case of important object designation information 232 having the data structure shown in Fig. 4, the calculation device 210 extracts an entry (important object designation data) in which the identifier of the data generation source 100 of the original frame is stored in the data generation source 401. When the identifier of the data generation source 100 is "A", entries 411, 412, and 413 are extracted.
[0071] The arithmetic device 210 starts loop processing of important objects (step S703). Specifically, the arithmetic device 210 identifies the type of important object based on the important object designation data extracted in step S702, and selects one type of object from the identified types of important objects. For example, when the entries 411, 412, and 413 are extracted in step S702, the arithmetic device 210 selects one type from "obj1" and "obj2". In this case, the loop processing is executed twice.
[0072] The arithmetic unit 210 acquires image and annotation data from important object designation data associated with the type of the selected important object (step S704). In the case of the loop processing of “obj1”, the arithmetic unit 210 acquires image and annotation data from each of the entries 411 and 412.
[0073] The computing device 210 performs inference of the important object detector 121 using the acquired set of image and annotation data as a support set and the processed frame as a query (step S705).
[0074] When the important object detector 121 is a deep learning model of Semantic Segmentation using few-shot learning technology, it receives a query image and a support set, and outputs a two-dimensional tensor representing the probability that an important object specified by the support set exists for each region of the query image. The support set includes one or more pairs of images and annotation data. When the support set includes a large number of pairs of images and annotation data, the detection accuracy is high.
[0075] Note that the important object detector 121 is not limited to this, and may be, for example, a deep learning model of object detection that utilizes a few-shot learning technique.
[0076] Furthermore, a re-learning process such as fine-tuning may be performed on the whole or part of the important object detector 121, or on a process added to the important object detector 121. For example, in a step immediately before the inference process (step S705) or in a process of registering important object designation data, parameters of the important object detector 121 can be re-learned using a support set as teacher data. Note that such a re-learning process may be combined with designation using a support set by re-learning a deep learning model of Semantic Segmentation that utilizes a few-shot learning technique. The re-learned parameters may also be managed as important object designation data.
[0077] In step S706, it is determined whether the processing is completed for all types of important objects that have been identified. If the processing is not completed for all types of important objects that have been identified, the arithmetic device 210 returns to step S703 and executes the same processing.
[0078] When the process is completed for all types of identified important objects, the arithmetic device 210 executes a compression level information generation process using the inference results of various important objects (step S707). The details of the compression level information generation process will be described with reference to FIG.
[0079] The computing device 210 generates compressed data based on the original frame and the compression level information (step S708). After that, the computing device 210 transmits the compressed data to the storage device 202 or a device connected via the network 203 via the backend interface 214, and ends the process.
[0080] FIG. 8 is a flowchart illustrating an example of pre-processing executed by the compression unit 102 according to the first embodiment.
[0081] The arithmetic device 210 acquires the parameters stored in the entry corresponding to the data generation source 100 of the received original frame from the pre-processing parameter management information 231 (step S801).
[0082] The arithmetic unit 210 converts the original frame into a processed frame based on the acquired parameters (step S802), and ends the pre-processing.
[0083] For example, in the case of the pre-processing parameter management information 231 shown in FIG. 4, the length and width of a frame received from data generation source A are reduced to 1 / 16 based on the bilinear algorithm.
[0084] FIG. 9 is a flowchart illustrating an example of a compression level information generation process executed by the compression unit 102 according to the first embodiment.
[0085] The arithmetic unit 210 calculates the maximum value for each element for the inference results of various important objects by the important object detector 121 (step S901).
[0086] For example, in the case of the pre-processing parameter management information 231 shown in Fig. 3 and the important object designation information 232 shown in Fig. 4, the important object detector 121 outputs a two-dimensional tensor representing the probability that each region is an important object at a resolution in which the length and width are 1 / 16 of the original frame. Since the two-dimensional tensor of probability is calculated for each of "obj1" and "obj2", in step S901, the maximum value of each of these elements is taken to determine the probability that the region represented by each element of the two-dimensional tensor is one or more important objects. Note that the calculation for aggregating the two-dimensional tensors of probabilities for multiple objects into one two-dimensional tensor is not limited to the calculation of the maximum value, and may be addition, etc.
[0087] The arithmetic device 210 calculates the maximum value of the two-dimensional tensor for each compression unit of the encoder 123, and calculates a new two-dimensional tensor (step S902).
[0088] For example, in the case of the pre-processing parameter management information 231 shown in FIG. 3, the important object designation information 232 shown in FIG. 4, and the encoder 123 being AVC with a macroblock size of 16×16, the two-dimensional tensor calculated in step S901 has a resolution that corresponds one-to-one to the number of AVC macroblocks in the original frame, so that a simple identity conversion is performed in step S902. For example, in the case where the downscale coefficient 302 of the pre-processing parameter management information 231 is 1 / 4, the arithmetic device 210 applies Max Pooling to the two-dimensional tensor calculated in step S901 for each 4×4 tile, thereby converting the two-dimensional tensor so that each element corresponds one-to-one to the macroblock, which is the unit of compression. Note that the aggregation process in step S902 is not limited to the calculation of the maximum value, and may be the calculation of an average value, etc.
[0089] The arithmetic device 210 generates compression level information for the encoder 123 based on the two-dimensional tensor calculated in step S902 (step S903).
[0090] For example, when the encoder 123 is an AVC encoder, the arithmetic device 210 generates a map of QP values in which, for each element of a two-dimensional tensor, if the value falls below a predetermined threshold (for example, if the value range of each element of the two-dimensional tensor is 0-1, the threshold is 0.5), the arithmetic device 210 assigns a predetermined value as the QP value of the macroblock corresponding to the element, and if the value is equal to or greater than the threshold, the arithmetic device 210 assigns a relatively small predetermined value as the QP value of the macroblock corresponding to the element. The threshold and the QP value to be assigned may be specified by the user via the management terminal 201, may be preset in the compression level information generating unit 122, or may use values adjusted by the arithmetic device 210 so as to achieve the target image quality and bit rate specified by the user. These values may be different for each data generating source 100 and object.
[0091] The method of converting the two-dimensional tensor calculated in step S902 into compression level information is not limited to this. For example, the QP value and threshold value may be controlled for each compression unit so as to improve the rate-distortion performance of the image quality of the region where an important object exists. Two examples of such control are described below.
[0092] First, a first example will be described. First, a rate-distortion curve is obtained when the QP value is changed for each macroblock. This may be obtained by actually assigning a QP value to each macroblock and evaluating the rate and distortion, or may be a value predicted using deep learning or the like. Next, based on the two-dimensional tensor calculated in step S902, each macroblock is classified into one included in an important object and another, using a first threshold (e.g., 0.5). Of the macroblocks that are not determined to be important objects, macroblocks that have a rate-distortion performance higher than the average and whose two-dimensional tensor value calculated in step S902 is greater than a second threshold (e.g., 0.2) that is smaller than the first threshold, are re-determined as macroblocks included in an important object. In other words, macroblocks that have good rate-distortion characteristics and a small increase in rate due to improving image quality are determined to be included in an important object under looser conditions. As a result of this determination, a predetermined QP value is set for macroblocks that are determined not to be included in an important object. This QP value may be a fixed value, or the encoder 123 may assign a different value to each macroblock based on the set values of the Constant Rate Factor and the Constant Bit Rate. For macroblocks determined to be included in an important object, a predetermined QP value smaller than the value assigned to macroblocks not determined to be an important region is first assigned. For macroblocks that have a larger distortion than a predetermined distortion target value and good rate-distortion performance as a result of the assignment of this QP, the QP value is further reduced to reduce the distortion below the target. On the other hand, for macroblocks that have a smaller distortion than a predetermined distortion target value and poor rate-distortion performance when this QP is assigned, the QP value is increased to improve the rate while suppressing the distortion below the target. With these controls, in macroblocks with good rate distortion, distortion is reduced with a slight increase in the rate, while in macroblocks with poor rate distortion, the distortion that was excessively small is increased within a range below the target, thereby realizing a reduction in the rate. As a result, the rate-distortion performance regarding the image quality of important objects can be improved in the entire video data.
[0093] Next, a second example will be described. In the second example, it is assumed that some frames of video data to be compressed are used as the image 613. First, for each element of the two-dimensional tensor calculated in step S902, if the value is greater than a predetermined threshold, a QP value is assigned to the macroblock corresponding to the element, and the video data is compressed. Next, for the compressed video data, the image quality of the object area indicated by the annotation 614 is evaluated. Next, the rate of the compressed video data is evaluated. Based on the rate and image quality of the object area at each QP value obtained in this manner, a QP value that provides the best rate-distortion performance is selected.
[0094] Although specific examples of the compression level information generation process have been described, the processing content is not limited to these, and any processing can be used as long as it can generate compression level information using the inference results of the important object detector 121 for various important objects.
[0095] As described above, according to the first embodiment, a standard codec is used, so that compatible compressed data can be generated at high speed. By using a detector (model) generated by few-shot learning, it is not necessary to prepare learning data and re-learn when the definition of an important object is changed. In addition, since the important object detector 121 only detects important objects, it can learn faster than the conventional DNN. In addition, by inputting a processed frame that has been subjected to preprocessing such as reducing the resolution to the important object detector 121, it is possible to speed up processing. EXAMPLES
[0096] In the first embodiment, a set of an image and annotation data is used as the object-specifying data, but in the second embodiment, natural language such as a word or a document is used as the object-specifying data. The second embodiment will be described below, focusing on the differences from the first embodiment.
[0097] The system configuration of the second embodiment is the same as that of the first embodiment. The functional configuration of the compression unit 102 of the second embodiment is the same as that of the first embodiment. The hardware configuration for realizing the compression unit 102 of the second embodiment is the same as that of the first embodiment. The pre-processing parameter management information 231 of the second embodiment is the same as that of the first embodiment.
[0098] In the second embodiment, the user specifies an important object in natural language using an important object specification interface 101 provided to the management terminal 201. For example, when specifying a power transmission tower as an important object, the user inputs a character string "power transmission tower". As a result, the compression unit 102 compresses the original frame with the power transmission tower as an important object.
[0099] In addition, the method of specifying an important object may be to input one word such as "power transmission tower" or a sentence consisting of two or more words such as "rusty power transmission tower." The natural language input by the user may be any language, including English and Japanese.
[0100] FIG. 10 is a diagram showing an example of the data structure of the important object designation information 232 according to the second embodiment.
[0101] The important object designation information 232 is, for example, data in a table format, and stores entries including a data generation source 1001 and an important object 1002. Note that the fields included in the entry are merely an example and are not limited to this.
[0102] The data source 1001 is a field for storing the identifier of the data source 100, and is the same as the data source 301. The important object 1002 is a field for storing the natural language for specifying the important object.
[0103] The important object designation information 232 shown in FIG. 10 includes entries 1011 and 1012 registered by the user.
[0104] The object type field is omitted from the entry of the important object designation information 232 in the second embodiment. This is based on the idea that, unlike the first embodiment in which object designation data is composed of one or more sets of images and annotation data, in the second embodiment in which an object is designated in a natural language, two or more object designation data are not necessary for one type of object. Note that the present invention is not limited to this, and two or more object designation data including different natural languages may be registered for one type of object, similar to the first embodiment.
[0105] The registration process of important object designation data in the second embodiment is the same as that in the first embodiment, but is different in the important object designation interface 101. Fig. 11 is a diagram showing an example of the important object designation interface 101 provided by the compression unit 102 in the second embodiment.
[0106] The important object designation interface 101 of the second embodiment displays a table 1100 for confirming / registering important object designation data, similar to the first embodiment. The table 1100 stores entries (important object designation data) including a data generation source 1111 and an important object 1112.
[0107] The data source 1111 is the same field as the data source 611. The important object 1112 is a field that stores a natural language for specifying an important object.
[0108] The delete button 1101 , the add button 1102 , the set button 1103 , and the verify button 1104 are the same operation buttons as the delete button 601 , the add button 602 , the set button 603 , and the verify button 604 .
[0109] The flow of the compression process in the second embodiment is the same as that in the first embodiment, but some of the process contents are different. In step S705, the calculation device 210 uses the natural language included in the important object designation data as an input to the important object detector 121 to perform inference.
[0110] In this case, the important object detector 121 may be, for example, a neural network model for a semantic segmentation task that can specify a target object by text. Some of such neural network models can execute semantic segmentation of multiple types of objects in a single inference by inputting multiple words separated by commas. In such a case, in steps S703 to S706, instead of looping for each object, a character string may be generated in which objects linked to the data generation source of the original frame are concatenated, for example, separated by commas, and the character string and the processed frame may be input to the important object detector 121. In addition, step S705 is not limited to this, and an important object may be specified by, for example, generating an image described in natural language and its annotation data by a deep learning model of Text-to-Image Translation, and inputting the generated image and its annotation data as a support set to a deep learning model of Semantic Segmentation using few-shot learning as described in Example 1. In addition, important objects can be specified by inferring a neural network model for the Semantic Segmentation task, which can specify target objects using text, using some frames of the video to be compressed as input, and inputting the results as annotation data and a support set with those frames as images into a deep learning model for Semantic Segmentation using few-shot learning as described in Example 1.
[0111] In addition, the first embodiment and the second embodiment may be combined. That is, the user may register important object designation data including a set of image and annotation data, or natural language, via the important object designation interface 101. In this case, in step S705, a deep learning model is used depending on the type of important object designation data stored in the important object designation information 232. In addition, data obtained by converting the set of image and annotation data, the natural language, or both may be managed as the important object designation information 232. For example, such converted data is tensor data obtained by previously executing a process performed on a support set in a Semantic segmentation model using few-shot learning. Hereinafter, information describing an object, such as a set of image and annotation data, natural language, and such converted data, is referred to as important object description information.
[0112] 12A and 12B show examples of important object designation information 232 in this case. This shows a case where important object designation information 232 is managed by dividing it into first information 1200 (FIG. 12A) for managing the correspondence between the data generation source and the object type, and second information 1210 (FIG. 12B) for managing the correspondence between the object type and important object description information.
[0113] The first information 1200 stores an entry including a data generation source 1201 and an object type 1202. The second information 1210 stores an entry including an object type 1211 and important object description information 1212. The important object description information 1212 includes a support set 1221, a natural language 1222, and conversion data 1223. By managing in this manner, the definition information of important objects can be shared among a plurality of data generation sources 100.
[0114] 13A and 13B are diagrams showing an example of the important object designation interface 101 for designating the important object designation information 232 shown in FIGS. 12A and 12B.
[0115] A first interface 1300 shown in FIG. 13A is an interface for setting the first information 1200, and a second interface 1330 shown in FIG.
[0116] The first interface 1300 includes a table 1301 for inputting a data generation source 1311 and an object type 1312. A delete button 1302, an add button 1303, and a set button 1304 are the same operation buttons as the delete button 601, the add button 602, and the set button 603. The first interface 1300 may be included in an interface through which the compression unit 102 receives data from the data generation source 100. In other words, a data compression request from the data generation source 100 to the compression unit 102 may include information on the object type corresponding to the generated data.
[0117] The second interface 1330 includes a table 1331 for inputting an object type 1341, an image 1342, an annotation 1343, and a natural language 1344. A delete button 1332, an add button 1333, a set button 1334, and a verify button 1335 are the same operation buttons as the delete button 601, the add button 602, the set button 603, and the verify button 604.
[0118] The present invention can be used to compress various types of multi-dimensional data, such as sensor data including sensor values and time, in addition to images such as still images and moving images.
[0119] The present invention is not limited to the above-mentioned embodiment, but includes various modified examples. For example, the above-mentioned embodiment describes the configuration in detail to easily explain the present invention, and the present invention is not necessarily limited to the configuration including all the described configurations. Also, it is possible to add, delete, or replace a part of the configuration of each embodiment with another configuration.
[0120] In addition, each of the above configurations, functions, processing units, processing means, etc. may be realized in part or in whole by hardware, for example, by designing them as integrated circuits. The present invention can also be realized by software program code that realizes the functions of the embodiments. In this case, a storage medium on which the program code is recorded is provided to a computer, and a processor included in the computer reads the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-mentioned embodiments, and the program code itself and the storage medium storing it constitute the present invention. Examples of storage media for supplying such program code include flexible disks, CD-ROMs, DVD-ROMs, hard disks, SSDs (Solid State Drives), optical disks, magneto-optical disks, CD-Rs, magnetic tapes, non-volatile memory cards, ROMs, etc.
[0121] Furthermore, the program code for realizing the functions described in this embodiment can be implemented in a wide range of program or script languages, such as assembler, C / C++, perl, Shell, PHP, Python, Java (registered trademark), etc.
[0122] Furthermore, the program code of the software that realizes the functions of the embodiments may be distributed over a network and stored in a storage means such as a computer's hard disk or memory, or in a storage medium such as a CD-RW or CD-R, and the processor of the computer may read out and execute the program code stored in the storage means or storage medium.
[0123] In the above-mentioned embodiment, the control lines and information lines are shown as those considered necessary for the explanation, and not all the control lines and information lines are shown in the product. All the components may be connected to each other. [Explanation of symbols]
[0124] 100 Data Sources 101 Important Object Specification Interfaces 102 Compression section 103 Compressed Data 106 Network 120 Video data preprocessing section 121 Important Object Detector 122 Compression level information generator 123 Encoder 200 calculator 201 Management terminal 202 Storage device 203 Network 210 Arithmetic equipment 211 Switch 212 Memory 213 Front-end Interface 214 Backend Interface 222 Switch 230 Compression Program 231 Pre-processing parameter management information 232 Important Object Designation Information
Claims
1. 1. A computer system comprising: at least one computer having a processor, a storage device coupled to the processor, and an interface coupled to the processor; A model that outputs inference data indicating the importance of each area of the multidimensional data; a compression level information generating unit that generates compression level information including a parameter for determining a data amount for each region of the multidimensional data based on the inference data; a compressor that generates the compressed data in a data format that ensures compatibility with a destination of the compressed data by lossy compression using the compression level information.
2. 2. The computer system of claim 1, A computer system characterized in that the compression level information generation unit generates the compression level information based on the inference data to generate compressed data that has a large amount of data in important areas and a small amount of data in unimportant areas.
3. 3. The computer system of claim 2, a pre-processing unit that performs pre-processing of the multi-dimensional data so as to reduce a computational cost of the model; A computer system, characterized in that the multidimensional data processed by the preprocessing unit is input to the model.
4. 4. The computer system of claim 3, holding pre-processing parameter management information for managing data associating an acquisition source for acquiring the multidimensional data with a pre-processing parameter for controlling the pre-processing; the preprocessing unit acquires the preprocessing parameters by referring to the preprocessing parameter management information based on the acquisition source of the multidimensional data; A computer system that executes the preprocessing using the acquired preprocessing parameters.
5. 5. The computer system of claim 4, the multidimensional data is a video image; The computer system according to claim 1, wherein the preprocessing is a process for reducing the resolution of the multidimensional data.
6. 3. The computer system of claim 2, The model is a model generated by few-shot learning using as input important object description information composed of at least one of a set of image and annotation data specifying an important object to be detected, a natural language specifying an important object to be detected, and data obtained by converting at least one of them; A computer system comprising: a computer that outputs a probability that the important object is included for each region of the multidimensional data.
7. 7. The computer system of claim 6, holding important object designation information for managing important object designation data associated with an acquisition source for acquiring the multidimensional data, a type of important object of interest, and the important object description information; A computer system, characterized in that the important object description information included in the important object designation data corresponding to the acquisition source of the multidimensional data is input to the model.
8. 7. The computer system of claim 6, holding first information for managing the association between an acquisition source for acquiring the multidimensional data and a type of an important object of interest, and second information for managing the association between the type of important object and the important object description information; Obtaining a type of the important object corresponding to the acquisition source of the multidimensional data from the first information; obtaining the important object description information corresponding to the type of the obtained important object from the second information; The acquired important object description information is input to the model.
9. 9. The computer system of claim 8, an interface for setting the first information; and an interface for setting the second information.
10. 10. The computer system of claim 9, an interface for instructing verification of the significant object description information; and an interface for acquiring the important object description information.
11. 6. The computer system of claim 5, 2. A computer system according to claim 1, wherein said compression level information includes a parameter representing a degree of compression for each compression unit of said compressor.
12. A data compression method executed by a computer system, comprising: The computer system comprises: at least one computer having a processor, a storage device connected to the processor, and an interface connected to the processor; A model is maintained that outputs inference data indicating the importance of each area of the multidimensional data, The data compression method includes: said computer system obtaining said inference data by inputting said multi-dimensional data into said model; generating compression level information including a parameter for determining a data amount for each region of the multidimensional data based on the inference data by the computer system; and generating the compressed data in a data format that ensures compatibility with a destination of the compressed data by lossy compression using the compression level information by the computer system.
Citation Information
Patent Citations
System and method for encoding data in an image / video recognition integrated circuit solution
US20190220699A1
Video object segmentation by reference-guided mask propagation
US20190311202A1
Method and system for optimizing image and video compression for machine vision
US20230028426A1
Information-processing device, information-processing system, control method, and program
WO2018037665A1
System and method for performing object analysis
WO2020245599A1
Cited By
Computer systems, data processing methods, and programs
JP2026139277A
