Skip to content

Python script that detects the angle of the light in any photo

License

Notifications You must be signed in to change notification settings

AeroAndZero/LAD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LAD - Light Angle Detector

Brightness Mean Algorithm

  • Normal Image :
    normal Image
  • Converted into black and white image
  • Image with only bright pixels (white mask) :
    white mask
  • Image with only dark pixels (black mask) :
    black mask
  • In both images, the average pixel is calculated
  • Output Image :
    output image
  • In above image the Green dot indicates the white mask average pixel and the Blue dot indicates average pixel of the black mask

Warning : This algorithm doesn't work 100% of the time and sometime gives wrong angle and vector. You can calculate the angle by the slope of the vector made by two points(green and blue)

About

Python script that detects the angle of the light in any photo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages