- What is virtualization ?
There are 4 types
- hardware virtualization : When VM is directly installed on a machine
- operating system virtualization : When VM is directly installed on the host OS
- server virtualization :
- storage virtualization : Where physical storage is abstracted through another interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Opencv Image Cropper | |
Commands: | |
s : Overwrite & Save image | |
left-arrow : previous | |
right-arrow : next | |
''' | |
import cv2 | |
import glob |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by kushal | |
* | |
* Usage : | |
* To access local system webcam on the internet/ | |
* Couple of points to be remembered: | |
* | |
* - Accessing the webcam using HTML5 and JS requires permission from | |
* the browser. The url of the file has to be a valid one. Url such as file:/// in your browser will not permit the browser to access local webcam. | |
* - Whereas, an http or https url will surely make a paved way for it. Hence, while developing, one can use Xampp, Wamp or the LAMP Stack. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Camera Feed : Color Tracking</title> | |
<!--load css ... use bootstrap--> | |
<link href="../../dependencies/css/bootstrap.css" rel="stylesheet"> | |
<script src="watch_video.js"></script> | |
</head> | |
<body bgcolor="#bdb76b"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
layer { | |
name: "data" | |
type: "Python" | |
top: "data" | |
top: "label" | |
python_param { | |
module: "voc_layers" | |
layer: "SBDDSegDataLayer" | |
param_str: "{\'sbdd_dir\': \'../../data/sbdd/dataset\', \'seed\': 1337, \'split\': \'train\', \'mean\': (104.00699, 116.66877, 122.67892)}" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CaltechNET" | |
layer { | |
name: "data" | |
type: "Data" | |
top: "data" | |
top: "label" | |
include { | |
phase: TRAIN | |
} | |
transform_param { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
check out http://kushalvyas.github.io/gen_8Q.html#gen_8Q | |
@file : queens.py | |
Illustration of 8 queens using GA - evolution | |
""" | |
import numpy as np |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def generateChromosome(): | |
# randomly generates a sequence of board states. | |
global nQueens | |
init_distribution = np.arange(nQueens) | |
np.random.shuffle(init_distribution) | |
return init_distribution | |
def generatePopulation(population_size = 100): | |
global POPULATION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def developVocabulary(self,n_images, descriptor_list, kmeans_ret = None): | |
""" | |
Each cluster denotes a particular visual word | |
Every image can be represeted as a combination of multiple | |
visual words. The best method is to generate a sparse histogram | |
that contains the frequency of occurence of each visual word | |
Thus the vocabulary comprises of a set of histograms of encompassing | |
all descriptions for all images |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import numpy as np | |
from glob import glob | |
from sklearn.cluster import KMeans | |
from sklearn.svm import SVC | |
from sklearn.preprocessing import StandardScaler | |
from matplotlib import pyplot as plt | |
class ImageHelpers: | |
def __init__(self): |
NewerOlder