'''
Created on 15.06.2017

@author: michal
'''
from videoSource import VideoSource
import cv2
class CamSource(VideoSource):
    '''
    Get frame from Camera
    '''


    def __init__(self, cam_num):
        '''
        Constructor
        '''
        super(CamSource,self).__init__()
        self.cam = cv2.VideoCapture(cam_num)
        
    def _loadFrame(self):
        frame = self.cam.read()[1] 
        return frame

a42d92e0f8e6070572ececc249c8c54014bb1673
<mask token>


class CamSource(VideoSource):
    <mask token>
    <mask token>

    def _loadFrame(self):
        frame = self.cam.read()[1]
        return frame

<mask token>


class CamSource(VideoSource):
    <mask token>

    def __init__(self, cam_num):
        """
        Constructor
        """
        super(CamSource, self).__init__()
        self.cam = cv2.VideoCapture(cam_num)

    def _loadFrame(self):
        frame = self.cam.read()[1]
        return frame

<mask token>


class CamSource(VideoSource):
    """
    Get frame from Camera
    """

    def __init__(self, cam_num):
        """
        Constructor
        """
        super(CamSource, self).__init__()
        self.cam = cv2.VideoCapture(cam_num)

    def _loadFrame(self):
        frame = self.cam.read()[1]
        return frame

<mask token>
from videoSource import VideoSource
import cv2


class CamSource(VideoSource):
    """
    Get frame from Camera
    """

    def __init__(self, cam_num):
        """
        Constructor
        """
        super(CamSource, self).__init__()
        self.cam = cv2.VideoCapture(cam_num)

    def _loadFrame(self):
        frame = self.cam.read()[1]
        return frame

'''
Created on 15.06.2017

@author: michal
'''
from videoSource import VideoSource
import cv2
class CamSource(VideoSource):
    '''
    Get frame from Camera
    '''


    def __init__(self, cam_num):
        '''
        Constructor
        '''
        super(CamSource,self).__init__()
        self.cam = cv2.VideoCapture(cam_num)
        
    def _loadFrame(self):
        frame = self.cam.read()[1] 
        return frame
