Module my_autopylot.images39
Functions
def camera_capture_image(folder_path='', file_name='')
-
Description
Capture an image from the camera and save it to the given folder path.
Args
folder_path
:str
- The folder path to save the image.
file_name
:str
- The file name to save the image.
Returns
[status] status (bool): Whether the function is successful or failed.
def crop_document_from_image(input_image_path='', output_folder_path='')
def crop_document_from_image_folder(input_folder_path='', output_folder_path='')
-
Description
crops out the document from the image. by cropping out the biggest contour and applying the transformation from the folder
Args
input_folder_path
:str
- The path of the folder where the images are present
output_folder_path
:str
- The path of the folder where the output image will be saved
Returns
[bool,List]
- Whether the function is successful or failed. and the list of the images that are processed
def enhance_the_image_document(input_image_path='', output_folder_path='')
-
Description
Crops out the document from the image. by cropping out the biggest contour and applying the transformation from the folder
Args
input_folder_path
:str
- The path of the folder where the images are present
output_folder_path
:str
- The path of the folder where the output image will be saved
Returns
[bool,List]
- Whether the function is successful or failed. and the list of the images that are processed