1. A method of extracting a closed caption image from an unprocessed frame of an audio video (AV) stream, wherein the closed caption image is associated with background color value, the method comprising: for all pixels of the unprocessed frame, in response to determining that a color value of the pixel is different from the background color value, setting the color value to a determined pixel value to form a processed frame, wherein the color value is selected to be different from the background color value; determining from the processed frame a set of one or more edges within the processed frame; analyzing the set of edges to identify one or more polygons; determining from the one or more polygons, a polygon that contains text; cropping the unprocessed frame along the polygon that contains text, to obtain a closed caption image; upon determination that the closed caption image is identical to another closed caption image increasing a frame count associated with the another closed caption image by 1; and upon determination that the closed caption image is not identical to the another closed caption image storing the closed caption image along with a position of the closed caption image and a time value associated with the closed caption image as metadata information.