Method for Counting Objects in A Predetermined Spatial Area

The method addresses unreliable spatial density estimation in high-object-density scenarios by using unsupervised learning and detector variables to generate a robust learning database and apply regression, enhancing accuracy and reducing manual intervention.

SA517390016B1Undetermined Publication Date: 2021-03-08THALES SA +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
SA517390016
Authority / Receiving Office
SA · SA
Patent Type
Patents
Current Assignee / Owner
Filing Date
2017-09-24
Publication Date
2021-03-08
Estimated Expiration
2036-03-24

Smart Images

  • Figure 072CE58E-AF84-478F-A372-03C4D028478D
    Figure 072CE58E-AF84-478F-A372-03C4D028478D
  • Figure 66037BC7-D4BB-4C5C-A5AB-559A14233898
    Figure 66037BC7-D4BB-4C5C-A5AB-559A14233898
  • Figure A200BB07-0F85-43B4-B7DE-4B01A0AF73E9
    Figure A200BB07-0F85-43B4-B7DE-4B01A0AF73E9
Patent Text Reader

Abstract

The invention relates to a method for counting objects in a predetermined spatial area, the method including: - a first unsupervised learning phase, and - a second phase for counting in the area, comprising the following steps: - acquiring an image including the predetermined area via the detector (30), and - estimating the spatial density of objects in the predetermined area by applying the law to the acquired image. Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

Full description Background of the invention The present invention relates to a method for counting objects in a predefined spatial area. It also relates to a related computer software product and an information medium. Furthermore, it relates to a detection device capable of performing the counting method. With the increased use of video surveillance in public places to improve security, many technologies have been developed to analyze the videos provided by cameras. European Document No. 2,704,060 A2 specifically describes a method for estimating the size of a data stack from an image. The method includes steps to select a filter to obtain the most informational data points using an efficient learning algorithm. It also includes a step to receive an annotation from a user specifying the data from the most informational data points. The method further includes a step to apply a regression function to the selected most informational points, along with relevant numbering to minimize loss on the annotation data unit. Finally, the method includes a step to create a regression model using the user-annotated data and the inferred annotated data. US Document 2000 / 0031005 A1 describes an optical system comprising a camera and a processor that includes video analysis software. The software is suitable for estimating a reference background frame representing the background, estimating geometric variables to represent the gradient of an object's change in the frame, obtaining a change detection map to distinguish the background from an object in the frame, and combining the change detection map with the geometric variables to obtain a measurement of congestion in the frame. However, when increasing the spatial densities of objects, the methods mentioned above provide unreliable results for determining the spatial density of objects in the available frame. Therefore, there is a need for a method of identifying objects in a predefined spatial area, which facilitates the possibility of obtaining more reliable estimates, particularly when the spatial density of objects is high. General description of the invention Finally, a method is proposed for counting objects in a predefined spatial area. The method includes an initial unsupervised learning phase that includes the steps of selecting a set of discrete spatial densities for objects in a predefined spatial area, providing variables for a detector capable of acquiring at least one image, the image of which includes the predefined spatial area, the provided variables include at least one variable related to the focal length of the detector, a variable related to the height of the detector and a variable related to the tilt of the detector relative to the predefined spatial area, generating a database that includes many images for each selected spatial density, the generation step uses the variables provided in the assigned step, and defining a rule that facilitates the estimation of the spatial density in a predefined spatial area using the generated learning rule.The method also includes a second stage of counting in a predefined spatial area, which involves acquiring an image encompassing the predefined spatial area using a detector, and estimating the spatial density of objects in that predefined spatial area by applying the formula to the acquired image. According to specific models, the counting method includes one or more of the following features, either alone or in a possible technical combination: - The generation step includes a step to correct the perspectival defects associated with the detection device. The method includes a step to slice an image to identify the pixels that contain an object. - The identification step is carried out by learning. Learning involves extracting properties. The extracted properties are also used in the estimation step. - The selection step is performed by minimizing the support vector regression. -In the assigned step, the variable associated with the detector is an inherent feature of the detector. -In the designated step, a position variable is provided for the detector and / or a direction variable for the detector. A computer program product is also described as including program instructions, program instructions that implement a method as described above, when the program instructions are executed by a computer. An information medium is also suggested on which a computer software product is stored, as described above. A monitoring device capable of counting objects in a predefined spatial area is also proposed. This device includes a detector capable of acquiring at least one image, which encompasses the predefined spatial area. The detector incorporates variables: one related to the detector's focal length, another to its height, and a third to its tilt relative to the predefined spatial area. The device also includes a modular processing unit capable of counting objects within the predefined spatial area.The modular processing unit is able to select a set of different spatial densities in a predefined spatial area, receive variables related to the detector. The received variables include at least one variable related to the focal length of the detector, a variable related to the height of the detector, and a variable related to the tilt of the detector relative to the predefined spatial area. It generates a set of images for each selected spatial density using the received variables, determines a law that facilitates the estimation of spatial density in a predefined spatial area using the generated learning rule as a learning rule, and estimates the spatial density of objects in the predefined area by applying the law to the acquired image. Brief explanation of the drawings Other features and advantages of the invention will become clear when examining the following description of the invention models, which are presented as examples only and are illustrated with reference to the drawings, which are: Figure 1 shows a schematic diagram of a typical processing unit, which facilitates the procedure. Figure 2, an example of a generated image used to form a learning base, and Figure 3, a flowchart of an example model method for counting objects, A processing module 10 and a computer program product 12 are illustrated in Figure 1. Detailed description: The interaction of the computer program product 12 with the processing module 10 facilitates execution. The 10-unit processing unit is preferably a computer. In general, a Module 10 Processing Unit is an electronic computer capable of processing and / or converting data that is embodied as electronic and physical quantities in the Module 10 Processing Unit registers and / or memory into other similar data corresponding to physical data in memory, registers or other types of displays, transmission or storage devices. The processing module 10 includes a processor 14, which includes a data processing unit 16, memories 18, and an information medium reader 20. The processing module 10 also includes a keyboard 22 and a display unit 24. The computer software product includes 12 information mediums and 20 information mediums. Information medium 20 is a readable medium. It is readable by module 10, typically by data processing unit 14. Information medium 20 is suitable for storing electronic instructions and is capable of being coupled to a computer system bus. For example, the readable information medium 20 is a floppy disk, optical disc, Compact Disc read-only-memory (CD-ROM), magnetic-optical disc, read-only-memory (ROM), random access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic card or optical card. A computer program containing program instructions is stored on information medium 20. The computer program can be loaded onto the data processing unit 14 and is suitable for execution when the computer program is executed on the modular processing unit 10. The process of the module processing unit 10 interacting with the computer program product 12 is described by reference to Figures 2 and 3, which schematically illustrate an example of the method model for counting objects. The term "object" refers to a countable element. In the context of the invention, the object is observable; that is, Detector 30, as shown in Figure 3, is capable of observing the object in the predefined area. The aforementioned detector, 30, for example, is a 30 camera. The camera mentioned above has 30 variables (parameters P). Therefore, Detector 30 has inherent Pintrinsic variables, i.e., are not media-dependent, such as the focal length of Detector 30 or the size of the image obtained by Detector 30. Pintrinsic intrinsic variables are camera-specific variables.30 The detector device 30 also has pseudo-extraneous variables. For example, a variable related to the position (Pposition) of camera 30 based on the medium in question is a pseudo-extraneous variable. Ideally, the Pposition variable for camera 30 is the height of camera 30. According to another example, the Pposition variable for camera 30 is the distance of camera 30 relative to a predefined spatial area. Typically, the distance of Camera 30 from a predefined spatial area is defined as the distance between the detector level of Camera 30 and the point in the predefined spatial area that is closest to Camera 30. According to another example, assuming the homogeneous orthogonal plane of the reference (X, Y, Z) of the space to be monitored is defined, the other position variable Pposition of camera 30 is the position along the X axis and the position along the Y axis. Similarly, the variable related to the orientation of Camera 30 and dependent on the mechanical system carrying Camera 30 is a Pextrinsic variable. Ideally, the orientation variable for Camera 30 is the angle of inclination of the camera's field of view relative to the horizontal axis. This angle is generally referred to as the divergence angle. In addition, other orientation variables are taken into account. Another orientation variable for Camera 30, for example, is the angular orientation of the camera's optical axis relative to the reference frame. The orientation of Camera 30's optical axis is typically called the orientation angle. The tilt of the camera 30 around its axis of view, also called the rolling angle, is another example of the Porientation variable of the camera 30. It should be noted that the directional P variables of the 30-degree camera can also be expressed in terms of Euler angles, i.e., the swivel, tilt, and angular rotation angles. Generally, the tilt angle is the preferred variable. Later in this document, the objects are individuals and Detector 30 is a video surveillance camera. In this case, the predefined spatial area is the area to be monitored. According to another example, the objects are biologically useful objects that are observed using a detector 30 and a lens that performs a microscope function. According to another example, the objects are carbon nanotubes, and in this case, the detection device is an electron microscope. In general, the method described can probably be applied to any type of object whose behavior can be effectively stimulated. In general, the predefined spatial area ZS depends on the body. To clarify, when the object in question is an object of biological interest, the predefined spatial area ZS is a portion of the sample observed using a microscope. In the context of the example given, when the object is a person, the predefined spatial area ZS is a part of the middle, for example, a part of the street. This is clearly shown in Figure 2. In that case, Camera 30 is capable of acquiring an image of the predefined spatial area ZS; typically, Camera 30 is capable of acquiring an image of the street. Furthermore, the counting method is a method of counting data stacks in a medium. As illustrated schematically in Figure 3, the method includes two successive phases P1 and P2. The first phase P1 corresponds to the upper part of Figure 3 (bounded by dotted lines 32), while the second phase P2 corresponds to the lower part of Figure 3. The first phase P1 is an unsupervised learning phase, while the second phase P2 is a counting phase in a predefined spatial area ZS. The first unsupervised learning phase P1 leads to obtaining a law that facilitates estimating the spatial density of people in a predefined space. The expression "unsupervised learning" means that the learning data is generated automatically. In this context, the law is a link between image features and the spatial density of people in a predefined spatial area (ZS). The law facilitates the identification of common features within increasing spatial density of people. During the first learning phase P1, the detector 30 variables are used to generate an automatic learning base. From the learning base, the regression model is learned by the module processing unit 10. The second phase P2 of counting in a predefined spatial area ZS examines the application of the law to actual cases. "Actual state" refers to images obtained by Camera 30 and not automatically generated, as in the case of the first unsupervised learning phase P1. More specifically, the video stream from camera 30 is collected, and then features are extracted from the video stream to obtain spatial density on the overall image due to the regression model of the slump during the execution of the first learning phase P1. Therefore, the method makes it easier to obtain the number of people in a predefined spatial area ZS. The first unsupervised learning phase P1 includes four steps: the S100 selection step, the S102 preparation step, the S104 generation step and the S106 identification step. In the selection step S100, a set of different spatial densities of people is selected in a predefined spatial space ZS. According to the model, each spatial density is uniformly distributed between zero spatial density and high spatial density. In general, spatial density is high based on context, and specifically on viewing conditions. Typically, a spatial density greater than or equal to 50 people in a predefined space is considered high spatial density. At the end of the S100 selection step, a set of spatial densities is obtained. According to the model, the S100 selection step is performed for several separate areas of the image. In the dedicated step S102, 30 camera-related variants are provided. The available variables include at least one variable related to the focal length of the detector 30, a variable related to the height of the detector 30, a variable related to the tilt of the detector 30 relative to the predefined spatial area ZS, and a variable related to the position of the keypoint. The variable associated with the position of the keypoint, for example, is the position of the optical center relative to the center of the image. According to an example, the variable associated with camera 30 is a Pintrinsic intrinsic variable. For example, the camera's focal length is provided as 30 or the number of camera pixels as 30. According to another example, the variable associated with camera 30 is only one of the set consisting of the position variable and the orientation variable of camera 30 with respect to the medium. At the end of the allocated step S102, the variables associated with Camera 30 are obtained. Among those variables, there is at least one variable associated with the focal length of the detector 30, a variable associated with the height of the detector 30, a variable associated with the tilt of the detector 30 relative to the predefined spatial area ZS, and a variable associated with the position of the keypoint. In generation step S104, a learning rule is generated. Finally, in generation step S104, a set of images and a footnote element corresponding to the ground reality are generated. The term "ground reality" is often used to refer to the English expression "ground reality". A set of images is generated for each selected spatial density in the S100 selection step. "Generate" means that the module processing unit 10 generates synthetic images using the variable associated with camera 30. The synthetic images are not images obtained from camera 30. Those images are generated as if they were captured by camera 30, but they are synthetic images. Preferably, pedestrian positions are calculated, including synthetic images of symmetry for the spatial density field in the three-dimensional center included in the space that includes the field of view of the 30 camera and its immediate proximity, to avoid edge effects. For example, to construct a spatial density field, a continuous spatial density gradient from maximum to minimum density is found within the image. This gradient is directed along fixed depth lines in the image, such that for a given depth, the spatial density intervals range from extremely dense to extremely sparse. This corresponds to the hypothetical scenario of a given depth, where the appearance of data stacks at a fixed spatial density is roughly analogous to the extent of a fixed depth line. Alternatively, a combination of randomly placed Gaussian functions in a predefined spatial area ZS with random standard deviation is used. This combination facilitates the generation of an image that closely resembles the actual data stack. One method simplifies the calculation of ground reality by determining the spatial density of the ground reality function, called the F-function. To calculate the F-function for each pixel of the generated image, the spatial density of the ground reality function F is determined by the following equation: where: - P is a list of the positions in the image where pedestrians are located, -N(p, P, σ²) is a two-dimensional Gaussian kernel evaluated at pixel p at the intermediate position P, and - σ is a coefficient. The position P of a passerby in the image is calculated using a camera variable 30 by displaying, in the image, a point located at the passerby's position around which the invention rotates, at a height corresponding to half the height of a human. Typically, the average height of a human is 1.70 meters. Similarly, the coefficient σ is calculated as one-third of one-half of the apparent height of a person at position P in the image. Therefore, the value assumed by the coefficient σ for pedestrian P depends on their position in the image. Typically, the coefficient σ is close to a few pixels. The actual grounding is calculated automatically, avoiding human intervention. Therefore, the process is more accurate, as it is performed automatically. At the end of the S104 generation step, a database is obtained, which functions as a learning database. This database contains a set of synthetic images, each of which is associated with a corresponding ground-based fact. In step S106 of the selection process, a law is determined. The law makes it easier to estimate spatial density in a predefined spatial area. Finally, the learning rule generated in the S104 generation step is used as a learning rule. As explained earlier, it should be noted that the learning rule is generated without manual annotation by the operator. According to the example in Figure 3, the S106 identification step is performed through four successive steps: S106a step to correct the perspective, S106b step to slice the data stack, S106c step to extract the properties and S106d learning step. In correction step S106a, the fact that in the image, objects close to the detector 30 appear larger than distant objects is taken into account. This perspective effect must be considered when analyzing the properties to be extracted from the image, as properties extracted from the front panel represent a small portion of the object compared to properties extracted from further away. In the S106a correction step, two consecutive steps are performed, namely, a step to measure the properties using a perspective measurement map and a step to divide the image into strips that have a quasi-constant depth. Properties are measured using a perspective measurement map where pixel weight is related to the available depth of the object generating the pixel. Pixels are weighted for distant objects. The weighting step increases the weight taken into account if the object is farther from the front panel. A perspective measurement map is generated using the camera variable 30. More specifically, the correction factor is obtained through differential rectification. Therefore, instead of using a two-dimensional variable like height or width, it is preferable to interpret the three-dimensional nature of human objects. Ultimately, the change in the three-dimensional volume occupied by the passerby is revealed. The perspective correction factor W(p) for pixel p is derived from this. As an example, the perspective correction factor W(p) is obtained using the following formula: where: The human being is represented by a cylinder with a circular base. A1(p) represents the apparent area of ​​the lateral area, and A2(p) is the visible area of ​​the upper circular base. Therefore, the map obtained is used to measure the properties by applying the calculated weights to each of the pixels that are located in a predefined spatial area ZS if the properties are surface properties, and by applying the square root of the weights to the properties associated with edge effects if the properties are contour properties. For cutting strips with a constant depth of field in the image, the angle of view from which the passerby can be viewed is embodied by a cylinder with a height h and a radius r of the camera 30, which is positioned at height H. This angle appears to vary depending on the position of the pixel in the image. The segment represented in the image consists of the extreme values ​​that are not far apart. Ultimately, the maximum angular change is determined in the segment corresponding to the pixel. As an illustration, two strips B1 and B2 are shown in Figure 2, and strips B1 and B2 are related to the predefined spatial area ZS. At the end of the S106a correction step, defects associated with a specific camera 30 shot are taken into account when analyzing synthetic images. In step S106b of data stack slicing, the pixels belonging to the data stack within the overall image are identified. Finally, in the learning base, ground reality data is used. In the S106c extraction step, the properties are extracted. The properties are associated with a specific pixel p; pixel p is a pixel that was sliced ​​in the S106b slicing step. This ensures that pixel p is associated with the presence of a data stack. Properties associated with pixel P are calculated on a sliding window Wprw that has a radius rw centered on pixel p. The extracted properties are of two types: contour properties and textual properties. As an example, contour characteristics are obtained using the Canny edge detector. Contour characteristics, for example, are the direction of the contour lines, or their lengths. Alternatively, step S106c is performed to extract contour properties using the fractal dimension Minkowski; the step is denoted by the abbreviation (MFD). Step S106c can be used to extract text properties, for example, using grayscale-based arrays. These layers are typically referred to by the abbreviation GLDM. The S106c extracting texture step also includes a step to represent the extracted properties in a vector form with a set of dimensions by differentiating the radius values ​​(rw). More specifically, a reference value of the radius rw corresponding to one-third of the half of the average height shown in the image of a human being is taken into account, as previously described for the coefficient σ. The reference values ​​mentioned, denoted by the expression rref, are used to obtain 6 different radius values ​​rw, which are, according to the example in Figure 3: 1 / 4.rref, 1 / 2.rref, rref, 3 / 2.rref, 2.rref and 3.rref. As a result, according to a model provided by the applicant, for each pixel of the image, a vector of properties with dimensions 1*144 is obtained. In the S106d learning step, as illustrated in the example, the support vector regression is employed. This regression is also referred to as SVR. The regression facilitates relating the property vector to the values ​​assumed by the spatial density in the density function F. The performance of the technology depends largely on the proper adjustment of a variable that was chosen in the kernel and the technology itself. In the example shown, the kernel is a Gaussian kernel, a Radial Basis Function (RBF). The kernel is denoted by the expression k. To distinguish the aforementioned kernel, three variables must be distinguished: the kernel variable γ, the penalty variable for the error expression C, and the loss function parameter ε. The kernel parameter γ is chosen so that kernel k satisfies the following equation: Where xp and xq are characteristic vectors pth and qth. Optimizing the selection of three variables facilitates achieving good performance levels. A typical method for selecting a good variable is to divide its cross-validity with the learning set. Since mutual validity is time-consuming, the following constraints are used for the penalty variable and the loss function parameter: loss function parameter ε. where: The term "mean value" represents the average of ground truth values. - σy represents the standard deviation of ground truth values. - σb represents the standard deviation of noise for ground-level truth values, - n represents the number of learning data, and - τ is a constant value. The student chooses to set the constant value τ at three, and for the kernel variable γ, the variable is set to the mean value of a list of all values ​​of the criterion boxes between xp and xq for all possible p and q. At the end of the S106d learning step, a law is obtained that facilitates the estimation of spatial density in a predefined spatial area. In the specific case described in this document, the law is a regression model, where the learning technique used is SVR technology. The second phase P2 of counting in the region includes three steps: the acquisition step of S202, the acquisition step of S204, and the estimation step of S206. In the acquisition step S202, an image is obtained by detector 30. The image includes at least the predefined spatial area ZS. In the acquisition step S204, the properties specified in the extraction step S106c are obtained for the image provided in the acquisition step S202. The S204 acquisition step includes the S204a cutting step and the S204b extraction step. The S204a segmentation step is performed due to the use of a logarithm to detect data stacking in the image. Slicing facilitates the extraction of properties associated with data stacking, rather than properties associated with locations where data is not stacked. Optimizing slices enhances the overall performance of the counting method. The extraction step S204b is similar to the extraction step S106c described in the first phase P1. Extraction is performed only for pixels where the data stack is detected. At the end of the S204 acquisition step, the property vectors are obtained for each pixel of the image for which the data stack was detected. In the S206 estimation step, the spatial density of objects in a predefined area is estimated. Finally, the law obtained at the end of the first phase, P1, is applied to the acquired image. The link is represented by arrow 50 in Figure 3. More specifically, the regression model obtained at the end of the first phase P1 is used to obtain the spatial density value. In other words, the model is applied to each property vector to deduce the estimated value assumed by the function F at the corresponding pixel p. Furthermore, estimation is only performed in segmented regions and the function F is a result of Gaussian convolution; in some cases, the function F may assume values ​​that cannot be ignored outside the segmented region. To estimate the values ​​assumed by the F function outside the segmented region, the spatial density values ​​obtained using image convolution are extrapolated using the measured kernel κ such that: And it is - The constant u0 is determined by the equation; The constant v0 is determined by the equation, and The constant β is determined by the equation - uC, vC are the coordinates of the core center; these coordinates are adjustable by the CPU module 10. The variable α is determined using the images obtained by the learning variable. The variable α, for example, is present in binary slicing technology. At the end of the S206 estimation step, a spatial density estimate is obtained for a number of passers in a predefined spatial area ZS. Optionally, the second phase P2 includes an inference step whereby the number of passers is inferred from the spatial density estimated in the estimation step. For example, the number of passers-throughs in a predefined area is obtained by summing them across a predefined total area. This method facilitates elemental analysis and functions like a self-learning system. Regarding the current domain method, the proposed method uses a learning approach that actually involves a database that can be easily obtained. In fact, in current domain methods, the method is performed by learning using actual data, which involves manual annotation by the data operator to obtain a learning rule. Furthermore, the learning base of the proposed method is of higher quality than that of the current field method. In fact, the variability and representativeness of the learning data are problematic for current field methods. Specifically, when used in current field methods, extreme cases exist, i.e., when the spatial density exceeds 50 people in the area, a situation rarely observed in actual data, as this scenario seldom occurs in the application. Moreover, the operator input is unreliable in practice, particularly when the data stack is extremely dense or the resolution is limited, and these problems can be compounded by others. In contrast, leaders are generated to represent future use cases for the detector, i.e., multiple generated images facilitate the examination of vastly different spatial densities, ranging from very low to very high density. Furthermore, the method is highly sensitive to changes in the position and / or orientation of the detector. In fact, the viewfinder is a valuable variable. The learning data is actually generated using the same 30-camera as those used sequentially. Ultimately, data associated with 30-camera is provided, such as the inherent focal length, pintrinsic image size, external position, and orientation. Based on the variable defined by 30-camera, the learning database is automatically constructed, statistically modeled, and reliably. The robustness is confirmed by the fact that the change to Camera 30 only assumes a re-execution of the first phase P1 without obtaining ground images, which are indispensable in the current field method. The method is useful where the ground reality is directly available, where the margin is automated and any change on camera 30 can be taken into account directly by learning the ebb model without assuming the provision of a new learning set. The method specifically applies monitoring of data stacks through video surveillance for security or transportation purposes. In this application, the method facilitates estimating the spatial density of the data stack and counting the number of people passing through it. In this mode, the acquisition step is performed repeatedly so that the second phase P2 can be performed repeatedly on a continuous video stream. The proposed method is related to computer-aided vision, where the computer performs the learning process. Therefore, the method can be implemented using any computer or other device. Multiple systems can be used with the software that performs the aforementioned method, but it is likely that dedicated hardware will be considered for performing the method, which can be integrated into devices capable of measuring the provided data. Specifically, the method can be implemented by a monitoring device capable of counting objects in a predefined spatial area (ZS) that includes a 30-detector capable of acquiring at least one image. The image includes the predefined spatial area (ZS) and a 10-module processing unit. The 10-module processing unit is suitable for counting objects in the predefined spatial area (ZS) and is capable of selecting the S102 provisioning step, the S104 generation step, the S106 identification step, the S204 acquisition step, and the S206 estimation step.The modular processing unit 10 is suitable for receiving the variable associated with the detector 30. The received variables include at least one variable associated with the focal length of the detector 30, a variable associated with the height of the detector 30, and a variable associated with the tilt of the detector 30 relative to the predefined spatial area ZS. Furthermore, the proposed models are not tied to a specific programming language. Incidentally, this means that many programming languages ​​can be used to implement the method described above. The methods and models described above can be combined with each other, wholly or partially, to find other models of invention.

Claims

Protection Elements 1- A method for counting objects in a predefined spatial area (ZS). The method includes: - An unsupervised learning phase, which includes the following steps: - Selecting a set of different spatial densities for objects in a predefined spatial area (ZS), - Providing variables for a detector (30) capable of acquiring at least one image. The image must include the predefined spatial area (ZS). The available variables must include at least one variable related to the focal length of the detector (30), a variable related to the height of the detector (30), and a variable related to the tilt of the detector (30) relative to the predefined spatial area (ZS), - Generating a database containing multiple images for each selected spatial density. The generation step uses the variables provided in the assigned step, and - Defining a rule that facilitates the estimation of spatial densities in a predefined spatial area using the generated learning rule, - A second counting phase in a spatial areaThe predefined (ZS) method includes the following steps: - Acquiring an image containing the predefined spatial area (ZS) using a detector (30), and - Estimating the spatial densities of objects in a predefined spatial area (ZS) by applying the formula to the acquired image; where: the selection step is performed by a processing module (10), the reception step is performed by a processing module (10), the generation step is performed by a processing module (10), the identification step is performed by a processing module (10), the estimation step is performed by a processing module (10), the acquisition step is performed by the detector (30), and the reception step is performed by a processing module (10). 2- The method according to protection element 1, where the generation step includes a step to correct perspective defects associated with the detector (30). 3- The method according to protection element 1, where the method includes a step to segment the image to identify the pixels containing an object. 4- The method according to protection element 1, where the identification step is performed by learning.Learning involves extracting properties, and the extracted properties are also used in the estimation step. 5- The method according to protection element 1, where the selection step is performed by minimizing the support vector regression. 6- The method according to protection element 1, where in the allocated step, the variable associated with the detector (30) is a pintrinsic property inherent to the detector (30). 7- The method according to protection element 1, where in the allocated step, the position variable for the detector and / or the orientation variable for the detector (30) are provided. 8- A computer program product that includes software instructions; software instructions that implement a method for counting objects in a predefined spatial area according to any of protection elements 1 to 7, when executed by a computer. 9- A storage medium on which a computer program product is stored; a computer program product that includes software instructions; software instructions that implement a method for counting objects in a predefined spatial area according to any of protection elements 1 to 7, when executed by a computer.10- A surveillance device capable of counting objects in a predefined spatial area (ZS) includes: - A detector (30) capable of acquiring at least one image. The image includes the predefined spatial area (ZS). The detector (30) has a variable. One variable is related to the focal length of the detector (30), another to the height of the detector (30), and a third to the tilt of the detector (30) relative to the predefined spatial area (ZS). - A processing module (10) capable of counting objects in a predefined spatial area (ZS). The processing module (10) is capable of: - Selecting a set of different spatial densities in a predefined spatial area (ZS). - Receiving variables related to the detector (30). The received variables include at least one variable related to the focal length of the detector (30), the variable related to the height of the detector (30), and the variable...Related to the inclination of the detector (30) with respect to the predefined spatial area (ZS), - generating a set of images for each selected spatial density using the received variables, and - determining a law that facilitates the estimation of spatial densities in a predefined spatial area (ZS) using the generated learning rule as a learning rule, and - estimating the spatial densities of objects in a predefined spatial area (ZS) by applying the law to the acquired image.