Program, image processing method, and system
The image processing device addresses the issue of inaccurate masking by employing data acquisition, mask area setting, person identification, and body estimation to ensure precise masking of individuals within specified areas.
Patent Information
- Application Number
- JP2024118752
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2020-12-14
- Filing Date
- 2024-07-24
- Publication Date
- 2024-10-07
- Estimated Expiration
- 2041-11-11
AI Technical Summary
Existing image processing technologies fail to accurately mask individuals within designated areas due to camera positioning or imaging target orientation, leading to unintended inclusion of persons in the mask.
An image processing device comprising components for data acquisition, mask area setting, person identification, body estimation, and determination to accurately mask individuals within specified areas based on predetermined conditions.
Effectively masks individuals within designated areas, ensuring precise and appropriate masking of persons in images.
Smart Images

Figure 2024138079000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an image processing apparatus, an image processing method and a non-transitory computer readable medium. [Background technology]
[0002] Techniques have been developed for masking people included in designated areas of a captured image.
[0003] In relation to such technology, for example, Patent Document 1 describes a technology for detecting a person image from video information from a surveillance camera and determining whether or not the person has stepped into a monitored space.
[0004] Furthermore, Patent Document 2 describes a technology for detecting a target by setting a first step criterion for whether or not part of an object in an image is included within a monitored area, and a predetermined second step criterion, and determining whether or not these are met. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] International Publication No. 2019 / 220589 [Patent Document 2] International Publication No. 2014 / 118872 Summary of the Invention [Problem to be solved by the invention]
[0006] However, when masking people included in a specified area set in an image, unintended people may be included in the masked target depending on the position of the camera or the position of the object being imaged.
[0007] The present disclosure has been made in consideration of such problems, and aims to provide a technique for appropriately masking a person included in a mask area. [Means for solving the problem]
[0008] An image processing device according to one embodiment of the present disclosure has an image data acquisition means, a mask area setting means, an identification means, a body estimation means, a determination means, and a processing means. The image data acquisition means acquires image data of a predetermined space captured by a camera. The mask area setting means sets a mask area in the space. The identification means identifies a person image that is an image of a person included in the image data. The body estimation means estimates the person's body based on the person image. The determination means determines whether or not the body of the person in the person image is included in the mask area. The processing means performs processing to mask the person based on the result of the determination by the determination means.
[0009] In a method according to an embodiment of the present disclosure, a computer executes the following method. The computer acquires image data of a predetermined space captured by a camera. The computer sets a mask area in the space. The computer identifies a person image that is an image of a person included in the image data. The computer estimates the body of the person based on the person image. The computer determines whether the body of the person in the person image is included in the mask area. The computer performs a process of masking the person based on a result of the determination.
[0010] A program according to an embodiment of the present disclosure causes a computer to execute the following steps: The computer acquires image data of a predetermined space captured by a camera. The computer sets a mask area in the space. The computer identifies a person image that is an image of a person included in the image data. The computer estimates the person's body based on the person image. The computer determines whether the body of the person in the person image is included in the mask area. The computer performs a process of masking the person based on a result of the determination. Effect of the Invention
[0011] According to the present disclosure, it is possible to provide an image processing device and the like that appropriately masks a person included in a mask area. [Brief description of the drawings]
[0012] [Figure 1] 1 is a block diagram of an image processing device according to a first embodiment. [Diagram 2] 4 is a flowchart showing an image processing method according to the first embodiment. [Diagram 3] FIG. 11 is a block diagram of an image processing system according to a second embodiment. [Figure 4] FIG. 11 is a block diagram of an image processing device according to a second embodiment. [Diagram 5] 13 is a flowchart of an image processing device according to a second embodiment. [Figure 6] FIG. 11 is a diagram showing an example of an image processed by the image processing device according to the second embodiment; [Figure 7] FIG. 11 is a block diagram of an image processing system according to a third embodiment. [Figure 8] 13 is a flowchart of an image processing device according to a third embodiment. [Figure 9] FIG. 11 is a diagram showing an example of an image processed by the image processing device according to the third embodiment; [Figure 10] FIG. 11 is a diagram showing an example of a person image processed by the image processing device according to the third embodiment. [Figure 11] FIG. 2 is a block diagram illustrating a hardware configuration of a computer. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] The present invention will be described below through the embodiments of the invention, but the invention according to the claims is not limited to the following embodiments. In addition, not all of the configurations described in the embodiments are necessarily essential as means for solving the problems. In order to clarify the explanation, the following description and drawings are omitted and simplified as appropriate. In each drawing, the same elements are given the same reference numerals, and duplicate explanations are omitted as necessary.
[0014] <Embodiment 1> Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of an image processing device 10 according to the first embodiment. The image processing device 10 shown in FIG. 1 is used by being connected to a camera installed in a predetermined facility or outdoors so as to be capable of communicating with the camera. The image processing device 10 has a function of performing a masking process on image data. The masking process is a process of extracting a part of an image and masking the extracted image. The "masking process" in this embodiment is, for example, a process of making the process performed on the extracted image different from the process performed on the non-extracted image. The image processing device 10 in this embodiment performs a process of masking a person from the captured image data according to a predetermined condition. The image processing device 10 has, as its main components, an image data acquisition unit 111, a mask area setting unit 112, a specification unit 113, a determination unit 114, and a processing unit 115.
[0015] The image data acquisition unit 111 acquires image data of a predetermined space captured by a camera. The number of cameras connected to the image data acquisition unit 111 may be one or more. The camera connected to the image data acquisition unit 111 may be fixed to capture a predetermined angle of view, or may be a movable camera that pans, tilts, or zooms. The image data acquisition unit 111 supplies the image data acquired from the camera to each component as appropriate.
[0016] The mask area setting unit 112 sets a mask area in the above-mentioned predetermined space for the image data acquired by the image data acquisition unit 111. The mask area is a closed area set in an image. When the image processing device 10 determines that a person exists in the mask area according to a predetermined condition, the image processing device 10 performs a process of masking the person. The mask area setting unit 112 may set a predetermined area as the mask area, or may set the mask area according to an operation of a user who uses the image processing device 10. The mask area setting unit 112 may also set a mask area corresponding to the predetermined condition. The mask area setting unit 112 supplies information on the set mask area to the determination unit 114.
[0017] The identification unit 113 receives the image data acquired by the image data acquisition unit 111, and identifies a person image included in the received image data. A person image is an image that includes a person. The identification unit 113 searches for an area having a feature amount that matches the feature amount of the person image by, for example, performing a convolution process on the image data. The identification unit 113 then identifies the area that matches the feature amount of the person image as the person image. The identification unit 113 supplies information on the area of the image identified as the person image to the determination unit 114.
[0018] The determination unit 114 receives information about the mask area in the image data from the mask area setting unit 112. The determination unit 114 also receives information about the area of the person image in the image data from the specification unit 113. Then, the determination unit 114 determines whether or not the person image is included in the mask area for the image data acquired by the image data acquisition unit 111. The determination unit 114 supplies the determination result to the processing unit 115 as information about the result of this determination.
[0019] The processing unit 115 receives the determination result from the determination unit 114, and performs processing to mask the person according to the received determination result. The processing to mask the person may be image processing on the person image involved in the mask processing, or arithmetic processing on the person image involved in the mask processing. For example, the processing to mask the person may be image processing such as filling in the person image involved in the mask processing, or removing the person image by background difference. Furthermore, for example, the processing to mask the person may be arithmetic processing such as not including the person involved in the mask processing when calculating the number of people included in the image.
[0020] Fig. 2 is a flowchart showing the image processing method according to the embodiment 1. The flowchart shown in Fig. 2 is started by starting up the image processing device 10, for example.
[0021] First, the image data acquisition unit 111 of the image processing device 10 acquires image data of a predetermined space captured by a camera (step S11). The image data acquisition unit 111 appropriately supplies the acquired image data to each component included in the image processing device 10.
[0022] Next, the mask region setting unit 112 sets a mask region in a predetermined space of the image data (step S12). The mask region setting unit 112 supplies information on the mask region to the determination unit 114.
[0023] Next, the specification unit 113 specifies a person image that is an image of a person included in the image data (step S13). The specification unit 113 supplies information on the specified person image to the determination unit 114.
[0024] Next, the determination unit 114 determines whether or not the person image is included in the mask area (step S14). If it is not determined that the person image is included in the mask area (step S14: NO), the image processing device 10 ends the flowchart without executing the mask process. If it is determined that the person image is included in the mask area (step S14: YES), the image processing device 10 proceeds to step S15.
[0025] In step S15, the processing unit 115 performs a process of masking the person included in the mask area according to the determination result (step S15). When the processing unit 115 finishes executing the mask process, the image processing device 10 ends the series of processes.
[0026] The above-described process may be executed every time image data is supplied from the camera to the image processing device 10. In the above-described process, the order of steps S12 and S13 may be reversed. Also, steps S12 and S13 may be executed in parallel.
[0027] The image processing device according to the first embodiment has been described above. The image processing device 10 has a processor and a storage device as components not shown. The storage device of the image processing device 10 includes a storage device including a non-volatile memory such as a flash memory or an SSD (Solid State Drive). In this case, the storage device of the image processing device 10 stores a computer program (hereinafter also simply referred to as a program) for executing the above-mentioned image processing method. The processor also reads the computer program from the storage device into a buffer memory such as a DRAM (Dynamic Random Access Memory) and executes the program.
[0028] Each of the components of the image processing device 10 may be realized by dedicated hardware. In addition, a part or all of each component may be realized by a general-purpose or dedicated circuit, processor, etc., or a combination of these. These may be configured by a single chip, or may be configured by multiple chips connected via a bus. A part or all of each component of each device may be realized by a combination of the above-mentioned circuits, etc., and a program. In addition, a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), an FPGA (field-programmable gate array), etc. can be used as a processor. The description of the configuration described here may also be applied to other devices or systems described below in this disclosure.
[0029] Furthermore, when some or all of the components of the image processing device 10 are realized by a plurality of information processing devices, circuits, etc., the plurality of information processing devices, circuits, etc. may be centrally arranged or distributed. For example, the information processing devices, circuits, etc. may be realized as a client-server system, a cloud computing system, etc., in a form in which each is connected via a communication network. Furthermore, the functions of the image processing device 10 may be provided in a SaaS (Software as a Service) format.
[0030] The first embodiment has been described above. The image processing device 10 according to the first embodiment identifies a person image from image data, and performs mask processing when the identified person image is included in a mask area. Therefore, according to the first embodiment, it is possible to provide an image processing device or the like that appropriately masks a person included in a mask area.
[0031] <Embodiment 2> Next, a description will be given of a second embodiment. Fig. 3 is a block diagram of an image processing system 1 according to the second embodiment. The image processing system 1 shown in Fig. 3 includes an image processing device 20, a display 200, and a camera 300.
[0032] The image processing device 20 is communicatively connected to the camera 300 via a network N1, which is a communication network, and acquires image data generated by the camera 300. The image processing device 20 is also communicatively connected to a display 200, and displays the result of the mask processing on the display 200. The network N1 may be a LAN (Local Area Network) or a WAN (Wide Area Network).
[0033] The display 200 is a display device including, for example, a liquid crystal display or an organic electroluminescence display. The display 200 is communicably connected to the image processing device 20, receives image data from the image processing device 20, and displays the received image data. In the example shown in FIG. 3, the image processing device 20 and the display 200 are connected without the network N1, but they may be connected via the network N1. By visually checking the image displayed on the display 200, the user of the image processing system 1 can grasp the result of the image processing performed by the image processing device 20.
[0034] The camera 300 is fixed at a predetermined position in the facility 900, and captures the scenery within the facility. The camera 300 is communicably connected to the image processing device 20 via the network N1. For example, the camera 300 captures 30 frames of images per second, and supplies image data relating to these captured images to the image data acquisition unit 111. As shown in the figure, for example, the camera 300 captures a scene in which persons P1, P2, and P3 exist with an angle of view indicated by the dotted lines, generates image data, and supplies the image data to the image processing device 20.
[0035] Next, the image processing device 20 will be further described with reference to Fig. 4. Fig. 4 is a block diagram of the image processing device 20 according to the second embodiment. The image processing device 20 differs from the image processing device 10 according to the first embodiment in that it has a reference position setting unit 116.
[0036] The image data acquisition unit 111 acquires a plurality of image data from the camera 300. The plurality of image data are image data captured at different times. For example, the image data acquisition unit 111 receives image data every 1 / 30th of a second from a camera that captures 30 frames per second.
[0037] The mask area setting unit 112 in this embodiment sets the mask area in a virtual horizontal plane set at a predetermined height in the space photographed by the camera 300. At this time, the predetermined height can be set by, for example, a user. The mask area setting unit 112 may also estimate a floor surface in the space related to the image data and set the mask area on the estimated floor surface. With this configuration, the image processing device 20 makes it easier for the user to set the mask area. Furthermore, by combining with a reference position described later, the image processing device 20 can easily determine whether or not a person has entered the predetermined mask area.
[0038] The identification unit 113 in this embodiment identifies a person image as an image of a moving person. To this end, the identification unit 113 first acquires a plurality of image data generated at different times from the image data acquisition unit 111. Next, the identification unit 113, for example, calculates the difference between the pixels corresponding to each of the plurality of image data. In this way, the identification unit 113 detects an image of a moving object. Furthermore, the identification unit 113 identifies a person image from the image of the moving object. Note that the method by which the identification unit 113 identifies an image of a moving person is not limited to the above. For example, the identification unit 113 may detect a person image related to a moving person by detecting a person image for each image data received from the image data acquisition unit 111 and calculating the difference between the image in which the person image was detected and a frame before or after the image.
[0039] The identification unit 113 may identify the person image via a learning device for identifying that the extracted image data is a person image. In this case, the learning device may calculate the feature amount of the extracted image data and detect whether the calculated feature amount is similar to the feature amount of the person image. Such a learning device may use, for example, HOG (Histograms of Oriented Gradients) or a support vector machine.
[0040] The identification unit 113 may also identify a person image via a learning device including a multi-layered neural network. In this case, the identification unit 113 may include a learning device that has performed deep learning. The learning device that has performed deep learning is also referred to as a trained model. The identification unit 113 may include such a trained model, or may have a structure that is communicatively connected to a trained model that exists outside the image processing device 10.
[0041] The identification unit 113 may also identify a circumscribing rectangle that contacts the outside of a person. That is, the identification unit 113 identifies a rectangular image including a person image as a person image. In this case, the identification unit 113 extracts a predetermined rectangular image from image data acquired from the camera, and determines whether or not the extracted rectangular image is a person image. This allows the identification unit 113 to simplify or speed up the process of identifying a person image. When the identification unit 113 identifies a circumscribing rectangle, the determination unit 114 determines whether or not the circumscribing rectangle is included in the mask area.
[0042] The reference position setting unit 116 in this embodiment sets a reference position for the person image. For example, the reference position setting unit 116 sets the reference position at a predetermined position of the circumscribing rectangle. The predetermined position of the circumscribing rectangle is, for example, the center position of the lower end of the rectangle. The predetermined position of the circumscribing rectangle is, for example, the center position of the rectangle. By setting the reference position, the determination unit 114 can determine whether the reference position is included in the mask area. Alternatively, by setting the reference position at, for example, the lower end of the person image and setting the mask area to a predetermined range on the floor surface, the image processing device 20 can easily determine whether the person has entered the predetermined mask area. Note that the reference position set by the reference position setting unit 116 may be an area having a predetermined range, or may specify a pixel at a predetermined position. Also, the reference position may be one or more.
[0043] When determining whether or not a person image is included in the mask area, the determination unit 114 in this embodiment may determine, for example, whether or not a circumscribing rectangle is included in the mask area. Alternatively, the determination unit 114 in this embodiment may determine whether or not a reference position related to the person image is included in the mask area. Furthermore, the determination unit 114 may set such a determination based on a user operation, a predetermined condition, or the like.
[0044] Next, the process executed by the image processing device 20 will be described with reference to Fig. 5. Fig. 5 is a flowchart of the image processing device according to the second embodiment. The example shown in Fig. 5 is for determining whether or not the reference position set by the reference position setting unit 116 is included in the mask area. The flowchart shown in Fig. 5 differs from the flowchart in the first embodiment in the process between step S13 and step S15.
[0045] In step S13, the specification unit 113 specifies a person image included in the image data (step S13). Here, the specification unit 113 specifies a circumscribing rectangle as a person image. The specification unit 113 supplies information on the specified person image to the reference position setting unit 116.
[0046] Next, the reference position setting unit 116 sets a reference position for the person image (step S21). The reference position setting unit 116 supplies information on the set reference position to the determination unit 114.
[0047] Next, the determination unit 114 determines whether or not the reference position set in the person image is included in the mask area (step S22). If it is not determined that the reference position is included in the mask area (step S22: NO), the image processing device 20 ends the flowchart without executing the mask process. If it is determined that the reference position is included in the mask area (step S22: YES), the image processing device 20 proceeds to step S15, and the processing unit 115 performs processing to mask the person included in the mask area according to the determination result (step S15). When the processing unit 115 finishes executing the mask process, the image processing device 20 ends the series of processes.
[0048] Next, an example of image data processed by the image processing device 20 will be described with reference to Fig. 6. Fig. 6 is a diagram showing an example of an image processed by the image processing device 20 according to the second embodiment. Fig. 6 shows an image 201. The image 201 is an example of an image displayed on the display 200. The image 201 is a view of the facility 900 captured by the camera 300, and shows a situation in which a person P1, a person P2, and a person P3 are walking.
[0049] In the image 201, the first mask area 240 set by the mask area setting unit 112 is indicated by a thick two-dot chain line. The first mask area 240 is set on the floor surface of the space covered by the image 201. Therefore, as shown in the figure, the first mask area 240 is displayed wider on the front side of the space covered by the image (below the image 201) than on the back side of the space covered by the image (above the image 201). The mask area setting unit 112 analyzes the image data received from the image data acquisition unit 111 and can virtually set the depth of the space in this manner.
[0050] The image of person P1 included in the image 201 is a first person image 210. The first person image 210 includes a circumscribing rectangle set around person P1. A first reference point 211 is shown at the bottom end of the first person image 210. Similarly, the image of person P2 is a second person image 220, which includes a circumscribing rectangle set around person P2 and a second reference point 221 set at the bottom end of the second person image 220. The image of person P3 is a third person image 230, which includes a circumscribing rectangle set around person P3 and a third reference point 231 set at the bottom end of the third person image 230. Thus, in the example shown in FIG. 6, when the identification unit 113 identifies a person, it identifies the person image by the circumscribing rectangle. The reference position setting unit 116 sets a reference position at the center of the bottom end of the circumscribing rectangle.
[0051] When the identification unit 113 identifies a person image and sets a circumscribing rectangle, the identification unit 113 analyzes, for example, image 201 by convolution processing to determine whether or not a person image of a predetermined size exists. For example, the upper left corner of the image 201 is the origin, the horizontal direction from left to right is the X axis, and the vertical direction from top to bottom is the Y axis. In this case, for example, the identification unit 113 performs image analysis processing from the origin in the X positive direction, and when processing is completed up to the right end, moves the Y axis in the positive direction, and performs analysis processing again from the left end in the X positive direction.
[0052] At this time, the identification unit 113 can change the size of the rectangle used for analysis according to the depth of the image 201. That is, the identification unit 113 identifies the human image in a relatively smaller size toward the upper side of the image 201, i.e., toward the back of the space, and identifies the human image in a relatively larger size toward the lower side of the image 201, i.e., toward the front of the space. By performing such processing, the identification unit 113 can efficiently identify the human image.
[0053] 6, the first mask region 240 does not include the first person image 210 at all, includes the lower part of the second person image 220, and includes the entire third person image 230. In this situation, the determination unit 114 does not determine that at least the first person image 210 is included in the first mask region 240.
[0054] When the setting of the determination unit 114 is to perform mask processing when the entire circumscribing rectangle is included, the determination unit 114 determines that the third person image 230 is included in the first mask region 240, but does not determine that the second person image 220 is included in the first mask region 240. In this case, the processing unit 115 performs mask processing on the third person image 230.
[0055] In the case where the setting of the determination unit 114 is to perform mask processing when the reference position is included, the determination unit 114 determines that the second person image 220 and the third person image 230 are included in the first mask region 240. In this case, the processing unit 115 performs mask processing on the second person image 220 and the third person image 230.
[0056] The above describes the second embodiment. The image processing device 20 according to the second embodiment determines whether or not a specified person image is included in a mask area according to a predetermined condition. Therefore, according to the second embodiment, it is possible to provide an image processing device or the like that appropriately masks a person included in a mask area.
[0057] <Embodiment 3> Next, a third embodiment will be described. The third embodiment differs from the above-mentioned embodiments in that the third embodiment has a function of estimating a person's body. Fig. 7 is a block diagram of an image processing device 30 according to the third embodiment. The image processing device 30 has a body estimation unit 117 in addition to the above-mentioned configuration.
[0058] The body estimation unit 117 receives the person image identified by the identification unit 113, and estimates the person's body from the received person image. In this embodiment, the "person's body" refers to a model of the main structures that form the person's body.
[0059] For example, the body estimation unit 117 estimates the positions of the main joints of the person from the person image. In this case, the body estimation unit 117 may estimate the posture of the person by connecting related joints from the estimated joint positions.
[0060] For example, the body estimation unit 117 may estimate the positions and postures of the main parts of a person (head, torso, arms, legs, etc.) from a person image. In this case, the body estimation unit 117 may estimate joint points connecting the main parts from the positions of the estimated posture of the body.
[0061] The body estimation unit 117 may estimate the body from the person image by complementing the body of the person not included in the person image. For example, if there is an arbitrary object at the feet of a person photographed by a camera, the person image included in the image data does not include the feet of this person. Here, the body estimation unit 117 stores ratio information of the size of each part of a general human body. Therefore, the body estimation unit 117 can complement the body of the person in the person image by referring to this ratio information.
[0062] The body estimation unit 117 may estimate the posture of a person by calculating the feature amount of a main part in a person image. When estimating a posture from a person image, the body estimation unit 117 may use a trained model that has undergone a predetermined training.
[0063] The determination unit 114 in this embodiment may determine whether or not the body of the person is included in the mask region. In this case, the determination unit 114 may determine whether or not a preset part of the body of the person is included in the mask region. The determination unit 114 may also determine whether or not the reference position set by the reference position setting unit 116 is included in the mask region.
[0064] The reference position setting unit 116 in this embodiment may receive information about a person's body, and set a reference position at a predetermined part of the person based on the received body information. For example, the reference position setting unit 116 may set a reference position at the person's feet. More specifically, for example, the reference position setting unit 116 may set a reference position including an intersection point between a straight line connecting the person's right foot and left foot and a straight line along the person's spine. The reference position setting unit 116 is not limited to the above, and may set a predetermined position of the person as the reference position.
[0065] The mask area setting unit 112 in this embodiment can set a plurality of mask areas. Furthermore, in the case where a plurality of mask areas are set, the determination unit 114 in this embodiment can determine whether or not a human image is included in each mask area based on individual conditions. That is, in the case where the mask area setting unit 112 sets, for example, a first mask area and a second mask area different from the first mask area, the determination unit 114 determines whether or not a human image is included in the first mask area based on a predetermined first condition. Furthermore, the determination unit 114 determines whether or not a human image is included in the second mask area based on a second condition different from the first condition.
[0066] Next, an image processing method according to the third embodiment will be described with reference to Fig. 8. Fig. 8 is a flowchart of the image processing device according to the third embodiment. The flowchart shown in Fig. 8 differs from the flowchart explained in Fig. 5 in that step S31 is present between step S13 and step S21.
[0067] In step S13, the identification unit 113 identifies a person image included in the image data (step S13). The identification unit 113 supplies information on the identified person image to the body estimation unit 117.
[0068] Next, the body estimation unit 117 estimates the person's body from the received information on the person image (step S31). The body estimation unit 117 supplies the information on the estimation of the person's body to the reference position setting unit .
[0069] The reference position setting unit 116 sets a reference position for the person image from the information received from the body estimation unit 117 (step S21). The reference position setting unit 116 supplies the determination unit 114 with information on the set reference position.
[0070] Next, the determination unit 114 determines whether or not the reference position on the person's body is included in the mask area (step S22). If it is not determined that the reference position is included in the mask area (step S22: NO), the image processing device 30 ends the flowchart without executing the mask process. If it is determined that the reference position is included in the mask area (step S22: YES), the image processing device 30 proceeds to step S15, where the processing unit 115 performs a process of masking the person included in the mask area according to the determination result (step S15). When the processing unit 115 finishes executing the mask process, the image processing device 30 ends the series of processes.
[0071] Next, a specific example of the processes performed by the specifying unit 113, the reference position setting unit 116, and the body estimation unit 117 will be described with reference to Fig. 9. Fig. 9 is a diagram showing an example of a person image processed by the image processing device 30 according to the third embodiment.
[0072] 9, three person images related to person P1 are shown from left to right along the progress of the processing: person image 210A, person image 210B, and person image 210C. Person image 210A is an image set by identification unit 113 by identifying a person from image data.
[0073] A person image 210B is shown to the right of the person image 210A. In the person image 210B, a first body image 212 is superimposed on the person image 210A. The body estimation unit 117 estimates the body of the person P1 from the person image 210B to generate the first body image 212. The first body image 212 includes a plurality of joint points. The first body image 212 also includes a plurality of straight lines connecting two different joint points.
[0074] The reference position setting unit 116 can set a joint point included in the first body image 212 as a reference position. For example, the reference position setting unit 116 sets the right foot joint point K1 or the left foot joint point K2 of the person P1 as a reference position. In this case, the determination unit 114 determines whether or not the right foot joint point K1 or the left foot joint point K2 is included in the mask area. The reference position setting unit 116 may set a plurality of joint points as reference positions. For example, the reference position setting unit 116 may set the right foot joint point K1 and the left foot joint point K2 of the person P1 as reference positions. In this case, the determination unit 114 determines whether or not both the right foot joint point K1 and the left foot joint point K2 are included in the mask area. That is, the reference position setting unit 116 can set one or more joint points as a reference position, not limited to the above example. Then, the determination unit 114 determines whether or not the joint point set as the reference position is included in the mask area.
[0075] A person image 210C is shown to the right of the person image 210B. In the person image 210C, a first reference point 213 is superimposed on the person image 210B. The reference position setting unit 116 sets the first reference point 213 by using the person image 210B. The first reference point 213 is a reference position set at the feet of the person P1.
[0076] For example, the reference position setting unit 116 sets the midpoint of a line L1 connecting the right foot joint point K1 and the left foot joint point K2 of the person P1 as the first reference point 213. In addition, the reference position setting unit 116 sets, for example, the intersection point of the line L1 connecting the right foot joint point K1 and the left foot joint point K2 of the person P1 and a line L2 along the spine of the person P1 as the first reference point 213. In this case, the determination unit 114 determines whether or not the first reference point 213 set at the feet of the person P1 is included in the mask area.
[0077] Next, a specific example of an image to be processed by the image processing device 30 will be described with reference to FIG. 10. FIG. 10 is a diagram showing an example of an image to be processed by the image processing device according to the third embodiment. FIG. 10 shows an image 202. As in FIG. 6, the image 202 shows a situation in which a person P1, a person P2, and a person P3 are walking. In addition, in the image 202, the first mask region 240 set by the mask region setting unit 112 is shown by a thick two-dot chain line. Furthermore, in the image 202, the second mask region 250 set by the mask region setting unit 112 is shown by a thick one-dot chain line. Here, the first mask region 240 and the second mask region 250 have an overlapping region 245 where they overlap each other.
[0078] The image of person P1 included in image 202 is a first person image 210C. The first person image 210C includes a circumscribing rectangle set around person P1. As described in FIG. 9, the first person image 210C also includes a first body image 212 and a first reference point 213. Similarly, the image of person P2 is a second person image 220C, and includes a circumscribing rectangle set around person P2, a second body image 222, and a second reference point 223. The image of person P3 is a third person image 230C, and includes a circumscribing rectangle set around person P3, a third body image 232, and a third reference point 233.
[0079] 10, the mask region setting unit 112 sets a first mask region 240 and a second mask region 250. The determination unit 114 determines whether or not a human image is included in the first mask region 240 based on a first condition for the first mask region 240. The first condition is that a circumscribing rectangle that is the human image is included in the first mask region 240. The determination unit 114 determines whether or not a human image is included in the second mask region 250 based on a second condition that is different from the first condition for the second mask region 250. The second condition is that a reference position related to the human image is included in the second mask region 250.
[0080] The first person image 210C in FIG. 10 does not match either the first condition or the second condition. Therefore, the first person image 210C is not subject to the masking process. The second person image 220C does not match the first condition but matches the second condition. Moreover, the third person image 230C matches the first condition but does not match the second condition. Therefore, the second person image 220C and the third person image 230C are subjects to the masking process. The processing unit 115 executes the masking process on the second person image 220C and the third person image 230C.
[0081] The above describes the third embodiment. The image processing device 30 has the body estimation unit 117, and thus can identify the joint points and foot positions of a person in a person image and determine whether or not the identified positions are included in a mask area. Thus, according to the third embodiment, it is possible to provide an image processing device or the like that performs mask processing corresponding to the physical condition of a person included in a mask area. Furthermore, the image processing device 30 can set a plurality of mask areas and set different determination conditions for each set mask area. Thus, according to the third embodiment, it is possible to provide an image processing device or the like that can set suitable conditions for a mask area.
[0082] <Example of hardware configuration> Hereinafter, a case will be described in which each functional configuration of the image processing device according to the present disclosure is realized by a combination of hardware and software.
[0083] FIG. 11 is a block diagram illustrating a hardware configuration of a computer. The image processing device in the present disclosure can realize the above-mentioned functions by a computer 500 including the hardware configuration shown in the figure. The computer 500 may be a portable computer such as a smartphone or a tablet terminal, or a stationary computer such as a PC. The computer 500 may be a dedicated computer designed to realize each device, or may be a general-purpose computer. The computer 500 can realize a desired function by installing a predetermined application.
[0084] The computer 500 has a bus 502, a processor 504, a memory 506, a storage device 508, an input / output interface (I / F) 510, and a network interface (I / F) 512. The bus 502 is a data transmission path for the processor 504, the memory 506, the storage device 508, the input / output interface 510, and the network interface 512 to transmit and receive data to and from each other. However, the method of connecting the processor 504 and the like to each other is not limited to bus connection.
[0085] The processor 504 is one of various processors such as a CPU, a GPU, an FPGA, etc. The memory 506 is a main storage device realized using a RAM (Random Access Memory) or the like.
[0086] The storage device 508 is an auxiliary storage device realized using a hard disk, an SSD, a memory card, a ROM (Read Only Memory), etc. The storage device 508 stores a program for realizing a desired function. The processor 504 reads the program into the memory 506 and executes it to realize each functional component of each device.
[0087] The input / output interface 510 is an interface for connecting the computer 500 to an input / output device. For example, the input / output interface 510 is connected to an input device such as a keyboard and an output device such as a display device.
[0088] The network interface 512 is an interface for connecting the computer 500 to a network.
[0089] The present invention is not limited to the above-described embodiment, and can be modified as appropriate without departing from the spirit and scope of the present invention.
[0090] A part or all of the above-described embodiments can be described as, but is not limited to, the following supplementary notes. (Appendix 1) An image data acquisition means for acquiring image data of a predetermined space photographed by a camera; a mask area setting means for setting a mask area in the space; A person image identifying unit that identifies an image of a person included in the image data; a body estimation means for estimating a body of the person based on the person image; a determining means for determining whether or not a body of the person in the person image is included in the mask area; and a processing means for performing a process of masking the person based on a result of the determination by the determining means. Image processing device. (Appendix 2) The image data acquisition means acquires a plurality of image data generated at different times, The identification means identifies the person image of the person who is moving based on the plurality of image data. 2. An image processing device as described in claim 1. (Appendix 3) the identification means identifies the person image via a learning device that identifies that the extracted image data is the person image. 3. An image processing device according to claim 1 or 2. (Appendix 4) the identifying means identifies the person image via the learning device including a multi-layered neural network; 4. The image processing device according to claim 3. (Appendix 5) The identification means identifies a circumscribing rectangle that contacts the outside of the person, The determining means determines whether or not the circumscribing rectangle is included in the mask area. 5. The image processing device according to claim 1, (Appendix 6) a reference position setting unit for setting a reference position for the person image, the reference position setting means sets the reference position at a predetermined position of the circumscribing rectangle; The determining means determines whether or not the reference position is included in the mask area. 6. The image processing device according to claim 5. (Appendix 7) the body estimation means estimates the body of the person by complementing a body part not included in the person image based on the person image; 2. An image processing device as described in claim 1. (Appendix 8) a reference position setting unit for setting a reference position for the person image, the reference position setting means sets the reference position at a predetermined part of the person based on the body information; 8. The image processing device according to claim 7. (Appendix 9) the reference position setting means sets the reference position at the feet of the person based on the body information; 9. The image processing device according to claim 8. (Appendix 10) the reference position setting means sets the reference position including an intersection point between a straight line connecting the right leg and the left leg of the person and a straight line along the spine of the person, based on the body information; 9. The image processing device according to claim 8. (Appendix 11) The body estimation means estimates joint points of the person based on the person image, The reference position setting means sets a predetermined joint point as the reference position. 9. The image processing device according to claim 8. (Appendix 12) The mask area setting means sets the mask area within a virtual horizontal plane set at a predetermined height in the space. 12. The image processing device according to claim 1, (Appendix 13) the mask area setting means estimates a floor surface in the space and sets the mask area on the floor surface; 13. The image processing device of claim 12. (Appendix 14) the mask area setting means sets a first mask area and a second mask area different from the first mask area; the determining means determines whether or not the person image is included in the first mask region based on a predetermined first condition for the first mask region; and determining whether or not the person image is included in the second mask region based on a second condition different from the first condition for the second mask region. 14. The image processing device according to any one of claims 1 to 13. (Appendix 15) The computer Acquire image data of a specified space captured by a camera, A mask region is set in the space; Identifying a person image that is an image of a person included in the image data; Estimating a body of the person based on the person image; determining whether or not the body of the person in the person image is included in the mask area; performing a process of masking the person based on the result of the determination; Image processing methods. (Appendix 16) A process of acquiring image data of a predetermined space captured by a camera; A process of setting a mask region in the space; A process of identifying a person image that is an image of a person included in the image data; A process of estimating a body of the person based on the person image; a process of determining whether or not the body of the person in the person image is included in the mask area; A non-transitory computer-readable medium storing a program for causing a computer to execute an image processing method comprising: a process for masking the person based on a result of the determination.
[0091] This application claims priority based on Japanese Patent Application No. 2020-206707, filed on December 14, 2020, the disclosure of which is incorporated herein in its entirety. [Explanation of symbols]
[0092] 1. Image Processing System 10 Image processing device 20 Image processing device 30 Image processing device 111 Image data acquisition unit 112 Mask area setting section 113 Specific section 114 Judgment section 115 Processing section 116 Reference position setting section 117 Body Estimation Department 200 Display 201 images 210 First Person Image 211 1st reference point 212 First Body Image 213 1st reference point 220 2nd Person Image 221 Second reference point 222 Second Body Image 223 Second reference point 230 Third Person Image 231 Third reference point 232 Third Body Image 233 Third reference point 240 First mask area 250 Second mask area 300 Camera 500 Computers 900 facilities N1 Network P1 person P2 person P3 person
Claims
1. acquiring a first image; A process of receiving a range of a mask area for masking a person appearing in the image; A process of masking a person included in the set mask area in the first image; A program that causes a computer to execute the following.
2. and causing the computer to further execute a process of determining the position of the person's head. The program according to claim 1.
3. further causing the computer to execute a process of identifying a position of a person appearing in the first image based on a feature amount of an object appearing in the first image; The masking step includes masking based on a position of the person. The program according to claim 1.
4. The masking process includes painting over the person. The program according to claim 1.
5. The masking process includes masking the person based on a difference between the first image and a second image captured at an earlier time than the first image. The program according to claim 1.
6. The first image is an image acquired within a predetermined time after the second image is captured. The program according to claim 5.
7. The computer Acquire a first image; Accept a range of a mask area for masking a person appearing in the image; A process of masking a person included in the set mask area in the first image is performed. Image processing methods.
8. The computer further determines a position of the person's head. The image processing method according to claim 7.
9. The computer further identifies a position of a person appearing in the first image based on a feature amount of an object appearing in the first image; The masking step includes masking based on a position of the person. The image processing method according to claim 7.
10. The masking process includes painting over the person. The image processing method according to claim 7.
11. The masking process includes masking the person based on a difference between the first image and a second image captured at an earlier time than the first image. The image processing method according to claim 7.
12. The first image is an image acquired within a predetermined time after the second image is captured. The image processing method according to claim 11.
13. 1. A system for processing images captured by a camera, comprising: The system comprises: A means for acquiring a first image; A means for receiving a range of a mask area for masking a person appearing in an image; a means for performing a process of masking a person included in the set mask area in the first image; A system comprising:
14. means for determining a position of the person's head The system of claim 13.
15. The method further includes a means for identifying a position of a person appearing in the first image based on a feature amount of an object appearing in the first image, The masking step includes masking based on a position of the person. The system of claim 13.
16. The masking process includes painting over the person. The system of claim 13.
17. The masking process includes masking the person based on a difference between the first image and a second image captured at an earlier time than the first image. The system of claim 13.
18. The first image is an image acquired within a predetermined time after the second image is captured.
20. The system of claim 17.
Citation Information
Patent Citations
Camera server apparatus, control method thereof, computer program and computer-readable storage medium
JP2005117163A
Image sensor and illumination system
JP2016178517A
Image processing apparatus, information processing method, and program
JP2017017431A
Image processing apparatus, image processing system, and program
JP2018137560A
Information processing apparatus, information processing method, and program
JP2020053955A
