An object of height 4cm is placed in front of a cuboid pinhole camera of…