Image processing device, image processing method, and program
The image processing device corrects face direction inconsistencies in time-series images by calculating and adjusting face orientation, addressing the anonymization challenges in conventional technologies and enhancing the accuracy of behavior prediction models while protecting privacy.
Patent Information
- Application Number
- PCT/JP2023/007488
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-01
- Publication Date
- 2024-09-06
AI Technical Summary
Conventional image processing technologies fail to properly anonymize face images in time-series data due to defects in the conversion process, leading to inconsistencies in face direction information, which affects the accuracy of behavior prediction models.
An image processing device and method that acquires and anonymizes face images in chronological order, identifies target time points for correction, calculates and adjusts face direction information based on preceding and succeeding frames, and modifies the face images to maintain consistent directionality, ensuring accurate anonymization and privacy protection.
This approach enables appropriate anonymization of time-series images, maintaining face direction information integrity, thereby improving the accuracy of behavior prediction models and ensuring effective privacy protection.
Smart Images

Figure JP2023007488_06092024_PF_FP
Abstract
Description
Image processing device, image processing method, and program
[0001] The present invention relates to an image processing device, an image processing method, and a program.
[0002] Conventionally, techniques for annotating individual facial images to generate training data for use in training a machine learning model have been known. For example, Patent Literature 1 discloses a technique for generating a composite facial image by referencing facial images of multiple people stored in a facial image database, and for enabling annotation operations to be performed on the generated composite facial image.
[0003] Patent No. 5930450
[0004] The technology described in Patent Literature 1 protects the privacy of multiple people by having an annotator perform annotation operations on a composite face image synthesized from the face images of multiple people. However, with the conventional technology, when face images to be anonymized are acquired in a time series, a face image at a certain point in time may not be appropriately anonymized due to a malfunction of the conversion process, and the anonymization process of the time series images may not be appropriately performed.
[0005] The present invention has been made in consideration of these circumstances, and one of its objects is to provide an image processing device, an image processing method, and a program that can appropriately perform anonymization processing of time-series images.
[0006] The image processing device, image processing method, and program according to the present invention employ the following configuration: (1): An image processing device according to one aspect of the present invention includes a first acquisition unit that acquires a plurality of anonymized images obtained by capturing images of a person's face in time series and performing an anonymization process on the image, an identification unit that identifies a target time point among a plurality of time points at which the plurality of anonymized images were captured, a second acquisition unit that acquires directional information of the person's face at time points before and after the target time point, a calculation unit that calculates directional information of the person's face at the target time point based on the acquired directional information of the person's face at time points before and after the target time point, and a correction unit that corrects the person's face captured in the anonymized image at the target time point based on the calculated directional information of the person's face at the target time point.
[0007] (2): In the aspect of (1) above, the image processing device further includes a learning unit that acquires annotated images in which each of the plurality of corrected anonymized images is annotated to indicate whether the facial orientation of the person driving the vehicle is appropriate, and uses the annotated images as learning data to generate a trained model for prompting the person to pay attention to pedestrians outside the vehicle.
[0008] (3): In the aspect (1) above, the anonymization process is a process of changing the face of the person to the face of another person while aligning the orientation of the person's face before and after the anonymization process.
[0009] (4) In the aspect (1) above, the identification unit identifies, as the target time point, a time point at which the face direction information of the person before and after the anonymization process does not match.
[0010] (5) In the aspect (1) above, the identification unit identifies, as the target time point, a time point at which there is no directional information about the person's face in the image before the anonymization process is performed.
[0011] (6): Another aspect of the image processing method of the present invention involves a computer acquiring a plurality of anonymized images obtained by capturing images of a person's face in chronological order and performing an anonymization process, identifying a target time point among a plurality of time points at which the plurality of anonymized images were captured, acquiring directional information of the person's face at time points before and after the target time point, calculating directional information of the person's face at the target time point based on the acquired directional information of the person's face at time points before and after the target time point, and correcting the person's face captured in the anonymized image at the target time point based on the calculated directional information of the person's face at the target time point.
[0012] (7): Another aspect of the present invention provides a program that causes a computer to acquire a plurality of anonymized images obtained by capturing images of a person's face in chronological order and performing an anonymization process, identify a target time point among a plurality of time points at which the plurality of anonymized images were captured, acquire face direction information of the person at time points before and after the target time point, calculate face direction information of the person at the target time point based on the acquired face direction information of the person at time points before and after the target time point, and correct the face of the person depicted in the anonymized image at the target time point based on the calculated face direction information of the person at the target time point.
[0013] According to the above aspects (1) to (7), the anonymization process of the time-series images can be appropriately performed.
[0014] 1 is a diagram illustrating an overview of a system 1 including an image processing device 100 according to the present embodiment. FIG. 2 is a diagram illustrating an example of the functional configuration of the image processing device 100 according to the present embodiment. FIG. 3 is a diagram illustrating an example of an interior image and an exterior image acquired from a vehicle M1. FIG. 4 is a diagram illustrating processing executed by an image processing unit 130. FIG. 5 is a diagram illustrating processing executed by an image conversion unit 140. FIG. 6 is a diagram illustrating an example of a time-series interior image converted by the image conversion unit 140. FIG. 7 is a diagram illustrating a calculation process executed by an image correction unit 150. FIG. 8 is a diagram illustrating a correction process executed by the image correction unit 150. FIG. 9 is a diagram illustrating an example of annotation work executed by an annotator. FIG. 10 is a diagram illustrating an example of driving assistance using a trained model 180. FIG. 11 is a diagram illustrating an example of the flow of processing executed by the image conversion unit 140. FIG. 12 is a diagram illustrating an example of the flow of processing executed by the image correction unit 150.
[0015] Hereinafter, embodiments of an image processing device, an image processing method, and a program according to the present invention will be described with reference to the drawings.
[0016] [Overview] Fig. 1 is a diagram showing an overview of a system 1 including an image processing device 100 according to this embodiment. As shown in Fig. 1, the system 1 includes at least one vehicle M1 and one vehicle M2, the image processing device 100, and a terminal device 200. For convenience of explanation, the vehicle M1 and the vehicle M2 are illustrated as different vehicles, but these vehicles may be the same.
[0017] The vehicle M1 is, for example, a hybrid vehicle, an electric vehicle, or the like, and includes at least a camera that captures images of the interior of the vehicle M1 and a camera that captures images of the exterior of the vehicle M1. While the vehicle M1 is traveling, the vehicle M1 transmits images of the interior and exterior of the vehicle captured by these cameras to the image processing device 100 via a network NW such as a cellular network, a Wi-Fi network, or the Internet.
[0018] The image processing device 100 is a server device that, upon receiving captured image data including vehicle interior images and vehicle exterior images from the vehicle M1, performs image conversion, described below, on the received captured image data. This image conversion is a process for protecting the privacy of people appearing in the vehicle interior images and vehicle exterior images. The image processing device 100 transmits the obtained converted image data to the terminal device 200 via the network NW.
[0019] The terminal device 200 is a terminal device such as a desktop personal computer or a smartphone. When the user of the terminal device 200 acquires converted image data from the image processing device 100, the user performs an annotation assignment process (described later) on the acquired converted image data. When the annotation assignment process is completed, the user of the terminal device 200 transmits the annotated image data, in which the annotations have been assigned to the converted image data, to the image processing device 100.
[0020] When the image processing device 100 receives annotated image data from the terminal device 200, it uses the received annotated image data as learning data and generates a trained model (described later) using an arbitrary machine learning model. This trained model is, for example, a behavior prediction model that, in response to an input of an exterior image of a vehicle, outputs the predicted behavior (trajectory) of a person depicted in the exterior image of the vehicle, or, in response to input of an interior image and an exterior image of the vehicle, takes into account the line of sight of the driver depicted in the interior image of the vehicle and calls attention to a pedestrian depicted in the exterior image of the vehicle.
[0021] The image data used as the training data at this time may be annotated image data in which annotations are added to converted image data, or may be annotated image data in which the converted image data is reconverted into captured image data while leaving the annotations intact (i.e., annotated image data in which annotations are added to captured image data). By using annotated image data in which annotations are added to captured image data as training data, it is possible to use training data that is more realistic and in which the effects of image conversion have been removed.
[0022] After generating the trained model, the image processing device 100 distributes the generated trained model to the vehicle M2 via the network NW. Like the vehicle M1, the vehicle M2 is, for example, a hybrid vehicle or an electric vehicle. While the vehicle M2 is traveling, at least one of an interior image and an exterior image captured by a camera is input into the trained model, thereby obtaining behavior prediction data for people present around the vehicle M2. The driver of the vehicle M2 can refer to the obtained behavior prediction data and use it to drive the vehicle M2. Each process will be described in more detail below.
[0023] [Functional Configuration of Image Processing Device] FIG. 2 is a diagram illustrating an example of the functional configuration of an image processing device 100 according to this embodiment. The image processing device 100 includes, for example, a communication unit 110, a transmission / reception control unit 120, an image processing unit 130, an image conversion unit 140, an image correction unit 150, a trained model generation unit 160, and a storage unit 170. These components are implemented by, for example, a hardware processor such as a CPU (Central Processing Unit) executing a program (software). Some or all of these components may be implemented by hardware (including circuitry) such as an LSI (Large Scale Integration), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a GPU (Graphics Processing Unit), or may be implemented by a combination of software and hardware. The program may be stored in advance in a storage device (a storage device with a non-transitory storage medium) such as a hard disk drive (HDD) or flash memory, or may be stored in a removable storage medium (a non-transitory storage medium) such as a DVD or CD-ROM, and installed by inserting the storage medium into a drive device. The storage unit 170 is, for example, an HDD, flash memory, or random access memory (RAM). The storage unit 170 stores, for example, captured image data 172, converted image data 174, annotation image data 176, annotated image data 178, and a trained model 180. For convenience of explanation, the image processing device 100 includes a trained model generation unit 160 and a storage unit 170 that stores the trained model 180. However, the function of generating a trained model and the generated trained model may be stored in a server device different from the image processing device 100. The trained model generation unit 160 is an example of a "learning unit."
[0024] The communication unit 110 is an interface that communicates with the communication device 10 of the vehicle M via the network NW. For example, the communication unit 110 includes a network interface card (NIC) and an antenna for wireless communication.
[0025] The transmission / reception control unit 120 transmits and receives data to and from the vehicles M1 and M2 and the terminal device 200 using the communication unit 110. More specifically, the transmission / reception control unit 120 first acquires from the vehicle M1 a plurality of interior and exterior images captured in time series by a camera mounted on the vehicle M1. The time series in this case refers to images captured at a predetermined interval (e.g., every second) during one driving cycle from when the vehicle M1 starts to when it stops.
[0026] Fig. 3 is a diagram showing an example of an interior image and an exterior image acquired from vehicle M1. The left part of Fig. 3 shows an interior image acquired from vehicle M1, and the right part of Fig. 3 shows an exterior image acquired from vehicle M1. As shown in the left part of Fig. 3, the interior image is captured with a camera installed so as to capture at least the facial area of the driver of vehicle M1, and as shown in the right part of Fig. 3, the exterior image is captured with a camera installed so as to capture at least the area ahead in the direction of travel of vehicle M1. The transmission / reception control unit 120 associates the interior image and the exterior image acquired from vehicle M1 with an image ID and stores them in the storage unit 170 as captured image data 172.
[0027] 4 is a diagram illustrating the processing executed by the image processing unit 130. The image processing unit 130 performs image processing on the captured image data 172 to acquire information such as image attributes, facial attributes, and orientation of each image included in the captured image data 172. More specifically, when an image is input, the image processing unit 130 acquires image attributes indicating whether each image included in the captured image data 172 is an in-vehicle image or an outside-vehicle image using a trained model that outputs a classification result indicating whether the image is an in-vehicle image or an outside-vehicle image.
[0028] Furthermore, when an image is input, the image processing unit 130 acquires face attributes of each image included in the captured image data 172 using a trained model that outputs, for all faces included in the image, the face area, the face size (area of the face area), and the distance from the image capture position to the face. In FIG. 3 , as an example, a face area FA1 of person P1 is acquired from the inside-of-vehicle image, and a face area FA2 of person P2, a face area FA3 of person P3, and a face area FA4 of person P4 are acquired from the outside-of-vehicle image. For convenience, the face areas FA1, FA2, FA3, and FA4 are acquired as rectangular areas, but the present invention is not limited to such a configuration. For example, a trained model that acquires face areas along the contours of the faces of people may be used.
[0029] Furthermore, the image processing unit 130 acquires directional information of faces captured in each image included in the captured image data 172 using a trained model that, upon input of an image, outputs at least one of the face direction and the gaze direction for all faces included in the image, for example, as a vector. More specifically, for an image of the captured image data 172 having an attribute of an in-vehicle image, the image processing unit 130 acquires directional information using a trained model that, upon input of the image, outputs the face direction and the gaze direction for all faces included in the image. On the other hand, for an image of the captured image data 172 having an attribute of an outside-vehicle image, the image processing unit 130 acquires directional information using a trained model that, upon input of the image, outputs the face direction for all faces included in the image. This is because, compared to an outside-vehicle image, faces captured in an inside-vehicle image generally tend to be closer to the shooting position and are larger enough to allow the gaze direction to be extracted. In Figure 3, as an example, the face direction FD1 and gaze direction ED1 of person P1 are obtained from the in-vehicle image, and the face direction FD2 of person P2, the face direction FD3 of person P3, and the face direction FD4 of person P4 are obtained from the outside-vehicle image.
[0030] When the image processing unit 130 acquires image attributes, facial attributes, and direction information for each image of the captured image data 172, the image processing unit 130 records the image attributes, facial attributes, and direction information in association with the image. Note that, as an example, in the above description, the image processing unit 130 acquires the image attributes, facial attributes, and direction information using a trained model, but the present invention is not limited to such a configuration, and the image processing unit 130 may acquire the image attributes, facial attributes, and direction information using any known method.
[0031] The image conversion unit 140 performs a process on the captured image data 172 processed by the image processing unit 130 to replace the face of a person depicted in each image with the face of another person without changing the directional information of the person, using any face conversion software equipped with such a function. FIG. 5 is a diagram for explaining the process performed by the image conversion unit 140. As shown in FIG. 5, the image conversion unit 140 replaces the faces of persons P1, P2, and P3 shown in FIG. 4 with the faces of other persons without changing the gaze direction ED1 and facial directions FD1, FD2, and FD3. On the other hand, the face of person P4 is covered with a mosaic MS as a result of the mosaic process performed by the image conversion unit 140.
[0032] That is, the image conversion unit 140 determines whether to replace each face captured in each image of the captured image data 172 with the face of another person or to apply mosaic processing based on the facial attributes of the face. More specifically, for each face captured in each image of the captured image data 172, the image conversion unit 140 determines whether the size of the face is equal to or greater than a first threshold Th1, and if it is determined that the size of the face is equal to or greater than the first threshold Th1, it determines to replace the face with the face of another person. On the other hand, if it is determined that the size of the face is less than the first threshold Th1, the image conversion unit 140 determines to apply mosaic processing to the face. Replacing the face of a person captured in a captured image with the face of another person or applying mosaic processing is an example of an "anonymization process."
[0033] Furthermore, for each face appearing in each image of the captured image data 172, the image conversion unit 140 determines whether the distance to the face is equal to or less than a second threshold Th2. If it is determined that the distance to the face is equal to or less than the second threshold Th2, the image conversion unit 140 determines to replace the face with the face of another person. On the other hand, if it is determined that the distance to the face is greater than the second threshold Th2, the image conversion unit 140 determines to apply mosaic processing to the face. The image conversion unit 140 repeatedly performs these determination processes the number of times equal to the number of faces appearing in the image, and either replaces each face with the face of another person or applies mosaic processing according to the determination results. The image conversion unit 140 stores the image data obtained by performing these processes on the captured image data 172 in the storage unit 170 as converted image data 174. This allows for the selection of data useful as learning data for generating a behavior prediction model, and also allows for the privacy of the people appearing in each image to be protected when annotators, described below, perform annotation work.
[0034] Note that at least one of the process of determining whether the face size is equal to or greater than the first threshold Th1 and the process of determining whether the face distance is equal to or less than the second threshold Th2 may be performed. When both processes are performed, the image conversion unit 140 may determine to replace the face with the face of another person when the face size is equal to or greater than the first threshold Th1 and the face distance is equal to or less than the second threshold Th2, or may determine to replace the face with the face of another person when the face size is equal to or greater than the first threshold Th1 or the face distance is equal to or less than the second threshold Th2.
[0035] FIG. 6 shows an example of time-series interior vehicle images converted by the image conversion unit 140. FIG. 6 shows an example of time-series interior vehicle images converted at three time points, t, t+1, and t+2. These time-series interior vehicle images were captured and facially converted from the same person. However, as shown at time point t+1 in FIG. 6 , due to a malfunction of the facial conversion software, facial conversion may be performed without maintaining the person's facial orientation information. Using such converted image data as training data, even if facial images are converted without maintaining the person's facial orientation information, is undesirable because it can degrade the accuracy of the behavior prediction model. Therefore, the image correction unit 150 performs the process described below to correct converted images in which the person's facial orientation information was not maintained before and after conversion.
[0036] The image correction unit 150 first inputs the converted image at each time point into the trained model, which outputs at least one of the face direction and the gaze direction, and obtains the face direction FD' or gaze direction ED' in the converted image. Next, the image correction unit 150 determines whether the face direction FD' or gaze direction ED' of the face of the person captured in the converted image substantially matches the face direction FD or gaze direction ED of the face captured in the captured image before conversion. More specifically, for example, the image correction unit 150 calculates the angular difference between a vector representing the face direction FD in the captured image before conversion and a vector representing the face direction FD' in the converted image, and determines that the face direction FD and the face direction FD' substantially match if the calculated angular difference is within a threshold. The same applies to the gaze direction ED.
[0037] When the image correction unit 150 determines that the facial direction FD' or the gaze direction ED' of the face of the person depicted in the converted image does not substantially match the facial direction FD or the gaze direction ED of the face depicted in the captured image before conversion, the image correction unit 150 specifies the time point corresponding to the image as the target time point for which image correction is required. That is, in the case of Figure 6, the image correction unit 150 specifies the time point t+1 as the target time point.
[0038] When the image correction unit 150 identifies a target time point at which image correction is required, it calculates the directional information of the person's face at the target time point based on the directional information of the person's face at times before and after the identified target time point. Figure 7 is a diagram for explaining the calculation process executed by the image correction unit 150. Figure 7 shows, as an example, a case where the image correction unit 150 calculates directional information at time point t+1 based on directional information at time point t and time point t+2.
[0039] 7 , the image correction unit 150 calculates a vector representing the gaze direction ED1′(t+1) at time t+1 by calculating the average vector of the vector representing the gaze direction ED1′(t) at time t and the vector representing the gaze direction ED1′(t+2) at time t+2. Similarly, the image correction unit 150 calculates a vector representing the facial direction FD1′(t+1) at time t+1 by calculating the average vector of the vector representing the facial direction FD1′(t) at time t and the vector representing the facial direction FD1′(t+2) at time t+2. Note that the calculation of the facial direction information of a person at a target time is not limited to taking the average of vectors representing directional information at previous and subsequent time points, as long as the directional information at least at these previous and subsequent time points is taken into consideration. Furthermore, in Figure 7, an example is described in which direction information at a target time is calculated using direction information ED1' and FD1' at previous and next time points in the transformed image, but this embodiment is not limited to such a configuration, and an average vector may be calculated using direction information ED1(t), ED1(t+2), FD1(t), and FD1(t+2) at previous and next time points in the pre-transformed image, and this may be used as direction information at the target time.
[0040] After calculating the directional information of the person's face at the target time, the image correction unit 150 corrects the person's face in the converted image based on the calculated directional information. FIG. 8 is a diagram for explaining the correction process performed by the image correction unit 150. FIG. 8 illustrates, as an example, a case in which the image correction unit 150 corrects the person's face in the converted image at time t+1 based on the calculated directional information at time t+1. The image correction unit 150, for example, specifies the calculated directional information at time t+1 to the face conversion software (which has a converted face correction function in addition to a face conversion function) used by the above-mentioned image conversion unit 140, and the face conversion software corrects the person's face in the converted image to conform to the specified directional information. The correction of the directional information of the face in the image may be performed using a known method. This makes it possible to obtain a time-series converted image in which the directional information is correctly preserved.
[0041] Furthermore, the image correction unit 150 may identify, as a target time point requiring image correction, a time point at which directional information of a person's face is not present in the image before the anonymization process (in other words, acquisition of directional information failed). Here, a time point at which directional information is not present refers to a case where the trained model fails to output directional information due to, for example, light hitting the person's face or the presence of an obstructing object between the person and the camera. Furthermore, in this case, failure includes not only the failure to output directional information, but also the failure to obtain the person's face itself in the converted image, or low reliability of the output directional information. Even in such cases, the image correction unit 150 can calculate directional information at the target time point based on directional information from previous and subsequent time points using the above-described method, and correct the converted image based on the calculated directional information.
[0042] When the image correction unit 150 completes image correction for all identified target time points, it stores the corrected converted image data 174 in the storage unit 170 as annotation image data 176. At this time, the converted image data 174 may be stored in the storage unit 170 as annotation image data 176 together with information indicating the purpose of use, for example, information indicating that the converted image data 174 is annotation image data for generating a behavior prediction model that predicts the behavior of a person depicted in the input image. The transmission / reception control unit 120 transmits the annotation image data 176 to the terminal device 200. An annotator, who is a user of the terminal device 200, generates annotated image data by annotating the annotation image included in the received annotation image data 176 and transmits the annotated image data to the image processing device 100. The image processing device 100 stores the received annotated image data in the storage unit 170 as annotation image data 178.
[0043] FIG. 9 is a diagram illustrating an example of annotation work performed by an annotator. The left part of FIG. 9 shows annotations to a converted image of an interior image, and the right part of FIG. 9 shows annotations to a converted image of an exterior image. The annotator assigns information to the converted image of the interior image, indicating whether the driver's gaze direction ED1 shown in the converted image is appropriate for the situation shown in the converted image of the exterior image at the same time (e.g., 1 if appropriate, 0 if inappropriate). For example, in the case of FIG. 9 , the converted image of the exterior image indicates the presence of a pedestrian on the left side of the vehicle's traveling direction, while the converted image of the interior image indicates the driver is looking leftward. In other words, since it is assumed that the driver is paying appropriate attention to pedestrians, the annotator assigns information indicating that the driver's gaze direction ED1 is appropriate (i.e., 1). Note that Figure 9 shows, as an example, a scene in which an annotator performs annotation work on a face whose gaze direction ED1 has not been corrected. However, if the gaze direction ED1 is corrected, the annotator will perform annotation work while referring to the corrected gaze direction ED1'.
[0044] Furthermore, the annotator specifies a risk area RA for the converted image of the vehicle exterior image, excluding, for example, people who have been pixelated. Because the image conversion unit 140 and the image correction unit 150 convert the face of the person in the original image into the face of another person, the privacy of that person is protected. At the same time, because the face direction and gaze direction of the person are maintained even after conversion, the annotator can accurately specify the risk area RA while referring to the face direction and gaze direction of the other person in the converted image. This makes it possible to generate learning data that is effective for training a machine learning model while protecting the privacy of the person in the face image.
[0045] When the annotated image data 178 is stored in the storage unit 170, the trained model generation unit 160 uses an arbitrary machine learning model and the annotated image data 178 as training data to generate a trained model. As described above, this trained model is, for example, a behavior prediction model that, in response to an input of an exterior vehicle image, outputs the predicted behavior (trajectory) of a person depicted in the exterior vehicle image, or, in response to input of an interior vehicle image and an exterior vehicle image, takes into account the line of sight of the driver depicted in the interior vehicle image to call attention to a pedestrian depicted in the exterior vehicle image. The trained model generation unit 160 stores the generated trained model in the storage unit 170 as the trained model 180.
[0046] When the trained model 180 is generated, the transmission / reception control unit 120 distributes the generated trained model 180 to the vehicle M2 via the network NW. When the vehicle M2 receives the trained model 180, the vehicle M2 uses the trained model 180 (more precisely, an application program that utilizes the trained model 180) to provide driving assistance to the driver of the vehicle M2.
[0047] FIG. 10 is a diagram illustrating an example of driving assistance using a trained model 180. FIG. 10 illustrates an example in which a vehicle M2 inputs interior and exterior images captured by a camera mounted thereon while traveling into the trained model 180, and the trained model 180 outputs information to an HMI (human machine interface) to alert the driver to a pedestrian captured in the exterior image, taking into account the driver's line of sight captured in the interior image. As shown in FIG. 10 , for example, the HMI displays a risk area RA2 corresponding to a pedestrian P5 captured in the exterior image, and, if the driver's line of sight captured in the interior image is not directed toward the pedestrian P5, outputs a warning message ("Please be careful not to look away from the road") as text or audio information. This allows for driving assistance that takes into account the driver's state.
[0048] Next, the flow of processing executed by the image processing device 100 will be described with reference to Figures 11 and 12. Figure 11 is a diagram showing an example of the flow of processing executed by the image conversion unit 140. The processing shown in Figure 11 is executed, for example, when an interior image or an exterior image is captured by a camera mounted on the vehicle M1 and processed by the image processing unit 130.
[0049] First, the image conversion unit 140 acquires a captured image included in the captured image data 172 that has been processed by the image processing unit 130 (step S100). Next, the image conversion unit 140 selects one face that appears in the acquired captured image (step S102).
[0050] Next, the image conversion unit 140 determines whether the size of the selected face is equal to or greater than a first threshold Th1 (step S104). If it is determined that the size of the selected face is equal to or greater than the first threshold Th1, the image conversion unit 140 converts the selected face into the face of another person (step S106). On the other hand, if it is determined that the size of the selected face is less than the first threshold Th1, the image conversion unit 140 next determines whether the distance of the selected face is equal to or less than a second threshold Th2 (step S108).
[0051] If it is determined that the distance of the selected face is equal to or less than the second threshold Th2, the image conversion unit 140 proceeds to step S106 and converts the face into the face of another person. On the other hand, if it is determined that the distance of the selected face is greater than the second threshold Th2, the image conversion unit 140 applies mosaic processing to the face (step S110). Next, the image conversion unit 140 determines whether the processing has been performed on all faces captured in the acquired captured image (step S112).
[0052] If it is determined that the processing has been performed on all faces appearing in the acquired captured image, the image conversion unit 140 acquires the image obtained by performing the processing on all faces as a converted image and stores it in the storage unit 170 as converted image data 174 (step S114). On the other hand, if it is determined that the processing has not been performed on all faces appearing in the acquired captured image, the image conversion unit 140 returns the processing to step S102. This ends the processing of this flowchart.
[0053] Fig. 12 is a diagram showing an example of the flow of processing executed by the image correction unit 150. The processing shown in Fig. 12 is executed, for example, at the timing when a time-series converted image is obtained by applying the above-described conversion processing to a time-series captured image taken during one driving cycle of the vehicle M1 from start to stop.
[0054] First, the image correction unit 150 functions as a first acquisition unit to acquire a time-series converted image (step S200). Next, the image correction unit 150 functions as an identification unit to identify a target time point of a person that needs image correction from the acquired time-series converted image (step S202).
[0055] Next, the image correction unit 150 functions as a second acquisition unit to acquire face direction information of the person at time points before and after the identified target time point (step S204). Next, the image correction unit 150 functions as a calculation unit to calculate face direction information of the person at the target time point based on the acquired face direction information of the person at time points before and after the target time point (step S206). Next, the image correction unit 150 functions as a correction unit to correct the converted image based on the calculated face direction information of the person at the target time point (step S208).
[0056] Next, the image correction unit 150 determines whether all target time points have been identified (step S210). If the image correction unit 150 determines that all target time points have not been identified, the process returns to step S202, and another target time point is identified (step S212). On the other hand, if the image correction unit 150 determines that all target time points have been identified, the image correction unit 150 acquires the converted images of the time series for which correction has been completed as annotation images, and causes the transmission / reception control unit 120 to transmit the acquired annotation images to the terminal device 200 (step S212). This ends the process of this flowchart.
[0057] According to the present embodiment described above, a plurality of anonymized images are obtained by capturing images of a person's face in time series and performing an anonymization process, a target time point is identified from among the multiple time points at which the multiple anonymized images were captured, information on the direction of the person's face at time points before and after the target time point is acquired, information on the direction of the person's face at the target time point is calculated based on the acquired information on the direction of the person's face at time points before and after the target time point, and the face of the person captured in the anonymized image at the target time point is corrected based on the calculated information on the direction of the person's face at the target time point. This allows the anonymization process of time-series images to be performed appropriately.
[0058] [Modification] In the present embodiment, an example has been described in which the image processing device 100 is implemented as a server device separate from the vehicle M1. However, as a modification of the present embodiment, the image processing device 100, more specifically, a device having at least the functions of the image processing unit 130, the image conversion unit 140, and the image correction unit 150, may be mounted on the vehicle M1 as an in-vehicle device. In this case, the in-vehicle device performs processing by the image processing unit 130 described above on an image captured by the in-vehicle camera, anonymization by the image conversion unit 140, and correction by the image correction unit 150. The in-vehicle device then transmits the anonymized image after correction to an external image server.
[0059] When the image server receives an anonymized image from the vehicle M1, it stores the received anonymized image in a storage unit as annotation image data, and either transmits the annotation image data to the annotator's terminal device 200 or allows the terminal device 200 to access the annotation image data. When the image server receives annotated image data from the terminal device 200, it generates a trained model 180 based on the annotated image data and distributes the generated trained model 180 to the vehicle M2. This approach, similar to the present embodiment, can generate training data effective for training a machine learning model while protecting the privacy of persons depicted in facial images. Furthermore, according to this modification, the in-vehicle device performs an anonymization process on the image before transmitting the anonymized image to the image server, thereby further reliably protecting the privacy of persons depicted in facial images.
[0060] Furthermore, as another aspect, the in-vehicle device may have only some of the functions of the image processing unit 130, the image conversion unit 140, and the image correction unit 150, and the image server may have the remaining functions. For example, the in-vehicle device may have the functions of the image processing unit 130 and the image conversion unit 140, and the image server may have the function of the image correction unit 150, or the in-vehicle device may have the function of the image processing unit 130, and the image server may have the functions of the image conversion unit 140 and the image correction unit 150.
[0061] The above-described embodiment can be expressed as follows: An image processing device comprising: a storage medium storing computer-readable instructions; and a processor connected to the storage medium, wherein the processor is configured to: acquire a plurality of anonymized images obtained by capturing images of a person's face in time series and performing an anonymization process on the image, identify a target time point from among a plurality of time points at which the plurality of anonymized images were captured, acquire information on the direction of the person's face at time points before and after the target time point, calculate information on the direction of the person's face at the target time point based on the acquired information on the direction of the person's face at time points before and after the target time point, and correct the face of the person captured in the anonymized image at the target time point based on the calculated information on the direction of the person's face at the target time point.
[0062] The above describes the form for carrying out the present invention using an embodiment, but the present invention is not limited to such an embodiment, and various modifications and substitutions can be made within the scope that does not deviate from the gist of the present invention.
[0063] 100 Image processing device 110 Communication unit 120 Transmission / reception control unit 130 Image processing unit 140 Image conversion unit 150 Image correction unit 160 Trained model generation unit 170 Storage unit 172 Captured image data 174 Converted image data 176 Annotation image data 178 Annotated image data 180 Trained model
Claims
1. An image processing device comprising: a first acquisition unit that acquires a plurality of anonymized images obtained by capturing images of a person's face in chronological order and performing an anonymization process; an identification unit that identifies a target time point among a plurality of time points at which the plurality of anonymized images were captured; a second acquisition unit that acquires directional information of the person's face at time points before and after the target time point; a calculation unit that calculates directional information of the person's face at the target time point based on the acquired directional information of the person's face at time points before and after the target time point; and a correction unit that corrects the face of the person depicted in the anonymized image at the target time point based on the calculated directional information of the person's face at the target time point.
2. The image processing device according to claim 1, further comprising a learning unit that acquires annotated images in which each of the plurality of corrected anonymized images is annotated to indicate whether the facial orientation of the person driving the vehicle is appropriate or not, and uses the annotated images as learning data to generate a trained model for encouraging the person to pay attention to pedestrians outside the vehicle.
3. The image processing device according to claim 1, wherein the anonymization process changes the face of the person to the face of another person while matching the orientation of the face of the person before and after the anonymization process.
4. The image processing device according to claim 1, wherein the identification unit identifies, as the target time point, a time point at which the person's face direction information does not match before and after the anonymization process.
5. The image processing device according to claim 1, wherein the identification unit identifies, as the target time point, a time point at which no directional information of the person's face is present in the image before the anonymization process is performed.
6. An image processing method in which a computer acquires a plurality of anonymized images obtained by capturing images of a person's face in chronological order and performing an anonymization process, identifies a target time point among a plurality of time points at which the plurality of anonymized images were captured, acquires directional information of the person's face at time points before and after the target time point, calculates directional information of the person's face at the target time point based on the acquired directional information of the person's face at time points before and after the target time point, and corrects the face of the person depicted in the anonymized image at the target time point based on the calculated directional information of the person's face at the target time point.
7. A program which causes a computer to acquire a plurality of anonymized images obtained by capturing images of a person's face in chronological order and applying anonymization processing, identify a target time point among a plurality of time points at which the plurality of anonymized images were captured, acquire face direction information of the person at time points before and after the target time point, calculate face direction information of the person at the target time point based on the acquired face direction information of the person at time points before and after the target time point, and correct the face of the person depicted in the anonymized image at the target time point based on the calculated face direction information of the person at the target time.
Citation Information
Patent Citations
Face information transmitting device, face information transmitting method and recording medium with its program recorded
JP2006331065A
Image recognition system, image recognition device, image recognition method and computer program
JP2016001447A
Face Anonymization in Digital Images
US20220148243A1
