In an earlier time we programmed our computer to detect a green color object. Now, lets see how to program the Beaglebone Black to detect the Green color objects and respond accordingly.I am going to show you this by connecting
Convert a set of images to a PDF document
Following code shows you how to convert a set of JPEG images to a single PDF file. This was tested on windows 10. You need the following libraries installed before everything. pdf2image (https://pypi.org/project/pdf2image/) PyFPDF (https://pyfpdf.readthedocs.io/en/latest/) Pillow (https://pillow.readthedocs.io/en/stable/index.html) Make sure your
Get SSIDs of Available WiFi Networks
For this purpose we will use subprocess module which is available in (shipped with) python. First import the library. import subprocess Then lets scan for all available wireless networks (make sure you have enabled wifi in your pc/laptop) scan_results =
Image Analyzer 1
In various projects we need to analyze images. This program is to analyze an image for its details. However, this is a collection of some of the basic functions of opencv. It’s up to you to develop the code to
Linear Trend Detection in a 2D Array in Python
Loops are essential functions in any language. In this tutorial I will show you an example in python, the importance of the loops. In fact, you can use this knowledge for simple game development. First of all we create a
Password Verification in Python 2
This is a very simple password verification code. But it is very effective. Step 1: First we take a user input. That is a test password. Step 2: Call a function to verify the password Step 3: Verify the returns
Parse web pages and write down the content to text files
Please download the source files first, since this post is designed to a specific url only. Before start install BeautifulSoup library. I have described about installation in one of my previous posts. Or you can find it in many websites.
Search JPEG Images on the Internet Using Python 2.X
You have to install BeautifulSoup from. You can install it with pip. (I tried on Ubuntu 14.04 LTS) $ pip install beautifulsoup4 Download MarioVilas google.py from github. Follow this link. And save to your working directory. Now let’s start cording.
A Simple Animation with Opencv
In this, I will explain to you about performing a simple animation with Opencv. As usual you have to open a new IDLE file and start the program by importing necessary libraries. import cv2 import numpy as np import
A Simple mp3 Player
Remember this is one of the simplest mp3 player you can create. First, we have to copy some mp3 files into the folder where you save the program (or copy to any folder and use the path to that folder).