Text this: Artificial intelligence driven Mid-IR photoimaging device based on van der Waals heterojunctions of black phosphorus