Patent ID: 7742062

Claim:
An automatic resetting method using electronic means intended for a geometric model of a scene over a picture of the scene, the model and the picture of the scene being stored in the memory of an electronic device in the form of pixel matrices, the scene including fixed references with respect to the remainder of the scene, wherein the references can be detected within the matrices, the picture being taken by a camera arranged in a given zone with respect to the ground in a location of the zone and according to a shot angle determined relative to the scene, the method comprising: comparing, via the electronic means, the picture with the model having been adjusted in perspective by homography for superimposition of the references, wherein the electronic device calculates a fine homography function, H f , for resetting into at least three main phases: a first preliminary phase of determination of an average resetting homography including determining an average homography function, H m , applicable to the model with average adjustment over a sample of pictures of the scene taken previously, a second, rough resetting phase including, after application of the average homography function H m to the model, determining a rough homography function, H g , said second rough resetting phase comprising the steps of: applying an extraction process to the picture enabling, according to detection criteria, to detect in the picture matrix of the pixels which can represent references of the scene and to form a first picture reference binary matrix M rh , including horizontal contour points and a second picture reference binary matrix, M rv , including vertical contour points, calculating for each horizontal reference binary matrix, M rh , a horizontal reference distance matrix M dh , including for each element of the matrix the distance value with respect to the closest reference according to the vertical line, calculating for each vertical reference binary matrix, M rv , a vertical reference distance matrix M dv , including for each element of the matrix the distance value with respect to the closest reference according to the horizontal line, applying all the reference lines of the model to the average homographic function H m in order to produce a binary average adjusted matrix M am which is compared with the vertical M dv , and respective horizontal M dh reference distance matrices, for pixel matching purposes, and calculating a homography function H opt by regression with minimization of the medial of the square of the distance between pairs of matched pixels, identifying the pairs of pixels corresponding to non-aberrant matches, adjusting the homography function, H opt , by least a square regression calculation over all the non-aberrant pixel pairs in order to produce the rough homography H g , a third, fine resetting phase including, after application of the rough homography function H g to the model, determining a fine homography function, H f .