Variable depth of field scanning devices and methods
Various embodiments herein each include at least one of systems, methods, devices, barcode scanners, and software for variable depth of field scanning devices and methods. One such embodiment includes determining a distance from a known point to an item presented for scanning by a barcode scanner. This embodiment further includes adjusting a variable lens of a camera of the barcode scanner to a depth of field based on the determined distance.
1. A method comprising:
adjusting a variable lens of a camera to a first depth of field;
capturing a number of first images with the camera at the first depth of field;
outputting at least one of the number of the first images to a barcode reading process;
adjusting the variable lens of the camera to a second depth of field;
capturing a number of second images with the camera at the second depth of field;
outputting at least one of the number of the second images to a barcode reading process;
adjusting the variable lens of the camera to a third depth of field;
capturing a number of third images with the camera at the third depth of field;
outputting at least one of the number of the third images to a barcode reading process; and
restarting the method;
wherein:
the numbers of first, second, and third images are set as a configuration setting based on a frame rate of the camera divided by the number of depths of field at which images are captured;
the first, second, and third depths of field to which the variable lens is adjusted are set according to respective stored configuration settings that are read from where they are stored; and
the camera is in a fixed location.
2. The method of claim 1 , wherein the depth of field of the variable lens is adjusted by changing a voltage of an electrical current applied thereto.
3. The method of claim 2 , wherein the voltages applied to the variable lens to adjust the variable lens to the first, second, and third depths of field are identified based on data stored in a memory of a device performing the method.
4. The method of claim 1 , wherein the numbers of first, second, and third images are equal.
5. The method of claim 1 , wherein the variable lens is a variable focus lens.
6. The method of claim 5 , wherein the variable focus lens is a liquid lens.
7. The method of claim 1 , wherein the method is simultaneously and independently performed with regard to at least two cameras of a barcode scanner.
8. A barcode scanner comprising:
at least one fixed-location camera, each camera having a variable lens;
a processor;
a memory device;
a barcode reading process stored in the memory that is executable by the processor;
instructions stored on the memory device that are executable by the processor to independently perform data processing activities with regard to each of the at least one cameras to adjust respective variable lenses thereof, the data processing activities comprising:
adjusting a variable lens of a camera to a first depth of field;
capturing a number of first images with the camera at the first depth of field;
outputting at least one of the number of the first images to the barcode reading process;
adjusting the variable lens of the camera to a second depth of field;
capturing a number of second images with the camera at the second depth of field;
outputting at least one of the number of the second images to the barcode reading process;
adjusting the variable lens of the camera to a third depth of field;
capturing a number of third images with the camera at the third depth of field;
outputting at least one of the number of the third images to the barcode reading process; and
restarting the data processing activities with regard to the respective camera;
wherein:
the numbers of first, second, and third images are set as a configuration setting based on a frame rate of the camera divided by the number of depths of field at which images are captured;
the first, second, and third depths of field to which the variable lens is adjusted are set according to respective stored configuration settings that are read from where they are stored.
9. The barcode scanner of claim 8 , wherein the variable lens is a variable focus lens.
10. The barcode scanner of claim 9 , wherein the variable focus lens is a liquid lens.
11. The barcode scanner of claim 8 , wherein the numbers of first, second, and third images are set as a configuration setting stored in the memory based on a frame rate of the camera divided by the number of depths of field at which images are captured.