Imaging device, portable terminal device, and imaging method

The imaging device simplifies the setting of imaging conditions for both RGB and spectroscopic cameras by using a unified approach based on RGB camera settings, enhancing user convenience and reducing image abnormalities.

JP7552076B2Active Publication Date: 2024-09-18SEIKO EPSON CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2020092970
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-05-28
Publication Date
2024-09-18
Estimated Expiration
2040-05-28

AI Technical Summary

Technical Problem

Existing imaging devices with both RGB and spectroscopic cameras require separate and complex setting of imaging conditions, necessitating specialized knowledge and multiple calibration steps, which is inconvenient for users.

Method used

An imaging device with a color filter section and a spectroscopic element that allows for a single unified imaging condition setting for both RGB and spectroscopic cameras, using a correction coefficient to automatically set conditions based on RGB camera settings, thereby simplifying the process and eliminating the need for specialized knowledge.

Benefits of technology

Enables convenient and efficient capture of both color and spectral images without the need for complex user calibration, reducing the likelihood of image abnormalities like halation and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007552076000002
    Figure 0007552076000002
  • Figure 0007552076000003
    Figure 0007552076000003
  • Figure 0007552076000001
    Figure 0007552076000001
Patent Text Reader

Abstract

To solve such problems that an imaging condition of an RGB camera and an imaging condition of a spectroscopic camera are required to be individually set and the convenience is impaired in an imaging device including the RGB camera and the spectroscopic camera.SOLUTION: An imaging device comprises: a first camera which includes a color filter part having a red color filter, a green color filter and a blue color filter and a first light reception part receiving light passing through the color filter part and which captures a color image; a second camera which includes a spectral element that splits the light having a prescribed spectral wavelength from incident light and can change the spectral wavelength to four or more pieces, and a second light reception part that receives the light split by the spectral element and which captures a spectral image of each wavelength split by the spectral element; a first imaging condition setting unit which sets a first imaging condition being an imaging condition of the first camera; and a second imaging condition setting unit which sets a second imaging condition being an imaging condition of the second camera on the basis of the first imaging condition.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an imaging device, a portable terminal device, and an imaging method. [Background technology]

[0002] 2. Description of the Related Art Conventionally, imaging devices equipped with an RGB camera that captures color images and a spectroscopic camera that captures spectroscopic images are known (see, for example, Patent Document 1). The imaging device described in Patent Document 1 is an imaging system equipped with an RGB sensor, which is an RGB camera, and an NIR sensor, which is a spectroscopic camera. In such an imaging system, a spectroscopic image captured by the NIR sensor can be displayed superimposed on a color image captured by the RGB sensor. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Special Publication No. 2015-502058 Summary of the Invention [Problem to be solved by the invention]

[0004] However, in an imaging device equipped with an RGB camera and a spectroscopic camera as described in Patent Document 1, it is usually necessary to set the imaging conditions for the RGB camera and the imaging conditions for the spectroscopic camera separately, which reduces convenience. In particular, in order to set the imaging conditions of a spectroscopic camera, it is necessary to use the spectroscopic camera to image a specific calibration object at multiple wavelengths, and to set the imaging conditions for each wavelength based on each spectroscopic image obtained by imaging. This poses the problem that the task of setting the imaging conditions is complicated and requires the user to have specialized knowledge. [Means for solving the problem]

[0005] The imaging device of the first aspect includes a color filter unit including a red color filter that transmits light in a red wavelength range, a green color filter that transmits light in a green wavelength range, and a blue color filter that transmits light in a blue wavelength range, and a first light receiving unit that receives light that has transmitted through the color filter unit, and captures a color image based on the gradation values ​​of the red light that has transmitted through the red color filter, the gradation values ​​of the green light that has transmitted through the green color filter, and the gradation values ​​of the blue light that has transmitted through the blue color filter, a spectroscopic element that disperses light of a predetermined spectral wavelength from incident light and is capable of changing the spectral wavelength to four or more, and a second light receiving unit that receives the light dispersed by the spectroscopic element, and captures spectral images of each wavelength dispersed by the spectroscopic element, a first imaging condition setting unit that sets first imaging conditions that are imaging conditions of the first camera, and a second imaging condition setting unit that sets second imaging conditions that are imaging conditions of the second camera based on the first imaging conditions.

[0006] A portable terminal device according to a second aspect is characterized by comprising the imaging device according to the first aspect as described above, and a housing in which the imaging device is incorporated.

[0007] An imaging method of a third aspect is an imaging method for an imaging device including a first camera having a color filter section including a red color filter that transmits light in a red wavelength range, a green color filter that transmits light in a green wavelength range, and a blue color filter that transmits light in a blue wavelength range, and a first light receiving section that receives light transmitted through the color filter section, and capturing a color image based on the gradation values ​​of the red light transmitted through the red color filter, the gradation values ​​of the green light transmitted through the green color filter, and the gradation values ​​of the blue light transmitted through the blue color filter, and a second camera having a spectroscopic element that disperses light of a predetermined spectral wavelength from incident light and is capable of changing the spectral wavelength to four or more, and a second light receiving section that receives the light dispersed by the spectroscopic element, and capturing a spectral image of each wavelength dispersed by the spectroscopic element, the imaging method includes a first imaging condition setting step of setting first imaging conditions that are imaging conditions of the first camera, and a second imaging condition setting step of setting second imaging conditions that are imaging conditions of the second camera based on the first imaging conditions. [Brief description of the drawings]

[0008] [Figure 1] 1 is a side cross-sectional view showing a schematic configuration of an electronic device according to a first embodiment. [Diagram 2] FIG. 1 is a block diagram showing a schematic configuration of an electronic device according to a first embodiment. [Diagram 3] 4 is a flowchart showing a method for capturing a spectroscopic image according to the first embodiment. [Figure 4] 4 is a diagram showing the light receiving sensitivity characteristic of a second light receiving unit, the spectral characteristic of a spectroscopic element, and the light source characteristic of a light source, as well as the camera optical characteristic of the second camera obtained by multiplying these characteristics together in the first embodiment. FIG. [Diagram 5] FIG. 13 is a diagram showing an overview of correction coefficients according to a third embodiment. [Figure 6] FIG. 13 is a block diagram showing a schematic configuration of an electronic device according to a fourth embodiment. [Figure 7] 13 is a flowchart showing a method for capturing a spectroscopic image according to a fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] [First embodiment] The first embodiment will be described below. Fig. 1 is a diagram showing an example of an electronic device 1 according to the present embodiment, and is a side cross-sectional view showing a schematic configuration of the electronic device 1. Fig. 2 is a block diagram showing a schematic configuration of the electronic device 1. The electronic device 1 is a portable terminal device that can be carried by a user, and examples of the electronic device 1 include a smartphone, a tablet terminal, a mobile phone, and a head-mounted display. In this embodiment, a smartphone is illustrated as an example of the electronic device 1. As shown in Fig. 1, the electronic device 1 includes a housing 10, a first camera 21 and a second camera 22 arranged inside the housing 10, and a control unit 30 (see Fig. 2). The first camera 21, the second camera 22, and the control unit 30 configure the imaging device of the present disclosure. The housing 10 is formed, for example, in a thin box shape, and is provided on one side with a touch panel 11 that displays images and accepts input operations from a user. Note that, in addition to the touch panel 11, the electronic device 1 may also include input buttons and the like that accept input operations from a user. In addition, a first window 12 and a second window 13 are provided on the surface of housing 10 opposite to the surface on which touch panel 11 is provided. First window 12 is provided opposite first camera 21, and second window 13 is provided opposite second camera 22. Furthermore, the electronic device 1 may be provided with a light source or the like that irradiates illumination light onto the object when capturing an image of the object with the first camera 21 and the second camera 22, and may be provided with a light intensity detection sensor or the like that automatically sets first imaging conditions, which are the imaging conditions used by the first camera 21.

[0010] [Configuration of first camera 21 and second camera 22] First camera 21 is an RGB camera disposed facing first window 12. This RGB camera is a camera for capturing color images that is widely used in portable terminals such as general smartphones. The first camera 21 includes a color filter unit 211 , a first light receiving unit 212 , and a first imaging optical system 213 .

[0011] The color filter section 211 includes a red color filter (R filter) that transmits light in the red wavelength range, a green color filter (G filter) that transmits light in the green wavelength range, and a blue color filter (B filter) that transmits light in the blue wavelength range. In the following description, the R filter, G filter, and B filter may be collectively referred to as color filters. A plurality of R filters, G filters, and B filters are provided, and are arranged, for example, in a Bayer array.

[0012] The first light receiving unit 212 is an imaging element configured by a general CCD (Charge-Coupled Device) sensor or a CMOS (Complementary Metal Oxide Semiconductor) sensor. The first light receiving unit 212 has imaging pixels corresponding to each color of the color filter unit 211, and receives light transmitted through the corresponding color filter. For example, the first light receiving unit 212 receives light transmitted through one R filter, one B filter, and two G filters at imaging pixels corresponding to each filter, thereby acquiring RGB gradation values ​​for one pixel of the image data. As a result, the first camera 21 acquires the RGB gradation values ​​of each pixel of the image data from each imaging pixel of the first light receiving unit 212 to generate a color image.

[0013] The first imaging optical system 213 is an optical system that guides the light incident through the first window 12 to the first light receiving part 212, and is constituted by, for example, a plurality of lenses. In addition, as shown in Fig. 2, the first imaging optical system 213 is provided with a first aperture mechanism 213A that can adjust the incidence range of light incident on the first light receiving part 212, and the amount of light received by the first light receiving part 212 is adjusted by adjusting the incidence range.

[0014] The second camera 22 is a spectroscopic camera disposed opposite the second window 13, and captures spectroscopic images for each of a plurality of wavelengths. The second camera 22 includes a spectroscopic element 221 , a second light receiving section 222 , and a second imaging optical system 223 .

[0015] The spectroscopic element 221 is an element that can separate light of a predetermined spectral wavelength from incident light, transmit the light, and can switch the spectral wavelength to an arbitrary wavelength. In this embodiment, a wavelength-tunable Fabry-Perot element is used as the spectroscopic element 221, which includes a pair of reflective films facing each other and an electrostatic actuator that changes the gap between the pair of reflective films by applying a voltage. The spectroscopic element 221 using such a wavelength-tunable Fabry-Perot element can be made smaller and thinner, and can be suitably incorporated in an electronic device 1 with limited installation space, such as a portable terminal device. The spectroscopic element 221 is not limited to the above-mentioned Fabry-Perot element, and may be, for example, an Acousto-Optic Tunable Filter (AOTF) or a Liquid Crystal Tunable Filter (LCTF). The spectroscopic element 221 of the present embodiment can switch the spectral wavelengths of the light to be transmitted among four or more, and in the visible light range, can capture an image that can analyze the color of an object with higher accuracy than the first camera 21 that captures a color image using the three colors of RGB.

[0016] The second light receiving unit 222 is provided on the same board as the camera board 23 on which the first light receiving unit 212 is provided. In the example of Fig. 1, the first light receiving unit 212 and the second light receiving unit 222 are arranged on the same camera board 23, but the circuit board on which the first light receiving unit 212 is provided and the circuit board on which the second light receiving unit 222 is provided may be separate. The second light receiving unit 222 is an imaging element configured with a general CCD (Charge-Coupled Device) sensor or a CMOS (Complementary Metal Oxide Semiconductor) sensor, similar to the first light receiving unit 212. That is, the second light receiving unit 222 has a plurality of imaging pixels, and each imaging pixel outputs an electric signal according to the intensity of the received light. In this way, the second camera 22 generates a spectral image in which the light intensity value output from each imaging pixel is data for one pixel. A general RGB camera such as the first light receiving unit 212 performs data interpolation from data of surrounding pixels, and for example, in a pixel corresponding to an R filter, blue and green data is calculated from data of pixels corresponding to surrounding B and G filters. In contrast, the second light receiving unit 222, which is a spectral camera, can directly obtain data for a plurality of wavelengths at each pixel, eliminating the need for the above-mentioned interpolation, and can generate images with higher clarity than a general RGB camera.

[0017] The second imaging optical system 223 is an optical system that guides the light incident from the second window 13 to the second light receiving section 222, and is constituted by, for example, a plurality of lenses. As shown in Fig. 2, the second imaging optical system 223 is provided with a second aperture mechanism 223A that can adjust the incidence range of light incident on the second light receiving section 222, and the amount of light received by the second light receiving section 222 is adjusted by adjusting the incidence range. Note that Figs. 1 and 2 show an example in which the second imaging optical system 223 is provided on the opposite side of the second light receiving section 222 from the spectroscopic element 221, but optical components such as lenses that constitute the second imaging optical system 223 may also be provided between the spectroscopic element 221 and the second light receiving section 222.

[0018] [Configuration of control unit 30] The control unit 30 is configured with a CPU (Central Processing Unit) mounted on a main board 14 arranged inside the housing 10, and various electronic circuits such as semiconductor memories, and is equipped with a memory unit 31 and a processor 32. The storage unit 31 is configured, for example, by a semiconductor memory and stores various programs and various data. The storage unit 31 functions as a correction coefficient recording unit of the present disclosure and stores a correction coefficient β for setting the second imaging condition. The correction coefficient β will be described later.

[0019] The processor 32 reads out and executes the programs stored in the storage unit 31 to execute various processes in the electronic device 1. Specifically, the processor 32 functions as a first imaging condition setting unit 321, a second imaging condition setting unit 322, a first imaging control unit 323, a second imaging control unit 324, an image evaluation unit 325, and a correction coefficient update unit 326.

[0020] The first imaging condition setting unit 321 acquires first imaging conditions, which are imaging conditions of the first camera when performing imaging processing using the first camera 21. The first imaging conditions include an exposure time (shutter speed), an aperture value (F-number), a focus distance, and an ISO sensitivity. The first imaging condition setting unit 321 automatically sets the first imaging conditions based on the distance from the first light receiving unit 212 to the imaging target and brightness (amount of received light). In addition, the first imaging conditions can be appropriately changed by a user's operation. For example, when the user inputs the first imaging conditions from the touch panel 11, the first imaging condition setting unit 321 sets the input first imaging conditions.

[0021] The second imaging condition setting unit 322 sets second imaging conditions, which are imaging conditions of the second camera 22 when performing imaging processing using the second camera 22. The second imaging conditions include exposure time, aperture value, focus distance, ISO sensitivity, and the like, similar to the first imaging conditions. The second imaging condition setting unit 322 sets the second imaging conditions based on the first imaging conditions set by the first imaging condition setting unit 321. That is, the second imaging condition setting unit 322 corrects the first imaging conditions using a correction coefficient β stored in the storage unit 31 to set the second imaging conditions. Note that a more detailed process of the second imaging condition setting unit 322 will be described later.

[0022] The first imaging control unit 323 controls the first camera 21 based on the first imaging conditions, and causes the first camera 21 to capture a color image (RGB image). The second imaging control unit 324 controls the second camera 22 based on the second imaging conditions, and causes the second camera 22 to capture spectral images for a plurality of spectral wavelengths.

[0023] The image evaluation unit 325 evaluates whether the spectral images of each wavelength captured by the second camera 22 are proper spectral images. For example, the image evaluation unit 325 evaluates whether each spectral image is free of halation, in other words, whether each imaging pixel of the second light receiving unit 222 receives light exceeding the detectable amount of light. Specifically, it is determined whether the gradation value is maximum in a predetermined number or more (for example, one or more) pixels in the spectral image. The image evaluation unit 325 may determine whether or not the gradation value of each pixel is within a predetermined reference range in the spectral image of each wavelength when a predetermined test object is imaged. For example, the test object may be a white reference plate having a reflectance of 99% or more for light of each wavelength. In this case, the image evaluation unit 325 can evaluate whether or not the S / N ratio of the spectral image is appropriate, in addition to the presence or absence of the above-mentioned halation.

[0024] The correction coefficient update unit 326 updates the correction coefficient for setting the second imaging condition, based on the evaluation result by the image evaluation unit 325. That is, the correction coefficient is updated so that halation does not occur in the spectral image based on the evaluation result by the image evaluation unit 325.

[0025] [Image capture method in electronic device 1] Next, an imaging method for the electronic device 1 incorporating the imaging device described above will be described. In the electronic device 1 of the present embodiment, imaging processes can be performed in a plurality of imaging modes, such as imaging processes for color images using the first camera 21, imaging processes for spectral images using the second camera 22, and imaging processes for color images and spectral images using both the first camera 21 and the second camera 22. When imaging processes for both color images and spectral images are performed, the spectral images can be superimposed on the color images and displayed on the touch panel 11, or the results of analysis processes (e.g., component analysis) based on the spectral images can be superimposed on the color images and displayed on the touch panel 11.

[0026] Here, the color image capturing process using the first camera 21 is similar to the conventional capturing process using a general smartphone or the like. That is, when the user operates the touch panel 11 or the like to select an application for capturing a color image, the control unit 30 activates the first camera 21. Furthermore, the first imaging condition setting unit 321 automatically sets first imaging conditions such as exposure time, aperture value, focus distance, and ISO sensitivity based on the amount of light received by the first light receiving unit 212 and the distance to the object. Note that, when a user inputs an instruction to change the first imaging conditions by an input operation, the first imaging conditions set and input by the user may be acquired. As described above, after the first imaging condition is set by the first imaging condition setting unit 321, an imaging command to capture an image is input by the user's input operation, and the first imaging control unit 323 controls the first camera 21 to capture a color image.

[0027] On the other hand, when the electronic device 1 of the present embodiment performs the imaging process of the spectral images, it sets the second imaging condition based on the first imaging condition. Hereinafter, the imaging process of the spectral images will be described in detail. FIG. 3 is a flowchart showing a method for capturing a spectroscopic image according to this embodiment. In this embodiment, when a user operates the touch panel 11 or the like to select an application for capturing a spectroscopic image, the control unit 30 activates the first camera 21 and the second camera 22 (step S1). Thereafter, the first imaging condition setting unit 321 sets the first imaging condition of the first camera 21 (step S2). This step S2 is similar to the setting of the first imaging condition performed in the above-mentioned imaging process of the color image by the first camera 21. That is, the first imaging condition setting unit 321 automatically sets the first imaging conditions such as the exposure time, the aperture value, the focus distance, and the ISO sensitivity based on the amount of light received by the first light receiving unit 212 and the distance to the object, or sets the first imaging conditions input by the user.

[0028] Furthermore, the first imaging control unit 323 causes the first camera 21 to capture a color image of the object based on the first imaging conditions, and causes the image to be displayed on the touch panel 11 (step S3). That is, a real-time image of the object is displayed on the touch panel 11. This allows the user to adjust the imaging position of the spectral image while checking the object that is the subject.

[0029] Furthermore, the second imaging condition setting unit 322 sets the second imaging condition based on the first imaging condition (step S4). In this embodiment, the correction coefficients β are recorded in the storage unit 31. The correction coefficients β include an exposure correction coefficient βt for the exposure time, an aperture correction coefficient βa for the aperture value, and an ISO correction coefficient βi for the ISO sensitivity. Then, the second imaging condition setting unit 322 multiplies the exposure time T1, which is the first imaging condition, by an exposure correction coefficient βt to set the exposure time T2 (=T1×βt) of the second imaging condition. Similarly, the second imaging condition setting unit 322 multiplies the aperture value A1, which is the first imaging condition, by an aperture correction coefficient βa to set the aperture value A2 (=A1×βa) of the second imaging condition. Similarly, the second imaging condition setting unit 322 multiplies the ISO sensitivity I1, which is the first imaging condition, by an ISO correction coefficient βi to set the ISO sensitivity I2 (=I1×βi) of the second imaging condition.

[0030] In this embodiment, the initial value and the updated value of the correction coefficient β are stored, and in step S4 that is executed first after the application is executed in step S1, the initial value of the correction coefficient β is used, and in step S4 from the second time onwards, the updated value of the correction coefficient β is used. That is, in this embodiment, the correction coefficient β is sequentially updated by the correction coefficient update unit 326, and the second imaging condition is optimized every time a spectroscopic image is captured.

[0031] The initial value of the correction coefficient β is set based on the light receiving sensitivity characteristic of the second light receiving unit 222 and the spectral characteristic of the dispersing element. In the case where the electronic device 1 includes a light source unit that irradiates the target with illumination light, the initial value of the correction coefficient β is set based on the light receiving sensitivity characteristic of the second light receiving unit 222, the spectral characteristic of the dispersing element 221, and the light source characteristic of the light source unit. FIG. 4 is a diagram showing the light receiving sensitivity characteristic, the spectral characteristic, the light source characteristic, and the characteristic of the second camera 22 obtained by combining these characteristics (hereinafter, referred to as the camera optical characteristic). The light receiving sensitivity characteristic of the second light receiving section 222 is a characteristic that indicates the sensitivity of the second light receiving section to each wavelength. The spectral characteristic of the spectroscopic element 221 is a characteristic indicating the transmittance of light of each wavelength when a predetermined spectral wavelength is transmitted through the spectroscopic element 221. Here, the spectroscopic element 221 is capable of changing the wavelength of light to be transmitted within a predetermined wavelength range, and the transmittance characteristic when light of a predetermined spectral wavelength is transmitted through the spectroscopic element 221 is such that the transmittance reaches a peak at that spectral wavelength, as indicated by line P in FIG. The light source characteristics are characteristics that indicate the amount of light (light intensity) of each wavelength of the illumination light. The camera characteristic value is a combination of the light receiving sensitivity characteristic, the spectral characteristic, and the light source characteristic.

[0032] In this embodiment, the initial value of the correction coefficient β is set based on the maximum characteristic value in the above-mentioned camera optical characteristics. MThe correction coefficient β is set so that the gradation value of each pixel is less than the maximum gradation value when the spectral image is captured by the second camera 22. This makes it possible to capture a spectral image with suppressed halation for any spectral wavelength.

[0033] 3, after step S4, the second imaging control unit 324 controls the second camera 22 to capture a spectral image (step S5). At this time, the second imaging control unit 324 may control the first camera 21 to capture a color image at the same time. Specifically, the second imaging control unit 324 sets the wavelength of light transmitted through the spectroscopic element 221 to a specified spectroscopic wavelength, and adjusts the second aperture mechanism 223A based on the aperture value A2 of the second imaging condition. The second imaging control unit 324 then detects the amount of light received by the second light receiving unit 222 during the exposure time T2 of the second imaging condition, and amplifies the light receiving signal corresponding to the amount of received light output from each imaging element based on the ISO sensitivity I2 of the second imaging condition. This allows a spectroscopic image based on the second imaging condition to be captured. In addition, when capturing spectral images of multiple wavelengths of an object, the wavelengths of light transmitted through the spectroscopic element are switched sequentially, and the spectral image capturing process is performed by the second camera 22 according to the second imaging conditions in the same manner as described above.

[0034] After that, the image evaluation unit 325 judges whether the spectral image captured in step S5 is an appropriate image (step S6). That is, the image evaluation unit 325 judges whether the gradation value of each pixel in the spectral image for each spectral wavelength is less than a preset maximum gradation value. When there is a pixel in the spectral image whose gradation value is the maximum gradation value, there is a possibility that light exceeding the amount of light that can be detected by the second light receiving unit 222 is received. In such a case, in this embodiment, it is determined that halation is occurring.

[0035] If step S6 is determined as NO, the second imaging control unit 324 determines whether or not to perform re-imaging by the second camera 22 (step S7). For example, if a user inputs an instruction to re-imaging, step S7 may be determined as YES. Alternatively, if a preset number of re-imaging times is set in advance, and the number of consecutive NO determinations in step S6 reaches the preset number of re-imaging times, step S7 may be determined as NO, and if the number of NO determinations is less than the preset number of re-imaging times, step S7 may be determined as YES. Then, if step S6 is judged as NO due to the occurrence of halation or the like, and step S7 is judged as YES, the correction coefficient update unit 326 updates the update value of the correction coefficient β stored in the storage unit 31 (step S8). After the first execution of step S4, the correction coefficient update unit 326 calculates a new correction coefficient β from the initial value of the correction coefficient β and records it as the update value. After the second execution of step S4, the correction coefficient update unit 326 calculates a new correction coefficient β from the previous update value of the correction coefficient β and updates the update value. As a method of calculating the correction coefficient β, which is an updated value, for example, the correction coefficient update unit 326 may calculate the updated value by subtracting a preset value from the correction coefficient β used in step S4, or may calculate the updated value by multiplying it by a predetermined value less than 1. In addition, the correction coefficient update unit 326 may change the amount of reduction of the correction coefficient β according to the number of pixels causing halation. Furthermore, the correction coefficient update unit 326 may update only one or two of the exposure correction coefficient βt, the aperture correction coefficient βa, and the ISO correction coefficient βi. For example, only the exposure correction coefficient βt may be updated, or both the exposure correction coefficient βt and the aperture correction coefficient βa may be updated.

[0036] After step S8, the process returns to step S4, where the second imaging condition setting unit 322 resets the second imaging conditions based on the updated correction coefficient β, and the second imaging control unit 324 captures a spectral image with the second camera 22 based on the second imaging conditions.

[0037] If the result of the determination in step S6 is YES or if the result of the determination in step S7 is NO, the electronic device 1 displays the spectroscopic image captured by the second camera 22 on the touch panel 11 (step S9). The method of displaying the spectral images is based on the imaging mode selected by the user, and for example, only the spectral images may be displayed on the touch panel 11, or the spectral images may be superimposed on a color image and displayed. Alternatively, the analysis results based on the spectral images may be superimposed on the color image and displayed.

[0038] [Effects of this embodiment] The electronic device 1 of this embodiment includes an imaging device including a first camera 21, a second camera 22, and a control unit 30. The first camera 21 includes a color filter unit 211 including an R filter that transmits light in a red wavelength range, a G filter that transmits light in a green wavelength range, and a B filter that transmits light in a blue wavelength range, and a first light receiving unit 212 that receives light transmitted through the color filter unit 211. The first camera 21 captures a color image based on the gradation value of the red light transmitted through the R filter, the gradation value of the green light transmitted through the G filter, and the gradation value of the blue light transmitted through the B filter. The second camera 22 includes a spectroscopic element 221 that splits the incident light into light of a predetermined spectral wavelength and can change the spectral wavelength to four or more, and a second light receiving unit 222 that receives the light split by the spectroscopic element 221. The second camera 22 captures a spectral image of each wavelength split by the spectroscopic element 221. The control unit 30 includes a storage unit 31 and a processor 32. The processor 32 functions as a first imaging condition setting unit 321, a second imaging condition setting unit 322, etc., by reading and executing a program stored in the storage unit 31. The first imaging condition setting unit 321 sets first imaging conditions which are imaging conditions for the first camera 21. The second imaging condition setting unit 322 sets second imaging conditions which are imaging conditions for the second camera 22 based on the first imaging conditions.

[0039] In the present embodiment, the user does not need to set the second imaging conditions for the second camera 22 that captures the spectral images, and the user is not required to have specialized knowledge. This improves the convenience when using the second camera 22 of the electronic device 1. In addition, since the second imaging conditions are set based on the first imaging conditions, a preparatory operation of capturing spectral images multiple times to set the second imaging conditions is not required, and the second imaging conditions can be set quickly.

[0040] In the electronic device 1 of this embodiment, the second imaging condition setting unit 322 sets at least the exposure time as the second imaging condition. When the second light receiving unit 222 receives light, if the amount of received light exceeds a permissible value, halation occurs in the spectral image, and an appropriate spectral image cannot be captured. The most important factor in preventing such halation is the exposure time, and in this embodiment, image abnormalities caused by halation can be effectively suppressed by appropriately setting the second imaging condition including the exposure time T2.

[0041] In the electronic device 1 of this embodiment, the second imaging condition setting unit 322 multiplies the first imaging condition by the correction coefficient β to set the second imaging condition. As a result, the second imaging condition setting unit 322 can easily set the second imaging condition by a simple process of multiplying the first imaging condition by the correction coefficient β, and the time required to capture a spectroscopic image can be shortened.

[0042] In the electronic device 1 of this embodiment, the correction coefficient β is set based on the camera optical characteristics obtained by multiplying the spectral characteristics indicating the transmittance for each spectral wavelength of the spectroscopic element 221 and the light receiving sensitivity characteristics indicating the light receiving sensitivity for each wavelength of the second light receiving unit 222. By using such camera optical characteristics, it is possible to identify the spectral wavelengths at which the amount of light received by the second light receiving unit 222 is likely to exceed the tolerance when a spectral image is captured, and it is possible to appropriately set a correction coefficient for calculating the second capturing condition that enables an appropriate spectral image to be captured at each spectral wavelength.

[0043] In this embodiment, the correction coefficient β is set based on the maximum value of the characteristic values ​​of the optical characteristics of the camera as described above. In the camera optical characteristics, the wavelength at which the specific value is maximum is the wavelength at which halation is likely to occur in the captured spectral image. Therefore, if a correction coefficient is set so that halation does not occur at that wavelength, it is possible to suppress the occurrence of halation for other spectral wavelengths as well.

[0044] The electronic device 1 of this embodiment further includes an image evaluation unit 325 that evaluates a spectroscopic image of an object captured by the second camera 22 under second imaging conditions, a memory unit 31 in which the correction coefficient β is recorded, and a correction coefficient update unit that updates the update value of the correction coefficient β stored in the memory unit 31 based on the evaluation result by the image evaluation unit 325. As a result, even if an abnormality such as halation is present in a spectroscopic image captured under the second imaging condition using the initial value of the correction coefficient β that was initially set, the correction coefficient update unit 326 updates the correction coefficient β, making it possible to set a correction coefficient β that enables an appropriate spectroscopic image to be captured. As a result, an appropriate spectroscopic image without halation or the like can be captured.

[0045] [Second embodiment] Next, a second embodiment will be described. In the first embodiment, the initial correction coefficient β is set based on the wavelength of the maximum characteristic value in the camera optical characteristics of the second camera. In contrast, the second embodiment differs from the first embodiment in that the initial correction coefficient β is set based on the minimum characteristic value. In the following explanation, the explanation of matters that have already been explained will be omitted or simplified.

[0046] The electronic device 1 of the second embodiment has a similar configuration to that of the first embodiment, and includes a first camera 21, a second camera 22, a control unit 30, and the like, as shown in FIGS. Furthermore, when capturing a spectral image, the electronic device 1 of the second embodiment captures the spectral image by an imaging method as shown in FIG. 3, substantially similar to the first embodiment. Here, in this embodiment, the method of setting the initial correction coefficient β used when the second imaging condition setting unit 322 sets the second imaging condition is different from that in the first embodiment.

[0047] That is, in this embodiment, the initial value of the correction coefficient β is set based on the minimum value of the characteristic values ​​among the camera optical characteristics of the second camera as shown in FIG. In other words, the correction coefficient β is set so that the gradation value of each pixel of the spectral image is equal to or greater than a preset threshold value when the spectral element 221 separates the light with the minimum characteristic value to capture the spectral image. This makes it possible to suppress deterioration of the S / N ratio of each pixel of the spectral image.

[0048] In this case, in step S6, the image evaluation unit 325 evaluates whether or not a clear image has been captured as the spectral image. For example, the image evaluation unit 325 determines whether or not the maximum gradation value among the gradation values ​​of each pixel of the spectral image is equal to or greater than a threshold value. Then, if it is determined in step S6 that the spectroscopic image is not appropriate (determined as NO), the correction coefficient update unit 326 updates the correction coefficient β. In this case, in step S8, the correction coefficient update unit 326 may add a preset value to the correction coefficient β used in step S4, or may multiply the correction coefficient β by a predetermined value greater than 1, to calculate an update value.

[0049] [Effects of the second embodiment] In the electronic device 1 of this embodiment, the correction coefficient β is set based on the minimum value of the characteristic values ​​of the camera optical characteristics. By using the camera optical characteristics, it is possible to identify a spectral wavelength that tends to reduce the amount of light received by the second light receiving unit 222 when a spectral image is captured. In other words, the wavelength at which the specific value is minimum in the camera optical characteristics is a wavelength at which the gradation value of each pixel in the captured spectral image is low and the image is likely to become unclear (the S / N ratio is likely to deteriorate). Therefore, by setting a correction coefficient that suppresses the deterioration of the S / N ratio at that wavelength, it is possible to suppress the deterioration of the S / N ratio for other spectral wavelengths as well.

[0050] [Third embodiment] Next, a third embodiment will be described. In the above-described first embodiment, three parameters, namely, the exposure time T2, the aperture value A2, and the ISO sensitivity I2, which are the second imaging conditions, are set based on the first imaging conditions. In contrast, the third embodiment differs from the first embodiment in that the second imaging conditions are set independently for each of the spectral wavelengths separated by the spectral element 221.

[0051] FIG. 5 is a diagram showing an outline of the correction coefficients stored in the storage unit 31 in the third embodiment. In the first embodiment, the exposure correction coefficient βt, the aperture correction coefficient βa, and the ISO correction coefficient βi are recorded in the storage unit 31. In contrast, in the present embodiment, as shown in FIG. 5, the correction coefficients β _λ (Exposure correction coefficient βt _λ , aperture correction coefficient βa _λ , and ISO correction factor βi _λ ) are stored in the storage unit 31 in association with each other. For example, for a wavelength of 400 nm, the exposure correction coefficient βt _400 , aperture correction coefficient βa _400 , ISO correction factor βi _400 is associated with the exposure correction coefficient βt _700 , aperture correction coefficient βa _700 , ISO correction factor βi _700 are associated.

[0052] These correction coefficients β _λ is set based on the camera optical characteristics for each wavelength. That is, the correction coefficient β _λ The initial value of is set so that, when a spectral image of a spectral wavelength λ is captured, the gradation value of each pixel of the spectral image is less than the upper limit value and is equal to or greater than a predetermined threshold value.

[0053] In this embodiment, in step S4, the second imaging condition setting unit 322 sets second imaging conditions for the spectral wavelengths of the spectral images to be captured. For example, when the spectral wavelength of the spectral image to be captured is λa, the second imaging condition setting unit 322 sets a correction coefficient β _λa , that is, the exposure correction coefficient βt _λa , aperture correction coefficient βa _λa , and ISO correction factor βi _λa Then, the second imaging condition setting unit 322 reads in the exposure time T 2_λa The exposure time T1 of the first imaging condition and the exposure correction coefficient βt _λa Using and, T 2_λa =T1×βt _λa Similarly, the second imaging condition setting unit 322 calculates the aperture value A of the second imaging condition for the spectral wavelength λa. 2_λa The aperture value A1 of the first imaging condition and the aperture correction coefficient βa _λa Using and, A 2_λa =A1×βa _λa Similarly, the second imaging condition setting unit 322 calculates the ISO sensitivity I 2_λa The ISO sensitivity I1 and ISO correction coefficient βi _λa Using and, I 2_λa =I1×βi _λa It is calculated as follows. Therefore, in the case of capturing spectral images for a plurality of spectral wavelengths, the second imaging condition setting unit 322 sets the second imaging condition for each of the spectral wavelengths.

[0054] In addition, in this embodiment, in step S6, the image evaluation unit 325 determines whether each spectral image is appropriate or not, and for the spectral wavelengths determined to be inappropriate, the correction coefficient β is updated by the correction coefficient update unit 326 in step S8. For example, if halation occurs in the 400 nm spectral image, the 550 nm spectral image has insufficient brightness, and the 700 nm spectral image is determined to be an appropriate spectral image, the correction coefficient update unit 326 updates the correction coefficient β _400is reduced by a predetermined correction amount to calculate an updated value, and a correction coefficient β _550 is increased by a predetermined correction amount to calculate an updated value, and a correction coefficient β _700 will not be updated.

[0055] [Effects of the Third Embodiment] In the electronic device 1 of this embodiment, the second imaging condition setting unit 322 sets a correction coefficient β _λ Based on this, a second imaging condition for each spectral wavelength is set. In other words, instead of using a common second imaging condition for a plurality of spectral wavelengths, a different correction coefficient is set for each spectral wavelength, and the second imaging condition for each spectral wavelength is set based on the correction coefficient, which reduces the probability of abnormalities such as halation occurring in the spectral image, making it possible to capture an appropriate spectral image.

[0056] [Fourth embodiment] Next, a fourth embodiment will be described. In the first embodiment, the correction coefficient update unit 326 updates the correction coefficients stored in the storage unit 31 based on the evaluation result of the spectral image by the image evaluation unit 325. In contrast, the fourth embodiment differs from the first embodiment in that a model for calculating the correction coefficients is generated based on the evaluation result of the spectral image by the image evaluation unit 325.

[0057] FIG. 6 is a block diagram showing a schematic configuration of an electronic device 1A according to this embodiment. The processor 32 of this embodiment reads and executes the programs stored in the memory unit 31, and thereby functions as a first imaging condition setting unit 321, a second imaging condition setting unit 322A, a first imaging control unit 323, a second imaging control unit 324, an image evaluation unit 325, a correction coefficient update unit 326, and a model generation unit 327, as shown in FIG. 6.

[0058] In this embodiment, similarly to the first and second embodiments, the second imaging condition is set based on the first imaging condition and the correction coefficient, and the image evaluation unit 325 evaluates whether the spectral image captured under the second imaging condition is appropriate, that is, whether an abnormality such as halation occurs. Then, the model generation unit 327 uses the evaluation result by the image evaluation unit 325, the first imaging condition, and the correction coefficient β to generate a correction coefficient output model by machine learning, in which the first imaging condition is input and the correction coefficient β is output. The first imaging condition and the correction coefficient β used in the model generation are the first imaging condition and the correction coefficient β used to set the second imaging condition when the spectral image to be evaluated was captured. As the machine learning, for example, various algorithms such as linear regression, least squares method, and k-NN, or deep learning can be used.

[0059] The model generating unit 327 may further generate a correction coefficient calculation model using the spectral wavelength of the spectral image as teacher data. In this case, the model generating unit 327 receives the first imaging condition and the spectral wavelength λ of the captured spectral image as input, and calculates the correction coefficient β for the spectral wavelength λ. _λ It is possible to generate a correction coefficient output model having the following output: Furthermore, the model generation unit 327 may generate a correction coefficient calculation model by adding a color image captured by the first camera 21 as teacher data. In this case, in addition to the first imaging condition, a correction coefficient output model can be generated by using statistical data such as an average gradation value, a maximum gradation value, and a minimum gradation value of each color component of R (red), G (green), and B (blue) in the color image as teacher data, and a highly accurate correction coefficient can be calculated.

[0060] Next, the imaging method of this embodiment will be described. FIG. 7 is a flowchart showing the imaging method of this embodiment. In this embodiment, a spectroscopic image is captured by a method substantially similar to that of the first embodiment. That is, when the user operates the touch panel 11 or the like to select an application for capturing a spectroscopic image, the process of step S1 is performed and the control unit 30 starts up the first camera 21 and the second camera 22. Next, processing of step S2 is performed, and first imaging condition setting unit 321 sets the first imaging conditions for first camera 21, and in step S3, first imaging control unit 323 displays a color image captured by first camera 21 on touch panel 11.

[0061] Thereafter, the second imaging condition setting unit 322A inputs the acquired first imaging condition into the correction coefficient output model generated by the model generation unit 327, and sets the second imaging condition based on the output correction coefficient β (step S4A). The calculation method of the second imaging condition is the same as in the first embodiment, and for example, the second imaging condition is calculated by multiplying the first imaging condition by the correction coefficient β. In this example, a common correction coefficient β is output from the correction coefficient output model for a plurality of spectral wavelengths. However, each correction coefficient β corresponding to a plurality of spectral wavelengths is output. _λ may be output.

[0062] Thereafter, in step S5, the second imaging control unit 324 controls the second camera 22 under the set second imaging conditions to capture a spectroscopic image, and then step S6 is performed, and the image evaluation unit 325 evaluates whether the captured spectroscopic image is an appropriate image.

[0063] In addition, in this embodiment, if it is determined as NO in step S6, the correction coefficient update unit 326 updates the correction coefficient β output from the correction coefficient output model in step S4A, and the second imaging condition setting unit 322A sets the second imaging condition based on the updated correction coefficient β (step S8A). The update method of the correction coefficient update unit 326 is the same as that of the fourth embodiment, and if halation occurs in the spectral image, the correction coefficient β is reduced by a predetermined amount, and if the spectral image is unclear, the correction coefficient β is increased by a predetermined amount. After this, the process returns to step S5.

[0064] On the other hand, if the determination in step S6 is YES, the process in step S9 is performed, and the captured spectroscopic image or an image based on the spectroscopic image is displayed on the touch panel 11. In the present embodiment, the model generation unit 327 accumulates the first imaging condition, the correction coefficient β, and the evaluation result obtained in the series of processes in the storage unit 31 (step S10). If the result of step S6 is never NO, the model generation unit 327 accumulates history data associating the first imaging condition, the correction coefficient β obtained in step S4A, and the evaluation result of the spectral image for each spectral wavelength in the storage unit 31. If the result of step S6 is NO, the model generation unit 327 accumulates history data associating the first imaging condition, the correction coefficient β obtained in step S4A, and the evaluation result of the spectral image in the storage unit 31, as well as history data associating the first imaging condition, the correction coefficient updated in step S8A, and the evaluation result in step S6 for the spectral image captured under the second imaging condition based on the correction coefficient.

[0065] After that, the model generating unit 327 reconstructs and updates the correction coefficient output model based on the accumulated history data (step S11). Note that step S11 does not have to be performed immediately after capturing a spectroscopic image, but may be performed at regular intervals, for example, every time a spectroscopic image is captured, or every time a certain amount of history data is accumulated. In this way, by updating the correction coefficient output model based on the accumulated historical data, the correction coefficients output from the correction coefficient output model can be made more accurate, and the second imaging conditions for capturing a spectroscopic image can be set more appropriately.

[0066] [Effects of the fourth embodiment] In the electronic device 1A of this embodiment, the processor 32 further functions as an image evaluation unit 325 and a model generation unit 327. The image evaluation unit 325 evaluates a spectral image of an object captured by the second camera 22 under the second imaging condition. The model generation unit 327 uses the first imaging condition, the correction coefficient β, and the evaluation result of the image evaluation unit 325 on the spectral image captured under the second imaging condition set using the correction coefficient β as teacher data, and generates a correction coefficient output model in which the first imaging condition is input and the correction coefficient β is output. Then, the second imaging condition setting unit 322A inputs the first imaging condition to the correction coefficient output model to obtain the correction coefficient β, and sets the second imaging condition based on the correction coefficient β.

[0067] In this embodiment, the model generation unit 327 can generate a correction coefficient output model that outputs an optimal correction coefficient for the first imaging condition by machine learning. This allows the second imaging condition setting unit 322A to obtain an appropriate correction coefficient β according to the first imaging condition simply by inputting the first imaging condition to the correction coefficient output model, and can easily calculate the second imaging condition based on the correction coefficient β. In addition, by accumulating the first imaging condition, the correction coefficient β when the spectroscopic image was captured, and the evaluation results for the spectroscopic image as historical data, the model generation unit 327 can perform machine learning using this accumulated historical data as teacher data and improve the accuracy of the correction coefficient output model.

[0068] [Variations] The present invention is not limited to the above-described embodiment, and modifications and improvements within the scope of the present invention that can achieve the object of the present invention are included in the present invention.

[0069] [Variation 1] In the above first to fourth embodiments, the second imaging condition setting unit 322 sets the second imaging condition using the exposure correction coefficient, the aperture correction coefficient, and the ISO correction coefficient, but the present invention is not limited to this. The second imaging condition setting unit 322 may set at least the exposure correction coefficient and set the exposure time based on the exposure correction coefficient. As for the aperture value and ISO sensitivity, for example, the aperture correction coefficient and the ISO correction coefficient may be set to "1" and the aperture value and ISO sensitivity of the first imaging condition may be used as they are.

[0070] [Variation 2] In the first to third embodiments, the second imaging condition is set using a preset initial value of the correction coefficient β for the first imaging condition to capture a spectral image, and if the image evaluation unit determines that the spectral image is not appropriate, the correction coefficient β is updated to control so that an appropriate spectral image is captured. In contrast, the second imaging condition setting unit 322 may change the initial value of the correction coefficient β to be used initially based on the first imaging condition or the color image captured by the first camera 21. For example, when the color image captured by the first camera is dark and the gradation value of each pixel is low, large values ​​are set for the exposure time, aperture value, focus distance, and ISO sensitivity, which are the first imaging condition. In this case, the correction coefficient β may be set to "1" and the second imaging condition may be set to the same condition as the first imaging condition to capture a spectral image by the second camera 22.

[0071] [Variation 3] In the first to fourth embodiments described above, the second imaging condition setting unit 322 may display the second imaging conditions on the touch panel 11 before capturing a spectral image by the second camera 22. Furthermore, the second imaging condition setting unit 322 may accept a user's instruction to change the second imaging conditions, and change the set second imaging conditions or correction coefficients in response to the user's instruction. This allows the user to check the second imaging conditions before capturing a spectral image, and further allows the user to fine-tune the second imaging conditions and the correction coefficients, thereby enabling the user to capture a spectral image under conditions desired by the user.

[0072] Furthermore, in the fourth embodiment, the model generation unit 327 may accumulate, as history data, the correction coefficients set by the user and the first imaging conditions when the correction coefficients were set, thereby making it possible to learn conditions according to the preferences of the user and generate a correction coefficient output model optimized for each user.

[0073] [Variation 4] In the first to fourth embodiments described above, the second imaging condition setting unit 322 calculates the second imaging condition by multiplying the correction coefficient β by the first imaging condition, but is not limited to this. For example, the second imaging condition setting unit 322 may calculate the second imaging condition by adding or subtracting the correction coefficient to or from the first imaging condition.

[0074] [Variation 5] In the above fourth embodiment, an example has been shown in which the model generation unit 327 receives the first imaging condition as an input and generates a correction coefficient output model that outputs the correction coefficient β, but this is not limiting. For example, a correction coefficient output model may be generated in which the first imaging condition is received as an input and the second imaging condition calculated based on the correction coefficient β is received as an output. Furthermore, the model generation unit 327 may receive the first imaging condition and a color image captured by the first camera 21 as an input and generate a correction coefficient output model in which the second imaging condition is received as an output. Furthermore, the second imaging condition to be output may be the second imaging condition for each spectral wavelength.

[0075] [Summary of the invention] An imaging device according to a first aspect of the present disclosure includes a color filter unit including a red color filter that transmits light in a red wavelength range, a green color filter that transmits light in a green wavelength range, and a blue color filter that transmits light in a blue wavelength range, and a first light receiving unit that receives light that has transmitted through the color filter unit, and captures a color image based on a gradation value of the red light that has transmitted through the red color filter, a gradation value of the green light that has transmitted through the green color filter, and a gradation value of the blue light that has transmitted through the blue color filter, a spectroscopic element that disperses light of a predetermined spectral wavelength from incident light and is capable of changing the spectral wavelength to four or more, and a second light receiving unit that receives the light dispersed by the spectroscopic element, and captures spectral images of each wavelength dispersed by the spectroscopic element, a first imaging condition setting unit that sets imaging conditions for the first camera, and a second imaging condition setting unit that sets imaging conditions for the second camera based on the imaging conditions of the first camera.

[0076] This eliminates the need for the user to set imaging conditions for the second camera that captures the spectral images, and does not require the user to have specialized knowledge, improving the convenience of using the second camera. In addition, since the second imaging conditions are set based on the first imaging conditions, a preparatory operation of capturing spectral images multiple times to set the second imaging conditions is not required, and the second imaging conditions can be set quickly.

[0077] In the imaging device of this aspect, the second imaging condition setting unit sets at least an exposure time as the second imaging condition. When the second light receiving unit receives light, if the amount of light received exceeds a permissible value, halation occurs in the spectral image, and an appropriate spectral image cannot be captured. The most important factor in the occurrence of such halation is the exposure time, and by appropriately setting the exposure time as the second imaging condition as in this embodiment, image abnormalities due to halation can be effectively suppressed.

[0078] In the imaging device of this aspect, it is preferable that the second imaging condition setting section sets the second imaging condition by multiplying the first imaging condition by a predetermined correction coefficient. This allows the second imaging condition setting unit to easily set the second imaging condition by simply multiplying the first imaging condition by the correction coefficient, thereby shortening the time required to capture a spectroscopic image.

[0079] In the imaging device of this aspect, it is preferable that the second imaging condition setting unit sets the second imaging condition for each of the spectral wavelengths based on the correction coefficients set for the respective spectral wavelengths that are changeable by the spectroscopic element. In this aspect, instead of using a common second imaging condition for a plurality of spectral wavelengths, a different correction coefficient is set for each spectral wavelength, and the second imaging condition for each spectral wavelength is set based on the correction coefficient, which reduces the probability of abnormalities such as halation occurring in the spectral image, making it possible to capture an appropriate spectral image.

[0080] In the imaging device of this aspect, it is preferable that the correction coefficient is set based on camera optical characteristics obtained by multiplying a spectral characteristic indicating a transmittance for each wavelength of the spectroscopic element and a light receiving sensitivity characteristic indicating a light receiving sensitivity for each wavelength of the second light receiving unit. By using such camera optical characteristics, it is possible to identify spectral wavelengths at which the amount of light received by the second light receiving unit is likely to exceed the tolerance when capturing a spectral image, and at which the amount of light received is difficult to detect and the spectral image is likely to be unclear, and it is possible to easily set correction coefficients for calculating second capturing conditions that enable capturing appropriate spectral images at each spectral wavelength.

[0081] In the imaging device of this aspect, it is preferable that the correction coefficient is set based on a maximum value of the characteristic value of the camera optical characteristic. In the camera optical characteristics described above, the wavelength at which the specific value is maximum is a wavelength at which halation is likely to occur in the captured spectroscopic image. By setting a correction coefficient that enables calculation of a second capturing condition at which halation does not occur at that wavelength, it is possible to suppress the occurrence of halation for each of the other spectroscopic wavelengths as well.

[0082] In the imaging device of this aspect, the correction coefficient may be set based on a minimum value of characteristic values ​​of the camera optical characteristics. In the above-mentioned camera optical characteristics, the wavelength at which the specific value is the minimum is the wavelength at which the gradation value of each pixel in the captured spectral image is low and the image is likely to become unclear (the S / N ratio is likely to deteriorate). Therefore, by setting a correction coefficient that suppresses the deterioration of the S / N ratio at that wavelength, it is possible to suppress the deterioration of the S / N ratio for each of the other spectral wavelengths.

[0083] In the imaging device of this aspect, it is preferable that the imaging device further includes an image evaluation unit that evaluates the spectroscopic image of the object captured by the second camera under the second imaging conditions, a correction coefficient recording unit that stores the correction coefficient, and a correction coefficient update unit that updates the correction coefficient stored in the correction coefficient recording unit based on a result of evaluation by the image evaluation unit. In this aspect, the image evaluation unit evaluates the spectral image captured by the second camera, and if the evaluation result indicates that the spectral image is not appropriate, the correction coefficient update unit updates the correction coefficient. In this way, by repeating the imaging process of the spectral image multiple times and the evaluation of the spectral image by the image evaluation unit, it is possible to set a correction coefficient that allows an appropriate spectral image to be captured.

[0084] The imaging device of this aspect includes an image evaluation unit that evaluates the spectroscopic image obtained by capturing an image of an object with the second camera under the second imaging conditions, and a model generation unit that uses the first imaging conditions, the correction coefficient, and an evaluation result of the image evaluation unit for the spectroscopic image captured under the second imaging conditions set using the correction coefficient as teacher data, and generates a correction coefficient output model having the first imaging conditions as an input and the correction coefficient as an output, wherein it is preferable that the second imaging condition setting unit obtains the correction coefficient by inputting the first imaging conditions into the correction coefficient output model, and sets the second imaging conditions based on the correction coefficient.

[0085] In this case, the model generation unit can generate a correction coefficient output model that outputs an optimal correction coefficient for the first imaging condition by machine learning, whereby the second imaging condition setting unit can obtain an appropriate correction coefficient β according to the first imaging condition by inputting the first imaging condition to the correction coefficient output model, and can easily calculate the second imaging condition based on the correction coefficient β. In addition, by accumulating the first imaging condition, the correction coefficient β when the spectroscopic image was captured, and the evaluation results for the spectroscopic image as historical data, the model generation unit can perform machine learning using this accumulated historical data as training data and improve the accuracy of the correction coefficient output model.

[0086] A portable terminal device according to a second aspect of the present disclosure is characterized by including the imaging device according to the first aspect and a housing in which the imaging device is incorporated. The portable terminal device of the present embodiment is, for example, a smartphone, a tablet terminal, a head mounted display, or the like, and is required to have improved user convenience. By incorporating the imaging device described above in such a portable terminal device, the user convenience can be improved.

[0087] An imaging method according to a third aspect of the present disclosure is an imaging method for an imaging device including a first camera having a color filter section including a red color filter that transmits light in a red wavelength range, a green color filter that transmits light in a green wavelength range, and a blue color filter that transmits light in a blue wavelength range, and a first light receiving section that receives light transmitted through the color filter section, and capturing a color image based on a gradation value of the red light transmitted through the red color filter, a gradation value of the green light transmitted through the green color filter, and a gradation value of the blue light transmitted through the blue color filter, and a second camera having a spectroscopic element that disperses light of a predetermined spectral wavelength from incident light and is capable of changing the spectral wavelength to four or more, and a second light receiving section that receives the light dispersed by the spectroscopic element, and capturing a spectral image of each wavelength dispersed by the spectroscopic element, characterized in that the imaging method includes a first imaging condition setting step of setting first imaging conditions that are imaging conditions of the first camera, and a second imaging condition setting step of setting second imaging conditions that are imaging conditions of the second camera based on the first imaging conditions. As a result, as with the first aspect described above, the user does not need to set imaging conditions for the second camera that captures the spectral images, and no specialized knowledge is required of the user, improving the convenience of using the second camera. In addition, since the second imaging conditions are set based on the first imaging conditions, a preparatory operation of capturing spectral images multiple times to set the second imaging conditions is not required, and the second imaging conditions can be set quickly. [Explanation of symbols]

[0088] 1, 1A...electronic device (portable terminal device), 10...housing, 11...touch panel, 12...first window, 13...second window, 21...first camera, 22...second camera, 30...control unit, 31...memory unit, 32...processor, 211...color filter unit, 212...first light receiving unit, 213...first imaging optical system, 213A...first aperture mechanism, 221...spectroscopic element, 222...second light receiving unit, 223...second imaging optical system, 223A...second aperture mechanism, 321...first imaging condition setting unit, 322, 322A...second imaging condition setting unit, 323...first imaging control unit, 324...second imaging control unit, 325...image evaluation unit, 326...correction coefficient update unit, 327...model generation unit.

Claims

1. a first camera including a color filter section including a red color filter that transmits light in a red wavelength range, a green color filter that transmits light in a green wavelength range, and a blue color filter that transmits light in a blue wavelength range, and a first light receiving section that receives light transmitted through the color filter section, and captures a color image based on the gradation value of the red light transmitted through the red color filter, the gradation value of the green light transmitted through the green color filter, and the gradation value of the blue light transmitted through the blue color filter; a second camera including a spectroscopic element that separates incident light into light of a predetermined spectroscopic wavelength and is capable of changing the spectroscopic wavelength to four or more, and a second light receiving unit that receives the light separated by the spectroscopic element, and captures a spectroscopic image of each wavelength separated by the spectroscopic element; a first imaging condition setting unit that sets a first imaging condition that is an imaging condition of the first camera; a second imaging condition setting unit that multiplies the first imaging condition by a predetermined correction coefficient stored in a correction coefficient storage unit to set a second imaging condition that is an imaging condition of the second camera; Equipped with the first imaging condition and the second imaging condition include an exposure time, an aperture value, and an ISO sensitivity, the correction coefficients include an exposure correction coefficient for the exposure time, an aperture correction coefficient for the aperture value, and an ISO correction coefficient for the ISO sensitivity, the second imaging condition setting unit multiplies the exposure time of the first imaging condition by an exposure correction coefficient to set the exposure time of the second imaging condition, multiplies the aperture value of the first imaging condition by an aperture correction coefficient to set the aperture value of the second imaging condition, and multiplies the ISO sensitivity of the first imaging condition by an ISO correction coefficient to set the ISO sensitivity of the second imaging condition.

1. An imaging device comprising:

2. 2. The imaging device according to claim 1, The second imaging condition setting unit sets the second imaging condition for each of the spectral wavelengths based on the correction coefficients set for the respective spectral wavelengths that can be changed by the spectral element.

1. An imaging device comprising:

3. 3. The imaging device according to claim 1, The correction coefficient is set based on the camera optical characteristics obtained by multiplying the spectral characteristics indicating the transmittance of the spectroscopic element for each wavelength and the light receiving sensitivity characteristics indicating the light receiving sensitivity of the second light receiving unit for each wavelength.

1. An imaging device comprising:

4. 4. The imaging device according to claim 3, The correction coefficient is set based on the maximum value of the characteristic value of the camera optical characteristic.

1. An imaging device comprising:

5. 4. The imaging device according to claim 3, The correction coefficient is set based on the minimum value of the characteristic values ​​of the camera optical characteristics.

1. An imaging device comprising:

6. 6. The imaging device according to claim 1, an image evaluation unit that evaluates the spectroscopic image of the object captured by the second camera under the second imaging condition; a correction coefficient recording unit that stores the correction coefficient; a correction coefficient update unit that updates the correction coefficient stored in the correction coefficient recording unit based on a result of the evaluation by the image evaluation unit.

1. An imaging device comprising:

7. 3. The imaging device according to claim 1, an image evaluation unit that evaluates the spectroscopic image of the object captured by the second camera under the second imaging condition; a model generation unit that generates a correction coefficient output model using the first imaging condition as an input and the correction coefficient as an output, by using as teacher data an evaluation result by the image evaluation unit for the spectroscopic image captured under the first imaging condition, the correction coefficient, and the second imaging condition set using the correction coefficient, The second imaging condition setting unit obtains the correction coefficient by inputting the first imaging condition to the correction coefficient output model, and sets the second imaging condition based on the correction coefficient.

1. An imaging device comprising:

8. An imaging device according to any one of claims 1 to 7, A housing in which the imaging device is incorporated; A portable terminal device comprising:

9. 1. An imaging method for an imaging device comprising: a first camera having a color filter section including a red color filter that transmits light in a red wavelength range, a green color filter that transmits light in a green wavelength range, and a blue color filter that transmits light in a blue wavelength range, and a first light receiving section that receives light transmitted through the color filter section, and capturing a color image based on a gradation value of the red light transmitted through the red color filter, a gradation value of the green light transmitted through the green color filter, and a gradation value of the blue light transmitted through the blue color filter; and a second camera having a spectroscopic element that splits incident light into light of a predetermined spectral wavelength and is capable of changing the spectral wavelength to four or more, and a second light receiving section that receives the light split by the spectroscopic element, and capturing a spectral image of each wavelength split by the spectroscopic element, a first imaging condition setting step of setting a first imaging condition which is an imaging condition of the first camera; a second imaging condition setting step of multiplying the first imaging condition by a predetermined correction coefficient stored in a correction coefficient storage unit to set a second imaging condition which is an imaging condition of the second camera; Implemented the following: the first imaging condition and the second imaging condition include an exposure time, an aperture value, and an ISO sensitivity, the correction coefficients include an exposure correction coefficient for the exposure time, an aperture correction coefficient for the aperture value, and an ISO correction coefficient for the ISO sensitivity, the second imaging condition setting step multiplies the exposure time of the first imaging condition by an exposure correction coefficient to set the exposure time of the second imaging condition, multiplies the aperture value of the first imaging condition by an aperture correction coefficient to set the aperture value of the second imaging condition, and multiplies the ISO sensitivity of the first imaging condition by an ISO correction coefficient to set the ISO sensitivity of the second imaging condition.

Citation Information

Patent Citations

  • Food analysis device

    JP2014126493A

  • Multispectral imaging system

    JP2015502058A

  • Imaging apparatus and imaging program

    JP2018182741A

  • Imaging device, imaging method, and program

    WO2019026618A1