NIRF utilizes fluorescent dyes or probes that emit light in the near-infrared spectrum when excited by a specific wavelength of light. These dyes are injected into the body, where they accumulate in target tissues, such as tumors. When illuminated with near-infrared light, the dyes emit fluorescence that can be detected and visualized using specialized cameras and software.