Image processing apparatus, image processing system, image processing method, and program
Patent Information
- Application Number
- JP2023037503
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
【0007】 本開示の技術によれば、適切な仮想視点画像を生成するための負担を抑制することができる。
Smart Images

Figure 2024128511000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to processing based on captured images. [Background technology]
[0002] There is a method in which multiple imaging devices are installed at different positions, capture images from multiple viewpoints in a time-synchronized manner, and generate a virtual viewpoint image, which is an image from an arbitrary viewpoint, using the images obtained by the capture. The virtual viewpoint image allows the viewer to view highlight scenes of soccer or basketball from various angles, and can give the viewer a sense of realism in comparison with the images captured by the imaging devices. In order to generate a virtual viewpoint image that gives the viewer a high sense of realism, it is necessary to properly reproduce shadows.
[0003] Patent Document 1 discloses a method for generating a virtual viewpoint image in which background shadows are reproduced based on images captured by a first imaging device for generating a foreground image and a second imaging device with a wide angle of view for generating a background image. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2020-191598 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, the method of Patent Document 1 requires a second imaging device with a wide angle of view to generate a background image in addition to a first imaging device to generate a foreground image, which increases the cost and time required to install the second imaging device, and therefore increases the burden of generating an appropriate virtual viewpoint image in which background shadows are reproduced. [Means for solving the problem]
[0006] The image processing device disclosed herein is characterized by having an acquisition means for acquiring information regarding the brightness value of either an image captured by a plurality of imaging devices for generating a foreground image or a background image generated from the captured images, a processing means for modifying color information of background three-dimensional shape data based on the brightness value, and a generation means for generating a virtual viewpoint image using the three-dimensional shape data colored with the modified color information. Effect of the Invention
[0007] According to the technology of the present disclosure, it is possible to reduce the burden required for generating an appropriate virtual viewpoint image. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a diagram showing an example of the configuration of an image processing system. [Diagram 2] FIG. 2 is a diagram illustrating an example of a hardware configuration of an image processing apparatus. [Diagram 3] FIG. 2 is a block diagram showing an example of a functional configuration of an imaging processing device and an image processing device. [Figure 4] FIG. 11 is a diagram for explaining light and dark information of a background. [Diagram 5] 11 is a flowchart illustrating a process for generating background light-dark difference information. [Figure 6] 11 is a flowchart illustrating the flow of a process for generating a three-dimensional background model in which a shadow is reflected. [Figure 7] FIG. 13 is a diagram for explaining a merge process. [Figure 8] FIG. 2 is a block diagram showing an example of a functional configuration of an imaging processing device and an image processing device. [Figure 9] FIG. 4 is a diagram showing an example of foreground information. [Figure 10] 11 is a flowchart illustrating a process for generating background light-dark difference information. [Figure 11] FIG. 2 is a block diagram showing an example of a functional configuration of an imaging processing device and an image processing device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment of the technology of the present disclosure will be described in detail. Note that the components described in the following embodiments are examples of the technology of the present disclosure, and do not limit the scope of the technology of the present disclosure. In addition, terms that differ only in the alphabet affixed to the number in the reference symbol indicate different instances of devices having the same function, and the alphabet of the reference symbol may be omitted when referring to any of the devices having the same function.
[0010] First Embodiment [System Configuration] 1 is a diagram showing an example of the configuration of an image processing system according to this embodiment for generating a virtual viewpoint image. The image processing system includes a plurality of imaging processing devices 110a to 110p, an image processing device 130, a virtual viewpoint input device 140, and an image display device 150.
[0011] The virtual viewpoint image is an image that represents a view from a virtual viewpoint different from the viewpoint of the actual imaging device. The virtual viewpoint image in this embodiment is also called a free viewpoint image, but is not limited to an image corresponding to a viewpoint freely (arbitrarily) specified by the user, and for example, an image corresponding to a viewpoint selected by the user from a plurality of candidates is also included in the virtual viewpoint image. In addition, in this embodiment, the virtual viewpoint is described as being specified by a user operation, but the virtual viewpoint may be automatically specified based on the result of image analysis or the like. In addition, in this embodiment, the virtual viewpoint image is described as being a moving image, but the virtual viewpoint image may be a still image. The imaging unit 301 (see FIG. 3) included in each of the plurality of imaging processing devices 110a to 110p captures an area (imaging area) where an object is located from a plurality of viewpoints in a time-synchronized manner. The virtual viewpoint image is generated using the plurality of captured images obtained as a result and information on the designated virtual viewpoint.
[0012] The multiple imaging processing devices 110a-110p are arranged such that the imaging units 301 of each capture images of the imaging area from multiple positions. As shown in FIG. 1, the imaging area is, for example, a field 101 where sports such as soccer and baseball are played. Alternatively, the imaging area may be a stage of a venue where concerts and entertainment are held. In order to capture images of the field 101, which is such an imaging area, from multiple directions, the multiple imaging processing devices 110a-110p are installed at different positions so as to surround the field 101. Then, the imaging units 301 included in the imaging processing devices 110a-110p capture images of the field 101. Note that the number of the multiple imaging processing devices 110a-110p is not limited to the number shown in FIG. 1.
[0013] The imaging processing devices 110a to 110p are connected to an image processing device 130 via a network 120. The image processing device 130 is a device that generates a virtual viewpoint image. The virtual viewpoint input device 140 is a device that receives a virtual viewpoint designated by a user and outputs information of the received virtual viewpoint to the image processing device 130. The image display device 150 is a device that displays the generated virtual viewpoint image. The image processing device 130 is connected to the virtual viewpoint input device 140 and the image display device 150.
[0014] [Hardware configuration] Fig. 2 is a diagram for explaining an example of a hardware configuration of the image processing device 130. The image processing device 130 has a CPU 211, a ROM 212, a RAM 213, an auxiliary storage unit 214, a display I / F 215, an operation I / F 216, a communication unit 217, and a bus 218. Note that the imaging processing device 110 also has a hardware configuration similar to that of Fig. 2. In the following description, the image processing device 130 is replaced with the imaging processing device 110, and the hardware configuration of the imaging processing device 110 will be described.
[0015] The CPU 211 realizes each function of the image processing device 130 by controlling the entire image processing device 130 using computer programs and data stored in the ROM 212 or the RAM 213. The image processing device 130 may have one or more dedicated hardware different from the CPU 211, and at least a part of the processing by the CPU 211 may be executed by the dedicated hardware. Examples of the dedicated hardware include an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), and a DSP (Digital Signal Processor). The ROM 212 stores programs that do not require modification. The RAM 213 temporarily stores programs and data supplied from the auxiliary storage unit 214, and data supplied from the outside via the communication unit 217. The auxiliary storage unit 214 is composed of, for example, a hard disk drive, and stores various data such as image data and audio data.
[0016] The display interface (I / F) 215 is an interface for connecting to a display unit such as a liquid crystal display or an LED. The CPU 211 displays, on the display unit via the display I / F 215, a GUI (Graphical User Interface) or the like that allows a user to give instructions to the image processing device 130. In the case of the image processing device 130, for example, an image display device 150 is connected to the display I / F 215 as a display unit. The image display device 150 displays the generated virtual viewpoint image.
[0017] The operation interface (I / F) 216 is an interface for connecting to an operation unit which is a device operated by a user, such as a button switch, a keyboard, a mouse, a joystick, or a touch panel. In the case of the image processing device 130, for example, a virtual viewpoint input device 140 is connected to the operation I / F 216 as the operation unit, and information on a virtual viewpoint is input from the virtual viewpoint input device 140. The CPU 211 operates as a display control unit which controls the display unit, and an operation control unit which controls the operation unit. The operation unit and the display unit will be described as existing outside the image processing device 130, but at least one of the operation unit and the display unit may be present inside the image processing device 130.
[0018] The communication unit 217 is used for communication with an external device of the image processing device 130. For example, when connected to an external device by wire, a communication cable is connected to the communication unit 217. When the communication unit 217 has a function of wirelessly communicating with an external device, the communication unit 217 includes an antenna. The bus 218 connects each unit of the image processing device 130 to transmit information.
[0019] [Functional configuration of the imaging processing device] 3 is a block diagram showing an example of the functional configuration of the imaging processing device 110 and the image processing device 130. First, a description will be given of the functional configuration of the imaging processing device 110. Each imaging processing device 110 has an imaging unit 301 and an image processing unit 300.
[0020] The imaging unit 301 is an imaging device such as a digital video camera, and has an interface for outputting an image signal such as a serial digital interface (SDI). The imaging unit 301 captures an image of an imaging target to obtain a captured image. The captured image obtained by the imaging unit 301 is output to the image processing unit 300 via the image signal interface.
[0021] The image processing unit 300 has a foreground / background separation processing unit 302, a background image generation unit 303, a foreground information generation unit 304, a reference background light / shade information management unit 305, and a background light / shade difference information generation unit 306. Since the image processing unit 300 includes the functions of an image processing device, it can be said that the imaging processing device 110 is a device including an image processing device.
[0022] The foreground / background separation processing unit 302 extracts a foreground region and a background region from the captured image captured by the imaging unit 301, and generates a foreground image obtained by extracting the foreground region. Foreground / background separation processing unit 302 generates the foreground image by extracting, as the foreground region, a region where the difference in pixel values between the captured image captured by the imaging unit 301 and a background image generated by a background image generating unit 303 (described later) is equal to or greater than a predetermined value.
[0023] The foreground region refers to the region of a dynamic object (foreground) that is in motion (whose position or shape may change) when images are captured from the same direction in a time series. Foreground objects include, for example, people such as players and referees on the field where a sport is being played, or the ball if the sport is a ball game. Or, singers, musicians, performers, presenters, etc. in concerts and entertainment.
[0024] The background region refers to a region of an imaged object that remains stationary or nearly stationary when images are captured from the same direction in time series. Such imaged objects include, for example, stadiums where sports are played, concert venues, and structures and fields such as goals used in ball games. In other words, the background region is a region different from the foreground region in the captured image. The foreground / background separation processing unit 302 outputs an image of the background region with the foreground region removed from the captured image to the background image generation unit 303.
[0025] The background image generating unit 303 performs a process of taking in the images of the background region output from the foreground / background separation processing unit 302 in time series and sequentially updating the background images that do not include the foreground. Specifically, the background image generating unit 303 updates the pixel values of the region extracted as the background region this time in the background image generated immediately before with the pixel values of the image of the background region output from the foreground / background separation processing unit 302. In this way, a new background image is generated by updating the pixel values of the background region in the background image generated in advance. The background image generating unit 303 outputs the generated background image. In this way, the image captured by the imaging unit 301 included in the imaging processing device 110a to 110p of this embodiment is used to generate the foreground image. Furthermore, the background image is updated based on the image captured by the imaging unit 301. Therefore, in this embodiment, the background image is generated from the captured image for generating the foreground image, so there is no need to install an imaging device to generate the background image.
[0026] The foreground information generating unit 304 generates foreground information from the foreground image generated by the foreground / background separation processing unit 302. The foreground information is information that includes at least a foreground texture and a foreground mask image that indicates a foreground region.
[0027] The reference background brightness information management unit 305 stores and manages reference background brightness information, which is information on the reference brightness value of the background in the imaging range (field of view) of the imaging unit 301, in a storage unit. The reference brightness value is the brightness value in a state where there is no shadow. In this embodiment, a reference three-dimensional background model, which is a three-dimensional model of the background described later, is generated in advance, and the reference three-dimensional background model is colored in advance with a color in a state where there is no shadow. The reference background brightness information is generated, for example, by converting the color of the imaging range of the imaging unit 301 in the reference three-dimensional shape model into the color of brightness.
[0028] The background light-dark difference information generating unit 306 calculates the difference between the reference brightness value of the background represented by the reference background light-dark information managed by the reference background light-dark information managing unit 305 and the brightness value in the background image output from the background image generating unit 303 for each pixel. Then, it generates background light-dark difference information indicating the brightness difference value for each pixel. Details will be described later. The background light-dark difference information generating unit 306 also functions as an output unit, and outputs the background light-dark difference information to the image processing device 130.
[0029] The image processing device 130 includes a 3D foreground model generating unit 311 , a background lighting processing unit 312 , a reference 3D background model managing unit 313 , and a virtual viewpoint image generating unit 314 .
[0030] The three-dimensional foreground model generating unit 311 generates three-dimensional model data (also called three-dimensional shape data) representing the three-dimensional shape of the foreground using the foreground information output from the foreground information generating unit 304 of each of the imaging processing devices 110a to 110p. The three-dimensional shape data of the foreground object is called a three-dimensional foreground model or a foreground model. The three-dimensional foreground model generating unit 311 generates the three-dimensional foreground model using a foreground mask image based on, for example, a volume intersection method.
[0031] The reference three-dimensional background model management unit 313 records and manages a reference three-dimensional background model, which is a three-dimensional model of the background that has been generated in advance, in a storage unit. The reference three-dimensional background model is data that represents the three-dimensional shape of an object that serves as the background, such as a stadium 100 including a field 101. The three-dimensional model of the background is also called a three-dimensional background model or a background model. The reference three-dimensional background model is assumed to have been generated in advance using computer graphics, photogrammetry, or the like, by performing three-dimensional measurements in advance of a stadium or venue that serves as the background.
[0032] The reference 3D background model in this embodiment is colored in advance with a color in a state without shadows. In computer graphics, the reference 3D background model is colored with a color specified by the generator of the reference 3D background model. In hologrammetry, the reference 3D background model is colored by collecting and mapping textures of background without shadows. The color information of the reference 3D background model is held as a two-dimensional texture that is applied to the three-dimensional model.
[0033] The background brightness processing unit 312 acquires background brightness difference information output from the background brightness difference information generating unit 306. Then, the background brightness difference information is reflected in the color information of the reference 3D background model to generate a 3D background model in which brightness (shadow) is reflected. Details will be described later.
[0034] The virtual viewpoint image generation unit 314 generates a virtual viewpoint image based on the virtual viewpoint, using the three-dimensional foreground model generated by the three-dimensional foreground model generation unit 311 and the three-dimensional background model reflecting the shadow generated by the background lighting processing unit 312.
[0035] Each functional unit in the image processing unit 300 in Fig. 3 and each functional unit in the image processing device 130 are realized by the CPU of each device executing a predetermined program, but this is not limited to this. Other hardware such as a GPU (Graphics Processing Unit) or an FPGA (Field Programmable Gate Array) for accelerating calculations may also be used. Each functional unit may be realized by cooperation between software and hardware such as a dedicated IC, or some or all of the functions may be realized only by hardware.
[0036] [About reference background brightness information and brightness difference information] Fig. 4 is a diagram for explaining brightness information of the imaging range (field of view) of the imaging processing device 110k. The reference background brightness information managed by the reference background brightness information management unit 305 of the imaging processing device 110k will be explained with reference to Fig. 4. In addition, the generation of background brightness difference information for one frame performed by the background brightness difference information generation unit 306 of the imaging processing device 110k will be explained.
[0037] Fig. 4(a) is a simplified diagram showing the state of an actual stadium 100 at the time of imaging, including the field 101 imaged by each imaging unit 301 of the imaging processing devices 110a to 110p. The hatched area 401 in Fig. 4(a) represents the shadow of the roof of the main stand of the stadium 100.
[0038] 4(a) represents an imaging range 403 of the imaging section 301 included in the imaging processing device 110k. An imaging range 402 is an imaging range of the imaging section 301 of the imaging processing device 110j that has an imaging range that overlaps with the imaging range 403.
[0039] Fig. 4(b) shows background light / dark information of a background image extracted from a captured image captured by the imaging unit 301 included in the imaging processing device 110k. In Fig. 4(b), a gray area 411 represents an area corresponding to the shadow of the stadium 100 included in the imaging range 403. An area 412 other than the area 411 represents an area other than the shadow included in the imaging range 403.
[0040] The background light-dark information shown in FIG. 4(b) is an image in which the pixel value of each pixel in the background image is set as a brightness value. The brightness value is, for example, a gray value, which is a color value of a grayscale. For example, the background light-dark information is an image obtained by converting the color value of each pixel in the background image, which is a color value in the RGB color space, into a gray value. Note that the brightness value is not limited to the gray value. Alternatively, the brightness value may be a value obtained by weighting the gray value.
[0041] The brightness value of each pixel in the background light-dark information is a value corrected to be the same as a predetermined imaging condition. For example, the value is corrected to be a value based on an imaging condition in which the EV value is 12. Examples of imaging conditions in which the EV value is 12 include ISO 400, aperture value 5.6, and shutter speed 1 / 500.
[0042] In Fig. 4(b), it is assumed that the brightness values of the pixels in the shadow area 411 in the background image are uniformly set to a value of "50". In addition, it is assumed that the brightness values of the pixels in the area 412 in the background image are uniformly set to a value of "120".
[0043] 4(c) is a diagram showing a reference 3D background model of the stadium 100 managed by the reference 3D background model management unit 313. An area 421 is an area in the reference 3D background model that corresponds to the imaging range 403 of the imaging processing device 110k.
[0044] FIG. 4(d) is a diagram showing reference background brightness information corresponding to the imaging range 403 of the imaging processing device 110k. The reference background brightness information is an image representing the imaging range of the imaging unit 301, and holds a brightness value in a state where there is no shadow as the pixel value of each pixel. The reference background three-dimensional model is colored with a color in a state where there is no shadow. Therefore, the reference background brightness information can be obtained by converting the color value of the area 421 representing the imaging range of the imaging processing device 110k in the reference three-dimensional background model into a brightness value (e.g., gray value). In other words, the reference background brightness information of the imaging processing device 110k can be said to be the brightness value of an area corresponding to the imaging range of the imaging unit 301 of the imaging processing device 110k in the reference three-dimensional background model.
[0045] The following explanation will be given assuming that the brightness values of each pixel held in the entire image area 431 in the reference background light-dark information of FIG. 4(d) are uniformly set to the value "100" when the EV value is 12.
[0046] Fig. 4(e) is a diagram showing an image in which the pixel value is the difference value of the pixel value (brightness value) of each pixel between the most recent background brightness information of the imaging processing device 110k shown in Fig. 4(b) and the reference background brightness information of the imaging processing device 110k shown in Fig. 4(d). The image shown in Fig. 4(e) is called background brightness difference information. In other words, the background brightness difference information is an image in which a background brightness difference value, which is a difference value between the pixel value of a pixel of a background image whose pixel value has been converted to a brightness value and the pixel value of a corresponding pixel in the reference background brightness information, is calculated, and the background brightness difference value is used as the pixel value. In this way, the background brightness difference information of each of the imaging processing devices 110a to 110p is generated in units of a predetermined frame.
[0047] 4(e), the background brightness difference value which is the pixel value of region 441 in the background brightness difference information is calculated as "50-100"="-50" by subtracting the pixel value "100" of region 431 of the reference background brightness information from the pixel value "50" of region 411 of the background brightness information. Also, the background brightness difference value which is the pixel value of region 442 is calculated as "120-100"="+20" by subtracting the pixel value "100" of region 431 of the reference background brightness information from the pixel value "120" of region 412 of the background brightness information. As a result, the background brightness difference information is generated as grayscale bitmap data corresponding to the background image, having pixel values of -128 to +127 (background brightness difference values).
[0048] [Generating background brightness difference information] Fig. 5 is a flowchart for explaining the flow of processing for generating background light-dark difference information shown in Fig. 4(e). The flowchart in Fig. 5 shows processing performed in any one of the imaging processing devices 110a to 110p. The flowchart in Fig. 5 is performed in parallel in each of the imaging processing devices 110a to 110p.
[0049] The series of processes shown in the flowchart of Fig. 5 are performed by the CPU of the imaging processing device 110 expanding the program code stored in the ROM into the RAM and executing it. Also, some or all of the functions of the steps in Fig. 5 may be realized by hardware such as ASIC or electronic circuits. Note that the symbol "S" in the explanation of each process indicates a step in the flowchart, and the same applies to the subsequent flowcharts.
[0050] In S501, the background brightness difference information generating unit 306 reads out reference background brightness information. For example, when the flowchart of Fig. 5 is performed by the imaging processing device 110k, reference background brightness information holding the brightness value of the background in a state without shadows shown in Fig. 4(d) is read out. The following processes of S502 to S504 are processes corresponding to the frame to be processed.
[0051] In S502, the background light-dark difference information generating unit 306 reads and acquires the background image that the background image generating unit 303 has updated based on the captured image of the frame to be processed.
[0052] In S503, the background light-dark difference information generating unit 306 generates background light-dark difference information. In S503, first, the pixel value of each pixel of the background image acquired in S502 is converted into a brightness value. Then, the converted brightness value is corrected so as to be equal to the reference EV value. In this way, the background light-dark difference information generating unit 306 generates new background light-dark information. When the flowchart of FIG. 4 is performed by the imaging processing device 110k, the image shown in FIG. 4(b) is generated as background light-dark information.
[0053] Then, the background brightness difference information generating unit 306 calculates a background brightness difference value, which is the difference between the brightness value of each pixel in the background brightness information and the brightness value of each pixel in the reference background brightness information obtained in S501, to generate background brightness difference information representing the background brightness difference value of each pixel. For example, when the flowchart of Fig. 5 is performed by the imaging processing device 110k, the image shown in Fig. 4(e) is generated as background brightness difference information.
[0054] In S504, the background light-shade difference information generating unit 306 outputs the generated background light-shade difference information to the image processing device 130. As described above, S502 to S503 related to the frame to be processed are performed in parallel in each of the imaging processing devices 110a to 110p. Therefore, background light-shade difference information corresponding to each of the imaging processing devices 110a to 110p in the frame to be processed is input to the image processing device 130.
[0055] In S505, the background light and dark difference information generating unit 306 determines whether the next frame needs to be processed. If the background light and dark difference information generating unit 306 determines that the next frame needs to be processed (YES in S505), the process returns to S502 to generate background light and dark difference information for the next frame. If a virtual viewpoint image of a moving image is to be generated, the processes of S502 to S504 in FIG. 5 are repeated to generate background light and dark difference information for generating a virtual viewpoint image of a moving image made up of a plurality of frames. If the background light and dark difference information generating unit 306 determines that there is no next frame (NO in S505), the process of this flowchart ends.
[0056] [3D background model generation process flow] Fig. 6 is a flowchart for explaining the flow of a process for generating a three-dimensional background model in which a shadow is reflected. A series of processes shown in the flowchart of Fig. 6 is performed by the CPU of the image processing device 130 expanding program codes stored in the ROM into the RAM and executing them. In addition, some or all of the functions of the steps in Fig. 6 may be realized by hardware such as ASIC or electronic circuits.
[0057] In S601, the background light-shade processor 312 reads out a reference background three-dimensional model. The following processes in S602 to S606 are performed on a frame-by-frame basis.
[0058] In S602, the background brightness processing unit 312 selects background difference information to be processed from among the background brightness difference information of the processing target frame acquired from each of the imaging processing devices 110a to 110p. Then, the processing of S603 is performed on the background difference information to be processed. When the processing on the background difference information to be processed is completed, unprocessed background difference information is again selected from among the background brightness difference information of the processing target frame acquired from each of the imaging processing devices 110a to 110p. When there is no unprocessed background difference information in S604, the process proceeds to S605.
[0059] In S603, the background brightness processing unit 312 performs a merging process of the background brightness difference information of the processing target. In the merging process, background difference information of the processing target frame generated from the captured image of the imaging unit 301 having an imaging range that overlaps with the imaging range (field of view) corresponding to the background difference information of the processing target is acquired. Then, the background brightness difference information of the processing target and the acquired background brightness difference information are synthesized, and converted into data of a region required for reflecting on the reference 3D background model.
[0060] Fig. 7 is a diagram for explaining the merge process. The background brightness difference information 712 in Fig. 7(a) is background brightness difference information output from the imaging processing device 110k, and represents background brightness difference information to be processed. The background brightness difference information 711 is background brightness difference information output from the imaging processing device 110j, and represents background brightness difference information acquired for the merge process. That is, the background brightness difference information 711 represents background difference information having a portion where the imaging range overlaps with the background brightness difference information 712.
[0061] When combining two pieces of background difference information, there may be differences in the pixel values (brightness values) of pixels that represent the same location in the imaging range. For this reason, the pixel values of the pixels that represent the same location in the imaging range are normalized to become the pixel values of the combined background light-dark difference information. By performing the merging process, the values of the overlapping parts are normalized, so that it is possible to prevent the brightness from becoming mottled in the three-dimensional background model.
[0062] In S604, the background light-shade processing unit 312 judges whether or not the merging process is completed for all background light-shade difference information of the frames to be processed output from the imaging processing devices 110a to 110p. When the background light-shade processing unit 312 judges that the process is not completed for all background light-shade difference information (NO in S604), the process returns to S602. Then, S602 to S603 are repeated until the process is completed for all background light-shade difference information.
[0063] When the background light-shade processor 312 determines that the processing for all background light-shade difference information has been completed (YES in S604), the process proceeds to S605. When the merging process for all background light-shade difference information is completed, a two-dimensional grayscale image including the entire stadium 100 and having pixel values ranging from -128 to +127 is obtained as the merged background light-shade difference information.
[0064] In S605, the background brightness processing unit 312 reflects the merged background brightness difference information in the color information of the reference 3D background model to generate a 3D background model colored to reflect the brightness (shadow) at the time of capturing the frame to be processed. Fig. 7(b) is a diagram showing a reference 3D background model 701. Fig. 7(c) shows the state where the two merged background brightness difference information 711 and 712 are reflected in the reference 3D background model 701.
[0065] For example, if the reference three-dimensional background model is colored with color values in the RGB color space, in S605, the color information of the reference three-dimensional background model is converted from the color values in the RGB color space to color values in a color space including luminance. Then, the luminance value of the converted color value is added or subtracted by the corresponding background luminance difference value of the background luminance difference information, thereby reflecting the background luminance difference information in the color information of the reference three-dimensional background model. Also, if the color information of the reference three-dimensional background model is held as a two-dimensional texture, the merged background luminance difference information (two-dimensional grayscale image) is reflected in the two-dimensional texture. In this way, the background difference information is reflected in the reference three-dimensional background model, and a three-dimensional background model in which a shadow is reflected is generated.
[0066] In S606, the background light-shade processing unit 312 outputs to the virtual viewpoint image generating unit 314 the generated three-dimensional background model in which the shadow of the processing target frame is reflected.
[0067] The processes of S602 to S606 are repeated for each frame. If the background light-shade processing unit 312 determines in S607 that there is a next frame (YES in S607), the process returns to S602. If the background light-shade processing unit 312 determines that there is no next frame (NO in S607), the process of this flowchart ends.
[0068] The virtual viewpoint image generating unit 314 of this embodiment generates a virtual viewpoint image of a processing target frame by using a three-dimensional background model reflecting a shadow and a three-dimensional foreground model. Specifically, the virtual viewpoint image generating unit 314 maps a foreground texture included in the foreground information onto the three-dimensional foreground model. Then, the virtual viewpoint image generating unit 314 generates a virtual viewpoint image by rendering the colored three-dimensional foreground model and the colored three-dimensional background model reflecting a shadow according to the virtual viewpoint of the processing target frame.
[0069] In the above description, the process of reflecting the background brightness difference information corresponding to the frame to be processed in the reference 3D background model is performed for each frame. Alternatively, a moving average of the background brightness difference information for multiple frames may be calculated, and the information obtained as a result may be reflected in the reference 3D background model over multiple frames.
[0070] As described above, according to this embodiment, even when a virtual viewpoint image is generated using a three-dimensional background model generated in advance by computer graphics or the like, the actual brightness and the shadow of a building reflected in the background can be reflected in the virtual viewpoint image. For example, the shadow of a cloud that suddenly appears against a background generated by computer graphics or the like can be added in real time. Therefore, a virtual viewpoint image with less unnaturalness can be generated by aligning the brightness of the foreground and background.
[0071] <Second embodiment> In the first embodiment, a method for generating background light-dark difference information is described using a background image updated by the background image generation unit 303. In the present embodiment, a method for generating background light-dark difference information is described using a captured image output from the imaging unit 301 and a foreground mask image.
[0072] 8 is a block diagram showing the functional configuration of the imaging processing device 110 and the like in this embodiment. The same functional units as those in the first embodiment are given the same reference symbols and will not be described. A background brightness difference information generation unit 811 generates background brightness difference information using reference background brightness information output from the reference background brightness information management unit 305, the captured image output from the imaging unit 301, and the foreground mask image output from the foreground information generation unit 304.
[0073] FIG. 9 is a diagram showing an example of foreground information output from foreground information generating unit 304. As described above, the foreground information includes a foreground texture and a foreground mask image. FIG. 9(a) is a diagram showing an example of a foreground texture. FIG. 9(b) is a diagram showing an example of a foreground mask image. The foreground mask image is a binary image that represents a foreground region in a captured image as a white region and a background region other than the foreground as a black region. By using the foreground mask image, it is possible to identify the region in the captured image where a foreground object is located.
[0074] Fig. 10 is a flowchart for explaining the flow of processing for generating background light-dark difference information according to the present embodiment. The flowchart in Fig. 10 shows the processing performed in any one of the imaging processing devices 110a to 110p, similarly to Fig. 5.
[0075] S1001 is a process similar to S501, and the background light-dark difference information generating unit 811 acquires the reference background light-dark information managed by the reference background light-dark information managing unit 305.
[0076] In S1002, the background light-dark difference information generating unit 811 acquires a captured image of a frame to be processed that is captured by the imaging unit 301.
[0077] In S1003, the background light-dark difference information generating unit 811 acquires a foreground mask image generated from the captured image acquired in S1002.
[0078] In S1004, the background brightness difference information generating unit 811 converts pixel values of the captured image into brightness values. Then, the brightness difference value for each pixel is calculated by calculating the difference value between the brightness value of the captured image and the brightness value indicated by the reference background brightness information for each pixel. At this time, the background brightness difference information generating unit 811 sets the brightness difference value in the foreground region indicated by the foreground mask image as "invalid". Then, as the brightness difference value of the invalidated region, for example, the brightness difference value of the corresponding region in the background brightness difference information of the previous frame is used to generate background brightness difference information. By invalidating the brightness difference value of the foreground region in this way, the presence of the foreground is prevented from affecting the background brightness difference information. In this embodiment, the captured image, the reference background brightness information, and the foreground mask image are used to generate background brightness difference information of the frame to be processed.
[0079] S1005 is the same process as S504, and the background light-shade difference information generating unit 811 outputs the generated background light-shade difference information to the image processing device 130. The processes of S1002 to S1005 are repeated for each frame.
[0080] S1006 is the same process as S505, and if the background light-dark difference information generation unit 811 determines that the next frame needs to be processed (YES in S1006), the process returns to S1002. If the background light-dark difference information generation unit 811 determines that there is no next frame (NO in S1006), the process of this flowchart ends.
[0081] As described above, according to this embodiment, background light-dark difference information can be generated using a captured image. Therefore, it is possible to generate background light-dark difference information at an image capture cycle by the image capture unit 301, for example, at a cycle of 60 frames per second. Therefore, the actual brightness and the shadow of a building reflected in the background can be reflected in the virtual viewpoint image with low delay.
[0082] <Third embodiment> In the above embodiment, the background light-dark difference information is described as grayscale bitmap data. In the present embodiment, a method for generating the background light-dark difference information as information including position information of a shadow area and a representative value of brightness will be described.
[0083] 11 is a block diagram showing the functional configuration of the imaging processing device 110 and the like in this embodiment. The same functional units as those in the first embodiment are given the same reference numerals and the description thereof will be omitted. The shadow region identification unit 1111 identifies a shadow region in the captured image or background image by using the reference background light-shade information output from the reference background light-shade information management unit 305 and the background image output from the background image generation unit 303. For example, the shadow region is identified as a region where the background light-shade difference value, which is the difference value between the brightness value of the background image and the brightness value indicated by the reference background light-shade information, is equal to or less than a threshold value.
[0084] The representative value determination unit 1112 determines a representative value of the background brightness difference value in the shadow region. The representative value is determined to be the average value, median value, intermediate value, or the like of the background brightness difference value in the region determined as the shadow region. The representative value determination unit 1112 then transmits the position information of the shadow region and the representative value to the image processing device 130 as background brightness difference information.
[0085] In this embodiment, in S603 of FIG. 6, the representative values of the shadow regions output from the respective imaging processing devices 110a to 110p are normalized to correct the difference between the representative values.
[0086] 6, the background brightness processor 312 identifies the shadow region in the reference 3D background model based on the position information of the shadow region included in the background brightness difference information. The background brightness processor 312 then adds or subtracts the luminance value of the shadow region in the reference 3D background model based on the representative value included in the background brightness difference information, so that the shadow is reflected in the color information of the reference 3D background model.
[0087] As described above, according to this embodiment, the background light-dark difference information is information including position information of the shadow area and a representative value of the background light-dark difference value, so that the amount of data transmitted to the image processing device 130 can be reduced.
[0088] <Other embodiments> In the above-described embodiment, a method of outputting background brightness difference information directly from the imaging processing device 110 to the image processing device 130 has been described. Alternatively, the background brightness difference information generating unit 306 may reduce the amount of data of the background brightness difference information by reducing or compressing it before outputting it to the image processing device 130. The background brightness difference information is not texture data, but is, for example, grayscale brightness information. Therefore, even if the background difference information that has become rough information by compression is reflected in the reference three-dimensional background model and a virtual viewpoint image is generated using the resulting three-dimensional background model, the quality of the virtual viewpoint image is unlikely to be impaired. Therefore, by reducing or compressing the background brightness difference information, the amount of data can be reduced while suppressing the influence on the virtual viewpoint image.
[0089] In the above-described embodiment, it has been described that background brightness difference information is output from all the imaging processing devices 110a to 110p, and the image processing device 130 generates a three-dimensional background model in which a shadow is reflected using the background brightness difference information of all the imaging processing devices 110a to 110p. Also, it has been described that the background brightness difference information generated by the imaging processing devices 110a to 110p is information of all areas in the imaging range of each imaging unit 301. Alternatively, only background brightness difference information required to reflect a shadow in a virtual viewpoint image may be output, and only background brightness difference information required to reflect a shadow in a virtual viewpoint image may be used in the image processing device 130. In this case, the amount of data to be transmitted can be reduced.
[0090] For example, only the imaging processing devices necessary for generating a virtual viewpoint image among the imaging processing devices 110a to 110p may output background brightness difference information or background brightness information to the image processing device 130. For example, only the imaging processing device including the imaging unit 301 that captured an image including a foreground may output background brightness difference information or background brightness information to the image processing device 130. In addition, the background brightness processing unit 312 of the image processing device 130 may reflect a shadow on the reference three-dimensional background model using only background brightness difference information or background brightness information of a part of the imaging processing devices 110a to 110p. In addition, the background brightness difference information generated by the imaging processing devices 110a to 110p may be background difference information of an area necessary for generating a virtual viewpoint image, and for example, the background brightness difference information may be information of brightness difference values of a part of an area of the imaging range of the imaging unit 301.
[0091] In the above-described embodiment, the generation process of the background light-dark difference information has been described as being performed by each of the imaging processing devices 110a to 110p, but the generation process of the background light-dark difference information may be performed by the image processing device 130. In addition, the devices in which the functions of each unit shown in FIG. 3, FIG. 8, and FIG. 11 are realized are not limited. For example, the image processing device 130 may have all of the functions of the image processing unit 300 of the imaging processing device 110. For example, the imaging processing devices 110a to 110p may output background light-dark information, which is information on the brightness value of the captured image or information on the brightness value of the background image, to the image processing device 130. Then, the image processing device 130 may correct the color information of the reference three-dimensional background model based on the information on the brightness value of the captured image or the information on the brightness value of the background image. For example, the image processing device 130 may generate background light-dark difference information based on the information on the brightness value of the captured image or the information on the brightness value of the background image, and correct the color information by reflecting the generated background light-dark difference information in the color information of the reference three-dimensional background model.
[0092] The object of the present disclosure can also be achieved, for example, by supplying a storage medium on which a computer program code that realizes the above-mentioned functions is recorded to a system, and the system reads and executes the computer program code. In this case, the computer program code itself read from the storage medium realizes the functions of the above-mentioned embodiments, and the storage medium storing the computer program code constitutes the technology of the present disclosure. Also included is a case where an operating system (OS) running on a computer performs part or all of the actual processing based on the instructions of the program code, and the above-mentioned functions are realized by that processing.
[0093] The object of the present disclosure may be realized in the following form: A computer program code read from a storage medium is written to a memory provided in a function expansion card inserted into a computer or a function expansion unit connected to a computer. Then, based on instructions in the computer program code, a CPU or the like provided in the function expansion card or function expansion unit performs some or all of the actual processing to realize the above-mentioned functions.
[0094] When the technology of the present disclosure is applied to the above-mentioned storage medium, the storage medium stores computer program code corresponding to the flowchart described above.
[0095] The present disclosure can also be realized by a process in which a program for implementing one or more functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. It can also be realized by a circuit (e.g., ASIC) that implements one or more functions.
[0096] The disclosure of the above-described embodiment includes the following configurations.
[0097] (Configuration 1) an acquisition means for acquiring information regarding a brightness value of either images captured by a plurality of image capturing devices for generating a foreground image or a background image generated from the captured images; a processing means for correcting color information of the background three-dimensional shape data based on the brightness value; a generating means for generating a virtual viewpoint image by using the three-dimensional shape data colored with the corrected color information; 13. An image processing device comprising:
[0098] (Configuration 2) The processing means includes: The color information is corrected by reflecting difference information indicating a difference value between a brightness value of either the captured image or the background image and a brightness value of an area in the three-dimensional shape data corresponding to an imaging range of the imaging device in the color information of the three-dimensional shape data. 2. The image processing device according to claim 1,
[0099] (Configuration 3) The acquisition means includes: The information on the brightness value is obtained for each of the imaging devices that captures the foreground image among the plurality of imaging devices. 2. The image processing device according to claim 1,
[0100] (Configuration 4) The generating means includes: The virtual viewpoint image in which the shadow of the background is reflected is generated using the three-dimensional shape data colored with the modified color information. 4. The image processing device according to any one of configurations 1 to 3.
[0101] (Configuration 5) The color information is information about the color of the background when there is no shadow. 5. The image processing device according to any one of configurations 1 to 4.
[0102] (Configuration 6) The brightness value in the three-dimensional shape data is the brightness value of the background in a state where there is no shadow. 3. The image processing device according to configuration 2.
[0103] (Configuration 7) The background image is an image obtained by updating pixel values of the background area in a pre-generated image corresponding to the background image with pixel values of the background area in the captured image. 7. The image processing device according to any one of configurations 1 to 6,
[0104] (Configuration 8) The background image is an image used in a process for separating a background region and a foreground region from the captured image. 8. The image processing device according to any one of configurations 1 to 7,
[0105] (Configuration 9) The difference information includes position information of a shadow area in the captured image or the background image and a representative value of the difference values in the shadow area. 3. The image processing device according to configuration 2.
[0106] (Configuration 10) The difference information is bitmap data in which the pixel value of each pixel represents the difference value. 3. The image processing device according to configuration 2.
[0107] (Configuration 11) the information regarding the brightness value is the difference information, The acquiring means acquires the compressed difference information. 3. The image processing device according to configuration 2.
[0108] (Configuration 12) The plurality of imaging devices are some of imaging devices that perform imaging in a synchronized manner. 12. The image processing device according to any one of configurations 1 to 11,
[0109] (Configuration 13) The difference information is information indicating the difference value of pixels in a partial area in the imaging range. 11. The image processing device according to configuration 10.
[0110] (Configuration 14) The brightness value is the gray value of the gray scale. 14. The image processing device according to any one of configurations 1 to 13,
[0111] (Configuration 15) The three-dimensional shape data is generated in advance, and the device further includes a management unit for managing the three-dimensional shape data generated in advance. 15. The image processing device according to any one of configurations 1 to 14.
[0112] (Configuration 16) an acquisition means for acquiring an image captured by an imaging device for generating a foreground image or a background image generated from the captured image; a management means for managing a brightness value of an area in the three-dimensional shape data of a background corresponding to an imaging range of the imaging device; a generating means for generating difference information indicating a difference value between a brightness value of either the captured image or the background image and a brightness value of the region; an output means for outputting the difference information for generating a virtual viewpoint image in which the shadow of the background is reflected; 13. An image processing device comprising:
[0113] (Configuration 17) the difference information is information indicating the difference value of each pixel, The generating means includes: When the brightness value of the captured image is used, the difference value corresponding to a pixel in a foreground area in the captured image is invalidated to generate the difference information. 17. The image processing device according to claim 16,
[0114] (Configuration 18) The generating means includes: Identifying the foreground region in the captured image using the foreground image generated by extracting the foreground region from the captured image. 18. The image processing device according to claim 17,
[0115] (Configuration 19) 19. An image processing system comprising: each means of the image processing device according to configuration 2; and each means of the image processing device according to any one of configurations 16 to 18.
[0116] (Configuration 20) an acquisition step of acquiring information regarding a brightness value of either images captured by a plurality of image capturing devices for generating a foreground image or a background image generated from the captured images; a processing step of correcting color information of the background three-dimensional shape data based on the brightness value; A generating step of generating a virtual viewpoint image using the three-dimensional shape data colored with the modified color information; 13. An image processing method comprising:
[0117] (Configuration 21) A program for causing a computer to execute each of the means of the image processing device according to any one of configurations 1 to 18. [Explanation of symbols]
[0118] 300 Image processing section 305 Standard background brightness information management section 306 Background brightness difference information generation unit
Claims
1. an acquisition means for acquiring information regarding a brightness value of either images captured by a plurality of image capturing devices for generating a foreground image or a background image generated from the captured images; a processing means for correcting color information of the background three-dimensional shape data based on the brightness value; a generating means for generating a virtual viewpoint image by using the three-dimensional shape data colored with the corrected color information; 13. An image processing device comprising:
2. The processing means includes: The color information is corrected by reflecting difference information indicating a difference value between a brightness value of either the captured image or the background image and a brightness value of an area in the three-dimensional shape data corresponding to an imaging range of the imaging device in the color information of the three-dimensional shape data.
2. The image processing device according to claim 1,
3. The acquisition means includes: The information on the brightness value is obtained for each of the imaging devices that captures the foreground image among the plurality of imaging devices.
2. The image processing device according to claim 1,
4. The generating means includes: The virtual viewpoint image in which the shadow of the background is reflected is generated using the three-dimensional shape data colored with the modified color information.
2. The image processing device according to claim 1,
5. The color information is information about the color of the background when there is no shadow.
2. The image processing device according to claim 1,
6. The brightness value in the three-dimensional shape data is the brightness value of the background in a state where there is no shadow.
3. The image processing device according to claim 2.
7. The background image is an image obtained by updating pixel values of the background area in a pre-generated image corresponding to the background image with pixel values of the background area in the captured image.
2. The image processing device according to claim 1,
8. The background image is an image used in a process for separating a background region and a foreground region from the captured image.
2. The image processing device according to claim 1,
9. The difference information includes position information of a shadow area in the captured image or the background image and a representative value of the difference values in the shadow area.
3. The image processing device according to claim 2.
10. The difference information is bitmap data in which the pixel value of each pixel represents the difference value.
3. The image processing device according to claim 2.
11. the information regarding the brightness value is the difference information, The acquiring means acquires the compressed difference information.
3. The image processing device according to claim 2.
12. The plurality of imaging devices are some of imaging devices that perform imaging in a synchronized manner.
2. The image processing device according to claim 1,
13. The difference information is information indicating the difference value of pixels in a partial area in the imaging range. The image processing device according to claim 10 .
14. The brightness value is the gray value of the gray scale.
2. The image processing device according to claim 1,
15. The three-dimensional shape data is generated in advance, and the device further includes a management unit for managing the three-dimensional shape data generated in advance.
2. The image processing device according to claim 1,
16. an acquisition means for acquiring an image captured by an imaging device for generating a foreground image or a background image generated from the captured image; a management means for managing a brightness value of an area in the three-dimensional shape data of a background corresponding to an imaging range of the imaging device; a generating means for generating difference information indicating a difference value between a brightness value of either the captured image or the background image and a brightness value of the region; an output means for outputting the difference information for generating a virtual viewpoint image in which the shadow of the background is reflected; 13. An image processing device comprising:
17. the difference information is information indicating the difference value of each pixel, The generating means includes: When the brightness value of the captured image is used, the difference value corresponding to a pixel in a foreground area in the captured image is invalidated to generate the difference information.
17. The image processing device according to claim 16,
18. The generating means includes: Identifying the foreground region in the captured image using the foreground image generated by extracting the foreground region from the captured image.
18. The image processing device according to claim 17,
19. 17. An image processing system comprising: each unit of the image processing device according to claim 2; and each unit of the image processing device according to claim 16.
20. an acquisition step of acquiring information regarding a brightness value of either images captured by a plurality of image capturing devices for generating a foreground image or a background image generated from the captured images; a processing step of correcting color information of the background three-dimensional shape data based on the brightness value; A generating step of generating a virtual viewpoint image using the three-dimensional shape data colored with the modified color information; 13. An image processing method comprising:
21. A program for causing a computer to execute each of the means of the image processing device according to any one of claims 1 to 18.
Citation Information
Patent Citations
Image processing system
JP2020191598A
