Sign in

The code for this task is kept in

as Face Recognition.txt, Model training.txt, Collecting sample data.txt

Collecting Sample Data: Here , we take 100 samples of any image and store them as .jpg files in a particular location of PC.

Model training.txt: Here, we gonna use LBPH face recognition algorithm to make the model get trained with the image data that we collected previously.

Face Recognition.txt: Here, we gonna provide the sample image again to model for predicting image and if prediction confidence interval is greater than 80%, then we are gonna launch the ec2 instances in AWS.

Also launch…


Here I would like to share how to create your own video chatting based on python in your own laptop (Where server and client program resides).

This is the code for server side.

import socket, cv2, pickle, struct, imutils

s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.bind((“127.0.0.1”,2323)) // Created a socket
s.listen(5)
print(“server is listening at port number 2323 …..”)
client_session, addr = s.accept() // Accept the connections
while True:
if (client_session):
cap = cv2.VideoCapture(0)
while(cap.isOpened()):
ret, img = cap.read()
frame = imutils.resize(img,width=320) // format all the packets into one single size.
a = pickle.dumps(frame)
msg = struct.pack(“Q”, len(a))+a
client_session.sendall(msg)
cv2.imshow(“Sending video”, img)
if cv2.waitKey(10) == 65:
break…


Task1 : Creating an image using cv2 python code.

Please find the code as below:

import cv2
import numpy as np

img2 = np.zeros((880,320,3),np.uint8)
img2[0:440, :] = (255,0,255)
img2[441:880, :] = (255,255,0)
buffer2[:, :, :] = img2[:, :, :]
cv2.imshow(‘hi’, img2)
cv2.waitKey()
cv2.destroyAllWindows()

Here in the code you can see two modules cv2 and numpy are imported.

Initially in the new image every pixel should be set to zero. After that uint8 will make each pixel to get ready in the form of R,G,B format.

We have created an empty image of 880 rows and 320 columns.

In the top half of image I filled it with pink color…


Hello everyone,

In this article we will discuss what role does Confusion Matrix plays in the Cybersecurity field??

As we all know that cybersecurity is very important as they are responsible for our security from cybercrime and the tools and tech they use are very important for them and what if I say that the tool that they use can give them wrong information !! If this happens that worst-case scenario may occur.

so before we start with that topic let’s discuss what confusion matrix is and what is cybersecurity?

What is Cyber Security?


Hi Everyone, In today’s blog, I would like to show you how to launch a Jupiter notebook terminal from Ubuntu container.

In below screenshot, I have launched an Ubuntu container and tried to update ubuntu apt repository.

In the below screenshot, I have installed Firefox package.


In this story, I am gonna share you how to train a ML model upon a docker container.

First pull the image file of a container. Here I am using centos image. I am also launching a container out of it.

Next try to install python3 software but before that try to update your yum repo. In my case there was some problem w.r.t DNS. So I used below commands to get rid of this error as shown in screenshot.


I don’t know how far whether a good friend can shape our career is true or not, because I haven’t come across anyone such in this modern world.

But, today I want to substitute the friend concept with a teacher who has really made me to turn my career into right path.

He is none other than world record holder Mr. Vimal Daga.


I don’t know how far whether a good friend can shape our career is true or not, because I haven’t come across anyone such in this modern world.

But, today I want to substitute the friend concept with a teacher who has really made me to turn my career into right path.

He is none other than world record holder Mr. Vimal Daga.

Sir, I owe you a lot.

You are my god, A teacher, A mentor , A well-wisher, and many more

I haven’t expected that the Ansible training would be so great to learn under your supervision.

You…


Problem Statement:

🔅Provision EC2 instances through ansible roles.

🔅 Retrieve the IP Address of instances using the dynamic inventory concept.

🔅Configure the web servers through the ansible role.

🔅Configure the load balancer through the ansible role.

🔅The target nodes of the load balancer should auto-update as per the status of web servers.

The entire problem statement requires three roles :

  1. Role-1 for creating ec2 instances and updating their public IP’s to inventory file using dynamic inventory concept.
  2. Role-2 for creating and configuring load balancer.
  3. Role-3 for creating and configuring web servers.

Now let’s initialize these roles using the command as follows:

ansible-galaxy…


In this blog, I would like to share the detailed explanation of creating TCP Socket programming for multiple clients with multi threading concept.

First let’s understand the scenario:

  1. We need to create a program that should be able to accept multiple clients on same TCP socket in server side.

2. On each session with the client, both server and client should be able to converse asynchronously (This means there shouldn’t be any rule like first server speaks and then client replies and again server asks some question then client replies …. So on … This means there is a pattern…

B Manoj

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