One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#Importing modules | |
from sklearn import svm # To fit the svm classifier | |
from sklearn import model_selection | |
import numpy as np | |
import pandas | |
#Import iris data to model Svm classifier | |
url = "https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data" | |
names = ['sepal-length', 'sepal-width', 'petal-length', 'petal-width', 'class'] | |
dataset = pandas.read_csv(url, names=names) |
import cv2 | |
cap = cv2.VideoCapture(0) | |
while True: | |
ret, frame = cap.read() | |
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) | |
cv2.imshow('Vid', frame) | |
cv2.imshow('Gray', gray) |
word=input("Enter a word\n") | |
handle=open("my_data.txt") | |
data=handle.read().split(" ") | |
d=dict() | |
for i in data: | |
if i in d: | |
d[i]+=1 | |
else: | |
d[i]=1 |
#include<iostream.h> | |
#include<fstream.h> | |
#include<string.h> | |
using namespace std; | |
int main() | |
{ | |
ifstream fin("my_data.txt"); //opening text file | |
int count=0; |
#include "16F877A.h" | |
#FUSES HS | |
#use delay (clock=20MHZ) | |
void main() | |
{ | |
set_tris_a(0x00); | |
set_tris_b(0x00); | |
set_tris_c(0x00); |
#include<Servo.h> | |
const int numReadings = 10; | |
int readings[numReadings] = {0}; | |
int index = 0; | |
int total = 0; | |
int average = 0; | |
const int xPin = A0; | |
const int epsilon = 5; | |
long sensorValue = 0; |
int sensorPin[]={A0,A1,A2}; /*Array of analog pins for sensor*/ | |
int totalpin=3; /*Total No. of pins*/ | |
const int ledpin=9; | |
int sensorMin[]={1023,1023,1023}; /*Array to store minimum values*/ | |
int sensorMax[]={0,0,0}; /*Array to store maximum values*/ | |
float sensorAvg[]={0.0,0.0,0.0}; /*Array to store average values*/ | |
void calib() | |
{ | |
int i,l,temp; |
#include <avr/io.h> | |
#include <util/delay.h> | |
#include "lcd.h" | |
#define STRING_LENGTH 27 | |
#define LCD_MAX 15 | |
void main() | |
{ | |
char array[STRING_LENGTH] = { "Namaste" }; |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % | |
% Author : Bharat Kumar % | |
% % | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
%% Initialization | |
function varargout = Colors(varargin) | |
gui_Singleton = 1; | |
gui_State = struct('gui_Name', mfilename, ... |