Skip to main content

Posts

Take 2 images, crop some part of both the images and swap them

  Libraries Required for this  1.numpy 2.Matplotlib 3.opencv Taking input from the user using img1 = cv2.imread("imageone.jpg") img2 = cv2.imread("imagetwo.png") Converting both the images into RGB format from BGR img1 = cv2.cvtColor(img1,cv2.COLOR_BGR2RGB) Showing image using Matplotlib plt.imshow(imagename)

Take 2 images and combine it to form a single image using opencv

  Libraries Required for this  1.numpy 2.Matplotlib 3.opencv Taking input from the user using img1 = cv2.imread("imageone.jpg") img2 = cv2.imread("imagetwo.png") Converting both the images into RGB format from BGR img1 = cv2.cvtColor(img1,cv2.COLOR_BGR2RGB) Showing image using Matplotlib plt.imshow(imagename)

Implement the concept of template in python & the concept of do while loop in python.

 

How to run Docker inside Docker Container?

Step 1 : Docker pull centos Step 2 : 1. mkdir storage           2. cd storage/ Step 3 : docker run -it --privileged -v /root/storage:/var/lib/docker --name os1 centos 1.    We used  privileged  mode because to run docker engine inside docker container it will be failed due to some security reason. A  privileged  container means it have all root capabilities of host machine 2.    Docker store all data like containers, images, networks, plugins and many mores inside in one place that is  /var/lib/docker,  so this folder is most important folder. We know if we terminate any container than all the content inside the container will be removed. So, for that reason we create a folder that is  mystorage  inside in host machine and linked this folder with that folder  /var/lib/docker  means we create a persistent storage of that folder  /var/lib/docker Now we install docker on  centos...

Run any GUI software in docker container

 

date command in Linux with examples

  Date command is used to display the system date and time. date command is also used to set date and time of the system. By default the date command displays the date in the time zone on which unix/linux operating system is configured.You must be the super-user (root) to change the date and time. 

Some 5 Funny Commands in Redhat linux

  Some Special fun commands in linux 

7 some Intersesting commands in espeak-ng linux

  In This Blog we learn how to perform espeak commands inside the red hat enterprise linux What is espeak-ng? eSpeakNG is a compact, open-source, software speech synthesizer for Linux, Windows, and other platforms. It uses a formant synthesis method, providing many languages in a small size. Much of the programming for eSpeakNG's language support is done using rule files with feedback from native speakers.

Zenity Commands in Linux

Introduction Types of Computer Network

  What is a Computer Network? Computer networks is bunch of computers connected through optical cables, wires and fibers so that it interacts with each other through networks. The goal is to share the content and the information among the system of same network or other. In computer networks there are different types of networks that shares the information among each other they maybe simplex or complex ones.

Computer Network Tutorial

Tutorial Information(Day-1):- Computer Network tutorial provides basic and advanced concepts of Data Communication & Networks (DCN). Our Computer Networking Tutorial is designed for beginners and professionals. It Inculdes all the topics such as introduction, features, types of computer network, architecture, hardware, software, internet, intranet, website, LAN, WAN, etc. What is Computer Network? Computer Networks is set of connected Computers in a small or large areas. A node can be anything printers ,Computers ,WiFi any devices which are capable of sending and receiving the signal .  In these devices routers ,brouters ,ethernet plays an essential role in working of the networks by using computer networks one can send data securely using the network there are three types of network:- 1. LAN(Local Area Network) 2. WAN(Wide Area Network) 3.MAN(Metropolitan Area network)

How to create a NAS using Raspberry-pi?

What's a NAS? Network-attached storage allows you to share files from one, always-on device throughout your house. With a NAS on your network, you can use it to store your movies and play them from multiple Kodi boxes, store backups on it from your PC, or use it as a BitTorrent box that seeds your files 24/7. Sure, you could do all this with your main PC, but a NAS is lower-power, and it is designed to be run day and night, even if your desktop is out of commission. Once you start using one, it's hard to go back. There are plenty of ready-built NAS devices out there, from companies such as Synology, QNAP, and Asustor. Just buy one, pop in a hard drive, and you're off to the races. But they can get expensive quickly, and if you aren't sure whether a NAS is for you, it's hard to justify the investment—especially if you want something that can grow with your storage needs. The Raspberry Pi, on the other hand, is such a versatile little board that it can act as a cheap ...

Vivo Announces Android 11-Based Funtouch OS 11 Beta Update Schedule for India

Vivo has announced the rollout schedule for the beta version of its Android 11-based Funtouch OS 11 in India that will go on till June. The Vivo V20 debuted with the stable version of Android 11 with Funtouch OS 11 in October, and the Vivo X50 Pro started receiving the update last month, but the company was yet to announce the schedule for its older models. The update schedule has devices ranging from the budget segment to the premium segment. The company took to Twitter to reveal its Android 11-based Funtouch OS 11 beta rollout plan. Vivo clarified that users will receive the update on a batch-by-batch basis. The Vivo V20 and the Vivo V20 Pro are already running on the latest OS. The Vivo X50 Pro, too, started receiving the update last month, Vivo said. The Vivo V19 and the Vivo X50₹ 34,990 will start receiving the Android 11-based Funtouch OS 11 beta version update at the end of January 2021, while Vivo V17, Vivo V17 Pro₹ 27,375, Vivo V15 Pro, and Vivo S1 will start receiving the upd...

What are the differences between StaticJsonBuffer and DynamicJsonBuffer?

   StaticJsonBuffer ArduinoJson  uses preallocated memory to store the data and this is possible due to StaticJsonBuffer. If one has to use this library then firstly they should create t he StaticJsonBuffer just like: StaticJsonBuffer<200> jsonBuffer; then it creates an  memory of 200 byte size which creates allocated memory in the system for storing the data static as the name tells it has fixed in size type of memory.Also we cannot reuse the memory once it gets allocated.it has high speed performance. DynamicJsonBuffer This library supports DynamicJsonBuffer since it has parameters for dynamic memory allocation but it will be more useful if we use this buffer in the machine having memory more than 10KB of RAM. to use this syntax is just similar. DynamicJsonBuffer jsonBuffer; This will create one dynamic memory for the system so that it can allocate it more precisely.its size is variable it stores the data in heap.while storing it take time and its somehow pro...

What is machine learning and how it works?

MINI CNC PLOTTER MACHINE BY USING AN ARDUINO

Mini CNC(Computerized Numeric Controller) using an Arduino :- Step1 :-   Collecting all the necessary items from the market includes the following list:- Arduino UNO(R3) L298N Two old DVD drives Step2 :-   Creating the structure of the project.As i was using the old DVD drives here so i was used to design all the layout of my printer on the DVD drive also we have  used some type of 'jugaad' here to create the x axis of our CNC printer since i have less timings to complete our project and also to lower the cost of our project we use this wooden cardboards which i have cutted in a proper manner so that when we give the input it runs on x-y axis.               Basic structure of my project Components Used :-       HARWARE REQUIREMENTS :- Old DVD writers L298N Stepper Motor Drivers Connecting Wires Servo motors Arduino UNO         SOFTWAR...

how to make a static IP Address of an Raspberry-pi

How To Make Raspberry-pi ip-Address Static and show an virtual window of raspberry-pi on Windows desktop through VNC-Viewer STEP  1: Disconnect your Desktop from Windows operating system. STEP  2: Connect your Raspberry-pi to your pc install the Raspbian from the below link STEP  3: Download BalenaEtcher which is basically an image flasher which is going to flash the image of the OS that is Raspbian on the SD card on any USB  for further details go to the link below and download it. Also you can download Win32diskmanger to flash the OS STEP  4: Now as we download the Raspbian and also we flash it now Download the VNC viewer through the below link  STEP  5: Now open the Terminal on Rasberry-pi and write the following commands 1. ifconfig : Check out the  ip-address , sub-net mask 2. netstat -nr : This command will tell you about the  gateway address 3. sudo nano /etc/network/interfaces : This command will give the netwo...

Detailed Analysis on Arduino UNO R3

Arduino UNO R3 Arduino Uno is a microcontroller board based on ATmega328P . It has 14 digital input/output pins 6 Analog pins a 16 MHz quartz crystal oscillator with USB connection ,a power jack , an ICSP(In-Circuit Serial programming) header and a reset button actually it has two reset buttons . Also Arduino uno has RX-0,TX-1 that is receiving and transmitting pins on board. Arduino uno contains  AREF pin which means Analogue-Reference IOREF pin this pin is provides a voltage  reference at which the microcontrller works 3-ground pins 3-Vcc pins Basically the purpose of creating an Arduino Uno is to Control the sensors and the actuators so that it can work accordingly the data which we provide with the help of software . Nowadays people using Arduino Uno in many fields it has very huge scope in  the field of  IOT(Internet Of Things). Also in my current project which is 2D-printer we have used Arduino Uno which sense the Data and according...