Development of an Automatic Pill Image Data Generation System

Healthc Inform Res. 2023 Jan;29(1):84-88. doi: 10.4258/hir.2023.29.1.84. Epub 2023 Jan 31.

Abstract

Objectives: Since the easiest way to identify pills and obtain information about them is to distinguish them visually, many studies on image processing technology exist. However, no automatic system for generating pill image data has yet been developed. Therefore, we propose a system for automatically generating image data by taking pictures of pills from various angles. This system is referred to as the pill filming system in this paper.

Methods: We designed the pill filming system to have three components: structure, controller, and a graphical user interface (GUI). This system was manufactured with black polylactic acid using a 3D printer for lightweight and easy manufacturing. The mainboard controls data storage, and the entire process is managed through the GUI. After one reciprocating movement of the seesaw, the web camera at the top shoots the target pill on the stage. This image is then saved in a specific directory on the mainboard.

Results: The pill filming system completes its workflow after generating 300 pill images. The total time to collect data per pill takes 21 minutes and 25 seconds. The generated image size is 1280 × 960 pixels, the horizontal and vertical resolutions are both 96 DPI (dot per inch), and the file extension is .jpg.

Conclusions: This paper proposes a system that can automatically generate pill image data from various angles. The pill observation data from various angles include many cases. In addition, the data collected in the same controlled environment have a uniform background, making it easy to process the images. Large quantities of high-quality data from the pill filming system can contribute to various studies using pill images.

Keywords: Automatism; Data Systems; Internet of Things; Motor Skills; Tablets.