A machine learning system and method with boosted Haar cascades for automatically detecting a rectangular region to replace it by an ad or contents from another image are disclosed. The required features and the logic for detecting rectangular regions are learnt by the system in a suitable machine learning implementation. The method follows the steps of running the pattern recognition algorithm using a Haar transformation on the pixels of an image. The algorithm identifies a first pair of parallel lines separated by a distance, and looks for a second pair of lines in a perpendicular direction to define a rectangular region, which is marked out. The marked rectangular region is then replaced by an ad or contents from another image.

Creative Commons License

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 License.