Skip to content

Instantly share code, notes, and snippets.

@venkatavamsy
venkatavamsy / Python_OpenCV_video_read.py
Last active March 22, 2017 07:28
Python OpenCV video read
import numpy as np
import cv2
cap = cv2.VideoCapture(0)
while(True):
ret, frame = cap.read()
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
cv2.imshow('frame',gray)
/* Hash Table Implementations */
public class HashMap implements IMap {
private ListNode[] htbl;
private int size;
public HashMap() {
htbl = new ListNode[11];
for (int i = 0; i < htbl.length; ++i)
htbl[i] = new ListNode();
size = 0;