With their fascinating properties, emerging two-dimensional (2D) materials offer innovative ways to prepare high-performance infrared (IR) detectors. However, the current performance of 2D IR photodetectors is still below the requirements for practical application owing to the severe interfacial recombination, sharply raised contact resistance, and deteriorated metal conductivity at nanoscale. Here, we introduce a vertical barrier heterojunction with a structure of PtSe2/GaAs that combines the excellent optoelectronic properties of transition metal sulfides with topological semi-metals, which allows for an adjustable bandgap and high carrier mobility. The heterojunction was fabricated using the wet transfer method. The heterostructures show significant rectification behaviors and photovoltaic effects, which allow it to operate as a self-driven photodetector at zero bias. The photoresponse parameters at 850 nm with zero bias voltage are 67.2 mA W-1, 6.7 × 1012 Jones, 9.8%, 3.8 × 105, 164 μs, and 198 μs for the responsivity, specific detectivity, external quantum efficiency, Ilight/Idark ratio, rise time, and fall time, respectively. Moreover, the heterojunction is highly sensitive to a wide spectral band from ultraviolet to near-infrared (360-1550 nm). At the same time, this heterostructure demonstrates significant potential for applications in IR polarized light detection and room-temperature high-resolution IR imaging. The excellent properties of the heterojunction make it well-suited for high-performance, self-powered IR detection.