The present application is related to concurrently filed U.S. patent application Ser. No. 14/482,482, entitled “HARDWARE ARCHITECTURE FOR REAL-TIME EXTRACTION OF MAXIMALLY STABLE EXTREMAL REGIONS (MSERs).”
The present disclosure relates to computer vision and automated surveillance systems.
Visual surveillance of dynamic scenes is an active area of research in robotics and computer vision. The research efforts are primarily directed towards object detection, recognition, and tracking from a video stream. Intelligent visual surveillance has a wide spectrum of promising governmental and commercial-oriented applications. Some important applications are in the field of security and include access control, crowd control, human detection and recognition, traffic analysis, detection of suspicious behaviors, vehicular tracking, Unmanned Aerial Vehicle (UAV) operation, and detection of military targets. Many other industrial applications in the automation fields also exist, such as faulty products detection, quality assurance, and production line control.
Commercial surveillance systems are intended to report unusual patterns of motion of pedestrians and vehicles in outdoor environments. These semi-automatic systems intend to assist, but not to replace, the end-user. In addition, electronics companies provide suitable equipment for surveillance. Examples of such equipment include active smart cameras and omnidirectional cameras. All the above provide evidence of the growing interest in visual surveillance, where, as in many image processing applications, there is a crucial need for high performance real-time systems. A bottleneck of these systems is primarily hardware-related, including capability, scalability, requirements, power consumption, and ability to interface various video formats. In fact, the issue of memory overhead prevents many systems from achieving real-time performance, especially when general purpose processors are used. In these situations, the typical solutions are either to scale down the resolution of the video frames or to inadequately process smaller regions of interests within the frame.
Although Digital Signal Processors (DSPs) provide improvement over general purpose processors due to the availability of optimized DSP libraries, DSPs still suffer from limited execution speeds. Thus, DSPs are insufficient for real-time applications. Field programmable gate array (FPGA) platforms, on the other hand, with their inherently parallel digital signal processing blocks, large numbers of embedded memory and registers, and high speed memory, together with storage interfaces, offer an attractive solution to facilitate hardware realization of many image detection and object recognition algorithms. As a result, computationally-expensive algorithms are usually implemented on an FPGA.
State-of-the-art developments in computer vision confirm that processing algorithms will make a substantial contribution to video analysis in the near future. The processing algorithms once commercialized may overcome most of the issues associated with the power and memory-demanding needs. However, the challenge to devise, implement, and deploy automatic systems using such algorithms to detect, track, and interpret moving objects in real-time remains. The need for real-time applications is strongly felt worldwide, by private companies and governments directed to fight terrorism and crime, and to provide efficient management of public facilities.
Intelligent computer vision systems demand novel system architectures capable of integrating and combining computer vision algorithms into configurable, scalable, and transparent systems. Such systems inherently require high performance devices. However, many uncharted areas remain unaddressed. For example, only a single hardware implementation attempt has been reported for a Maximally Stable Extremal Regions (MSERs) detector and the attempt had limited success. This is in spite of the fact that MSERs detectors were introduced as a research topic more than a decade ago, have been used in numerous software applications, and discussed in over 3,000 published papers. The major advantages of MSERs are affine invariance. Traditional scale invariant feature transform (SIFT) detectors and speeded up robust features (SURF) detectors are only scale and rotation invariant. Another disadvantage is that traditional union-find algorithms used in labeling regions require two processing passes. One pass is for labeling light regions and a second pass is for labeling dark regions, or vice versa. This traditional requirement for two passes is relatively very inefficient.
What is needed is architecture and a method for real-time extraction of MSERs in an efficient manner such that union-find labeling can label both light and dark regions substantially simultaneously. In at least one embodiment, the architecture can be relatively easily realized with e.g. an FPGA or an application-specific integrated circuit (ASIC) or the like to realize a System-on-Chip (SoC) to relatively greatly increase processing speed in comparison to traditional systems that extract MSERs.
Architecture and a method for real-time extraction of maximally stable extremal regions (MSERs) is disclosed. The architecture includes a communication interface and processing circuitry that are configured in hardware to receive a data stream of an intensity image in real-time and provide labels for light image regions and dark image regions within the intensity image that match a given intensity threshold during a single processing pass. The communication interface and processing circuitry are also configured in hardware to find extremal regions within the intensity image based upon the labels and to determine MSER ellipses parameters based upon the extremal regions and MSER criteria. In at least one embodiment, the MSER criteria include minimum MSER area, maximum MSER area, the acceptable growth rate value for MSER area (i.e. maximum region area variation), and threshold increment parameter (step size between consecutive threshold values).
In at least one embodiment, the MSER criteria include minimum MSER area and maximum MSER area, and an acceptable growth rate value for MSER areas. In another embodiment, the MSER criteria include a nested MSER tolerance value.
Those skilled in the art will appreciate the scope of the disclosure and realize additional aspects thereof after reading the following detailed description in association with the accompanying drawings.
The accompanying drawings incorporated in and forming a part of this specification illustrate several aspects of the disclosure, and together with the description serve to explain the principles of the disclosure.
The embodiments set forth below represent the necessary information to enable those skilled in the art to practice the disclosure and illustrate the best mode of practicing the disclosure. Upon reading the following description in light of the accompanying drawings, those skilled in the art will understand the concepts of the disclosure and will recognize applications of these concepts not particularly addressed herein. It should be understood that these concepts and applications fall within the scope of the disclosure and the accompanying claims.
The MSER real-time processing circuitry 14 includes intensity image process hardware 18 that receives a data stream of an intensity image via the communication interface 12 and provides labels for image regions within the intensity image that match a given intensity threshold. Also included is extremal regions find hardware 20 that finds extremal regions within the intensity image based upon the labels. During operation, the extremal regions find hardware 20 that automatically monitors the size of each extremal region, i.e., each extremal region's cardinality, |(t)|, as a function of an intensity threshold value t. An MSER is detected if q(t) has a local minimum, where
Detected MSERs are further processed by MSER process hardware 22 to extract MSERs of particular interest. The details of the MSER process hardware 22 is discussed later in this disclosure.
In an exemplary embodiment, an incoming frame of the intensity image is intensity thresholded to generate a binary image made up of dark pixels and bright pixels at full contrast. In an exemplary embodiment, the intensity threshold value t starts at zero and increments at a given intensity threshold increment Δ until the intensity threshold value equals 255. Therefore, if Δ is set to 5, there will be 52 intensity thresholding processes per intensity image frame. Further still, with Δ increments, the threshold continues to increase until the entire intensity image is processed. In general, the thresholding process requires 255/Δ+1 threshold increments. Typical values of Δ range from around about 4 to around about 8. Therefore, around about 64 to around about 8 threshold increments are needed to process a complete intensity image. There is a binary image for each threshold increment, and light regions and dark regions are labeled for each binary image.
In this regard, in an exemplary embodiment, the intensity image process hardware 18 includes union-find hardware 24 that labels image regions within the intensity image for each Δ of the intensity threshold value t. In particular, the union-find hardware 24 labels both light regions made up of the light pixels and dark regions made up of the dark pixels within the binary image for each intensity threshold of the intensity image. The labeling of the light regions and the dark regions occurs during a single pass substantially simultaneously, wherein substantially simultaneously means that the light regions and dark regions are labeled within around about 50% of the overall time needed to run both separately (that is the time needed to run the MSER to detect the bright regions only plus the time needed to run it again to detect the dark regions), based on our implementation.
Moreover, the union-find hardware 24 will provide a labeled image, a seed, and a size (i.e., the number of pixels with a same label) of each region plus the number of labels used. Simply put, the union-find hardware 24 provides labeled regions and their corresponding sizes and seeds. The seed of each region at a particular intensity threshold is the first pixel location that the union-find hardware 24 finds for the region. Due to the intensity threshold increment Δ, previous regions may grow or merge and new regions may appear. As a result, the union-find hardware 24 will label such regions with labels that are still unique but not necessarily similar to previous labels or with the same seeds.
In order to perform parallel extraction of MSERs, the embodiments of this disclosure monitor both dark regions and white regions substantially simultaneously. However, each labeled region has a unique label regardless of whether or not the region is a dark region or a light region. In order to label dark regions and light regions substantially simultaneously, the union-find hardware 24 is configured to first define two matrices of M×N size in order to hold a binary image resulting from thresholding. A first matrix referred to herein as the FD matrix, is represented as follows:
which effectively assigns unique labels to all pixels regardless of pixel color, i.e., black or white. In particular, all pixels are singletons initially with label values ranging from 1 to M×N.
A second matrix defines the size of each region, and since initially all pixels are considered singletons, the region size matrix, referred to herein as the matrix is represented as follows:
The values stored in the and matrices will be updated as the union-find hardware 24 scans for connectivity between pixels. For example, the union-find hardware 24 can scan for 8 pixel connectivity or 4 pixel connectivity.
Furthermore, because the regions can grow and/or merge, the first pixel location that the union-find hardware 24 encounters for a growing region will be different from a previous seed, even though both refer to the same region. To overcome this problematic issue, labeled region seeds updater/unifier hardware 26 compares all seeds stored as a seed list in the cache memory 16 for a present intensity threshold to seeds previously detected and stored in the seed list. If a match between seeds is found, the original seed is maintained by the labeled region seeds updater/unifier hardware 26. Otherwise, the labeled region seeds updater/unifier hardware 26 appends a new seed to the seeds list stored in the cache memory 16.
In an exemplary embodiment, for both light pixels and dark pixels, if a pixel P with a seed r has the same intensity as a pixel below and to its right, the seed of the pixel below and to its right, the matrix, is changed to r P, and the corresponding value in the matrix will change to the count value of the pixels with the seed label. At the end of this process, the matrix will be labeled by the region root. That is to say, the root of a specific region becomes the region's label. Similarly, the matrix is identified by the region size instead of the root value. Note that the labels are unique, whereas the labels are not. In particular, two different regions can have the same region size, however, each has only one root.
A region map is usable to store region sizes for the seeds in the seeds list. The region map is stored as a dedicated portion of the cache memory 16. Region map updater/unifier hardware 28 updates the region map as the intensity image is processed by the union-find hardware 24.
The amount of memory that is needed to store the seeds' region sizes is 3 times the number of seeds stored in the SeedList memory because the region map stores the value of (t+Δ), (t), and (t−Δ) for each seed. These values are needed to calculate the stability function for each seed in the SeedList. The region map allows for memory reduction and efficiency in place of recording a region size for every seed in the SeedList at every intensity threshold. As a result, if more seeds are appended to the SeedList at intensity threshold t+Δ, then new locations for this new seed are also appended to the RegionMap, where the region size for this intensity threshold is added in the q(t)=|(t+Δ)| while |(t)| and |(t−Δ)| are filled with ones to avoid division by zero. Note, that since |(t+Δ)| is not available at the current intensity threshold t, nor is t available for the first intensity threshold, then the calculation of q(t) starts at the third intensity threshold, i.e., q(t) is calculated at intensity threshold t+Δ, excluding the first and final intensity threshold values. In this way, the RegionMap memory has three rows to allow the stability function to be easily calculated. To elaborate on this, consider the following sample scenario table shown in
The communication interface 12 receives MSER criteria that in at least one embodiment includes a minimum MSER area value MinArea, a maximum MSER area value MaxArea, and an acceptable growth rate value MaxGrowth. The minimum MSER area is the minimum number of pixels that an MSER can contain. In contrast, the maximum MSER area is the maximum number of pixels that an MSER can contain. As such, all detected MSERs must satisfy the condition:
MinArea≦≦MaxArea. EQ. 4
The communication interface 12 passes the MSER criteria to MSER selector hardware 30, which also receives MSERs found via the extremal regions find hardware 20. The MSER selector hardware 30 in turn tests each MSER to ensure that each MSER has an area that fits within the range specified by the minimum MSER area value MinArea and the maximum MSER area value MaxArea.
The maximum acceptable growth rate value MaxGrowth specifies how stable the detected MSERs must be. In particular, all detected MSERs must satisfy the condition:
The communication interface 12 passes maximum acceptable growth rate value MaxGrowth to the MSER selector hardware 30, which in turn tests each MSER found by the extremal regions find hardware 20 to ensure that each MSER does not exceed the maximum acceptable growth rate value MaxGrowth.
In one embodiment, the MSER criteria also include a nested MSER tolerance value τ that is provided to mitigate sensitivity to blur and to mitigate discretization effects that plague traditional MSER extraction software and/or hardware. Since nested MSERs have similar center coordinates, any new MSERs with centers within a range associated with the tolerance value τ compared to previously detected and stored MSERs are excluded automatically.
In particular, all detected MSERs satisfy the following conditions:
x0:∉{(1−0.5τ)xi,(1+0.5τ)xi)}, EQ. 6
y0:∉{(1−0.5τ)yi,(1+0.5τ)yi}, EQ. 7
where xi and yi denote all previously stored center values of the detected MSERs. However, comparing centers has a drawback in that unnecessary computations are included while image moments are calculated. In order to predict possible nesting, and hence save unnecessary operations due to comparing centers, an alternative approach is executed by the MSER selector hardware 30 at a relatively far lower computational cost. Specifically, for each region, the MSER selector hardware 30 compares a current growth rate with a previous growth rate, and if an absolute difference is within a range defined by the tolerance value τ, then this region at the current intensity threshold is excluded by the MSER selector hardware from further MSER extraction processing. Moreover, an exemplary intensity threshold increment, Δ, may be selected as 5 to speed up the MSER detection process. MSER detection with Δ equal to 5 is around about five times faster than when Δ is equal to 1. Further still, since merged regions will have the same growth rate from the intensity threshold level as they merge, only one MSER that corresponds to the region with a seed that comes first in the seed list will be detected. The remaining MSERs will not be processed, but instead will be ignored. As a result of ignoring the remaining MSERs, many other unnecessary computations are eliminated to further save energy and execution time.
Find MSER pixel list hardware 32 generates a pixel list for the x and y coordinates for each labeled region defined by the labeled regions seed stored in the seed list for every MSER that passes the conditions tested by the MSER selector hardware 30. MSER moments calculator hardware 34 uses the pixel list to calculate region moments using the following relationship for any particular moment mpq.
x,y∈R(τ) EQ. 9
where x and y denote the pixel coordinate of the region R(τ) at the current intensity threshold. Subsequently, the region can be approximated by a best-fit ellipse equation that is given by:
where (x0 y0), a, b, and α, respectively, are MSER ellipse parameters that represent a center of gravity (center of the MSER ellipse), a major axis length, a minor axis length, and an angle of the major axis with respect to a horizontal axis. In an exemplary embodiment, the MSER ellipse parameters are determinable using region moments m00, m10, m10, m11, m02, and m20 that are calculated by MSER moments calculator hardware 34. Elliptical fit approximator hardware 36 uses the region moments provided by the MSER moments calculator hardware 34 to approximate the MSER ellipse parameters (x0, y0), a, b, and α via the following mathematical relationships.
where
Instead of storing each MSER pixels list, which would require a relatively huge memory, an MSER ellipses parameters memory block 38 is usable to store best-fit ellipses parameters (x0, y0), a, b, and α, which are provided to external hardware (not shown) for display or monitoring. For example, since the best-fit ellipses parameters (x0, y0), a, b, and α are readily available through the communication interface 12, they can be used to compute scale invariant feature transform (SIFT) descriptors and speeded up robust features (SURF) descriptors. Depending on whether or not the intensity image is inverted, the architecture 10 will detect and extract either bright or dark MSERs.
The labeled region seeds updater/unifier hardware 26 (
The region map updater/unifier hardware 28 (
In this exemplary embodiment, the region map array 68 stores the region size of each region having a seed in the seed list 64 for the current intensity threshold value and the previous two intensity threshold values. This is sufficient to calculate the growth rate or stability function of each region that is used to identify MSERs. Note that the stability function is defined as:
and (t+Δ), (t), and (t−Δ) are stored for every seeded region in the region map array 68. A q(t) memory array 70 is usable to store the results of the stability function at the current intensity threshold. A q(t−Δ) memory array 72 is usable to store the results of the stability function at the current intensity threshold minus Δ.
The MSER selector hardware 30 (
MinArea≦≦MaxArea EQ. 20
The MSER selection FSM 74 uses the third parameter that pertains to the maximum acceptable growth rate value MaxGrowth to monitor the stability of the detected MSERs, which must satisfy the following relationship:
Moreover, the MSER selection FSM 74 compares the growth rate of q(t) and q(t−1). If the comparison does not exceed the nested MSER tolerance value τ then a nested MSER is detected and the MSER selection FSM 74 will not detect that particular nested MSER again.
The find MSER pixel list hardware 32 implements a find MSER pixel list function 76 that scans the binary image to locate all pixels belonging to each MSER detected. Afterwards, the MSER moments calculator hardware 34 implements a calculate image moments function 78 that calculates the region moments m00, m10, m10, m11, m02, and m20 that are stored in a 5×1 memory array stored in the cache memory 16 (
An intensity image store function implemented by the MSER real-time processing circuitry 14 allocates a memory array Ik(M,N) 84 within the cache memory 16. The MSER real-time processing circuitry 14 also implements an FSM 86 that uses values from the memory array Ik(M,N) to perform an intensity thresholding of the intensity image at every intensity threshold encountered for each intensity threshold increment Δ.
A first union-find FSM 92 compares the assigned region roots (R1, R2) to stored values at ID memory addresses. The first union-find FSM 92 makes the region roots (R1, R2) the same if the first union-find FSM 92 determines that the region roots (R1, R2) are different. As the first union-find FSM 92 operates, yet another comparison is made by a first decision diamond 94 to test if the region roots (R1, R2) are the same. If no, the process continues with an assignment function 96 that assigns two variables (N1, N2) with two values respectively, with the stored values at the ID memory addresses for region roots (R1, R2) that correspond to the region size of a collective region defined by the region roots (R1, R2).
A second decision diamond 98 compares two adjacent pixels specified by the region roots (R1, R2) to determine if the two adjacent pixels have the same value. If no, then there is no change. However, if yes, then the two adjacent pixels are connected and the process continues to a third decision diamond 100 that tests to see if N1 is greater than or equal to N2. If no, the process continues with a first merge block 102 that merges N1 and N2 into the region R2, which is relatively larger than region R1. If yes, the process continues with a second merge block 104 that merges N1 and N2 into the region R1. The first merge block 102 and the second merge block 104 communicate with a region size memory array 106 that has M×N elements and is named RegionSize (M, N) in the exemplary embodiment of
A region roots assignment FSM 110 continues assigning values for the region roots (R1, R2) and continues operating for every intensity threshold until all pixels are labeled. Each root (i.e. each of R1 and R2) is assigned M*(N−1)+N*(M−1) times.
A total memory requirement for a frame of M×N and a maximum number of L detected MSERs, the memory requirement can be approximated as: Total Memory Requirement=M×N [intensity image]+0.125×M×N [binary image, one bit per location is sufficient]+2×k×M×N [ID+RegionSize]+4×L [Seeds List+RegionMap]+5×L [elliptical parameters]+2×L [q(t) and q(t−1)]=[1.125+2×k]×M×N+11×L, where k is a constant that ensures proper assignment for both RegionSize and ID, not larger than 3 to support 4096×4096 image resolution, which is, again, far more than needed in practice.
The total memory requirement is an upper limit approximation that is recommended because of the impossibility to predict the number of MSERs in an image, since the number of MSERs is highly dependent on the content of the image. The memory requirement is only about 104 kBytes for a 160×120 frame (and assuming the constant k=2), and a maximum of 768 detected MSERs, which is relatively far more than the typical number of detected MSERs in images. If we assume an image resolution of 320×240, just as used in a state-of-art FPGA implementation, then the memory requirement tends to be around about 393 kBytes, which is about 91.6% less than the reported memory requirement of 4.6 Mbytes in used in typical prior art applications. A sample plot for different resolutions, namely 160×120, 288×216, 384×288, 512×384 and 682×512, is shown in
The architecture 10 of
In particular,
Those skilled in the art will recognize improvements and modifications to the embodiments of the present disclosure. All such improvements and modifications are considered within the scope of the concepts disclosed herein and the claims that follow.
Number | Name | Date | Kind |
---|---|---|---|
7725484 | Nister | May 2010 | B2 |
7813561 | Jia | Oct 2010 | B2 |
8265866 | Altamura | Sep 2012 | B2 |
8295604 | Sakai | Oct 2012 | B2 |
8406532 | Wang | Mar 2013 | B2 |
8538077 | Zitnick, III | Sep 2013 | B2 |
Entry |
---|
Donoser, M., et al., “Efficient Maximally Stable Extremal Region (MSER) Tracking,” Proceedings of the 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Jun. 2006, 8 pages. |
Donoser, M., et al., “Shape Guided Maximally Stable Extremal Region (MSER) Tracking,” 20th International Conference on Pattern Recognition, Istanbul, Aug. 2010, pp. 1800-1803. |
Greenhalgh, J., et al., “Real-Time Detection and Recognition of Road Traffic Signs,” IEEE Transactions on Intelligent Transportation Systems, vol. 13, No. 4, Dec. 2012, pp. 1498-1506. |
Hsu, G.-S., et al., “Application-Oriented License Plate Recognition,” IEEE Transactions of Vehicular Technology, vol. 62, No. 2, Feb. 2013, pp. 552-561. |
Huang, L., et al., “Human Skin Detection in Images by MSER Analysis,” 18th IEEE International Conference on Image Processing, Brussels, Sep. 2011, pp. 1257-1260. |
Riemenschneider, H., et al., “Online Object Recognition by MSER Trajectories,” 19th International Conference on Pattern Recognition, Tampa, FL, Dec. 2008, 4 pages. |
Sivic, J., et al., “Video Google: A Text Retrieval Approach to Object Matching in Videos,” Proceedings of the Ninth IEEE International Conference on Computer Vision, Nice, France, Oct. 13-16, 2003, 8 pages. |
Varah, S., et al., “Target Detection and Tracking Using a Parallel Implementation of Maximally Stable Extremal Region,” GPU Technology Conference, Canada, Mar. 2013, 28 pages. |
Zamberletti, Alessandro et al., “Text Localization based on Fast Feature Pyramids and Multi-resolution Maximally Stable Extremal Regions,” ACCV 2014 Workshops Computer Vision, Springer International Publishing, 2014, pp. 91-105. |
Non-Final Office Action for U.S. Appl. No. 14/482,482, mailed Jan. 4, 2016, 7 pages. |
Number | Date | Country | |
---|---|---|---|
20160070970 A1 | Mar 2016 | US |