Patent attributes
According to one embodiment, the image forming apparatus includes a storage unit, an image forming unit, a first electrode, a second electrode, a to-be-detected unit, a moving unit, a measuring unit, and a processor. The storage unit stores a recording material. The image forming unit forms an image with the recording material supplied from the storage unit. The to-be-detected unit is in the storage unit and is movable so that at least one of the distance to the first electrode and the distance to the second electrode changes. The moving unit moves the to-be-detected unit in the storage unit. The measuring unit measures the capacitance between the first electrode and the second electrode. The processor controls the image forming unit based on the abnormality detected based on the capacitance.