Image processing device, image processing method, and program
The image processing device reliably detects and anonymizes face areas in images by extracting human regions and applying size and distance-based thresholds, addressing misidentification issues and enhancing the accuracy of behavior prediction models.
Patent Information
- Application Number
- PCT/JP2023/007500
- 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 face challenges in reliably detecting the face area of an image for anonymization processing, leading to potential misidentification of non-face features as faces, which can affect the accuracy of behavior prediction models.
An image processing device and method that extracts the face region from a human region in an image, performs anonymization by replacing or masking faces based on size and distance thresholds, and maintains direction information to prevent erroneous face detection, using a trained model for accurate anonymization and privacy protection.
Enhances the reliability of face area detection and anonymization, improving the accuracy of behavior prediction models by correctly identifying and processing face areas, thus maintaining privacy and ensuring accurate data for learning models.
Smart Images

Figure JP2023007500_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] A technique for identifying a face area of a person from an image captured by a camera has been known. For example, Patent Document 1 describes a technique for preventing erroneous detection of a pattern on a wall in front of an image input unit as a face, even if the pattern on the wall resembles a person's face.
[0003] Japanese Patent Application Laid-Open No. 2005-242777
[0004] The technology described in Patent Literature 1 reliably detects the face of a person by turning on a light that illuminates the face of the person when a motion sensor detects the arrival of the person. However, with the conventional technology, there are cases where it is not possible to more easily and reliably detect the face area of an image to be anonymized.
[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 more easily and reliably detect facial areas in images that are to be anonymized.
[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 an extraction unit that extracts a face region of a person from an input image, and a conversion unit that performs an anonymization process on the extracted face region, wherein the extraction unit extracts a person region representing the person from the input image, and extracts the face region only from the extracted person region.
[0007] (2): In the aspect (1) above, the image processing device is such that the extraction unit further extracts one or more part areas representing body parts of the person from the person area, and extracts the face area from the person area based on the positions of the one or more part areas.
[0008] (3): In the aspect (1) above, the conversion unit performs the anonymization process when the size of the extracted face area is equal to or greater than a first threshold and the distance from the shooting position of the input image to the face area is equal to or less than a second threshold.
[0009] (4) 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.
[0010] (5): In the aspect of (4) above, the image processing device further includes a learning unit that acquires an annotated image in which the input image that has been subjected to the anonymization process is annotated with an annotation indicating whether the direction of the face of the person driving the vehicle is appropriate, and uses the annotated image as learning data to generate a trained model for prompting the person to pay attention to pedestrians outside the vehicle.
[0011] (6): Another aspect of the image processing method of the present invention is a method in which a computer extracts a facial region of a person from an input image and performs an anonymization process on the extracted facial region, wherein the extraction involves extracting a person region representing the person from the input image and extracting the facial region only from the extracted person region.
[0012] (7): Another aspect of the present invention provides a program that causes a computer to extract a facial region of a person from an input image and perform an anonymization process on the extracted facial region, the extraction including extracting a person region representing the person from the input image and extracting the facial region only from the extracted person region.
[0013] According to the above aspects (1) to (7), it is possible to more easily and reliably detect a face area in an image to be subjected to anonymization processing.
[0014] 1 is a diagram showing an overview of a system 1 including an image processing device 100 according to the present embodiment. FIG. 2 is a diagram showing an example of the functional configuration of the image processing device 100 according to the present embodiment. FIG. 3 is a diagram showing an example of an interior image and an exterior image acquired from a vehicle M1. FIG. 4 is a diagram for explaining processing performed by an image processing unit 130. FIG. 5 is a diagram for explaining processing performed by an image conversion unit 140. FIG. 6 is a diagram for explaining a failure of processing performed by a conventional image processing unit 130. FIG. 7 is a diagram for explaining processing performed by an image processing unit 130 according to the present embodiment. FIG. 8 is a diagram showing an example of annotation work performed by an annotator. FIG. 9 is a diagram showing an example of driving assistance using a trained model 180. FIG. 10 is a diagram showing an example of the flow of processing performed by the image processing unit 130 and the image conversion unit 140.
[0015] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of an image processing device, an image processing method, an image processing system, and a program according to the present invention will be described with reference to the accompanying 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 the 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 determination 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 the trained model generation unit 160 and the 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.
[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 (extract) 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 inside-vehicle image or an outside-vehicle image using a trained model that outputs a classification result indicating whether the image is an inside-vehicle image or an outside-vehicle image. The image processing unit 130 is an example of an "extraction unit" in the claims.
[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 executes a process for replacing the face of a person depicted in each image with the face of another person using any software that implements such a function, without changing the directional information of the person, on the captured image data 172 processed by the image processing unit 130. FIG. 5 is a diagram for explaining the process executed 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 people without changing the line of sight 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] Furthermore, the image conversion unit 140 may select faces to be used as learning data by performing mosaic processing on faces captured in each image of the captured image data 172 for which directional information could not be obtained.
[0036] In this way, when acquiring the converted image data 174 from the captured image data 172, the image processing unit 130 acquires information such as the facial region and facial direction of a person included in the image using the trained model, as described above. However, the trained model or other software having a similar function may output a region that is not a person's face as a facial region due to, for example, wrinkles, stains, lighting conditions, or cracks or dirt on the road or wall surface of the person.
[0037] FIG. 6 is a diagram illustrating a processing failure performed by a conventional image processing unit 130. FIG. 6 illustrates facial areas FA1 to FA6 acquired by a conventional image processing unit 130 by inputting vehicle interior and exterior images into a trained model. As shown in FIG. 6, for example, facial area FA5 may be erroneously acquired due to wrinkles, stains, lighting conditions, etc. on the clothing worn by a person depicted in the vehicle interior image, and facial area FA6 may be erroneously acquired due to cracks or dirt on the road depicted in the vehicle exterior image. Using converted image data 174 containing such erroneously acquired facial areas FA5 and FA6 as training data without modification is undesirable, as it can degrade the accuracy of the behavior prediction model. Therefore, the image processing unit 130 according to this embodiment prevents erroneous detection of facial areas and maintains the accuracy of the behavior prediction model by performing the processing described below.
[0038] FIG. 7 is a diagram illustrating the processing executed by the image processing unit 130 according to this embodiment. First, the image processing unit 130 extracts a person area HA representing the entire person depicted in the acquired vehicle interior image and vehicle exterior image using an arbitrary method. For example, when an image is input, the image processing unit 130 can extract these person areas HA using a trained model that has been trained to output a bounding box that encloses the entire person depicted in the image. As a result, for example, person areas HA1 to HA4 are acquired, as shown in FIG. 7.
[0039] After extracting the person area HA, the image processing unit 130 acquires the face area FA described above from only the extracted person area HA and acquires directional information such as the face direction and gaze direction from the acquired face area FA. More specifically, for example, when an image in which a person area HA is designated is input, the image processing unit 130 acquires the face area FA using a trained model trained to output the face area FA included in the person area HA. Next, when an image in which a face area FA is designated is input, the image processing unit 130 acquires face direction information using a trained model trained to output at least one of the face direction and gaze direction of the face area FA as, for example, a vector. This processing can prevent, for example, the face area FA6 shown in FIG. 6 (i.e., a face area that is erroneously detected due to, for example, cracks in the road or dirt on the road) from being erroneously detected.
[0040] After extracting the person area HA, the image processing unit 130 may further extract one or more body part regions (e.g., the person's shoulders, hands, knees, feet, etc.) representing the person's body parts from the extracted person area HA using any keypoint detection method, and may acquire a face area FA only from the extracted person area HA based on the positions of the one or more extracted body part regions. For example, as shown in FIG. 7 , the image processing unit 130 may extract both shoulders from the person area HA1 as keypoints KP1 and KP2, and use the midline of keypoints KP1 and KP2 as a reference line RL to acquire a face area FA that is included in the person area HA and intersects with the reference line RL as a legitimate face area. More specifically, for example, when an image in which the person area HA and keypoints KP1 and KP2 are specified is input, the image processing unit 130 may acquire the face area FA using a trained model that has been trained to output a face area FA that is included in the person area HA and intersects with the reference line RL based on the keypoints KP1 and KP2. By such processing, it is possible to prevent, for example, the erroneous detection of the face area FA5 shown in Figure 6 (i.e., a face area that is erroneously detected due to, for example, wrinkles, stains, lighting conditions, etc. in the clothes worn by the person).
[0041] The image conversion unit 140 performs a process on the face area FA of the captured image data 172 acquired in this manner to replace the face of the person in question with the face of another person without changing the directional information of the person appearing in each image. This prevents a falsely detected face area from being used as learning data as is, which would otherwise deteriorate the accuracy of the behavior prediction model.
[0042] The image determination unit 150 inputs the converted image converted by the image conversion unit 140 back into a trained model that has been trained to output at least one of a face direction and a gaze direction, and acquires the face direction FD or gaze direction ED in the converted image. The image determination unit 150 determines whether the face direction FD or gaze direction ED of a person's face captured in the converted image substantially matches the face direction FD or gaze direction ED of a face captured in the captured image before conversion. As described above, both the face direction FD and the gaze direction ED are acquired for the in-vehicle image, and only the face direction FD is acquired for the outside-vehicle image. Therefore, for the in-vehicle image, the image determination unit 150 determines whether the face direction FD and the gaze direction ED substantially match between the captured image before conversion and the converted image, and for the outside-vehicle image, the image determination unit 150 determines whether the face direction FD substantially matches between the captured image before conversion and the converted image. More specifically, for example, the image determination unit 150 calculates the angle 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 directions FD approximately match if the calculated angle difference is within a threshold value. The same applies to the gaze direction ED. Satisfying the continuity of the face or the consistency of the directional information is an example of a "predetermined requirement."
[0043] If it is determined that the facial direction FD or the gaze direction ED does not substantially match between the captured image before conversion and the converted image, the image conversion unit 140 performs conversion processing again on the captured image for the faces determined to have a facial direction FD or a gaze direction ED that does not substantially match. In this case, the image conversion unit 140 may perform conversion processing again only on the faces determined to have a substantially mismatch, or may perform conversion processing again on all faces included in the converted image, including the faces determined to have a substantially mismatch. Furthermore, for example, the image conversion unit 140 may perform mosaic processing on the faces determined to have a substantially mismatch without performing conversion processing again, and exclude them from use as learning data. This prevents degradation of information due to unintended operation of the face conversion software.
[0044] Note that when there are multiple faces captured in the converted image (or when the number of faces captured in the converted image is equal to or greater than a predetermined value), the converted image determination process executed by the image determination unit 150 described above may be performed only on faces assumed to be of higher importance, rather than on all faces captured in the converted image. As an example of a face assumed to be of higher importance, the image determination unit 150 may perform this determination process only on faces in the captured image before conversion whose face size is equal to or greater than a third threshold Th3 (which is greater than the first threshold Th1), or may perform this determination process only on faces whose face distance is equal to or less than a fourth threshold Th4 (which is smaller than the second threshold Th2). Furthermore, for example, the image determination unit 150 may perform the determination process by assuming that the face of a person present in front of the vehicle M1 in the traveling direction or whose face is facing forward in the traveling direction of the vehicle M1 in the captured image before conversion is of higher importance.
[0045] When the image determination unit 150 completes the determination of the converted image, it stores the converted image data 174 that has been determined to be positive 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.
[0046] FIG. 8 is a diagram illustrating an example of annotation work performed by an annotator. The left part of FIG. 8 shows annotations to a converted image of an interior image, and the right part of FIG. 8 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. 8 , 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).
[0047] 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 determination 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 more easily and reliably detect the face area of the image to be anonymized.
[0048] 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.
[0049] 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.
[0050] FIG. 9 is a diagram illustrating an example of driving assistance using a trained model 180. FIG. 9 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 depicted in the exterior image, taking into account the driver's line of sight depicted in the interior image. As shown in FIG. 9 , for example, the HMI displays a risk area RA2 corresponding to a pedestrian P5 depicted in the exterior image, and, if the driver's line of sight depicted 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 information or audio information. This makes it possible to realize driving assistance that takes into account the driver's state.
[0051] Next, the flow of processing executed by the image processing device 100 will be described with reference to Fig. 10. Fig. 10 is a diagram showing an example of the flow of processing executed by the image processing unit 130 and the image conversion unit 140. The processing shown in Fig. 10 is executed, for example, when an interior image or an exterior image of the vehicle M1 is captured by a camera mounted on the vehicle M1.
[0052] First, the image processing unit 130 acquires a captured image included in the captured image data 172 (step S100). Next, the image processing unit 130 extracts a person area HA from the acquired captured image (step S102). Next, the image processing unit 130 extracts a face area FA only from the extracted person area HA (step S104).
[0053] Next, the image conversion unit 140 determines whether the size of the extracted face area FA is equal to or greater than a first threshold Th1 (step S106). If it is determined that the size of the extracted face area FA is equal to or greater than the first threshold Th1, the image conversion unit 140 converts the face into the face of another person (step S108). 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 extracted face area FA is equal to or less than a second threshold Th2 (step S110).
[0054] If it is determined that the distance of the extracted face area FA 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 extracted face area FA is greater than the second threshold Th2, the image conversion unit 140 applies mosaic processing to the face (step S112). Next, the image conversion unit 140 determines whether the processing has been performed on all faces captured in the acquired captured image (step S114).
[0055] 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 S116). 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 S104. This ends the processing of this flowchart.
[0056] According to the present embodiment described above, a human face region is extracted from an input image, a face region is extracted only from the extracted human region, and anonymization processing is performed on the extracted face region. This makes it possible to more easily and reliably detect the face region of an image to be anonymized.
[0057] [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 determination 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 determination by the image determination unit 150. The in-vehicle device then transmits the anonymized image, for which the image determination unit 150 has confirmed the continuity of the face and the consistency of the directional information, to an external image server.
[0058] 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, makes it possible to more easily and reliably detect the facial region of an image to be anonymized. Furthermore, according to this modification, the in-vehicle device anonymizes the image before transmitting the anonymized image to the image server, thereby more reliably protecting the privacy of persons depicted in the facial image.
[0059] 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 determination 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 determination 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 determination unit 150.
[0060] 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 executes the computer-readable instructions to: extract a face region of a person from an input image; and perform an anonymization process on the extracted face region, wherein the extraction involves extracting a person region representing the person from the input image, and extracting the face region only from the extracted person region.
[0061] 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.
[0062] 100 Image processing device 110 Communication unit 120 Transmission / reception control unit 130 Image processing unit 140 Image conversion unit 150 Image determination 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: an extraction unit that extracts a facial region of a person from an input image; and a conversion unit that performs an anonymization process on the extracted facial region, wherein the extraction unit extracts a person region representing the person from the input image, and extracts the facial region only from the extracted person region.
2. The image processing device according to claim 1, wherein the extraction unit further extracts one or more part regions representing body parts of the person from the person region, and extracts the face region from the person region based on positions of the one or more part regions.
3. The image processing device according to claim 1, wherein the conversion unit performs the anonymization processing when the size of the extracted face area is equal to or larger than a first threshold and the distance from the shooting position of the input image to the face area is equal to or smaller than a second threshold.
4. 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.
5. The image processing device according to claim 4, further comprising a learning unit that acquires an annotated image in which an annotation indicating whether the facial direction of the person driving the vehicle is appropriate or not is added to the input image that has been subjected to the anonymization processing, and uses the annotated image as learning data to generate a trained model for prompting the person to pay attention to pedestrians outside the vehicle.
6. An image processing method, comprising: a computer extracting a facial region of a person from an input image; and performing an anonymization process on the extracted facial region, the extraction comprising extracting a person region representing the person from the input image, and extracting the facial region only from the extracted person region.
7. A program that causes a computer to extract a facial region of a person from an input image, and perform an anonymization process on the extracted facial region, the extraction including extracting a person region representing the person from the input image, and extracting the facial region only from the extracted person region.
Citation Information
Patent Citations
Face extraction device and semiconductor integrated circuit
JP2006228199A
Face information transmitting device, face information transmitting method and recording medium with its program recorded
JP2006331065A
Speaker recognition system, speaker recognition method, and speaker recognition program
JP2021105808A
Face Anonymization in Digital Images
US20220148243A1
