Image processing apparatus and image processing method, imaging apparatus, program, storage medium
The image processing apparatus addresses the limitation of outdated inference results by generating metadata to differentiate and update inference outcomes based on both image file and external data, improving the accuracy and relevance of image analysis.
Patent Information
- Application Number
- JP2022189533
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-02-14
- Filing Date
- 2022-11-28
- Publication Date
- 2026-11-26
- Estimated Expiration
- 2042-11-28
AI Technical Summary
Existing image processing systems fail to update inference results appropriately when reinferring image files, as they do not utilize information outside the captured image data.
An image processing apparatus that generates metadata to distinguish between inference results based on data included and not included in the image file, allowing for appropriate updating of inference results during reinference.
Enables appropriate updating of inference results by incorporating external data, enhancing the accuracy and relevance of image analysis.
Smart Images

Figure 0007956983000001 
Figure 0007956983000002 
Figure 0007956983000003
Abstract
Description
TECHNICAL FIELD
[0001] The present invention relates to an image processing technology for processing an image captured by a digital camera or the like. BACKGROUND ART
[0002] In recent years, artificial intelligence (AI) technology using deep learning or the like has been utilized in various technical fields.
[0003] For example, digital still cameras and the like have conventionally been equipped with a function of detecting a human face from a captured image. Patent Literature 1 discloses a technology for accurately detecting and recognizing not only humans but also animals such as dogs and cats as detection targets.
[0004] On the other hand, as subject detection technology evolves and the importance of detectable information increases, an input image as a detection target and a detected result have become important information that can be utilized in various ways in a subsequent workflow. For example, various types of information estimated from an image using AI technology or the like have become very important input data in various fields such as robot automation and automatic driving of automobiles.
[0005] Furthermore, in a case where an inference result is given to an image file using AI, the value as input data can be increased by using information obtained from various sensors in addition to recorded image data.
[0006] Examples thereof include a live image before imaging, audio data, and various types of sensor information (a sensor in a camera, a sensor of a device linked to the camera).
[0007] Further, with evolution of an AI model, a more accurate inference result can be obtained. Therefore, after inference is performed once, the AI model may be changed and inference may be performed again. RELATED ART DOCUMENT PATENT DOCUMENT
[0008] [Patent Document 1] Japanese Patent Publication No. 2015-99559 [Overview of the Initiative] [Problems that the invention aims to solve]
[0009] However, sometimes the image file does not contain information other than the captured image. When re-inferring to the image file, it is not possible to obtain inference results based on information not included in the image file, and the inference results assigned at the time of capture cannot be properly updated.
[0010] The present invention has been made in view of the above-mentioned problems, and its objective is to provide an image processing device that can appropriately update the inference result when reinferring an image file. [Means for solving the problem]
[0011] The image processing apparatus according to the present invention is a generation means for generating an image file of captured image data, wherein the generation means adds inference results related to the image data as metadata to generate the image file. The reinference means performs reinference based on the data contained in the image file, The generation means generates metadata so as to distinguish between a first inference result based on data included in the image file and a second inference result based on data not included in the image file. Furthermore, when the re-inference means rewrites the inference result, it rewrites it in a way that does not update the second inference result. It is characterized by the following: [Effects of the Invention]
[0012] According to the present invention, the inference results can be appropriately updated when reinferring to an image file. [Brief explanation of the drawing]
[0013] [Figure 1] A block diagram showing the configuration of a digital camera relating to one embodiment of the present invention. [Figure 2]A flowchart illustrating the image processing steps of a digital camera. [Figure 3] A diagram illustrating the contents of image files recorded by a digital camera. [Figure 4] A diagram illustrating the overview of annotation data recorded by a digital camera. [Figure 5] A flowchart illustrating the playback process of a digital camera. [Figure 6] A flowchart illustrating the reinference process for digital cameras. [Figure 7] This diagram shows an overview of the annotation data recorded when reinference is performed using a digital camera. [Modes for carrying out the invention]
[0014] The embodiments will be described in detail below with reference to the attached drawings. Note that the following embodiments do not limit the invention as defined in the claims. While the embodiments describe multiple features, not all of these features are essential to the invention, and the features may be combined in any way. Furthermore, in the attached drawings, identical or similar configurations are given the same reference numerals, and redundant descriptions are omitted.
[0015] Furthermore, while the following description uses a digital camera as an example of an image processing device that performs subject classification using an inference model, it goes without saying that the image processing device of the present invention is not limited to a digital camera. The image processing device of the present invention may be any device that reads images recorded in a recording device and displays them on a display device, such as a smartphone or a tablet PC.
[0016] Figure 1 is a block diagram showing an example configuration of a digital camera 100 according to one embodiment of the present invention.
[0017] In FIG. 1, a barrier 10 is a protective member that covers an imaging unit including a photographing lens 11 of a digital camera 100 to prevent the imaging unit from being soiled or damaged, and its operation is controlled by a barrier control unit 43. The photographing lens 11 forms an optical image on an imaging surface of an imaging element 13. A shutter 12 has an aperture function. The imaging element 13 is composed of, for example, a CCD or a CMOS sensor, and converts the optical image formed on the imaging surface by the photographing lens 11 via the shutter 12 into an electrical signal.
[0018] An A / D converter 15 converts an analog image signal output from the imaging element 13 into a digital image signal. The digital image signal converted by the A / D converter 15 is written into a memory 25 as so-called RAW image data. At the same time, development parameters corresponding to each RAW image data are generated based on information at the time of photographing and written into the memory 25. The development parameters include various parameters used in image processing for recording in a JPEG format or the like, such as exposure settings, white balance, color space, and contrast.
[0019] A timing generator 14 is controlled by a memory control unit 22 and a system control unit 50A, and supplies clock signals and control signals to the imaging element 13, the A / D converter 15, and a D / A converter 21.
[0020] An image processing unit 20 performs various types of image processing such as predetermined pixel interpolation processing, color conversion processing, correction processing, and resizing processing on data from the A / D converter 15 or data from the memory control unit 22. The image processing unit 20 also performs predetermined image processing and arithmetic processing using image data obtained by imaging, and provides the obtained arithmetic result to the system control unit 50A. The system control unit 50A controls an exposure control unit 40 and a focus control unit 41 based on the provided arithmetic result, thereby realizing AF (auto-focus) processing, AE (auto-exposure) processing, and EF (flash pre-emission) processing.
[0021] Furthermore, the image processing unit 20 performs predetermined calculations using the image data obtained from the capture, and also performs AWB (Auto White Balance) processing based on the calculation results obtained. In addition, the image processing unit 20 reads the image data stored in the memory 25 and performs compression or decompression processing, such as compression processing using JPEG, MPEG-4 AVC, or HEVC (High Efficiency Video Coding), or lossless compression processing for uncompressed RAW data. Finally, the image processing unit 20 writes the processed image data to the memory 25.
[0022] Furthermore, the image processing unit 20 performs predetermined calculations using the image data obtained by capturing, and performs various image data editing processes. Specifically, it can perform cropping, which adjusts the display range and size of an image by hiding unnecessary parts around the image data, and resizing, which changes the size of image data or screen display elements by enlarging or reducing them. In addition, it can perform RAW development, which adds image processing such as color conversion to data that has undergone compression or decompression, such as lossless compression of uncompressed RAW data, and converts it to JPEG format to create image data. It can also perform video extraction, which extracts a specified frame from a video format such as MPEG-4, converts it to JPEG format, and saves it.
[0023] Furthermore, the image processing unit 20 also performs processes such as overlaying OSD (On-Screen Display) elements, such as menus and arbitrary characters, onto the display unit 23 along with the image data for display.
[0024] Furthermore, the image processing unit 20 uses the input image data and distance information to the subject obtained from the image sensor 13 during shooting to detect subjects present in the image data and performs subject detection processing to detect the subject's region. The detectable information includes region information such as position and size within the image, as well as detection information such as tilt and certainty.
[0025] The memory control unit 22 controls the A / D converter 15, timing generator 14, image processing unit 20, image display memory 24, D / A converter 21, and memory 25. The RAW image data generated by the A / D converter 15 is written to the image display memory 24 or memory 25 via the image processing unit 20 and memory control unit 22, or directly via the memory control unit 22.
[0026] Image data for display written to the image display memory 24 is displayed on the display unit 23, which is composed of a TFT LCD or the like, via the D / A converter 21. By sequentially displaying the image data obtained by imaging using the display unit 23, it is possible to realize an electronic viewfinder function that displays live images.
[0027] Memory 25 has sufficient storage capacity to store a predetermined number of still images and a predetermined amount of video footage, and stores the captured still images and video footage. Memory 25 can also be used as a workspace for the system control unit 50A.
[0028] The exposure control unit 40 controls the shutter 12, which has an aperture function. The exposure control unit 40 also has a flash metering function in conjunction with the flash 44. The focus control unit 41 adjusts the focus by driving a focus lens (not shown) included in the photographic lens 11 based on instructions from the system control unit 50A. The zoom control unit 42 controls zooming by driving a zoom lens (not shown) included in the photographic lens 11. The flash 44 has an AF assist light projection function and a flash metering function.
[0029] The system control unit 50A controls the entire digital camera 100. The non-volatile memory 51 is an electrically erasable / recordable non-volatile memory, such as an EEPROM. The non-volatile memory 51 stores not only the program but also map information and other data.
[0030] The shutter switch 61 (SW1) turns ON during the operation of the shutter button 60 and instructs the start of operations such as AF processing, AE processing, AWB processing, and EF processing. The shutter switch 62 (SW2) turns ON when the operation of the shutter button 60 is completed and instructs the start of a series of shooting operations including exposure processing, development processing, and recording processing. In the exposure processing, the signal read from the image sensor 13 is written to the memory 25 as RAW image data via the A / D converter 15 and the memory control unit 22. In the development processing, the RAW image data written to the memory 25 is developed using calculations in the image processing unit 20 and the memory control unit 22, and written to the memory 25 as image data. In the recording processing, image data is read from the memory 25, compressed by the image processing unit 20, and after the compressed image data is stored in the memory 25, it is written to the external recording medium 91 via the card controller 90.
[0031] The control unit 63 is equipped with various buttons and touch panels. For example, it includes a power button, a menu button, a mode switch for switching between shooting mode / playback mode / other special shooting modes, a directional pad, a set button, a macro button, and a multi-screen playback page change button. It also includes, for example, a flash setting button, a single-shot / continuous-shot / self-timer switching button, a menu navigation + (plus) button, a menu navigation - (minus) button, a shooting quality selection button, an exposure compensation button, and a date / time setting button.
[0032] The metadata generation and analysis unit 70 generates various metadata, such as the Exif (Exchangeable image file format) standard, to be attached to the image data when recording image data to the external recording medium 91, based on the information at the time of shooting. Furthermore, when reading image data recorded on the external recording medium 91, the metadata generation and analysis unit 70 analyzes the metadata attached to the image data. Examples of metadata include shooting settings, image data information related to the image data, and characteristic information of the subject contained in the image data. Additionally, when recording moving image data, the metadata generation and analysis unit 70 can generate and attach metadata to each frame.
[0033] The power supply 80 consists of primary batteries such as alkaline batteries and lithium batteries, secondary batteries such as NiCd batteries, NiMH batteries and Li-ion batteries, and an AC adapter. The power control unit 81 supplies power from the power supply 80 to each part of the digital camera 100.
[0034] The card controller 90 transmits and receives data to and from an external recording medium 91, such as a memory card. The external recording medium 91 is, for example, a memory card, and records images (still images, videos) taken by the digital camera 100.
[0035] The inference engine 73A performs inference on image data input via the system control unit 50A using the inference model recorded in the inference model recording unit 72A. The inference model can be one input from an external source such as an external device 101 via the communication unit 71A and recorded in the inference model recording unit 72A, or an inference model obtained through retraining by the learning unit 74A. The inference model recording unit 72A maintains a management version so that each inference model can be identified when it is updated externally or through retraining by the learning unit 74A. Furthermore, the inference engine 73A includes a neural network design 73a.
[0036] The neural network design 73a has an intermediate layer (neurons) between the input layer and the output layer. Image data, audio data, and various sensor information (sensor information from the camera, and sensor information from external devices obtained via the communication unit 71A) are input to the input layer from the system control unit 50A. Different neural network designs may be maintained for each type of input. Several layers of neurons are arranged in the intermediate layer. The number of neuron layers is determined as appropriate in the design, and the number of neurons in each layer is also determined as appropriate in the design. The intermediate layer is weighted based on the inference model recorded in the inference model recording unit 72A. Annotation information corresponding to the information input to the input layer is output to the output layer.
[0037] In this embodiment, we assume an inference model that infers the classification of what kind of subject is contained in an image. Image data of various subjects is taken as input data, and the results of their classification (for example, classification of animals such as dogs and cats, or classification of subjects such as people, animals, plants, and buildings) are used as training data to obtain a trained inference model generated by deep learning from an external device 101 or the like. However, since the inference engine 73A can be updated from the external device 101 or the like, it may also handle various other inference models.
[0038] The learning unit 74A retrains the inference model upon request from the system control unit 50A, etc. The learning unit 74A has a training data recording unit 74a, which records information about the training data to be provided to the inference engine 73A. The learning unit 74A can retrain the inference engine 73A using the training data recorded in the training data recording unit 74a and update the inference engine 73A using the inference model recording unit 72A.
[0039] The communication unit 71A has a communication circuit for transmitting and receiving. Specifically, the communication circuit may be wireless communication such as Wi-Fi or Bluetooth (registered trademark), or wired communication such as Ethernet or USB. The communication unit 71A can communicate with the communication unit 71B of the external device 101. The communication unit 71A functions as a communication unit that transmits and receives various information between the system control unit 50A and the system control unit 50B, including not only image files with annotation information created by the inference engine 73A, but also inference models and training data. Furthermore, the information to be transmitted can be restricted depending on whether or not the external device 101 is associated with a camera.
[0040] The external device 101 includes a learning unit 74B, an inference engine 73B, an inference model recording unit 72B, a system control unit 50B, and a communication unit 71B. Alternatively, it may be a device without these components. The learning unit 74B creates an inference model in response to requests from external sources such as the inference engine 73B and the system control unit 50B. The inference model recording unit 72B records the inference model transmitted from the digital camera 100 and the inference model created by the learning unit 74B.
[0041] Next, Figure 2 is a flowchart showing the shooting process of the digital camera 100. The operation of this flowchart is realized by the system control unit 50A executing a program stored in the non-volatile memory 51.
[0042] First, processing begins when a shooting mode is selected using the mode selector switch included in the control unit 63.
[0043] In step S201, the system control unit 50A checks whether the shutter switches 61 (SW1) and 62 (SW2) have been turned ON by the user pressing the shutter button 60 and whether still image capture has been instructed. If still image capture has been instructed, the system control unit 50A proceeds to step S202; otherwise, it proceeds to step S208.
[0044] In step S202, the system control unit 50A performs the shooting process. In the shooting process, the focus control unit 41 and exposure control unit 40 are used to perform AF (autofocus) processing and AE (automatic exposure) processing, and then the image signal output from the image sensor 13 via the A / D converter 15 is stored in the memory 25. Furthermore, the image signal stored in the memory 25 is compressed in JPEG format or MPEG-4 HEVC format by the compression processing unit included in the image processing unit 20 according to the user's settings, and compressed image data is created.
[0045] In step S203, the system control unit 50A uses the image processing unit 20 to perform subject detection processing on the image signal stored in the memory 25 and obtains detection information of subjects included in the image.
[0046] In step S204, the system control unit 50A records the image data created in step S202, the subject detection information acquired in step S203, and various sensor information as an image file on the external recording medium 91. The image file recorded here is recorded in the format shown in Figure 3.
[0047] The image file 300 recorded in this embodiment consists of an area for storing metadata in accordance with the Exif standard and an image data area for recording compressed image data 305. For example, if the user instructs the image file 300 to record in JPEG format, it will be recorded in JPEG format, and the Exif data 301 will be recorded in the APP1 marker, the sensor information 308 in the APP11 marker, etc. Since some sensor information has a large data size, it may be decided which sensor information to record based on the user's settings information, etc. Also, if the user instructs the recording in HEIF (High Efficiency Image File Format) format, it will be recorded in HEIF file format, and the Exif data 301 will be recorded in the Metadata Box, etc. Similarly, if the user instructs the recording in RAW format, the Exif data 301 will be recorded in a predetermined area such as the Metadata Box. The sensor information 308 may be data obtained from a sensor provided in the digital camera 100 (for example, a depth map of image data obtained from the image sensor 13), or it may be data obtained from an external device instead of the digital camera 100. The digital camera 100 may receive data acquired by a sensor on an external device connected to the external device, use the received sensor information as input data for inference, and record it in an image file.
[0048] The subject detection information acquired in step S203 is stored in MakerNote302, which contains manufacturer-specific metadata included in Exif data301, in a format that is generally kept confidential, using the metadata generation and analysis unit 70. Furthermore, the subject detection information is recorded in the annotation data within the annotation information. The annotation information is recorded in APP11, etc. The annotation data is written in text format such as XML or JSON.
[0049] In step S205, the system control unit 50A checks whether inference processing using the inference engine 73A is possible. For example, if the inference engine 73A is currently processing another image, or if the shutter switch 62 (SW2) remains ON due to the operation of the shutter button 60, and continuous shooting is instructed and shooting processing should take priority, then inference processing cannot be performed. If inference processing cannot be performed, the system control unit 50A proceeds to step S208, and if inference processing is possible, it proceeds to step S206.
[0050] In step S206, the system control unit 50A performs inference processing on the image file 300 using the inference engine 73A. In this embodiment, image data, audio data, a live image taken before shooting, and various sensor information are input to the inference engine 73A. The input data may include some data that is not written to the image file, such as audio data and a live image taken before shooting. The various sensor information may be data that is recorded in the image file or data that is not recorded in the image file. During inference, information related to the inference process, such as debugging information and logs related to the operation during the inference process, may be output in addition to the inference result.
[0051] In step S207, the system control unit 50A records the inference results obtained in step S206, along with the management version and debug information of the current inference model held by the inference model recording unit 72A, as inference model management information in an image file. When writing the inference results to the image file 300, it is possible to generate the image file by distinguishing between inference results based on input information included in the image file and inference results based on input information not included in the image file.
[0052] In Figure 3(a), the input information during inference is recorded as metadata in the annotation data 307 within the annotation information 306. An example of annotation data 307 is shown in Figure 4(a).
[0053] If the inference input is image data, indicate that the input is an image. If the inference input is sensor information instead of image data, describe the information about the input sensor. If the sensor information is contained in an image file, provide a link to that sensor information.
[0054] Figures 3(b) and 3(c) show examples where the destination for writing annotation data is separated based on the inference input information.
[0055] In Figure 3(b), the annotation information 306 separates the locations where annotation data is written, such as annotation data 309 and annotation data 310. The inference results from input information contained in the image file are written to annotation data 309, and the inference results from input information not contained in the image file are written to annotation data 310. The annotation data is written as a data box of JUMBF (JPEG Universal Metadata Box Format), etc.
[0056] In Figure 3(c), annotation information is written in multiple parts, such as annotation information 311 and annotation information 313. The inference results from input information contained in the image file are written as annotation data 312 within annotation information 311. The inference results from input information not contained in the image file are written as annotation data 314 within annotation information 313.
[0057] Annotation data 402 in Figure 4(b) shows an example of the structure of annotation data 309 and 312, which are inference results based on input information contained in the image file. Annotation data 403 in Figure 4(b) shows an example of the structure of annotation data 310 and 314, which are inference results based on input information not contained in the image file.
[0058] Furthermore, when inference is performed using both input information contained in the image file and input information not contained in the image file, the inference results are recorded in the image file as annotation data 310 and 314, which represent the inference results using input information not contained in the image file.
[0059] Annotation data 309 and 312, which are inference results based on input information contained in the image file, store inference results using only the data contained in the image file as input information, without using any data not contained in the image file.
[0060] Returning to the explanation in Figure 2, in step S208, when the user inputs a shooting completion instruction via the mode switching switch or power button included in the operation unit 63, the system control unit 50A terminates the shooting process.
[0061] Next, Figure 5 is a flowchart showing the playback process of the digital camera 100. The operation of this flowchart is realized by the system control unit 50A executing a program stored in the non-volatile memory 51.
[0062] First, when the mode selection switch included in the operation unit 63 is set to playback mode, playback processing to view image data recorded on the external recording medium 91 is started. Once playback processing has started, in step S501, the system control unit 50A identifies one image file to be played back and reads that image file from the external recording medium 91 into the memory 25 via the card controller 90.
[0063] In step S502, the system control unit 50A uses the image processing unit 20 to perform decompression and resizing processing on the image file read into the memory 25, according to the recording method. Then, it converts it into display image data, records it in the image display memory 24, and displays it on the display unit 23.
[0064] In step S503, the system control unit 50A uses the metadata generation and analysis unit 70 to check whether the inference results have already been recorded in the currently playing image file. If they have been recorded, the process proceeds to step S504; otherwise, the process proceeds to step S506.
[0065] In step S504, the system control unit 50A checks whether the user has instructed the system to display the inference results recorded in the image file using the operating member included in the operating unit 63. If an instruction has been given, the process proceeds to step S505; otherwise, the process proceeds to step S506.
[0066] In step S505, the system control unit 50A uses the metadata generation and analysis unit 70 to extract information about the inference results from the annotation data 402, and the image processing unit 20 uses the extracted information to superimpose it onto the image data being played back and display it. For example, the system controls the system controls the system controls the system controls the system to use the metadata generation and analysis unit 70 to extract information about the inference results from the annotation data 402 to extract the information about the inference results from the annotation data 402 to the image data to be displayed as text, so that the user can visually see the inference results associated with the image data.
[0067] In step S506, the system control unit 50A checks whether the user has instructed the system to perform inference on the image file being played back using the operating member included in the operating unit 63. For example, this could be done when the system wants to perform inference processing on an image file that could not be processed at the time of capture, or when the inference model has been updated externally and the system wants to perform inference processing again on a recorded image file. If inference is instructed, the system proceeds to step S507; otherwise, the system proceeds to step S511.
[0068] In step S507, the system control unit 50A checks whether the inference results have already been recorded in the image file for which inference was instructed. If they have not been recorded, the system control unit 50A performs the same processing as in S206 and S207 in steps S509 and S510 to record the inference results and inference model management information in the image file. If the inference results have already been recorded, the system control unit 50A performs re-inference processing in step S508.
[0069] However, while the inference process during image capture can use data not included in the image file, such as various sensor information (e.g., sensor data from a vehicle connected to the camera), the inference process here can only use data contained within the image file.
[0070] Here, the reinference process performed in step S508 will be explained using Figure 6. Figure 6 is a flowchart showing the reinference process performed in step S508.
[0071] In step S601, the system control unit 50A uses the inference engine 73A to perform inference using the image data 305, annotation data, and sensor data 308 from the image file 300 as input.
[0072] In step S602, the system control unit 50A acquires the inference result.
[0073] However, while the inference process during image capture can use data not included in the image file, such as various sensor information (e.g., sensor data from a vehicle connected to the camera), the inference process here can only use data contained within the image file.
[0074] In step S603, the system control unit 50A determines whether the inference result obtained in step S602 is in a different output format from the inference result of the annotation data recorded in the image file. A case where the output format is different might be, for example, when the inference engine 73A is updated, enabling more detailed classification, and new items such as sub-items are added to the classification result and output. If the output format is different, the process proceeds to step S605.
[0075] On the other hand, if the output format is the same, in step S604, the system control unit 50A manages the management version of the inference engine 73A managed by the inference model recording unit 72A, and determines whether or not there has been an update to the inference model from an external source. If there has been an update from an external source, the process proceeds to step S605.
[0076] In step S605, the system control unit 50A uses the metadata generation and analysis unit 70 to record the re-inferred results onto the external recording medium 91 by appending them to the original image file 300.
[0077] Figure 7(a) shows an example of annotation data obtained by reinferring and adding annotations to an image with the annotation data shown in Figure 3(a).
[0078] 702 shows the annotation data that was added, and 703 shows the annotation data before reinference. Of the added annotation data, 704 shows the data obtained through reinference, and 705 shows the input data for the originally inferred data (automobile sensor in this figure). This input data is not included in the image file, so it is not changed from the original data.
[0079] Figure 7(b) shows an example of annotation data obtained by reinferring and adding annotations to an image with the annotation data shown in Figure 3(b).
[0080] 707 shows the annotation data that was added, and 708 shows the annotation data before reinference. 709 shows the input data for the originally inferred data (automobile sensor in this figure). This input data is not included in the image file, so it is not changed from the original data.
[0081] In step S606, the system control unit 50A uses the metadata generation and analysis unit 70 to update the inference results of the annotation data of the image file 300 and record them on the external recording medium 91.
[0082] Figure 7(c) shows an example of annotation data when an image with the annotation data in Figure 3(a) is reinferred and updated.
[0083] 710 shows the updated annotation data, and 711 shows the original input data for the inference (automobile sensor in this figure). This input data is not included in the image file, so it is not changed from the original data.
[0084] Figure 7(d) shows an example of annotation data when an image with the annotation data in Figure 3(b) is reinferred and updated.
[0085] 712 shows the updated annotation data, and 713 shows the original input data for the inference (automobile sensor in this figure). This input data is not included in the image file, so it is not changed from the original data.
[0086] In this embodiment, as shown in steps S605 and S606, the input of annotation information can be determined during reinference. This allows annotation information based on information not included in the image file to be retained, while annotation information based on information included in the image file can be updated or added.
[0087] In step S607, the system control unit 50A records (updates) the inference model management information, which is the current information of the inference engine 73A, in the MakerNote 302 of the image file 300.
[0088] While the above example illustrates reinference processing performed within the camera, reinference can also be performed on a PC or in the cloud.
[0089] Returning to the explanation of Figure 5, in step S511, the system control unit 50A uses the operating member included in the operating unit 63 to determine whether or not a playback instruction for another image has been given. If a playback instruction for another image has been given, the system control unit 50A returns to step S501 and repeats the process described above for the instructed playback image.
[0090] On the other hand, if no instruction is given to play any other images, the system control unit 50A determines in step S512 whether or not an instruction has been given to end the playback process. If an instruction has not been given to end the playback process, the process returns to step S503 and the above process is repeated. When an instruction has been given to end the playback process, the playback process is terminated.
[0091] Furthermore, the present invention may be applied to a system consisting of multiple devices (e.g., a host computer, interface devices, scanners, video cameras, etc.) or to a device consisting of a single device (e.g., a copier, a facsimile machine, etc.).
[0092] The disclosures herein include the following image processing devices, imaging devices, image processing methods, programs, and storage media.
[0093] (Item 1) A generation means for generating an image file of captured image data, comprising a generation means for generating an image file by adding inference results related to the image data as metadata, The image processing apparatus is characterized in that the generation means generates metadata so that it can distinguish between a first inference result based on data contained in the image file and a second inference result based on data not contained in the image file.
[0094] (Item 2) The first inference result is an inference result obtained without using data not included in the image file. The second inference result is an inference result based on data not included in the image file, or an inference result based on data not included in the image file and data included in the image file. The image processing apparatus according to item 1, characterized in that it is a picture processing apparatus.
[0095] (Item 3) The image processing apparatus according to item 1 or 2, characterized in that the generation means is capable of generating the image file including the data used for inference.
[0096] (Item 4) The image processing apparatus according to any one of items 1 to 3, characterized in that the generation means can include data acquired from an external device and used for inference in the image file when generating the image file.
[0097] (Item 5) The image processing apparatus according to any one of items 1 to 4, characterized in that the generation means writes the first inference result and the second inference result to a separate area of the image file.
[0098] (Item 6) The image processing apparatus according to any one of items 1 to 5, further comprising a reinference means that performs reinference based on data contained in the image file, wherein the reinference means rewrites the inference result in such a way that the second inference result is not updated when the inference result is rewritten.
[0099] (Item 7) The image processing apparatus according to item 6, characterized in that the reinference means appends the reinference result so as not to update the second inference result when rewriting the inference result.
[0100] (Item 8) The image processing apparatus according to item 7, characterized in that the reinference means appends the reinference result when the output format of the inference result and the output format of the reinference result are different.
[0101] (Item 9) The image processing apparatus according to item 6, characterized in that when the reinference means rewrites the inference result, it updates the first inference result to the reinference result so as not to update the second inference result.
[0102] (Item 10) The image processing apparatus according to item 9, characterized in that the reinference means updates the first inference result to the reinference result when the output format of the inference result and the output format of the reinference result are the same.
[0103] (Item 11) The image processing apparatus according to any one of items 1 to 10, characterized in that data not included in the aforementioned image file includes live images taken before shooting.
[0104] (Item 12) The image processing apparatus according to any one of items 1 to 11, characterized in that data not included in the image file includes audio data.
[0105] (Item 13) An imaging means for capturing an image, An image processing device described in any one of items 1 to 12, An imaging device characterized by comprising:
[0106] (Item 14) A generation process for generating an image file of captured image data, comprising a generation process for generating an image file by adding inference results related to the image data as metadata, The image processing method is characterized in that, in the generation step, metadata is generated so that a first inference result based on data contained in the image file and a second inference result based on data not contained in the image file can be distinguished.
[0107] (Item 15) A program that causes a computer to execute the image processing method described in item 14.
[0108] (Item 16) A computer-readable storage medium containing a program that causes a computer to execute the image processing method described in item 14.
[0109] (Other embodiments) Furthermore, the present invention can also be realized by supplying a program that implements one or more of the functions of the above-described embodiments to a system or device via a network or storage medium, and by having one or more processors in the computer of that system or device read and execute the program. It can also be realized by a circuit (e.g., an ASIC) that implements one or more functions.
[0110] The invention is not limited to the embodiments described above, and various modifications and variations are possible without departing from the spirit and scope of the invention. Accordingly, claims are attached to disclose the scope of the invention. [Explanation of Symbols]
[0111] 13: Image sensor, 20: Image processing unit, 25: Memory, 50A, 50B: System control unit, 72A, 72B: Inference model recording unit, 73A, 73B: Inference engine, 73a: Neural network design, 74A, 74B: Learning unit, 74a: Training data recording unit, 100: Digital camera, 101: External device
Claims
1. A generation means for generating an image file of captured image data, wherein the generation means adds the inference results related to the image data as metadata to generate the image file, A reinference means that performs reinference based on the data contained in the image file, Equipped with, The generation means generates metadata so that it can distinguish between a first inference result based on data contained in the image file and a second inference result based on data not contained in the image file. The re-inference means is characterized in that, when rewriting the inference result, it rewrites the result in such a way that the second inference result is not updated.
2. The first inference result is an inference result obtained without using data not included in the image file. The second inference result is an inference result based on data not included in the image file, or an inference result based on data not included in the image file and data included in the image file. The image processing apparatus according to feature 1.
3. The image processing apparatus according to claim 1, characterized in that the generation means is capable of generating the image file including the data used for inference.
4. The image processing apparatus according to claim 1, characterized in that the generation means can include data acquired from an external device and used for inference in the image file when generating the image file.
5. The image processing apparatus according to claim 1, characterized in that the generation means writes the first inference result and the second inference result to another area of the image file.
6. The image processing apparatus according to claim 1, characterized in that the reinference means appends the reinference result so as not to update the second inference result when rewriting the inference result.
7. The image processing apparatus according to claim 6, characterized in that the reinference means appends the reinference result when the output format of the inference result and the output format of the reinference result are different.
8. The image processing apparatus according to claim 1, characterized in that the re-inference means updates the first inference result to the re-inference result so as not to update the second inference result when rewriting the inference result.
9. The image processing apparatus according to claim 8, characterized in that the reinference means updates the first inference result to the reinference result when the output format of the inference result and the output format of the reinference result are the same.
10. The image processing apparatus according to claim 1, characterized in that the data not included in the aforementioned image file includes live images taken before shooting.
11. The image processing apparatus according to claim 1, characterized in that the data not included in the image file includes audio data.
12. An imaging means for capturing an image, An image processing apparatus according to any one of claims 1 to 11, An imaging device characterized by comprising:
13. A generation process for generating an image file of captured image data, comprising: a generation process for generating an image file by adding inference results related to the image data as metadata; A reinference step that performs reinference based on the data contained in the image file, It has, In the generation step, metadata is generated so that a first inference result based on data contained in the image file and a second inference result based on data not contained in the image file can be distinguished. The image processing method is characterized in that, when rewriting the inference result in the reinference step, the second inference result is not updated.
14. A program for causing a computer to execute the image processing method described in claim 13.
15. A computer-readable storage medium storing a program for causing a computer to execute the image processing method described in claim 13.
Citation Information
Patent Citations
Image processing apparatus, image processing method, and program
JP2015099559A
Recognizing weeds in their natural environment
JP2019520631A
Information processing device, control method of information processing device, and program
JP2020126535A
