CropRowDetector

Qualified name: crop_row_detector.crop_row_detector.CropRowDetector

class CropRowDetector[source]

Bases: object

Methods

add_boundary_and_number_to_tile

append_to_csv_of_row_information

append_to_csv_of_row_information_global

append_to_csv_vegetation_row

apply_hough_lines

apply_top_hat

blur_image

calculate_x_and_y_sample_cords_along_crop_row

compass_degree_angle_to_hough_rad

Convert compass angles (0 north 90 east 180 south and 270 west) to radians in hough space.

convert_segmented_image_to_bw

create_csv_of_row_information

create_csv_of_row_information_global

create_data_structure_containing_crop_row

detect_crop_rows

detect_crop_rows_as_process

detect_crop_rows_on_tiles_with_process_pools

detect_crop_rows_on_tiles_with_threads

determine_dominant_direction

determine_line_ends_of_crop_rows

determine_offsets_of_crop_rows

draw_crop_row

draw_detected_crop_rows_on_image

ensure_parent_directory_exist

fill_in_gaps_in_detected_crop_rows

find_vegetation_in_crop_row

get_debug_output_filepath

get_line_ends_within_image

measure_vegetation_coverage_in_crop_row

normalize_array

plot_direction_energies

plot_direction_response_and_maximum

plot_points_without_vegetation_on_crop_row

plot_row_offset

plot_row_offset_with_peaks

prepare_csv_files

save_statistics

vegetation_row_to_csv

write_debug_image_to_file

write_debug_plot_to_file

compass_degree_angle_to_hough_rad(degree_angle)[source]

Convert compass angles (0 north 90 east 180 south and 270 west) to radians in hough space. Since the hough angle is measured in image coordinates (origin in top left corner and y going down) and the angle is to the normal of the line measured on the unit circle, correcting for this ends opp canceling each other as we can always add 180 degrees since it is a line.