Skip to main content

Shadow Detection and Removal Based on Multi-task Generative Adversarial Networks

  • Conference paper
  • First Online:
Image and Graphics (ICIG 2021)

Part of the book series: Lecture Notes in Computer Science ((LNIP,volume 12890))

Included in the following conference series:

  • 2270 Accesses

Abstract

The existence of shadows is difficult to avoid in images. Also, it will affect object recognition and image understanding. But on the other hand, shadow can provide information about the light source and object shape. Therefore, accurate shadow detection and removal can contribute to many computer vision tasks. However, even the same object, its shadow will vary greatly under different lighting conditions. Thus it is quite challenging to detect and remove shadows from images. Recent research always treated these two tasks independently, but they are closely related to each other actually. Therefore, we propose a multi-task adversarial generative networks (mtGAN) that can detect and remove shadows simultaneously. In order to enhance shadow detection and shadow removal mutually, a cross-stitch unit is proposed to learn the optimal ways to fuse and constrain features between multi-tasks. Also, the combination weight of multi-task loss functions are learned according to the uncertainty distribution of each task, which is not set empirically as usual. Based on these multi-task learning strategies, the proposed mtGAN can jointly achieve shadow detection and removal tasks better than existing methods. In experiments, the effectiveness of the proposed mtGAN is shown.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 99.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 129.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Benedek, C., Szirányi, T.: Bayesian foreground and shadow detection in uncertain frame rate surveillance videos. IEEE Trans. Image Process. 17(4), 608–621 (2008)

    Article  MathSciNet  Google Scholar 

  2. Qi, M., Dai, J., Zhang, Q., Kong, J.: Cascaded cast shadow detection method in surveillance scenes. Optik-Int. J. Light Electron Opt. 125(3), 1396–1400 (2014)

    Article  Google Scholar 

  3. Finlayson, G.D., Hordley, S.D., Lu, C., Drew, M.S.: On the removal of shadows from images. IEEE Trans. Patt. Recogn. Mach. Intelli. 28(1), 59–68 (2006)

    Google Scholar 

  4. Vazquez, E., Baldrich, R., De Weijer, J.V., Vanrell, M.: Describing reflectances for color segmentation robust to shadows, highlights, and textures. IEEE Trans. Pattern Recogn. Mach. Intell. 33(5), 917–930 (2011)

    Google Scholar 

  5. Lalonde, J.-F., Efros, A.A., Narasimhan, S.G.: Detecting ground shadows in outdoor consumer photographs. In: Daniilidis, K., Maragos, P., Paragios, N. (eds.) ECCV 2010. LNCS, vol. 6312, pp. 322–335. Springer, Heidelberg (2010). https://doi.org/10.1007/978-3-642-15552-9_24

    Chapter  Google Scholar 

  6. Jiang, X., Schofield, A.J., Wyatt, J.L.: Shadow detection based on colour segmentation and estimated illumination. In: British Machine Vision Conference (BMVC), pp. 1–11 (2011)

    Google Scholar 

  7. Shen, L., Chua, T.W., Leman, K.: Shadow optimization from structured deep edge detection. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2067–2074. IEEE (2015)

    Google Scholar 

  8. Khan, S.H., Bennamoun, M., Sohel, F., Togneri, R.: Automatic shadow detection and removal from a single image. IEEE Trans. Pattern Recogn. Mach. Intell. 3, 431–446 (2016)

    Google Scholar 

  9. Zheng, Q., Qiao, X., Cao, Y., Lau, R.W.H.: Distraction-aware shadow detection. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 5167–5176 (2019)

    Google Scholar 

  10. Finlayson, G.D., Hordley, S.D., Lu, C., Drew, M.S.: On the removal of shadows from images. IEEE Trans. Pattern Recogn. Mach. Intell. 28(1), 59–68 (2006)

    Google Scholar 

  11. Gryka, M., Terry, M., Brostow, G.J.: Learning to remove soft shadows. ACM Trans. Graph. (TOG) 34(5), 153 (2015)

    Article  Google Scholar 

  12. Qu, L., Tian, J., He, S., Tang, Y., Lau, R.: DeshadowNet: a multi-context embedding deep network for shadow removal. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), no. 2, p. 3 (2017)

    Google Scholar 

  13. Yang, Q., Tan, K.-H., Ahuja, N.: Shadow removal using bilateral filtering. IEEE Trans. Image Process. 21(10), 4361–4368 (2012)

    Article  MathSciNet  Google Scholar 

  14. Barron, J.T., Malik, J.: Shape, illumination, and reflectance from shading. IEEE Trans. Pattern Recogn. Mach. Intell. 37(8), 1670–1687 (2015)

    Google Scholar 

  15. Le, H., Samaras, D.: Shadow removal via shadow image decomposition. In: International Conference on Computer Vision (ICCV) (2019)

    Google Scholar 

  16. Fu, L., Zhou, C., Guo, Q., Juefei-Xu, F., Wang, S.: Auto-exposure fusion for single-image shadow removal. In: 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (2021)

    Google Scholar 

  17. 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)

    Google Scholar 

  18. Ding, B., Long, C., Zhang, L., Xiao, C.: ARGAN: attentive recurrent generative adversarial network for shadow detection and removal. In: International Conference on Computer Vision (ICCV) (2019)

    Google Scholar 

  19. Liu, Z., Yin, H., Wu, X., Wu, Z., Mi, Y., Wang, S.: From shadow generation to shadow removal. In: 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (2021)

    Google Scholar 

  20. Long, M., Wang, J.: Learning multiple tasks with deep relationship networks. arXiv: Learning (2015)

  21. Ranjan, R., Patel, V.M., Chellappa, R.: Hyperface: a deep multi-task learning framework for face detection, landmark localization, pose estimation, and gender recognition. IEEE Trans. Pattern Recogn. Mach. Intell. 41(1), 121–135 (2019)

    Google Scholar 

  22. Cipolla, R., Gal, Y., Kendall, A.: Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 7482–7491 (2018)

    Google Scholar 

  23. He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778 (2016)

    Google Scholar 

  24. Ioffe, S., Szegedy, C.: Batch normalization: accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167D (2015)

  25. Misra, I., Shrivastava, A., Gupta, A., Hebert, M.: Cross-stitch networks for multi-task learning. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 3994–4003 (2016)

    Google Scholar 

  26. 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

    Chapter  Google Scholar 

  27. Guo, R., Dai, Q., Hoiem, D.: Single-image shadow detection and removal using paired regions. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2033–2040 (2011)

    Google Scholar 

  28. Gong, H., Cosker, D.: Interactive shadow removal and ground truth for variable scene categories. In: British Machine Vision Conference (BMVC) (2014)

    Google Scholar 

Download references

Acknowledgement

This work is partly supported by the Key Research and Development Program of Shaanxi (Program Nos. 2020GY-050, 2021ZDLGY15-01, 2021ZDLGY09-04, 2021GY-004), and Shenzhen International Science and Technology Cooperation Project (No. GJHZ20200731095204013).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Xiaoyue Jiang .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Jiang, X., Hu, Z., Ni, Y., Li, Y., Feng, X. (2021). Shadow Detection and Removal Based on Multi-task Generative Adversarial Networks. In: Peng, Y., Hu, SM., Gabbouj, M., Zhou, K., Elad, M., Xu, K. (eds) Image and Graphics. ICIG 2021. Lecture Notes in Computer Science(), vol 12890. Springer, Cham. https://doi.org/10.1007/978-3-030-87361-5_30

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-87361-5_30

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-87360-8

  • Online ISBN: 978-3-030-87361-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics