It is basically a type of unsupervised learning method . An unsupervised learning method is a method in which we draw references from datasets consisting of input data without labelled responses. Generally, it is used as a process to find meaningful structure, explanatory underlying processes, generative features, and groupings inherent in a set of examples.
Clustering is the task of dividing the population or data points into a number of groups such that data points in the same groups are more similar to other data points in the same group and dissimilar to the data points in other groups. …


Number plate detection and converting to text format

import cv2
import numpy as np
import easyocr
frameWidth = 640 #Frame Width
franeHeight = 480 # Frame Height

plateCascade = cv2.CascadeClassifier(“haarcascade_russian_plate_number.xml”)
minArea = 500

cap =cv2.VideoCapture(0)
count = 0

while True:
success , img =

imgGray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)

numberPlates = plateCascade.detectMultiScale(imgGray, 1.1, 4)

for (x, y, w, h) in numberPlates:
area = w*h
if area > minArea:
cv2.rectangle(img, (x, y), (x + w, y + h), (255, 0, 0), 2)
imgRoi = img[y:y+h,x:x+w]
if cv2.waitKey(1) & 0xFF ==ord(‘s’):
cv2.putText(img,”Scan Saved”,(15,265),cv2.FONT_HERSHEY_COMPLEX,2,(0,0,255),2)…


Java script is used in many industries because of its useful features
features of javascript are:

1. Adding interactive behavior to web pages
JavaScript allows users to interact with web pages. There are almost no limits to the things you can do with JavaScript on a web page — these are just a few examples:
Show or hide more information with the click of a button
Change the color of a button when the mouse hovers over it
Slide through a carousel of images on the homepage
Zooming in or zooming out on an image
Displaying a timer or count-down on a website
Playing audio and…


Here i integrate backend (python file) with frontend (html) this webapplication allows us to run docker commands from web application we can see the output/result in the same webapplication

prerequisite:httpd server program,docker

file to be there in /var/www/html this is default path

It is recommended to place client side programming files in this path

main html file and javascript file


<!DOCTYPE html>
<title>Docker Webpage</title>
<script src=’main.js’></script>
<body style=”background-color:skyblue”>
<center> <img src=”docker.jpg”> …

Note:Here in this program you need to use your own login credentials

1)When it recognize your face then
👉 It send mail to your mail id by writing this is face of your_name.
👉 Second it send whatsapp message to your friend, it can be anything.

2)When it recognize second face, it can be your friend or family members face.
👉 Create EC2 instance in the AWS using CLI.
👉 Create 5 GB EBS volume and attach it to the instance.


# Step 1 — Create Training Data

import cv2
import numpy as np
import pywhatkit as pw
import time
import smtplib
import os…

Prerequisite:Both Systems must connect to same network

Ex:Mobile Hotspot

Execute server file in one computer it gives ip address of that system

Server file code:

import socket, cv2, pickle,struct,imutils

server_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
host_name = socket.gethostname()
host_ip = socket.gethostbyname(host_name)
print(‘HOST IP:’,host_ip)
port = 9999
socket_address = (host_ip,port)

print(“LISTENING AT:”,socket_address)

while True:
client_socket,addr = server_socket.accept()
print(‘GOT CONNECTION FROM:’,addr)
if client_socket:
vid = cv2.VideoCapture(0)

img,frame =
frame = imutils.resize(frame,width=320)
a = pickle.dumps(frame)
message = struct.pack(“Q”,len(a))+a

cv2.imshow(‘TRANSMITTING VIDEO’,frame)
key = cv2.waitKey(1) & 0xFF
if key ==ord(‘q’):

Execute Client file in another system and enter the ip address of…

Before we get into the topic let’s first Understand what a confusion matrix is
Confusion Matrix:
A confusion matrix is a table that is often used to describe the performance of a classification model (or “classifier”) on a set of test data for which the true values are known.

It is a table with 4 different combinations of predicted and actual values.

🔅 *Task 4.1*

📌 *Create image by yourself Using Python Code*

🔅 *Task 4.2*

📌 *Take 2 image crop some part of both image and swap it.*

🔅 *Task 4.3*

📌 *Take 2 image and combine it to form single image. For example collage*

Task 4.1

The code i am used to create a image of Monitor is given below

here i am using numpy to create arrays and cv2 module to display the create image.image is array inour case it is 3D i just create an array with zeros each cell in the array is called pixel it holds…

Bolisetti Guna Sekhar

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store