Development and Evaluation of a Webcam-Based Digital X-Ray Machine Detector with Variable Current and Light Intensity Settings

  • Revindo Sulthon Narendra Department of Electromedical Engineering Technology, Poltekkes Kemenkes Surabaya
  • Muhammad Ridha Mak’ruf Department of Electromedical Engineering, Poltekkes Kemenkes Surabaya, Surabaya, Indonesia
  • Triwiyanto Triwiyanto Department of Electromedical Engineering, Poltekkes Kemenkes Surabaya, Surabaya, Indonesia
  • Yassin Nimir Department Of Mechanical Engineering, College Of Engineering, Mutah University, Kerak, Jordan
Keywords: X-Ray machine, Webcam, MATLAB, MSE


X-ray images typically appear as film sheets upon development after undergoing chemical processing. To address these challenges, endeavors were undertaken to create digital X-ray detectors utilizing more cost-effective equipment. This approach involves harnessing variations in current and light intensity to discern disparities in image quality. The noteworthy contribution of this study lies in its ability to exhibit inverted images captured through webcam cameras, subject to prior image processing via the MATLAB application. The utilized measurement ranges encompass 20, 32, and 40 mA, while maintaining a fixed irradiation duration of 1 second and varying the illumination intensity across low, medium, and high levels at a constant 60kV setting. The obtained measurements reveal that the X-Ray Image Capture Device can be juxtaposed with images produced by the Philip brand Digital Radiography, evaluated through the acquired Mean Squared Error (MSE) values. The best picture in this experiment is using system parameter settings with kv of 60kV, 20mA and with low light intensity, and using the PH101 phototransitor. Conversely, the least favorable image records an MSE value of 66.4552 under 60kV 20mA conditions, employing the PH101 Phototransistor sensor and high light intensity. In summary, the outcomes of this study indicate the efficacy of the tool in capturing X-ray images


Download data is not yet available.


T. F. Morse, N. Mostovych, R. Gupta, T. Murphy, and P. Weber, “Demonstration of a high resolution x-ray detector for medical imaging,” no. December, 2018, doi: 10.1117/12.2320723.

E. T. Parks and G. F. Williamson, “Digital radiography: An overview,” J. Contemp. Dent. Pract., vol. 3, no. 4, pp. 24–36, 2002, doi: 10.5005/jcdp-3-4-23.

E. Kotter and M. Langer, “Digital radiography with large-area flat-panel detectors,” Eur. Radiol., vol. 12, no. 10, pp. 2562–2570, 2002, doi: 10.1007/s00330-002-1350-1.

H. K. Kim et al., “Performance evaluation of a flat-panel detector-based microtomography system for small-animal imaging,” IEEE Nucl. Sci. Symp. Conf. Rec., vol. 3, no. September 2014, pp. 2108–2113, 2003, doi: 10.1109/nssmic.2003.1352296.

J. K. Park, J. Y. Choi, S. S. Kang, C. W. Mun, H.-W. Lee, and S.-H. Nam, “Development and evaluation of a selenium-based flat-panel digital x-ray detector system based on quality factor,” Med. Imaging 2003 Phys. Med. Imaging, vol. 5030, no. 2003, p. 799, 2003, doi: 10.1117/12.480401.

J. A. Seibert, “Flat-panel detectors: How much better are they?,” Pediatr. Radiol., vol. 36, no. 2, pp. 173–181, 2006, doi: 10.1007/s00247-006-0208-0.

M. Koerdel et al., “Contactless inspection of flat-panel displays and detector panels by capacitive coupling,” IEEE Trans. Electron Devices, vol. 58, no. 10, pp. 3453–3462, 2011, doi: 10.1109/TED.2011.2161583.

Y. Srinivas and D. L. Wilson, “Image quality evaluation of flat panel detector binning in X-ray fluoroscopy,” Proc. - Int. Symp. Biomed. Imaging, vol. 2002-January, pp. 177–180, 2002, doi: 10.1109/ISBI.2002.1029222.

A. Hata et al., “Dynamic chest X-ray using a flat-panel detector system: Technique and applications,” Korean J. Radiol., vol. 22, no. 4, pp. 634–651, 2021, doi: 10.3348/kjr.2020.1136.

J. A. Rowlands et al., “A Flat Panel Detector for Digital Radiology Using Active Matrix Readout of Amorphous Selenium,” Med. Imaging 1997 Phys. Med. Imaging, vol. 3032, pp. 97–108, 2015, doi: 10.1117/12.273974.

L. Antonio, “Phototransistor : A Detector for X-Ray Beam Dosimetry,” Angew. Chemie Int. Ed. 6(11), 951–952., no. June, pp. 10–27, 2015.

E. Damulira, “Development of an Led Array for Dosimetry in Diagnostic Radiology,” p. 297, 2021.

Kusminarto and R. Fadela, “An X-Ray Detector Using a Fluorescent Material ZnS:Ag Attached on a Phototransistor in Darlington Configuration,” Appl. Mech. Mater., vol. 771, pp. 21–24, 2015, doi: 10.4028/

J. Ahmad and R. Yousuf, “Light Dependent Resistor (LDR) Based Low Cost Light Intensity Measurement Circuit Design (LUX Meter),” Int. J. Innov. Res. Comput. Commun. Eng. (An ISO Certif. Organ., vol. 3297, no. 6, pp. 11449–11455, 2016, doi: 10.15680/IJIRCCE.2016.

P. Zhang, Y. Tu, L. Yang, H. Tolner, and W. Zhang, “A flat panel detector,” ICOPS/BEAMS 2014 - 41st IEEE Int. Conf. Plasma Sci. 20th Int. Conf. High-Power Part. Beams, pp. 5–9, 2015, doi: 10.1109/PLASMA.2014.7012705.

P. Bernhard et al., “Construction of large-area Micro-Pattern Gaseous Detectors,” 2016 IEEE Nucl. Sci. Symp. Med. Imaging Conf. Room-Temperature Semicond. Detect. Work. NSS/MIC/RTSD 2016, vol. 2017-January, pp. 0–3, 2017, doi: 10.1109/NSSMIC.2016.8069756.

Y. Gao et al., “Ultrathin and Ultrasensitive Direct X-ray Detector Based on Heterojunction Phototransistors,” Adv. Mater., vol. 33, no. 32, pp. 1–9, 2021, doi: 10.1002/adma.202101717.

G. K. Ijemaru et al., “Image processing system using matlab-based analytics,” Bull. Electr. Eng. Informatics, vol. 10, no. 5, pp. 2566–2577, 2021, doi: 10.11591/eei.v10i5.3160.

M. P. A. Kamble, M. V. V Anagire, and M. S. N. Chamtagoudar, “CXR Tuberculosis detection using MATLAB image processing,” Int. Res. J. Eng. Technol., vol. 3, no. 6, pp. 2342–2344, 2016, [Online]. Available:

P. Shah and T. Vyas, “Interfacing of MATLAB with Arduino for Object Detection Algorithm Implementation using Serial Communication,” Pdfs.Semanticscholar.Org, vol. 3, no. 10, pp. 1067–1071, 2014, [Online]. Available:

K. Uchida, H. Watanabe, T. Aoki, K. Nakamura, and H. Nakata, “Clinical evaluation of irreversible data compression for computed radiography of the hand,” J. Digit. Imaging, vol. 11, no. 3, pp. 121–125, 2014, doi: 10.1007/BF03168735.

M. J. Yaffe and J. A. Rowlands, “X-ray detectors for digital radiography,” Phys. Med. Biol., vol. 42, no. 1, pp. 1–39, 1997, doi: 10.1088/0031-9155/42/1/001.

C. Suchato, N. Tularatrueangnam, and S. Panyawong, “Design of digital radiographic rooms for general diagnostic purposes,” Bangkok Med. J., vol. 02, no. 01, pp. 88–94, 2011, doi: 10.31524/bkkmedj.2011.09.015.

R. Kaur, R. S. Sandhu, A. Gera, and T. Kaur, “Radiograph Using Improved Morphological Gradient and MATLAB,” IEEE Nucl. Sci. Symp. Conf. Rec., pp. 793–797, 2017.

S. Susilo, P. Purwaningsih, T. Darsono, A. L. Dewi, U. A. Taufiq, and R. Setiawan, “Synchronization of a camera and x-ray tube in digital radiography system in UNNES medical physical laboratory,” J. Phys. Conf. Ser., vol. 1567, no. 4, 2020, doi: 10.1088/1742-6596/1567/4/042092.

How to Cite
R. S. Narendra, M. R. Mak’ruf, T. Triwiyanto, and Y. Nimir, “Development and Evaluation of a Webcam-Based Digital X-Ray Machine Detector with Variable Current and Light Intensity Settings”,, vol. 5, no. 4, Nov. 2023.
Research Article