At present, for inorganic photochromic materials, the single function limits their application level in the field of optical storage and anti-counterfeiting. Generally, the reversible modulation of photoluminescence is achieved through a photochromic process, thereby improving the ability of the photochromic material to store information. Here, we designed a Sm3+ doped perovskite oxide (SrZrO3:Sm3+) inorganic photochromic material. Combined with its red photoluminescence and photochromic properties, it can realize dual information storage and recognition functions. The fluorescence regulation function is realized by the doping of Sm3+, which is conducive to the application in the direction of optical switch. The mechanism of photoluminescence and photochromism was studied. Finally, a flexible film with SrZrO3:Sm3+ material was fabricated to demonstrate rewritable optical recording and storage and reading of dual optical information.