Image data transfer device and image data transfer method
By dividing and encoding image data into blocks for efficient transmission, the image data transfer device reduces display delay and maintains high quality, addressing the issue of delayed responses in head-mounted displays.
Patent Information
- Application Number
- JP2019179438
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2019-09-30
- Publication Date
- 2024-09-25
- Estimated Expiration
- 2039-09-30
AI Technical Summary
The delay in displaying image data due to communication between a client terminal and a server can impair the sense of realism and cause motion sickness, especially in head-mounted displays, particularly when higher image quality is pursued.
An image data transfer device and method that divides images into blocks, encodes them, and transmits them in units of blocks, allowing for pipeline processing and efficient data transmission, reducing delay time while maintaining image quality.
This approach achieves both high image quality and reduced delay time in image display, enhancing user experience by minimizing lag and improving responsiveness to user movements.
Smart Images

Figure 0007555698000002 
Figure 0007555698000003 
Figure 0007555698000004
Abstract
Description
[Technical field]
[0001] The present invention relates to an image data transfer device and an image data transfer method for processing data of a moving image to be displayed. [Background technology]
[0002] With the recent advances in information processing and image display technologies, it has become possible to experience the world of images in various forms. For example, by displaying a panoramic image on a head-mounted display and displaying an image corresponding to the user's line of sight, it is possible to enhance the sense of immersion in the world of images and improve the operability of applications such as games. In addition, by displaying image data streamed from a server with abundant resources, users can enjoy high-definition video images and game screens regardless of location or size. Summary of the Invention [Problem to be solved by the invention]
[0003] In a technology that instantly displays image data transmitted via a network on a client terminal, the delay time due to communication between the client terminal and the server can be a problem. For example, when a user operation on the client terminal is reflected in a displayed image, data must be exchanged between the user operation to the server and the image data from the server to the client terminal, which can cause a significant delay time. When a head-mounted display is used as the display destination, a delay in the display relative to the user's head movement can cause a loss of realism or motion sickness. This problem becomes more apparent the higher the image quality is pursued.
[0004] The present invention has been made in consideration of these problems, and its purpose is to provide a technology that can achieve both image quality and reduced delay time in image display involving data transmission via communication. [Means for solving the problem]
[0005] In order to solve the above problems, one aspect of the present invention relates to an image data transfer device, which includes an image acquisition unit that acquires data of a moving image, a division unit that forms image blocks by dividing a plurality of images corresponding to each frame of the moving image at a common boundary, a first encoding unit that compresses and encodes one of the plurality of images in units of image blocks, a second encoding unit that compresses and encodes the other images in units of image blocks using data compressed and encoded by the first encoding unit, and a communication unit that transmits the data compressed and encoded by the first encoding unit and the second encoding unit to an external device in units of image blocks.
[0006] Another aspect of the present invention relates to an image data transfer method, the image data transfer method including the steps of: acquiring data of a moving image, dividing a plurality of images corresponding to each frame of the moving image at a common boundary to form image blocks, compressing and encoding one image of the plurality of images in units of image blocks, compressing and encoding the other images in units of image blocks using the data compressed and encoded in the compressing and encoding step, and transmitting the compressed and encoded data in units of image blocks to an external device.
[0007] Any combination of the above components, and any transformation of the present invention into a method, device, system, computer program, data structure, recording medium, etc., are also effective as aspects of the present invention. Effect of the Invention
[0008] According to the present invention, it is possible to achieve both high image quality and reduced delay time in image display involving data transmission via communication. [Brief description of the drawings]
[0009] [Figure 1] 1 is a diagram illustrating an example of the configuration of an image processing system according to an embodiment of the present invention. [Diagram 2] 1 is a diagram showing an example of the appearance of a head mounted display according to an embodiment of the present invention; [Diagram 3] FIG. 2 is a diagram showing the basic configuration of a server and an image processing device according to the present embodiment. [Figure 4] 1 is a diagram conceptually showing a process from drawing to displaying an image in the present embodiment. [Diagram 5] FIG. 2 is a diagram illustrating functional blocks of a server and an image processing device according to the present embodiment. [Figure 6] 11A and 11B are diagrams for explaining the effect of the server and the image processing device performing pipeline processing on a partial image basis in the present embodiment. [Figure 7] 10 is a diagram illustrating an example of a state of transmission of partial image data between a server and an image processing device in the present embodiment. [Figure 8] 10 is a flowchart illustrating an example of a processing procedure in which a display control unit outputs data of partial images to a display panel while adjusting an output target and an output timing in the present embodiment. [Figure 9] FIG. 2 is a diagram showing a functional block configuration of an image processing device having a reprojection function in the present embodiment. [Figure 10] 4A to 4C are diagrams for explaining reprojection and distortion correction for an eyepiece performed by a first correction unit in the present embodiment. [Figure 11] 4A to 4C are diagrams for explaining an example of a procedure of a correction process performed by a first correction unit in the present embodiment. [Figure 12] 10 is a flowchart showing a processing procedure in which an output target determination unit of a display control unit adjusts an output target when an image processing device performs reprojection in the present embodiment. [Figure 13] FIG. 13 is a diagram for explaining a method for quantifying the degree of data loss based on the user's viewpoint in S94 of FIG. 12. [Figure 14] FIG. 13 is a diagram for explaining data necessary for reprojection, which is evaluated in S96 of FIG. [Figure 15]10 is a flowchart showing a procedure of a process performed by a server and an image processing device when performing reprojection in the image processing device of the present embodiment. [Figure 16] FIG. 2 is a diagram showing a configuration of functional blocks of a server and an image processing device capable of supporting display on a plurality of display devices of different configurations in the present embodiment. [Figure 17] 1 is a diagram illustrating an example of image format transition that can be realized in the present embodiment. [Figure 18] 1A to 1C are diagrams illustrating variations in a connection method for a display device on the user side (client side) in the present embodiment. [Figure 19] 10 is a flowchart showing a processing procedure in which the server transmits image data in a format determined according to a display mode in the present embodiment. [Figure 20] FIG. 1 is a diagram showing a configuration of a server having a function of compressing images from multiple viewpoints at a high rate and a functional block of an image processing device that processes the compressed images in the present embodiment. [Figure 21] 1 is a diagram illustrating an example of the relationship between image blocks that are compression-coded by a first encoding unit and a second encoding unit, and image blocks that refer to the compression-coding results for that purpose in this embodiment. FIG. [Figure 22] 11A and 11B are diagrams for explaining the effect of the server in this embodiment compressing and encoding in units of image blocks by utilizing similarities between images from multiple viewpoints. [Figure 23] 2 is a diagram showing a functional block configuration of a compression encoding unit when scalable video encoding is performed in the present embodiment. FIG. [Figure 24] FIG. 10 is a diagram illustrating the relationship between image blocks that are compression-encoded by a first encoding unit and a second encoding unit, and image blocks that refer to the compression-encoding results for this purpose, when scalable video encoding is performed in this embodiment. [Diagram 25] FIG. 10 is a diagram illustrating the relationship between image blocks that are compression-encoded by a first encoding unit and a second encoding unit, and image blocks that refer to the compression-encoding results for this purpose, when scalable video encoding is performed in this embodiment. [Figure 26] FIG. 2 is a diagram showing a functional block configuration of a server having a function of optimizing a data size reduction means in the present embodiment. [Figure 27] 11A and 11B are diagrams showing an example in which a score is determined according to the content of a moving image in the present embodiment. [Figure 28] 11A and 11B are diagrams showing an example in which a score is determined according to the content of a moving image in the present embodiment. [Figure 29] 11A and 11B are diagrams showing an example in which a score is determined according to the content of a moving image in the present embodiment. [Diagram 30] 11A and 11B are diagrams showing an example in which a score is determined according to the content of a moving image in the present embodiment. [Diagram 31] 11A and 11B are diagrams showing an example in which a score is determined according to the content of a moving image in the present embodiment. [Diagram 32] 10 is a flowchart showing a processing procedure in which the server adjusts the data size depending on the communication situation in the present embodiment. [Diagram 33] FIG. 2 is a diagram showing a functional block configuration of a server having a function for changing a compression ratio depending on an area on a frame based on the content of a moving image in this embodiment. [Diagram 34] 11 is a diagram for explaining a process in which an attention level estimation unit estimates an attention level distribution on an image plane in the present embodiment. FIG. [Diagram 35] 10 is a flowchart showing a processing procedure in which the server controls the compression rate for each region of an image plane in the present embodiment. [Diagram 36] FIG. 2 is a diagram showing a functional block configuration of a server having a function for changing a compression ratio depending on an area on a frame based on a user's gaze point in this embodiment. [Figure 37] 11 is a diagram for explaining a process in which an attention level estimation unit estimates an attention level distribution on an image plane in the present embodiment. FIG. [Figure 38] 11 is a diagram for explaining a method in which the compression encoding processing unit determines the distribution of compression rates based on the gaze point in this embodiment. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] 1. Overall system configuration 1 shows an example of the configuration of an image processing system according to the present embodiment. The image display system 1 includes an image processing device 200, a head mounted display 100, a flat display 302, and a server 400. The image processing device 200 is connected to the head mounted display 100 and the flat display 302 via an interface 300 such as wireless communication, USB Type-C, or HDMI (registered trademark). The image processing device 200 is further connected to the server 400 via a network 306 such as the Internet or a LAN (Local Area Network).
[0011] The server 400, as an image data transfer device, generates at least a part of an image to be displayed and transmits it to the image processing device 200. Here, the server 400 may be a server of a company that provides various distribution services such as cloud games, or a home server that transmits data to any terminal. Therefore, the network 306 is not limited in scale and may be a public network such as the Internet or a LAN (Local Area Network). For example, the network 306 may be a network via a mobile phone carrier network, a Wi-Fi spot in town, or a Wi-Fi access point in the home. Alternatively, the image processing device 200 and the server 400 may be directly connected by a video interface.
[0012] The image processing device 200 performs necessary processing on the image data transmitted from the server 400, and outputs it to at least one of the head mounted display 100 and the flat display 302. For example, the server 400 receives head movements and user operations of multiple users each wearing a head mounted display 100 from multiple image processing devices 200 connected to each head mounted display 100. Then, the server 400 renders a virtual world changed according to the user operations in a field of view corresponding to the head movement of each user, and transmits the rendered image to each image processing device 200.
[0013] The image processing device 200 converts the transmitted image data into a format suitable for the head mounted display 100 or the flat display 302 as necessary, and outputs it to the head mounted display 100 or the flat display 302 at an appropriate timing. By repeating such processing for each frame of a moving image, a cloud gaming system in which multiple users participate can be realized. At this time, the image processing device 200 may combine the image transmitted from the server 400 with a separately prepared UI (User Interface) plane image (also called an OSD (On Screen Display) plane image) or an image captured by a camera equipped in the head mounted display 100, and then output it to the head mounted display 100 or the flat display 302.
[0014] The image processing device 200 may also improve the responsiveness of the display to the movement of the head by correcting the image transmitted from the server 400 based on the position and orientation of the head mounted display 100 immediately before display. The image processing device 200 may also display an image on the flat display 302 with a similar field of view, allowing other people to see what image the user wearing the head mounted display 100 is looking at.
[0015] However, in this embodiment, the contents of the moving image to be displayed and the display destination thereof are not particularly limited. For example, the server 400 may display images taken by a camera (not shown) and live-stream them to the image processing device 200. In this case, the server 400 may obtain multi-viewpoint images taken by a plurality of cameras of an event venue such as a sports competition or concert, and use the images to create images in a field of view according to the movement of the head-mounted display 100, thereby generating live video from a free viewpoint and streaming the video to each image processing device 200.
[0016] Furthermore, the configuration of a system to which the present embodiment can be applied is not limited to that shown in the figure. For example, the display device connected to the image processing device 200 may be either the head mounted display 100 or the flat display 302, or may be multiple head mounted displays 100. The image processing device 200 may be built into the head mounted display 100 or the flat display 302. For example, a personal computer or a mobile terminal (portable game machine, high-performance mobile phone, tablet terminal) that is integrally equipped with a flat display and an image processing device may be used.
[0017] At least one of the head mounted display 100 and the flat display 302 may be connected to these devices as necessary. An input device (not shown) may be built into or connected to the image processing device 200 or these terminals. The number of image processing devices 200 connected to the server 400 is also not limited. Furthermore, the server 400 may receive operation contents of multiple users viewing their own flat displays 302 from multiple image processing devices 200 connected to each flat display 302, generate corresponding images, and transmit them to each image processing device 200.
[0018] 2 shows an example of the appearance of the head mounted display 100. In this example, the head mounted display 100 is composed of an output mechanism unit 102 and a wearing mechanism unit 104. The wearing mechanism unit 104 includes a wearing band 106 that goes around the head when worn by the user to secure the device. The output mechanism unit 102 includes a housing 108 shaped to cover the left and right eyes when the user wears the head mounted display 100, and is provided with a display panel inside so as to face the eyes when worn.
[0019] The housing 108 further includes an eyepiece lens that is positioned between the display panel and the user's eyes when the head mounted display 100 is worn, and that magnifies and displays an image. The head mounted display 100 may further include speakers or earphones at positions corresponding to the user's ears when worn. The head mounted display 100 may also include a motion sensor to detect the translational and rotational movements of the head of the user wearing the head mounted display 100, and further the position and posture at each time.
[0020] The head mounted display 100 further includes a stereo camera 110 on the front of the housing 108, a monocular camera 111 with a wide viewing angle in the center, and four cameras 112 with wide viewing angles in the four corners, the upper left, upper right, lower left, and lower right, and captures a moving image of the real space in a direction corresponding to the direction of the user's face. In one embodiment, the head mounted display 100 provides a see-through mode in which the real space in the direction the user faces is shown as it is by instantly displaying the moving image captured by the stereo camera 110.
[0021] At least one of the images captured by the stereo camera 110, the monocular camera 111, and the four cameras 112 may be used to generate a display image. For example, the position and posture of the head mounted display 100 relative to the surrounding space, and further the user's head, may be acquired at a predetermined rate by SLAM (Simultaneous Localization and Mapping), and the field of view of an image to be generated may be determined in the server 400, or the image may be corrected in the image processing device 200. Alternatively, the image processing device 200 may synthesize the captured image with an image transmitted from the server 400 to generate a display image.
[0022] The head mounted display 100 may also include any of motion sensors, such as an acceleration sensor, a gyro sensor, or a geomagnetic sensor, for deriving the position, attitude, and movement of the head mounted display 100. In this case, the image processing device 200 acquires information on the position and attitude of the user's head at a predetermined rate based on the measurement values of the motion sensor. This information can be used to determine the field of view of an image generated in the server 400 or to correct the image in the image processing device 200.
[0023] 3 shows the basic configuration of the server 400 and image processing device 200 in this embodiment. The server 400 and image processing device 200 in this embodiment are provided with local memories at key locations for storing partial images smaller than one frame of a display image. The server 400 performs pipeline processing for compression / encoding and transmission of image data, and the image processing device 200 performs reception, decoding / decompression, various image processing, and output to a display device for each partial image. This reduces the delay time from drawing an image in the server 400 to displaying it on a display device connected to the image processing device 200.
[0024] In the server 400, the drawing control unit 402 is realized by a CPU (Central Processing Unit) and controls the drawing of images in the image drawing unit 404. As described above, the content of the image to be displayed in this embodiment is not particularly limited, but the drawing control unit 402, for example, progresses a cloud game and causes the image drawing unit 404 to draw frames of a moving image showing the progress of the game. At this time, the drawing control unit 402 may obtain information related to the position and posture of the user's head from the image processing device 200 and control the drawing of each frame in a field of view corresponding thereto.
[0025] The image rendering unit 404 is realized by a GPU (Graphics Processing Unit), and renders frames of a moving image at a predetermined or variable rate under the control of the rendering control unit 402, and stores the results in a frame buffer 406. The frame buffer 406 is realized by a RAM (Random Access Memory). Under the control of the rendering control unit 402, the video encoder 408 compresses and encodes the image data stored in the frame buffer 406 in units of partial images smaller than one frame. The partial images are images of each area obtained by dividing the image plane of a frame into a predetermined size. In other words, the partial images are images of each area obtained by dividing the image plane by boundaries set in the horizontal direction, vertical direction, both vertical and horizontal directions, or diagonal directions, for example.
[0026] In this case, the video encoder 408 may start compression-encoding of one frame as soon as the image drawing unit 404 finishes drawing the frame, without waiting for a vertical synchronization signal from the server. According to the conventional technology in which various processes such as frame drawing and compression-encoding are synchronized based on the vertical synchronization signal, the frame order can be easily managed by aligning the time given to each process from image drawing to display on a frame-by-frame basis. However, in this case, even if the drawing process ends early depending on the contents of the frame, the compression-encoding process needs to wait until the next vertical synchronization signal. In this embodiment, as will be described later, unnecessary waiting time is prevented by managing the generation time on a partial image-by-partial image basis.
[0027] The encoding method used by the video encoder 408 for compression encoding may be a common one such as H.264 / AVC or H.265 / HEVC. The video encoder 408 stores the compressed and encoded image data of each partial image in the partial image storage unit 410. The partial image storage unit 410 is a local memory realized by a static random access memory (SRAM) or the like, and has a storage area corresponding to the data size of a partial image smaller than one frame. The same applies to the "partial image storage unit" described below. Each time the compressed and encoded partial image data is stored in the partial image storage unit 410, the video stream control unit 414 reads the data, and packetizes it after adding audio data, control information, and the like as necessary.
[0028] The control unit 412 constantly monitors the data writing status of the video encoder 408 to the partial image storage unit 410 and the data reading status of the video stream control unit 414, and appropriately controls the operations of both. For example, the control unit 412 controls the partial image storage unit 410 so that data shortage, i.e., buffer underrun, and data overflow, i.e., buffer overrun, do not occur.
[0029] The input / output interface 416 establishes communication with the image processing device 200, and sequentially transmits the data packetized by the video stream control unit 414 via the network 306. The input / output interface 416 may transmit audio data and the like as appropriate in addition to image data. As described above, the input / output interface 416 may further obtain information relating to a user operation or the position and posture of the user's head from the image processing device 200, and supply the information to the drawing control unit 402. In the image processing device 200, the input / output interface 202 sequentially obtains image and audio data transmitted from the server 400.
[0030] The input / output interface 202 may further acquire information related to user operations and the position and posture of the user's head from the head mounted display 100 or an input device (not shown) as appropriate, and transmit the information to the server 400. The input / output interface 202 decodes the packets acquired from the server 400, and stores the extracted image data in the partial image storage unit 204. The partial image storage unit 204 is a local memory provided between the input / output interface 202 and the video decoder 208, and constitutes a compressed data storage unit. The control unit 206 constantly monitors the data writing status of the input / output interface 202 to the partial image storage unit 204, the data reading status of the video decoder 208, and the like, and appropriately controls the operations of both units.
[0031] The video decoder 208, as a decoding and decompressing unit, reads out the data of a partial image stored in the partial image storage unit 204, decodes and decompresses the data in a procedure corresponding to the encoding method, and stores the data sequentially in the partial image storage unit 210. The partial image storage unit 210 is a local memory provided between the video decoder 208 and the image processing unit 214, and constitutes a decoded data storage unit. The control unit 212 constantly monitors the data writing status of the video decoder 208 to the partial image storage unit 210 and the data reading status of the image processing unit 214, and appropriately controls the operations of both units.
[0032] The image processing unit 214 reads out the decoded and expanded partial image data and performs necessary processing for display every time the data is stored in the partial image storage unit 210. For example, in the head mounted display 100, in order to visually recognize an undistorted image when viewed through an eyepiece, a correction process is performed to give a distortion opposite to that caused by the eyepiece.
[0033] Alternatively, the image processing unit 214 may refer to a UI plane image prepared separately and synthesize (superimpose) the image transmitted from the server 400. The image processing unit 214 may also synthesize an image captured by a camera provided in the head mounted display 100 with the image transmitted from the server 400. The image processing unit 214 may also correct the image transmitted from the server 400 so that the field of view corresponds to the position and posture of the user's head at the time of processing. The image processing unit 214 may also perform image processing suitable for output to the flat display 302, such as super-resolution processing.
[0034] In any case, the image processing unit 214 processes each partial image stored in the partial image storage unit 210, and sequentially stores the images in the partial image storage unit 216. The partial image storage unit 216 is a local memory provided between the image processing unit 214 and the display controller 220. The control unit 218 constantly monitors the data writing status of the image processing unit 214 to the partial image storage unit 216, the data reading status of the display controller 220, and the like, and appropriately controls the operations of both units.
[0035] Each time the data of a partial image after image processing is stored in the partial image storage unit 216, the display controller 220 reads out the data and outputs it at an appropriate timing to the head mounted display 100 or the flat display 302. Specifically, the display controller 220 outputs the data of the partial image at the top of each frame at a timing that matches the vertical synchronization signal of those displays, and then outputs the data of the partial images downwards in sequence.
[0036] 2. Pipeline processing for each partial image Next, the pipeline processing of partial images, which is realized in the server 400 and the image processing device 200 from drawing to displaying an image, will be described. Fig. 4 conceptually shows the state of processing from drawing to displaying an image in this embodiment. As described above, the server 400 generates frames 90 of a moving image at a predetermined or variable rate. In the illustrated example, the frame 90 has a configuration in which an image for the left eye and an image for the right eye are displayed in two equal areas, left and right, respectively, but this is not intended to limit the configuration of the images generated by the server 400.
[0037] As described above, the server 400 compresses and codes the frame 90 for each partial image. In the figure, the image plane is divided horizontally into five partial images 92a, 92b, 92c, 92d, and 92e. As a result, the partial images are compressed and coded in this order, and are transmitted to the image processing device 200 and displayed as indicated by the arrows. That is, while the top partial image 92a is being subjected to processing such as compression coding, transmission, decoding and expansion, and output to the display panel 94, the partial image 92b below it, the partial image 92c below it, and so on are transmitted and displayed in sequence. As a result, various processes required from drawing to displaying an image can be performed in parallel, and display can be progressed with a minimum delay even if transfer time is involved.
[0038] Fig. 5 shows functional blocks of the server 400 and the image processing device 200 of this embodiment. Each functional block shown in the figure can be realized in hardware by a CPU, a GPU, an encoder, a decoder, a computing unit, various memories, etc., and in software by a program that is loaded from a recording medium into a memory and performs various functions such as an information processing function, an image drawing function, a data input / output function, and a communication function. Therefore, it is understood by those skilled in the art that these functional blocks can be realized in various forms by only hardware, only software, or a combination thereof, and are not limited to any one of them. The same applies to the functional blocks described later.
[0039] The server 400 includes an image generating unit 420, a compression encoding unit 422, a packetizing unit 424, and a communication unit 426. The image generating unit 420 is composed of the drawing control unit 402, image drawing unit 404, and frame buffer 406 of Fig. 3, and generates frames of moving images to be transmitted to the image processing device 200, such as game images, at a predetermined or variable rate. Alternatively, the image generating unit 420 may acquire data of moving images from a camera or storage device (not shown). In this case, the image generating unit 420 can be read as an image acquiring unit. The same applies to the following explanations.
[0040] 3, partial image storage unit 410, and control unit 412, and compresses and encodes the image data generated by image generation unit 420 in units of partial images. Here, compression encoding unit 422 performs motion compensation and encoding in units of an area of a predetermined number of rows, such as one row or two rows, or a rectangular area of a predetermined size, such as 16×16 pixels or 64×64 pixels. Therefore, compression encoding unit 422 may start compression encoding once the image generation unit 420 has generated data of the minimum unit area required for compression encoding.
[0041] The partial image, which is the unit of pipeline processing in compression encoding and transmission, may be the same as the area of the minimum unit or may be a larger area. The packetization unit 424 is composed of the video stream control unit 414 and the control unit 412 in Fig. 3, and packetizes the compression-encoded partial image data in a format according to the communication protocol used. At this time, the time when the partial image was drawn (hereinafter referred to as "generation time") is obtained from the image generation unit 420 or the compression encoding unit 422, and is associated with the partial image data.
[0042] 3, and transmits packets including data of the compressed and encoded partial images and their generation time to the image processing device 200. With this configuration, the server 400 performs compression encoding, packetization, and transmission in parallel by pipeline processing in units of partial images smaller than one frame. The image processing device 200 includes an image data acquisition unit 240, a decoding and decompression unit 242, an image processing unit 244, and a display control unit 246.
[0043] The decoding / decompression unit 242 and the image processing unit 244 have a common function in that they perform predetermined processing on partial image data to generate partial image data for display, and at least one of them can be collectively referred to as an “image processing unit.” The image data acquisition unit 240 is composed of the input / output interface 202, partial image storage unit 204, and control unit 206 in Fig. 3, and acquires compressed and encoded partial image data together with the generation time from the server 400.
[0044] The decoding / decompression unit 242 is composed of the video decoder 208, partial image storage unit 210, control unit 206, and control unit 212 in Fig. 3, and decodes and decompresses the compressed and encoded partial image data. Here, the decoding / decompression unit 242 may start the decoding / decompression process when the image data acquisition unit 240 acquires data of the minimum unit area required for compression encoding such as motion compensation and encoding. The image processing unit 244 is composed of the image processing unit 214, partial image storage unit 216, control unit 212, and control unit 218 in Fig. 3, and performs a predetermined process on the partial image data to generate partial image data for display. For example, as described above, the image processing unit 244 performs correction to give an inverse distortion in consideration of the distortion of the eyepiece lens provided in the head mounted display 100.
[0045] Alternatively, the image processing unit 244 synthesizes an image to be displayed together with a moving image, such as a UI plane image, in partial image units. Alternatively, the image processing unit 244 acquires the position and posture of the user's head at that time, and corrects the image generated by the server 400 so that it is correctly displayed in the field of view. This makes it possible to minimize the time lag that occurs between the movement of the user's head and the displayed image due to the transfer time from the server 400.
[0046] The image processing unit 244 may also perform any one or a combination of other commonly performed image processing. For example, the image processing unit 244 may perform gun mark curve correction, tone curve correction, contrast enhancement, etc. In other words, based on the characteristics of the display device and user specifications, it may perform necessary offset correction on the pixel values and luminance values of the decoded and expanded image data. The image processing unit 244 may also perform noise removal processing that refers to neighboring pixels and performs processing such as superposition, weighted averaging, and smoothing.
[0047] The image processing unit 244 may also match the resolution of the image data with the resolution of the display panel, or refer to nearby pixels to perform weighted averaging, oversampling, etc., such as bilinear or trilinear. The image processing unit 244 may also refer to nearby pixels to determine the type of image texture, and selectively perform denoising, edge enhancement, smoothing, and tone / gamma / contrast correction accordingly. In this case, the image processing unit 244 may also perform processing in conjunction with an upscaler or downscaler for the image size.
[0048] The image processing unit 244 may also perform format conversion when the pixel format of the image data is different from the pixel format of the display panel. For example, conversion from YUV to RGB, RGB to YUV, conversion between 444, 422, and 420 in YUV, conversion between 8, 10, and 12-bit colors in RGB, etc. If the decoded image data is in a format compatible with a luminance range of HDR (High Dynamic Range) while the luminance range compatible range of the HDR of the display is narrow (e.g., the displayable luminance dynamic range is narrower than the HDR format specification), the image processing unit 244 may perform pseudo-HDR processing (color space change) to convert to an HDR luminance range format compatible with the display panel while retaining the characteristics of the HDR image as much as possible.
[0049] Furthermore, if the decoded image data is in an HDR-compatible format but the display only supports SDR (Standard Dynamic Range), the image processing unit 244 may perform color space conversion to the SDR format while preserving the characteristics of the HDR image as much as possible.If the decoded image data is in an SDR-compatible format but the display supports HDR, the image processing unit 244 may perform enhancement conversion to the HDR format in accordance with the characteristics of the HDR panel as much as possible.
[0050] Furthermore, if the gradation expression capability of the display is low, the image processing unit 244 may add error diffusion, or may perform dithering processing in conjunction with pixel format conversion. Furthermore, if there is partial loss or abnormality in the decoded image data due to loss of data transferred over the network or bit corruption, the image processing unit 244 may perform correction processing on that area. Furthermore, the image processing unit 244 may perform correction by filling in with a single color, by duplicating neighboring pixels, by using neighboring pixels from the previous frame, or by using pixels estimated from the periphery of the past frame or the current frame through adaptive loss correction.
[0051] Furthermore, the image processing unit 244 may perform image compression in order to reduce the required bandwidth of the interface for outputting from the image processing device 200 to the display device. At this time, the image processing unit 244 may perform lightweight entropy coding by referring to neighboring pixels, index value reference coding, Huffman coding, or the like. Furthermore, when a liquid crystal panel is used as the display device, it is possible to achieve a high resolution, but the response speed is slow. When an organic EL panel is used as the display device, it is possible to achieve a high resolution, but it is difficult to achieve a high resolution, and a phenomenon called black smearing, in which color bleeding occurs in and around a black area, may occur.
[0052] Therefore, the image processor 244 may perform corrections to eliminate various adverse effects caused by such display panels. For example, in the case of a liquid crystal panel, the image processor 244 resets the liquid crystal by inserting a black image between frames to improve the response speed. In addition, in the case of an organic EL panel, the image processor 244 applies an offset to the luminance value or the gamma value in gamma correction to make color bleeding caused by black smearing less noticeable.
[0053] 3 and the control unit 218, and sequentially displays data of partial images to be displayed on the display panel of the head mounted display 100 or the flat display 302. However, in this embodiment, since the compressed and encoded data of partial images is individually acquired from the server 400, it is possible that the acquisition order may be changed depending on the communication conditions, or that the data of partial images itself may not be acquired due to packet loss.
[0054] Therefore, the display control unit 246 derives the time that has elapsed since the partial image was drawn from the generation time of each partial image, and adjusts the output timing of the partial image to the display panel so as to reproduce the drawing timing in the server 400. Specifically, the display control unit 246 includes a data acquisition status specifying unit 248, an output target determining unit 250, and an output unit 252. The data acquisition status specifying unit 248 specifies the data acquisition status, such as the original display order and display timing of the partial image data, and the amount of missing data of the partial image, based on the generation time of the partial image data and / or the elapsed time from the generation time.
[0055] The output target determination unit 250 changes the output target to the display panel and appropriately adjusts the output order and output timing according to the data acquisition status. For example, the output target determination unit 250 determines whether to output the data of the original partial image included in the next frame or to output the data of the partial image included in the previous frame again according to the data acquisition status. The output target determination unit 250 determines such an output target by the timing of the vertical synchronization signal, which is the display start time of the next frame.
[0056] For example, the output target determination unit 250 may change the output target according to the amount (proportion) of acquired partial images, such as replacing the output target with data from the previous frame when a partial image is missing at a rate equal to or greater than a predetermined value in a frame. The output target determination unit 250 may also change the output target for the next frame display period according to the output performance of past frames and the elapsed time from the generation time. The output unit 252 outputs data of the partial images determined as output targets to the display panel in the order and timing determined by the output target determination unit 250.
[0057] 6 is a diagram for explaining the effect of the server 400 and image processing device 200 performing pipeline processing on a partial image basis in this embodiment. The horizontal direction of the diagram represents the passage of time, and each processing time is indicated by an arrow along with the name of the process. Among them, the process on the server 400 side is indicated by a thin line, and the process on the image processing device 200 side is indicated by a thick line. The notation in parentheses written next to the process name indicates that the process for one frame with frame number m is (m), and the process for the nth partial image of frame number m is (m / n).
[0058] Also, the vertical synchronizing signal on the server 400 side is denoted as vsync(server), and the vertical synchronizing signal on the image processing device 200 and display device side is denoted as vsync(client). First, (a) shows, for comparison, a conventional mode in which processing progresses in units of one frame. In this example, the server 400 controls the processing for each frame by the vertical synchronizing signal. For this reason, the server 400 starts compression encoding of the data of the first frame stored in the frame buffer in sync with the vertical synchronizing signal.
[0059] The server 400 then starts compression-encoding the second frame of data in synchronization with the next vertical synchronization signal, and packets the compressed and encoded first frame of data in a predetermined unit and transmits it. The image processing device 200 performs decoding and decompression processing in the order in which the frames arrive. However, even if decoding and decompression are completed and the frame is ready for display, the display is put on hold until the timing of the next vertical synchronization signal. As a result, in the illustrated example, a delay of more than two frame display periods occurs from when the server 400 completes drawing one frame and starts compression-encoding processing to when the display starts.
[0060] A longer delay may occur depending on the communication time between the server 400 and the image processing device 200, the difference in timing of the vertical synchronization signals between the two, etc. According to the present embodiment shown in (b), the server 400 starts sending data of the first partial image of the first frame when the compression encoding of the first partial image is completed. While that data is being transmitted over the network 306, the transmission process progresses in partial image units, such as compression encoding and transmission of the second partial image, compression encoding and transmission of the third partial image, and so on.
[0061] The image processing device 200 sequentially decodes and expands the acquired partial image data. As a result, the data for the first partial image reaches a state where it can be displayed much faster than in the case of (a). The data for the first partial image waits until the timing of the next vertical synchronization signal before displaying it. The subsequent partial images are output sequentially following the output of the first partial image. Since the display time for one frame itself is the same as in (a), the display of the nth partial image will be completed by the time of the next vertical synchronization signal.
[0062] In this way, by progressing the process from compression and encoding of image data to display in units smaller than one frame in parallel, in the illustrated example, it is possible to realize display one frame earlier than in the case of (a). Note that in the illustrated example, in the case of (b), the compression and encoding by the server 400 is also started in response to a vertical synchronization signal, but if the compression and encoding is performed without waiting for the vertical synchronization signal as described above, the delay time can be further reduced.
[0063] Furthermore, the display control unit 246 of the image processing device 200 may shift the timing of at least one of the vertical synchronization signal and the horizontal synchronization signal within a range permitted by the display device, depending on the timing when the data of the partial image becomes available for display. For example, the display control unit 246 may shorten the waiting time from when the display panel is ready for output to the display panel until the actual output is performed by changing the operating frequency of the pixel clock, which is the basis for all display timings, by a predetermined small amount, or by changing the horizontal blanking period or the vertical blanking period by a predetermined small amount. The display control unit 246 may repeat this change for each frame to prevent the display from collapsing due to a single large change.
[0064] The example shown in Fig. 6 shows an ideal case in which partial image data independently sent from the server 400 arrives at the image processing device 200 smoothly and in approximately the same transmission time. On the other hand, by making the granularity of the processing unit finer, changes in the data acquisition status in the image processing device 200 are more likely to occur. Fig. 7 shows an example of the transmission status of partial image data between the server 400 and the image processing device 200.
[0065] The vertical direction of the diagram represents the passage of time, and the arrows indicate the time it takes for the data of the first to seventh partial images shown on the axis of the server 400 to reach the image processing device 200. The communication status between the server 400 and the image processing device 200 may constantly change, and the data size of the partial images after compression and encoding may also change each time, so the transmission time of the data of each partial image also varies. Therefore, even if the server 400 sends the data of the partial images in order at approximately the same cycle, that status may not necessarily be maintained when the image processing device 200 acquires the data.
[0066] In the illustrated example, the acquisition interval t1 of the data of the first and second partial images is significantly different from the acquisition interval t2 of the data of the second and third partial images. The acquisition order of the data of the fourth and fifth partial images is also reversed. Furthermore, some data, such as the data of the sixth partial image, may not reach the image processing device 200 due to packet loss. In such a situation, if the image processing device 200 outputs the acquired partial image data to the display panel in the same order, it is natural that the original image may not be displayed or the display cycle may be disrupted.
[0067] Therefore, the data acquisition status identification unit 248 refers to the generation time of each partial image on the server 400 side and grasps the various statuses shown in Fig. 7. This allows the output target determination unit 250 to optimize the output target during the display period of each frame and the output timing of the partial images. For this reason, the communication unit 426 of the server 400 may transmit to the image processing device 200 the history of the generation times of a predetermined number of partial images that have already been transmitted, together with the partial image data and their generation times.
[0068] For example, the communication unit 426 transmits the generation times of the most recently transmitted 64 partial images together with the data of the next partial image. The data acquisition status identification unit 248 of the image processing device 200 can detect missing data or a reversal of the acquisition order by comparing the history of the generation times with the generation times of the partial images actually acquired. In other words, when missing data occurs, the data acquisition status identification unit 248 can obtain the generation time of that partial image from the history of the generation times transmitted together with the subsequent partial images.
[0069] 8 is a flowchart showing an example of a processing procedure in which the display control unit 246 outputs partial image data to the display panel while adjusting the output target and output timing in this embodiment. This flowchart shows a processing procedure performed for a frame that should start displaying in accordance with the vertical synchronization signal at a predetermined timing before the timing of the vertical synchronization signal of the display panel. That is, the illustrated processing is repeated for each frame.
[0070] First, the data acquisition status identifying unit 248 of the display control unit 246 identifies the acquisition status of the partial image included in the target frame (S10). The data acquisition status identifying unit 248 may further record and refer to the output results of the partial images in the frames up to that point. Here, the output results are, for example, at least any of the following data: 1. History of the classification selected during the specified period in the past out of the three classifications described below 2. History, occurrence rate, and area ratio of missing partial images in the first category described below during a specified period in the past 3. The time since the image was last updated
[0071] The output target determination unit 250 then determines which of the previously prepared classifications the identified situations fall into (S12). The output target determination unit 250 basically performs a comprehensive determination from various perspectives and determines the output target so as to provide the best user experience. For this purpose, the data acquisition situation determination unit 248 acquires at least one of the following parameters in S10.
[0072] 1. The amount of partial images that have been acquired among the partial images that make up the target frame 2. Missing area of partial image in target frame 3. Display duration of the same image frame 4. The duration of the blackout, as described below 5. Time elapsed since the partial image was generated For each of the above parameters, one or more threshold values are set.
[0073] The output target determination unit 250 then classifies the situation by, for example, assigning a score depending on which range the parameters acquired for the target frame fall into. For example, a score is assigned to each of the parameters acquired in S10 based on a predetermined table, and the situation is classified based on the distribution of the scores of all the parameters. In the illustrated example, three classifications are prepared. If the situation falls into the first classification, the output target determination unit 250 determines that the data of the latest partial image acquired so far is to be output, and causes the output unit 252 to output it (S14).
[0074] For example, if the constituent partial images have been acquired at a predetermined value (predetermined ratio) or more, and the elapsed time from the generation time of the partial images is within the allowable range, the output target determination unit 250 classifies the target frame as the first category based on the score judgment. At this time, the output target determination unit 250 adjusts the timing so that the partial images are output in the order corresponding to each generation time. Ideally, the partial images are output sequentially from the top of the frame, as shown in FIG. 6.
[0075] However, if there are missing partial images along the way, the following parameters may be further scored for each missing portion to determine whether to reuse the partial image at the same position in the previous frame or to black out that portion. 1. Display duration of the same image frame 2. The duration of the blackout, which will be described later 3. Time elapsed since the partial image was generated
[0076] If the situation where the original image cannot be displayed continues for a predetermined time or more, the output target determination unit 250 may classify the target frame as the first category even if a partial image of a predetermined value (predetermined ratio) or more has not been acquired. The table for determining the score described above may be set in this way. This allows the movement of the image to be expressed to the extent possible, even if it is only a part of it. The image processing unit 244 may restore the missing image after making an estimate.
[0077] If it falls into the second category, the output target determination unit 250 determines that the image data of the frame prior to the target frame is to be output, and causes the output unit 252 to output it (S16). In this case, the same frame continues to be displayed on the display panel. For example, if a partial image of the target frame cannot be acquired to a predetermined value (predetermined ratio) or more, but a partial image of a frame within a previous predetermined time period has been acquired to a predetermined value (predetermined ratio) or more, the output target determination unit 250 classifies the target frame as the second category. The table for determining the score described above may be set in this way.
[0078] If it falls into the third category, the output target determination unit 250 determines not to output anything during the period when the data of the target frame should be output (S18). In this case, a blackout period of one frame occurs on the display panel. For example, if a partial image of the target frame of a predetermined value (predetermined ratio) or more cannot be acquired and too much time has passed since the generation time to continue displaying the already displayed image, the output target determination unit 250 classifies the target frame as the third category. The table for determining the score described above may be set in this manner. Note that the blackout basically involves displaying a solid black image, but a different color set in advance may also be used.
[0079] If the display in the second or third category continues for a predetermined time, the image may be branched to the first category regardless of the acquisition status of the partial image as described above, and some image may be updated, even if only partially. Note that the user experience becomes more likely to be impaired as the display progresses from the first category to the third category. For this reason, a table is determined in advance so that a high score is given to each parameter acquired in S10 when the user experience should be improved.
[0080] Then, in S12, the parameters obtained in S10 are assigned scores based on the table, and the obtained scores are added up. Depending on how large the total value is, a display method classification from Class 1 to Class 3 is selected. Here, a threshold value is determined in advance so that the side with a larger total value is Class 1 and the side with a smaller total value is Class 3.
[0081] Note that the illustrated example is merely one aspect, and the type of information acquired by the data acquisition status specifying unit 248, the criteria for classification by the output target determining unit 250, and the output target in each classification are appropriately determined based on the content of the moving image to be displayed, the tolerable degree of loss, the duration of loss, the tolerable display delay and display stop time, etc. Furthermore, the display control unit 246 may hold, in a memory (not shown), images accumulated while waiting for the next vertical synchronization signal, images that have been displayed within a certain range, the generation time, and the determination results and scores in S10 and S12.
[0082] Furthermore, the output target determination unit 250 determines whether or not the situation related to the target frame satisfies the condition for warning the user (S20), separately from the judgment in S12. For example, the output target determination unit 250 determines that a warning to the user is necessary when the blackout time per unit time or the occurrence amount of partial image loss exceeds a threshold value (Y in S20). At this time, the output target determination unit 250 displays a message that the communication situation is affecting the image display (S22).
[0083] The message may be displayed by the image processor 244 by superimposing it on the partial image. This allows the user to know the cause of the problem with the displayed image. If the warning conditions are not met, the message is not displayed (N in S20). Through the above steps, the processing for the target frame is terminated, and processing for the next frame is started.
[0084] The data acquisition status identifying unit 248 may derive a trend in data transmission delay time based on the elapsed time from the generation time of the partial image acquired in S10 to the processing time. For example, the data acquisition status identifying unit 248 generates a histogram of the elapsed time from the generation time of a predetermined number of partial images acquired in the past. Then, the data acquisition status identifying unit 248 detects a trend of increasing elapsed time when the histogram is biased toward a reference value or more toward a longer elapsed time.
[0085] At this time, the data acquisition status specifying unit 248 may request the server 400 via the image data acquiring unit 240 or the like to suppress the size of the image data to be transmitted. For example, the data acquisition status specifying unit 248 may request to skip the data transmission of one frame of an image, or to increase the compression rate by a predetermined amount. It may also request to lower the screen resolution by a predetermined amount. Alternatively, the data acquisition status specifying unit 248 may request the output target determining unit 250 to skip the data output of one frame of an image.
[0086] Alternatively, the data acquisition status specifying unit 248 may transmit to the server 400 the time elapsed from the generation time of the partial image to the acquisition. The communication unit 426 of the server 400 may receive this, and when the compression encoding unit 422 generates a histogram and the histogram is biased toward a longer elapsed time, the communication unit 426 may detect the tendency of the elapsed time to increase and suppress the size of the image data to be transmitted. Alternatively, the data acquisition status specifying unit 248 may notify the server 400 of the occurrence amounts of the above first to third categories. By taking these measures, it is possible to prevent the delay time from increasing, causing a significant delay in the display of subsequent frames or data loss.
[0087] According to the above-described pipeline processing for each partial image, in a system in which the image processing device 200, which is a client, receives and displays image data generated by the server 400, the server 400 compresses and encodes the image data in units of partial images smaller than one frame, and transmits the compressed image data. The image processing device 200 also decodes and expands the partial image data, performs necessary processing, and sequentially outputs the partial image data to the display panel. This enables both the server 400 and the image processing device 200 to perform pipeline processing at a granularity finer than one frame.
[0088] As a result, the waiting time can be reduced compared to processing for each frame, and the delay time from drawing to display can be reduced. Also, by the server 400 transmitting the generation time of the partial image together with the data of the partial image, even if independent data is transmitted one after another in a short cycle, the image processing device 200 can progress the display by reproducing the order in which the server 400 generated the images.
[0089] In addition, because it is possible to grasp missing partial images based on the generation time, it is possible to appropriately select whether to display the latest data, reuse data from the previous frame, or output nothing, depending on the display content, display policy, etc. As the number of measures that can be taken for various situations related to data transmission increases, it is possible to display with low latency while minimizing disruptions by taking measures that do not deteriorate the user experience.
[0090] 3. Reprojection processing in the image processing section Next, an image processing device 200 having a reprojection function will be described. Fig. 9 shows the functional block configuration of the image processing device 200 having the reprojection function and the server 400 having the corresponding function. Reprojection refers to a process of correcting an image that has been drawn once so as to correspond to the position and posture of the head immediately before display, in a mode in which an image is displayed in a field of view according to the movement of the user's head using the head mounted display 100.
[0091] For example, in the case of transmitting image data from the server 400 as in the present embodiment, even if the server side acquires the position and orientation of the head mounted display 100 and generates a corresponding image, the position and orientation that change during the transmission of the data are not reflected in the image. Even if the image processing device 200 performs correction according to the position and orientation of the head, if the correction is performed on a frame-by-frame basis, the change in position and orientation that occurs during the correction process is not reflected in the image.
[0092] As a result, a noticeable delay occurs in the displayed image in response to head movement, which reduces the sense of immersion in virtual reality and causes motion sickness, thereby degrading the quality of the user experience. As described above, by performing pipeline processing on a partial image basis and then correcting each partial image to reflect the position and orientation of the head just before displaying it, a more responsive display can be achieved.
[0093] A rendering device and a head-mounted display for performing reprojection on a frame-by-frame basis are disclosed in, for example, International Publication No. 2019 / 026765. In this technology, a rendering device predicts the position and orientation of the head-mounted display when a frame is displayed, and draws an image. The head-mounted display further corrects the image based on the difference between the predicted value and the latest position and orientation before displaying it. If the rendering device is a server, the transmission path to the head-mounted display and therefore the transmission time will vary, and it is possible that a discrepancy that is difficult to correct will occur between the predicted value of the position and orientation and the actual position and orientation at the time of display.
[0094] Therefore, in this embodiment, the time from image generation to display is shortened by pipeline processing in partial image units, and the display target is changed according to the degree of deviation, etc. In Fig. 9, the server 400 includes an image generation unit 420, a compression encoding unit 422, a packetization unit 424, and a communication unit 426. The image processing device 200 includes an image data acquisition unit 240, a decoding / decompression unit 242, an image processing unit 244, and a display control unit 246.
[0095] The compression encoding unit 422, packetization unit 424, communication unit 426, image data acquisition unit 240, and decoding / decompression unit 242 of the server 400 have the same functions as those described in Fig. 5. However, this is not intended to limit their functions, and for example, the image data acquisition unit 240 may acquire data of a partial image that is not compression-encoded from the server 400. In this case, the functions of the compression encoding unit 422 in the server 400 and the decoding / decompression unit 242 in the image processing device 200 can be omitted. On the other hand, when the compression encoding process in the server 400 and the decoding / decompression process in the image processing device 200 are performed, a time is required from drawing to display, so that delay is likely to become apparent, and the effect of reprojection is more likely to be exhibited.
[0096] The server 400 may also realize live distribution of a multiplayer game in which multiple players participate, a sports competition, and the like. In this case, the server 400 continuously acquires the head movements of each of the multiple users, generates an image with a corresponding field of view, and streams the image to each user's image processing device 200. In the case of a multiplayer game, the server 400 renders a virtual world seen from each player's viewpoint based on the footprint of each player in a three-dimensional space. In the case of a sports broadcast, the server 400 generates an image corresponding to each user's viewpoint based on images of the competition captured by multiple cameras distributed in a distributed manner.
[0097] The image generation unit 420 of the server 400 includes a position and orientation acquisition unit 284, a position and orientation prediction unit 286, and a drawing unit 288. The position and orientation acquisition unit 284 acquires information on the position and orientation of the head of the user wearing the head mounted display 100 from the image processing device 200 at a predetermined rate. The position and orientation prediction unit 286 predicts the position and orientation of the user at the time when the generated image frame is displayed. In other words, the position and orientation prediction unit 286 calculates the delay time from when the image frame is generated to when it is displayed on the head mounted display 100, and predicts how the position and orientation acquired by the position and orientation acquisition unit 284 will change after the delay time has elapsed.
[0098] The delay time is derived based on the processing performance of the server 400 and the image processing device 200, the delay time in the transmission path, etc. Then, the amount of change in position and orientation is calculated by multiplying the translational velocity and angular velocity of the head mounted display 100 by the delay time, and is added to the position and orientation acquired by the position and orientation acquisition unit 284. The drawing unit 288 sets a view screen based on the predicted position and orientation information, and draws an image frame. In this case, the packetization unit 424 acquires from the image generation unit 420 the predicted values of the position and orientation of the user's head used as a premise when the image frame was drawn, together with the generation time of the image frame, and associates them with the data of the partial image.
[0099] As a result, the image data acquisition unit 240 of the image processing device 200 acquires the data of the partial image, as well as its generation time and predicted values of the position and orientation of the user's head. Note that in preparation for cases where partial image data is lost during transmission or the order of arrival at the image processing device 200 is reversed, the communication unit 426 of the server 400 may transmit a predetermined number of predicted position and orientation values most recently transmitted together with the data of the next partial image. Note that when focusing on reprojection processing, the image processing device 200 may acquire the generation time of each frame from the server 400 instead of the generation time of each partial image. In the latter case, the delay time described below is in frame units.
[0100] The image processing unit 244 of the image processing device 200 includes a position and orientation tracking unit 260, a first correction unit 262, a synthesis unit 264, and a second correction unit 266. The position and orientation tracking unit 260 acquires images captured by at least one of the cameras included in the head mounted display, or measurement values of a motion sensor built into the head mounted display 100, and derives the position and orientation of the user's head at a predetermined rate.
[0101] The position and orientation of the head may be derived using any of the various methods that have been put to practical use as described above. Alternatively, such information may be derived inside the head mounted display 100, and the position and orientation tracking unit 260 may simply acquire the information from the head mounted display 100 at a predetermined rate. This information is transmitted to the server 400 via the image data acquisition unit 240. At this time, the information is transmitted in association with the time at which the captured image and the motion sensor measurement values that are the source of the information on the position and orientation of the head to be transmitted were obtained.
[0102] The first correction unit 262 performs a reprojection process on the partial image transmitted from the server 400, based on the difference between the head position and orientation most recently acquired by the position and orientation tracking unit 260 and their predicted values at the time the partial image was generated by the server 400. Note that the difference on which the reprojection is based may be at least one of the position of the user's head and the orientation of the user's head, but these are collectively referred to as the "position and orientation."
[0103] The first correction unit 262 may accurately obtain the latest position and orientation information at the time of correction by interpolating the position and orientation information acquired at a predetermined time interval. The first correction unit 262 then performs correction by deriving the difference between the position and orientation at the time of correction and its predicted value. More specifically, the first correction unit 262 creates a displacement vector map that represents, on an image plane, displacement vectors that indicate to which positions pixels in an image before correction will be displaced by the correction.
[0104] Then, for each pixel constituting the partial image, the displacement vector map is referenced to obtain the displacement destination pixel position, thereby generating a corrected partial image. At this time, the area of the corrected image that can be generated from the partial image before correction may change. The first correction unit 262 starts the correction process by reference to the displacement vector map at the point in time when the data of the partial image before correction, which is necessary to generate the data of the corrected partial image, is stored in the local memory at the previous stage. This makes it possible to process the corrected image on a partial image basis.
[0105] If the image transmitted from the server 400 does not have distortion due to the eyepiece, the first correction unit 262 may also simultaneously perform a correction that imparts the distortion. In this case, the displacement vector represented by the displacement vector map for each pixel is a vector obtained by combining a displacement vector for reprojection and a displacement vector for distortion correction. Of these, the displacement vector for distortion correction is data specific to the eyepiece and does not depend on the user's movement, etc., so it can be created in advance.
[0106] The first correction unit 262 updates the displacement vector map and performs correction by synthesizing the displacement vector required for reprojection with the prepared displacement vector for distortion correction. This allows reprojection and distortion correction for the eyepiece to be performed simultaneously with a single displacement for each pixel of the partial image. The displacement vector map is also updated for each region corresponding to a partial image to reflect the previous position and posture of the head, making it possible to display an image with little delay from head movement in the entire frame.
[0107] The synthesis unit 264 synthesizes the UI plane image on a partial image basis with the partial image that has been subjected to correction such as reprojection. However, the target that the synthesis unit 264 synthesizes with the partial image is not limited to the UI plane image, and may be any image such as an image captured by the camera of the head mounted display 100. In any case, when displaying on the head mounted display 100, the image to be synthesized is also given distortion for the eyepiece in advance.
[0108] The synthesis process by the synthesis unit 264 may be performed before the reprojection and distortion correction by the first correction unit 262. In this case, the image to be synthesized is not given distortion, and correction such as distortion can be performed collectively on the synthesized image. Furthermore, if there are no images to be synthesized, the processing by the synthesis unit 264 can be omitted. The second correction unit 266 performs the remaining correction processes among the corrections to be made to the displayed image. For example, when correcting chromatic aberration, the first correction unit 262 gives a common distortion corresponding to the eyepiece lens regardless of the primary color of the display panel.
[0109] For example, taking into consideration the characteristics of the human eye when viewing a display panel, correction is first performed for green. Then, the second correction unit 266 generates a partial image of the red component by correcting only the difference between the red displacement vector and the green displacement vector. Also, a partial image of the blue component is generated by correcting only the difference between the blue displacement vector and the green displacement vector. For this reason, the second correction unit 266 is provided with a displacement vector map that represents, on an image plane, displacement vectors that indicate the differences for generating red and blue images.
[0110] This makes it possible to generate partial images for display that have been corrected differently for each of the primary colors red, green, and blue. The first correction unit 262, the synthesis unit 264, and the second correction unit 266 may perform pipeline processing by performing their respective processes on a partial image basis. In this case, the partial image storage unit and the control unit shown in FIG. 3 may be provided in each functional block. The contents and order of the processes performed by the first correction unit 262, the synthesis unit 264, and the second correction unit 266 are not limited. For example, the first correction unit 262 may refer to a displacement vector map for each primary color and correct chromatic aberration simultaneously with other corrections.
[0111] 5, the display control unit 246 changes the output target to the display panel based on the difference between the predicted value of the position and orientation and the actual position and orientation in addition to the time elapsed since the partial image was drawn. That is, the data acquisition status specifying unit 248a specifies the data acquisition status such as the original display order and display timing of the partial image data, the amount of missing data of the partial image, etc., based on the difference between the predicted value of the position and orientation and the actual position and orientation in addition to the time elapsed since the generation time.
[0112] Depending on the results, the output target determination unit 250b changes the output target to the display panel, or appropriately adjusts the output order and output timing. At this time, the output target determination unit 250b adds a criterion due to the position and orientation of the user's head, such as whether or not the display will be broken by performing reprojection, to the various classifications shown in FIG. 8. If it is determined that the display will not be broken, the image processing unit 244 performs reprojection, and the output unit 252 outputs it to the display panel. That is, in this case, after the output target is determined by the display control unit 246, various processes including reprojection are performed in the image processing unit 244. Alternatively, both are performed in parallel.
[0113] 10 is a diagram for explaining the reprojection and distortion correction for the eyepiece performed by the first correction unit 262. As shown typically in (a), the server 400 predicts the position and orientation of the head of the user 120, and sets the view screen 122 at a position and orientation corresponding to the prediction. The server 400 then projects objects that exist within the view frustum 124 in the space to be displayed onto the view screen 122.
[0114] The server 400 then compresses and encodes each partial image as appropriate and transmits it to the image processing device 200. The image processing device 200 decodes and expands the images as appropriate and sequentially outputs them to the display panel, but if there is a large difference between the predicted value of the position and orientation in the server 400 and the actual position and orientation at this time, the movement of the head and the display will not be linked, which may give the user a sense of discomfort or cause motion sickness. Therefore, the first correction unit 262 shifts the image on the image by the difference so that the most recent position and orientation of the head is reflected in the display.
[0115] In the illustrated example, it is assumed that the head (face) of the user 120 has moved slightly to face downward and to the right from when the image was drawn. At this time, the first correction unit 262 sets a new viewscreen 126 to correspond to the latest position and orientation. The viewscreen 126 is the original viewscreen 122 shifted downward and to the right. As shown in (b), when the viewscreen 122 is shifted downward and to the right to become the viewscreen 126, the image moves in the opposite direction, that is, to the upper left.
[0116] Therefore, the first correction unit 262 performs a correction to displace the image by the amount of displacement of the viewscreen in the opposite direction to the direction of displacement of the viewscreen. Note that the viewscreen is not limited to translation in two dimensions, and its posture in three-dimensional space may change depending on the movement of the head. In this case, the amount of displacement of the image may change depending on the position on the image plane, but the displacement vector can be calculated using a general conversion formula used in computer graphics.
[0117] As described above, the first correction unit 262 may also simultaneously perform distortion correction for the eyepiece. That is, as shown in the lower part of (b), the original image is distorted so that the original image is viewed without distortion when viewed through the eyepiece. The calculation formula used for this process can be a general one related to lens distortion correction.
[0118] However, in this embodiment, as described above, the necessary correction amount and correction direction are calculated for each pixel and prepared as a displacement vector map. The first correction unit 262 generates a displacement vector map by combining the displacement vector for this distortion correction with the displacement vector for reprojection obtained in real time, and by referring to this, realizes two corrections at once.
[0119] 11 is a diagram for explaining an example of the procedure of the correction process performed by the first correction unit 262. (a) shows an image before correction, and (b) shows the plane of the image after correction. S00, S01, S02,... on the image plane before correction represent positions at which displacement vectors are set in the displacement vector map. For example, displacement vectors are set discretely (for example, at equal intervals of every 8 pixels or 16 pixels) in the horizontal and vertical directions of the image plane.
[0120] D00, D01, D02, ... on the corrected image plane respectively represent the displacement destination positions of S00, S01, S02, .... In the figure, as an example, the displacement vector (Δx, Δy) from S00 to D00 is shown with a hollow arrow. The first correction unit 262 maps the pre-correction image to the corrected image in units of the smallest triangles with the pixels at which the displacement vectors are set as vertices. For example, a triangle with vertices S00, S01, and S10 of the pre-correction image is mapped to a triangle with vertices D00, D01, and D10 of the corrected image.
[0121] Here, the pixels inside the triangle are displaced to positions that are interpolated linearly, bilinearly, trilinearly, or the like according to the distances from D00, D01, and D10. The first correction unit 262 then determines pixel values of the corrected image by reading out the values of the corresponding pixels in the partial image before correction that are stored in the connected local memory. At this time, the pixel values of the corrected image are derived by bilinearly, trilinearly, or the like interpolating the values of multiple pixels within a predetermined range from the read-out position in the image before correction.
[0122] This allows the first correction unit 262 to draw the corrected image in the order of pixel columns in units of triangles to which the triangles in the image before correction are displaced. As described above, the first correction unit 262 may update the displacement vector map in units of regions corresponding to partial images in order to realize correction that reflects the position and posture of the head in real time. Similarly, the second correction unit 266 may refer to a displacement vector map different from that of the first correction unit 262 and map pixels for each smallest triangle. For example, when correcting chromatic aberration, an image of each primary color component can be generated by using a different displacement vector map for each primary color.
[0123] Fig. 12 is a flowchart showing a processing procedure in which the output target determination unit 250b of the display control unit 246 adjusts the output target when the image processing device 200 performs reprojection. This flowchart is executed after the determination process of S12 in the flowchart shown in Fig. 8. More specifically, even if the frame is determined to fall into the first or second category in the determination process of S12, the output target determination unit 250b performs additional determination to change the frame to the third category as necessary. Therefore, in S12 of Fig. 8, if it is determined that the target frame falls into the third category based on the acquisition status of the partial image, the output target determination unit 250b ends the process as it is (N of S90).
[0124] On the other hand, if it is determined that the image falls into the first or second category (Y in S90), the output target determination unit 250b first determines whether or not the difference between the position and orientation of the user's head predicted by the server 400 when generating the image frame and the latest position and orientation is within an allowable range (S92). As described above, compared with the case of transmitting image data from a rendering device located near the head mounted display 100, the case of transmitting data from a cloud server or the like often requires a long transfer time. Therefore, there is a high possibility that the difference between the predicted value of the position and orientation and the actual value will widen.
[0125] Therefore, when the difference between the predicted value of the position and orientation and the actual value is too large to be covered by reprojection, the data of that frame is not output to the display panel. In other words, when the difference exceeds the allowable range, the output target determination unit 250b changes the classification of the target frame that was classified as the first or second classification to the third classification (N in S92, S98). In this case, the display is blacked out. Alternatively, if the original classification was the first classification, it may be left as the first classification, and past frames may not be used to display the missing portion in S14 of FIG. 8.
[0126] The criteria for determining whether the difference in position and orientation is within the allowable range may differ depending on whether the entire region of the frame can be covered by the latest partial image (first category) or whether at least a part of a partial image of a past frame is used (first category or second category). Specifically, the smaller the difference in position and orientation is, the more allowable it is to use a partial image of a past frame. Whether or not it is within the allowable range may be determined based on the magnitude relationship with a threshold value set for the difference in position and orientation, or a function that decreases as the difference in position and orientation is larger may be given as a score value for the allowable range, and the score value may be added to the score value used in the determination in FIG. 8 to make a comprehensive determination.
[0127] If it is determined that the difference between the position and orientation is within the allowable range (Y in S92), the output target determination unit 250b then determines whether the result of evaluating the degree of data loss in the target frame from the viewpoint of the user's viewpoint is within the allowable range (S94). Specifically, the degree of data loss is quantified with a larger weighting the closer it is to the user's gaze point, and if the numerical value exceeds a threshold value, it is determined that the degree of data loss is not within the allowable range. If the degree of loss is not within the allowable range (N in S94), the output target determination unit 250b changes the target frame that was classified as the first category to the second or third category.
[0128] Alternatively, the target frame classified as the second category is changed to the third category (S98). As a result, the more data loss in the portion that is easily visible to the user, the more adjustments are made so that the frame is not output and previous frames are reused or blacked out. Note that the determination process of S94 may be performed simultaneously with the determination process of S12 in Fig. 8. If it is determined that the degree of data loss is within the allowable range (Y in S94), the output target determination unit 250b next determines whether there is sufficient data required for reprojection (S96).
[0129] That is, when the field of view is shifted by reprojection, it is determined whether sufficient data of the partial image included in the field of view has been obtained. If sufficient data has not been obtained (N in S96), the output target determination unit 250b changes the target frame classified as the first category to the second or third category, or changes the target frame classified as the second category to the third category (S98). If sufficient data has been obtained, the output target determination unit 250b ends the process with the original classification (Y in S96).
[0130] Note that S92, S94, and S96 do not necessarily have to be judged independently, but may be judged comprehensively and simultaneously as to whether or not a change in classification or display content is necessary by calculating scores based on each judgment criterion and adding them up. As a result of such additional judgment, one of the processes of S14, S16, and S18 in Fig. 8 is performed. However, when performing the processes of S14 and S16, the image processing unit 244 performs correction processing including reprojection as described above. That is, in the case of the first classification, the image processing unit 244 performs reprojection on the latest image frame, or on an image frame in which a past frame is used for the missing part.
[0131] In the case of the second classification, reprojection is performed on the past frame to be output. In these processes, the image processing unit 244 starts the correction process after all image data of the range to be used for reprojection of the partial image to be processed has arrived at the partial image storage unit at the previous stage. When using a past frame, the image processing unit 244 reads out the corresponding data from a memory (not shown) of the display control unit 246. The range of the image to be used for reprojection is determined by the difference between the predicted position and orientation and the actual position and orientation.
[0132] Fig. 13 is a diagram for explaining a method for quantifying the degree of data loss based on the user's viewpoint in S94 of Fig. 12. In this example, the user's gaze point 292 is assumed to be present near the center of the display screen 290. Since a user wearing the head mounted display 100 usually turns his or her face in the direction he or she wants to see, the center of the display screen 290 can also be regarded as the gaze point 292.
[0133] As a general human visual characteristic, the area 294 corresponding to within 5° of the line of sight from the pupil to the fixation point as the central axis is called the discrimination field, and visual functions such as visual acuity are excellent. The area 296 corresponding to within about 30° horizontally and about 20° vertically is called the effective field, and information can be instantly received only by eye movement. Furthermore, the area 298 corresponding to within 60-90° horizontally and 45-70° vertically is called the stable fixation field, and the area 299 corresponding to within 100-200° horizontally and 85-130° vertically is called the auxiliary field, and the ability to distinguish information decreases the further away from the fixation point 292.
[0134] Therefore, as shown at the top and left of the figure, weighting functions 320a, 320b are set which become larger the closer to the gaze point 292 on the plane of the display screen 290. Note that while this figure shows weighting functions 320a, 320b for one-dimensional positions in the horizontal and vertical directions on the plane of the display screen 290, in reality they are functions or tables for two-dimensional position coordinates on the plane. The output target determination unit 250b multiplies the missing area of a partial image by a weight based on the position coordinates where the missing area occurs, and totals the results over the entire region of the target frame to derive the degree of missingness as a numerical value.
[0135] As a result, if an area that is more easily visible is missing even with the same missing area, the degree of missing can be estimated higher, and whether or not it is within the acceptable range can be determined by taking into account the visual impression. Note that the shapes of the weighting functions 320a and 320b shown in the figure are merely examples, and the shapes may be optimized based on the visual characteristics of each range described above, or the functions may be discontinuous. In addition, when a gaze point detector is provided in the head mounted display 100, the gaze point 292 is not limited to the center of the display screen 290 and is obtained more precisely. In this case, the output target determination unit 250b may move the position at which the weighting functions 320a and 320b are maximized in accordance with the movement of the gaze point 292.
[0136] Fig. 14 is a diagram for explaining the data required for reprojection, which is evaluated in S96 of Fig. 12. First, (a) shows a state in which a view screen 340a has been set so as to correspond to the position and orientation predicted by the server 400. The server 400 renders an image 344 contained in a view frustum 342a determined by the view screen 340a on the view screen 340a. Here, it is assumed that the position and orientation at the time of display is slightly to the left of the predicted position and orientation, as indicated by the arrow.
[0137] In this case, the image processing unit 244 of the image processing device 200 turns the view screen 340b slightly to the left as shown in (b) and corrects the image to produce a corresponding image. However, the larger the area 346 of the image contained in the newly set view frustum 342b that has not been transmitted from the server 400, the more difficult the reprojection becomes. Therefore, if the area 346 from which data has not been acquired is equal to or exceeds a certain percentage of the display area after reprojection, it is determined that the data is insufficient.
[0138] On the other hand, the image transmitted from the server 400 also generates an area 348 that is not included in the newly set view frustum 342b. In other words, the data of the area 348 becomes unnecessary after reprojection, so even if it is missing, there is no problem with display. Therefore, the output target determination unit 250b may exclude the area 348 from the evaluation target when evaluating the missing area, etc. in S12 of Fig. 8. Note that even if a sufficient amount of image data required for reprojection is acquired, if the difference between the position and orientation predicted by the server 400 and the actual position and orientation is too large, the image after reprojection may become unnatural.
[0139] That is, since reprojection is a two-dimensional correction to the image drawn by the server 400, it is not possible to accurately express the change in the line of sight to the three-dimensional object to be displayed. Therefore, as shown in Fig. 12, the output target determination unit 250b performs the determination of S92 in addition to the determination of S96, and cancels the output to the display panel when the difference in position and orientation is large. In any case, it is desirable to make the area 346 shown in Fig. 14, which is necessary for reprojection and from which data has not been acquired, as small as possible regardless of the movement of the user's head.
[0140] Therefore, the server 400 may speculatively generate an image of the area 346 and transmit it to the image processing device 200 to increase the probability that reprojection will be performed normally. Fig. 15 is a flowchart showing the procedure of the process performed by the server 400 and the image processing device 200 when reprojection is performed in the image processing device 200. This flowchart is basically performed on a frame-by-frame basis of a moving image. First, the image data acquisition unit 240 of the image processing device 200 acquires the latest position and orientation of the user's head from the position and orientation tracking unit 260 and transmits it to the server 400 (S100).
[0141] The image data acquisition unit 240 also acquires from the display control unit 246 a history of the delay time from the generation time in the server 400 to the processing in the image processing device 200, which are obtained for past frames, and a history of the difference between the predicted value and the actual value of the position and orientation of the user's head, and transmits them to the server 402 (S102). Note that the transmission processes in S100 and S102 may be performed at any timing that is not synchronized with the frames. In addition, in S102, by transmitting the history for a predetermined number of past frames, it is possible to prepare for a transmission failure.
[0142] The position and orientation acquisition unit 284 of the server 400 receives the information, and the position and orientation prediction unit 286 predicts the position and orientation of the user's head (S104). That is, the position and orientation after the delay time until processing by the image processing device 200 is predicted using the position and orientation transmitted from the image processing device 200. Next, the drawing unit 288 draws an image corresponding to the predicted position and orientation (S106). At this time, the drawing unit 288 specifies the degree to which the position and orientation are likely to shift during the most recently predicted delay time based on the delay time history and position and orientation difference history transmitted from the image processing device 200. That is, as shown by the arrow in FIG. 14(a), a vector indicating the most likely amount of shift and the direction of shift for the predicted value of the position and orientation is predicted.
[0143] The rendering unit 288 then expands the rendering target in the direction in which the view screen is displaced by the vector. That is, an area outside the frame corresponding to the predicted value of the position and orientation, such as area 346 in (b) of Fig. 14, is determined based on the vector representing the predicted displacement, and the image is additionally rendered. The packetization unit 424 then packetizes the rendered image in partial image units as necessary, and sequentially transmits the packets from the communication unit 426 to the image processing device 200. At this time, the communication unit 426 transmits the generation time of the partial image and the predicted value of the position and orientation used for rendering in association with the partial image (S108).
[0144] The communication unit 426 further transmits a history of the generation time and the history of the predicted position and orientation of a predetermined number of partial images that have already been transmitted, thereby preparing for a failure in transmission to the image processing device 200. When the image data acquisition unit 240 of the image processing device 200 receives the data, the display control unit 246 acquires the delay time from when the partial image was generated and the difference between the predicted position and orientation and the actual position and orientation (S110). Then, the display control unit 246 controls the output target by classifying the frames based on the data (S112).
[0145] Except for cases where blackout is performed based on the third classification, the image processing unit 244 performs reprojection on the current frame or the previous frame determined by the display control unit 246 in units of partial images based on the position and orientation at that time, and the output unit 252 outputs the image to the display panel (S114). At this time, the image processing unit 244 uses an image additionally drawn by the server 400, taking into account the deviation from the prediction, as necessary.
[0146] As described above, the image processing unit 244 may appropriately perform correction to remove lens distortion and chromatic aberration correction in addition to reprojection. Note that when focusing on reprojection, each process can be effectively performed not on a partial image basis but on a frame basis. Even in this case, image data additionally generated by the server 400 in consideration of deviations from the predicted position and orientation values may be transmitted from the server 400 to the image processing device 200 on a partial image basis.
[0147] According to the reprojection process in the image processing unit described above, the server predicts the position and orientation of the user's head at the time of display and generates an image with a corresponding field of view. Then, the image processing device corrects the image transmitted from the server just before displaying it so that it corresponds to the position and orientation of the head at that time. This makes it possible to improve the followability of the display to the movement of the head, which is a common bottleneck when displaying images streamed from the server on a head-mounted display.
[0148] In addition, by using pipeline processing for each partial image for the series of processes from drawing on the server to displaying on the head-mounted display, the delay time from drawing to display can be reduced, so only minor corrections are required for reprojection. As a result, accurate reprojection can be performed with simple calculations compared to cases where major corrections are required.
[0149] Furthermore, in reprojection, by using a displacement vector map that shows the distribution of correction amount and correction direction on the image plane, independent correction for each pixel is possible. This allows high-precision correction even for partial image units. Furthermore, by including the distortion correction component for the eyepiece lens in the displacement vector, it becomes possible to perform collective correction, minimizing the time required for reprojection.
[0150] Furthermore, as a preliminary step of reprojection, the image processing device controls the output target based on the difference between the position and orientation predicted by the server and the actual position and orientation, the degree of data loss evaluated from the viewpoint of the user, the acquisition rate of image data used for reprojection, and the like. For example, if the result of reprojection using the latest data is predicted to be poor, the data may not be displayed, or data of past frames may be used as the target for reprojection. In addition, the server further predicts the deviation of the predicted position and orientation, and speculatively generates images of the corresponding areas. These processes make it possible to make the reprojection result as good as possible, and to display high-quality images with good responsiveness.
[0151] 4. Data preparation for different display formats 1, the image display system 1 of this embodiment has a function of simultaneously displaying images of the same content on the head mounted display 100 and the flat display 302. In the case of a game such as virtual reality using the head mounted display 100, the displayed content is not visible to anyone other than the user wearing the head mounted display 100. Therefore, a plurality of users cannot watch the game progress together and share a sense of realism.
[0152] Therefore, as described above, it is conceivable to simultaneously display the content displayed on the head mounted display 100 on the flat display 302 so that it can be shared by multiple users. Furthermore, when multiple users view the same content using the head mounted display 100, it is necessary to generate and display images from different viewpoints based on the position and orientation of the head of each user.
[0153] The formats of images displayed on the head mounted display 100 and the flat panel display 302 are significantly different, but generating and transmitting multiple image data of different formats in the server 400 may be inefficient in terms of transmission bandwidth and processing load. Therefore, by coordinating the server 400 and the image processing device 200 to appropriately allocate the data format conversion and select the timing, it becomes possible to efficiently display images in multiple formats.
[0154] 16 shows the functional block configuration of a server 400 and an image processing device 200 capable of supporting display on a plurality of display devices of different formats. The server 400 includes an image generating unit 420, a compression encoding unit 422, a packetizing unit 424, and a communication unit 426. The image processing device 200 includes an image data acquiring unit 240, a decoding / decompressing unit 242, an image processing unit 244, and a display control unit 246. The compression encoding unit 422, the packetizing unit 424, and the communication unit 426 of the server 400, and the image data acquiring unit 240 and the decoding / decompressing unit 242 of the image processing device 200 have the same functions as those described in FIG. 5.
[0155] However, this is not intended to limit these functions, and for example, the server 400 may transmit partial image data that is not compression-encoded. In this case, the functions of the compression-encoding unit 422 of the server 400 and the decoding / decompression unit 242 of the image processing device 200 can be omitted. The image processing unit 244 of the image processing device 200 may further have at least one of the various functions shown in FIG.
[0156] The image generating unit 420 of the server 400 includes a drawing unit 430, a formation content switching unit 432, and a data forming unit 434. The drawing unit 430 and the data forming unit 434 may be realized by a combination of the image drawing unit 404 (GPU) of FIG. 3, the drawing control unit 402 (CPU), and software. The formation content switching unit 432 may be realized by a combination of the drawing control unit 402 (CPU) of FIG. 3, and software. The drawing unit 430 generates frames of a moving image at a predetermined or variable rate. The images drawn here may be general images that do not depend on the form of a display device connected to the image processing device 200. Alternatively, the drawing unit 430 may sequentially obtain frames of a moving image captured from a camera (not shown).
[0157] The formation content switching unit 432 switches the content of the processing to be performed by the server 400 according to a predetermined rule, among the formation processes required to make the format compatible with the display mode of the display device connected to the image processing device 200. Most simply, the formation content switching unit 432 determines whether to prepare images for the left eye and the right eye and provide a distortion corresponding to the eyepiece lens, depending on whether the head mounted display 100 is connected to the image processing device 200 or not.
[0158] If the server 400 performs such processing on the image processing device 200 and transmits the image to the image processing device 200 connected to the head mounted display 100, at least a part of the correction processing in the image processing device 200 can be omitted. In particular, when using an image processing device 200 with limited processing resources, being able to display data transmitted from the server 400 almost as is is advantageous for display with low latency.
[0159] On the other hand, when a flat panel display 302 is further connected to the image processing device 200, if the server 400 transmits images for the left and right eyes with distortion due to the eyepiece lens, it becomes necessary to cut out one of the images and remove the distortion, which may increase the processing load instead. Transmitting images in multiple formats from the server 400 increases the required transmission bandwidth.
[0160] Therefore, the formation content switching unit 432 appropriately selects the processing to be performed on the server 400 side depending on the situation, thereby enabling an image in the most efficient format to be transmitted to the image processing device 200 without increasing the transmission band. Also, an image in a format that provides the best image quality and display delay depending on the application can be transmitted. Specifically, the formation content switching unit 432 determines the processing content based on at least one of the form of the display device connected to the image processing device 200, the processing performance of a correction unit that performs further formation processing in the image processing device 200, the characteristics of the moving image, and the communication status with the image processing device 200.
[0161] Here, the form of the display device refers to, for example, the resolution, the compatible frame rate, the compatible color space, the optical parameters when viewed through a lens, the number of display devices, etc. The communication status refers to, for example, the communication bandwidth and communication delay realized at that time, etc. Such information may be acquired from the image data acquisition unit 240 of the image processing device 200.
[0162] Based on the information, the image formation content switching unit 432 determines whether to generate images for the left eye and the right eye in accordance with the display form of the head mounted display 100, whether to perform distortion correction for the eyepiece lens, and so on. However, the necessary processing is not limited to this, and various other processing such as reduction of resolution and deformation of image can be considered depending on the display form that each user wants to realize with the image processing device 200. Therefore, candidates for processing contents determined by the image formation content switching unit 432 are also set appropriately accordingly.
[0163] The data forming unit 434 performs part of the forming process required to make each frame of the moving image into a format corresponding to the display mode realized by the image processing device 200, in accordance with the decision of the forming content switching unit 432. The communication unit 426 transmits data of the image thus appropriately formed to the image processing device 200. When multiple image processing devices 200 are the destinations, the data forming unit 434 performs forming processes suitable for each image processing device 200.
[0164] Even if the connected display device has multiple display formats, image data in one appropriately selected format is transmitted to one image processing device 200, thereby preventing an increase in the required communication bandwidth. The communication unit 426 transmits image data together with information indicating what kind of formation processing was performed on the server 400 side. For multiple image processing devices 200 that realize different display formats, image data in a format suitable for each is transmitted in association with information indicating the content of the formation processing.
[0165] The image processing unit 244 of the image processing device 200 includes, as a correction unit, a first forming unit 270a (first correction unit) and a second forming unit 270b (second correction unit) that convert the image transmitted from the server 400 into a format corresponding to the display form to be realized. In the illustrated example, since the image processing device 200 to which the head mounted display 100 and the flat display 302 are connected is assumed, the first and second forming units are provided to correspond to them, but naturally, the number of forming units may be the same as the number of display forms to be realized.
[0166] That is, image processing unit 244 has a function of generating multiple frames of different formats from one frame transmitted from server 400, the number of which depends on the number of display forms to be realized. First forming unit 270a and second forming unit 270b determine the processing required to create a format corresponding to each display form based on the contents of the formation processing performed on the server 400 side, which are transmitted from server 400 together with the image data.
[0167] Depending on the contents of the formation process performed on the server 400 side, the first formation unit 270a or the second formation unit 270b may omit the function. For example, when image data that can be displayed as is on the head mounted display 100 is transmitted from the server 400, the first formation unit 270a corresponding to the head mounted display 100 may omit the process.
[0168] As a modified example, either the first forming unit 270a or the second forming unit 270b may perform a necessary forming process on an image formed by the other one. For example, an image for the flat display 302 may be generated by having the second forming unit 270b perform a forming process on an image for the head mounted display 100 formed by the first forming unit 270a.
[0169] 9 may be appropriately combined with a forming process suited to the display form. For example, a synthesis unit 264 is incorporated immediately before the first forming unit 270a and the second forming unit 270b. Then, after synthesizing a captured image by a camera provided in the head mounted display 100 and a UI plane image with a frame transmitted from the server 400, the first forming unit 270a forms an image in the display format of the head mounted display 100, and the second forming unit 270b forms an image in the display format of the flat display 302.
[0170] The synthesis unit 264 may be incorporated immediately after the first formation unit 270a and the second formation unit 270b. In this case, the images to be synthesized must be in a format corresponding to the images formed by the first formation unit 270a and the second formation unit 270b, respectively. Reprojection may also be performed by including the function of the first correction unit 262 shown in FIG. 9 in the first formation unit 270a.
[0171] In any case, the first forming unit 270a and the second forming unit 270b generate a displacement vector map as described above and perform correction for each partial image based on the displacement vector map. When the first forming unit 270a performs reprojection or distortion correction, the first forming unit 270a may perform multiple corrections at once by generating a displacement vector map that is a combination of those displacement vectors.
[0172] The display control unit 246 includes a first control unit 272a and a second control unit 272b, and outputs the images formed by the first forming unit 270a and the second forming unit 270b to the display panels of the head mounted display 100 and the flat display 302, respectively. As described above, transmission from the server 400 and processing within the image processing device 200, including processing by the first forming unit 270a and the second forming unit 270b, are performed sequentially in partial image units. For this reason, the first control unit 272a and the second control unit 272b each include a partial image storage unit that stores data after formation processing.
[0173] Fig. 17 illustrates an example of image format transition that can be realized in this embodiment. As shown in Fig. 16, it is assumed that the head mounted display 100 and flat display 302 are connected to the image processing device 200. Although the figure shows four patterns, (a), (b), (c), and (d), the final format of the image to be displayed on the head mounted display 100 and flat display 302 does not depend on the pattern.
[0174] That is, the image 132 to be displayed on the head mounted display 100 is made up of an image for the left eye and an image for the right eye, each of which has a format (first format) in which distortion is imparted due to the eyepiece lens. The image 134 to be displayed on the flat panel display 302 is made up of a single image common to both eyes, and has a general image format (second format) without lens distortion or the like.
[0175] In contrast, (a) is a pattern in which a pair 130a of an image for the left eye and an image for the right eye is generated on the server 400 side. In this case, the first forming unit 270a of the image processing device 200 applies distortion to the transmitted image for the eyepiece lens of the head mounted display 100. As described above, this may be combined with the first correcting unit 262 to further perform correction such as reprojection. The second forming unit 270b cuts out either the image for the left eye or the image for the right eye and sets it to an appropriate image size.
[0176] (b) is a pattern in which the server 400 transmits an image 130b suitable for a flat panel display. In this case, the data forming unit 434 of the server 400 does not need to perform any formation processing on the image drawn by the drawing unit 430. The first forming unit 270a of the image processing device 200 generates images for the left eye and the right eye from the transmitted image, and then applies distortion for the eyepiece lens. As described above, this may be combined with the first correcting unit 262 to further perform correction such as reprojection. In this case, the second forming unit 270b can omit the formation processing.
[0177] (c) is a pattern in which the server 400 generates images for the left and right eyes of the head mounted display 100, and then generates an image 130c with distortion for the eyepiece lens. In this case, the first forming unit 270a of the image processing device 200 can omit the forming process. However, the first correcting unit 262 may perform correction such as reprojection. The second forming unit 270b cuts out either the image for the left eye or the image for the right eye, performs correction to remove distortion, and then sets the image to an appropriate image size.
[0178] (d) is a pattern in which the server 400 transmits a panoramic image 130d. Here, the panoramic image 130d is generally an image of the entire celestial sphere (360° image) represented by equirectangular projection. However, the image format is not limited, and any of various formats used to represent images using a fisheye lens, such as polyconic projection, equidistant projection, and others, may be used. Furthermore, when using an image from a fisheye lens, the server 400 may generate a 360° panoramic image using images from two lenses.
[0179] However, the panoramic image is not limited to an image captured by a camera, and the server 400 may render an image viewed from a plurality of virtual starting points. In this case, the data forming unit 434 of the server 400 does not need to perform any formation process on the panoramic image rendered by the rendering unit 430. Then, the first forming unit 270a of the image processing device 200 cuts out the areas of the field of view of the left eye and the right eye that correspond to the latest position and orientation of the user's head from the transmitted image, and generates images for the left eye and the right eye.
[0180] Furthermore, the first forming unit 270a removes distortion caused by the camera lens or distortion caused by equirectangular projection, polyconic projection, equidistant projection, or the like, if any, in the transmitted image, and then adds distortion for the eyepiece of the head mounted display 100. In an image of polyconic projection, gaps between cones are joined together while taking into account the distortion of the eyepiece. In addition, the image processing unit 244 may be combined with at least one of the various corrections described above, and correction may be performed collectively using a displacement vector map.
[0181] The second forming unit 270b cuts out the area of the field of view of both eyes from the transmitted image, and removes any distortion caused by the camera lens. In this case, the images displayed on the head mounted display 100 and the flat display 302 may be of different ranges as shown in the figure, or may be of the same range. For example, the image displayed on the head mounted display 100 may be of a range corresponding to the position and orientation of the user's head, while the image displayed on the flat display 302 may be of a range separately specified by a user operation via a game controller.
[0182] For the image 132 to be output to the head mounted display 100, if reprojection is performed immediately before display, the pattern (a) allows distortion correction and reprojection to be performed simultaneously in the image processing device 200. On the other hand, in the case of (c), distortion correction in the server 400 and reprojection in the image processing device 200 are performed separately, so if the server 400 and the image processing device 200 have the same processing capabilities and perform the same displacement vector and pixel interpolation processing, the time required for output to the head mounted display 100 is likely to be shorter in the case of (a).
[0183] Pattern (d) cuts out the area corresponding to the latest user's field of view immediately before display, so there is no need for processing equivalent to the reprojection described above, whether it is pre-generated panoramic video content or game images generated in real time. Also, since there is no limit to the range of the image to be transmitted, there is no risk of a shortage of data required to generate the display image by reprojection.
[0184] In the pattern (a), the image 134 to be output to the flat display 302 can be generated by simply cutting out a part of the image transmitted from the server 400, so that the image can be output at a speed almost equal to that of the pattern (b) to the flat display 302. Note that in the patterns (b) and (d), the image transmitted from the server 400 does not include information on parallax or depth, so the image 132 to be output to the head mounted display 100 is an image without parallax.
[0185] In the case of pattern (c), the image 134 output to the flat display 302 is output at a slower speed than the patterns (a) and (b) because the image processing device 200 must restore the image that has been distorted in the server 400. In addition, the image quality is more likely to be degraded compared to the patterns (a) and (b) due to the process of restoring the image that has been distorted.
[0186] In the case of pattern (d), even if the viewpoints on the display side are various, the server 400 only needs to transmit one type of image data, so processing can be made more efficient. On the other hand, since data of areas not required for display is also transmitted, when transmitting data at the same bandwidth as (a), (b), and (c) and generating a display image of one viewpoint, the image quality may be lower than those patterns. As such, since each pattern has its own characteristics, the formation content switching unit 432 determines one of the patterns according to rules set based on the characteristics.
[0187] Fig. 18 illustrates variations in the connection method of the display device on the user side (client side). First, (a) shows a configuration in which the head mounted display 100 and the flat display 302 are connected in parallel to the processor unit 140 that plays the role of a distributor. Note that the processor unit 140 may be built into an image processing device 200 that is not integrated with the head mounted display 100 and the flat display 302. (b) shows a configuration in which the head mounted display 100 and the flat display 302 are connected in series.
[0188] 1C shows a configuration in which the head mounted display 100 and the flat display 302 are located in different places and each acquires data from the server 400. In this case, the server 400 may transmit data in a different format according to the display form of the destination. However, in this configuration, since the head mounted display 100 and the flat display 302 are not directly connected, when an image captured by the camera of the head mounted display 100 is to be synthesized and displayed, it is difficult to reflect this on the flat display 302.
[0189] In any case, the four transmission patterns described in Fig. 17 can be applied to any of the connection systems shown in Fig. 18. For example, when the image processing device 200 is provided integrally with each of the head mounted display 100 and the flat display 302, the first forming unit 270a and the second forming unit 270b determine whether or not to operate themselves and, if so, the processing content according to the combination of the connection systems (a), (b), and (c) shown in Fig. 18 and the format of the data transmitted from the server 400. Then, by operating the first control unit 272a and the second control unit 272b according to the corresponding display form, it is possible to display an image according to the form of each display device, regardless of the configuration shown in Fig. 18.
[0190] 19 is a flowchart showing a processing procedure in which the server 400 transmits image data in a format determined according to the display mode. This flowchart is started by the user selecting a game to be played or a video to be watched, etc., from the image processing device 200. In response, the image data acquisition unit 240 of the image processing device 200 requests the server 400 to that effect, and the server 400 establishes communication with the image processing device 200 (S30). Then, the formation content switching unit 432 of the server 400 confirms necessary information by handshake with the image processing device 200 (Y of S31, S32). Specifically, at least one of the following items is confirmed.
[0191] 1. Among the transmission patterns shown in FIG. 17, patterns that can be handled by the image processing device 200 2. Whether or not to display an image on the flat panel display 302 from the same viewpoint as the head mounted display 100 3. Formats that can be output on the server side 4. Requirements for delay time, image quality, and left / right parallax 5. Communication speed (communication bandwidth or transfer bandwidth, communication delay or transfer delay) 6. Contents that can be processed by the image processing unit 244 of the image processing device 200 (processing capacity) 7. Resolution, frame rate, color space, and optical parameters of eyepiece lens of head mounted display 100 and flat panel display 302
[0192] As for the communication band and communication delay in the above item 5, actual values after the system is started up or actual values between the same server 400 and image processing device 200 may be referenced. Then, the formation content switching unit 432 determines the image formation content to be performed on the server 400 side based on the confirmed information and in accordance with a preset rule (S34). For example, among the patterns shown in Fig. 17, the output delay time to the head mounted display 100 is (c) ≒ (d) > (b) > (a), and the output delay time to the flat display 302 is (c) ≒ (d) > (a) > (b). Moreover, the quality of the image displayed on the flat display 302 is highest in (b) and lowest in (c).
[0193] In addition, when the server 400 and the image processing device 200 perform the same displacement vector or pixel interpolation processing, (a), which performs lens distortion and reprojection all at once, is superior to (c) in terms of image quality when displayed on the head mounted display 100. However, the server 400 generally has more abundant processing power than the image processing device 200, and can perform processing for improving image quality, such as a high-density displacement vector map and pixel interpolation processing with more taps, in a short time. Therefore, even (c), in which the image for the head mounted display 100 is corrected twice, may be superior in terms of image quality. Note that image quality cannot be generally compared between (a), (c) and (b) due to the presence or absence of parallax processing, etc.
[0194] Rules are set so that an optimal pattern can be selected depending on the balance between such delay time and image quality, and on patterns executable by the image processing device 200 and the server 400. At this time, the communication band (transfer band) and communication delay (transfer delay) are also taken into consideration as described above. Here, the total delay time is the sum of the processing time in the server 400, the communication delay, and the processing time in the image processing device 200. As a rule for selecting a pattern, an acceptable level for the total delay time may be determined in advance.
[0195] For example, if the communication delay (transfer delay) is greater than the relevant level, a pattern that shortens the total delay time is selected even at the expense of image quality. In such a case, pattern (a) may be selected on the premise that the image processing device 200 performs lens distortion and reprojection processing at the same time with standard image quality. If the communication delay (transfer delay) is smaller than that, a pattern that requires a longer processing time in the server 400 or image processing device 200 may be selected to improve image quality.
[0196] For example, when the processing capacity of the server 400 is high, the pattern (c) in Fig. 17 may be selected instead of (a) in the display on the head mounted display 100. Also, when the second forming unit 270b of the image processing unit 244 of the image processing device 200 does not support correction to remove distortion, the pattern (c) cannot be selected, and it is necessary to select the pattern (a) or (b).
[0197] The data forming unit 434 performs formation processing with the determined content on the frame drawn by the drawing unit 430 (S36). Note that if the data forming unit 434 determines to transmit the frame drawn by the drawing unit 430 as is, the formation processing is omitted. Thereafter, the compression encoding unit 422 compresses and encodes the image data as necessary, and the packetizing unit 424 associates the image data with the formation content already applied to the data to form packets, which the communication unit 426 transmits to the image processing device 200 (S38). Note that the processes of S36 and S38 actually proceed sequentially in units of partial images, as described above.
[0198] Furthermore, if the communication band (transmission band) is insufficient to transfer the data formed according to the content determined in S34, the data size may be reduced by changing at least one of the quantization parameter, resolution, frame rate, color space, etc., during data compression using control described below. In this case, the image processing unit 244 of the image processing device 200 may perform upscaling of the image size, etc. If there is no need to stop image transmission due to a user operation on the image processing device 200 or the like (N in S40), drawing, formation processing, and transmission are repeated for the subsequent frames (N in S31, S36, S38).
[0199] However, when the image formation contents are switched on the server 400 side, the formation contents switching unit 432 updates the formation contents by the processes of S32 and S34 (Y of S31). Here, the timing for switching the image formation contents may occur when an application being executed on the image processing device 200 is switched, when a mode is switched within the application, or when a timing designated by a user operation on the image processing device 200 is specified, etc.
[0200] Since the communication status between the server 400 and the image processing device 200 may change, the content switching unit 432 may further constantly monitor the communication speed and dynamically switch the content of the communication as necessary. When it becomes necessary to stop the transmission of the image, the server 400 ends all the processes (Y in S40).
[0201] According to the data formation process for different display forms described above, the server 400 performs a part of the data formation process required for display, taking into consideration the display form to be realized in the image processing device 200, which is the destination of the image data. By determining the content of the formation process depending on the type of display device connected to the image processing device 200, the processing performance of the image processing device, the communication status, the content of the video to be displayed, etc., it is possible to optimize the responsiveness and image quality of the display in a given environment.
[0202] Furthermore, when the same video is to be displayed on multiple display devices with different display modes, the server 400 selects one suitable data format, performs formation processing, and transmits the data, thereby enabling data to be transmitted at a similar communication bandwidth regardless of the number of display modes. This allows the image processing device 200 to form data corresponding to each display mode with minimal processing. In addition, it is also easy to combine various corrections such as reprojection and synthesis with other images. As a result, images provided via a network can be displayed with low latency and high image quality regardless of the type and number of display modes to be realized.
[0203] 5. Compression and encoding of multiple images corresponding to each frame A compression encoding method for video data in which each frame is composed of multiple images will be described. First, consider a case in which each frame of a video is composed of multiple images obtained from different viewpoints. For example, if display images are generated from viewpoints corresponding to the left and right eyes of a person and displayed in the left and right eye regions of the head mounted display 100, the user can enjoy a realistic image world. As an example, an event such as a sporting event is photographed by multiple cameras arranged in a space, and images for the left and right eyes are generated and displayed according to the movement of the head of the head mounted display 100, allowing the user to view the event from any viewpoint with the same feeling as if they were at the venue.
[0204] In such a technique, the left-eye and right-eye images to be transmitted from the server 400 are highly similar because they basically represent the same spatial image. Therefore, the compression-encoding unit 422 of the server 400 compresses and codes one image, and the other data is used as information representing the difference between the image and the other image, thereby achieving a higher compression ratio. Alternatively, the compression-encoding unit 422 may obtain information representing the difference between the compression-encoding result of the corresponding viewpoint of a past frame. In other words, the compression-encoding unit 422 performs predictive coding by referring to at least one of the compression-encoding results of another image representing an image at the same time among the data of the video image, or an image of a past frame.
[0205] 20 shows a configuration of functional blocks of a server 400 having a function of compressing images from multiple viewpoints at a high rate, and an image processing device 200 that processes the image. The server 400 includes an image generation unit 420, a compression encoding unit 422, a packetization unit 424, and a communication unit 426. The image processing device 200 includes an image data acquisition unit 240, a decoding / decompression unit 242, an image processing unit 244, and a display control unit 246. The image generation unit 420, the packetization unit 424, and the communication unit 426 of the server 400, and the image data acquisition unit 240, the image processing unit 244, and the display control unit 246 of the image processing device 200 have the same functions as those described in FIG. 5 or FIG. 16.
[0206] However, the image processing unit 244 of the image processing device 200 may have various functions shown in Fig. 9. Also, the image generating unit 420 of the server 400 acquires data of a plurality of moving images obtained from different viewpoints. For example, the image generating unit 420 may acquire images taken by a plurality of cameras arranged at different positions, or may draw images viewed from a plurality of virtual viewpoints. That is, the image generating unit 420 is not limited to generating images by itself, and may acquire image data from an external camera or the like.
[0207] The image generating unit 420 may also generate images for the left eye and the right eye based on the images of multiple viewpoints once acquired, in a field of view corresponding to the viewpoint of the user wearing the head mounted display 100. Images of multiple viewpoints, not limited to images for the left eye and the right eye, may be transmitted by the server 400, and images for the left eye and the right eye may be generated by the image processing device 200 at the transmission destination. Alternatively, the image processing device 200 may perform some kind of image analysis using the transmitted images of multiple viewpoints.
[0208] In any case, the image generation unit 420 acquires or generates, at a predetermined or variable rate, a plurality of frames of moving images that depict at least a portion of a common object, and sequentially supplies them to the compression encoding unit 422. The compression encoding unit 422 includes a division unit 440, a first encoding unit 442, and a second encoding unit 444. The division unit 440 forms image blocks by dividing corresponding frames of the plurality of moving images at a common boundary of the image plane. The first encoding unit 442 compression-encodes a frame from one viewpoint among the plurality of frames from different viewpoints in units of image blocks.
[0209] The second encoding unit 444 compresses and encodes the frames of the other viewpoints in units of image blocks using the data compressed and encoded by the first encoding unit 442. There are no particular limitations on the encoding method, but it is preferable to adopt a method that causes little degradation in image quality even when compressing each partial area independently without using the entire frame. This makes it possible to sequentially compress and encode frames of multiple viewpoints in units smaller than one frame, and to transmit each partial image to the image processing device 200 with little delay time by the same pipeline processing as described above.
[0210] For this reason, the boundaries of the image blocks are appropriately set according to the order in which the image generating unit 420 acquires data in the image plane. In other words, the boundaries of the image blocks are determined so that the earlier an area is acquired, the earlier it is compressed, encoded, and transmitted. For example, when the image generating unit 420 acquires pixel column data in each row of the image plane in order from the top, the dividing unit 440 sets a boundary line in the horizontal direction to form an image block consisting of a predetermined number of rows.
[0211] However, the order of data acquired by the image generating unit 420 and the direction of image division are not particularly limited. For example, when the image generating unit 420 sequentially acquires data of vertical pixel columns, the dividing unit 440 sets a boundary line in the vertical direction. The boundary line is not limited to one direction, and the image blocks may be tiled by dividing the image blocks vertically and horizontally. Alternatively, the image generating unit 420 may acquire data in an interlaced manner, in which pixel column data is acquired for every other row in one scan and data for the remaining rows is acquired in the next scan, or the data may be acquired in a zigzag manner on the image plane. In the latter case, the dividing unit 440 sets a division boundary line in the diagonal direction on the image plane.
[0212] In any case, as described above, a division pattern corresponding to the data acquisition order is appropriately set so that data of an area acquired first by the image generating unit 420 is compression-encoded first, and the dividing unit 440 divides the image plane in a pattern according to the data acquisition order of the image generating unit 420. Here, the dividing unit 440 sets the smallest unit of area required for motion compensation and encoding as the smallest division unit. The first encoding unit 442 and the second encoding unit 444 perform compression encoding in units of image blocks divided in this way by the dividing unit 440.
[0213] As described above, the second encoding unit 444 increases the compression rate of image data from other viewpoints by using the image data compression-encoded by the first encoding unit 442. The first encoding unit 442 and the second encoding unit 444 may further compression-encode each image block of the current frame by using compression-encoded data of an image block at the same position in a past frame.
[0214] 21 illustrates the relationship between the image blocks that the first encoding unit 442 and the second encoding unit 444 compress and encode, and the image blocks that refer to the compression and encoding results for that purpose. The figure shows an image plane when left-eye and right-eye images with distortion due to an eyepiece lens are processed, with the left showing the Nth frame and the right showing the N+1th frame, where N is a natural number. For example, as shown in the Nth frame, the first encoding unit 442 compresses and encodes the left-eye image 350a in units of image blocks (1-1), (1-2), ..., (1-n), and the second encoding unit 444 compresses and encodes the right-eye image 350b in units of image blocks (2-1), (2-2), ..., (2-n).
[0215] Here, as indicated by a solid arrow (e.g., solid arrow 352), the second encoding unit 444 uses as a reference the data of the image block of the left eye image (e.g., left eye image 350a) compression-encoded by the first encoding unit 442, and compresses and encodes each image block of the right eye image (e.g., right eye image 350b). Alternatively, as indicated by a dashed dotted arrow (e.g., dashed dotted arrow 354), the second encoding unit 444 may use as a reference the compression-encoding result of an image block in the right eye image 350b of the Nth frame, and compress and encode an image block at the same position in the right eye image of the following (N+1) frame.
[0216] Alternatively, the second encoding unit 444 may simultaneously use both the references indicated by the solid arrow and the dashed-dotted arrow to compress-encode the target image block. Similarly, the first encoding unit 442 may use the result of compressing and encoding the image block in the left-eye image 350a of the Nth frame as a reference, as indicated by a dashed arrow (e.g., dashed arrow 356), to compress-encode the image block at the same position in the left-eye image of the N+1th frame. In these aspects, for example, an algorithm of MVC (Multiview Video Coding), which is a method for encoding multi-viewpoint video, may be used.
[0217] MVC is based on predicting an image of another viewpoint using a decoded image of a viewpoint compressed and encoded by a method such as AVC (H264, MPEG-4) among images captured from multiple viewpoints, and the difference between the predicted image and the actual image is used as the compression encoding target of the other viewpoint. However, the encoding format is not particularly limited, and may be, for example, MV-HEVC (Multi-view Video Coding Extension), which is an extended standard for multi-view encoding of HEVC (High Efficiency Video Coding). In addition, the base encoding method may be VP9, AV1 (AOMedia Video 1), VVC (Versatile Video Coding), etc.
[0218] In any case, in this embodiment, the compression encoding process is performed in image block units to reduce the delay time until transmission. For example, while the first encoding unit compresses and encodes the n-th (n is a natural number) image block in a frame of one viewpoint, the second encoding unit compresses and encodes the n-1-th image block in a frame of another viewpoint. This allows the pipelines to operate simultaneously in parallel in the order in which the frame data is obtained, thereby speeding up the compression process.
[0219] The first encoding unit 442 and the second encoding unit 444 may each perform compression encoding on one or more viewpoints. Frames of the multi-viewpoint video compressed and encoded by the first encoding unit 442 and the second encoding unit 444 are sequentially supplied to the packetizing unit 424 and transmitted from the communication unit 426 to the image processing device 200. At this time, information for distinguishing whether the data was compressed by the first encoding unit 442 or the second encoding unit 444 is associated with each piece of data.
[0220] Note that the image block, which is the unit of compression, may be the same as the partial image, which is the unit of pipeline processing described above, or one partial image may contain data of multiple image blocks. The decoding / decompression unit 242 of the image processing device 200 includes a first decoding unit 280 and a second decoding unit 282. The first decoding unit 280 decodes and decompresses the image of the viewpoint compressed and coded by the first coding unit 442. The second decoding unit 282 decodes and decompresses the image of the viewpoint compressed and coded by the second coding unit 444.
[0221] That is, the first decoding unit 280 decodes frames of video from some viewpoints by a general decoding process according to the encoding method using only the data compressed and encoded by the first encoding unit 442. The second decoding unit 282 decodes frames of video from the remaining viewpoints using the data compressed and encoded by the first encoding unit 442 and the data compressed and encoded by the second encoding unit 444. For example, the image of the target viewpoint is predicted by the former, and the decoding result of the data compressed and encoded by the second encoding unit 444 is added to decode the image of the viewpoint.
[0222] Although the first decoding unit 280 and the second decoding unit 282 are shown as separate functional blocks, it will be understood by those skilled in the art that one circuit or software module can actually perform two types of processing in sequence. As described above, the decoding / decompression unit 242 acquires compressed and encoded partial image data from the image data acquisition unit 240, decodes and decompresses the data in units of the compressed partial image data, and supplies the data to the image processing unit 244. Here, predictive encoding is performed using the similarity of images from multiple viewpoints, thereby reducing the data size to be transmitted from the server 400 and realizing image display with little delay without straining the communication bandwidth.
[0223] Fig. 22 is a diagram for explaining the effect of the server 400 in this embodiment compressing and encoding in image block units by utilizing the similarity of images from multiple viewpoints. The upper part of the figure illustrates an example of image division when processing images for the left eye and the right eye that have been given distortion due to the eyepiece lens. The horizontal direction in the lower part of the figure represents the passage of time, and the time of the compression encoding process for each region is indicated by an arrow along with the number of each region shown in the upper part.
[0224] The procedure (a) shows, for comparison, a case in which the entire image for the left eye (1) is first compressed and coded, and the difference between the predicted image for the right eye and the actual image using the result is used as the compression target for the image for the right eye (2). In this procedure, when compressing and coding the image for the right eye (2), it is necessary to wait for the completion of the compression and coding of the entire image for the left eye, and then to use that data to make a prediction and to find the difference with the actual image. As a result, as shown in the lower part, it takes a relatively long time to finish compressing and coding both images.
[0225] Procedure (b) shows, for comparison, a case in which the left-eye image and the right-eye image are treated as a single connected image, and compression coding is performed in units of image blocks (1), (2), ..., (n) formed by dividing the image horizontally. As shown in the lower part, this procedure does not include the process of making predictions or finding differences from data that has already been compressed and coded, so the time required for compression coding can be reduced compared to procedure (a). However, because predictive coding is not used, the compression rate is lower than that of (a).
[0226] The procedure (c) is a case where, as described above in this embodiment, the first encoding unit 442 compression-encodes the left-eye image in units of image blocks (1-1), (1-2), ..., (1-n), and the second encoding unit 444 compresses the difference between the predicted image of the right-eye image using each data and the actual image, to generate compression-encoded data of the right-eye image in units of image blocks (2-1), (2-2), ..., (2-n). In this procedure, as shown in the lower part (c), the compression-encoding of the image blocks (2-1), (2-2), ..., (2-n) of the right-eye image can be started immediately after the compression-encoding of the corresponding image blocks (1-1), (1-2), ..., (1-n) of the left-eye image is completed.
[0227] In addition, because the area to be processed at one time when compressing and encoding the left-eye image is small, and the area of the left-eye image to be referenced when compressing and encoding the right-eye image is small, the compression and encoding time for each image block is shorter than the compression and encoding time converted per image block in (a). As a result, a higher compression rate can be achieved in a short time similar to that of procedure (b). Furthermore, as described above, the compressed and encoded image blocks are packetized in sequence and transmitted to image processing device 200, so the delay until display can be significantly reduced compared to procedure (a).
[0228] In the procedure (c), the first encoding unit 442 and the second encoding unit 444 are shown as separate functional blocks, but in reality, one circuit or software module can perform two types of processing in sequence. Meanwhile, (c)' shown in the lower part of the figure shows a case where the first encoding unit 442 and the second encoding unit 444 are configured to perform compression encoding in parallel. In this case, during each period in which the first encoding unit 442 is compression encoding the image blocks (1-2), ..., (1-n) in the left-eye image, the second encoding unit 444 compression encodes the previous image block in the right-eye image, that is, the image blocks (2-1), ..., (2-(n-1))th image block.
[0229] This makes it possible to further reduce the time required for compression encoding compared to the case of (c). Procedure (c)'' is a variation of procedure (c)', and shows a case where, once a predetermined unit area of an image block of the left eye image has been compression encoded, that data is used to start compression encoding of the corresponding area of the right eye image. Since images of the same object appear in the left and right eye images at positions shifted by the parallax, in principle a reference image in the range of several pixels to several tens of pixels that takes into account that amount of shift is sufficient to predictively encode the other image.
[0230] As described above, the minimum unit area required for motion compensation and encoding in compression encoding is an area of a predetermined number of rows, such as one row or two rows, or a rectangular area of a predetermined size, such as 16×16 pixels, 64×64 pixels, etc. Therefore, the second encoding unit 444 can start compression encoding at the point in time when the first encoding unit 442 has completed compression encoding of the left-eye image of the area required as a reference destination, and the minimum unit is the unit area required for motion compensation and encoding.
[0231] For example, in a case where the first encoding unit 442 compresses and encodes the image blocks of the left-eye image in order from one end to the other, the second encoding unit 444 can start compressing and encoding the corresponding image block of the right-eye image before the compression and encoding of the entire image block is completed. In this way, the time required for compression and encoding can be further reduced compared to the case of (c)'.
[0232] The compression and encoding unit 422 as a whole can shorten the time required for the compression and encoding process by starting compression and encoding as soon as the data of the minimum unit area required for compression and encoding is prepared. Up to this point, the compression and encoding of images from multiple viewpoints has been mainly described, but even if the parameters other than the viewpoint are different in the multiple images corresponding to each frame of a video, low-delay, highly efficient compression and encoding and transfer can be achieved by similar processing. For example, when compressing and encoding one video, in scalable video encoding technology, which generates data with redundancy by hierarchizing the data with different resolutions, image quality, and frame rates, the data in each hierarchy has high similarity.
[0233] Therefore, a higher compression ratio is achieved by compressing and encoding the image in the base layer, and then using the data in other layers as information representing the difference from that. In other words, predictive encoding is performed by referring to the compression and encoding results of at least one of another image representing the same image at the same time in the video data, or an image of a past frame. Here, the other image representing the same image at the same time in the video data has a different resolution or image quality defined hierarchically.
[0234] For example, images representing the same scene may have resolutions of 4K (3840 x 2160 pixels) and HD (1920 x 1080 pixels), and image quality levels such as level 0 and 1 in terms of quantization parameter (QP). Here, past frame images refer to immediately preceding frames at different frame rates defined hierarchically. For example, in a case where the frame rate has levels such as 60 fps and 30 fps, the immediately preceding frame in the 30 fps layer refers to the frame 1 / 30 seconds ago, which is two frames ago in the 60 fps layer. Even in a scalable video coding technology with such characteristics, compression coding of each layer may be performed on an image block basis.
[0235] Known examples of scalable video coding include SVC (Scalable Video Coding), an extension standard of AVC (H264, MPEG-4), and SHVC (Scalable High Efficiency Video Coding), an extension standard of HEVC (see, for example, Kimoto Takahiro, "Standardization Trends of Scalable Video Coding in MPEG," Information Processing Society of Japan Research Report, 2005, AVM-48(10), pp.55-60), and any of these may be adopted in this embodiment. Note that the base coding method may also be VP9, AV1, VVC, etc.
[0236] Fig. 23 shows a functional block configuration of the compression encoding unit 422 when scalable video encoding is performed. Other functional blocks are the same as those shown in Fig. 20. In this case, the compression encoding unit 422 includes a resolution conversion unit 360, a communication status acquisition unit 452, and a transmission target adjustment unit 362 in addition to the division unit 440, first encoding unit 442, and second encoding unit 444 shown in Fig. 20. The resolution conversion unit 360 reduces each frame of the moving image generated or acquired by the image generation unit 420 in stages to generate images of multiple resolutions.
[0237] The division unit 440 divides the multi-resolution images at common boundaries of the image plane to form image blocks. The division rules may be the same as those described above. The first encoding unit 442 compresses and encodes the image of the lowest resolution in units of image blocks. As described above, the compression and encoding is performed by referring to only the image, or in addition, to image blocks at the same positions in an image of a previous frame of the same resolution.
[0238] The second encoding unit 444 compresses and encodes a high-resolution image in units of image blocks using the compression-encoding result of the first encoding unit 442. In the figure, assuming a case where the resolution is two levels, the first encoding unit 442 and the second encoding unit 444 are shown, but if the resolution is three levels or more, encoding units are provided for the number of levels, and predictive encoding is performed using the compression-encoding result of an image with a resolution one level lower.
[0239] In this case, an image block at the same position in an image of a previous frame with the same resolution may be referenced. In addition, in the encoding units, the frame rate may be adjusted or the quantization parameter used may be adjusted as necessary to provide a difference in frame rate or image quality between layers.
[0240] For example, when a hierarchy is provided for the frame rate, the frame rate of the process in the compression encoding unit 422 is the rate of the highest frame rate hierarchy. When compression encoding is performed using past frames as references, the reference frame changes depending on the frame rate. When a hierarchy is provided for the image quality, the first encoding unit 442 selects QP level0, which is the base image quality, as a quantization parameter, and the second encoding unit 444 and the nth encoding unit above it select a QP level with a higher image quality, thereby realizing this.
[0241] For example, when there is a base layer with HD resolution and QP level 0 image quality, and a layer with 4K resolution and QP level 1 image quality, the first encoding unit 442 processes the former, and the second encoding unit 444 processes the latter. Furthermore, when there is a layer with 4K resolution and QP level 2 image quality, the processing of that layer is handled by a third encoding unit (not shown). In other words, when the QP levels are different even with the same resolution, an encoding unit is provided for each. Note that the combination of layers with resolution, image quality, and frame rate is not limited to this.
[0242] In either case, while the first encoding unit 442 compresses and encodes the nth (n is a natural number) image block in the minimum resolution (lowest layer) image, the second encoding unit 444 compresses and encodes the n-1th image block in the image in the layer above. In the case of three or more layers, each encoding unit compresses and encodes in parallel the image blocks shifted forward one by one as the layer increases, such as the n-2th image block in the image in the third layer, the n-3th image block in the image in the fourth layer, and so on. Examples of parameters for scalable video encoding implemented in this embodiment are shown below.
[0243] [Table 1]
[0244] The communication status acquisition unit 452 acquires the communication status with the image processing device 200 at a predetermined rate. For example, the communication status acquisition unit 452 acquires the delay time from when image data is transmitted until it reaches the image processing device 200 based on a response signal from the image processing device 200, or acquires it based on aggregated information of the image processing device 200. Alternatively, the communication status acquisition unit 452 acquires the ratio of packets that have reached the image processing device 200 among packets of image data that have already been transmitted from the image processing device 200 as a data arrival rate from the image processing device 200. Furthermore, based on this information, the communication status acquisition unit 452 acquires the amount of data that could be transmitted per unit time, that is, the available bandwidth. The communication status acquisition unit 452 monitors the communication status by acquiring at least any of these pieces of information at a predetermined rate.
[0245] The transmission target adjustment unit 362 determines, according to the communication conditions, the target to be transmitted to the image processing device 200 from among the hierarchical data compressed and encoded by scalable video encoding. Here, the transmission target adjustment unit 362 gives top priority to the lowest resolution image data compressed and encoded by the first encoding unit 442 from among the hierarchical data. Furthermore, the transmission target adjustment unit 362 determines, according to the communication conditions, whether or not to expand the transmission target toward a higher hierarchical layer. For example, multiple thresholds are set for the available transmission bandwidth, and the transmission target is expanded stepwise to image data of the higher hierarchical layers each time the thresholds are exceeded.
[0246] Conversely, if the available transfer bandwidth does not exceed the minimum threshold, only the data of the lowest resolution image is targeted for transmission. Alternatively, priority control may be applied, and the server 400 may target data of all layers regardless of the communication situation. In this case, the transmission target adjustment unit 362 adjusts the transfer priority given to each layer according to the communication situation. For example, the transmission target adjustment unit 362 lowers the transfer priority of data in a higher layer as necessary. Here, the transfer priority may be multi-stage.
[0247] At this time, the packetizer 424 packetizes the image data together with information indicating the assigned transfer priority, and transmits the packet from the communication unit 426. However, in a router or the like at a node of the network 306, if a transfer that exceeds the processing capacity occurs, the packet may be discarded as necessary. In streaming data transfer, a transfer protocol that omits handshakes, such as UDP, is generally used to achieve low latency and high transfer efficiency. In that case, the server 400 that sent the packet does not know whether the packet was discarded midway through the route of the network 306. In this case, the router or the like discards packets in order from the highest layer based on the assigned transfer priority. When layered data is simultaneously transmitted from the server 400 to multiple image processing devices 200, the processing capacity of the decode / decompressor 242 of each image processing device 200 and the communication performance of the network to each image processing device 200 vary.
[0248] As described above, the transmission target adjustment unit 362 may determine the transmission target individually depending on the status of each image processing device 200, but in that case, multiple communication sessions need to be adjusted separately, which increases the processing load. On the other hand, according to the above-mentioned priority control, the server 400 can handle multiple communication sessions under the same conditions, thereby improving processing efficiency. Note that the transmission target adjustment unit 362 and the like may combine the mode of controlling the transmission target itself as described above with the mode of performing priority control.
[0249] As a modified example, the server 400 may transmit the compressed and encoded hierarchical data to a relay server (not shown), which then transmits the data simultaneously to a plurality of image processing devices 200. In this case, the server 400 may transmit data of all hierarchical levels to the relay server using the above-mentioned priority control, and the relay server may individually determine and transmit the transmission target according to the status of each image processing device 200. The transmission target adjustment unit 362 may further (1) change the parameters used by each hierarchical level and / or (2) change the hierarchical relationship based on at least one of the communication status and the content represented by a moving image described later.
[0250] In the case of (1), for example, when a 4K (3840 x 2160 pixels) hierarchical layer is present as a resolution hierarchical layer, the transmission target adjustment unit 362 changes the hierarchical layer to a WQHD (2560 x 1440 pixels) hierarchical layer instead of 4K. Note that a WQHD hierarchical layer is not added. Such a change may be made when there are many cases where the threshold value for the higher band among the multiple realized bands is below the threshold value for the higher band. Alternatively, when a QP level1 hierarchical layer is present as an image quality hierarchical layer, the transmission target adjustment unit 362 changes the QP level2 hierarchical layer instead of QP level1. In this case, a QP level2 hierarchical layer is not added either.
[0251] Such a change may be implemented when there are many cases where the threshold value for the higher band is exceeded among the multiple threshold values for the realized band. Alternatively, it may be implemented when the result of image analysis indicates that the scene requires emphasis on image quality. The case (2) will be described later. In the cases (1) and (2), the transmission target adjustment unit 362 may request the resolution conversion unit 360, the first encoding unit 442, and the second encoding unit 444 to perform processing under the determined conditions as necessary. Specific examples of the contents represented by the moving image that are the basis for the adjustment will be described later.
[0252] 24 illustrates the relationship between image blocks that the first encoding unit 442 and the second encoding unit 444 compress and encode, and image blocks that refer to the compression and encoding results for this purpose, when scalable video encoding is performed. This example assumes that there are two levels of resolution hierarchy and no hierarchy in frame rate and image quality, and shows the Nth frame on the left and the N+1th frame on the right, where N is a natural number. In this case, the first encoding unit 442 compresses and encodes low-resolution images 480a and 480b of each frame in units of image blocks (1-1), (1-2), ..., (1-n).
[0253] The second encoding unit 444 compression-encodes the high-resolution images 482a, 482b in units of image blocks (2-1), (2-2), ..., (2-n). Here, the second encoding unit 444 compression-encodes each image block of the high-resolution images 482a, 482b using, as a reference, the data of image blocks at corresponding positions in the low-resolution images 480a, 480b in the same frame that have been compression-encoded by the first encoding unit 442, as indicated by solid arrows (e.g., solid arrows 484a, 484b).
[0254] Alternatively, the second encoding unit 444 may use the compression-encoding result of an image block in the Nth frame high-resolution image 482a as a reference, as indicated by a dashed-dotted arrow (e.g., dashed-dotted arrow 488), and compression-encode an image block at the same position in the subsequent N+1th frame high-resolution image 482b. Alternatively, the second encoding unit 444 may simultaneously use both the references indicated by the solid-line arrow and the dashed-dotted arrow to compression-encode the target image block.
[0255] Similarly, the first encoding unit 442 may use the compression encoding result of an image block in the Nth frame low resolution image 480a as a reference, as indicated by a dashed arrow (e.g., dashed arrow 486), to compression encode an image block at the same position in the N+1th frame low resolution image 480b. Fig. 25 also illustrates an example of the relationship between the image blocks that the first encoding unit 442 and the second encoding unit 444 compress and encode, and the image blocks that refer to the compression encoding results for this purpose, when scalable video encoding is performed.
[0256] This example assumes that there are two levels of both the resolution hierarchy and the frame rate hierarchy. The horizontal direction of the diagram is the time axis, and from the left, the first, second, third, and fourth frames are shown. As shown in the diagram, the first frame is an I frame (intra frame), and the other frames are P frames (forward predicted frames). However, this is not intended to limit the specific number of frames.
[0257] The vertical direction of the figure indicates the hierarchy of the frame rate, and each hierarchy (level 0, level 1) shows that there are images with two levels of resolution. Also, symbols a to d that identify the combination of the hierarchy are attached to the upper left of each image. When each image is expressed by a combination of the frame number and the symbols a to d, the images compressed and coded by the first coding unit 442 are in the order of 1a, 2c, 3a, and 4c. The images compressed and coded by the second coding unit 444 are in the order of 1b, 2d, 3b, and 4d. When the communication band is the smallest, the images displayed on the image processing device 200 side are in the order of 1a, 3a, .... When the communication band is the largest, the images displayed on the image processing device 200 side are in the order of 1b, 2d, 3b, and 4d.
[0258] Each encoding unit performs compression encoding in units of image blocks as described above. Here, the second encoding unit 444 uses as a reference the data of the image block of the low-resolution image at the corresponding position in the same frame, which has been compression encoded by the first encoding unit 442, as indicated by solid arrows (e.g., solid arrows 500a and 500b), and compresses and encodes each image block of the high-resolution image. The first encoding unit 442 and the second encoding unit 444 may also use as a reference the compression encoding result of the image block of the same resolution image in the same frame rate hierarchy, as indicated by dashed arrows (e.g., dashed arrows 502a and 502b), and compress and encode the image block at the same position in the next frame.
[0259] The first and second encoding units 442 and 444 may use the compression-encoding result of an image block of an image with the same resolution in a hierarchy with a different frame rate as a reference, as indicated by dashed-dotted arrows (e.g., dashed-dotted arrows 504a and 504b), to compress and encode an image block at the same position in the next frame. The first and second encoding units 442 and 444 may use any one of these references to compress and encode, or may use multiple references simultaneously to compress and encode.
[0260] The compression encoding process for each image block may be any of (c), (c)', and (c)'' shown in FIG. 22. Specifically, the process (c) is used when the first encoding unit 442 and the second encoding unit 444 are actually one circuit or software module and perform processing in sequence, and the process (c)' or (c)'' is used when parallel processing is possible in the first encoding unit 442 and the second encoding unit 444 as described in (2) above. In addition, in a case where the hierarchical relationship is changed based on at least one of the communication status and the content represented by the video, the transmission target adjustment unit 362 changes the number of hierarchical layers in at least one of the resolution, image quality, and frame rate. Or, it changes the layer to be referred to during compression encoding. For example, the transmission target adjustment unit 362 changes the reference destination as follows:
[0261] In the case of Figure 25, for example, when there are levels 1 and 0 in the frame rate hierarchy and level 1 always refers to level 0, the frame sequence is Frame 1 Level 0 Frame 2 Level 1 (refer to previous level 0 frame 1) Frame 3 Level 0 (refer to frame 1 of previous level 0) Frame 4 Level 1 (see previous Level 0 Frame 3) Frame 5 Level 0 (see previous Level 0 Frame 3) Frame 6 Level 1 (see previous Level 0 Frame 5) Frame 7 Level 0 (see previous Level 0 Frame 5) ... The transmission target adjustment unit 362 changes this and increases the number of references between level 1, for example, as follows:
[0262] Frame 1 Level 0 Frame 2 Level 1 (refer to previous level 0 frame 1) Frame 3 Level 1 (refer to previous Level 1 Frame 2) Frame 4 Level 0 (refer to previous level 0 frame 1) Frame 5 Level 1 (see previous level 0 frame 4) Frame 6 Level 1 (see previous Level 1 Frame 5) Frame 7 Level 0 (see previous level 0 frame) ... Such a change may be implemented when the rate at which data arrives at the image processing device 200 often exceeds a predetermined threshold value.
[0263] According to the compression and encoding of multiple images corresponding to each frame described above, multiple images corresponding to each frame of a video are divided into image blocks according to a rule according to the acquisition order of the image data, and compression and encoding are performed in units of image blocks. In this case, the compression ratio is improved by using the compression and encoding result of one image to compress and encode another image. This not only shortens the time required for the compression and encoding itself, but also makes it possible to transmit image blocks that have been completely compressed and encoded, making it possible to display images with low latency even when distributing images over a network.
[0264] In addition, the size of data to be transmitted can be reduced, which provides robustness against changes in communication conditions. For example, even in a case where three or more image data are transmitted, the required communication bandwidth can be reduced compared to the case where each image is transmitted in its entirety, and since the data is completed in image block units, recovery is easy even if data is lost during communication. As a result, images with little delay can be displayed with high image quality. Furthermore, it can flexibly respond to various environments such as the number of image processing devices at the transmission destination, communication conditions, and processing performance of the image processing devices. For example, in live game broadcasts (eSports broadcasts) and multi-player cloud gaming, it is possible to achieve high efficiency, low latency, and high image quality with high flexibility.
[0265] 6. Optimizing data size reduction methods To transmit data stably with low latency from the server 400 to the image processing device 200, it is desirable to minimize the size of the data to be transmitted. On the other hand, to provide a high level of user experience, such as a sense of realism and immersion in the displayed world, it is desirable to maintain a certain level of resolution and frame rate and not increase the compression rate, which creates a dilemma. To strike a good balance between the two, the server 400 optimizes the transfer data reduction means according to the image contents.
[0266] Fig. 26 shows a functional block configuration of a server 400 having a function of optimizing a data size reduction means. The server 400 includes an image generation unit 420, a compression encoding unit 422, a packetization unit 424, and a communication unit 426. The image generation unit 420, the packetization unit 424, and the communication unit 426 have the same functions as those described in Figs. 5 and 12. It should be noted that the image generation unit 420 may render a moving image to be transmitted on the spot, that is, dynamically render a video that did not exist before.
[0267] When transmitting a plurality of images corresponding to each frame, the compression encoding unit 422 may further include a division unit 440, a second encoding unit 444, a transmission target adjustment unit 362, etc., shown in Figures 20 and 23. The compression encoding unit 422 includes an image content acquisition unit 450, a communication status acquisition unit 452, and a compression encoding processing unit 454. The image content acquisition unit 450 acquires information relating to the content represented by the moving image to be processed.
[0268] For example, image content acquisition unit 450 acquires the characteristics of the image drawn by image generation unit 420 from image generation unit 420 at a predetermined timing such as for each frame, when a scene changes, when moving image processing starts, etc. In this embodiment, the moving image being displayed is basically generated or acquired in real time, so image content acquisition unit 450 can acquire accurate information related to the content even for small units such as for each frame without increasing the processing load.
[0269] For example, the image content acquisition unit 450 can obtain information from the image generation unit 420, such as whether it is a scene change timing, the type of image texture represented in the frame, the distribution of feature points, depth information, the amount of objects, the usage of each level of the mipmap texture used in the 3D graphics, LOD (Level Of Detail), the usage of each level of tessellation, the amount of characters and symbols, and the type of scene represented.
[0270] Here, the type of image texture refers to the type of area expressed by the texture on the image, such as edge area, flat area, high density area, detailed area, crowd area, etc. An edge is a point on the image where the rate of change in brightness value is equal to or greater than a predetermined value. The distribution of feature points refers to the position of feature points or edges on the image plane, the strength of edges, i.e., the rate of change in brightness value. The above-mentioned various texture areas are determined two-dimensionally to determine what kind of texture they have in a two-dimensional image that is the result of rendering as three-dimensional graphics. Therefore, they are different from the textures used in generating three-dimensional graphics.
[0271] Depth information is the distance to the object represented by each pixel, and in 3D graphics it is obtained as a Z value. The amount of objects refers to the number of objects represented, such as chairs or cars, and the area they occupy on the image plane. The level of a mipmap texture is the resolution level selected in the mipmap method, which prepares texture data representing the surface of an object at multiple resolutions and uses a texture with the appropriate resolution depending on the distance of the object and therefore its apparent size.
[0272] The LOD and tessellation levels are the levels of detail in a technique that adjusts the number of polygons depending on the distance of an object and, in turn, its apparent size to represent it with an appropriate level of detail. The types of scenes represented refer to the output status and genre of the content such as a game being executed by the image generating unit 420, and refer to types such as movie screens, menu screens, setting screens, loading screens, subjective line of sight drawing, bird's-eye line of sight drawing, 2D pixel art games, 3D drawing games, first-person shooter games, racing games, sports games, action games, simulation games, and adventure novel games.
[0273] The image content acquisition unit 450 acquires at least one of these pieces of information from the image generation unit 420. The image content acquisition unit 450 and a score calculation function described later may be provided in the image generation unit 420. Specifically, a game engine, which is a software framework that operates in the image generation unit 420, may realize these functions. The image content acquisition unit 450 may also acquire at least one of the following, transmitted from the image processing device 200: the timing of a user operation on content that defines a moving image, such as a game, the interval of the timing, the content of the user operation, the status of the content grasped by the image generation unit 420, and the status of the audio generated in the content.
[0274] The timing of the user operation may differ from the timing of drawing frames of the moving image in the image generating unit 420, and therefore it can be used to detect scene changes and to switch the means for adjusting the data size or the amount of adjustment. The content status is, for example, information obtained from the image generating unit 420 to determine whether the scene is at least one of a) a scene that requires user operation and affects the processing of the content, b) a movie scene that does not require user operation, c) a scene other than a movie scene that does not require user operation, or d) a scene that requires user operation but is not part of the main content.
[0275] This makes it possible to optimize the means and amount of data size adjustment based on whether responsiveness to user operations or image quality is prioritized. The audio status is information that determines at least one of the following: the presence or absence of audio, the number of audio channels, the content of background music, and the content of sound effects (SE), and is obtained from an audio generation device (not shown).
[0276] Alternatively, the image content acquisition unit 450 may acquire at least one of the above-mentioned pieces of information by analyzing the image generated by the image generation unit 420. In this case, the timing of the analysis process is not particularly limited. Furthermore, when the server 400 starts distributing a moving image, the image content acquisition unit 450 may acquire the above-mentioned scene type, etc., by reading the bibliographic information from a storage device (not shown).
[0277] The image content acquisition unit 450 may also acquire information related to the contents of the moving image by utilizing information acquired in the compression encoding process performed by the compression encoding processing unit 454. For example, when motion compensation is performed in the compression encoding process, the amount of optical flow, i.e., the direction in which pixels are moving and the speed at which pixel regions are moving, can be obtained. Motion estimation (ME) can also obtain the direction in which a rectangular region on an image is moving and, if it is moving, the speed.
[0278] Furthermore, in the compression encoding process, the allocation status of the encoding units used by the compression encoding processing unit 454 in the process, the timing of inserting intraframes, and the like can be obtained. The latter is the basis for identifying the timing of scene changes in a video. Note that the image content acquisition unit 450 may acquire any of the parameters shown in the "Score control rules at scene change timing" described below. The image content acquisition unit 450 may acquire at least any of these pieces of information from the compression encoding processing unit 454, or may acquire the necessary information by analyzing the image itself. In this case, too, the acquisition timing is not particularly limited.
[0279] The communication status acquisition unit 452 acquires the communication status with the image processing device 200 at a predetermined rate as described in Fig. 23. The compression encoding processing unit 454 compresses and encodes the video so that the data size is appropriate according to changes in the communication status, using a means determined based on the content represented by the video. Specifically, the compression encoding processing unit 454 changes at least one of the frame rate, resolution, and quantization parameter of the video so that the data size is determined by the communication status. Basically, the content of the image is evaluated from multiple perspectives, and an optimal combination of values (frame rate, resolution, quantization parameter) is determined for it.
[0280] At this time, the compression encoding processing unit 454 determines the means of adjustment and the amount of adjustment based on the items to be prioritized to optimize the user experience under the conditions of limited communication bandwidth and processing resources. For example, in first-person shooter scenes and fighting action scenes, where images move quickly and instant linkage to user input is required, or in the case of realizing virtual reality or augmented reality, it is desirable to prioritize frame rate. In scenes with many detailed objects and where it is necessary to read letters, symbols, signs, and pixel art, it is desirable to prioritize resolution.
[0281] In scenes where the movement of the image is slow, but the image has high contrast and dynamic range, and high image quality with few compression failures in gradation expression is required, it is desirable to prioritize quantization quality. As the priorities differ depending on the content of the image, the compression encoding processing unit 454 takes this into account and makes the data size appropriate by a means that maintains the user experience as much as possible even when the communication situation deteriorates.
[0282] The rules for determining the adjustment means and the amount of adjustment from the content of the video are prepared in advance in the form of a table or a calculation model, etc., and are stored inside the compression encoding processor 454. However, since the information indicating the content of the video is diverse as described above, it is necessary to optimize multiple adjustment means by comprehensively examining it. Therefore, the compression encoding processor 454 derives a score for determining the adjustment means and the amount of adjustment according to at least one of the following rules.
[0283] 1.Balance decision rules based on content situation The balance (priority) of weights to be given to frame rate, resolution, and quantization quality is determined depending on which of the above-mentioned a to d the content output situation is. Specifically, a) in the case of a scene that requires user operation and affects the content processing, at least one of the score determination rules described below is followed. b) In the case of a movie scene that does not require user operation, quantization quality or resolution is prioritized over frame rate. c) In the case of a scene other than a movie scene that does not require user operation, resolution or frame rate is prioritized over quantization quality. d) In the case of a scene that requires user operation but is not the main part of the content, resolution or quantization quality is prioritized over frame rate.
[0284] 2. Rules for determining balance based on content genre In the case of the above a, that is, in the case of a scene that requires user operation and affects the content processing, the genre of the content being processed is read from a storage device or the like, and a balance of scores representing the weights of the resolution, frame rate, and quantization parameters generally recommended for each genre, which is prepared as a separate table, is referenced. Note that this rule may be used as an initial value even when multiple rules described below are applied in parallel and the results are comprehensively judged to determine the score to be used ultimately.
[0285] 3. Score determination rules based on the size of the image Taking into account LOD, mipmap textures, tessellation, and object size, if there is an object with higher resolution than a certain value and the proportion of the area it occupies in the entire image is large (if there is a large high-resolution object close to the view screen), the score representing the quantization quality and resolution weighting is increased.
[0286] 4. Scoring rules based on object granularity The more objects smaller than a specified value, the more intricate letters, symbols, signs, and pixel art there are, and the more their proportion of the area they occupy in the entire image is greater than a specified value (there are no large, high-definition objects near the viewscreen), the higher the score representing the resolution weighting will be.
[0287] 5. Scoring rules based on contrast and dynamic range By referring to the contrast based on the distribution of pixel values and the dynamic range based on the distribution of brightness, the score representing the weight of the quantization quality is increased if the proportion of the area of the entire image that is occupied by areas with higher contrast or higher dynamic range than a specified standard is greater. 6. Scoring Rules Based on Statue Movement The amount of movement of the object image, the optical flow, and the size and amount of the motion estimation are referenced, and the score representing the weight of the frame rate is increased as the amount of objects whose movement is greater than a predetermined value and the proportion of the area they occupy in the entire image increases.
[0288] 7. Score determination rules based on texture type The type of image texture for each unit area obtained by dividing the image plane is tallied, and the score representing the weight of resolution is increased as the proportion of high density areas, detailed areas, and crowd areas to the entire image increases.
[0289] 8. Score control rules for scene change timing Information on the timing of the change is obtained from the image generation unit 420. Alternatively, the score is changed when any of the object amount, feature points, edges, optical flow, motion estimation, pixel contrast, luminance dynamic range, presence or absence of audio, number of audio channels, and audio mode is suddenly changed or reset in the time series direction. At this time, at least two frames are referenced. Note that the compression encoding processing unit 454 can also detect a scene change based on the correlation with the previous frame in order to grasp the necessity of a frame as an intra frame in compression encoding.
[0290] At this time, the accuracy of detecting the change may be improved not only by the determination by the compression encoding processing unit 454 of the conventional method, but also by using the score determination rule described above. Since an intraframe is required for the scene change detected in this way and the data size is likely to increase in a surge-like manner, the score representing the weight of the quantization parameter and the resolution is reduced for the target frame and a predetermined number of subsequent frames. Also, with a view to placing importance on a rapid scene change, the score representing the weight of the frame rate may be increased until the scene change, and the restriction may be removed after the scene change.
[0291] 9. Score determination rules based on the timing of user operations In content such as games implemented by image generation unit 420, the longer the interval between user operations, the easier it is to lower the frame rate, so the score representing the weighting of the frame rate is lowered (the shorter the interval between user operations, the lower the scores representing the weighting of other parameters).
[0292] 10. Score determination rules based on user operations In the case of content such as a game being implemented by the image generating unit 420, if the amount of change in user operation during the immediately preceding predetermined period is large, it is estimated that the user expects high responsiveness from the content. Therefore, the larger the amount of change, the higher the score representing the weight of the frame rate is set. If the amount of change is small even if an operation is performed, the level of the score is lowered by one level.
[0293] User operations include input information acquired by input devices (not shown) such as a game controller, keyboard, or mouse, the position, posture, and movement of the head mounted display 100, gesture (hand sign) instructions based on the results of analyzing images captured by the camera of the head mounted display 100 or an external camera (not shown), and audio instructions acquired by a microphone (not shown) acquired from the image processing device 200.
[0294] 11. Score determination rules for objects operated by users When an object that satisfies a predetermined criterion that is deemed to reflect a user operation in a predetermined period immediately preceding the present time exists on the screen, the score derived by the other decision rule is adjusted to increase it. Here, the user may be one person, or may be a plurality of people who share the same image processing device 200, or who have different image processing devices 200 connected to the same server 400. The object on the screen on which the user operation is reflected is usually the object that the user pays the most attention to, such as a person, avatar, robot, vehicle, machine, or other object that is the object of the user's operation, an object confronting such a main object, or a unit area including an indicator intended to notify the player of information such as the player's life status in the game, the weapon status, or the game score.
[0295] In principle, information indicating the relationship between the user's operation contents and the object on the screen is acquired from the image generation unit 420. The image content acquisition unit 450 may infer the information. If such an object is detected based on a predetermined standard, the compression encoding processing unit 454, for example, raises the score in the score determination of 3 to 9 and 10 above compared to other cases. That is, this decision rule has the effect of preferentially applying the decision rule to the object operated by the user. For example, if the sum of the scores of the entire screen based on the image size in 3 is slightly short of the standard score where the weighting of quantization quality and resolution is high, the compression encoding processing unit 454 raises the score to the standard.
[0296] If the sum of the scores of the entire screen based on the movement of the image in step 6 is slightly short of the standard score at which the weighting of the frame rate is high, the compression encoding processing unit 454 raises the score to that standard. Regarding the timing of scene change in step 8, if the sum of the scores of the entire screen is slightly short of the score at which it is determined that an intraframe is inserted despite there being a sudden change in the area of the object operated by the user, the compression encoding processing unit 454 raises the score to that standard.
[0297] 12. Control of frequency of switching adjustment target and adjustment amount It refers to the history of the (frame rate, resolution, quantization parameters) adopted in the previous specified period, and adjusts the score that represents the weight of each parameter so that the switching is within an acceptable range from the perspective of user experience. The "acceptable range" is determined based on a predefined table or model.
[0298] The compression encoding processor 454 comprehensively determines the final weights of the frame rate, resolution, and quantization parameters based on one of the above rules, or based on the total score obtained from a plurality of rules. Note that in the above rules 1 to 8, the compression encoding processor 454 may refer to the Z value to grasp the object's position, projection order, size, and relative distance from the view screen.
[0299] It is desirable to optimize the above-mentioned decision rules themselves. Therefore, the decision rules may be optimized by machine learning or deep learning while collecting adjustment results from various past cases. When machine learning is performed, the target of optimization may be a table that defines the decision rules or a computational model. In the case of deep learning, the computational model is optimized.
[0300] These learning techniques use, for example, manually created score databases and users' gameplay experiences as training data. Also, subjective rendering cases are used as constraints for the computational model, and learning is performed using indicators such as PSNR (Peak Signal-to-Noise Ratio) and SSIM (Structural Similarity), which indicate image quality, parameter switching frequency, and time-series smoothness. In this example, parameter switching frequency is added to the indicators, taking into consideration that switching resolution or frame rate too frequently can actually worsen the user experience.
[0301] In this way, the compression encoding processor 454 derives a final score representing the weighting to be given to each of the frame rate, resolution, and quantization quality, and determines a combination of values (frame rate, resolution, quantization parameter) so that a data size according to the communication status is obtained and the balance represented by the score is followed. More specifically, the compression encoding processor 454 predicts and calculates a combination of each value so as to satisfy the target data size determined according to the communication status, and at that time, controls so as not to lower parameters with high weighting as much as possible.
[0302] Once the optimal combination has been determined, the compression encoding processing unit 454 compresses and encodes the data accordingly. For example, to reduce the frame rate, the compression encoding processing unit 454 thins out the frames generated by the image generation unit 420 by a predetermined amount per unit time. To reduce the resolution, the compression encoding processing unit 454 applies existing calculations such as the nearest neighbor method, bilinear method, or bicubic method to the images generated by the image generation unit 420.
[0303] Furthermore, the compression encoding processing unit 454 compresses and encodes the image generated by the image generating unit 420 at an appropriate compression rate using the adjusted quantization parameter. The compression encoding processing unit 454 performs all of these processes on a partial image basis for the frame generated by the image generating unit 420, and sequentially supplies the partial image to the packetizing unit 424. At this time, by supplying the frame rate, resolution, and quantization parameter data in association with each other, the packetizing unit 424 packetizes the partial image data together with these data.
[0304] As a result, in the same manner as described above, the data of the compression-encoded partial image is transmitted to the image processing device 200 via the communication unit 426. Note that the unit for the compression-encoding processing unit 454 to optimize the means for adjusting the data size or the amount of adjustment may be the unit of a partial image, which is the unit of compression-encoding, or may be the unit of one frame or a predetermined number of frames. The decoding / decompression unit 242 of the image processing device 200 performs inverse quantization based on the quantization parameter transmitted together with the image data.
[0305] Also, if the resolution or frame rate is reduced from the original value, the image is displayed by making it fit the screen size of the connected display device or by outputting the same frame several times. A general technique can be used for such a procedure of display processing according to the change in resolution or frame rate. When the compression encoding unit 422 of the server 400 reduces the resolution, the server 400 may also transmit additional data that cannot be identified from the low-resolution image alone.
[0306] Here, the additional data includes, for example, feature amounts in the original image generated by the image generation unit 420 and various parameters determined by the compression encoding unit 422 at the time of compression encoding. The feature amount may include at least one of the feature points of the original image, edge strength, depth of each pixel included in the original image, texture type, optical flow, and motion estimation information. Alternatively, the additional data may include data indicating an object represented by the original image identified by the object recognition process performed by the compression encoding unit 422. In this case, the decoding and decompression unit 242 of the image processing device 200 accurately generates a high-resolution display image based on the transmitted image data and additional data. This feature has been filed by the present inventor as Japanese Patent Application No. 2019-086286.
[0307] 27 to 31 show examples of determining a score according to the contents of a video. FIG. 27 shows an example of applying the score determination rule based on the size of the image on the image, as described above in 3. The three images shown represent different frames of the same video. In each frame, objects 152a, 152b, and 152c are drawn using the same object model. The object model actually has three-dimensional information composed of polygons and textures.
[0308] The image generation unit 420 places the object model in the space to be rendered and renders the objects 152a, 152b, 152c, etc. by projecting it onto the view screen. At this time, since the apparent size of the objects 152a, 152b, 152c changes depending on the distance from the view screen, the image generation unit 420 adjusts the number of polygons used for rendering and the resolution of the texture as appropriate.
[0309] For example, object model 150 is defined by 1 million polygons, whereas object 152c, which is far from the view screen, is rendered by 10,000 polygons, and object 152a, which is close to the view screen, is rendered by 100,000 polygons. The texture resolution is as follows: object 152a > object 152b > object 152c. Image content acquisition unit 450 acquires such information, i.e., the LOD of the object as seen from the view screen, the mipmap texture level, the tessellation level, the size of the image, etc., from image generation unit 420 as information related to the content represented by the image.
[0310] Then, the compression encoding processing unit 454 adjusts the frame rate, resolution, and quantization parameters based on information related to the content of the image to make the data size suitable for the communication situation. That is, for all objects appearing in the scene, the LOD of the object, the mipmap texture level, the tessellation level, and the image size are collected, and a score to be given to the parameters to be adjusted is calculated. In the example shown, the image on the left has objects drawn with high resolution and the proportion of the area of the object in the entire image is large (people and avatars are drawn with high resolution overall), so the score representing the quantization quality and the weight of the resolution is increased.
[0311] FIG. 28 shows an example of applying the score determination rule based on the fineness of objects, mentioned above in 4. The two images shown in the figure represent different frames of the same video. Each is a zoomed-in / zoomed-out frame of the same landscape. When tallying up the size and amount of object images as the content of the images, the image on the left has a greater number of small objects, and these take up a greater proportion of the area of the entire image (overall, there are more detailed objects, letters, symbols, signs, and pixel art). Therefore, in this example, the compression encoding processor 454 assigns a higher score, which represents the weight of resolution, to the image on the left.
[0312] Fig. 29 shows an example of applying the score determination rule based on contrast and dynamic range, mentioned above in 5. When the contrast and dynamic range of each unit area obtained by dividing the image plane into a predetermined size are tallied as the contents of the image, the area of high contrast or high dynamic range occupying the entire image is larger on the left side of the image. Therefore, in this example, the compression encoding processing unit 454 assigns a higher score representing the weight of the quantization quality to the image on the left side.
[0313] FIG. 30 shows an example of applying the score determination rule based on the image motion, 6 above. The two images shown in the figure show different frames of the same video. The contents represented by the images include the absolute value of the object movement amount (vector) on the image plane, and the magnitude and amount of the optical flow and motion estimation for each unit area obtained by dividing the image plane into a predetermined size. Then, due to the presence of objects 152d to 152g with large movements, the image on the left has more objects with large movement amounts and a larger proportion of their area in the entire image, that is, the total absolute value of the movement amounts (vectors) in the entire image is larger. Therefore, in this example, the compression encoding processing unit 454 assigns a higher score representing the weight of the frame rate to the image on the left.
[0314] FIG. 31 shows an example of applying the score determination rule based on the texture type, 7 above. The two images shown in the figure represent different frames of the same video. When the types of image textures for each unit area obtained by dividing an image plane into a predetermined size are tallied as the contents represented by the images, the left image has a larger proportion of areas of high density, detailed, and crowd areas in the entire image due to the difference between objects 152h-152j and object 152k. Therefore, in this example, the compression encoding processing unit 454 assigns a higher score representing the weight of resolution to the left image.
[0315] 32 is a flowchart showing a processing procedure in which the server 400 adjusts the data size according to the communication status. This flowchart starts when the user selects a game to be played or a video to be viewed, etc., for the image processing device 200. In response to this, the communication status acquisition unit 452 of the server 400 starts acquiring the communication status used for streaming to the image processing device 200 (S50).
[0316] As described above, the communication status is ascertained by sending and receiving signals with the image processing device 200, so the communication status acquisition unit 452 acquires necessary information from the communication unit 426. Specifically, the communication status acquisition unit 452 acquires the arrival delay time of the image data transmitted to the image processing device 200 and the arrival rate of the image data, and derives an index representing the communication status from the information. The derivation rules are set in advance. Meanwhile, the image generation unit 420 starts generating a moving image (S52). However, the image generation unit 420 is not limited to drawing computer graphics, and may acquire captured images from a camera.
[0317] Meanwhile, the image content acquisition unit 450 of the compression encoding unit 422 starts acquiring information related to the contents of the moving image (S54). As described above, the image content acquisition unit 450 acquires predetermined information at any timing by acquiring information from the image generation unit 420 and the compression encoding processing unit 454, or by analyzing the image itself. Next, the compression encoding processing unit 454 determines the transmission size of the image data according to the most recent communication status acquired by the communication status acquisition unit 452 (S56).
[0318] The compression encoding processing unit 454 first obtains a score according to at least one of the above-mentioned rules from the content of the moving image currently obtained by the image content obtaining unit 450 (S58). Next, the compression encoding processing unit 454 derives a data size adjustment means and adjustment amount based on the obtained score (S60). That is, the compression encoding processing unit 454 calculates an overall weight for the frame rate, resolution, and quantization parameter by summing up the scores, and determines the value of each parameter so as to match the target data size with a balance according to the weight.
[0319] The means for obtaining a score from parameters indicating the contents of a video and the means for deriving an adjustment means and an adjustment amount from the score may be realized by preparing a table showing the respective correspondences, or by modeling the derivation rules and implementing the program, etc. In this case, the adjustment means and the adjustment amount may be changed depending on the level of the communication situation. Even if the communication situation is stable and the transmittable data size does not change, the compression encoding processing unit 454 may continue to derive a score corresponding to the contents of the video, and may change the combination of the values of the frame rate, resolution, and quantization parameter even if the transmission size is the same.
[0320] As long as transmission can continue except in an abnormal state, no specific threshold is set for the communication state, and the data transmission size is determined in multiple stages according to the communication state, and the combination of frame rate, resolution, and quantization parameter is adjusted accordingly. As described above, the table and calculation model that define the derivation rule may be optimized as needed using machine learning or deep learning. Note that in the illustrated procedure, a two-stage process is performed in which a score value is obtained from the content of the video in S58, and an adjustment means and adjustment amount are determined based on the score value in S60, but a decision rule may be prepared so that the adjustment means and adjustment amount can be determined directly from the content of the video.
[0321] The compression encoding processing unit 454 performs compression encoding on a partial image basis while adjusting the data size according to the adjustment means and adjustment amount determined in this manner, and sequentially supplies the image data to the packetization unit 424 (S62). At this time, information on the resolution, frame rate, and quantization parameter is also associated with the data and supplied. The packetization unit 424 packetizes the data and transmits it to the image processing device 200 from the communication unit 426. Note that the compression encoding processing unit 454 may obtain the score and derive the adjustment means and adjustment amount in the background of the compression encoding process. In practice, the frequency of determining the data size in S56 and the frequency of compression encoding and transmission on a partial image basis in S62 may be the same or different.
[0322] This allows the compression encoding processing unit 454 to reset the means and adjustment amount used for adjusting the data size at a predetermined time interval. If there is no need to stop image transmission due to a user operation on the image processing device 200 or the like (N in S64), the compression encoding and transmission process is repeated for the subsequent frames while changing the adjustment means and adjustment amount as necessary (S56, S58, S60, S62). However, as in 11 above, the compression encoding processing unit 454 refers to the history of changes in the adjustment means and adjustment amount during the previous predetermined period and adjusts them within an acceptable range so as not to deteriorate the user experience. If it becomes necessary to stop image transmission, the server 400 ends all processing (Y in S64).
[0323] According to the optimization of the data size reduction means described above, the data size of the image is adjusted by a means and amount appropriate for the information related to the content of the moving image being transmitted, depending on the communication conditions used for streaming from the server 400 to the image processing device 200. By performing adjustments using a combination of multiple adjustment means such as resolution, frame rate, and quantization parameter, the variation of possible state changes can be significantly increased compared to adjusting only one parameter. As a result, degradation of image quality can be suppressed as much as possible within the range that the user can tolerate.
[0324] In addition, by obtaining information related to the contents of the moving images from the image generation unit that generates images in real time and the compression encoding processing unit that compresses and encodes the images, measures can be taken based on more accurate and detailed data. Since the image generation unit and the compression encoding processing unit only need to perform normal processing, the data size can be adjusted in the most optimal way at each point in time without increasing the processing load.
[0325] 7. Compression ratio control for each area 7-1. Control based on the content of video images In the above 6, the data size was controlled by adjusting the combination of resolution, frame rate, and quantization parameter with the frame as the minimum unit based on various information related to the content of the video. On the other hand, since the area that the user pays attention to in the displayed image is limited, the image quality experienced by the user can be improved even under the same conditions by allocating more communication bandwidth to that area.
[0326] Fig. 33 shows a functional block configuration of a server 400 having a function of changing the compression rate depending on the area on a frame based on the content represented by the moving image. The server 400 includes an image generating unit 420, a compression encoding unit 422, a packetizing unit 424, and a communication unit 426. The image generating unit 420, the packetizing unit 424, and the communication unit 426 have the same functions as those described in Figs. 5, 16, and 24. As described above, it should be noted that the image generating unit 420 may render the moving image to be transmitted on the spot, that is, dynamically render an image that did not exist before.
[0327] Furthermore, when transmitting a plurality of images corresponding to each frame, the compression encoding unit 422 may further include the division unit 440, the second encoding unit 444, the transmission target adjustment unit 362, etc., shown in Figs. 20 and 23. The compression encoding unit 422 includes an image content acquisition unit 450, an attention estimation unit 460, a communication status acquisition unit 462, and a compression encoding processing unit 464. As described in Fig. 26, the image content acquisition unit 450 acquires information relating to the content represented by the moving image to be processed from the image processing device 200, the image generation unit 420, or the compression encoding processing unit 464, or acquires the information by performing image analysis by itself.
[0328] The attention level estimation unit 460 estimates the user's attention level according to the content represented by the video for each unit area obtained by dividing the frame plane of the video, based on information related to the content represented by the video. Here, the attention level is an index such as a numerical value indicating the degree of attention of the user. For example, a high attention level is estimated for a unit area including an area in which a main object is shown or an area in which text is shown. For this reason, the image content acquisition unit 450 may acquire information related to the type and position of an object represented in an image, in addition to the information related to the content of the video illustrated in FIG. 26.
[0329] The information may be acquired by the image content acquisition unit 450 itself executing an image recognition process, or may be notified as a result of image drawing from the image generation unit 420, etc. In the former case, the image content acquisition unit 450 may perform image recognition or estimate the attention level of a recognized object by using at least one of the acquired optical flow, motion estimation, the allocation status of coding units, whether or not it is a timing of scene change, the type of image texture shown in the frame, the distribution of feature points, depth information, and the like.
[0330] 23 and 26. The compression encoding processing unit 464 compresses and encodes the image data at different compression rates in the image plane based on the distribution of the attention level estimated by the attention level estimation unit 460. At this time, the compression encoding processing unit 464 determines the compression rate in the frame plane, and thus the distribution of the quantization parameter, based on a combination of the attention level, the communication bandwidth that can be used for data transmission, the frame rate, and the resolution.
[0331] Qualitatively, the compression encoding processing unit 464 reduces the compression ratio and allocates a larger bit rate by lowering the value of the quantization parameter for a unit volume region where a high degree of attention is estimated. However, if the quantization parameter is determined based only on the estimated degree of attention, it may result in compression that is more than necessary for the available communication bandwidth, or insufficient compression.
[0332] Therefore, as described above, the compression encoding processing unit 464 determines the distribution of the compression rate in the image plane, taking into consideration the frame rate and resolution, so that the data size of the entire frame matches the available communication bandwidth. However, as described above, the compression encoding processing unit 464 performs compression encoding on a partial image basis of the frame generated by the image generating unit 420. Here, the partial image is, for example, an integer multiple in size of the unit area for estimating the attention level. The compression encoding processing unit 464 determines a quantization parameter for each unit area, and performs compression encoding for each unit area contained in the partial image using the determined quantization parameter. At this time, the compression encoding processing unit 464 grasps the total data size for each partial image.
[0333] The compression encoding processing unit 464 sequentially supplies the partial image data compressed and encoded in this manner to the packetizing unit 424. At this time, by supplying the quantization parameters applied to the unit regions of the partial image in association with the data, the packetizing unit 424 packetizes the partial image data together with the data. As a result, the compression-encoded partial image data is transmitted to the image processing device 200 via the communication unit 426, in the same manner as described above. The decoding and decompression unit 242 of the image processing device 200 performs inverse quantization based on the quantization parameters transmitted together with the image data.
[0334] 34 is a diagram for explaining the process in which the attention estimation unit 460 estimates the distribution of attention in an image plane. An image 160 represents a certain frame of moving image data. Objects 162a, 162b and a GUI 162c are represented in the image 160. The attention estimation unit 460 forms unit areas (e.g., unit area 164) by dividing the image plane at a predetermined interval in both the vertical and horizontal directions as shown by the dashed lines. Then, the attention estimation unit 460 estimates the attention for each unit area.
[0335] In the figure, the set of unit areas 166a, 166b in which objects 162a, 162b are represented, surrounded by a dashed line, is estimated to have a higher attention level than other unit areas. However, in reality, considering that many more objects are represented, the attention level is estimated based on various information such as those exemplified in "6. Optimization of Data Size Reduction Means" above. The attention level may be expressed as 0 or 1, i.e., two values indicating whether the object is not being paid attention or is being paid attention, or may be expressed in more gradations. For example, the attention level estimation unit 460 may derive a score indicating the attention level according to at least one of the following rules, and may comprehensively determine the attention level for each unit area by the sum of the scores.
[0336] 1. Scoring rules based on the importance of the object A unit area including an object that satisfies a condition for high importance, such as an object that is the object of the user's operation, such as a person, an avatar, a robot, a vehicle, or a machine, an object that confronts such a main object, or a unit area including an indicator intended to notify the player of information, such as the player's life status in the game, the weapon status held, or the game score, is assigned a higher score than others. The image content acquisition unit 450 obtains information about such objects from the image generation unit 420, or estimates them from the linkage between the object identified by image recognition and the user's operation. The user may be one person, or may be multiple people who share the same image processing device 200, or who have different image processing devices 200 connected to the same server 400.
[0337] 2. Score determination rules based on the area ratio of the object image The larger the proportion of the area occupied by objects such as people and avatars and robots with similar features in the entire image, the higher the score of the unit area containing them. The image content acquisition unit 450 obtains information about these objects from the image generation unit 420 or identifies them through image recognition. A general face detection algorithm or the like may be used for image recognition. For example, a face is detected by searching within the image for points where the positions indicating the features of the eyes, nose, and mouth are relatively located in a T-shape.
[0338] 3. Scoring Rules Based on Presentation Content A unit area including an indicator intended to inform a player of information such as the player's life status, weapon status, game score, etc. in a game is set to have a higher score than others. The image content acquisition unit 450 obtains information about the indicator from the image generation unit 420 or identifies the indicator by image recognition.
[0339] 4. Scoring rules based on object granularity When objects such as detailed characters, symbols, signs, and pixel art occupy a small proportion of the area of the entire image, the unit area containing them is assigned a higher score than others. The image content acquisition unit 450 obtains information about the object from the image generation unit 420 or identifies the object by image recognition.
[0340] 5. Score determination rules based on the size of the image Taking into account LOD, mipmap texture, tessellation, and object size, if there is an object with higher resolution than a certain value and it occupies a larger proportion of the area of the entire image (i.e. if there is a large high-resolution object close to the view screen), the unit area containing that object will be given a higher score than others.
[0341] 6. Scoring rules based on contrast and dynamic range With reference to the contrast based on the distribution of pixel values and the dynamic range based on the distribution of luminance, a unit area with higher contrast or dynamic range is assigned a higher score. 7. Scoring Rules Based on Statue Movement The amount of movement of the object image, the optical flow, and the size and amount of motion estimation are referenced, and a unit area that has more objects with movement amounts greater than a predetermined value and that occupies a larger proportion of the area in the entire image is given a higher score.
[0342] 8. Score determination rules based on texture type The type of image texture for each unit region is tallied, and when high density regions, detailed regions, or crowd regions occupy a large proportion of the area of the entire image, the unit region containing that texture is given a higher score than the others.
[0343] 9. Score control rules for scene change timing Information on the timing of the change is obtained from the image generation unit 420. Alternatively, the score is changed when any of the object amount, feature points, edges, optical flow, motion estimation, pixel contrast, luminance dynamic range, presence or absence of audio, number of audio channels, and audio mode is suddenly changed or reset in the time series direction. At this time, at least two frames are referenced. Note that the compression encoding processing unit 454 can also detect a scene change based on the correlation with the previous frame in order to grasp the necessity of a frame as an intra frame in compression encoding.
[0344] At this time, the accuracy of detecting the change may be improved not only by the determination by the conventional compression encoding processing unit 454 but also by using the score determination rules described above. When it is determined that there is no scene change, the scores of the unit areas with high scores set based on other score determination rules for the frames up to that point are further increased. When it is determined that there is a scene change, the scores of the unit areas that had been set to have high scores are temporarily reset. Since a detected scene change requires intraframes and is prone to a surge in data size, the total scores of all unit areas are reduced for the target frame and a predetermined number of subsequent frames.
[0345] 10. Score determination rules based on user operations In content such as a game being implemented by the image generating unit 420, when the amount of change in user operation during the immediately preceding predetermined period is equal to or greater than a predetermined value, it is assumed that the user expects high responsiveness from the content and that there is an area of interest. Therefore, the score of a unit area to which a score equal to or greater than a predetermined value has been given by other score determination rules is further amplified. If the amount of change is small even if an operation is performed, the level of the score is lowered by one level from the amplification result. Note that the user operation is obtained from the image processing device 200, such as input information obtained by an input device (not shown) such as a game controller, keyboard, or mouse, the position, posture, and movement of the head mounted display 100, gesture (hand sign) instructions based on the results of analyzing images captured by the camera of the head mounted display 100 or an external camera (not shown), and voice instructions obtained by a microphone (not shown).
[0346] 11. Controlling the frequency of switching the compression ratio distribution The system refers to the attention history determined in the previous specified period and adjusts the score so that the switching is within an acceptable range from the perspective of user experience. The "acceptable range" is determined based on a predefined table or model.
[0347] The attention estimation unit 460 determines the attention level of each unit area based on one of the above rules or the total score obtained by a plurality of rules. In the above rules 1 to 9, the compression encoding processing unit 454 may refer to the Z value to grasp the object's position, projection order, size, and relative distance from the view screen. The above-mentioned determination rules are prepared in advance in the form of a table or a calculation model, and are stored inside the attention estimation unit 460.
[0348] The compression encoding processing unit 464 determines the compression rate (quantization parameter) of each unit area based on the distribution of the degree of attention estimated in this way. For example, in the illustrated example, if one row of unit areas is treated as a partial image, the compression rate of the topmost partial image 168a and the bottommost partial image 168b, which do not have a unit area determined to have a high degree of attention, is made higher than that of the other intermediate partial images. Furthermore, if the object 162a is more attention-grabbing than the object 162b, it is also possible to consider that the compression rate of the set of unit areas 166b in which the object 162b is represented is made higher than that of the set of unit areas 166a.
[0349] In any case, the compression encoding processing unit 464 updates the distribution of the compression rate in partial image units, in units of one frame, in units of a predetermined number of frames, or at a predetermined time interval, so that the data size matches the latest communication situation. For example, if the available communication bandwidth, resolution, and frame rate are the same, the difference in compression rate between the attention area and the non-attention area is reduced as the number of unit areas estimated to have a high attention level increases. Such an adjustment may be performed individually for each set of unit areas 166a, 166b according to the level of attention. In some cases, some sets of unit areas (for example, the set of unit areas 166b) may be excluded from the targets for reducing the compression rate based on the priority of the determined attention level.
[0350] Furthermore, if the resolution or frame rate is high while the available communication bandwidth is the same, the data size for each frame is adjusted and the bit rate is optimized by increasing the overall compression rate or reducing the difference in compression rate between the attention area and the non-attention area. The transmission target is a partial image unit, while the data size can be controlled in partial image units, one frame unit, a predetermined number of frames unit, or a predetermined time unit. The rules for determining the distribution of the quantization parameters based on the combination of the attention level of each unit area, the available communication bandwidth, the frame rate, and the resolution are prepared in advance in the form of a table or a calculation model.
[0351] However, since the information indicating the contents of the video image is diverse as described above, it is desirable to optimize the decision rule itself in order to comprehensively determine the optimal quantization parameter by looking at all of the information. Therefore, as explained in "6. Optimization of data size reduction means" above, the decision rule may be optimized by machine learning or deep learning while collecting adjustment results in various past cases.
[0352] 35 is a flowchart showing a processing procedure in which the server 400 controls the compression rate for each region of the image plane. This flowchart is started when the user selects a game to be played or a video to be watched, etc., for the image processing device 200. In response to this, the communication status acquisition unit 462 of the server 400 starts acquiring the status of communication used for streaming to the image processing device 200 (S70). As described above, the communication status is determined by sending and receiving signals with the image processing device 200, so the communication status acquisition unit 462 acquires necessary information from the communication unit 426.
[0353] The image generating unit 420 also starts generating the corresponding video (S72). However, the image generating unit 420 is not limited to drawing computer graphics, and may acquire a captured image from a camera. Meanwhile, the image content acquiring unit 450 of the compression encoding unit 422 starts acquiring information related to the content of the video (S73). Next, the compression encoding processing unit 464 determines the transmission size of the image data according to the most recent communication status acquired by the communication status acquiring unit 462 (S74). Then, the attention estimating unit 460 of the compression encoding unit 422 estimates the distribution of the attention for the frame to be processed based on the information related to the content of the video (S75). That is, the plane of the frame is divided into unit areas, and the attention level is derived for each unit area.
[0354] To derive the attention level, a table that can obtain a score according to at least one of the above rules is referenced, or a calculation model is used. Scores obtained from various viewpoints are then added up to obtain the final attention level for each unit region. The compression encoding processing unit 464 determines the distribution of quantization parameters based on the distribution of attention levels (S76). As described above, the quantization parameters are determined taking into consideration the available communication bandwidth, resolution, and frame rate in addition to the attention level.
[0355] The compression encoding processing unit 464 derives an appropriate distribution of quantization parameters from those parameters by referring to a table or using a calculation model. The compression encoding processing unit 464 then compresses and encodes the unit areas included in the partial image using the determined quantization parameters, and sequentially supplies the compressed data to the packetizing unit 424, which then transmits the data to the image processing device 200 (S80).
[0356] The compression encoding processing unit 464 repeats the compression encoding and transmission of all partial image data for the frame to be processed (N of S82, S80). If there is no need to stop image transmission due to a user operation on the image processing device 200 or the like (N of S84), the determination of data size, estimation of attention distribution, determination of quantization parameter distribution, and compression encoding and transmission of partial images are repeated for subsequent frames as well (N of S84, S74, S75, S76, S80, S82).
[0357] In practice, since the pipeline processing is performed in partial image units, the attention distribution estimation and the distribution determination of the quantization parameters for the next frame can be performed during the compression encoding and transmission processing of the partial image of the previous frame. In practice, the frequency of determining the data size in S74 and the frequency of compression encoding and transmission in partial image units in S80 may be the same or different. When it becomes necessary to stop transmitting images, the server 400 ends all processing (Y in S84).
[0358] According to the above-mentioned compression rate control for each region based on the content of the video, the server 400 estimates the user's attention level for each unit region based on the content of the video. Then, the server 400 determines the distribution of quantization parameters so that the compression rate decreases as the level of attention increases, and transmits the quantization parameters to the image processing device 200 after compression-encoding. This makes it possible to improve the quality of the user experience in an environment with limited communication bandwidth and resources.
[0359] In addition, by obtaining multifaceted information related to the contents of the moving image from an image generating unit that generates images in real time and a compression encoding processing unit that compresses and encodes the images, it is possible to estimate the distribution of the attention level more accurately and in detail. By treating the attention level as a distribution and determining the distribution of the compression rate according to the distribution, it is possible to finely control the compression rate in response to changes in the resolution, frame rate, and communication conditions, and to flexibly respond to various changes in conditions.
[0360] 7-2. Control based on user's gaze point In the above 7-1, the attention level is estimated based on the content of the moving image, but the attention level can also be estimated based on the part that the user is actually paying attention to. In this case, the server 400 acquires position information of the gaze point on the screen from a device that detects the gaze point of the user looking at the head mounted display 100 or the flat display 302, and estimates the attention level distribution based on the position information. Note that the attention level distribution may be derived based on both the content of the moving image and the user's gaze point.
[0361] Fig. 36 shows a functional block configuration of a server 400 having a function of changing a compression ratio depending on an area on a frame based on a user's gaze point. The server 400 includes an image generating unit 420, a compression encoding unit 422, a packetizing unit 424, and a communication unit 426. The image generating unit 420, the packetizing unit 424, and the communication unit 426 have the same functions as those described in Figs. 5, 9, 16, 26, and 33. When transmitting images of multiple viewpoints, the compression encoding unit 422 may further include a division unit 440, a second encoding unit 444, a transmission target adjustment unit 362, and the like shown in Figs. 20 and 23.
[0362] The compression encoding unit 422 includes a gaze point acquisition unit 470, an attention level estimation unit 472, a communication status acquisition unit 474, and a compression encoding processing unit 476. The gaze point acquisition unit 470 acquires position information of the gaze point of the user with respect to a drawn moving image displayed on a display device connected to the image processing device 200, such as the head mounted display 100 or the flat display 302. For example, a gaze point detector is provided inside the head mounted display 100, or a user looking at the flat display 302 wears a gaze point detector, and a measurement result by the gaze point detector is acquired.
[0363] The image data acquisition unit 240 of the image processing device 200 transmits the position coordinate information of the gaze point to the communication unit 426 of the server 400 at a predetermined rate, whereby the gaze point acquisition unit 470 acquires it. The gaze point detector may be a general device that irradiates the user's eyeball with reference light such as infrared light, detects the reflected light with a sensor, and identifies the gaze point from the direction of the pupil. The gaze point acquisition unit 470 preferably acquires the position information of the gaze point at a frequency higher than the frame rate of the moving image.
[0364] Alternatively, the gaze point acquisition unit 470 may generate position information at a suitable frequency by temporally interpolating the position information of the gaze point acquired from the image processing device 200. Note that, in preparation for a failure of transmission from the image processing device 200, the gaze point acquisition unit 470 may simultaneously acquire a predetermined number of history values from the image processing device 200 together with the latest value of the position information of the gaze point.
[0365] The attention level estimation unit 472 estimates the attention level for each unit area obtained by dividing the frame plane of the moving image based on the position of the gaze point. Specifically, the attention level estimation unit 472 estimates the attention level based on at least one of the frequency at which the gaze point is included, the duration of the gaze point, the presence or absence of saccades, and the presence or absence of blinking. Qualitatively, the attention level estimation unit 472 increases the attention level of a unit area as the frequency at which the gaze point is included or the duration of the gaze point per unit time increases.
[0366] A saccade is a high-speed movement of the eyeball that occurs when the gaze is directed toward an object, and it is known that the processing of visual signals in the brain is suspended during the period when a saccade occurs. During the period when a blink occurs, an image is not recognized. Therefore, the attention level estimation unit 472 changes the attention level so as to reduce or eliminate the difference in the level during those periods. A method for detecting the period of a saccade or a blink is disclosed, for example, in the specification of U.S. Patent Application Publication No. 2017 / 0285736.
[0367] Here, when the gaze point acquisition unit 470 acquires or generates the position information of the gaze point at a higher frequency (e.g., 240 Hz) than the frame rate of the video (e.g., 120 Hz), the attention estimation unit 472 may update the attention every time new position information is acquired. In other words, the distribution of the attention level may change during the compression encoding process for one frame. As described above, the attention estimation unit 472 may further estimate the attention level based on the content shown in the video for each unit area, similar to the attention estimation unit 460 described in 7-1, and acquire the final distribution of the attention level by integrating it with the attention level based on the position of the gaze point. The communication status acquisition unit 474 has the same function as the communication status acquisition unit 452 in FIG. 26.
[0368] The compression encoding processing unit 476 basically has the same function as the compression encoding processing unit 464 in Fig. 33. That is, the compression encoding processing unit 476 compresses and encodes the image data with different compression rates in the image plane based on the distribution of the attention level estimated by the attention level estimation unit 472. At this time, the compression encoding processing unit 476 determines the compression rate in the frame plane, and therefore the distribution of the quantization parameter, based on a combination of the communication bandwidth, frame rate, and resolution that can be used for data transmission.
[0369] For example, the compression encoding processing unit 476 adjusts the distribution of compression rates based on a comparison between the data size of a predetermined number of recent frames and the available communication bandwidth acquired by the communication status acquisition unit 474. On the other hand, the movement of the gaze point is generally complex, and there is a possibility that the attention level cannot be obtained with stable accuracy. Therefore, the compression encoding processing unit 476 may refer to the compression results of the most recent frames in addition to the distribution of the attention level estimated by the attention level estimation unit 472, and may improve the accuracy of determining the compression rate of the frame to be processed.
[0370] For example, the compression encoding processing unit 476 may adjust the distribution of compression rates of the frames to be processed based on the compression encoding results of a predetermined number of frames most recent, i.e., areas with increased compression rates and their compression rates. This can alleviate bias in the distribution of compression rates. Alternatively, the compression encoding processing unit 476 may determine the effectiveness of the attention level for each unit area, and if it is determined that the attention level is not effective, may refer to the compression encoding results of a predetermined number of frames most recent to determine the distribution of compression rates.
[0371] For example, if areas of high attention are widely dispersed or the attention is outside the effective range, the compression encoding processor 476 determines the distribution of compression rates for the frames to be processed by directly adopting the distribution of compression rates determined for a predetermined number of recent frames or by extrapolating changes in the distribution. As described above in 7-1, the compression encoding processor 476 also determines the distribution of compression rates in the image plane, taking into account the frame rate and resolution, so that the data size of the entire frame matches the available communication bandwidth. Subsequent processing is the same as that described above in 7-1.
[0372] FIG. 37 is a diagram for explaining the process in which attention level estimation unit 472 estimates the distribution of attention levels on an image plane. Image 180 represents a certain frame of video data. A circle (e.g., circle 182) depicted on the image represents the position where the gaze point stayed, and the size of the circle represents the length of stay time. Here, "stay" refers to the gaze point staying within a specified range that is regarded as the same position for a specified period of time or more. Furthermore, a line (e.g., line 184) represents a movement path of the gaze point that occurred with a frequency equal to or greater than a specified value.
[0373] The attention level estimation unit 472 acquires the position information of the gaze point from the gaze point acquisition unit 470 at a predetermined cycle, and generates information as shown in the figure. Then, for each unit area, the attention level is estimated based on the frequency at which the gaze point is included, the duration of the gaze point, the presence or absence of saccades, the presence or absence of blinking, and the like. In the figure, for example, the unit areas included in the areas 186a, 186b, and 186c surrounded by dashed lines are estimated to have a higher attention level than the other unit areas. Furthermore, a unit area that is a path of gaze point movement with a frequency equal to or higher than a threshold value may also be considered to have a high attention level. In this embodiment, the attention level may be expressed as 0 or 1, i.e., a binary value indicating whether the gaze point is not being paid attention or is being paid attention, or may be expressed with more gradations.
[0374] 38 is a diagram for explaining a method in which the compression encoding processing unit 476 determines the distribution of compression rates based on the gaze point. Basically, when starting compression encoding of a target frame, the compression encoding processing unit 476 determines a compression rate (quantization parameter) for each partial image based on the latest distribution of attention levels and the available communication bandwidth, and performs compression encoding. However, the data size of the compression result may vary depending on the content of the image, and the gaze point information may be updated in an unprocessed partial image in the target frame.
[0375] Therefore, the data size at the time when the compression encoding of the target frame starts may differ from the actual result. Therefore, if the available communication bandwidth is temporarily exceeded or is likely to be exceeded, the designation of the compression rate reduction based on the attention level is canceled and the data size is adjusted to fit in the compression encoding process of the target frame or subsequent frames. In the case of this figure, as shown in the upper part, seven partial regions (e.g. partial region 192) are formed by equally dividing the plane of image 190 in the horizontal direction.
[0376] For example, when compressing and encoding each partial image, if the partial image contains a unit area for which the compression rate should be lowered, or if the partial image is a unit area for which the compression rate should be lowered, the compression encoding processing unit 476 reduces the compression rate by lowering the quantization parameter for the partial image. If new position information of the attention point is obtained while compressing and encoding the partial images in order from the top of the image 190, the attention estimation unit 472 updates the attention level for each unit area accordingly, and the compression encoding processing unit 476 determines the compression rate of the partial image based on the most recent attention level. In other words, when the attention level is updated after the start of processing the frame to be processed, the compression encoding processing unit 476 compresses and encodes the partial image at a compression rate based on the distribution of the most recent attention level.
[0377] In determining such a compression rate, as described above, the compression rate may be adjusted by referring to the results of the compression encoding up to that point. The bar graph in the lower part of the figure shows the data size after compression encoding for each partial image in four consecutive frames ("Frame 0" to "Frame 3") in bit rate (bit / sec) as the compression encoding result. Also, the line graph 196 shows the bit rate after compression encoding per frame for each frame.
[0378] Here, the bit rate "A" indicates the communication bandwidth available for communication between the server 400 and the image processing device 200. However, in reality, the communication bandwidth varies over time. The compression encoding processing unit 476, for example, compares the bit rate per frame with the available communication bandwidth to adjust the compression rate of each partial image, and therefore the quantization parameter. In the example shown in the figure, the bit rate per frame of "Frame0" is sufficiently lower than the communication bandwidth, whereas the bit rate of the next frame, "Frame1," approaches the communication bandwidth.
[0379] The compression encoding processor 476 predicts the bit rate per frame in the compression encoding process of each partial image, and when it is found that the difference with the communication bandwidth is smaller than a predetermined threshold, as in the case of "Frame 1," it increases the compression rate of one of the partial images. In the figure, the arrow indicates that the bit rate has decreased by increasing the compression rate of the seventh partial image of "Frame 1" from the initially determined value.
[0380] In the next frame, "Frame2," the bit rate per frame exceeds the communication bandwidth. In this case, the compression encoding unit 476 may adjust the compression rate for the next frame, "Frame3." In the figure, the arrow indicates that the bit rate has decreased by increasing the compression rate of the first partial image in "Frame3" from the initially determined value.
[0381] In this example, the attention level is expressed by two values, that is, not being paid attention to or being paid attention to, and corresponds to an operation of excluding the seventh partial image of "Frame1" and the first partial image of "Frame3", which were initially set as the area of attention, from the area of attention. That is, when the bit rate per frame exceeds the communication bandwidth or the difference between them becomes smaller than a predetermined value, the compression encoding processing unit 476 cancels the reduction in the compression rate even for partial images including a unit area of high attention that should have a lower compression rate.
[0382] In this case, the compression ratio may be the same as that of other regions not receiving attention, or the compression ratio may be increased by a predetermined value. However, the adjustment method is not limited to the one shown in the figure, and especially when the attention level is expressed in multiple stages, the amount of change in the compression ratio may be varied according to the level of attention, or the entire distribution of the compression ratio may be changed. In this way, the compression encoding processing unit 476 may determine the quantization parameter based only on the frame to be processed, or may determine the quantization parameter by also referring to the compression encoding results of a predetermined number of frames immediately preceding the frame.
[0383] At this time, the compression encoding processing unit 476 may check the time changes of parameters such as the distribution of quantization parameters in past frames, the available communication bandwidth, and the data size of the entire frame from various angles, and may determine the distribution of quantization parameters in the frame to be processed based on the results. The rules for determining the distribution of quantization parameters based on the attention level and the rules for determining the distribution of quantization parameters based on the time changes of parameters such as the distribution of quantization parameters in past frames, the available communication bandwidth, and the data size of the entire frame may be optimized by machine learning or deep learning while collecting adjustment results in various past cases.
[0384] The processing procedure in which the server 400 controls the compression rate for each region of the image plane may be the same as that shown in Fig. 35. However, the attention level estimation process may be updated as necessary each time position information of the gaze point is obtained, and the quantization parameter may be changed as needed accordingly.
[0385] According to the above-mentioned compression rate control for each region based on the user's gaze point, the server 400 acquires the user's actual gaze movement and estimates the user's attention level for each unit region based on the result. This makes it possible to accurately determine the target that is actually being watched, and by preferentially allocating resources to the target, it is possible to improve the image quality as perceived by the user.
[0386] In addition, by using the most recent compression and encoding results to determine the compression rate, the compression rate setting accuracy can be maintained even if the attention estimation contains an error. Furthermore, by monitoring the data size after compression and encoding of the entire frame, even if there are too many areas determined to be of high attention in the initial settings or the compression rate of such areas is too low, these values can be appropriately adjusted. Also, as with 7-1, by treating the attention as a distribution and determining the distribution of the compression rate according to this distribution, the compression rate can be finely controlled in response to changes in resolution, frame rate, and communication conditions, and it can flexibly respond to various changes in conditions.
[0387] As a modified example, the gaze point acquisition unit 470 and the attention level estimation unit 472 may be provided on the image processing device 200 side, and the server 400 may acquire information on the attention level estimated for each unit region from the image processing device 200. In this case, the gaze point acquisition unit 470 acquires position information of the gaze point, which is a measurement result, from the gaze point detector described above. The attention level estimation unit 472 estimates the attention level for each unit region based on the position information of the gaze point, in the same manner as when provided on the server 400.
[0388] As described above, the position information of the gaze point may be acquired more frequently than the frame rate, and the distribution of the attention level may be updated accordingly. Information on the attention level estimated by the attention level estimation unit 472 is transmitted to the communication unit 426 of the server 400 at a predetermined rate, for example, via the image data acquisition unit 240. In this case, too, the attention level estimation unit 472 may simultaneously transmit a predetermined number of history values together with the latest value of the attention level estimation result in case of a transmission failure. The operations of the communication status acquisition unit 474 and the compression encoding processing unit 476 of the server 400 are the same as those described above. With such a configuration, the same effects as those described above can be achieved.
[0389] The present invention has been described above based on the embodiments. The embodiments are merely examples, and it will be understood by those skilled in the art that various modifications are possible in the combination of each component and each treatment process, and that such modifications are also within the scope of the present invention. [Explanation of symbols]
[0390] 1 image display system, 100 head mounted display, 200 image processing device, 202 input / output interface, 204 partial image storage unit, 206 control unit, 208 video decoder, 210 partial image storage unit, 212 control unit, 214 image processing unit, 216 partial image storage unit, 218 control unit, 220 display controller, 240 image data acquisition unit, 242 decoding / expansion unit, 244 image processing unit, 246 display control unit, 248 data acquisition status identification unit, 250 output target determination unit, 252 output unit, 260 position / orientation tracking unit, 262 first correction unit, 264 synthesis unit, 266 second correction unit, 270a first formation unit, 270b second formation unit, 272a first control unit, 272b second control unit, 280 first decoding unit, 282 second decoding unit, 302 flat panel display, 400 server, 402 drawing control unit, 404 image drawing unit, 406 frame buffer, 408 video encoder, 410 partial image storage unit, 412 control unit, 414 video stream control unit, 416 input / output interface, 420 image generation unit, 422 compression encoding unit, 424 packetization unit, 426 communication unit, 430 drawing unit, 432 formation content switching unit, 434 data formation unit, 440 division unit, 442 first encoding unit, 444 second encoding unit, 450 image content acquisition unit, 452 communication status acquisition unit, 454 compression encoding processing unit, 460 attention estimation unit, 462 communication status acquisition unit, 464 compression encoding processing unit, 470: gaze point acquisition unit; 472: attention level estimation unit; 474: communication status acquisition unit; 476: compression encoding processing unit.
Claims
1. an image acquisition unit that acquires moving image data; a division unit for dividing a plurality of images, each of which represents a frame of the video sequence, having at least a portion of a common object, at a common boundary to form image blocks; a first encoding unit that compresses and encodes one of the plurality of images by the image block using a scalable video encoding algorithm; a second encoding unit that compresses and encodes the other images by a scalable video encoding algorithm in units of the image blocks using the data compressed and encoded by the first encoding unit; a communication unit that transmits the data compressed and encoded by the first encoding unit and the second encoding unit to an external device in units of the image blocks; A communication status acquisition unit that acquires a communication status with the external device; a transmission target adjustment unit that changes an image to be used for compression encoding by the second encoding unit among the plurality of images that have been previously compressed and encoded, in accordance with the communication status; 1. An image data transfer device comprising:
2. The image data transfer device according to claim 1, characterized in that while the first encoding unit is compression-encoding the nth (n is a natural number) image block in the one image, the second encoding unit is compression-encoding the n-1th image block in the other image.
3. 3. The image data transfer device according to claim 1, wherein the dividing section divides the plurality of images by setting the boundaries in accordance with an order in which the image acquisition section acquires data on an image plane.
4. 4. The image data transfer device according to claim 1, wherein the dividing section divides the plurality of images in any one of a horizontal direction, a vertical direction, a bi-directional direction, and a diagonal direction on an image plane.
5. 5. The image data transfer device according to claim 4, wherein the division section sets, as a minimum division unit, a minimum unit area required for the first encoding section and the second encoding section to perform compression encoding.
6. The image data transfer device according to any one of claims 1 to 5, characterized in that the second encoding unit further compresses and encodes the other images using compressed and encoded data of image blocks at the same positions of corresponding images in past frames.
7. 7. The image data transfer device according to claim 1, wherein the first encoding unit compresses and encodes the one image using compressed and encoded data of an image block at the same position of a corresponding image in a past frame.
8. 7. The image data transfer device according to claim 1, wherein the communication section transmits the compressed and encoded data for each image block in the order in which the data was compressed and encoded.
9. An image data transfer device as described in any one of claims 1 to 8, characterized in that the second encoding unit starts compression-encoding of the other image using the compressed and encoded data at the time when the first encoding unit has compressed and encoded a predetermined unit area of the image block in the one image.
10. 10. The image data transfer device according to claim 1, wherein the first encoding unit and the second encoding unit compress and encode images hierarchically based at least on resolution using an SVC (Scalable Video Coding) algorithm.
11. 10. The image data transfer device according to claim 1, wherein the first encoding unit and the second encoding unit generate compressed encoded data having at least different image quality by an SVC (Scalable Video Coding) algorithm.
12. The image data transfer device according to claim 10 or 11, characterized in that the transmission target adjustment unit determines whether or not to transmit the data compressed and encoded by the second encoding unit together with the data compressed and encoded by the first encoding unit, depending on the communication conditions.
13. The image data transfer device according to claim 12, characterized in that the transmission target adjustment unit gradually expands the hierarchical layers to be transmitted among the hierarchical data compressed and encoded by the first encoding unit and the second encoding unit, depending on the communication conditions.
14. the transmission target adjustment unit adjusts a transfer priority level to be assigned to each layer of the hierarchical data compressed and encoded by the first encoding unit and the second encoding unit according to the communication status; 12. The image data transfer device according to claim 10, wherein the communication unit transmits information relating to the transfer priority order together with the hierarchical data.
15. The image data transfer device of any one of claims 12 to 14, characterized in that the transmission target adjustment unit further changes parameters used by the first encoding unit and the second encoding unit when hierarchizing data based on at least one of the content represented by the moving image and the communication status.
16. The image data transfer device of any of claims 12 to 14, characterized in that the transmission target adjustment unit further changes the number of hierarchical levels of resolution, image quality, and frame rate of the compression-encoded data generated by the first encoding unit and the second encoding unit, or changes the hierarchical level referenced during compression-encoding, based on at least one of the content represented by the moving image and the communication status.
17. An image data transfer device as described in any one of claims 1 to 9, characterized in that when the multiple images have multiple resolution hierarchies and multiple frame rate hierarchies, the second encoding unit uses compressed and encoded data of at least any of images of different resolutions representing the same frame, images of the same resolution in a hierarchical level with the same frame rate, and images of the same resolution in a hierarchical level with a different frame rate in the compression encoding.
18. acquiring video data; forming image blocks by dividing a plurality of images at a common boundary, the images each representing a frame of the motion picture and having at least a portion of a common object; compressing and encoding one of the plurality of images in units of image blocks using a scalable video encoding algorithm; compressing and encoding the other images in units of the image blocks using the data compressed and encoded in the compressing and encoding step, using a scalable video encoding algorithm; transmitting the compressed and encoded data to an external device in units of the image blocks; acquiring a communication status with the external device; changing an image, which is to be used for compressing and encoding the other images, among the plurality of images that have been previously compressed and encoded, in accordance with the communication status; 13. An image data transfer method by an image data transfer device, comprising:
19. A function to acquire video data; forming image blocks by dividing a plurality of images at a common boundary, each image representing a frame of the motion picture, the images having at least a portion of a common object; a function of compressing and encoding one of the plurality of images in units of image blocks using a scalable video encoding algorithm; a function of compressing and encoding other images by a scalable video encoding algorithm in units of the image blocks using the data compressed and encoded by the compression encoding function; a function of transmitting the compressed and encoded data to an external device in units of the image blocks; A function of acquiring a communication status with the external device; a function of changing an image, which is to be used for the compression encoding of the other images, among the images which have been previously compressed and encoded, in accordance with the communication status; A computer program characterized by causing a computer to execute the above.
Citation Information
Patent Citations
Encoding device, encoding method, encoding program, decoding device, decoding method, and decoding program
JP2009246539A
Communication management system, communication system, program, and maintenance system
JP2019050572A
Video encoding device, video encoding method, video encoding program, video playback device, video playback method, and video playback program
WO2012111325A1
Image transmission device, image transmission method, and image playback device
WO2013175796A1
