| CPC G06T 7/80 (2017.01) [G06T 7/62 (2017.01); G06T 2207/20116 (2013.01)] | 14 Claims |

|
1. A system for calculating a camera lens offset deviation comprises:
a camera module configured to be enclosed within a translucent filter, wherein the camera module is placed at a predefined distance to capture an image;
a tracing module configured to:
a trace a field of view in coverage of a camera lens wherein the field of view is obtained by capturing an image and wherein the captured image is converted into a grayscale image;
a threshold module operatively coupled with the tracing module, wherein the threshold module is configured to convert the grayscale image into a binary image by partitioning the pixel intensity difference;
a dilation module operatively coupled with the tracing module, wherein the dilation module is configured to use a translucent filter positioned in front of the camera lens for noise reduction;
a contour module plots the high-intensity pixels in the threshold image;
an extraction module extracts an external point of the lens image by applying a convex hull method, wherein the lens image is in a circle shape;
a resolution generation module configured to generate a resolution of a camera sensor and plots a reference line based on a resolution center;
a determination module operatively coupled with the extraction module and the resolution generation module, wherein the determination module is configured to:
determine a center of the circle using a fit ellipse and plot a plurality of deviation axis lines, wherein the fit ellipse is a method of applying an inverse transform to the image circle resulting in getting the elliptical fit for the original image;
compare the reference line and the plurality of deviation axis lines thereby obtaining the offset deviation based on the pixel values; and
an alert module operatively coupled to the determination module wherein the alert module is configured to alert the user about the lens offset deviation.
|