Done, uploaded the python library "project2018Draft.py"
The library includes:
getFramesFromVideo( videoInputPath, outputFolderPath, milliSeconds ) - converts a video file to a set of .jpg images every milliSeconds.
getFramesFromAllVideos(videoInputPath, outputFolderPath, milliSeconds) - using the getFramesFromVideo() to convert ALL the video files into a common OutputFilePath.
getImageWidth( image ) - Gets an img as defined by cv2.imread(filePath) and returns the Width of an image.
getImageHeight( image ) - Gets an img as defined by cv2.imread(filePath) and returns the Height of an image.
getImageResolution(image) - Gets an img as defined by cv2.imread(filePath) and Returns a string of the image's Resolution, given the format: WidthXHeight.
getPixelsList( image ) - Gets an img as defined by cv2.imread(filePath) and Returns a list of pixels as defined by an image.
These functions convert an image to a black-and-white. if not given a Threshold, then the value of 120 is used.
convertImageToBlackAndWhiteByThreshold(image, Threshold)
convertImageToBlackAndWhite(image)
Done, uploaded the python library "project2018Draft.py" The library includes: getFramesFromVideo( videoInputPath, outputFolderPath, milliSeconds ) - converts a video file to a set of .jpg images every milliSeconds.
getFramesFromAllVideos(videoInputPath, outputFolderPath, milliSeconds) - using the getFramesFromVideo() to convert ALL the video files into a common OutputFilePath.
getImageWidth( image ) - Gets an img as defined by cv2.imread(filePath) and returns the Width of an image. getImageHeight( image ) - Gets an img as defined by cv2.imread(filePath) and returns the Height of an image.
getImageResolution(image) - Gets an img as defined by cv2.imread(filePath) and Returns a string of the image's Resolution, given the format: WidthXHeight.
getPixelsList( image ) - Gets an img as defined by cv2.imread(filePath) and Returns a list of pixels as defined by an image.
These functions convert an image to a black-and-white. if not given a Threshold, then the value of 120 is used. convertImageToBlackAndWhiteByThreshold(image, Threshold) convertImageToBlackAndWhite(image)
opencv tests.ipynb project2018Draft.py