Automatic Black-Frame Detection in Edited Video Using RGB Histogram Oscillation and GUI-Based Visualization

Authors

  • Shohruh Begmatov Department of Systematic and Applied Programming, Tashkent University of Information Technologies named after Muhammad al-Khwarizmi, Uzbekistan
  • Mukhriddin Arabboev Department of Systematic and Applied Programming, Tashkent University of Information Technologies named after Muhammad al-Khwarizmi, Uzbekistan
  • Anastasiya Puziy Department of Television and Radio Broadcasting Systems, Tashkent University of Information Technologies named after Muhammad al-Khwarizmi, Uzbekistan

DOI:

https://doi.org/10.15575/join.v11i2.1699

Keywords:

Black-Frame Detection , GUI Application , RGB Histogram, Television Broadcasting , Video Quality Control

Abstract

This paper presents a real-time desktop application for detecting black-frame errors in edited video materials using RGB histogram oscillation. The software targets television broadcasting workflows, in which edited footage is typically inspected manually before going on air, making the inspection process time-consuming and prone to human error. The proposed approach automates a key step of this quality-control procedure: the automatic detection and localisation of unintended black frames in pre-edited content. The tool, implemented in Python with OpenCV and Tkinter, processes video files frame by frame, computes per-channel colour histograms, and classifies frames as normal or black based on histogram stability and oscillation criteria. The algorithm is training-free and non-destructive: it does not modify normal frames but only flags those exhibiting black-frame characteristics. Consequently, there is no need to compute full-reference image-quality metrics such as PSNR or SSIM, because the visual quality of non-black frames remains unchanged. The application supports frame visualisation, RGB histogram display, and direct navigation to detected black frames through a user-friendly GUI. To validate its effectiveness, six edited video files of varying resolutions (640×480 to 1920×1080) and durations were analysed, totalling 10,540 frames. The system successfully detected 155 black frames across these videos, confirming its usefulness as a support tool for broadcast-quality control. The proposed solution demonstrates practical potential for TV production workflows, video-integrity diagnostics, and educational laboratories. It can be extended in future work to address other frame-level defects and to enable additional quality-control automation.

 

References

[1] U. Sara, M. Akter, and M. S. Uddin, “Image Quality Assessment through FSIM, SSIM, MSE and PSNR—A Comparative Study,” J. Comput. Commun., vol. 7, no. 3, pp. 8–18, 2019, doi: 10.4236/jcc.2019.73002.

[2] M. Arabboev, S. Begmatov, M. Rikhsivoev, K. Nosirov, and S. Saydiakbarov, “A Comprehensive Review of Image Super-Resolution Metrics: Classical and AI-Based Approaches,” Acta IMEKO, vol. 13, no. 1, pp. 1–8, 2024.

[3] K. Ding, K. Ma, S. Wang, and E. P. Simoncelli, “Comparison of Full-Reference Image Quality Models for Optimization of Image Processing Systems,” Int. J. Comput. Vis., vol. 129, no. 4, pp. 1258–1281, 2021, doi: 10.1007/s11263-020-01419-7.

[4] C. A. B. Mello, M. M. Saraiva, D. P. A. Menor, and R. Nishihara, “A comparative study of objective video quality assessment metrics,” J. Univers. Comput. Sci., vol. 23, no. 5, pp. 505–527, 2017, [Online]. Available: https://www.jucs.org/jucs_23_5/a_comparative_study_of.html

[5] D. Varga, “No-Reference Video Quality Assessment Using the Temporal Statistics of Global and Local Image Features,” Sensors, vol. 22, no. 24, p. 9696, 2022, doi: 10.3390/s22249696.

[6] A. M. Ariska and T. M. Kusuma, “No-Reference Video Quality Assessment Based on the DOVER Framework Using a Transfer Learning Method,” J. ELTIKOM, vol. 9, no. 1, pp. 23–34, 2025, doi: 10.31961/eltikom.v9i1.1398.

[7] Q. Hou, A. Ghildyal, and F. Liu, “A Perceptual Quality Metric for Video Frame Interpolation,” in Computer Vision – ECCV 2022, 2022, pp. 234–253. doi: 10.1007/978-3-031-19784-0_14.

[8] S. Dost, F. Saud, M. Shabbir, M. G. Khan, M. Shahid, and B. Lovstrom, “Reduced reference image and video quality assessments: review of methods,” EURASIP J. Image Video Process., vol. 2022, p. 1, 2022, doi: 10.1186/s13640-021-00578-y.

[9] C. Wu, S. Shao, C. Tunc, P. Satam, and S. Hariri, “An explainable and efficient deep learning framework for video anomaly detection,” Cluster Comput., vol. 25, no. 4, pp. 2715–2737, 2022, doi: 10.1007/s10586-021-03439-5.

[10] H. Huang, B. Zhao, F. Gao, P. Chen, J. Wang, and A. Hussain, “A Novel Unsupervised Video Anomaly Detection Framework Based on Optical Flow Reconstruction and Erased Frame Prediction,” Sensors, vol. 23, no. 10, p. 4828, 2023, doi: 10.3390/s23104828.

[11] S. Anoopa and A. Salim, “Survey on Anomaly Detection in Surveillance Videos,” Mater. Today Proc., vol. 58, pp. 162–167, 2022, doi: 10.1016/j.matpr.2022.01.171.

[12] H.-T. Duong, V.-T. Le, and V. T. Hoang, “Deep Learning-Based Anomaly Detection in Video Surveillance: A Survey,” Sensors, vol. 23, no. 11, p. 5024, 2023, doi: 10.3390/s23115024.

[13] Z. Zhang, H. Feng, S. Pan, M. Yi, and H. Lu, “Missing Frame Detection of Surveillance Videos Based on Deep Learning in Forensic Science,” in Proceedings of the 2020 6th International Conference on Computing and Artificial Intelligence, 2020, pp. 298–304. doi: 10.1145/3404555.3404576.

[14] H. Ren, W. Atwa, H. Zhang, S. Muhammad, and M. Emam, “Frame duplication forgery detection and localization algorithm based on the improved levenshtein distance,” Sci. Program., vol. 2021, p. 5595850, 2021, doi: 10.1155/2021/5595850.

[15] R. R. R. Rao, S. Göring, and A. Raake, “Enhancement of pixel-based video quality models using meta-data,” in Electronic Imaging, 2021, p. 264. doi: 10.2352/ISSN.2470-1173.2021.9.IQSP-264.

[16] I. Bakurov, M. Buzzelli, R. Schettini, M. Castelli, and L. Vanneschi, “Structural similarity index (SSIM) revisited: A data-driven approach,” Expert Syst. Appl., vol. 189, p. 116087, 2022, doi: 10.1016/j.eswa.2021.116087.

[17] J. B. Du, G. P. Mayuga, and M. L. Guico, “Performance evaluation and integration of distortion mitigation methods for fisheye video object detection,” Int. J. Adv. Appl. Sci., vol. 13, no. 3, pp. 743–758, 2024, doi: 10.11591/ijaas.v13.i3.pp743-758.

[18] N. Ranjan, S. Bhandari, Y. C. Kim, and H. Kim, “Video Frame Prediction by Joint Optimization of Direct Frame Synthesis and Optical-Flow Estimation,” Comput. Mater. Contin., vol. 75, no. 2, pp. 2615–2639, 2023, doi: 10.32604/cmc.2023.026086.

[19] I. S. Kwak, J. Z. Guo, A. Hantman, K. Branson, and D. Kriegman, “Detecting the starting frame of actions in video,” in 2020 IEEE Winter Conference on Applications of Computer Vision (WACV), 2020, pp. 478–486. doi: 10.1109/WACV45572.2020.9093405.

[20] D. Fedasyuk, R. Lukomskyi, and T. Marusenkova, “Method for visual video defects detection using machine learning,” in CEUR Workshop Proceedings, 2021, pp. 87–96. [Online]. Available: https://ceur-ws.org/Vol-2864/paper8.pdf

[21] M. Rajan and L. Parameswaran, “Key frame extraction algorithm for surveillance videos using an evolutionary approach,” Sci. Rep., vol. 15, no. 1, p. 536, 2025, doi: 10.1038/s41598-024-84324-0.

[22] C. I. Patel, D. Labana, S. Pandya, K. Modi, H. Ghayvat, and M. Awais, “Histogram of oriented gradient-based fusion of features for human action recognition in action video sequences,” Sensors, vol. 20, no. 24, p. 7299, 2020, doi: 10.3390/s20247299.

[23] T. Rabie, M. Baziyad, R. Sani, T. Bonny, and R. Fareh, “Color Histogram Contouring: A New Training-Less Approach to Object Detection,” Electronics, vol. 13, no. 13, p. 2522, 2024, doi: 10.3390/electronics13132522.

[24] D. Singh and A. Shrivastava, “Analysis of Video Streaming based on Canny Edge Detection Algorithm,” Int. J. Electr. Electron. Comput. Eng., vol. 8, no. 1, pp. 50–54, 2019, [Online]. Available: https://www.researchtrend.net/ijeece/pdf/Analysis of Video Streaming Based on Canny Edge Detection Algorithm DEEP SINGH %26 AMIT SHRIVASTAVA.pdf

[25] H. A. Jasim, L. E. George, and M. I. Abd-almajied, “Frame-Based Change Detection Using Histogram and Threshold to Separate Moving Objects from Dynamic Background,” Iraqi J. Sci., vol. 65, no. 7, pp. 4139–4148, 2024, doi: 10.24996/ijs.2024.65.7.46.

[26] J. Hoefer et al., “A Pixel Histogram-Based Safety Mechanism and Fault Detection Methodology for a Robust Image Signal Processor,” in Proceedings of the Great Lakes Symposium on VLSI 2025, 2025, pp. 704–711. doi: 10.1145/3716368.3735208.

Downloads

Published

2026-12-05

Issue

Section

Article

Citation Check