Posts

Create an art or image by yourself using arrays and Numpy.

Image
  import numpy as np import cv2 import matplotlib . pyplot as plt photo = np . zeros (( 800 , 800 , 3 )) plt . imshow ( photo ) photo = np . zeros (( 800 , 800 , 3 )) cv2 . rectangle ( photo ,( 470 , 200 ),( 300 , 522 ),( 255 , 80 , 10 ), 3 ) cv2 . circle ( photo , ( 385 , 300 ), 50 , ( 66 , 9 , 47 ), 3 ) #top triangle #rightline cv2 . line ( photo ,( 500 , 200 ),( 380 , 50 ),( 255 , 80 , 10 ), 3 ) #leftline cv2 . line ( photo ,( 270 , 200 ),( 380 , 50 ),( 255 , 80 , 10 ), 3 ) #bottomline cv2 . line ( photo ,( 270 , 200 ),( 500 , 200 ),( 255 , 80 , 10 ), 3 ) #leftsiderectangle cv2 . line ( photo ,( 300 , 500 ),( 200 , 500 ),( 255 , 80 , 10 ), 3 ) cv2 . line ( photo ,( 300 , 400 ),( 200 , 500 ),( 255 , 80 , 10 ), 3 ) #rightsiderect cv2 . line ( photo ,( 470 , 500 ),( 570 , 500 ),( 255 , 80 , 10 ), 3 ) cv2 . line ( photo ,( 570 , 500 ),( 470 , 400 ),( 255 , 80 , 10 ), 3 ) #Boosters cv2 . rectangle ( photo ,( 380 , 522 ),( 310 , 550 ),( 255 , 80 , 10 ), 3 ) cv2 . rectangle...

Create a Live Streaming Video Chat App without voice using cv2 module of Python

C reate Socket: try         skt = socket.socket(socket.AF_INET, socket.SOCK_STREAM)     print ( "Socket successfully created" ) except socket.error as err :     print ( "Socket creation failed with error {} " .format( err )): Server-Side Code (server.py): import cv2 import socket import pickle import struct # Server socket setup 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) server_socket.bind(socket_address) server_socket.listen( 5 ) print ( "Waiting for a connection..." ) client_socket, client_addr = server_socket.accept() print ( "CONNECTED!" ) # Open the camera cap = cv2.VideoCapture( 0 ) while True :     # Read a frame from the camera     ret, frame = cap.read()     # Serialize the frame using pickle     data = pickle....

Write the code for live video stream using cv2. Detect the human face(s) from that live video stream. 👉🏻 Identify and get it's/their's position. And blur the part of a detected face and keep the rest part as it is.

Image
  import cv2 face_cascade = cv2 . CascadeClassifier ( cv2 .data.haarcascades + 'haarcascade_frontalface_default.xml' ) def detect_and_blur_faces ( frame ):     gray = cv2 .cvtColor( frame , cv2 .COLOR_BGR2GRAY)     faces = face_cascade .detectMultiScale( gray , scaleFactor = 1.1 , minNeighbors = 5 , minSize = ( 30 , 30 ))     for ( x , y , w , h ) in faces :         face_roi = frame [ y : y + h , x : x + w ]         blurred_face = cv2 .GaussianBlur( face_roi , ( 23 , 23 ), 30 )         frame [ y : y + h , x : x + w ] = blurred_face         cv2 .rectangle( frame , ( x , y ), ( x + w , y + h ), ( 0 , 255 , 0 ), 2 )     num_faces = len ( faces )     cv2 .putText( frame , f "Faces detected: { num_faces } " , ( 10 , 30 ), cv2 .FONT_HERSHEY_SIMPLEX, 0.7 , ( 0 , 0 , 255 ), 2 )     return frame cap = cv2 .VideoCapture( 0 ) whil...

Create a blog/article/video/document about explaining various options for zenity with output screenshots

Image
Zenity is a program that will display GTK+ dialogs, and return the users input. This allows you to present information, and ask for information from the user, from all manner of shell scripts There are many options available in zenity so that you can create many GUI as per your requirements to get your required dialog box. -> we can use one command to open the manual of zenity command so that we can get to know about its format and option that are supported in zenity. man zenity zenity --warning (To display a pop up warning we can run this command) zenity --scale --text="put here the text we want to scale" (for eg : - we are scaling the brightness level) zenity --password

Write the code for live video stream using cv2. Detect the human face(s) from that live video stream. 👉🏻 Identify and get it's/their's position. And blur the part of a detected face and keep the rest part as it is.

Find out different Fun commands like sl, cowway etc. in Linux from the Internet. Next create one blog/document & there show all those commands with various options of them. Put different screenshot on that blog / document. Post that on your social media and share the post link in below form.

Image
Introduction: In the world of Linux, there's more than just serious work and coding. The terminal can also be a place for a bit of fun and amusement. In this blog/document, we'll explore some fun Linux commands that you can use to add a touch of playfulness to your terminal experience. cowsay Command Cowsay is a command that displays a cow using ASCII characters in the terminal. And by using this command you can instruct the cow to say anything you want. which is useful in the output of the desired text with an animated character cow                yum install cowsay //to install cowsay files                cowsay -l                cowsay <"Text to print">                 sudo yum install cmatrix sl command #sl command shows the running steam locomotive engine with symbols.       ...

Research for industry use cases of Jenkins and create a blog, Article or Video elaborating how it works

Introduction In today's fast-paced world, automation and continuous integration are paramount for organizations looking to streamline their development and deployment processes. Jenkins, an open-source automation server, has emerged as a powerful tool for achieving these goals. In this blog post, we will explore various industry use cases of Jenkins and delve into how it works to make these processes more efficient and reliable. Industry Use Cases of Jenkins 1. Software Development      Continuous Integration (CI) Jenkins plays a pivotal role in software development by enabling continuous integration. It allows developers to integrate their code changes into a shared repository multiple times a day. Jenkins can automatically trigger builds, run tests, and deploy the application, ensuring that the code is always in a deployable state. b. Continuous Delivery (CD) For organizations aiming to achieve continuous delivery, Jenkins helps automate the entire delivery pipeline. It...