1. A method comprising: acquiring a two-dimensional (2D) preview image of an object, wherein the 2D preview image is obtained from a 2D camera device; processing the 2D preview image to determine a location of a code on the object; acquiring a three-dimensional (3D) image of the object, wherein the 3D image is obtained from a 3D camera device; processing the 3D image to determine depth data associated with the object; acquiring a 2D data capture image of the object based on the depth data in the processed 3D image, wherein the 2D data capture image captures the code, and wherein the 2D data capture image is obtained from the 2D camera device; and reading the code based on the 2D data capture image.