Method for the detection and correction of printing defects (DF, DF2) of a digital printing device comprising the following steps: - arranging a digital printing device equipped with one or more print heads with a plurality of dispensing nozzles placed along a printing area; - arranging an optical detection system, placed next to said printing area with reference to a printing direction; - controlling said plurality of dispensing nozzles for dispensing ink onto a printing medium, relatively movable with respect to said printing area, said dispensing being performed based on a predefined ideal printing pattern comprising one or more levels of grey (L1, L2), said dispensing realizing a real printing pattern on said printing medium; - acquiring the real printing pattern through said optical detection system; - detecting at least one printing defect (DF, DF2) defined by a difference of said real printing pattern acquired by the optical detection system with respect to said ideal printing pattern; - elaborating, on board a control unit of the digital printing device, at least one compensation scheme to mask a detected printing defect (DF, DF2) - applying said compensation scheme during the realization of said real printing pattern; - after realizing the real printing pattern with the applied compensation scheme, acquiring again the real printing pattern through said optical detection system; - modifying said compensation scheme in feedback control to make the visual appearance of said real printing pattern similar to the visual appearance of said ideal printing pattern; characterized in that said feedback control step is employed to monitor in real time, during a production cycle, whether the compensation scheme defines an acceptable correction. - arranging a digital printing device equipped with one or more print heads with a plurality of dispensing nozzles placed along a printing area; - arranging an optical detection system, placed next to said printing area with reference to a printing direction; - controlling said plurality of dispensing nozzles for dispensing ink onto a printing medium, relatively movable with respect to said printing area, said dispensing being performed based on a predefined ideal printing pattern comprising one or more levels of grey (L1, L2), said dispensing realizing a real printing pattern on said printing medium; - acquiring the real printing pattern through said optical detection system; - detecting at least one printing defect (DF, DF2) defined by a difference of said real printing pattern acquired by the optical detection system with respect to said ideal printing pattern; - elaborating, on board a control unit of the digital printing device, at least one compensation scheme to mask a detected printing defect (DF, DF2) - applying said compensation scheme during the realization of said real printing pattern; - after realizing the real printing pattern with the applied compensation scheme, acquiring again the real printing pattern through said optical detection system; - modifying said compensation scheme in feedback control to make the visual appearance of said real printing pattern similar to the visual appearance of said ideal printing pattern; - elaborating, on board a control unit of the digital printing device, at least one compensation scheme to mask a detected printing defect (DF, DF2) - applying said compensation scheme during the realization of said real printing pattern; - after realizing the real printing pattern with the applied compensation scheme, acquiring again the real printing pattern through said optical detection system; - modifying said compensation scheme in feedback control to make the visual appearance of said real printing pattern similar to the visual appearance of said ideal printing pattern; characterized in that said feedback control step is employed to monitor in real time, during a production cycle, whether the compensation scheme defines an acceptable correction.