CPP_Birdtracker
A C++ object tracking program specifically for lunar bird tracking
Namespaces | Functions | Variables
fog_removal.py File Reference

A script to remove "fog" from around the moon prior to run. More...

Go to the source code of this file.

Namespaces

 fog_removal
 

Functions

def fog_removal.create_directions ()
 Create intro/directions slide for the thresholding Python script. More...
 
def fog_removal.ascii_version (in_frame)
 This is a terminal-only version of the fog removal code. More...
 
def fog_removal.ascii_proc (in_frame, thresh)
 This function does the heavy lifting for the ASCII version of this code. More...
 
def fog_removal.is_valid_file (parser, arg)
 Check if arg is a valid file that already exists on the file system. More...
 
def fog_removal.check_positive (value)
 Check that the input integer for the starting frame number is valid. More...
 
def fog_removal.get_parser ()
 Get parser object for this script. More...
 
def fog_removal.main ()
 Perform primary functions of this script. More...
 

Variables

bool fog_removal.BLACK_BACK = True
 

Detailed Description

A script to remove "fog" from around the moon prior to run.

This script uses the OpenCV highgui to allow the user to test the first frame of a video to determine the most approparite thresholding value to remove fog from the around the moon. The threshold value selected here should be used as the input value of BLACKOUT_THRESH in the settings.cfg config file. Use the terminal to run this script, as it requires the user to choose the file to be operated on using an "-f" switch.

Usage Example

python3 ./fog_removal.py -f /path/to/file.mp4

Libraries/Modules

Definition in file fog_removal.py.