A volume measuring apparatus (1) having a first camera (11), a second camera (12), an emitting unit (14) and a processing unit (10) is disclosed. The processing unit (10) controls the emitting unit (14) to emit invisible structure light, and controls the first and second camera (11,12) to capture a left image (41) and a right image (42) both containing a target box (3). The processing unit (10) generates a depth graph (5) according to the left and right image (41,42), and scans the depth graph (5) through multiple scanning lines (61,62) for determining a middle line (31), an bottom line (32), a left-sideline (33), and a right-sideline (34) of the target-box (3) in the depth graph (5). The processing unit (10) performs scanning, within a range of the middle line (31), the bottom line (32), the left-sideline (33), and the right-sideline ()34, for obtaining a plurality of width information, height information, and length information. The processing unit (10) computes the volume related data of the target box (3) according to the plurality of width information, height information, and length information. |