Skip to content

Instantly share code, notes, and snippets.

View SetiZ's full-sized avatar

Mehdi SetiZ

View GitHub Profile
{
"meta": {
"theme": "onepage-plus"
},
"basics": {
"name": "Mehdi Fekih",
"label": "Chief Technology Officer",
"image": "",
"email": "mehdi.fekih@gmail.com",
"summary": "",
import cv2
import imutils
import time
import numpy as np
class VideoCamera(object):
def __init__(self, flip = False):
self.vs = cv2.VideoCapture(0)
self.flip = flip
time.sleep(2.0)
// get one
exports.getSomething = function (req, res) {
return Something.findOne({_id : req.params.somethingId}, function (err, something){
if (!err)
return res.send(something);
else
return console.log(err);
})
}