Image processing apparatus, image processing method, and program

The image processing device addresses focus shift-induced quality degradation in virtual viewpoint images by determining characteristic regions, calculating focus evaluation values, and adjusting the focus lens to maintain image quality.

JP2024119395AInactive Publication Date: 2024-09-03CANON KK

Patent Information

Application Number
JP2023026265
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-22
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing image processing systems face a decrease in virtual viewpoint image quality due to camera focus shifts, which are not effectively addressed by current technologies that rely on 3D shape data comparison.

Method used

An image processing device that determines characteristic regions in captured images, calculates evaluation values for focus, and adjusts the focus lens position to maintain image quality by returning to the focus state at the time of past shooting.

Benefits of technology

The solution effectively suppresses image quality deterioration in virtual viewpoint images by detecting and correcting focus shifts, ensuring high-quality image generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024119395000001
    Figure 2024119395000001
Patent Text Reader

Abstract

To prevent a reduction in the image quality of a virtual viewpoint image caused by displacement of focus.SOLUTION: An image processing apparatus has: determination means that determines a feature area on the basis of a first photographed image photographed by an imaging apparatus used for creation of a virtual viewpoint image and recorded in recording means; first evaluation value acquisition means that acquires a first evaluation value in the feature area of the first photographed image; second evaluation value acquisition means that acquires a second evaluation value in a feature area of a second photographed image photographed by the imaging apparatus and different from the first photographed image; and detection means that detects displacement of focus on the basis of the first evaluation value and the second evaluation value.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

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

[0002] A technique has been proposed in which a subject or the like is photographed synchronously from multiple directions by multiple cameras installed at different positions, and a virtual viewpoint image is generated using the multiple photographed images obtained by the photographing. The virtual viewpoint image generated in this manner is an image that represents an appearance from a virtual viewpoint that is not limited to the installation positions of the cameras.

[0003] A virtual viewpoint image is generated by extracting a moving subject from a captured image as the foreground, reconstructing (modeling) the subject in a three-dimensional space (3D space) using foreground data from multiple cameras, and then capturing (rendering) it with a virtual camera. One method for extracting the foreground from a captured image is the background subtraction method. The background subtraction method is a technique in which an image without moving objects (background image) is generated in advance, and the area in the captured image where the brightness difference with the background image is equal to or greater than a threshold is extracted as the moving object (foreground).

[0004] Since a virtual viewpoint image is generated using foreground data from multiple cameras, a deterioration in the quality of an image captured by one camera leads to a deterioration in the quality of the virtual viewpoint image. One of the factors that can cause a deterioration in the quality of a captured image is a shift in camera focus. When generating a background image, the focus of each camera is accurately adjusted, and the image is captured while maintaining that adjustment state. However, the focus of the camera may shift due to movement of the focus lens caused by physical contact with the camera or changes in lens shape caused by temperature changes. In this case, if a virtual viewpoint image is generated using an image captured by that camera, a partially out-of-focus image is used, which reduces the quality of the virtual viewpoint image.

[0005] Patent Document 1 discloses a technology that compares an image projected onto the viewpoint of an imaging device using past three-dimensional shape data with an image captured by a current imaging device, and detects whether the state of the imaging device is different from that at a past point in time. [Prior art documents] [Patent documents]

[0006] [Patent Document 1] Patent Publication No. 2021-16081 Summary of the Invention [Problem to be solved by the invention]

[0007] The technology of Patent Document 1 can detect that the state of the imaging device is different from the past, and can also detect when the focus has changed. However, the technology of Patent Document 1 uses three-dimensional shape data to compare images, so that, for example, when there is no subject corresponding to the three-dimensional shape data, it cannot detect that the state of the imaging device is different from the past. The present disclosure aims to suppress deterioration of the image quality of a virtual viewpoint image caused by a shift in the camera focus. [Means for solving the problem]

[0008] The image processing device of the present disclosure is characterized by having a determination means for determining a characteristic area based on a first captured image captured by an imaging device used to generate a virtual viewpoint image and recorded in a recording means, a first evaluation value acquisition means for acquiring a first evaluation value in the characteristic area of ​​the first captured image, a second evaluation value acquisition means for acquiring a second evaluation value in the characteristic area of ​​a second captured image different from the first captured image captured by the imaging device, and a detection means for detecting focus shift based on the first evaluation value and the second evaluation value. Effect of the Invention

[0009] According to the present disclosure, it is possible to suppress degradation in image quality of a virtual viewpoint image. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 illustrates an example of a system configuration. [Diagram 2] FIG. 1 is a diagram showing an example of camera arrangement. [Diagram 3] 1 is a diagram illustrating an example of a hardware configuration of an image generating apparatus according to a first embodiment. [Figure 4] 1 is a diagram illustrating an example of a functional configuration of an image generating apparatus according to a first embodiment. [Diagram 5] 13 is a flowchart illustrating an example of a control process related to focus. [Figure 6] 11A and 11B are diagrams illustrating a process of determining a characteristic region. [Figure 7] 13 is a flowchart illustrating an example of a focus adjustment process. [Figure 8] FIG. 11 is a diagram illustrating an example of a functional configuration of an image generating apparatus according to a second embodiment. [Figure 9] FIG. 11 is a diagram illustrating an example of a functional configuration of an image generating device according to a third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, the present embodiment will be described with reference to the drawings.

[0012] <Embodiment 1> In this embodiment, an example will be described in which, in an image processing system for generating a virtual viewpoint image, when the camera goes out of focus, the focus lens position is adjusted so as to return to the focus state at the time of previous shooting. This makes it possible to prevent degradation of the image quality of the virtual viewpoint image due to the camera going out of focus.

[0013] 1 is a diagram showing an example of the configuration of an image processing system 10 that generates a virtual viewpoint image in this embodiment. The image processing system 10 includes a camera group 100 having a plurality of cameras (imaging devices) 101-110, a hub 210 connected to the cameras 101-110 and an image generation device 220, and the image generation device 220 that generates a virtual viewpoint image. The image generation device 220 is connected so as to be able to communicate with the cameras 101-110 of the camera group 100 via the hub 210. The image processing system 10 also includes a display device 230 that displays the virtual viewpoint image generated by the image generation device 220, and a UI (User Interface) unit 240 for operating the image generation device 220.

[0014] The configuration of the image processing system 10 is not limited to that shown in Fig. 1. The multiple cameras 101 to 110 included in the camera group 100 may be directly connected to the image generating device 220, or the cameras may be connected to each other in a daisy chain. The image generating device 220 may be composed of multiple devices. Also, the image generating device 220 may have a UI unit 240 inside. The devices included in the image processing system 10 may be connected by wire or wirelessly.

[0015] FIG. 2 is a diagram showing an example of the arrangement of the cameras 101 to 110 of the camera group 100. The cameras 101 to 110 are arranged, for example, so as to surround the shooting area 200 to be shot, and each takes a shot image from a different direction to generate a virtual viewpoint image. Each of the cameras 101 to 110 included in the camera group 100 is, for example, a digital camera, and may be a camera that takes a still image, a camera that takes a moving image, or a camera that takes both a still image and a moving image. In this embodiment, the term "image" will be described as including a still image and a moving image unless otherwise specified. In this embodiment, the imaging unit having an imaging sensor and a lens that collects light rays on the imaging sensor are collectively called a camera. The image processing system 10 generates a virtual viewpoint image in the shooting area 200 using a plurality of shot images taken by the cameras 101 to 110 of the camera group 100. The number of cameras included in the camera group 100 is not limited to 10, and it is sufficient that the camera group 100 includes a plurality of cameras. Furthermore, the camera group 100 does not have to surround the shooting area 200 from all directions.

[0016] In the image processing system 10 of this embodiment, images captured by the cameras 101 to 110 of the camera group 100 are sent to the image generating device 220 via the hub 210. The image generating device 220 generates a virtual viewpoint image according to the position and direction of the virtual viewpoint set via a UI unit 240 operated by a user who views the virtual viewpoint image. The UI unit 240 has an operation unit such as a mouse, a keyboard, an operation button, a touch panel, etc., and accepts operations by the user.

[0017] The image generating device 220 reconstructs (models) the subject in a 3D space using the captured images acquired from the camera group 100. The image generating device 220 then generates a virtual viewpoint image that represents the appearance from the virtual viewpoint by rendering the shape data (3D model) generated by modeling according to the position and direction of the set virtual viewpoint. The virtual viewpoint image in this embodiment includes an arbitrary viewpoint image (free viewpoint image) corresponding to a viewpoint arbitrarily specified by the user. In addition, the virtual viewpoint image also includes an image corresponding to a viewpoint specified by the user from multiple candidates and an image corresponding to a viewpoint automatically specified by the device. The display device 230 acquires and displays the virtual viewpoint image generated by the image generating device 220.

[0018] 3 is a diagram showing an example of the hardware configuration of the image generating device 220 according to this embodiment. The image generating device 220 includes a CPU 2201, a ROM 2202, a RAM 2203, an auxiliary storage device 2204, a communication I / F 2205, and a bus 2206.

[0019] A CPU (Central Processing Unit) 2201 controls the entire image generating device 220 using computer programs and data stored in a ROM 2202 and a RAM 2203. The image generating device 220 may have one or more dedicated hardware devices different from the CPU 2201, and at least a part of the processing by the CPU 2201 may be executed by the dedicated hardware devices. Examples of the dedicated hardware devices include an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), and a DSP (Digital Signal Processor).

[0020] A ROM (Read Only Memory) 2202 stores programs and parameters that do not require modification. A RAM (Random Access Memory) 2203 temporarily stores programs and data supplied from an auxiliary storage device 2204, and data supplied from the outside via a communication I / F 2205. The auxiliary storage device 2204 is composed of, for example, a hard disk drive (HDD) or a solid state drive (SSD), and stores various content data such as images and audio.

[0021] The communication I / F 2205 is used for communication with an external device such as the camera group 100. For example, when the image generating device 220 is connected to an external device by wire, a communication cable is connected to the communication I / F 2205. When the image generating device 220 has a function of wirelessly communicating with an external device, the communication I / F 2205 is equipped with an antenna. The bus 2206 connects each unit of the image generating device 220 to transmit information. When the image generating device 220 has a UI unit 240 therein, the image generating device 220 has a display unit, an operation unit, etc. in addition to the configuration shown in FIG. 3.

[0022] 4 is a diagram showing an example of the functional configuration of the image generating device 220 according to embodiment 1. The image generating device 220 has a camera image processing unit 300, a three-dimensional shape estimation unit 304, and a video generating unit 305.

[0023] The camera image processing unit 300 is provided corresponding to each of the cameras 101 to 110 of the camera group 100. The camera image processing unit 300 receives a captured image output from a corresponding camera via the hub 210. The camera image processing unit 300 separates the received captured image into a foreground region and a background region by a background subtraction method, and extracts and outputs the foreground. The camera image processing unit 300 has an image receiving unit 301, an image recording unit 302, a foreground extraction unit 303, a characteristic region determination unit 306, a first evaluation value acquisition unit 307, a second evaluation value acquisition unit 308, a detection unit 309, an adjustment unit 310, and a control unit 311.

[0024] The image receiving unit 301 receives a captured image output from a corresponding camera via the hub 210 , and outputs the image to the image recording unit 302 , the foreground extraction unit 303 , and the second evaluation value acquisition unit 308 . The image recording unit 302 receives the captured image from the image receiving unit 301, and records the received captured image as a background image when an instruction from the user is received. The timing of recording does not have to be when an instruction from the user is received, and may be, for example, when the captured image does not change for a certain period of time, and is not particularly limited. The captured image recorded in the image recording unit 302 as the background image is, for example, an image captured when there is no moving subject. The image recording unit 302 outputs the recorded background image to the foreground extraction unit 303, the feature region determination unit 306, and the first evaluation value acquisition unit 307.

[0025] The foreground extraction unit 303 generates a silhouette image showing a foreground region and a background region based on the captured image acquired from the image receiving unit 301 and the background image acquired from the image recording unit 302. The foreground extraction unit 303 calculates the difference between the captured image and the background image acquired for all pixels, and determines that pixels with a pixel difference amount equal to or greater than a threshold are foreground parts and pixels with a pixel difference amount equal to or less than the threshold are background parts, thereby generating a silhouette image showing the foreground region and the background region. The foreground extraction unit 303 also generates a foreground texture that represents color information of a portion corresponding to the foreground region of the captured image. The foreground extraction unit 303 outputs the generated silhouette image and foreground texture to the three-dimensional shape estimation unit 304, and outputs the generated silhouette image to the feature region determination unit 306.

[0026] The characteristic region determining unit 306 obtains a background image from the image recording unit 302, obtains a silhouette image from the foreground extraction unit 303, and determines a characteristic region based on the obtained background image and silhouette image. Here, a characteristic region is a characteristic location (region) in a region of the background image where there is no foreground (background region). In this example, since a numerical value related to high frequency components is used as an evaluation value for checking the focus state as described later, the characteristic region determining unit 306 determines a region with many high frequency components in the background region of the background image as a characteristic region. The characteristic region determining unit 306 outputs characteristic region information indicating the determined characteristic region to the first evaluation value acquiring unit 307 and the second evaluation value acquiring unit 308.

[0027] Since a background region that is a region without a foreground can be detected from a silhouette image, the characteristic region determining unit 306 detects a background region without a foreground in the background image. The reason for this process is that in order to confirm the previous focus state, it is necessary to use a region in which the same thing as before is photographed, and a comparison with the previous state cannot be made in a region in which the foreground is photographed. In addition, the characteristic region determining unit 306 detects high-frequency components in the background image. Then, the characteristic region determining unit 306 determines a region with many high-frequency components in a region without a foreground in the background image as a characteristic region, and outputs the characteristic region information to the first evaluation value acquiring unit 307 and the second evaluation value acquiring unit 308. The process of determining the characteristic region will be described in detail later.

[0028] The first evaluation value acquisition unit 307 acquires a background image from the image recording unit 302, and acquires feature region information from the feature region determination unit 306. The first evaluation value acquisition unit 307 acquires an evaluation value in the feature region of the background image based on the acquired background image and feature region information. The evaluation value is a numerical value indicating the degree of focus, and in this example, an integral value of high frequency components is calculated as the evaluation value. By calculating the integral value of high frequency components in the background image, the focus state of the background image can be detected. The first evaluation value acquisition unit 307 calculates a first evaluation value, which is an integral value of high frequency components in the feature region of the background image, and outputs the calculated first evaluation value to the detection unit 309. Note that the evaluation value is not limited to the integral value of high frequency components as long as it can express the degree of focus.

[0029] The second evaluation value acquisition unit 308 acquires the captured image from the image receiving unit 301, and acquires the characteristic region information from the characteristic region determining unit 306. The second evaluation value acquisition unit 308 acquires an evaluation value in the characteristic region of the captured image based on the acquired captured image and characteristic region information. The focusing status of the captured image can be detected by calculating an integral value of high frequency components in the captured image. The second evaluation value acquisition unit 308 calculates a second evaluation value, which is an integral value of high frequency components in the characteristic region of the captured image, and outputs the calculated second evaluation value to the detection unit 309.

[0030] The detection unit 309 acquires a first evaluation value from the first evaluation value acquisition unit 307 and acquires a second evaluation value from the second evaluation value acquisition unit 308. The detection unit 309 detects a focus shift based on the acquired first evaluation value and second evaluation value. For example, the detection unit 309 calculates a difference between the acquired first evaluation value and second evaluation value, and judges whether or not there is a difference in focus between the background image and the captured image (whether or not there is a focus shift) based on the difference. If the calculated difference is smaller than a predetermined threshold, the detection unit 309 judges that there is no difference in focus between the background image and the captured image, and if the calculated difference is equal to or greater than the predetermined threshold, the detection unit 309 judges that there is a difference in focus between the background image and the captured image. If the detection unit 309 judges that there is a difference in focus between the background image and the captured image, it judges that it is necessary to return the current focus to the state when the background image was captured, and outputs adjustment request information regarding focus and a focus difference value to the adjustment unit 310.

[0031] When the adjustment unit 310 acquires adjustment request information related to focus from the detection unit 309, the adjustment unit 310 determines an adjustment method for the focus lens and calculates a lens adjustment value based on the focus difference value acquired from the detection unit 309. The adjustment unit 310 outputs the calculated lens adjustment value to the control unit 311. Details of the adjustment method will be described later with reference to FIG. 7.

[0032] Based on the output from adjustment unit 310, control unit 311 outputs control instructions including an instruction to adjust the focus lens to the corresponding camera via hub 210. Control unit 311 generates camera control data based on the lens adjustment value acquired from adjustment unit 310, and outputs the camera control data to the corresponding camera via hub 210.

[0033] The three-dimensional shape estimation unit 304 has a function of estimating three-dimensional shape information from the silhouette image acquired from the foreground extraction unit 303 of each camera image processing unit 300. The commonly used volume intersection method may be used to estimate the three-dimensional shape information. The volume intersection method is a method of obtaining three-dimensional shape information by back-projecting foreground data from multiple cameras into a three-dimensional space and determining the intersection of the respective volumes. The three-dimensional shape estimation unit 304 outputs the generated three-dimensional shape information and the foreground texture acquired from the foreground extraction unit 303 to the video generation unit 305.

[0034] The image generating unit 305 acquires the three-dimensional shape information and the foreground texture from the three-dimensional shape estimation unit 304, and performs rendering using the color information of the foreground texture according to the viewpoint position and direction of the virtual camera (virtual viewpoint) for the three-dimensional shape information. The image generating unit 305 then generates a virtual viewpoint image using a background model and background texture that are stored in advance for the virtual viewpoint image. The image generating unit 305 outputs the generated virtual viewpoint image to the display device 230.

[0035] Fig. 5 is a flowchart showing an example of a control process related to focus in this embodiment. Fig. 5 shows an example in which the camera image processing unit 300 of the image generating device 220 judges whether or not focus adjustment is necessary for the corresponding camera, and issues a control instruction for focus adjustment as necessary. Note that the captured image as the background image is the captured image output from the corresponding camera received by the image receiving unit 301 and already recorded in the image recording unit 302.

[0036] In step S501, the characteristic region determining unit 306 acquires a background image from the image recording unit 302, and extracts high-frequency components from the background image. In step S502, the characteristic region determining unit 306 obtains a silhouette image from the foreground extraction unit 303, and detects a region without foreground (background region) in the background image using the obtained silhouette image. Then, the characteristic region determining unit 306 determines a region with many high frequency components in the detected background region as a characteristic region. In step S503, the first evaluation value acquisition unit 307 acquires a background image from the image recording unit 302, acquires feature region information from the feature region determination unit 306, and calculates an integrated value H of high-frequency components in the feature region of the background image as the first evaluation value. b to calculate.

[0037] In step S504, the second evaluation value acquisition unit 308 acquires a photographed image from the image reception unit 301 and extracts high-frequency components of the photographed image. In step S505, the second evaluation value acquisition unit 308 acquires feature region information from the feature region determination unit 306, and calculates an integrated value H of high-frequency components in the feature region of the photographed image as the second evaluation value. i Here, the position of the feature region of the photographed image is the same as the position of the feature region of the background image.

[0038] In step S506, the detection unit 309 determines whether the integrated value H of the high-frequency components calculated in step S503 b and the integrated value H of the high-frequency components calculated in step S505 i satisfy the following condition A. |H b -H i |< Th ···(Condition 1) Th is a threshold for determining the necessity of focus adjustment. That is, the detection unit 309 determines whether the absolute value of the difference between the integrated value H of the high-frequency components in the feature region of the background image b and the integrated value H of the high-frequency components in the feature region of the photographed image i is less than the threshold Th. Thereby, the detection unit 309 detects a focus deviation with respect to the focus state when the background image was photographed.

[0039] When the detection unit 309 determines that the condition 1 is satisfied (YES in S506), the difference between the focus state of the captured image and the focus state of the background image is small, so there is no focus deviation that requires adjustment, and the focus adjustment is not necessary, and the process ends. On the other hand, when the detection unit 309 determines that the condition 1 is not satisfied (NO in S506), the detection unit 309 determines that the difference between the focus state of the captured image and the focus state of the background image is large, so there is a focus deviation that requires adjustment, and the focus adjustment is necessary. When the detection unit 309 determines that the focus adjustment is necessary, adjustment request information regarding the focus is output from the detection unit 309, and the frame adjustment process is executed in step S507.

[0040] In step S507, the camera image processing unit 300 executes focus adjustment processing of the corresponding camera based on the focus-related adjustment request information and the focus difference value. Details of the focus adjustment processing will be described later with reference to Fig. 7. When the focus adjustment processing in step S507 ends, the camera image processing unit 300 ends the processing of the flowchart shown in Fig. 5.

[0041] In the process shown in FIG. 5, before the process of step S506 is executed, the integral value H b and the integral value H of the high frequency components in the feature region of the captured image i In other words, the processing order is not limited to that shown in FIG. 5, and the integral value H b Calculation of the integral value H i The order in which the calculations are performed is arbitrary.

[0042] Fig. 6 is a diagram for explaining the characteristic region determination process executed by the characteristic region determination unit 306 in step S502 in Fig. 5. Fig. 6(a) is a diagram showing an example of a background image recorded by the image recording unit 302. In Fig. 6(a), a subject 401 is a pattern drawn on a wall, and is represented as being present at the time the background image was captured.

[0043] FIG. 6(b) is a diagram showing an example of a captured image acquired from the image receiving unit 301. In FIG. 6(b), the subject 402 in the captured image is the same as the subject 401 in the background image, but the image is out of focus and blurred. Subjects 4031 to 4034 are objects that did not exist when the background image was captured. If a virtual viewpoint image is generated using the captured image of this camera, the foreground texture of the captured image that is out of focus is used, and the quality of the image of the virtual viewpoint image is degraded. Therefore, it is important to prevent the degradation of the virtual viewpoint image by returning the focus of the camera that captured the captured image shown in FIG. 6(b) to the state when the background image was captured.

[0044] FIG. 6(c) is a diagram showing an example of a silhouette image generated by the foreground extraction unit 303. The foreground extraction unit 303 calculates the difference between the captured image acquired from the image receiving unit 301 and the background image acquired from the image recording unit 302, and displays in black a portion where the difference value is equal to or greater than a threshold value by masking. Therefore, in FIG. 6(c), the foreground regions 4041 to 4044 are objects that did not exist when the background image was captured, and are detected as foreground objects by the foreground extraction unit 303. Also, in FIG. 6(c), the portions displayed in white other than the foreground regions 4041 to 4044 are regions without foreground, that is, background regions, and it can be seen that this region captures the same subject as when the background image was captured.

[0045] FIG. 6(d) is a diagram for explaining an example of a process for searching for a characteristic region. FIG. 6(d) shows an image in which a silhouette image is superimposed on a background image. Therefore, in the image shown in FIG. 6(d), the region in which the foreground regions 4041 to 4044 of the silhouette image are superimposed is a uniform black region and does not contain many high-frequency components. The size of the rectangle 405 is predetermined, and the characteristic region determination unit 306 repeatedly executes a process for calculating an integral value of high-frequency components in the rectangle 405 for the image shown in FIG. 6(d) by moving the position of the rectangle 405 each time the process is completed. In this way, the characteristic region determination unit 306 comprehensively executes a process for calculating an integral value of high-frequency components in the rectangle 405 for all regions of the background region, and generates information that combines the coordinates of the rectangle and the integral value of the high-frequency components.

[0046] FIG. 6(e) is a diagram showing an example of the determined characteristic region. Based on the coordinate value of the rectangle with the highest integral value of the high frequency components among the information combining the coordinates of the generated rectangle and the integral value of the high frequency components, the characteristic region determination unit 306 determines the region corresponding to the coordinate value of the rectangle as the most characteristic part, that is, the characteristic region. In this example, the characteristic region determination unit 306 determines the rectangle 406 when the most characteristic subject 401 in the background region is captured as the characteristic region. Note that the characteristic region does not need to be a predetermined size, and may be a variable size so as to surround the entire subject determined as the characteristic. In addition, the shape of the characteristic region does not need to be rectangular, and may be a shape that matches the subject. In addition, the characteristic region does not need to be one, and may be a plurality of regions. The characteristic region is not particularly limited as long as it is possible to detect the focusing state in a region without a foreground in the background image. According to the determined characteristic region, a first evaluation value, which is the integral value of the high frequency components in the characteristic region of the background image, is calculated.

[0047] Fig. 6(f) is a diagram showing an example in which a characteristic region is applied to the photographed image shown in Fig. 6(b). A rectangle 407 is obtained by detecting a characteristic region using a background image and then applying the characteristic region to the photographed image. According to the characteristic region, a second evaluation value, which is an integral value of high-frequency components in the characteristic region of the photographed image, is calculated. Then, in the camera image processing unit 300, when the difference between the calculated first evaluation value and the second evaluation value is equal to or greater than a threshold value, it is detected as a focus error, and a focus adjustment is performed so that the focus state of the photographed image becomes closer to the focus state of the background image.

[0048] FIG. 6(g) is a diagram showing an example of a captured image after focus adjustment is performed so that the focus state of the captured image becomes close to that of the background image. In FIG. 6(g), the subject 409 in the captured image is the same as the subject 401 in the background image, and the focus is also close to that of the background image. In addition, the subjects 4081 to 4084 are the same as the subjects 4031 to 4034 in the captured image shown in FIG. 6(b), but compared with the out-of-focus state shown in FIG. 6(b), it shows that the subjects have been captured in a good focus state. Therefore, by using the foreground texture of the subjects 4081 to 4084, the image quality of the virtual viewpoint image is improved compared to using an image when the focus is deviated.

[0049] Fig. 7 is a flowchart showing an example of the focus adjustment process in step S507 in Fig. 5. In the camera image processing unit 300, when the adjustment unit 310 acquires adjustment request information related to focus from the detection unit 309, the focus adjustment process in Fig. 7 is started. Note that, similarly to the example shown in Fig. 5, in the following description of Fig. 7, the first evaluation value is the integral value H b The second evaluation value is the integral value H i It is.

[0050] In step S601, the adjustment unit 310 outputs an instruction to the control unit 311 to move the focus lens position of the corresponding camera in the negative direction. By moving the focus lens position in the negative direction, the focal position is moved toward the near side. At this time, the adjustment unit 310 outputs an instruction to move the focus lens position by, for example, a movement amount based on a focus difference value related to focus acquired from the detection unit 309, or a predetermined movement amount. The control unit 310 that receives the instruction transmits a control instruction to the corresponding camera via the hub 210 to move the focus lens position in the negative direction by the specified movement amount. In the camera that receives the control instruction from the control unit 310, control is performed to move the focus lens position in the negative direction by the specified movement amount.

[0051] In step S602, the detection unit 309 detects a second evaluation value (H i When a change in the first evaluation value (H b ) and the second evaluation value (H i ) and judges whether the absolute value of the difference is less than a threshold value Th. b ) and the second evaluation value (H i If the absolute value of the difference between the first evaluation value (H b ) and the second evaluation value (H i If the detection unit 309 determines that the absolute value of the difference between the first and second values ​​is not less than the threshold value Th, that is, is equal to or greater than the threshold value Th (NO in S602), the process proceeds to step S603.

[0052] In step S603, the detection unit 309 detects the second evaluation value (H i When a change in the first evaluation value (H b ) and the second evaluation value (H i ) is compared with before the focus lens position is moved, and it is determined whether the absolute value of the difference between the first evaluation value (H b ) and the second evaluation value (H iIf the detection unit 309 determines that the absolute value of the difference between the first evaluation value (H b ) and the second evaluation value (H i If the detection unit 309 determines that the absolute value of the difference between the focus lens position and the target position has increased (NO in S603), it determines that the focus lens position has moved in the opposite direction, and the process of step S604 is executed.

[0053] In step S604, the adjustment unit 310 outputs an instruction to the control unit 311 to move the focus lens position of the corresponding camera in the plus direction. By moving the focus lens position in the plus direction, the focal position is moved in the far direction. As in step S601, the adjustment unit 310 outputs an instruction to move the focus lens position by, for example, a movement amount based on a focus difference value related to focus acquired from the detection unit 309, or a predetermined movement amount. The control unit 310 that receives the instruction transmits a control instruction to the corresponding camera via the hub 210 to move the focus lens position in the plus direction by the specified movement amount. In the camera that receives the control instruction from the control unit 310, control is performed to move the focus lens position in the plus direction by the specified movement amount.

[0054] In step S605, the detection unit 309 detects the second evaluation value (H i When a change in the first evaluation value (H b ) and the second evaluation value (H i ) and judges whether the absolute value of the difference is less than a threshold value Th. b ) and the second evaluation value (H i If the absolute value of the difference between the first evaluation value (H b ) and the second evaluation value (H iIf the detection unit 309 determines that the absolute value of the difference between the first and second values ​​is not less than the threshold value Th, that is, is equal to or greater than the threshold value Th (NO in S605), the process proceeds to step S606.

[0055] In step S606, the detection unit 309 detects the second evaluation value (H i When a change in the first evaluation value (H b ) and the second evaluation value (H i ) is compared with before the focus lens position is moved, and it is determined whether the absolute value of the difference between the first evaluation value (H b ) and the second evaluation value (H i If the detection unit 309 determines that the absolute value of the difference between the first evaluation value (H b ) and the second evaluation value (H i If the detection unit 309 determines that the absolute value of the difference between the focus lens position and the target position has increased (NO in S606), it determines that the focus lens position has moved in the opposite direction, and the process returns to step S601.

[0056] By adjusting the focus lens position in the above manner, the focus state when capturing the captured image is brought closer to that when capturing the background image. Note that even if the focus lens adjustment is performed a specified number of times, the first evaluation value (H b ) and the second evaluation value (H i ) does not become smaller than the threshold value Th, the focus adjustment process may be stopped and a notification may be given to the user. The focus adjustment process may be any process that can bring the focus state closer to that at the time of photographing the background image, and is not limited to the focus adjustment process shown in the flowchart of FIG. 7. For example, in the focus adjustment process shown in the flowchart of FIG. 7, the focus lens position is first controlled to move in the negative direction. This process may be performed by having the detection unit 309 have a function of buffering the second evaluation value, detecting the direction of deviation of the focus position from the progression of the change, and determining the direction of movement of the focus lens position during the focus adjustment process.

[0057] According to the first embodiment, even if the focus shifts during the generation of the virtual viewpoint image, the focus shift is detected based on the evaluation values ​​in the characteristic regions of the background image and the captured image, and the focus lens position can be adjusted to return to the focus state at the time of the previous capture. This makes it possible to suppress the deterioration of the image quality of the virtual viewpoint image due to the focus shift. The reason for returning to the focus state at the time of the previous capture is as follows. That is, in performing foreground background separation, the foreground region is extracted using the difference between the captured image and the background image in the focus state at the time of the previous capture. Specifically, if the captured image is not in a focus state equivalent to the focus state at the time of the previous capture, there is a possibility that the background region in the captured image is different from the background region of the past background image, and the background region may be extracted as the foreground region. As a result, if a 3D model of the foreground is generated using an incorrect foreground region, the accuracy of the shape of the generated 3D model decreases, and if a virtual viewpoint image is generated using the 3D model, the image quality of the virtual viewpoint image decreases. In order to suppress this, when a focus shift is detected, the focus lens position is adjusted to return to the focus state at the time of the previous capture.

[0058] In the present disclosure, when a focus shift is detected, it is not necessary to adjust the focus lens position to return to the focus state at the time of previous shooting, and the focus lens position may be adjusted to return to a focused state. Even in this case, the image in the focused state can be used as the texture of the 3D model used to generate the virtual viewpoint image, so that deterioration of the image quality of the virtual viewpoint image can be suppressed.

[0059] <Embodiment 2> In this embodiment, an example will be described in which an evaluation value indicating the degree of focus is generated and acquired by the camera, not the image generating device 220, and the focus lens position is adjusted to return to the focus state at the time of previous shooting. By acquiring the evaluation value generated by the camera and appropriately adjusting the focus lens position, it is possible to prevent degradation of the image quality of the virtual viewpoint image due to deviation of the camera's focus. Below, differences between the second embodiment and the first embodiment described above will be described.

[0060] In the second embodiment, a configuration example of the image processing system 10 that generates a virtual viewpoint image and a hardware configuration example of the image generating device 220 are the same as those in the first embodiment. FIG. 8 is a diagram showing a functional configuration example of the image generating device 220 according to the second embodiment. In FIG. 8, components having the same functions as those shown in FIG. 4 are given the same reference numerals, and duplicated explanations are omitted. The image generating device 220 according to the second embodiment has a camera image processing unit 300, a three-dimensional shape estimation unit 304, and a video generating unit 305. In addition, the camera image processing unit 300 has an image receiving unit 301, an image recording unit 302, a foreground extraction unit 303, a feature region determination unit 701, a first evaluation value acquisition unit 704, a second evaluation value acquisition unit 705, a detection unit 309, an adjustment unit 310, a control unit 702, and a parameter receiving unit 703.

[0061] Similar to the feature region determining section 306 in embodiment 1, the feature region determining section 701 acquires a background image from the image recording section 302 and a silhouette image from the foreground extraction section 303, and determines a feature region based on the acquired background image and silhouette image. The feature region determining section 701 outputs feature region information indicating the determined feature region to the control section 702 and the first evaluation value acquiring section 704.

[0062] Based on the output from adjustment unit 310, control unit 702 outputs control instructions including an instruction to adjust the focus lens to the corresponding camera via hub 210. Control unit 702 generates camera control data based on the lens adjustment value acquired from adjustment unit 310, and outputs the camera control data to the corresponding camera via hub 210.

[0063] Furthermore, when control unit 702 acquires feature region information from feature region determination unit 701, it generates a command to move the position of the autofocus frame of the camera so that the position of the autofocus frame becomes the position of the feature region, and outputs the command to the corresponding camera. When the camera acquires the command, it moves the position of the autofocus frame to a specified position corresponding to the feature region. This enables the camera to detect high frequency component values ​​within the autofocus frame, and output high frequency component value information related to the detected high frequency component values ​​to parameter receiving unit 703 as information on high frequency component values ​​in the feature region.

[0064] The parameter receiving unit 703 receives a command from the camera. If the parameter receiving unit 703 confirms that the command is high-frequency component value information, the parameter receiving unit 703 outputs the command data to the first evaluation value obtaining unit 704 and the second evaluation value obtaining unit 705.

[0065] When first evaluation value acquisition unit 704 acquires feature region information from feature region determination unit 701, it acquires command data from parameter reception unit 703 and acquires an integral value of high frequency components within the autofocus frame of the camera, i.e., within the feature region of the captured image. Since feature region information is generated at the time the background image is recorded in image recording unit 302, the integral value of high frequency components acquired at that time can be used as the value at the time the background image was captured. First evaluation value acquisition unit 704 outputs the integral value of high frequency components of the acquired background image to detection unit 309 as a first evaluation value.

[0066] The second evaluation value acquisition unit 705 acquires command data from the parameter receiving unit 703 and acquires an integral value of high frequency components within the autofocus frame of the camera, i.e., within the feature region of the captured image. The second evaluation value acquisition unit 705 outputs the integral value of the high frequency components of the acquired captured image to the detection unit 309 as a second evaluation value.

[0067] In the second embodiment, each process such as focus-related control process is different in that the first evaluation value and the second evaluation value are obtained from the corresponding camera, but the rest is the same as in the first embodiment, so the explanation is omitted.

[0068] According to the second embodiment, as in the first embodiment, an evaluation value indicating the degree of focus generated by the camera is acquired, and based on the evaluation value, a focus shift is detected and the focus lens position is adjusted to return to the focus state at the time of previous shooting. This makes it possible to suppress degradation of the image quality of the virtual viewpoint image due to a focus shift.

[0069] <Embodiment 3> In this embodiment, an example will be described in which, in an image processing system for generating a virtual viewpoint image, when the camera goes out of focus, the foreground image extracted from the captured image is processed to return to the focus state at the time of previous capture. As a result, even if the focus state at the time of previous capture cannot be returned by adjusting the focus lens position, the foreground image is processed to reduce blurring caused by focus deviation, thereby making it possible to suppress degradation of the image quality of the virtual viewpoint image. Below, differences from the above-mentioned embodiment 1 will be described.

[0070] In the third embodiment, a configuration example of the image processing system 10 that generates a virtual viewpoint image and a hardware configuration example of the image generating device 220 are the same as those in the first embodiment. FIG. 9 is a diagram showing a functional configuration example of the image generating device 220 according to the third embodiment. In FIG. 9, components having the same functions as those shown in FIG. 4 are given the same reference numerals, and duplicated explanations are omitted. The image generating device 220 according to the third embodiment has a camera image processing unit 300, a three-dimensional shape estimation unit 304, and a video generating unit 305. The camera image processing unit 300 also has an image receiving unit 301, an image recording unit 302, a foreground extraction unit 303, a feature region determination unit 306, a first evaluation value acquisition unit 307, a second evaluation value acquisition unit 308, a detection unit 309, an adjustment unit 310, and a control unit 311. The camera image processing unit 300 further has a correction amount determination unit 801 and a foreground correction unit 802.

[0071] The process of adjusting the focus lens position to return the focus state of the captured image to the focus state when the background image was captured is the same as in embodiment 1. If the focus state cannot be returned to the state when the background image was captured even after this process is performed, detection unit 309 outputs a foreground correction request to correction amount determination unit 801.

[0072] When the correction amount determination unit 801 acquires a foreground correction request from the detection unit 309, it acquires high frequency component value information of the background image from the first evaluation value acquisition unit 307, and acquires high frequency component value information of the photographed image from the second evaluation value acquisition unit 308. The correction amount determination unit 801 calculates the difference between the acquired high frequency component value information of the background image and the high frequency component value information of the photographed image, and determines a Laplacian filter coefficient value from the difference value based on list information managed in advance. The coefficient value of the Laplacian filter is a general technique for image sharpening processing, and a description thereof will be omitted here. The larger the difference value of the high frequency component value information, the greater the effect of making the contour clearer by increasing the coefficient value of the Laplacian filter. Note that, as long as the blurred photographed image can be sharpened, other image sharpening processing methods may be used, and are not particularly limited. The correction amount determination unit 801 outputs the determined image correction amount information to the foreground correction unit 802.

[0073] The foreground correction unit 802 performs a sharpening process on the foreground texture obtained from the foreground extraction unit 303, based on the image correction amount obtained from the correction amount determination unit 801. After performing the sharpening process, the foreground correction unit 802 outputs the sharpened foreground texture to the three-dimensional shape estimation unit 304.

[0074] According to the third embodiment, the foreground image extracted from the captured image is processed using the difference information between the high-frequency component values ​​of the captured image and the background image, so that the image can be made closer to the focus state at the time of the previous capture. This makes it possible to reduce the blurring of the foreground image caused by focus shift, and to suppress the degradation of the image quality of the virtual viewpoint image caused by focus shift.

[0075] (Other embodiments) The present disclosure can also be realized by a process in which a program for implementing one or more of the 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) for implementing one or more of the functions.

[0076] It should be noted that the above-described embodiments are merely examples of the implementation of the present disclosure, and the technical scope of the present disclosure should not be interpreted as being limited by these embodiments. In other words, the present disclosure can be implemented in various forms without departing from its technical concept or main features.

[0077] The disclosure of the present embodiment includes the following configurations, methods, etc. (Configuration 1) A determination means for determining a feature region based on a first captured image captured by an imaging device used for generating a virtual viewpoint image and recorded in a recording means; a first evaluation value acquisition means for acquiring a first evaluation value in the characteristic region of the first captured image; a second evaluation value acquisition means for acquiring a second evaluation value in the characteristic region of a second captured image different from the first captured image captured by the imaging device; 23. An image processing apparatus comprising: a detection unit that detects a focus shift based on the first evaluation value and the second evaluation value. (Configuration 2) 2. The image processing apparatus according to claim 1, wherein the determining means determines the feature region within a background region of the first captured image. (Configuration 3) 3. The image processing apparatus according to claim 2, wherein the determining means determines the characteristic region based on high frequency components detected from the first captured image. (Configuration 4) 4. The image processing device according to any one of configurations 1 to 3, wherein the first captured image is an image used to separate a foreground region and a background region of an image captured by the imaging device. (Configuration 5) 5. The image processing device according to any one of configurations 1 to 4, wherein the first evaluation value and the second evaluation value are evaluation values ​​indicating a degree of focus in the characteristic region. (Configuration 6) the first evaluation value acquisition means acquires the first evaluation value in the characteristic region from the first captured image; 6. The image processing device according to any one of configurations 1 to 5, wherein the second evaluation value acquisition means acquires the second evaluation value in the characteristic region from the second captured image. (Configuration 7) The image processing device according to any one of configurations 1 to 5, characterized in that the first evaluation value acquisition means and the second evaluation value acquisition means acquire the first evaluation value and the second evaluation value in the feature region from the imaging device. (Configuration 8) The image processing device according to configuration 7, characterized in that the first evaluation value and the second evaluation value are values ​​obtained by moving a focus frame of the imaging device to a position corresponding to the characteristic region. (Configuration 9) 9. The image processing device according to any one of configurations 1 to 8, wherein the detection means detects a focus error when a difference between the first evaluation value and the second evaluation value is equal to or greater than a threshold value. (Configuration 10) 10. The image processing device according to any one of configurations 1 to 9, further comprising a control means for instructing the imaging device to adjust a focus in response to a request from the detection means. (Configuration 11) The image processing device described in configuration 10, characterized in that, when the detection means detects a focus shift, the control means instructs the imaging device to adjust the focus so that the difference between the first evaluation value and the second evaluation value becomes smaller. (Configuration 12) 12. The image processing device according to configuration 10 or 11, further comprising a correction means for performing a sharpening process on the image of the foreground extracted from the second captured image when the detection means detects a focus shift. (Configuration 13) 13. The image processing device according to any one of configurations 10 to 12, wherein the control means instructs the imaging device to adjust focus so that the first captured image is in a focus state in which the first captured image was acquired. (Configuration 14) 14. The image processing device according to any one of configurations 1 to 13, wherein a foreground region of the second captured image is extracted using a background region of the first captured image. (Method 1) An image processing method executed by an image processing device, comprising: determining a feature region based on a first captured image captured by an imaging device used to generate a virtual viewpoint image and recorded in a recording means; obtaining a first evaluation value for the feature region of the first captured image; acquiring a second evaluation value for the characteristic region of a second captured image different from the first captured image captured by the imaging device; Detecting a focus error based on the first evaluation value and the second evaluation value. (Program 1) The computer of the image processing device determining a feature region based on a first captured image captured by an imaging device used to generate a virtual viewpoint image and recorded in a recording means; obtaining a first evaluation value for the feature region of the first captured image; acquiring a second evaluation value in the characteristic region of a second captured image different from the first captured image captured by the imaging device; detecting a focus shift based on the first evaluation value and the second evaluation value. [Explanation of symbols]

[0078] 101-110: Camera 220: Image generating device 300: Camera image processing unit 301: Image receiving unit 302: Image recording unit 303: Foreground extraction unit 306, 701: Feature region determination unit 307, 704: First evaluation value acquisition unit 308, 705: Second evaluation value acquisition unit 309: Detection unit 310: Adjustment unit 311, 702: Control unit 703: Parameter receiving unit 801: Correction amount determination unit 802: Foreground correction unit

Claims

1. a determining means for determining a feature region based on a first captured image captured by an imaging device used for generating a virtual viewpoint image and recorded in a recording means; a first evaluation value acquisition means for acquiring a first evaluation value in the characteristic region of the first captured image; a second evaluation value acquisition means for acquiring a second evaluation value in the characteristic region of a second captured image different from the first captured image captured by the imaging device; a detection unit that detects a focus shift based on the first evaluation value and the second evaluation value.

2. The image processing apparatus according to claim 1 , wherein the determining means determines the characteristic region within a background region of the first captured image.

3. 3. The image processing apparatus according to claim 2, wherein the determining means determines the characteristic region based on high frequency components detected from the first captured image.

4. 2 . The image processing apparatus according to claim 1 , wherein the first captured image is an image used for separating a foreground region and a background region of an image captured by the imaging device.

5. The image processing apparatus according to claim 1 , wherein the first evaluation value and the second evaluation value are evaluation values ​​indicating a degree of focus in the characteristic region.

6. the first evaluation value acquisition means acquires the first evaluation value in the characteristic region from the first captured image; The image processing apparatus according to claim 1 , wherein the second evaluation value acquisition means acquires the second evaluation value in the characteristic region from the second captured image.

7. 2 . The image processing device according to claim 1 , wherein the first evaluation value acquisition means and the second evaluation value acquisition means acquire the first evaluation value and the second evaluation value in the characteristic region from the imaging device.

8. 8. The image processing device according to claim 7, wherein the first evaluation value and the second evaluation value are values ​​obtained by moving a focus frame of the image capturing device to a position corresponding to the characteristic region.

9. 2 . The image processing apparatus according to claim 1 , wherein the detection means detects a focus error when a difference between the first evaluation value and the second evaluation value is equal to or greater than a threshold value.

10. 2. The image processing apparatus according to claim 1, further comprising control means for instructing said image pickup device to adjust a focus in response to a request from said detection means.

11. 11. The image processing device according to claim 10, wherein, when the detection means detects a focus shift, the control means instructs the imaging device to adjust the focus so that the difference between the first evaluation value and the second evaluation value becomes smaller.

12. 11. The image processing apparatus according to claim 10, further comprising a correction means for performing a sharpening process on the image of the foreground extracted from the second captured image when the detection means detects a focus shift.

13. 11. The image processing apparatus according to claim 10, wherein the control means instructs the imaging device to adjust focus so that the first captured image is in the focus state obtained.

14. 2 . The image processing apparatus according to claim 1 , wherein a foreground region of the second captured image is extracted using a background region of the first captured image.

15. An image processing method executed by an image processing device, comprising: determining a feature region based on a first captured image captured by an imaging device used for generating a virtual viewpoint image and recorded in a recording means; obtaining a first evaluation value for the feature region of the first captured image; acquiring a second evaluation value in the characteristic region of a second captured image different from the first captured image captured by the imaging device; detecting a focus deviation based on the first evaluation value and the second evaluation value.

16. The computer of the image processing device determining a feature region based on a first captured image captured by an imaging device used for generating a virtual viewpoint image and recorded in a recording means; obtaining a first evaluation value for the feature region of the first captured image; acquiring a second evaluation value in the characteristic region of a second captured image different from the first captured image captured by the imaging device; detecting a focus shift based on the first evaluation value and the second evaluation value.

Citation Information

Patent Citations

  • Information processing device, information processing method, and program

    JP2021016081A

Cited By

  • Information processing method, information processing system, and information processing program

    WO2026094702A1