Skip to main content

Sunshine Hours and Sunlight Direction Using Shadow Detection in a Video

  • Conference paper
  • First Online:
  • 2632 Accesses

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

Abstract

Previous systems used location information like GPS and the Suns location to detect sun light. However how much sunshine an area gets depends on its surround environment too, for instance we seldom get sunshine under a big tree or near a big building. So, we propose estimating sunshine hour just with a video by using image processing. We also calculate sunlight moving direction. One day outdoor video such as backyard, park or forest is processed to measure sunshine hour for every pixel to determine location of sunniest area. Shadow detection based on an algorithm using LAB color space where a difference in the light channel L is compared to neighbours to determine shadow. We improved this common algorithm by using adaptive threshold based on histogram of each frame of the video to overcome difficulty in tree and leaves shadow detection during sunset scene. We have tested 8 videos and the shadow detection rate has been improved to 93.04 from 85.34 by previously published algorithm. Then we use resultant image showing amount of sunlight on each pixel to obtain the sunshine hours. In addition, we calculate a sun direction from these images by using tracking algorithm for shadow movement.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.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

Learn about institutional subscriptions

References

  1. Light Trac. http://www.lighttracapp.com/

  2. Sun Surveyor. http://www.sunsurveyor.com/

  3. Sun Seeker. http://www.ozpda.com

  4. SunCalc. http://suncalc.net/

  5. Jacques Jr., J.C.S., Jung, C.R., Musse, S.R.: Background subtraction and shadow detection in grayscale video sequences. In: Proceedings of SIBGRAPI, Natal, Brazil, pp. 189–196. IEEE Press (2005)

    Google Scholar 

  6. Tian, Y.L., Lu, M., Hampapur, A.: Robust and efficient foreground analysis for real-time video surveillance. IEEE Comput. Vis. Pattern Recognit. 1, 1182–1187 (2005)

    Google Scholar 

  7. Zhang, W., Fang, X.Z., Yang, X.: Moving cast shadows detection based on ratio edge. In: IEEE International Conference on Pattern Recognition, pp. 763–766, November 2006

    Google Scholar 

  8. Xu, D., Li, X., Liu, Z., Yuan, Y.: Cast shadow detection in video segmentation. Pattern Recognit. Lett. 26(1), 5–26 (2005)

    Article  Google Scholar 

  9. Murali, S., Govindan, V.K.: Shadow detection and removal from a single image using LAB color space. Cybern. Inf. Technol. 13(1) (2013). ISSN: 1314-4081

    Google Scholar 

  10. Prati, A., Mikic, I., Trivedi, M.M., Cucchiara, R.: Detecting moving shadows: algorithms and evaluation. IEEE Trans. Pattern Anal. Mach. Intell. 25(7), 918–923 (2003). doi:10.1109/TPAMI.2003.1206520

    Article  Google Scholar 

  11. Wu, Q., Zhang, W., Vijaya Kumar, B.V.K.: Strong shadow removal via patch-based shadow edge detection. In: 2012 IEEE International Conference on Robotics and Automation, Saint Paul, MN, pp. 2177–2182 (2012)

    Google Scholar 

  12. Benedek, C., Sziranyi, 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 

  13. Cucchiara, R., Grana, C., Piccardi, M., Prati, A.: Detecting objects, sahdows and ghosts in video streams by exploiting color and motion information. In: Proceedings of the IEEE International Conference on Image Analysis and Processing (2001, to appear)

    Google Scholar 

  14. Salvador, E., Cavallaro, A., Ebrahimi, T.: Cast shadow segmentation using invariant color features. Comput. Vis. Image Underst. 95(2), 238–259 (2004)

    Article  Google Scholar 

  15. Mikic, I., Cosman, P., Kogut, G., Trivedi, M.M.: Moving Shadow and Object Detection in Traffic Scenes. In: Proceedings of the International Conference on Pattern Recognition, vol. 1, pp. 321–324, September 2000

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Palak Bansal .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer International Publishing AG

About this paper

Cite this paper

Bansal, P., Sun, C., Lee, WS. (2017). Sunshine Hours and Sunlight Direction Using Shadow Detection in a Video. In: Karray, F., Campilho, A., Cheriet, F. (eds) Image Analysis and Recognition. ICIAR 2017. Lecture Notes in Computer Science(), vol 10317. Springer, Cham. https://doi.org/10.1007/978-3-319-59876-5_26

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-59876-5_26

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-59875-8

  • Online ISBN: 978-3-319-59876-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics