Program, method and device

The image recognition system enhances object detection accuracy by isolating a person region and resizing it appropriately for the object detector, addressing pixel collapse issues and improving detection of small or elongated objects.

JP2024123266AActive Publication Date: 2024-09-10NEC CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2024105898
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-09-10
Estimated Expiration
2040-03-27

AI Technical Summary

Technical Problem

Existing image recognition systems struggle to accurately detect small or elongated objects in images due to pixel collapse during resizing, leading to reduced recognition accuracy.

Method used

An image recognition system that includes a first detection section to identify a person region, an extraction image generation section to cut out a specific area based on the person region, and a second detection section to detect the target object within this extraction area, ensuring the image size is appropriate for the object detector, thereby avoiding pixel collapse.

Benefits of technology

This approach improves the recognition accuracy of objects in images by maintaining resolution and reducing calculation costs, particularly effective for detecting small or elongated items like white canes, enabling applications such as voice support systems for visually impaired individuals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024123266000001
    Figure 2024123266000001
Patent Text Reader

Abstract

To provide an image recognition system, an image recognition method, and a non-transitory computer-readable medium that improve recognition accuracy of an object included in an image.SOLUTION: An image recognition system (10) includes a first detection unit (101), an extracted image generation unit (104) and a second detection unit (107). The first detection unit (101) detects a person area that represents at least a portion of the body of a person from a first image obtained by imaging a target object related to the person. The extracted image generation unit (104) cuts out the extraction area set according to the person area from the first image. The second detection unit (107) detects the target object on the basis of the cut-out extraction area.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an image recognition system, an image recognition method, and a non-transitory computer-readable medium. [Background technology]

[0002] There are known techniques for detecting objects from captured images generated by a camera. For example, Patent Document 1 discloses an information processing device that uses a trained convolutional neural network (CNN) to detect belongings such as bags carried by people in a captured image. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] International Publication No. 2019 / 207721 Summary of the Invention [Problem to be solved by the invention]

[0004] Here, the captured image generated by the camera is reduced to a predetermined image size and input to the input layer of the trained CNN. If the captured image shows a small belonging to be detected or if the belonging to be detected is a long and thin object such as a white cane, the reduction may cause pixel loss in the image area representing the belonging. Therefore, the information processing device described in the above-mentioned Patent Document 1 cannot detect the belonging, and further improvement in the object recognition accuracy is required.

[0005] In view of the above-mentioned problems, an object of the present disclosure is to provide an image recognition system, an image recognition method, and a non-transitory computer-readable medium that can improve the recognition accuracy of an object included in an image. [Means for solving the problem]

[0006] An image recognition system according to an embodiment of the present disclosure includes a first detection unit, an extraction image generation unit, and a second detection unit. The first detection unit detects a person area representing at least a part of a body of a person from a first image in which a target object related to the person is captured. The extraction image generation unit cuts out an extraction area set according to the person area from the first image. The second detection unit detects the target object based on the cut-out extraction area.

[0007] An image recognition method according to an embodiment of the present disclosure includes a first detection step, an extraction image generation step, and a second detection step. The first detection step detects a person area representing at least a part of a body of a person from a first image in which a target object related to the person is captured. The extraction image generation step cuts out an extraction area set according to the person area from the first image. The second detection step detects the target object based on the cut-out extraction area.

[0008] A non-transitory computer-readable medium according to one aspect of the present disclosure stores an image recognition program for causing a computer to execute an image recognition method. The image recognition method includes a first detection step, an extraction image generation step, and a second detection step. The first detection step detects a person area representing at least a part of the body of a person from a first image in which a target object related to the person is captured. The extraction image generation step cuts out an extraction area set according to the person area from the first image. The second detection step detects the target object based on the cut-out extraction area. Effect of the Invention

[0009] The present disclosure makes it possible to provide an image recognition system, an image recognition method, and a non-transitory computer-readable medium that can improve the accuracy of recognizing objects included in an image. [Brief description of the drawings]

[0010] [Figure 1]1 is a block diagram showing a configuration of an image recognition system according to a first embodiment. [Diagram 2] FIG. 11 is a block diagram showing a configuration of an image recognition system according to a second embodiment. [Diagram 3] 11 is a flowchart showing a process of the image recognition system according to the second embodiment. [Figure 4] FIG. 11 is a diagram for explaining the processing of the image recognition system according to the second embodiment. [Diagram 5] FIG. 11 is a diagram for explaining the processing of the image recognition system according to the second embodiment. [Figure 6] FIG. 11 is a diagram for explaining the processing of the image recognition system according to the second embodiment. [Figure 7] FIG. 11 is a diagram for explaining the processing of the image recognition system according to the second embodiment. [Figure 8] FIG. 11 is a diagram for explaining the processing of the image recognition system according to the second embodiment. [Figure 9] FIG. 11 is a diagram showing an example of a display of the image recognition system according to the second embodiment. [Figure 10] FIG. 11 is a block diagram showing a configuration of an image recognition system according to a third embodiment. [Figure 11] 13 is a flowchart showing a process of an image recognition system according to a third embodiment. [Figure 12] FIG. 13 is a block diagram showing a configuration of an image recognition system according to a fourth embodiment. [Figure 13] 13 is a flowchart showing a process of an image recognition system according to a fourth embodiment. [Figure 14] FIG. 13 is a block diagram showing the configuration of an image recognition system according to a fifth embodiment. [Figure 15] 13 is a flowchart showing an object region detection process of a second detection unit according to the fifth embodiment. [Figure 16] 13 is a diagram for explaining an object region detection process by a second detection unit according to the fifth embodiment. FIG. [Figure 17] FIG. 13 is a block diagram showing the configuration of an image recognition system according to a sixth embodiment. [Figure 18] 23 is a flowchart showing a human area detection process of a first detection unit according to the sixth embodiment. [Figure 19] 13 is a diagram for explaining a human region detection process by a first detection unit according to the sixth embodiment. FIG. [Figure 20] FIG. 13 is a block diagram showing the configuration of an image recognition system according to a seventh embodiment. [Figure 21] FIG. 23 is a diagram showing an example of a data structure of part selection information according to the seventh embodiment. [Figure 22] 20 is a flowchart showing a human area detection process of a first detection unit according to the seventh embodiment. [Diagram 23] FIG. 1 is a configuration diagram of a computer according to the first to seventh embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, the present disclosure will be described through embodiments, but the disclosure according to the claims is not limited to the following embodiments. Moreover, not all of the configurations described in the embodiments are necessarily essential as means for solving the problem. In each drawing, the same elements are given the same reference numerals, and duplicated explanations are omitted as necessary. In the following description, when the number of pixels of an image (also called image size) or the number of pixels of an image area is expressed as X×Y, X indicates the number of pixels in the width direction of the rectangular image or rectangular image area, and Y indicates the number of pixels in the height direction of the rectangular image or rectangular image area. X and Y are natural numbers.

[0012] <Embodiment 1> First, a first embodiment of the present disclosure will be described with reference to Fig. 1. Fig. 1 is a block diagram showing a configuration of an image recognition system 10 according to the first embodiment. The image recognition system 10 includes a first detection unit 101, an extracted image generation unit 104, and a second detection unit 107. The first detection unit 101 detects a person region that represents at least a part of the person's body from a first image in which a target object related to a person is captured. The extraction image generating unit 104 cuts out an extraction area set in accordance with the person area from the first image. The second detection unit 107 detects a target object based on the cut-out extracted region.

[0013] Thus, according to the configuration of the first embodiment, the image recognition system 10 detects a target object based on an extracted region excluding unnecessary regions. Therefore, when converting a target image to have an image size equivalent to that of an input image of the CNN in order to detect the target object, it is possible to avoid pixel collapse in an image region representing the target object. This makes it possible to improve the recognition accuracy of objects included in an image.

[0014] <Embodiment 2> Next, a second embodiment of the present disclosure will be described with reference to Figures 2 to 9. Figure 2 is a block diagram showing a configuration of an image recognition system 20 according to the second embodiment. The image recognition system 20 is a computer system that recognizes a target object related to a person from a captured image. The image recognition system 20 includes an acquisition unit 200 , a first detection unit 201 , an extracted image generation unit 204 , a second detection unit 207 , and a storage unit 211 .

[0015] The acquisition unit 200 acquires various information necessary for a series of recognition processes such as detection of a target object. The acquisition unit 200 acquires a first image I1 from an imaging device (not shown) such as a security camera or by receiving an input from a user. In the first image I1, a person and a target object related to the person are captured. The target object may be the person's belongings. The person's belongings are not limited to objects held by the person in their hands, but include objects held in some form. The person's belongings may be objects held by the person in their hands (such as a white cane or a bag), objects hung from the person's neck (such as an identification card), objects worn by the person on their head (such as a hat), or objects worn by the person on their face (such as glasses). The acquisition unit 200 supplies the acquired information to the first detection unit 201.

[0016] The first detection unit 201 detects a person region representing at least a part of a person's body from the first image I1 using a person region detector. The person region may represent the entire person, or may represent a part of the person's body. As an example, the part of the person's body is a part such as a hand, an arm, a neck, a head, or a face. The person region detector may be a detector that is trained in advance to detect, for example, an image region representing a person or an image region representing a specific part of a person from an input image. Such a detector may use any existing object detection model. In the second embodiment, the person region detector uses a detection model such as SSD (Single Shot MultiBox Detector) or WSSD (Weighted Single Shot MultiBox Detector) including a trained CNN. However, the present invention is not limited to this, and the person region detector may use any other detection model such as SVM (Support Vector Machine). The first detection unit 201 supplies information on the detected human region to the extracted image generation unit 204 .

[0017] The extraction image generating unit 204 cuts out an extraction area from the first image I1. Here, the extraction area is an image area set according to the person area detected by the first detection unit 201. For example, the extraction area may be an image area arranged in a predetermined position with respect to the person area in the first image I1 and in a predetermined range. Also, the extraction area may be an image area arranged in a predetermined range with the person area as the center in the first image I1. As an example, the extraction area may be an image area having a number of pixels set based on the number of pixels of the person area, centered on the center of the person area in the first image I1. Also, the extraction area may be the same image area as the person area.

[0018] The extracted image generating unit 204 then generates a second image I2 based on the cut-out extracted region. The extracted image generating unit 204 performs image conversion on the extracted region so that the extracted region has an image size equivalent to the image size of an input image of an object detector used in a second detection unit 207 (described later), thereby generating a second image I2. The extracted image generating unit 204 supplies the generated second image I2 to the second detecting unit 207.

[0019] The second detection unit 207 detects an object region, which is an image region representing a target object, from the second image I2 using an object detector. Here, the object detector may be a detector that has been trained in advance to detect an image region representing a target object from an input image. The object detector may use a detection model such as SSD or WSSD including a trained CNN.

[0020] The storage unit 211 is a storage medium that stores various information necessary for a series of recognition processes such as detection of a target object, etc. For example, the storage unit 211 stores learned parameters of a human region detector used by the first detection unit 201 and learned parameters of an object detector used by the second detection unit 207.

[0021] Next, an image recognition method of the image recognition system 20 will be described using Fig. 3 with reference to Figs. 4 to 8. Fig. 3 is a flowchart showing the processing of the image recognition system 20 according to the second embodiment. Figs. 4 to 8 are diagrams for explaining the processing of the image recognition system 20 according to the second embodiment.

[0022] First, in step S10, the acquisition unit 200 acquires a first image I1. Here, as shown in FIG. 4, the first image I1 captures a person and a target object related to the person. In this example, the target object is a "white cane" held by the person. As shown in FIG. 4, the first image I1 has a pixel count of X1×Y1. In this example, the first image I1 is a full high-definition captured image, i.e., X1 is 1920 and Y1 is 1080.

[0023] Next, in step S11, the first detection unit 201 detects a person region from the first image I1. In this example, the first detection unit 201 acquires the learned parameters of the person region detector from the storage unit 211, and uses the learned person region detector including the learned parameters to detect a person region P that is the entire person from the first image I1. As shown in FIG. 5, the person region P has the number of pixels of XP1×YP1 (XP1<X1 and YP1<Y1).

[0024] At this time, the first detection unit 201 may convert the first image I1 to have the same image size as the image size of the input image of the person region detector (for example, 300 pixels×300 pixels), and input the converted image to the person region detector. Then, the first detection unit 201 may specify the person region P in the first image I1 based on the image region related to the output result. Note that when performing image conversion, the first detection unit 201 may perform the same processing as the image conversion processing performed by the extraction image generation unit 204 in step S13 described later. Then, the first detection unit 201 supplies the information related to the person region P to the extraction image generation unit 204.

[0025] Next, in step S12, the extraction image generation unit 204 specifies an extraction region based on the person region. For example, as shown in FIG. 6, the extraction image generation unit 204 specifies an image region having the number of pixels of XA1×YA1 as the extraction region A with the center of the person region P as the center (XP1<XA1<X1 and YP1<YA1<Y1). Here, XA1 and YA1 may be set based on XP1 and YP1, respectively. For example, XA1 and YA1 may each have a value that is N times (N>1) that of XP1 and YP1. N may be determined in advance.

[0026] Next, in step S13, the extraction image generating unit 204 generates a second image I2 based on the identified extraction region. For example, as shown in FIG. 7, the extraction image generating unit 204 cuts out an extraction region A having a pixel count of XA1×YA1 from the first image I1, and converts the extraction region A into a second image I2 having a pixel count of X2×Y2. X2 and Y2 are equal to the pixel count in the width direction and the pixel count in the height direction of the image size of the input image of the object detector, respectively. X2 and Y2 may have values ​​smaller than X1 and Y1, respectively. In this example, X2 and Y2 are both 300.

[0027] At this time, the extraction image generating unit 204 performs image conversion processing such as enlargement, reduction, stretching, or compression on the extraction area A based on the number of pixels of the extraction area A and the second image I2. In this example, the extraction image generating unit 204 performs image conversion processing on the extraction area A by (X2 / XA1) times in the width direction and (Y2 / YA1) times in the height direction. For example, when enlarging or reducing the extraction area A, the extraction image generating unit 204 may change the interval between a specific pixel included in the extraction area A and the surrounding pixels, and interpolate the pixels therebetween. When expanding the extraction area A, the extraction image generating unit 204 may widen the interval between the pixels in the stretching direction, and interpolate the pixels therebetween. When compressing the extraction area A, the extraction image generating unit 204 may narrow the interval between the pixels in the shrinking direction, and appropriately interpolate the pixels. When enlarging or expanding the extraction region A, the extraction image generation section 204 may perform zero padding in the enlarging or expanding direction instead of widening the space between pixels. The extracted image generating unit 204 then supplies the generated second image I2 to the second detecting unit 207.

[0028] Next, in step S14, the second detection unit 207 obtains the learned parameters of the object detector from the storage unit 211, and detects an object region from the second image I2 using the learned object detector including the learned parameters. As described above, the image size of the input image of the object detector is equal to X2×Y2. Therefore, in this example, the image size is 300×300. For example, as shown in FIG. 8, the second detection unit 207 detects an object region B representing a white cane in the second image I2.

[0029] Next, in step S15, second detection unit 207 determines whether or not to end the series of processes. If so, second detection unit 207 ends the processes, otherwise, the process returns to step S11.

[0030] Here, in the case where steps S11 to S13 are not performed as in the information processing device described in Patent Document 1, the first image I1, which has been reduced from X1×Y1 (=1920×1080) to X2×Y2 (=300×300), is input to the object detector as the second image I2. That is, the first image I1 is reduced so that the number of pixels in the width direction is (X2 / X1) (=about 0.16) times and the number of pixels in the height direction is (Y2 / Y1) (=about 0.28) times. Here, if the ratio of the resolution of the converted image to the image before conversion is S, the width direction S is (X2 / X1) (=about 0.16) and the height direction S is (Y2 / Y1) (=about 0.28), and the image resolution is significantly reduced by the image conversion process. For this reason, pixel collapse is likely to occur in the object region of the second image I2. However, according to the second embodiment, the extraction area A cut out in steps S11 to S13 is converted into the second image I2, so that the closer the number of pixels in the extraction area A is to the number of pixels in the second image I2, the less the reduction in resolution due to the image conversion. For example, when the number of pixels in the extraction area A is approximately equal to X2×Y2 (=300×300), the resolution of the generated second image I2 is maintained approximately equal to the resolution of the extraction area A in the first image I1. Therefore, it is possible to avoid pixel crushing in the object area, and thereby to improve the recognition accuracy of the target object included in the first image I1. Furthermore, since the extraction area A has information about unnecessary areas in the first image I1 removed, it is possible to improve the recognition accuracy while reducing the calculation cost. The image recognition system 20 according to the second embodiment is particularly effective when the target object is a "white cane" whose number of pixels in either width or height is significantly smaller than the number of pixels in the other. Therefore, the image recognition system 20 can be applied to a voice support system that uses a surveillance camera image to identify a person with low vision who is carrying a "white cane" and provides voice guidance to the identified person.

[0031] In the second embodiment, the image size of the input image of the object detector is 300×300, that is, X2 and Y2 are both 300, but X2 and Y2 may both be less than 300. That is, the image size of the input image of the object detector may be 200×200, 150×150, or 100×100. In this case, the object detector may be a detector trained according to an input image of a predetermined image size. However, when the image size of the input image of the object detector is such a small value, the resolution of the generated second image I2 is lower than when it is 300×300. However, even in such a case, the influence of the reduction in resolution on the recognition accuracy can be mitigated by determining X2 and Y2 so that the ratio S of the resolution of the image before and after conversion is a predetermined amount larger than S when the object area is detected without performing steps S11 to S13. Moreover, in this case, the second detection unit 207 can detect the object area using a lighter detector, so that the calculation cost can be significantly reduced while maintaining a certain degree of recognition accuracy.

[0032] The image recognition system 20 of the second embodiment may further include a display unit. Fig. 9 is a diagram showing an example of a display of the image recognition system 20 according to the second embodiment. As shown in this figure, the display unit may display a first image I1 and a second image I2.

[0033] In response to detection of object region B from second image I2, the display unit may display object region B superimposed on second image I2. Furthermore, the display unit may display an extracted region A corresponding to the detected object region B superimposed on the first image I1.

[0034] Furthermore, as shown in the figure, the display unit may have an image input means for receiving an input of a first image I1 from a user. The image input means may be connected to the acquisition unit 200. Then, the display unit may display the first image I1 in response to receiving the input of the first image I1 by the image input means.

[0035] The display unit may have an image output means for receiving a request from a user to output the first image I1 with the extracted area A superimposed thereon, the second image I2, or the second image I2 with the object area B superimposed thereon. In response to receiving the output request from the image output means, the image recognition system 20 may output the image data related to the request in a predetermined data format.

[0036] <Embodiment 3> Next, a third embodiment of the present disclosure will be described with reference to Figures 10 to 11. The third embodiment is characterized in that the image size of the second image I2 is determined based on the size of the extraction region. 10 is a block diagram showing a configuration of an image recognition system 30 according to embodiment 3. The image recognition system 30 according to embodiment 3 basically has the same configuration and functions as the image recognition system 20 according to embodiment 2. However, the image recognition system 30 according to embodiment 3 differs from embodiment 2 in that it includes an extracted image generation unit 304 instead of the extracted image generation unit 204.

[0037] The extracted image generating unit 304 has the same configuration and functions as the extracted image generating unit 204 , and further includes a size determining unit 305 . The size determination unit 305 determines the number of pixels that the second image I2 has based on the number of pixels that the extraction region has. For example, the size determination unit 305 selects one of the predetermined numbers of pixels that the second image I2 may have based on the number of pixels that the extraction region has, and determines the selected number of pixels as the number of pixels that the second image I2 has. The number of pixels that the second image I2 may have may include, for example, 300 x 300 and 200 x 200. The extraction image generation unit 204 then converts the extraction region according to the determined number of pixels to generate the second image I2.

[0038] Note that the storage unit 211 of the third embodiment stores learned parameters of an object detector for each number of pixels that the second image I2 may have, in addition to the information stored in the storage unit 211 of the second embodiment. For example, the storage unit 211 stores learned parameters of an object detector for an input image having an image size of 300×300, and learned parameters of an object detector for an input image having an image size of 200×200.

[0039] Fig. 11 is a flowchart showing the processing of the image recognition system 30 according to the embodiment 3. The steps shown in Fig. 11 include steps S20 to S24 instead of steps S13 to S14 shown in Fig. 3. Note that the same steps as those shown in Fig. 3 are denoted by the same reference numerals and the description thereof will be omitted.

[0040] In step S20, the size determination unit 305 of the extraction image generation unit 304 determines the number of pixels of the second image I2 based on the number of pixels of the extraction area A, in response to the extraction image generation unit 304 identifying the extraction area A in step S12.

[0041] For example, when the number of pixels in at least one of the height and width directions of the extraction area A is less than 300, the size determination unit 305 may determine the number of pixels in the second image I2 to be 200 x 200. When the number of pixels in both the height and width directions is 300 or more, the size determination unit 305 may determine the number of pixels in the second image I2 to be 300 x 300.

[0042] The size determination unit 305 may also determine the number of pixels that the second image I2 has so that the ratio S of the resolution of the image before and after the conversion is greater than a predetermined reference value S0. Here, the ratio S of the resolution of the image before and after the conversion is a value obtained by dividing the number of pixels of the second image I2 by the number of pixels of the extraction area A (i.e., X2 / XA1 in the width direction or Y2 / YA1 in the height direction). For example, in order to ensure the resolution of the second image I2, the size determination unit 305 determines, as the number of pixels of the second image I2, a number of pixels that is greater than the product between the number of pixels of the extraction area A and the reference value S0, among the numbers of pixels that the second image I2 may have. Specifically, the size determination unit 305 selects, from the values ​​of X2 (or Y2) that the second image I2 may have, a value that is greater than the product between the smaller of the number of pixels in the height and width directions of the extraction area A and the reference value S0, and determines it as X2 (or Y2) of the second image I2. If there are multiple values ​​of X2 (or Y2) selected in this way, the size determination unit 305 may determine the minimum value of these values ​​as X2 (or Y2) of the second image I2, thereby reducing the calculation cost.

[0043] In step S22, the extraction image generating unit 304 performs the same process as in step S13 based on the specified extraction area A and the determined number of pixels of the second image I2 to generate the second image I2. The extraction image generating unit 304 then supplies the generated second image I2 to the second detection unit 207.

[0044] In step S24, the second detection unit 207 acquires trained parameters of an object detector corresponding to the determined number of pixels of the second image I2 from the storage unit 211. Then, the second detection unit 207 detects an object region B from the second image I2 using the trained object detector including the trained parameters.

[0045] As described above, according to the third embodiment, the image recognition system 30 determines the image size of the second image I2 based on the size of the extracted region A to be cut out. Therefore, it is possible to ensure the resolution of the input image in detecting the object region, thereby ensuring the recognition accuracy and reducing the calculation cost.

[0046] <Embodiment 4> Next, a fourth embodiment of the present disclosure will be described with reference to Figs. 12-13. Here, when a person appears small on the first image I1, there is a high possibility that a target object related to the person also appears small. In such a case, it becomes difficult to accurately detect the object area of ​​the target object. The fourth embodiment is characterized in that when the person area P is smaller than a predetermined size, the subsequent object area detection process is not performed.

[0047] 12 is a block diagram showing the configuration of an image recognition system 40 according to embodiment 4. The image recognition system 40 according to embodiment 4 basically has the same configuration and functions as the image recognition system 30 according to embodiment 3. However, the image recognition system 40 according to embodiment 4 differs from embodiment 3 in that it includes an extracted image generation unit 404 instead of the extracted image generation unit 304.

[0048] The extracted image generating unit 404 has a determination unit 406 in addition to the configuration and functions of the extracted image generating unit 304 . The determination unit 406 determines whether or not to generate a second image I2 based on the number of pixels in the person area P. That is, the determination unit 406 determines whether or not to proceed to the subsequent object area detection step based on the number of pixels in the person area P.

[0049] Fig. 13 is a flowchart showing the processing of the image recognition system 40 according to the embodiment 4. The steps shown in Fig. 13 include step S30 in addition to the steps shown in Fig. 11. Note that the same steps as those shown in Fig. 11 are denoted by the same reference numerals and the description thereof will be omitted.

[0050] In step S30, in response to the first detection unit 201 detecting the person region P from the first image I1 in step S11, the determination unit 406 of the extracted image generation unit 404 determines whether the number of pixels in the person region P is greater than a predetermined first threshold. Specifically, the determination unit 406 determines whether the number of pixels in the height or width direction of the person region P is greater than the first threshold. If the determination unit 406 determines that the number of pixels is greater than the first threshold (Yes in step S30), the process proceeds to step S12. On the other hand, if the determination unit 406 determines that the number of pixels is not greater than the first threshold (No in step S30), the process proceeds to step S15.

[0051] As described above, according to the fourth embodiment, the image recognition system 40 determines whether or not to generate the second image I2 based on the number of pixels in the person area P, and therefore, if the person area P is smaller than a predetermined size, the subsequent processing can be omitted. This reduces the calculation cost and ensures the real-time nature of the series of recognition processes.

[0052] Note that the determination unit 406 may determine whether or not to generate the second image I2 based on the number of pixels in the extraction region A instead of the number of pixels in the person region P. In this case, step S30 shown in FIG. 13 is omitted. Then, in step S12, the extraction image generation unit 404 specifies the extraction region A based on the person region P, and determines whether or not the number of pixels in the extraction region A is greater than a first threshold. If the determination unit 406 determines that the number of pixels is greater than the first threshold, the process proceeds to step S20. On the other hand, if not, the determination unit 406 proceeds to step S15. In this case, the same effect as described above can be obtained.

[0053] <Embodiment 5> Next, a fifth embodiment of the present disclosure will be described with reference to Figures 14 to 16. The fifth embodiment is characterized in that an object region is specified based on relative position information between the object region and the person region from the detection result of an object detector.

[0054] 14 is a block diagram showing the configuration of an image recognition system 50 according to the embodiment 5. The image recognition system 50 according to the embodiment 5 basically has the same configuration and functions as the image recognition system 40 according to the embodiment 4. However, the image recognition system 50 according to the embodiment 5 differs from the embodiment 4 in that the image recognition system 50 includes a second detection unit 507 instead of the second detection unit 207.

[0055] The second detection unit 507 basically has the same functions as the second detection unit 207 , but further includes a candidate area detection unit 508 and a specification unit 509 .

[0056] A candidate region detection unit 508 uses an object detector to detect one or more candidate regions in the second image I2, where a candidate region is an image region that is presumed to represent the target object.

[0057] The identification unit 509 identifies an object region B from one or more candidate regions based on relative position information of the one or more candidate regions with respect to the person region P. In the fifth embodiment, the relative position information may be, for example, the distance between the person region P and the candidate region.

[0058] Next, the object region detection process of the second detection unit 507 according to the fifth embodiment will be described using Fig. 15 with reference to Fig. 16. Fig. 15 is a flowchart showing the object region detection process of the second detection unit 507 according to the fifth embodiment. Fig. 16 is a diagram for explaining the object region detection process of the second detection unit 507 according to the fifth embodiment.

[0059] First, in step S40, the candidate area detection unit 508 of the second detection unit 507 acquires trained parameters of an object detector corresponding to the number of pixels of the second image I2 from the storage unit 211. Then, the candidate area detection unit 508 detects candidate areas from the second image I2 using the trained object detector including the trained parameters. As shown in Fig. 16, the candidate area detection unit 508 detects multiple candidate areas C1 and C2 included in the second image I2.

[0060] Next, in step S42, the identification unit 509 calculates the distance between each of the candidate areas and the person area P2 in the second image I2. Here, the person area P2 in the second image I2 is an image area corresponding to the person area P in the first image I1. As shown in Fig. 16, the distances d1, d2 between each of the candidate areas C1, C2 and the person area P2 may be the distance between a representative point such as the center of each candidate area and a representative point such as the center of the person area P2.

[0061] The identification unit 509 then determines whether or not there is a candidate area whose distance from the person area P2 is less than the second threshold. The second threshold may be a predetermined value, or a value set according to the number of pixels in the person area P2. If the identification unit 509 determines that there is a candidate area whose distance from the person area P2 is less than the second threshold (Yes in step S42), the identification unit 509 proceeds to step S44. On the other hand, if not (No in step S42), the identification unit 509 returns the process to step S15 shown in FIG. 13.

[0062] Then, in step S44, the specification unit 509 specifies a candidate region whose distance from the person region P2 is less than the second threshold as the object region B. Then, the specification unit 509 returns the process to step S15 shown in FIG.

[0063] According to the fifth embodiment, the image recognition system 50 determines whether an object belongs to a person based on the distance from the person, and therefore can properly detect a target object held by the person, thereby improving the recognition accuracy. For example, if the target object is a "white cane," the image recognition system 50 can properly detect the white cane by using the image of a surveillance camera, and further properly identify the person holding the white cane.

[0064] When the second threshold is dynamically set in accordance with the number of pixels in the person area P2, the image recognition system 50 can more appropriately detect a target object held by a person, thereby further improving the recognition accuracy.

[0065] In the fifth embodiment, the image recognition system 50 identifies a candidate area whose distance from the person area P2 is less than the second threshold as the object area B. However, instead of this, the image recognition system 50 may identify a candidate area whose distance from the person area P2 is the smallest as the object area B. This can also achieve the same effect as described above.

[0066] <Embodiment 6> Next, a sixth embodiment of the present disclosure will be described with reference to Figures 17 to 19. The sixth embodiment is characterized in that a human region is detected based on the skeletal structure of a person. 17 is a block diagram showing the configuration of an image recognition system 60 according to embodiment 6. The image recognition system 60 according to embodiment 6 basically has the same configuration and functions as the image recognition system 50 according to embodiment 5. However, the image recognition system 60 according to embodiment 6 differs from embodiment 5 in that the image recognition system 60 according to embodiment 6 includes a first detection unit 601 instead of the first detection unit 201.

[0067] The first detection unit 601 has basically the same function as the first detection unit 201, and detects a human region P from the first image I1. Here, in the sixth embodiment, the human region P represents a part of a human body. For example, the human region P represents a part such as a hand, a neck, a head, or a face. The first detection unit 601 has a skeleton estimation unit 602.

[0068] The skeleton estimation unit 602 estimates a two-dimensional skeleton structure of a person using a skeleton estimation model. Then, the skeleton estimation unit 602 detects a person area P based on the estimated two-dimensional skeleton structure. The skeleton estimation model may be an existing skeleton estimation model that has been trained by machine learning.

[0069] Next, the person area detection process of the first detection unit 601 according to the sixth embodiment will be described with reference to Fig. 18 and Fig. 19. Fig. 18 is a flowchart showing the person area detection process of the first detection unit 601 according to the sixth embodiment. Fig. 19 is a diagram for explaining the person area detection process of the first detection unit 601 according to the sixth embodiment.

[0070] First, in step S50, the skeleton estimation unit 602 of the first detection unit 601 estimates a two-dimensional skeleton structure of a person from the first image I1 using a skeleton estimation model. The estimated two-dimensional skeleton structure is composed of key points, which are characteristic points such as joints, and bones connecting the key points. For example, the skeleton estimation unit 602 first extracts characteristic points that can be key points from the first image I1, and detects each key point of the person by referring to information obtained by machine learning the image of the key points. In the example shown in FIG. 19, the head K1, neck K2, right shoulder K31, left shoulder K32, right elbow K41, left elbow K42, right hand K51, left hand K52, right hip K61, left hip K62, right knee K71, left knee K72, right foot K81, and left foot K82 are detected as key points of the person.

[0071] Next, in step S52, the skeleton estimation unit 602 identifies a person region P based on the estimated two-dimensional skeleton structure. In the example shown in Fig. 19, the target object is a "white cane," and the person region P represents the person's "hand." Therefore, the skeleton estimation unit 602 may select a right hand K51, which is a key point related to the person's "hand," from the detected multiple key points, and identify a predetermined range of an area including the right hand K51 as the person region P.

[0072] At this time, the skeleton estimation unit 602 may determine the extent of the person region P based on the length of the bones connecting the key points. For example, the skeleton estimation unit 602 may determine the extent of the person region P based on the length of the bone B41 connecting the right hand K51 and the right elbow K41, and identify the person region P. Then, the skeleton estimation unit 602 returns the process to step S30 shown in FIG.

[0073] In step S42 shown in FIG. 15, the identification unit 509 may use a point corresponding to the key point selected when estimating the person area P as a representative point of the person area P2 to calculate the distance between the candidate area and the person area P2.

[0074] Thus, according to embodiment 6, the image recognition system 60 detects a person area based on the person's skeletal structure, making it possible to more appropriately detect a target object held by a person based on the person area, thereby further improving recognition accuracy.

[0075] <Embodiment 7> Next, a seventh embodiment of the present disclosure will be described with reference to Figures 20 to 22. The seventh embodiment is characterized in that a person area is specified according to the type of the target object. 20 is a block diagram showing a configuration of an image recognition system 60 according to the seventh embodiment. The image recognition system 70 according to the seventh embodiment basically has the same configuration and functions as the image recognition system 60 according to the sixth embodiment. However, the image recognition system 70 according to the seventh embodiment differs from the sixth embodiment in that the image recognition system 70 according to the seventh embodiment includes a first detection unit 701 instead of the first detection unit 601 and includes a storage unit 711 instead of the storage unit 211.

[0076] The first detection unit 701 has the same configuration and functions as the first detection unit 601 , and further has a part selection unit 703 . The body part selection unit 703 selects the type of body part based on the type of the target object. The skeleton estimation unit 602 specifies the person area P according to the selected type of body part.

[0077] The storage unit 711 stores part selection information that associates the type of target object with the type of part, in addition to the configuration and functions of the storage unit 211. The storage unit 711 also stores trained parameters of the human area detector for each type of part, and trained parameters of the object detector for each type of target object.

[0078] 21 is a diagram showing an example of a data structure of part selection information according to embodiment 7. The part selection information includes a type of a target object and a type of a part. The type of the target object may be a "white cane," a "bag," a "hat," or the like. The type of body part may be "hand" if the type of target object is a "white cane," may be "hand" or "arm" if the type of target object is a "bag," and may be "head" if the type of target object is a "hat."

[0079] The part selection information may further include a value related to the second threshold used when identifying the object region as shown in this figure. The value related to the second threshold included in the part selection information may be the value of the second threshold, or may be a normalized value of the second threshold when the person region P2 is normalized to a predetermined size. In this case, in step S42 shown in FIG. 15, the identification unit 509 may obtain a value related to the second threshold from the part selection information in the storage unit 711 based on the type of the target object and the type of the part, and set the value of the second threshold based on this. Then, the identification unit 509 may determine whether or not there is a candidate region whose distance from the person region P2 is less than the second threshold.

[0080] FIG. 22 is a flowchart showing the human area detection process of the first detection unit 701 according to the seventh embodiment. First, in step S60, part selection section 703 of first detection section 701 acquires target object type information regarding the type of the target object via acquisition section 200. Note that acquisition section 200 may acquire the target object type information by accepting an input from a user.

[0081] Next, in step S62, part selection section 703 refers to the part selection information in storage section 711, and selects the type of part associated with the type of the target object.

[0082] Next, in step S63, the skeleton estimation unit 602 of the first detection unit 701 estimates a two-dimensional skeleton structure of a person from the first image I1 using the skeleton estimation model, similar to step S50 shown in FIG.

[0083] Then, in step S64, the skeleton estimation unit 602 specifies a human region P based on the estimated two-dimensional skeleton structure and the type of the selected part.

[0084] As described above, according to the seventh embodiment, the image recognition system 70 identifies the person region P based on the type of the target object. This enables the image recognition system 70 to more appropriately detect the target object based on the person region P, thereby improving the recognition accuracy.

[0085] In the above-mentioned first to seventh embodiments, the computer is configured as a computer system including a personal computer, a word processor, etc. However, the present invention is not limited to this, and the computer can also be configured as a server of a LAN (local area network), a host for computer (personal computer) communication, a computer system connected to the Internet, etc. It is also possible to distribute functions to each device on the network and configure a computer as a whole network.

[0086] In the above-mentioned first to seventh embodiments, this disclosure has been described as a hardware configuration, but this disclosure is not limited to this. This disclosure can also be realized by making the processor 1010 described later execute a computer program to perform the image recognition processes such as the person area detection process, the second image generation process, and the object area detection process.

[0087] Fig. 23 is an example of a configuration diagram of a computer 1900 according to the first to seventh embodiments. As shown in Fig. 23, the computer 1900 includes a control unit 1000 for controlling the entire system. An input device 1050, a storage device 1200, a storage medium drive device 1300, a communication control device 1400, and an input / output I / F 1500 are connected to the control unit 1000 via a bus line such as a data bus.

[0088] The control unit 1000 includes a processor 1010, a ROM 1020, and a RAM 1030. The processor 1010 performs various types of information processing and control in accordance with programs stored in various storage units such as the ROM 1020 and the storage device 1200. The ROM 1020 is a read-only memory in which various programs and data for the processor 1010 to perform various controls and calculations are stored in advance.

[0089] The RAM 1030 is a random access memory used as a working memory by the processor 1010. In this RAM 1030, various areas for performing various processes according to the first to seventh embodiments can be secured.

[0090] The input device 1050 is an input device that accepts input from a user, such as a keyboard, a mouse, and a touch panel. For example, the keyboard is provided with various keys, such as a numeric keypad, function keys for executing various functions, and a cursor key. The mouse is a pointing device, and is an input device that designates a corresponding function by clicking on a key or icon displayed on the display device 1100. The touch panel is an input device that is placed on the surface of the display device 1100, and identifies a touch position of the user that corresponds to various operation keys displayed on the screen of the display device 1100, and accepts input of the operation keys displayed corresponding to the touch position.

[0091] The display device 1100 may be, for example, a CRT or a liquid crystal display. This display device displays the results of inputs made using a keyboard or mouse, as well as the final image information that has been searched for. The display device 1100 also displays images of operation keys for performing various operations required from a touch panel in accordance with the various functions of the computer 1900.

[0092] The storage device 1200 is composed of a readable / writable storage medium and a drive for reading and writing various information such as programs and data from and to the storage medium. The storage medium used in this storage device 1200 is primarily a hard disk or the like, but may be any non-transitory computer readable medium that can be driven by a storage medium drive device 1300 described below. The storage device 1200 has a data storage unit 1210, a program storage unit 1220, and other storage units (not shown, for example, a storage unit for backing up programs and data stored in the storage device 1200), etc. The program storage unit 1220 stores programs for implementing various processes in the first to seventh embodiments. The data storage unit 1210 stores various data of various databases according to the first to seventh embodiments.

[0093] The storage medium drive device 1300 is a drive device for the processor 1010 to read data including computer programs and documents from an external storage medium (external storage medium). Here, the external storage medium refers to a non-transitory computer-readable medium in which computer programs, data, etc. can be non-temporarily stored. The non-transitory computer-readable medium includes various types of tangible storage media. Examples of the non-transitory computer-readable medium include magnetic recording media (e.g., flexible disks, magnetic tapes, hard disk drives), magneto-optical recording media (e.g., magneto-optical disks), CD-ROMs (Read Only Memory), CD-Rs, CD-R / Ws, and semiconductor memories (e.g., mask ROMs, PROMs (Programmable ROMs), EPROMs (Erasable PROMs), flash ROMs, and RAMs (random access memories)). Various programs may also be supplied to the computer by various types of transitory computer-readable media. Examples of the transitory computer-readable medium include electrical signals, optical signals, and electromagnetic waves. The transitory computer-readable medium can supply various programs to the computer via wired communication paths such as electric wires and optical fibers, or wireless communication paths, and the storage medium drive device 1300.

[0094] That is, in the computer 1900 , the processor 1010 of the control unit 1000 reads various programs from an external storage medium set in the storage medium drive device 1300 and stores them in each unit of the storage device 1200 .

[0095] When the computer 1900 executes various processes, it loads the corresponding programs from the storage device 1200 into the RAM 1030 and executes them. However, the computer 1900 can also load the programs directly from an external storage medium into the RAM 1030 using the storage medium drive device 1300, rather than from the storage device 1200, and execute the programs. Depending on the computer, various programs and the like may be stored in the ROM 1020 in advance and executed by the processor 1010. Furthermore, the computer 1900 may download various programs and data from other storage media via the communication control device 1400 and execute them.

[0096] The communication control device 1400 is a control device for networking the computer 1900 with various external electronic devices such as other personal computers and word processors. The communication control device 1400 enables the computer 1900 to be accessed from these various external electronic devices.

[0097] The input / output I / F 1500 is an interface for connecting various input / output devices via a parallel port, serial port, keyboard port, mouse port, etc.

[0098] Note that a central processing unit (CPU), a graphics processing unit (GPU), a field-programmable gate array (FPGA), a digital signal processor (DSP), an application specific integrated circuit (ASIC), or the like may be used as the processor 1010. Furthermore, a plurality of these may be used in parallel.

[0099] The order of execution of each process in the system and method shown in the claims, specification, and drawings is not specifically stated as "before," "prior to," etc., and may be implemented in any order as long as the output of a previous process is not used in a subsequent process. Even if the operational flow in the claims, specification, and drawings is described using "first," "next," etc. for convenience, it does not mean that it is essential to implement the process in this order.

[0100] Although the present invention has been described above with reference to the embodiment, the present invention is not limited to the above. Various modifications that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the invention. [Explanation of symbols]

[0101] 10,20,30,40,50,60,70 Image Recognition System 101, 201, 601, 701 First detector 104,204,304,404 Extracted image generation section 107,207,507 Second detector 200 Acquisition Department 211,711 storage section 305 Size determination section 406 Judgment section 508 Candidate Region Detection Unit 509 Specific section 602 Skeleton Estimation Department 703 Part Selection Section I1 1st image I2 2nd image P People area A extraction area 1000 Control section 1010 Processor 1020 ROM 1030 RAM 1050 Input Device 1100 Display device 1200 storage device 1210 Data Storage Unit 1220 Program Storage Unit 1300 Storage media drive 1400 Communication control device 1500 Input / Output Interface 1900 Computer

Claims

1. Computer, A means for acquiring an image; A program that functions as a means for determining whether or not to execute processing for detecting an object appearing in the image based on the size of an area in the image that depicts a person.

2. the means for determining whether or not to execute a process for detecting an object appearing in the image determines not to execute a process for detecting an object appearing in the image when the number of pixels in the area showing the person is equal to or smaller than a threshold value; The program according to claim 1.

3. The process for detecting an object appearing in the image includes a process for detecting an object other than the person from a part of the image.

3. The program according to claim 1 or 2.

4. Acquire an image, determining whether or not to execute a process for detecting an object appearing in the image based on a size of an area in the image that shows a person; method.

5. A means for acquiring an image; a means for determining whether or not to execute a process for detecting an object appearing in the image based on a size of an area in the image that shows a person; An apparatus comprising:

Citation Information

Patent Citations

  • Video processing device, video processing method and program

    JP2012128693A

  • Image processing device, image processing method, and program

    JP2019159739A

  • Image processing apparatus, image processing method, and storage medium

    US20190287212A1

  • Information processing device, control method, and program

    WO2019207721A1