Information processing device, information processing method, and program

The information processing device uses difference images and combined optical flow and AI to efficiently and accurately count objects, addressing inefficiencies in traditional image recognition methods and reducing installation costs by employing wide-angle cameras.

JP7575923B2Active Publication Date: 2024-10-30FCNT LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2020197334
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-11-27
Publication Date
2024-10-30
Estimated Expiration
2040-11-27

AI Technical Summary

Technical Problem

Image recognition for counting objects, such as vehicles, requires significant system processing, leading to inefficiencies and potential inaccuracies.

Method used

An information processing device that generates difference images between sequentially captured frames, uses optical flow to detect moving objects, and integrates this with AI-based image recognition to confirm object identity, thereby reducing processing load and improving accuracy.

Benefits of technology

This approach suppresses information processing demands while achieving high-precision object counting, minimizing errors and reducing installation costs by using wide-angle cameras installed at eye level, thus enhancing traffic volume surveys.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007575923000001
    Figure 0007575923000001
  • Figure 0007575923000002
    Figure 0007575923000002
  • Figure 0007575923000003
    Figure 0007575923000003
Patent Text Reader

Abstract

To suppress the amount of information processing and count the number of objects highly precisely.SOLUTION: A control unit acquires images sequentially taken by an imaging device; generates a differential image between a pair of sequentially taken images; executing, when the differential image includes a part that satisfies a predetermined condition, the processing of recognizing objects in a partial region of the part that satisfies the condition in at least one of the pair of sequentially taken images; and counts objects recognized by the processing of recognizing objects.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an information processing device, an information processing method, and a program. [Background technology]

[0002] In traffic volume surveys, the number of objects exemplified by the number of vehicles passing through a road may be counted. Generally, the number of vehicles is counted by surveyors. However, nowadays, systems that count the number of objects using artificial intelligence (AI) are also available. However, when a system uses AI, it is required that the AI ​​learn to recognize the number of objects. It is also possible to count the number of objects using image recognition without AI. However, image recognition generally requires a large amount of processing by the system. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2020-135099 A Summary of the Invention [Problem to be solved by the invention]

[0004] As described above, counting the number of objects by image recognition increases the amount of information processing. One aspect of the embodiment of the present invention is to suppress the amount of information processing and count the number of objects with high accuracy. [Means for solving the problem]

[0005] An embodiment of the present invention is exemplified by an information processing device, which includes a control unit that executes the following: acquiring images sequentially captured by an image capture device, generating a difference image between a pair of the sequentially captured images, and, when the difference image includes a portion that satisfies a predetermined condition, executing a process of recognizing an object in a partial region corresponding to the portion that satisfies the predetermined condition in at least one of the pair of sequentially captured images, and counting the objects recognized by the object recognition process. Effect of the Invention

[0006] According to this information processing device, it is possible to suppress the amount of information processing and to count the number of objects with high accuracy. [Brief description of the drawings]

[0007] [Figure 1] FIG. 1 is a diagram illustrating a configuration of a vehicle counting system according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of a hardware configuration of an information processing device and a surveillance camera according to an embodiment. [Diagram 3] FIG. 3 is a diagram illustrating the data flow and operations in the vehicle counting system. [Figure 4] FIG. 4 is a diagram illustrating an example of the configuration of a screen for displaying an image. [Diagram 5] FIG. 5 is a diagram showing an example of a procedure for generating a difference image in heat map format from image frames, displaying integrated values ​​in the Y-axis direction, and displaying portions where the integrated value is equal to or greater than a threshold value on a screen. [Figure 6] FIG. 6 is a diagram in which the range in which the vehicle exists, obtained by image recognition, is superimposed on the range in which the integrated value of the number of pixels with a difference exceeds a threshold value. [Figure 7] FIG. 7 is a diagram illustrating a method for dealing with a case where a single vehicle is detected as two moving objects in the optical flow. [Figure 8] FIG. 8 is a diagram illustrating a process when an image frame includes an area illuminated by headlights or the like at night. [Figure 9] FIG. 9 is a diagram illustrating a process when the vehicle is stopped and difference detection is not possible. [Figure 10] FIG. 10 is a diagram illustrating a process when white noise occurs on the screen due to the reflection of the sun or the like, making it impossible to detect differences and recognize objects. [Figure 11] FIG. 11 is a diagram illustrating a process of performing image recognition near the center of an image while avoiding the periphery of the image where distortion is large. [Figure 12] FIG. 12 is a flowchart illustrating the processing of the information processing device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] Hereinafter, a vehicle counting system according to the present embodiment will be described with reference to the drawings.

[0009] <Configuration> Fig. 1 is a diagram illustrating an example of the configuration of a vehicle counting system according to this embodiment. The vehicle counting system includes a surveillance camera 20 and an information processing device 10. In the configuration of Fig. 1, the information processing device 10 acquires images from the surveillance camera 20. The information processing device 10 then executes an information processing method using a computer program, and counts the number of vehicles passing through the range of the angle of view captured by the surveillance camera 20 from the acquired images. However, this does not mean that the objects to be counted are limited to vehicles. The information processing device 10 may also count people, animals, moving bodies other than vehicles, and other objects.

[0010] In this embodiment, the surveillance camera 20 includes a 360° semi-spherical camera as an example. By using a wide-angle camera such as a 360° semi-spherical camera, it is possible to monitor the road without creating blind spots. However, in this embodiment, the surveillance camera 20 is not limited to a 360° semi-spherical camera. The surveillance camera 20 is a 180° hemispherical camera with a wide-angle fisheye lens. It may be equipped with a camera or a normal camera.

[0011] In FIG. 1, the surveillance camera 20 has a 360° hemispherical viewing angle within a range of, for example, a radius of 50 m. An image is acquired from the subject to be photographed. The image is, for example, a moving image, which is acquired at a predetermined frame period and transmitted to the information processing device 10 at the monitoring center. In this embodiment, the images constituting the moving image are also called image frames.

[0012] Fig. 2 is a diagram illustrating an example of the hardware configuration of the information processing device 10 and the surveillance camera 20 according to the present embodiment. As shown in Fig. 2, the information processing device 10 and the surveillance camera 20 are connected via a network N. There is no limitation on the network N, and it may be a wireless communication network or a wired communication network. Furthermore, the network N may be a combination of a wireless communication network and a wired communication network.

[0013] The information processing device 10 includes a CPU (Central Processing Unit) 11, a main memory unit 12, and an The computer has external devices connected through an interface (I / F). The CPU 11 is also called a processor. Examples of the external devices include an external storage unit 13, a display unit 14, an operation unit 15, and a communication unit 16.

[0014] The CPU 11 executes a computer program that has been loaded in an executable manner into the main memory unit 12, and provides the functions of the information processing device 10. The main memory unit 12 stores the computer program executed by the CPU 11, data processed by the CPU 11, etc. The main memory unit 12 is a dynamic random access memory (DRAM), a static random access memory (SRAM), a read only memory (ROM), etc. The CPU 11 and the main memory unit 12 are an example of a control unit. Furthermore, the external storage unit 13 is used, for example, as a storage area that supplements the main storage unit 12, and stores computer programs executed by the CPU 11, data processed by the CPU 11, etc. The external storage unit 13 is a hard disk drive, a solid state disk (SSD), etc. Furthermore, the information processing device 10 may be provided with a drive device for a removable storage medium. The removable storage medium is, for example, a Blu-ray disc, a digital versatile disk (DVD), a compact disc (CD), a flash memory card, etc.

[0015] The display unit 14 is, for example, a liquid crystal display, an electroluminescence panel, etc. The operation unit 15 is, for example, a keyboard, a pointing device, etc. In this embodiment, a mouse is exemplified as a pointing device. The communication unit 16 transmits and receives data to and from other devices on the network N via wireless or wired communication. Then, for example, the CPU 11 sequentially acquires multiple image frames from the surveillance camera 20 through the communication unit 16 and the network N.

[0016] On the other hand, the surveillance camera 20 includes an MPU (Micro Processing Unit) 21, a memory 22, a communication The MPU 21, memory 22, and communication circuit 26 have the same configurations and functions as the CPU 11, main storage unit 12, and communication unit 16. As already described, the camera 27 is a 360° semi-spherical camera, a 180° semi-spherical camera, a camera with a wide-angle fisheye lens, or a normal camera. The camera 27 forms an image on the memory 22 at a predetermined frame period and transmits it to the information processing device 10 via the communication circuit 26 and the network N.

[0017] 3 is a diagram illustrating an example of data flow and operation in this vehicle counting system. The surveillance camera 20 captures images at a predetermined frame period (e.g., 30 images per second) (D1). A timestamp is added to the image frame data at each captured time. The image frame data is transmitted from the surveillance camera 20 to the information processing device 10. The information processing device 10 stores the image frame data with the timestamp added individually in the image frame database (D2). That is, the information processing device 10 can individually access the data of each image frame in the image frame database.

[0018] The image frame data acquired at each time is compared with the image frame data acquired at the previous time, and a difference image is generated.Then, moving objects are detected using the generated difference image (D3).This method is a common method that uses data called optical flow.

[0019] When it is recognized using the optical flow that a moving object passes through the angle of view of the camera, the information processing device 10 selects a piece of image data from the image frame that includes the moving object (D4). This image data is one of the image data used to create the difference image.

[0020] Then, the information processing device 10 performs image recognition on the image data to detect moving objects, for example, vehicles (D5). Furthermore, the information processing device 10 associates the optical flow with the result of the image recognition (D6). Then, the information processing device 10 counts the number of passing vehicles based on the result of associating the optical flow (difference image) with what was recognized by the image recognition (D7).

[0021] That is, the information processing device 10 compares the results of moving body detection using optical flow with the results of object (vehicle, etc.) detection using image recognition. In the following, a description will be given assuming that a vehicle is recognized using image recognition. If a moving body detected using optical flow and a vehicle detected using image recognition are in the same position, the information processing device 10 counts the number of vehicles as one having passed. If a detected moving body is not recognized as a vehicle by image recognition, the information processing device 10 does not increment the count value. Also, if multiple moving bodies are detected, If there are multiple vehicles, the count value for the number of vehicles is added. The detailed counting procedure will be described later with reference to Fig. 12. Before describing the detailed counting procedure, an example of processing will be described below based on an image.

[0022] <Screen Configuration> 4 illustrates an example of a screen configuration on which the information processing device 10 displays an image. The entire screen is an image area. In the image area, an image frame that is to be subjected to image recognition processing is displayed. However, the information processing device 10 can also display a series of image frames on the screen as a video.

[0023] A map window and a graph window are displayed on the screen in Fig. 4. In Fig. 4, the map window and the graph window are displayed at the top center of the screen. However, the positions of the map window and the graph window are not limited to the example in Fig. 4. The map window displays the optical flow in a heat map format. Here, the heat map format is a two-dimensional display (difference image) of the difference value between a pair of images in the optical flow at each pixel position in color, grayscale, or monochrome light and dark.

[0024] The graph window is a difference image in a heat map format, in which the horizontal direction is the X axis and the vertical direction is the Y axis, and among all pixels having the same X coordinate, the number of pixels having a difference value is integrated in the Y axis direction, and the integrated value is represented by a line graph. The pixels to be integrated may be limited to those having a pixel value of a predetermined value or more. The difference image itself may be a binary image. For a binary difference image, the information processing device 10 may simply integrate the number of pixels having a difference value in the Y axis direction. A threshold value is set for this integrated value. If the integrated value is equal to or greater than the threshold, the information processing device 10 determines that a pixel area with a significant difference value exists. That is, if a pixel with a width (number of pixels) equal to or greater than the threshold exists in the Y axis direction, the information processing device 10 determines that a difference has been detected in the optical flow. On the other hand, if the integrated value is less than the threshold, the information processing device 10 determines that no difference has been detected in the optical flow, that is, between two image frames whose shooting times are adjacent. In FIG. 4, a threshold line is displayed along with a graph of the integrated value, and the area where the integrated value is equal to or greater than the threshold is illustrated by a rectangle.

[0025] <Processing example> 5 is a diagram showing an example of a procedure for generating a difference image in a heat map format from image frames, displaying an integrated value in the Y-axis direction, and displaying a portion where the integrated value is equal to or greater than a threshold value. The information processing device 10 detects an object passing on the road by optical flow, and counts the number of vehicles as one if the object is recognized as a vehicle by image recognition using AI.

[0026] In the example of FIG. 5, the information processing device 10 detects a moving object existing on a road by optical flow. First, the information processing device 10 displays the difference between frames in a heat map (A1). Next, the information processing device 10 calculates the difference value between image frames at adjacent times, and displays it as a degree of white brightness (grayscale gradation or binary value). Next, the information processing device 10 calculates the integrated value of the number of pixels in which a difference exists in the Y-axis direction, and displays it as a graph. For example, when the difference value is expressed as a binary value, the information processing device 10 may simply integrate the number of pixels in which a difference exists in the Y-axis direction. Also, when the difference value is expressed as a multi-value of two or more values, the information processing device 10 may count the number of pixels in which a difference value equal to or greater than a predetermined reference value exists. The integrated value of the number of pixels in which a difference exists in the Y-axis direction is an example of an integrated value obtained by integrating the number of pixels in which the pixel value of the difference image exceeds a predetermined reference value in the first axis direction on the image plane.

[0027] Next, the information processing device 10 sets a threshold value for recognizing an object as a moving object with respect to the integrated value of the number of pixels. (A3). In optical flow, the difference between frames can be obtained in pixel units. Therefore, even if grass and trees sway in the wind between two image frames, a difference appears. Therefore, the information processing device 10 sets a threshold value as shown in A3 of FIG. 5, and recognizes a moving object only when a predetermined number of pixels or more are detected. The information processing device 10 displays the size (range) of the recognized moving object. In FIG. 5, the part exceeding the threshold value of A3 is displayed as a hatched rectangle (A4). The size of this rectangle in the X-axis direction becomes the size of the moving object (vehicle) detected by optical flow. The part where the integrated value of the number of pixels equal to or greater than a predetermined reference value exists is an example of a part that satisfies a predetermined condition contained in the difference image. Recognizing a moving object only when a predetermined number of pixels or more is detected is an example of executing a process of recognizing an object in a partial area corresponding to a part that satisfies a predetermined condition. The rectangle in Figure 5 is an example of a portion where the integrated value obtained by accumulating the number of pixels in the differential image whose pixel values ​​exceed a predetermined reference value in a first axial direction on the image plane exceeds a predetermined reference value, and is identified on a second axis perpendicular to the first axial direction.

[0028] FIG. 6 is a diagram in which the vehicle presence range obtained by image recognition and the range in which the integrated value of the pixel count of pixels with a difference exceeds a threshold are superimposed. That is, as illustrated in FIG. 5, the information processing device 10 obtains the range (C1) in the X-axis direction in which a predetermined number of pixels or more are detected in the Y-axis direction. The information processing device 10 also detects a vehicle from an image by AI image recognition and recognizes the presence range (C2). Then, the information processing device 10 specifies an overlapping range (dotted rectangle C3) between the presence range in the X-direction in the obtained vehicle presence range (C2) and the range (C1) in the X-axis direction in which a predetermined number of pixels or more are detected. Then, the information processing device 10 calculates the ratio of the width of the overlapping range (C3) to the area obtained by combining the range (C1) in which the number of pixels with a difference exceeds the threshold (A3) and the presence range (C2) in which the vehicle is detected. Then, if this ratio is equal to or greater than a predetermined value, the information processing device 10 determines that the moving object detected by the optical flow is a vehicle and counts the number of vehicles.

[0029] FIG. 7 is a diagram illustrating a method of dealing with a case where a single vehicle is detected as two moving objects by optical flow. As shown in FIG. 7, if there is a large monochromatic area such as a truck bed in an image frame, a problem may occur in counting. That is, even if the large monochromatic area moves between image frames, no change is observed in the color components. For this reason, the overlapping portion of the large monochromatic area does not appear as a difference between image frames. Therefore, as illustrated by the two braces BR1 and BR2 in FIG. 7, a region of pixels with a difference may be formed by being separated into two. As a result, the information processing device 10 may recognize a single vehicle as two moving objects. If the information processing device 10 performs object recognition for each part shown by the two braces BR1 and BR2 in FIG. 7, image recognition of a part of the vehicle will be performed. For this reason, the information processing device 10 cannot correctly recognize the vehicle. Therefore, the information processing device 10 performs object recognition for a target including a certain neighboring difference region as shown by the brace BR3. For example, the information processing device 10 can combine multiple areas of pixels with differences in which a vehicle exists, obtained by image recognition, into one. That is, the information processing device 10 can combine multiple areas of pixels with differences into one by superimposing the results obtained by image recognition and the results obtained by optical flow and comparing the two with each other. This allows the information processing device 10 to correctly detect a single vehicle based on the car recognition results using AI. Therefore, the information processing device 10 can count vehicles that form large single-color areas in the image as one vehicle, not two. The process in Fig. 7 is an example of a process for integrating a plurality of parts that are identified on the second axis into a single part when the recognized object exists within the range.

[0030] FIG. 8 illustrates an example of processing when an image frame includes an area illuminated by headlights at night. When a vehicle has its headlights on at night, the area illuminated by the headlights appears as a difference. For this reason, two vehicles (A, B) appear as one large vehicle on the optical flow. In such a case, if the AI ​​detects two vehicles as a result of car recognition, the number of vehicles can be counted correctly (as two, not one), as in the case of FIG. 7. Therefore, the information processing device 10 only needs to recognize vehicles in a range that includes predetermined neighboring differential regions around one differential region, and recognize two vehicles. The process of FIG. 8 is an example of executing a process of recognizing objects in a predetermined neighboring region around a partial region, in addition to a partial region corresponding to a portion that satisfies a predetermined condition.

[0031] FIG. 9 is a diagram illustrating a process when a vehicle stops due to traffic congestion or the like and a difference cannot be detected. When a vehicle stops due to traffic congestion or the like, the information processing device 10 cannot detect a difference between image frames at adjacent times. As a result, the tracking process is temporarily interrupted. Therefore, if a vehicle repeats "going to stop" during a traffic jam, the counting of the number of vehicles may stop every time a difference is detected. Even in such a case, the information processing device 10 can avoid a state in which a difference cannot be detected due to a vehicle stopping by using both the recognition of moving objects by optical flow and image recognition.

[0032] That is, even if the information processing device 10 falls into a state where it is impossible to detect the difference, it is sufficient as long as the vehicle continues to be recognized at the relevant point (area). That is, when the information processing device 10 cannot detect the difference, it judges whether the vehicle is stopped between the successive image frames. Then, when the vehicle is stopped, it stops recognizing the moving object by the optical flow and monitors the vehicle in the successive image frames. Then, when the vehicle starts moving again, the information processing device 10 treats the vehicle that has started moving and the vehicle that has been counted before the vehicle stopped as the same vehicle. By such processing, the information processing device 10 can prevent double counting. The processing of FIG. 9 is an example of a processing of determining whether an object is stopped between the images captured sequentially. The processing of FIG. 9 is also an example of stopping the processing of determining whether a part that satisfies a predetermined condition is included in the difference image when the object is stopped between the images captured sequentially. Furthermore, the processing of FIG. 9 is an example of resuming the processing of determining whether a part that satisfies a predetermined condition is included in the difference image when the object starts moving again between the images captured sequentially.

[0033] FIG. 10 is a diagram illustrating the process when white noise occurs on the screen due to the reflection of the sun or other objects, making it impossible to perform differential detection and object recognition. When whiteout (noise) occurs due to the reflection of the sun or other objects, differential detection and object recognition may not be possible. With a normal camera, it may be difficult to take measures against this because the angle of view is narrow. However, if the vehicle counting system uses a 360° hemispherical camera, When used, it is possible to track objects over the entire 180° range using optical flow, as shown in Figure 10. This makes it possible to recognize objects and count the number of vehicles when a moving object is detected.

[0034] That is, in the image frame of FIG. 10, the information processing device 10 cannot detect the difference value near the center of the screen. When a vehicle passes a position corresponding to the center of the screen, the information processing device 10 can detect the difference. The information processing device 10 can detect the difference and perform image recognition when it becomes possible to count the number of pixels. That is, when the information processing device 10 cannot detect the difference near the center of the screen, it can determine whether or not a portion in which the number of pixels in the Y-axis direction exceeds a threshold is included in a predetermined range on the object movement direction side from a predetermined range near the center of the screen in a subsequent difference image generated after that difference image. Then, when a portion exceeding the threshold is included in the subsequent difference image, image recognition can be performed on that portion and the number of vehicles can be counted.

[0035] However, if objects have already been counted on the right side of the screen in FIG. 10 (the side opposite to the direction of movement of the objects), and it becomes impossible to count the difference value in the center of the screen, and then it becomes possible to detect the difference value again on the left side of the screen (the side in the direction of movement of the objects), the information processing device 10 will not count the number of vehicles on the left side of the screen. When the information processing device 10 cannot detect a difference value near the center of the screen, it checks whether or not an object is recognized in an image acquired before a pair of sequentially captured images in which a difference cannot be detected. Then, when the information processing device 10 has already recognized an object in an already acquired image, and the object passes through the range of the angle of view in which the image is captured, it is sufficient not to count the object. Since the information processing device 10 counts the number of vehicles by recognizing the object, it is possible to calculate the average moving speed of the vehicles. Therefore, once an object such as a vehicle is recognized by image recognition, the information processing device 10 may estimate the time from the position until the object goes out of the range of the angle of view. In addition, the information processing device 10 may accumulate the average time (also called the average passing time) until an object such as a vehicle becomes unrecognizable after being recognized by image recognition. Then, when the information processing device 10 cannot detect a difference value near the center of the screen, and an object such as a vehicle is recognized before a pair of sequentially captured images in which a difference cannot be detected, it is sufficient not to count the number of vehicles until the average passing time has elapsed. In other words, even if a difference value is detected again in a portion on the traveling direction side of the screen center after a state in which a difference value cannot be detected near the screen center during the average passing time, the information processing device 10 does not need to perform image recognition or vehicle counting in this portion. Alternatively, when a difference value is detected again in a portion on the traveling direction side of the screen center, the information processing device 10 determines whether an object image-recognized in this portion is identical to an object already recognized. And, when an object already recognized is detected again, the information processing device 10 does not perform counting processing. In this way, even when a difference value cannot be detected near the screen center, the information processing device 10 can avoid double counting.

[0036] As a countermeasure to this issue, a method is available in which the camera is installed at a high place so that it looks down on the vehicle, preventing the sun from being captured in the viewing angle. However, when installing at a high place, the installation work costs are high and it is difficult to install easily. For this reason, it is not suitable for conducting traffic volume surveys at arbitrary points for a limited period of time, for example. The present invention is a method of installing a camera at a height of 1.5m on the side of the road. Since it is assumed that the device will be installed at a height of about 10m, it has the advantage of being easy to install and remove.

[0037] FIG. 11 is a diagram illustrating a process of image recognition near the center of an image, avoiding the periphery of an image where distortion is large. In the case of conventional vehicle counting by object recognition (without using optical flow), it was necessary to recognize the "front", "side" and "rear" of a vehicle and track the moving path. As shown in FIG. 11, when photographing with a fisheye lens, the distortion increases from the center toward the circumference, so the object recognition accuracy decreases outside the center. On the other hand, in this embodiment, the information processing device 10 may use an AI that can recognize only the "side" of a vehicle, for example, and perform image recognition near the center of the screen. As a result, the information processing device 10 is not affected by the decrease in recognition accuracy in the circumference of the screen. In addition, the information processing device 10 can reduce the processing time of object recognition, and can obtain the effect of saving power and enabling the device to operate for a long time on a battery. Specifically, the information processing device 10 tracks a moving object by performing optical flow for each frame. Then, the information processing device 10 starts object recognition processing only when the moving object is present in the center of the screen. In addition, when difference detection and object recognition cannot be performed in the center of the screen as in FIG. 10, object recognition can be performed when the tracking process based on difference detection is resumed.

[0038] <Counting procedure> 12 is a flowchart illustrating the processing of the information processing device 10. Here, the information processing device 10 sequentially processes image frames captured at adjacent times. That is, the information processing device 10 first acquires a first image frame (S1). Next, the information processing device 10 acquires a second image frame (S2). The processing of S1 and S2 is an example of acquiring images captured sequentially by an imaging device.

[0039] Then, the information processing device 10 generates an optical flow between the current image frame (the second image frame) and the immediately preceding image frame (the first image frame) (S3). The process above is an example of generating a difference image between images captured successively. Then, the information processing device 10 selects an image frame that corresponds to the optical flow (S4).

[0040] Then, the information processing device 10 judges whether or not there is a data area exceeding the threshold in the central region of the optical flow (S5). If there is a data area exceeding the threshold (YES in S5), the information processing device 10 judges whether or not the data area is an unspecified data area (S6). An unspecified data area means that it is not a data area that has been specified and followed in a past image frame. The data area exceeding the threshold is an example of a portion of a difference image that satisfies a predetermined condition.

[0041] If the data area is an unspecified data area (YES in S6), the information processing device 10 performs image recognition on the data area within the angle of view and identifies the vehicle. The information processing device 10 also consolidates multiple data areas within the vehicle's presence range into one (S7). The processes of S5 to S7 are an example of executing a process of recognizing an object in a partial area corresponding to a portion that satisfies a predetermined condition. Furthermore, the information processing device 10 counts one vehicle and regards the data area as having been specified (S8). The process of S8 is an example of counting objects recognized by the object recognition process.

[0042] 10, the information processing device 10 can avoid double counting even if, after the number of vehicles is counted on the opposite side to the object's moving direction as determined in S6, whiteout occurs in the center of the screen, making it impossible to detect the difference, and then it becomes possible to detect the difference value again on the object's moving direction side. Also, with regard to an unidentified object, if whiteout occurs in the center of the screen, making it impossible to detect the difference, and then it becomes possible to detect the difference value on the object's moving direction side, the information processing device 10 can count the number of vehicles without omission.

[0043] Then, the information processing device 10 returns the process to S5 and searches for another identifiable data area. On the other hand, if it is determined in S6 that the data area is an already-specified data area, the information processing device 10 returns the process to S5 and searches for another identifiable data area.

[0044] Furthermore, if there is no data area exceeding the threshold in the determination of S5 (NO in S5), the information processing device 10 recognizes the image of the image frame and determines whether or not the vehicle is stopped (S9). If the vehicle is stopped (YES in S9), the information processing device 10 executes a process of detecting the movement of the vehicle for the subsequent image frame (S10). At this time, the information processing device 10 does not execute the process of S5 for determining whether or not there is a data area exceeding the threshold. In other words, the processes of S9 to S10 are an example of stopping the process of determining whether or not the difference image includes a portion that satisfies the predetermined condition. Furthermore, the process of S10 is an example of determining whether or not the object is stopped between images captured successively.

[0045] Then, the information processing device 10 continues the process of S10 until the vehicle starts moving (S11). Then, when the vehicle starts moving, the information processing device 10 identifies that the vehicle is the same as the vehicle before the vehicle stopped, does not count the number of vehicles, and returns the process to S5. This process is an example of resuming the process of determining whether or not a portion that satisfies a predetermined condition is included in the difference image when an object starts moving again between images captured successively.

[0046] On the other hand, if a stopped vehicle cannot be detected in the process of S9, the information processing device 10 returns the process to S2 and executes the process for the next image frame, because no vehicle is present in the image frame.

[0047] <Effects> There are methods for counting traffic volume, such as infrared traffic counters, but in the future, There is a demand for a method that can count not only traffic volume but also vehicle speed, length, and type of vehicle, as well as distinguish between two-wheeled vehicles, bicycles, pedestrians, etc., by analyzing images from cameras. There is also a need to install them not only on main roads but also on local roads to grasp traffic conditions nationwide. Conventional camera-type traffic counters are installed in high positions adjacent to the road (overpasses, structures). This requires the installation of structures, which results in high equipment installation costs. On the other hand, if it is possible to count traffic volume accurately using a camera installed on the shoulder of the road at about eye level, it is thought that the cost of installing the equipment will be low and this will lead to greater popularity.

[0048] In addition, the cameras installed will be wide-angle cameras such as 360° hemispherical cameras, allowing the viewer to see the road clearly. This will enable monitoring without creating blind spots above the building. As a result, it is expected that high counting accuracy can be achieved using image processing technology and AI.

[0049] In conventional traffic volume counting using image recognition (AI), if car recognition fails for even a few frames, vehicle tracking is interrupted, and there are cases where a single vehicle is mistakenly counted as two or three. On the other hand, traffic volume counting using only optical flow captures changes in color components, so tracking is not interrupted and objects can be tracked with high accuracy from when they enter the frame to when they leave the frame.

[0050] However, an object obtained by one movement detection is not necessarily one vehicle, but may be two vehicles moving at the same speed over a very close distance. Conversely, a large-sized truck or the like may be recognized as two moving objects by a method of detecting movement by image differences. The information processing device 10 uses image recognition to confirm how many cars an object detected by optical flow is, and can prevent these counting errors. That is, when there are multiple parts identified by optical flow in a range in which an object recognized by image recognition exists, the information processing device 10 integrates these multiple existing parts into one part, thereby preventing double counting. Meanwhile, the information processing device 10 executes a process of recognizing objects in a predetermined neighboring area around the partial area in addition to a partial area corresponding to a part that satisfies a predetermined condition obtained by optical flow. Therefore, even for an image including the movement of headlights at night, the accuracy of counting two or more vehicles existing before and after the headlight area can be improved.

[0051] Furthermore, when it is determined that the difference image does not contain a portion that satisfies a predetermined condition from the range of the angle of view for capturing images until the recognized object passes after the object is recognized, the information processing device 10 determines whether the object is stopped between the images captured sequentially. If the object is stopped, the information processing device 10 monitors the object in the images captured sequentially and stops processing using the difference image. Then, when the object starts moving again between the images captured sequentially, the information processing device 10 resumes the process of determining whether the difference image contains a portion that satisfies the predetermined condition. In this way, even if the movement of the vehicle stops due to the influence of traffic congestion or the like and a difference is not recognized between the images captured sequentially, the information processing device 10 can improve the counting accuracy.

[0052] In the information processing device 10 of this embodiment, the car recognition by the AI ​​is used only to determine that the moving object is a vehicle, and it is sufficient if the vehicle is recognized as a vehicle at least once during the several hundred frames from when the vehicle enters the frame to when it leaves the frame. Therefore, high recognition accuracy is not required of the AI, and the development cost of the AI ​​can be reduced.

[0053] In addition, the information processing device 10 determines whether or not a portion that satisfies a predetermined condition is included in a predetermined range including the center of the difference image, and sets the portion as a target for image recognition. As a result, the information processing device 10 can execute image recognition limited to the side of the vehicle, etc., thereby improving processing efficiency.

[0054] In addition, even if the image has halation due to the position of the sun, and there is an area where the vehicle cannot be photographed, by selecting appropriate data from frame data in which the moving object can be found, vehicle detection by image recognition is possible. Therefore, it is possible to count traffic volume while avoiding the influence of external light caused by using a wide-angle lens. That is, when the information processing device 10 cannot detect an area with a number of pixels exceeding a threshold in a predetermined range including the center of the difference image, for example, the information processing device 10 executes processing on the side of the object's movement direction from the predetermined range including the center in the subsequent difference image generated after the difference image. That is, the information processing device 10 may determine whether or not an area with a number of pixels exceeding a threshold is included in the predetermined range on the movement direction side. By such processing, it is possible to recognize and count objects even if halation occurs in the predetermined range including the center. On the other hand, if an object has already been identified before the image in which halation occurs in the predetermined range including the center, the information processing device 10 does not execute counting of objects recognized by the object recognition processing after the image in which halation occurs in the predetermined range including the center until the recognized object passes through the range of the angle of view for photographing the image. Therefore, even when processing an image in which halation occurs in a predetermined range including the center, the information processing device 10 can suppress double counting and can improve the counting accuracy.

[0055] Furthermore, in this embodiment, the information processing device 10 determines whether or not the accumulated value obtained by accumulating the number of pixels in the difference image whose pixel values ​​exceed a predetermined reference value in the first axis (Y-axis) direction on the image plane exceeds a predetermined reference value, so that the relevant location can be easily identified from the optical flow.

[0056] As a result, highly accurate traffic volume counting is possible using an inexpensive camera system.

[0057] <Computer-readable recording medium> A program for causing a computer or other machine or device (hereinafter, referred to as a computer, etc.) to realize any of the above functions can be recorded on a recording medium readable by the computer, etc. Then, the computer, etc. can provide the function by reading and executing the program from the recording medium.

[0058] Here, a computer-readable recording medium refers to a recording medium that stores information such as data and programs through electrical, magnetic, optical, mechanical, or chemical action and can be read by a computer. Examples of such recording media that can be removed from a computer include flexible disks, magneto-optical disks, CD-ROMs, CD-R / Ws, DVDs, Blu-ray disks, DATs, 8mm tapes, and memory cards such as flash memory. Examples of recording media that are fixed to a computer include hard disks and ROMs (read-only memories). Furthermore, SSDs (Solid State Drives) are also recording media that can be removed from a computer, and can be read by a computer. The present invention can also be used as a recording medium fixed to a computer. [Explanation of symbols]

[0059] 10. Information processing device 11 CPU 12 Main memory 13 External memory unit 14 Display section 15 Control section 16 Communications Department 20. Surveillance Cameras 21 MPU 22 Memory 26 Communication Circuits

Claims

1. acquiring images of vehicles passing through a road sequentially captured by an image capturing device; generating an optical flow between a pair of the sequentially captured images; When the optical flow includes a portion that satisfies a predetermined condition, a process of recognizing an object in a partial region corresponding to the portion that satisfies the predetermined condition is executed in at least one of the pair of sequentially captured images; and counting the number of objects recognized by the object recognition process.

2. 2. The information processing device according to claim 1, wherein the portion satisfying the specified condition is a portion where the integrated value obtained by accumulating the number of pixels whose values ​​at each pixel of the optical flow exceed a specified reference value in a first axial direction on the image plane exceeds a specified reference value, and is a portion identified on a second axis perpendicular to the first axial direction.

3. The information processing device according to claim 2 , wherein when there are multiple parts identified on the second axis within the range in which the recognized object exists, the control unit performs a process of integrating the multiple existing parts into a single part.

4. The information processing device according to claim 1 , wherein the control unit further executes a process of recognizing the object in a predetermined neighboring region surrounding the partial region, in addition to the partial region corresponding to the portion satisfying the predetermined condition.

5. When it is determined that the optical flow does not include a portion that satisfies the predetermined condition after the object is recognized by the process of recognizing the object, the control unit determines whether or not the object is stationary between the sequentially captured images; An information processing device as described in any one of claims 1 to 4, wherein, when the object stops between the sequentially captured images, the process of determining whether the optical flow includes a portion that satisfies the specified condition is stopped, and when the object starts moving again between the sequentially captured images, the process of determining whether the optical flow includes a portion that satisfies the specified condition is resumed.

6. 6. The information processing device according to claim 1, wherein the control unit determines whether a portion satisfying the specified condition is included in a specified range including the vicinity of the center of the optical flow, and when a portion satisfying the specified condition is detected in the specified range, performs a process of recognizing the object in a portion corresponding to the specified range in at least one of the pair of sequentially captured images.

7. when a portion satisfying the predetermined condition cannot be detected within a predetermined range including a center vicinity of the optical flow, the control unit determines whether or not a portion satisfying the predetermined condition is included within a predetermined range on the moving direction side of the object in a subsequent optical flow generated after the optical flow, the predetermined range being closer to the moving direction of the object than the predetermined range; The information processing device according to claim 6, wherein when the subsequent optical flow includes a portion that satisfies the specified condition, a process is performed to recognize the object in a partial region corresponding to the portion that satisfies the specified condition in at least one of the pair of images from which the subsequent optical flow was generated.

8. 8. The information processing device of claim 7, wherein the control unit, when recognizing an object in an image acquired prior to the pair of sequentially captured images, and when a portion satisfying the specified condition cannot be detected in the specified range including the vicinity of the center of the optical flow before the recognized object passes through the range of the angle of view at which the image is captured, does not perform counting of objects recognized by the process of recognizing the object after the optical flow until the recognized object passes through the range of the angle of view at which the image is captured.

9. The computer acquiring images of vehicles passing through a road sequentially captured by an image capturing device; generating an optical flow between a pair of the sequentially captured images; When the optical flow includes a portion that satisfies a predetermined condition, a process of recognizing an object in a partial region corresponding to the portion that satisfies the predetermined condition is executed in at least one of the pair of sequentially captured images; and counting the objects recognized by the object recognition process.

10. On the computer, acquiring images of vehicles passing through a road sequentially captured by an image capturing device; generating an optical flow between a pair of the sequentially captured images; When the optical flow includes a portion that satisfies a predetermined condition, a process of recognizing an object in a partial region corresponding to the portion that satisfies the predetermined condition is executed in at least one of the pair of sequentially captured images; and counting the number of objects recognized by the object recognition process.

Citation Information

Patent Citations

  • Movile object tracking device

    JP2000048211A

  • Supervisory method for mobile object and image supervisory device

    JP2000175176A

  • Image processing system, image processor and processing method, recording medium, and program

    JP2006259900A

  • Moving body determination device, computer program, and moving body determination method

    JP2013171533A

  • Object detection system, program and object detection method

    JP2019047164A