Vehicle vision system
A method of processing an image within a vehicle interior with a camera includes acquiring a live image of the vehicle interior. The live image is compared to an ideally aligned image of the vehicle interior having an associated region of interest to generate a homography matrix. The homography matrix is applied to the region of interest to generate a calibrated region of interest projected onto the live image for detecting an object therein.
1. A method of adjusting a camera within a vehicle interior, comprising:
acquiring a live image of the vehicle interior;
comparing the live image to a template image of the vehicle interior to generate a homography matrix;
determining differences between the live image and the template image in at least one degree of freedom from the homography matrix; and
adjusting at least one of a position and orientation of the camera based on the at least one degree of freedom difference.
2. The method of claim 1 , wherein the at least one degree of freedom difference comprises translation of the live image relative to the template image.
3. The method of claim 1 , wherein the at least one degree of freedom difference comprises rotation of the live image relative to the template image.
4. The method of claim 1 , wherein the step of comparing the live image to the template image comprises image matching the live image to the template image.
5. The method of claim 1 , wherein each of the at least one degree of freedom differences has a threshold range associated therewith, wherein the least one of a position and orientation of the camera is adjusted only when the degree of freedom difference is outside the associated threshold range.
6. The method of claim 1 , wherein the camera has a fixed position in the vehicle and the homography matrix reflects misalignment of the camera between taking the template image and the live image.