The utility model discloses a shading type diaphragm photoelectric deviation rectifying sensor which comprises an outer box body, a photosensitive
diode matrix, a passing roller and a
light source. A passing roller is mounted in the outer box body, a photosensitive
diode matrix is arranged in the passing roller, and a
light source corresponding to the photosensitive
diode matrix is arranged at the top of the inner side of the outer box body; and the diaphragm penetrates through the outer box body, penetrates through the space between the photosensitive
diode matrix and the
light source, and finally penetrates out of the outer box body. The photosensitive
diode matrix is arranged in the transparent passing roller, the light source is arranged at the position, corresponding to the photosensitive diode, of the outer box body, the shading amount of the diaphragm is detected through cooperation of the photosensitive diode and the light source, and the change value of the corresponding
voltage is output to the deviation correction executing mechanism of the diaphragm; by adopting the mode, the position
offset distance of the diaphragm material can be accurately measured, the misjudgment risk caused by collapse of the edge of the diaphragm is avoided, the
photoelectric sensor is not limited by the thickness of the diaphragm, and a basis is provided for application and production of the diaphragm with lower thickness.