Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/h/e/HeadTracker-HEAD/frame_grabber.py   HeadTracker(Download)
    def setFrameRate(self, i_frame_rate):
        cv.highgui.cvSetCaptureProperty(  self._FrameGrabber__capture_device,  cv.highgui.CV_CAP_PROP_FPS, i_frame_rate)
 
    def setFrameSize(self, i_width, i_height):
        cv.highgui.cvSetCaptureProperty( self._FrameGrabber__capture_device,  cv.highgui.CV_CAP_PROP_FRAME_WIDTH, i_width)

src/v/i/videoShot-0.0.1/videoShot/shotVideo.py   videoShot(Download)
from opencv.highgui import cvCreateFileCapture, cvQueryFrame, cvSaveImage, cvGetCaptureProperty, CV_CAP_PROP_FPS
from opencv.cv import cvCloneImage
from opencv.adaptors import Ipl2PIL
from imageManipulation import ImageManipulation
from policies import  HistogramPolicy
    def shotDetect(self,queue, capture, sensitivity, number_frame, frames_bloc, file_name, file_name_save, file_video_save, ncpu, ncpus): 
        self.number_frame = number_frame
        self.fps = cvGetCaptureProperty(capture, CV_CAP_PROP_FPS)
        histogramPolicy  = HistogramPolicy()
        imageManipulation = ImageManipulation()

src/v/i/videoShot-0.0.1/videoShot/videoSegmentation.py   videoShot(Download)
import Image
from cutVideo import CutVideo
from opencv.highgui import cvSaveImage, cvGetCaptureProperty, CV_CAP_PROP_FRAME_COUNT, CV_CAP_PROP_FPS, cvQueryFrame
from multiprocessing import Process, cpu_count, Queue
 
    capture = init_extract.createCapture(file_input_name)
    video_duration = get_video_duration(ogg_video_path)
    fps = cvGetCaptureProperty(capture, CV_CAP_PROP_FPS)
    total_frames = round(video_duration * fps, 0)
    frames_bloc = int(total_frames / ncpus)