# Path: src/DroneVision/DroneVision_src/imgProcessing/frameTools/frameTools.py
# def GetShape(frame):
# 	'''
# 	 @brief Get shape of frame, regardless of depth dimension.
# 
# 	 @param frame 
# 	 
# 	 return (height, width)
# 	'''
# 	return frame.shape[:2]


import os, glob
from imageTools import GetImage
from src.DroneVision.DroneVision_src.imgProcessing.frameTools.frameTools import GetShape

	def StartCamera(self):
		'''
		 @brief Method for syncronizing with the CameraLink class.
		'''
		self.OpenImage()

	def OpenImage(self):
		'''
		 @brief Initialize video 
		'''
		self.__frame_i 	= 0
		self.__n_frames = len(self.__image_filenames)
		self.GetFrame() # Get frames for property possibilities
		self.__frame_i 	= 0 #reset

	def GetTotalFrames(self):
		'''
		 @brief Get total frames in video

		 @return n_frames
		'''
		return self.__n_frames

	def GetFrameProperties(self):
		'''
		 @brief Get frame properties such as fps, width, length

		 @return fps, width, height
		'''

# Path: src/DroneVision/DroneVision_src/imgProcessing/frameTools/frameTools.py
# def GetShape(frame):
# 	'''
# 	 @brief Get shape of frame, regardless of depth dimension.
# 
# 	 @param frame 
# 	 
# 	 return (height, width)
# 	'''
# 	return frame.shape[:2]


# Path: src/DroneVision/DroneVision_src/hardware/ImageLink.py
import os, glob
from imageTools import GetImage
from src.DroneVision.DroneVision_src.imgProcessing.frameTools.frameTools import GetShape


	def StartCamera(self):
		'''
		 @brief Method for syncronizing with the CameraLink class.
		'''
		self.OpenImage()

	def OpenImage(self):
		'''
		 @brief Initialize video 
		'''
		self.__frame_i 	= 0
		self.__n_frames = len(self.__image_filenames)
		self.GetFrame() # Get frames for property possibilities
		self.__frame_i 	= 0 #reset

	def GetTotalFrames(self):
		'''
		 @brief Get total frames in video

		 @return n_frames
		'''
		return self.__n_frames

	def GetFrameProperties(self):
		'''
		 @brief Get frame properties such as fps, width, length

		 @return fps, width, height
		'''

		dim = GetShape(self.__frame)