The first surviving mention of the principles behind the pinhole camera or camera obscura belongs to Mozi ( 470 to 390 BCE ) , a Chinese philosopher and the founder of Mohism .
The first mention and discovery of the principles behind the pinhole camera , a precursor to the camera obscura , belong to Mozi ( 470 BC to 390 BC ) , a Chinese philosopher and founder of Mohism .