Image processing system and control program
By integrating distance and two-dimensional image processing to identify minimal gradation values, the system effectively detects human gestures in monitoring spaces, addressing accuracy issues and enhancing clarity for precise gesture recognition.
Patent Information
- Application Number
- JP2020050251
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-03-19
- Publication Date
- 2024-10-03
- Estimated Expiration
- 2040-03-19
AI Technical Summary
Existing image processing systems struggle to accurately detect human gestures in monitoring spaces, particularly due to challenges in recognizing motion and distinguishing gestures from background noise.
The system employs a combination of distance and two-dimensional image acquisition, identifying pixels or regions with minimal gradation values to generate processed images that enhance gesture recognition by integrating distance and shading information, using models to detect and distinguish human gestures.
This approach allows for precise detection of human gestures, such as waving or beckoning, by focusing on areas of significant movement and improving image clarity, especially when individuals perform gestures like waving their hands, enhancing accuracy and reliability in monitoring environments.
Smart Images

Figure 0007560950000001 
Figure 0007560950000002 
Figure 0007560950000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an image processing system and a control program for detecting a gesture of a person. [Background technology]
[0002] In recent years, image processing systems have been developed that detect gestures of a person based on images captured in a monitored space.
[0003] Patent Document 1 discloses an information input device that emits light with varying intensity to an object, detects the light reflected by the object by separating it from external light, and detects an image of the light reflected by the object.
[0004] Patent Document 2 discloses a portable computer that recognizes the reciprocating motion of an object with a predetermined period. The portable computer receives multiple consecutive frames from an image sensor that captures an image of the object. The portable computer then compares the background image with the blurred image contained in each frame, calculates the difference in the grayscale values of corresponding pixels, and recognizes the motion of the object from the binarized difference image. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Japanese Patent Application Publication No. 10-177449 [Patent Document 2] Patent No. 5782061 Summary of the Invention [Problem to be solved by the invention]
[0006] In an image processing system, it is desirable to detect gestures of a person in a monitored space with high accuracy.
[0007] The problem to be solved by the present invention is to provide an image processing system and a control program that generate an image in which the movement of a moving object in a captured image is easily recognized, and also to provide an image processing system and a control program that can accurately recognize a gesture made by a person in a monitored space with his or her hand extended forward. [Means for solving the problem]
[0008] In order to solve the above-mentioned problems, as one aspect of the present invention, there is provided an image processing system comprising: a distance image acquisition means for sequentially acquiring distance images whose gradation values are information regarding the distance from a reference position to an object in a monitored space; a two-dimensional image acquisition means for sequentially acquiring two-dimensional images whose gradation values are information regarding the shades of gray in the monitored space corresponding to the sequentially acquired distance images; and a synthesis means for identifying, for each group of pixels or regions arranged at the same position in multiple distance images acquired over a specified period by the distance image acquisition means, a pixel or region having a relatively small gradation value within the group, and generating a processed image in which multiple two-dimensional images acquired over the specified period are synthesized using pixels or regions corresponding to the identified pixels or regions in a two-dimensional image corresponding to the distance image including the pixels or regions identified for each group.
[0009] In the above image processing system, it is preferable that the synthesis means generates a processed image by using the gradation value of a pixel or area corresponding to a specified pixel or area in a two-dimensional image corresponding to a distance image including pixels or areas specified for each group as the gradation value of the pixel or area corresponding to that group.
[0010] In the above image processing system, it is preferable that the synthesis means generates a processed image so that the gradation value of a pixel or region corresponding to an identified pixel or region in a two-dimensional image corresponding to a distance image including the pixels or regions identified for each group is set to the gradation value of the first component of the pixel or region corresponding to that group, and the gradation value of a pixel or region identified for each group in the distance image is set to the gradation value of the second component of the pixel or region corresponding to that group.
[0011] In the above-mentioned image processing system, it is preferable that the system further includes a detection means for inputting a processed image into a model trained to output information regarding a person's gesture movements contained in the input learning processed image, and detecting a person's gesture movements in the monitored space based on the information output from the model.
[0012] In the above-mentioned image processing system, it is preferable that the system further includes a person area detection means for detecting a person area including a person in the distance image or the two-dimensional image, and the synthesis means generates a processed image using pixels or areas corresponding to identified pixels or areas in the two-dimensional image corresponding to the distance image including the pixels or areas identified for each group, only for groups corresponding to the detected person areas.
[0013] The image processing system preferably further comprises a detection means for detecting, based on the processed image, a predetermined gesture made in front of a person present in the monitored space.
[0014] In addition, in order to solve the above-mentioned problems, in another aspect, the present invention provides an image processing system comprising: a distance image acquisition means for sequentially acquiring distance images in which information regarding the distance from a reference position to an object in a monitored space is used as a gradation value; and a processed image generation means for identifying, for each group of pixels or regions located at the same position in multiple distance images acquired over a specified period by the distance image acquisition means, a pixel or region having a relatively small gradation value within the group, and using the pixels or regions identified for each group to synthesize the multiple distance images acquired over the specified period to generate a processed image.
[0015] In addition, in order to solve the above-mentioned problems, as another aspect of the present invention, a control program is provided that causes a computer to execute the following steps: sequentially acquire distance images in which information regarding the distance from a reference position to an object in a monitored space is used as a gradation value; sequentially acquire two-dimensional images in which information regarding the shade of light and dark in the monitored space is used as gradation values corresponding to the sequentially acquired distance images; for each group of pixels or regions that are located at the same position in multiple distance images acquired over a specified period, identify a pixel or region having a relatively small gradation value within the group; and synthesize the multiple two-dimensional images acquired over the specified period using pixels or regions corresponding to the identified pixels or regions in a two-dimensional image corresponding to the distance image including the pixels or regions identified for each group to generate a processed image.
[0016] In addition, in order to solve the above-mentioned problems, as another aspect of the present invention, a control program is provided that causes a computer to execute the following steps: sequentially acquire distance images in which information regarding the distance from a reference position to an object in a monitored space is used as a gradation value; for each group of pixels or regions that are located at the same position in multiple distance images acquired over a specified period, identify a pixel or region that has a relatively small gradation value within the group; and use the pixels or regions identified for each group to synthesize the multiple distance images acquired over the specified period to generate a processed image. Effect of the Invention
[0017] According to the present invention, it is possible to provide an image processing system and a control program that can generate an image in which the movement of a moving object in a captured image is easily recognized, and also to provide an image processing system and a control program that can accurately recognize a gesture made by a person in a monitored space with his or her hand extended forward. [Brief description of the drawings]
[0018] [Figure 1] FIG. 1 is a block diagram of an image processing system. [Diagram 2] 4 is a flowchart showing the operation of the image processing system. [Diagram 3]FIG. 2 is a diagram for explaining a correspondence relationship between pixels in each processed image. [Figure 4] FIG. 11 is a conceptual diagram for explaining a processed image. [Diagram 5] FIG. 11 is a conceptual diagram for explaining a processed image. [Figure 6] 1 is an example of a processed image. [Figure 7] 1 is an example of a processed image. [Figure 8] 1 is an example of a processed image. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0019] Various embodiments of the present invention will be described below with reference to the drawings. However, please note that the technical scope of the present invention is not limited to these embodiments, but extends to the inventions described in the claims and their equivalents. In addition, in each drawing, parts having the same or equivalent functions are given the same reference numerals, and their description may be omitted or simplified.
[0020] (Overview of Image Processing System 1) 1 is a block diagram of an image processing system 1. The image processing system 1 is used to watch over a person in a monitored space, such as a hospitalized patient or a person receiving care, and detects a gesture such as a hand wave made by the person being watched over as a gesture, and notifies an external device used by the person watching over the gesture. The image processing system 1 includes an imaging device 2, a distance sensor 3, an image processing device 4, and the like.
[0021] The imaging device 2 is an example of an image generating means, and sequentially generates two-dimensional images by capturing images of the monitored space. The two-dimensional image is an image in which a plurality of pixels are arranged in two dimensions, with gradation values being information on the shading in the monitored space (such as brightness values or color values). The imaging device 2 includes a light emitter, a two-dimensional detector, an imaging optical system, an A / D converter, and the like. The light emitter irradiates the monitored space with near-infrared light having a wavelength of, for example, about 890 nm. The two-dimensional detector includes a photoelectric converter having sensitivity to near-infrared light, such as a CCD (Charge-Coupled Device) element or a C-MOS (Complementary MOS). The imaging optical system forms an image of the monitored location on the two-dimensional detector. The A / D converter amplifies the electrical signal output from the two-dimensional detector and performs analog / digital (A / D) conversion.
[0022] The imaging device 2 captures images of the monitored space while irradiating the light emitter with near-infrared light at regular time intervals (for example, 1 / 30 seconds), generates a near-infrared light image as a two-dimensional image in which each pixel has a luminance value representing the intensity of the near-infrared light as a gradation value, and outputs the image to the image processing device 4. Since humans cannot directly see near-infrared light, the imaging device 2 does not affect the vision of people in the monitored space. Therefore, when monitoring, for example, a hospitalized patient or a person receiving care, the image processing system 1 can monitor the patient or person receiving care without disturbing the patient's sleep.
[0023] The two-dimensional detector may have a photoelectric converter sensitive to visible light, and generate a two-dimensional visible light image in which each pixel has a luminance value, RGB value, or CMY value of visible light as a gradation value. In this case, the light emitter may be omitted.
[0024] The distance sensor 3 is an example of a distance image generating means, and sequentially generates distance images. The distance image is an image in which a plurality of pixels, whose gradation values are information about the distance from a reference position in the monitored space to a corresponding position of an object, are arranged two-dimensionally. The reference position is the arrangement position of the distance sensor 3. The distance sensor 3 irradiates near-infrared rays toward the imaging range of the imaging device 2 at a timing shifted from the timing at which the light emitter of the imaging device 2 irradiates near-infrared rays every time the imaging device 2 performs imaging. The distance sensor 3 sequentially irradiates each position in the monitored space corresponding to each pixel in the two-dimensional image with an exploration signal. For example, the distance sensor 3 divides the imaging range of the imaging device 2 in the horizontal and vertical directions at equal intervals by the number of pixels in the horizontal and vertical directions of the two-dimensional image, and sets the position in each divided area as the position corresponding to each pixel in the two-dimensional image. The distance sensor 3 receives a reflected signal arriving along the scanning direction in which the exploration signal is irradiated, and generates a received light signal having a value according to the intensity of the reflected signal.
[0025] The distance sensor 3 measures the distance from the distance sensor 3 to the object that reflected the reflected signal for each scanning direction based on the phase information of the exploration signal, the angle information indicating the direction in which the exploration signal is currently being irradiated, and the received light signal, and generates distance measurement data indicating the relationship between the scanning direction and the distance. For example, the distance sensor 3 obtains a difference between the phase of the reflected signal obtained from the received light signal and the phase of the exploration signal according to the time of flight method, and measures the distance based on the difference. The distance sensor 3 generates a distance image in which a value corresponding to the distance corresponding to each scanning direction indicated in the distance measurement data is set as the gradation value of the pixel corresponding to each scanning direction, and outputs the image to the image processing device 4. For example, the distance sensor 3 divides a predetermined distance range (for example, 0.5 m to 7 m) into 256 stages at equal intervals and assigns each value from 0 to 255. The distance sensor 3 sets the value assigned to the section to which the distance corresponding to each scanning direction indicated in the distance measurement data belongs as the gradation value of the pixel corresponding to each scanning direction. Each gradation value is set so that the shorter the distance to the corresponding object, the smaller the gradation value, and the longer the distance to the corresponding object, the larger the gradation value.
[0026] In addition, the distance sensor 3 may measure distance according to other known methods, such as a TOF / LiDAR method that irradiates near-infrared light, millimeter waves, laser, etc. and measures the time it takes for the light to reflect off an object and return, or a method that performs triangulation using a stereo camera, etc.
[0027] In this way, the distance sensor 3 sequentially generates distance images corresponding to the sequentially generated two-dimensional images. That is, the imaging device 2 sequentially generates two-dimensional images corresponding to the sequentially generated distance images.
[0028] The imaging device 2 and the distance sensor 3 may be disposed apart from each other to capture and measure. In this case, the processing unit 12 corrects the two-dimensional image or the distance image so that pixels corresponding to the same position in the monitored space are positioned at the same position in the two-dimensional image and the distance image. The image processing device 4 stores in advance in the storage unit 9 a table indicating the relationship between each pixel in the two-dimensional image and the distance image, and the processing unit 12 corrects the image by referring to the table stored in the storage unit 9.
[0029] Furthermore, some or all of the imaging device 2 and the distance sensor 3 may be used in common. For example, the imaging device 2 and the distance sensor 3 may generate a two-dimensional image and a distance image using a common light emitter and / or light receiver.
[0030] The image processing device 4 is a general computer such as a desktop computer, a workstation, a notebook computer, etc. The image processing device 4 has an interface unit 5, an input unit 6, a display unit 7, a communication unit 8, a storage unit 9, a processing unit 12, and a data bus B.
[0031] The interface unit 5 has an interface circuit for performing data communication with the imaging device 2 and the distance sensor 3, and is electrically connected to the imaging device 2 and the distance sensor 3 to transmit and receive various control signals or image signals. Note that the image processing device 4 may have the imaging device 2 and the distance sensor 3.
[0032] The input unit 6 has an input device (such as a keyboard or a mouse) and an interface circuit that acquires signals from the input device, and accepts input operations from an operator who operates the image processing device 4.
[0033] The display unit 7 has a display such as a liquid crystal display or an organic EL (Electro-Luminescence) display, and an interface circuit that outputs image data to the display, and displays various types of information on the display.
[0034] The communication unit 8 is an example of an output means, and has a communication interface circuit conforming to, for example, TCP / IP, and is connected to a communication network such as the Internet. The communication unit 8 outputs data received from the communication network to the processing unit 12, and transmits data input from the processing unit 12 to the communication network.
[0035] The storage unit 9 has a semiconductor memory such as a ROM or a RAM, a magnetic disk or an optical disk drive such as a CD-ROM or a DVD-ROM, and a recording medium thereof. The storage unit 9 also stores a control program and various data for controlling the image processing device 4, and inputs and outputs this information between the storage unit 9 and the processing unit 12. The computer program may be installed into the storage unit 9 from a computer-readable portable recording medium such as a CD-ROM or a DVD-ROM using a known setup program or the like. The storage unit 9 also stores a model 10 and a background image 11 as data.
[0036] Model 10 is a judgment model that is pre-trained to output an evaluation value indicating the likelihood that an input image contains a gesture to be detected. The evaluation value is determined so that the higher the likelihood that the image contains a gesture to be detected, the higher the evaluation value.
[0037] The background image 11 is a two-dimensional image generated by capturing an image of an unmanned monitored space. The background image 11 may be updated periodically or whenever it is determined that no person is present in the monitored space.
[0038] Processing unit 12 has a processor such as a CPU or MPU, memories such as a ROM or RAM, and peripheral circuits thereof, and executes various signal processing of image processing device 4. Note that a DSP, an LSI, an ASIC, an FPGA, or the like may be used as processing unit 12. Processing unit 12 has distance image acquisition means 13, two-dimensional image acquisition means 14, person area detection means 15, extraction means 16, processed image generation means 17, detection means 18, output control means 19, learning means 20, and the like.
[0039] (Gesture detection operation of image processing system 1) 2 is a flowchart showing an operation sequence of the image processing system 1. This operation sequence is executed mainly by the processing unit 12 in cooperation with each element of the image processing device 4, based on a control program stored in the storage unit 9. This operation sequence is executed at each time interval when a distance image and a two-dimensional image are generated.
[0040] First, the distance image acquisition means 13 acquires the latest distance image generated by the distance sensor 3 (step S1). The distance image acquisition means 13 sequentially acquires distance images whose gradation values represent information relating to the distance from a reference position to an object in the monitored space. The distance image acquisition means 13 stores the acquired distance images in the memory unit 9 in association with the time of acquisition.
[0041] Next, the two-dimensional image acquisition means 14 acquires the latest two-dimensional image generated by the imaging device 2 (step S2). The two-dimensional image acquisition means 14 sequentially acquires two-dimensional images, whose gradation values are information about the shading in the monitored space, corresponding to the sequentially acquired distance images. The two-dimensional image acquisition means 14 stores the acquired two-dimensional images in the memory unit 9 in association with the time of acquisition. In this way, the distance image acquisition means 13 sequentially acquires the distance images sequentially generated by the distance sensor 3, and the two-dimensional image acquisition means 14 sequentially acquires the two-dimensional images sequentially generated by the imaging device 2 corresponding to the distance images sequentially generated by the distance sensor 3.
[0042] Next, the person area detection means 15 detects a person area including a person within the two-dimensional image (step S3).
[0043] The person area detection means 15 calculates the absolute value of the difference between the gradation value of each pixel in the two-dimensional image and the gradation value of each corresponding pixel in the background image 11 stored in the storage unit 9, and extracts the pixel area where the calculated absolute value of the difference is equal to or greater than a predetermined threshold as a difference area. The person area detection means 15 groups difference areas due to the same object by labeling, and detects them as changed areas. That is, the person area detection means 15 groups adjacent (8-connected) pixels from the difference areas extracted from one two-dimensional image, combines groups that are close to each other (located within a predetermined range) based on their size or positional relationship, and combines the combined areas as changed areas.
[0044] The person area detection means 15 may detect a changed area using an inter-frame difference. In this case, the person area detection means 15 calculates the absolute value of the difference between the luminance value of each pixel in the latest 2D image and the luminance value of the corresponding pixel in the immediately preceding 2D image, and extracts, as a difference area, a pixel area where the absolute value of the calculated difference is equal to or greater than a predetermined threshold value.
[0045] Next, the person area detection means 15 judges whether the object in the changed area is likely to be a person based on the feature quantities such as the size and aspect ratio of the changed area. The person area detection means 15 judges whether the object in the changed area is likely to be a person based on whether the size of the changed area is within a predetermined range corresponding to the size of a person and the aspect ratio of the changed area is within a predetermined range corresponding to the aspect ratio of a person. The size of each changed area is converted to an actual size using the position in the two-dimensional image and the installation information of the imaging device 2 stored in the storage unit 9. If the changed area is likely to be a person, the person area detection means 15 detects the changed area as a person area.
[0046] The person area detection means 15 may detect a person area in a distance image in the same manner as when detecting a person area in a two-dimensional image. The person area detection means 15 may detect a person area included in an image according to a judgment model. In this case, the image processing device 4 stores in the storage unit 9 a judgment model trained using a plurality of learning images including people, for example, by a known machine learning technique such as deep learning. The judgment model is trained in advance so that the position of the person area included in the learning image is output when the learning image is input. As the machine learning technique, for example, a multi-layered neural network composed of an input layer, a plurality of intermediate layers, and an output layer is used. The learning image is input to the input layer. Each node in the intermediate layer extracts a feature vector from the image output from each node in the input layer, and outputs the sum of values obtained by multiplying each extracted feature vector by a weight. The output layer outputs the sum of values obtained by multiplying each feature vector output from each node in the intermediate layer by a weight. The judgment model learns so that the difference between the output value from the output layer and the position of the person area included in the learning image becomes small while adjusting each weight. The human region detection means 15 inputs a two-dimensional image or a distance image to a determination model, and detects a human region in the two-dimensional image or the distance image from an output value output from the determination model.
[0047] Next, the extraction means 16 extracts the pixel with the smallest gradation value from each group of pixels arranged at the same position in a predetermined number of distance images generated during a predetermined period (step S4). The predetermined number is 2 or more, for example 10.
[0048] The extraction means 16 reads out a predetermined number of the most recent distance images from the distance images stored in the memory unit 9. The extraction means 16 groups pixels that are located at the same position within an area of each read distance image that corresponds to a person area detected by the person area detection means 15. That is, each group contains a predetermined number of pixels (the same number as the read distance image). The extraction means 16 may also group pixels that are located at the same position within the entire area of each read distance image. The extraction means 16 extracts the pixel with the smallest gradation value in each group, i.e. the pixel with the shortest distance to the corresponding object.
[0049] The extraction means 16 may extract the pixel with the smallest gradation value in each group only from pixels whose gradation value is equal to or less than the threshold value. The extraction means 16 may also extract the pixel with the smallest gradation value in each group only from pixels in which an object located in front of the background and the person is captured. In this case, the image processing device 4 stores in advance in the storage unit 9 a background distance image generated by measuring the distance in an unmanned monitored space. The extraction means 16 extracts the pixel with the smallest gradation value in each group only from pixels in the distance image that have a gradation value smaller than the gradation value of the corresponding pixel in the background distance image. Furthermore, the extraction means 16 extracts the pixel with the smallest gradation value in each group only from pixels in the distance image that have a gradation value smaller than the average gradation value of each pixel in the distance image corresponding to the person area detected by the person area detection means 15 a predetermined time ago (for example, the distance image immediately before the predetermined number of distance images read out by the extraction means 16). If there is no pixel in each group whose gradation value is equal to or less than the threshold value, the extraction means 16 extracts a predetermined pixel (e.g., a pixel in the latest distance image) instead of the pixel with the smallest gradation value. This allows the extraction means 16 to exclude pixels in which a moving background (e.g., plants swaying in the wind) is photographed from the extraction target. As a result, the image processing system 1 can detect a person's gesture with higher accuracy. Note that the average value of the gradation values of each pixel in the distance image corresponding to the person area may be the average value of the gradation values of the upper body (upper half) or head area of the person area, rather than the average value of the gradation values of the entire person area.
[0050] The pixel extracted by the extraction means 16 for each group may not be the pixel with the smallest gradation value. For example, when extracting pixels, the extraction means 16 may extract pixels with relatively small gradation values in the group. For example, the extraction means 16 extracts pixels with relatively small gradation values, such as a predetermined (second or third) smallest gradation value, rather than the smallest gradation value in the group. For example, if there are a predetermined number or more pixels (for example, differences between three pixels among the pixels above, below, left, and right) that are greater than or equal to a predetermined value of the pixels to be extracted, the pixel to be extracted is the second or third pixel, or a pixel with a relatively small gradation value, such as the median or average value of the surrounding pixels with similar gradation values. In this way, for example, a pixel that is supposed to be measuring an object located at the same distance from the reference position but that temporarily has a minimum gradation value different from the gradation value of the surrounding area due to noise of the distance sensor 3 or the like can be excluded from the extraction target. Furthermore, when extracting pixels for each group, the extraction means 16 may refer to the gradation values of other pixels adjacent to the pixel in addition to the gradation value of the pixel to determine whether or not to extract the pixel. In this case, the extraction means 16 refers to the gradation values of the pixels adjacent to the pixel in addition to the gradation value of the pixel itself as an index when extracting pixels for each group. For example, the extraction means 16 calculates a representative value (average value, median value, mode value, etc.) from the gradation value of the pixel and the gradation values of four pixels adjacent to the pixel above, below, left and right of the pixel as an index for the pixel. Furthermore, the extraction means 16 may group regions consisting of multiple pixels instead of pixels arranged at the same position in multiple distance images acquired by the distance image acquisition means during a predetermined period. In this case, the extraction means 16 calculates a representative value of the gradation values of the pixels belonging to the region for each region. When extracting pixels belonging to the region, the extraction means 16 selects a pixel to be extracted using the representative value of the region to which the pixel belongs instead of the gradation value of the pixel itself.
[0051] Next, the processed image generating means 17 generates a processed image from the two-dimensional images generated by the imaging device 2 during a predetermined period and / or the distance images generated by the distance sensor 3 during a predetermined period (step S5). The processed image generating means 17 generates a processed image in which a plurality of two-dimensional images and / or distance images acquired during a predetermined period are synthesized using a pixel corresponding to the extracted pixel in the two-dimensional image corresponding to the distance image including the pixel with the smallest gradation value extracted by the extraction means 16 (the two-dimensional image corresponding to the distance image including the pixel or region specified for each group) and / or the pixel with the smallest gradation value extracted in the distance image.
[0052] For example, the processed image generating means 17 generates a processed image from two-dimensional images generated by the imaging device 2 during a predetermined period. In this case, the processed image generating means 17 extracts each distance image including each pixel extracted for each group by the extraction means 16. The processed image generating means 17 identifies the gradation value of a pixel corresponding to the pixel extracted by the extraction means 16 for a two-dimensional image corresponding to the extracted distance image. The processed image generating means 17 generates a processed image by setting the identified gradation value in the two-dimensional image as the gradation value of a pixel corresponding to that group in the processed image.
[0053] When the extraction means 16 extracts areas for each group of areas, the processed image generation means 17 extracts each distance image including each area identified for each group by the extraction means 16. The processed image generation means 17 generates a processed image by setting the gradation value of each pixel corresponding to the area extracted by the extraction means 16 as the gradation value of each pixel in the area corresponding to that group in the processed image for a two-dimensional image corresponding to the extracted distance image.
[0054] The processed image generating means 17 may also generate the processed image from a distance image generated during a predetermined period by the distance sensor 3. In this case, the processed image generating means 17 specifies the gradation value of each pixel in the distance image extracted for each group by the extraction means 16. The processed image generating means 17 generates the processed image by setting the gradation value specified in the distance image as the gradation value of the pixel corresponding to that group in the processed image.
[0055] In addition, when the extraction means 16 extracts areas for each group of areas, the processed image generation means 17 generates a processed image by setting the gradation value of each pixel corresponding to each area in the distance image identified for each group by the extraction means 16 as the gradation value of each pixel in the area corresponding to that group in the processed image.
[0056] The processed image generating means 17 may generate a processed image from a two-dimensional image generated by the imaging device 2 during a predetermined period and a distance image generated by the distance sensor 3 during a predetermined period. In this case, the processed image generating means 17 extracts each distance image including each pixel extracted by the extraction means 16 for each group. The processed image generating means 17 specifies the gradation value of a pixel corresponding to the pixel extracted by the extraction means 16 for a two-dimensional image corresponding to the extracted distance image. The processed image generating means 17 also specifies the gradation value of each pixel in the distance image extracted by the extraction means 16 for each group. The processed image generating means 17 generates a processed image by setting the gradation value specified in the two-dimensional image as the gradation value of the first component of the pixel corresponding to that group in the processed image and setting the gradation value specified in the two-dimensional image as the gradation value of the second component of the pixel corresponding to that group in the processed image. The processed image is, for example, an image having components of each color of RGB, where the first component is, for example, a G component and the second component is, for example, an R component. The first and second components may be other components among the RGB color components. The first and second components may be any of the CMY color components. The first and second components may be components that are not determined in relation to human vision.
[0057] As described above, the extraction means 16 extracts pixels with the smallest gradation value from among the groups only for groups corresponding to the human regions detected by the human region detection means 15. That is, the processed image generation means 17 generates a processed image only for groups corresponding to the detected human regions such that the gradation values of the pixels extracted for each group and / or the pixels in the two-dimensional image corresponding to the pixels are set to the gradation values of the pixels corresponding to the group. For pixels not corresponding to the detected human region, the processed image generation means 17 sets the gradation values of pixels in a predetermined image (e.g., the latest two-dimensional image and / or distance image) to the gradation values of the pixels corresponding to the group. In this way, the processed image generation means 17 can reduce the processing load of generating a processed image and generate a processed image in which multiple images are synthesized, limited to the area corresponding to the person. Note that a combination means includes both the extraction means 16 and the processed image generation means 17. The combination means generates a processed image in which multiple two-dimensional images acquired during a predetermined period are synthesized, using pixels or areas corresponding to the identified pixels or areas in the two-dimensional image corresponding to the distance image including the pixels or areas identified for each group. In particular, the synthesis means generates a processed image by using the gradation value of a pixel or region corresponding to a specified pixel or region in a two-dimensional image corresponding to a distance image including the pixel or region specified for each group as the gradation value of the pixel or region corresponding to the group. Alternatively, the synthesis means generates a processed image by synthesizing a plurality of distance images acquired during a predetermined period using the pixel or region specified for each group. Also, the synthesis means generates a processed image by using the gradation value of a pixel or region specified for each group as the gradation value of a pixel or region corresponding to the group. Alternatively, the synthesis means generates a processed image by using the gradation value of a pixel or region corresponding to a specified pixel or region in a two-dimensional image corresponding to a distance image including the pixel or region specified for each group as the gradation value of the first component of the pixel or region corresponding to the group, and the gradation value of a pixel or region specified for each group in the distance image as the gradation value of the second component of the pixel or region corresponding to the group.The synthesis means generates a processed image using pixels or areas corresponding to the identified pixels or areas in a two-dimensional image corresponding to a distance image including the pixels or areas identified for each group, only for groups corresponding to the detected person areas.
[0058] Fig. 3 is a diagram for explaining the correspondence between distance images, two-dimensional images, and processed images. Fig. 3 shows distance images D1-D3 and two-dimensional images E1-E3 generated at times T1, T2, and T3, respectively, and a processed image F3 generated from the distance images D1-D3 and the two-dimensional images E1-E3.
[0059] In the example shown in Fig. 3, pixels P1 and P2 in distance images D1-D3 are located at the same position and are classified into the same group. Suppose that the pixel P1 in distance image D1 has the smallest gradation value among pixels P1 in distance images D1-D3, and that the pixel P2 in distance image D3 has the smallest gradation value among pixels P2 in distance images D1-D3. In this case, the gradation value of pixel P1 in two-dimensional image E1 corresponding to distance image D1 is set as the gradation value of the first component (G component) of pixel P1 in processed image F3, and the gradation value of pixel P1 in distance image D1 is set as the gradation value of the second component (R component) of pixel P1 in processed image F3. In addition, the gradation value of pixel P2 in the two-dimensional image E3 corresponding to the distance image D3 is set as the gradation value of the first component (G component) of pixel P2 in the processed image F3, and the gradation value of pixel P2 in the distance image D3 is set as the gradation value of the second component (R component) of pixel P2 in the processed image F3.
[0060] 4 shows an example of a processed image generated from a two-dimensional image. Two-dimensional images 21-23 are images captured at times T1, T2, and T3 of a person waving his / her hand toward the imaging device 2 in a monitored space. In general, when a person waves his / her hand toward a predetermined position, the person waves by pushing his / her hand toward the predetermined position. Therefore, the hand is positioned closer to the predetermined position than the background or the person. Therefore, processed image 24 is generated so as to include areas 25-27 in which the hands are captured in two-dimensional images 21-23, respectively.
[0061] Fig. 5 shows an example of a processed image generated from a distance image. Distance images 31-33 are distance images generated by measuring situations in which a person is waving his / her hand towards distance sensor 3 in the monitored space at times T1, T2, and T3. Generally, when a person waves his / her hand towards a predetermined position, the person waves by pushing his / her hand towards the predetermined position. Therefore, the hand is positioned closer to the predetermined position than the background or the person (in Fig. 5, the darker the color, the closer). Therefore, processed image 24 is generated with areas 35-37 in distance images 31-33 where the hands are captured, each with a different gradation value from the background or the person.
[0062] FIG. 6 is an example of a processed image generated from a two-dimensional image and a distance image. In this processed image, the gradation value extracted from the distance image is set as the gradation value of the R component, and the gradation value extracted from the two-dimensional image is set as the gradation value of the G component. In general, the shorter the distance from the imaging device to the object, the clearer the image in which the object is captured, and the longer the distance from the imaging device to the object, the blurrier the image in which the object is captured, and the unclearer the edges of the object. Therefore, in this processed image, the G component extracted from the two-dimensional image is blurred for the background far from the imaging device. However, the edges of this background are clear due to the R component extracted from the distance image. On the other hand, in this processed image, for a person existing near the imaging device, the G component extracted from the two-dimensional image makes the texture of the person's clothing, etc. clear, and the appearance of the person waving his / her hand and the posture of his / her arm moving little by little with his / her elbow as the fulcrum are clearly expressed. In this way, by generating a processed image from a two-dimensional image and a distance image, the image processing system 1 can complement information about distant details that are easily lost in two-dimensional images with distance information, thereby clarifying the edges of the background.
[0063] Fig. 7 is an example of a processed image generated from a two-dimensional image. As shown in Fig. 6, in the processed image generated in this way, the texture of the person is clear due to the information on the shading, and the appearance of the person waving their hand and the posture of the arm moving little by little with the elbow as the fulcrum are clearly expressed.
[0064] Fig. 8 is an example of a processed image generated from a distance image. As shown in Fig. 7, the processed image generated in this way contains information about distance, so the edges between the background and the person are clearly expressed, and further the edges between the background and the person and their hands are also clearly expressed.
[0065] Next, the detection means 18 obtains an evaluation value for the processed image generated by the processed image generation means 17 (step S6). The detection means 18 inputs the processed image to the model 10 that has been trained to output information regarding a gesture motion of a person included in the input processed image for learning, and detects a gesture motion of a person in the monitored space based on the information output from the model 10.
[0066] For example, the detection means 18 obtains an evaluation value for the processed image using the model 10 stored in the storage unit 9. The model 10 is generated by the learning means 20. The learning means 20 learns the relationship between a plurality of learning processed images, an evaluation value indicating the likelihood that each learning processed image contains a gesture to be detected, and the position of an area containing the gesture to be detected, using a known machine learning technique such as deep learning. The gesture to be detected is, for example, a waving motion. In particular, the detection means 18 detects a predetermined gesture motion made in front of the human body (an area in which the gradation value of the distance image is smaller than the gradation value of the human body) among gesture motions made using a part of the human body such as a human hand. The gesture to be detected may be a periodic motion such as a beckoning motion. In addition, the gesture to be detected may be a plurality of motions, and may be, for example, both a waving motion and a beckoning motion. Each learning processing image is an image generated in the same manner as the processing image from images including gestures of various sizes by objects in various states (standing up, sitting, lying down, etc.) or images including no gestures. The learning means 20 stores the learned relationship as a model 10 in the storage unit 9.
[0067] A learning processing image is input to the input layer. Each node of the intermediate layer extracts a feature vector from an image output from each node of the input layer, and outputs the sum of values obtained by multiplying each extracted feature vector by a weight. The output layer outputs the sum of values obtained by multiplying each feature vector output from each node of the intermediate layer by a weight. The learning means 20 adjusts each weight while learning so that the difference between the output value from the output layer, the correct answer value, and the position of the area including the gesture to be detected becomes small. For example, the correct answer value is set to 1 when the learning processing image includes the gesture to be detected, and is set to 0 when the gesture to be detected is not included. Note that the model 10 may be trained by other machine learning techniques such as DPM (Deformable Part Model), R-CNN (Regions with Convolutional Neural Networks), and YOLO. The model 10 may also be generated by an external computer other than the image processing device 4 and transmitted to the image processing device 4. In that case, the learning means 20 may be omitted.
[0068] The detection means 18 inputs the processed image to the model 10 stored in the storage unit 9, and obtains the output value output from the model 10 as an evaluation value for the processed image and the position of the area where the gesture is detected.
[0069] The detection means 18 may cut out an area in the processed image where there is movement, and input the cut-out image to the model 10 to calculate the evaluation value. For a stationary object, the distance from the distance sensor 3 does not change, so there is a possibility that the distance image in which the pixel with the smallest gradation value is extracted by the extraction means 16 for each position in the object may vary. On the other hand, for a moving object, there is a high possibility that the pixel with the smallest gradation value is extracted collectively from one distance image for the entire area in the object. Therefore, the detection means 18 specifies the pixel extracted by the extraction means 16 in step S4 from each distance image for each of the multiple distance images generated during a predetermined period. The detection means 18 detects, as an area in the processed image where there is movement, an area of pixels that are closely adjacent to each other, connected, and have a predetermined size or more, among the pixels specified in each distance image. This allows the detection means 18 to detect gestures only in areas where there is movement, and thus allows the gestures to be detected more accurately.
[0070] The detection means 18 may also calculate the evaluation value using a pattern matching technique. In this case, the image processing device 4 stores in advance in the storage unit 9 a plurality of image patterns in which the gesture to be detected is captured in the sample processed image. The detection means 18 cuts out an area of a predetermined size in the processed image generated in step S5 while shifting its position, and obtains the degree of similarity between the image pattern stored in the storage unit 9 and the area, as an evaluation value. The degree of similarity is, for example, a normalized cross-correlation value.
[0071] Next, the detection means 18 detects the gesture of the person to be detected based on the acquired evaluation value (step S7). If the evaluation value is equal to or greater than a predetermined threshold, the detection means 18 determines that the processed image includes the gesture of the person to be detected, and if the evaluation value is less than the threshold, the detection means 18 determines that the processed image does not include the gesture of the person to be detected. In this manner, the detection means 18 detects the gesture of the person in the monitored space based on the processed image. In particular, the detection means 18 inputs the processed image to the model 10 that has been trained to output information regarding the gesture of the person included in the processed image for learning when the processed image for learning is input, and detects the gesture of the person in the monitored space based on the information output from the model 10.
[0072] Next, the detection means 18 judges whether or not the gesture to be detected is detected (step S8). If the gesture to be detected is not detected, the detection means 18 does not execute any particular process and ends the series of steps.
[0073] On the other hand, when the detection means 18 detects the gesture of the detection target, the detection means 18 judges whether or not a person exists in the vicinity of the area where the gesture is detected (step S9). The detection means 18 calculates the distance between the position of the area where the gesture is detected acquired in step S6 and the area in the processed image corresponding to the person area detected in step S3. When the calculated distance is less than a predetermined distance threshold, the detection means 18 judges that a person exists in the vicinity of the area where the gesture is detected, and judges that the detected gesture is a gesture performed by a person. On the other hand, when the calculated distance is equal to or greater than the distance threshold, the detection means 18 judges that a person does not exist in the vicinity of the area where the gesture is detected, and judges that the detected gesture is not a gesture performed by a person, and ends the series of steps. This makes it possible for the detection means 18 to prevent the movement of an object other than a person in the monitored space from being mistakenly detected as the gesture of the detection target.
[0074] If it is determined that a person is present in the vicinity of the area where the gesture is detected, the output control means 19 outputs information about the detected gesture via the communication unit 8 to notify an external device (step S10), and ends the series of steps. The information about the gesture includes the fact that a gesture of the detection target by a person has been detected, the type of gesture, the time when the gesture was detected, the duration of the gesture, the area where the gesture was detected, etc. The output control means 19 may display the information about the detected gesture on the display unit 7 or output it from a sound output device (not shown).
[0075] The process of step S3 may be omitted. In this case, the extraction means 16 executes the process of step S4 for all pixels in the range image and the two-dimensional image.
[0076] Also, the process of step S9 may be omitted. In this case, the model 10 may be pre-trained to output an evaluation value indicating the likelihood that each learning processing image contains a gesture to be detected by a person, and the detection means 18 may detect a gesture made by a person using the determination model 10.
[0077] (Effects of image processing system 1) As described above, the image processing system 1 detects a gesture to be detected based on a processed image generated using pixels captured or measured when an object in a monitored space was located at the front side within a predetermined period. This allows the image processing system 1 to focus on an area where a movement occurred at the front side and accurately detect a gesture in which a movement occurs at the front side. Therefore, the image processing system 1 can accurately detect a gesture of a person in a monitored space. In particular, when a person to be monitored is asked to put his / her hand out in front of his / her body and wave as a means of calling a nurse, the image processing system 1 can accurately detect the movement and notify the person to be monitored.
[0078] Moreover, the image processing system 1 generates a processed image based on a distance image and a two-dimensional image. The image processing system 1 can include information about the shape and texture of an object in the processed image by generating the processed image based on a two-dimensional image. Although the distance sensor 3 may not be able to measure the distance to an object with low reflectance of near-infrared light, the image processing system 1 can generate a highly reliable processed image by generating the processed image based on a two-dimensional image. On the other hand, the image processing system 1 can generate a processed image in which the background and the person are clearly distinguished even if the brightness of the background and the person are similar by generating the processed image based on a distance image. In this way, the brightness and the distance play complementary roles when generating a processed image, so the image processing system 1 can detect a gesture with higher accuracy by using the processed image generated based on the distance image and the two-dimensional image. Furthermore, by using the distance image, a processed image in which the person and the hand are clearly distinguished even if the person and the hand are moving while overlapping can be generated, and the gesture can be detected with higher accuracy. [Explanation of symbols]
[0079] 1 Image processing system, 2 Imaging device, 3 Distance sensor, 4 Image processing device, 8 Communication unit, 9 Storage unit, 12 Processing unit
Claims
1. a distance image acquisition means for sequentially acquiring distance images in which information regarding a distance from a reference position to an object in a monitored space is used as a gradation value; a two-dimensional image acquisition means for sequentially acquiring two-dimensional images, the two-dimensional images having gradation values representing information on shading within the monitored space, corresponding to the sequentially acquired distance images; a synthesis means for identifying, for each group of pixels or regions arranged at the same position in a plurality of distance images acquired by the distance image acquisition means during a predetermined period of time, a pixel or region having a relatively small gradation value within the group, and generating a processed image in which the plurality of two-dimensional images acquired during the predetermined period of time are synthesized using a pixel or region corresponding to the identified pixel or region in a two-dimensional image corresponding to the distance image including the pixel or region identified for each group; 1. An image processing system comprising:
2. The image processing system of claim 1, wherein the synthesis means generates a processed image by using the gradation value of a pixel or area corresponding to the identified pixel or area in a two-dimensional image corresponding to a distance image including the pixels or areas identified for each group as the gradation value of the pixel or area corresponding to the group.
3. 3. The image processing system of claim 1, wherein the synthesis means generates the processed image so that the gradation value of a pixel or region corresponding to the identified pixel or region in a two-dimensional image corresponding to a distance image including the pixel or region identified for each group is set to the gradation value of a first component of the pixel or region corresponding to the group, and the gradation value of a pixel or region identified for each group in the distance image is set to the gradation value of a second component of the pixel or region corresponding to the group.
4. The image processing system according to any one of claims 1 to 3, further comprising a detection means for inputting the processed image for learning into a model trained to output information regarding the gesture movements of a person contained in the input learning processed image, and detecting the gesture movements of a person in the monitored space based on the information output from the model.
5. a person area detection unit that detects a person area including a person in the distance image or the two-dimensional image, The image processing system according to any one of claims 1 to 4, wherein the synthesis means generates the processed image using pixels or areas corresponding to the identified pixels or areas in a two-dimensional image corresponding to a distance image including the pixels or areas identified for each group, only for the group corresponding to the detected person area.
6. 4. The image processing system according to claim 1, further comprising a detection unit that detects, based on the processed image, a predetermined gesture made in front of a person present within the monitored space.
7. a distance image acquisition means for sequentially acquiring distance images in which information regarding a distance from a reference position to an object in a monitored space is used as a gradation value; identifying, for each group of pixels or regions arranged at the same position in a plurality of distance images acquired by the distance image acquisition means during a predetermined period, a pixel or region having a gradation value indicating a relatively short distance within the group; a processed image generating means for generating a processed image by synthesizing a plurality of distance images acquired during a predetermined period using the gradation values of the pixels or regions specified for each group; 1. An image processing system comprising:
8. Sequentially acquiring distance images in which information regarding the distance from a reference position to an object in a monitored space is used as a grayscale value; Sequentially acquiring two-dimensional images in which information regarding shading in the monitored space is used as a gradation value in response to the sequentially acquired distance images; Identifying, for each group of pixels or regions arranged at the same position in a plurality of distance images acquired during a predetermined period, a pixel or region having a relatively small gradation value within said group; generating a processed image by synthesizing a plurality of two-dimensional images acquired during a predetermined period of time using pixels or regions corresponding to the identified pixels or regions in a two-dimensional image corresponding to a distance image including the pixels or regions identified for each group; A control program that causes a computer to execute the above steps.
9. Sequentially acquiring distance images in which information regarding the distance from a reference position to an object in a monitored space is used as a grayscale value; identifying, for each group of pixels or regions that are arranged at the same position in a plurality of distance images acquired during a predetermined period, a pixel or region that has a gradation value that indicates a relatively short distance within the group; generating a processed image by synthesizing a plurality of distance images acquired during a predetermined period using the gradation values of the pixels or regions identified for each group; A control program that causes a computer to execute the above steps.
Citation Information
Patent Citations
Driving device for wire of wire printer, etc.
JP1982082061A
Information input device, information input method, corrected data generating device and solid-state image pickup device
JP1998177449A
Individual identification system, individual identification method, and program
JP2019200522A
Information processing device, information processing system, and image processing method
WO2018189880A1
