Abstract
Shadow removal from images and videos is an essential task in computer vision that concentrates on detecting the shadow generated by the obstructed light source, and obtains realistic shadow-free results. In this paper, we present a method based on generative adversarial networks (GANs) for shadow removal by supervised learning. Specifically, we train two generators and two discriminators to learn the mapping between shadow and shadow-free image domains. We employ generative adversarial constraints with cycle consistency and content constraints to learn the mapping efficiently. We also propose an adaptive exposure correction module to handle the over-exposure problem in the shadow area of the result. We additionally present a method for improving the quality of benchmark datasets and eventually achieving better shadow removal results. We also show ablation studies to analyze the importance of the ground-truth data with the adaptive exposure correction module in the proposed framework and explore the impact of using different learning strategies in the presented method. We validate the approach on the available large-scale benchmark Image Shadow Triplets dataset (ISTD), and show quantitative and visual improvements in the state-of-the-art results.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Goodfellow, I., et al.: Generative adversarial nets. In: Advances in Neural Information Processing Systems, vol. 27, pp. 2672–2680 (2014)
Russakovsky, O., et al.: Imagenet large scale visual recognition challenge. Int. J. Comput. Vision (IJCV) 115(3), 211–252 (2015)
Bansal, N., Akashdeep, Aggarwal, N.: Deep learning based shadow detection in images. In: Krishna, C., Dutta, M., Kumar, R. (eds.) Proceedings of 2nd International Conference on Communication, Computing and Networking. LNNS, pp. 375–382. Springer, Singapore (2019). https://doi.org/10.1007/978-981-13-1217-5_37
Fan, H., Han, M., Li, J.: Image shadow removal using end-to-end deep convolutional neural networks. Appl. Sci. (2019)
Gong, H., Cosker, D.: Interactive shadow removal and ground truth for variable scene categories. In: Proceedings of the British Machine Vision Conference (2014)
Guo, R., Dai, Q., Hoiem, D.: Paired regions for shadow detection and removal. IEEE Trans. Pattern Anal. Mach. Intell. 35(12), 2956–2967 (2013)
Hu, X., Fu, C., Zhu, L., Qin, J., Heng, P.: Direction-aware spatial context features for shadow detection and removal. IEEE Trans. Pattern Anal. Mach. Intell. 42(11), 2795–2808 (2020)
Hu, X., Jiang, Y., Fu, C., Heng, P.: Mask-ShadowGAN: learning to remove shadows from unpaired data. In: IEEE International Conference on Computer Vision (ICCV), pp. 2472–2481 (2019)
Isola, P., Zhu, J., Zhou, T., Efros, A.A.: Image-to-image translation with conditional adversarial networks. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1125–1134 (2017)
Johnson, J., Alahi, A., Fei-Fei, L.: Perceptual losses for real-time style transfer and super-resolution. In: Leibe, B., Matas, J., Sebe, N., Welling, M. (eds.) ECCV 2016. LNCS, vol. 9906, pp. 694–711. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-46475-6_43
Khan, S.H., Bennamoun, M., Sohel, F., Togneri, R.: Automatic feature learning for robust shadow detection. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1939–1946 (2014)
Khan, S.H., Bennamoun, M., Sohel, F., Togneri, R.: Automatic shadow detection and removal from a single image. IEEE Trans. Pattern Anal. Mach. Intell. 38(3), 431–446 (2016)
Khare, M., Srivastava, R.K., Khare, A.: Object tracking using combination of Daubechies complex wavelet transform and Zernike moment. Multimedia Tools Appl. 76(1), 1247–1290 (2017)
Kingma, D.P., Ba, J.: Adam: a method for stochastic optimization. arXiv:1412.6980 (2014)
Mirza, M., Osindero, S.: Conditional generative adversarial nets. arXiv:1411.1784 (2014)
Nagae, T., Abiko, R., Yamaguchi, T., Ikehara, M.: Shadow detection and removal using GAN. In: Proceedings of 28th European Signal Processing Conference (EUSIPCO), pp. 630–634 (2021)
Nguyen, V., Vicente, T.F.Y., Zhao, M., Hoai, M., Samaras, D.: Shadow detection with conditional generative adversarial networks. In: IEEE International Conference on Computer Vision (ICCV), pp. 4510–4518 (2017)
Otsu, N.: A threshold selection method from gray-level histograms. IEEE Trans. Syst. Man Cybern. 9(1), 62–66 (1979)
Qu, L., Tian, J., He, S., Tang, Y., Lau, R.W.: DeshadowNet: a multi-context embedding deep network for shadow removal. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4067–4075 (2017)
Redmon, J., Divvala, S., Girshick, R., Farhadi, A.: You only look once: unified, real-time object detection. In: IEEE Conference on Computer vision and Pattern Recognition (CVPR), pp. 779–788 (2016)
Sanin, A., Sanderson, C., Lovell, B.C.: Shadow detection: a survey and comparative evaluation of recent methods. Pattern Recogn. 45(4), 1684–1695 (2012)
Scikit-learn: https://scikit-learn.org/stable/
ST-CGAN: https://github.com/IsHYuhi/ST-CGAN_Stacked_Conditional_Gen-erative_Adversarial_Networks
Tan, C., Feng, X.: Unsupervised shadow removal using target consistency generative adversarial network. arXiv:2010.01291 (2020)
Vicente, T.F.Y., Hou, L., Yu, C.-P., Hoai, M., Samaras, D.: Large-scale training of shadow detectors with noisily-annotated shadow examples. In: Leibe, B., Matas, J., Sebe, N., Welling, M. (eds.) ECCV 2016. LNCS, vol. 9910, pp. 816–832. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-46466-4_49
Wang, B., Chen, C.L.P.: An effective background estimation method for shadows removal of document images. In: IEEE International Conference on Image Processing (ICIP), pp. 3611–3615 (2019)
Wang, J., Li, X., Yang, J.: Stacked conditional generative adversarial networks for jointly learning shadow detection and shadow removal. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1788–1797 (2018)
Yang, Q., Tan, K., Ahuja, N.: Shadow removal using bilateral filtering. IEEE Trans. Image Process. 21(10), 4361–4368 (2012)
Yao, K., Dong, J.: Removing shadows from a single real-world color image. In: IEEE International Conference on Image Processing (ICIP), pp. 3129–3132 (2009)
Zhu, J., Park, T., Isola, P., Efros, A.A.: Unpaired image-to-image translation using cycle-consistent adversarial networks. In: IEEE International Conference on Computer Vision (ICCV), pp. 2223–2232 (2017)
Acknowledgements
This work was supported by the Science and Engineering Research Board (SERB), Department of Science and Technology (DST), New Delhi, India, under Grant No. CRG/2020/001982.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Mehta, K., Khare, M., Hati, A. (2023). Integration of GAN and Adaptive Exposure Correction for Shadow Removal. In: Gupta, D., Bhurchandi, K., Murala, S., Raman, B., Kumar, S. (eds) Computer Vision and Image Processing. CVIP 2022. Communications in Computer and Information Science, vol 1777. Springer, Cham. https://doi.org/10.1007/978-3-031-31417-9_13
Download citation
DOI: https://doi.org/10.1007/978-3-031-31417-9_13
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-31416-2
Online ISBN: 978-3-031-31417-9
eBook Packages: Computer ScienceComputer Science (R0)