In this article we propose a new method to calibrate directly the camera by which it was taken an image of a cuboid, and to
find at the same time the orientation and side lengths of the cuboid. This is a highly non-linear optimization problem that
is solved directly using a heuristic called differential evolution. We show in this paper that this problem is very difficult
if one tries to solve it with a conventional scalar optimization procedure. Although differential evolution is a heuristic,
we find valid results in 100% of the executions. We test our method with synthetic and real images.
Keywords Camera calibration - 3D modeling - Differential evolution - Non-linear optimization