An apparatus comprising: at least one image capturing unit to capture one or more images of a fabric; a control unit configured to: perform one or more image processing techniques on the one or more images of the fabric to determine regions that have one or more variations in texture, color, pattern, depth and/or intensity; generate a first control signal upon detecting a region of stain in the fabric based on the image processing of the one or more images of the fabric, wherein the first control signal activates an ejecting unit in the apparatus; and detect a type of the stain in the region of stain based on the one or more images of the fabric; and a cleaning unit comprising: a container to store one or more cleaning agents; the ejecting unit to apply one or more of the one or more cleaning agents on to the region of stain based on the first control signal and the type of stain; and a motorized wiper and a motorized sucking mechanism to remove a stain from the region of stain using the one or more of the one or more cleaning agents, wherein at least one of the motorized wiper and the motorized sucking mechanism are activated based on the type of stain. at least one image capturing unit to capture one or more images of a fabric; a control unit configured to: perform one or more image processing techniques on the one or more images of the fabric to determine regions that have one or more variations in texture, color, pattern, depth and/or intensity; generate a first control signal upon detecting a region of stain in the fabric based on the image processing of the one or more images of the fabric, wherein the first control signal activates an ejecting unit in the apparatus; and detect a type of the stain in the region of stain based on the one or more images of the fabric; and perform one or more image processing techniques on the one or more images of the fabric to determine regions that have one or more variations in texture, color, pattern, depth and/or intensity; generate a first control signal upon detecting a region of stain in the fabric based on the image processing of the one or more images of the fabric, wherein the first control signal activates an ejecting unit in the apparatus; and detect a type of the stain in the region of stain based on the one or more images of the fabric; and a cleaning unit comprising: a container to store one or more cleaning agents; the ejecting unit to apply one or more of the one or more cleaning agents on to the region of stain based on the first control signal and the type of stain; and a motorized wiper and a motorized sucking mechanism to remove a stain from the region of stain using the one or more of the one or more cleaning agents, wherein at least one of the motorized wiper and the motorized sucking mechanism are activated based on the type of stain. a container to store one or more cleaning agents; the ejecting unit to apply one or more of the one or more cleaning agents on to the region of stain based on the first control signal and the type of stain; and a motorized wiper and a motorized sucking mechanism to remove a stain from the region of stain using the one or more of the one or more cleaning agents, wherein at least one of the motorized wiper and the motorized sucking mechanism are activated based on the type of stain.