Let's us look at some ways of converting a color image into a black and white or gray scale image. The most straight forward approach is averaging the three color channels, RGB. GrayValue = (Red + Green + Blue) / 3 You do this for every pixel. It is quick and dirty....
There are a tons of image already – instead of going though the pain staking process of creating by hand our own images, I am going to use an image I already captured. And yes, it is of my three cats. I am also adding to the collection of cat images on the...
Color Image Arrays for image processing. Up to this point we have been dealing with Black and White images or Gray Scale images – that can be represented by a 2d array. Array(height, width) In which each element in the array represents one pixel and the level of...
Image Processing: Understanding Memory Usage When processing images, it's essential to consider the memory usage, especially for high-performance applications. Here's an in-depth look at how image size and type affect memory consumption and processing efficiency....
A list of my : Microchip PIC10F322 Resources Making Music with PIC10F322 : Using XC8 for Sound GenerationSound Generation with PIC10F322 NCO and XC8: Emulating the IBM PC/XT BeepUsing PIC10F322 Internal Temperature Sensor to Seed a Random Number Generator with...
Here is a little fun. Some Python code that will take a text file and turn it into an image. When I say, turn it into an image – I don't mean it will read the text file and make some image from it that we could look at and say… oh the ocean. What it does it...
As you recall – a black and white image can be represented by a 2d array. The below Python code takes a 2 x 5 array (checker board pattern) and using matplot converts it into an image we can see. #%% import matplotlib.pyplot as plt import numpy as np # 2d Image...
High level it is a binary representation (numbers) of visual information. And how is it represented? It depends on the format, we will get into that later, but it is nothing more than an array of numbers. For example – lets just take a 256 level black and white...
Image Processing in C and Python : Introduction My idea is to put together a collection of image processing code – that didn't heavily use external pre-written libraries as a way to better understand the code and image processing itself. In other words, to peak...
My automation project is continually evolving, and I'm excited to share the latest advancements in my localized IoT setup. The image below shows the IoT Node Base, which includes a power regulator and is built around the ESP8266, specifically the Wemos D1 Mini. Here...
I recently encountered a project requiring a small computer, and my initial thought was to use a Raspberry Pi. However, due to current shortages, Raspberry Pi prices have surged. For example, a Raspberry Pi 4 Model B with 2GB RAM is now selling for around $129, and...
This Python function will read and text file and return text file contents. #usage yourContentHolder = return_text_file_content(path to text file) def return_text_file_content(file): encoding_format = “utf-8″ textDataFile = open(file,...
Building and Automating a Hydroponic System I've been growing various herbs, lettuces, and other food plants using hydroponics for some time now. It's a fantastic method for producing fresh veggies year-round. Recently, I've taken my interest a step further by...
Need to return list of files in directory based on the file extension? This is a Python Code Snippet that will return a list of files based on extension from a directory including full path. #Usage yourlist =...
Before starting any automation project, It is a good idea to have a plan. Automation With PowerShell and Python: The Importance of Planning Before embarking on any automation project, it's essential to have a well-thought-out plan. With over 35 years of experience in...
Movement Toward Localized Computing Is it just me, or have you also noticed the significant shift toward centralized computing models? Services like AWS, Azure, and Google Cloud have been dominating the tech landscape for a few years now. There's no denying the...
Received a question about – How to separate a program into multiple files. Simple programs can be put in a single file, but when your program grows larger, while it isn't impossible to keep it all in one file, it starts to become a big pain in the rear. The purpose of...
Enabling the PICKit or ICD to Supply Power to Your Target Device : In MPLAB – How to Enable the PICKit or ICD to Supply Power to Your Target Device – In MPLAB By default – when you are using the PICKit or other ICD – the power target circuit from device is...
Just, what is the difference between the PIC10F322 and PIC10LF322? Difference Between the PIC10F322 and PIC10LF322 The primary difference between the PIC10F322 and PIC10LF322 microcontrollers lies in their operating voltage ranges. The LF designation indicates a...
So, just what is the difference between the PIC10F320 and PIC10F322? Difference Between the PIC10F320 and PIC10F322 Both the PIC10F320 and PIC10F322 microcontrollers operate at speeds up to 16MHz with an internal oscillator. They share the following features: 4 I/O...
PIC10F322 MCU Overview : For in-depth technical details, please refer to the Microchip datasheet. This overview provides a high-level summary to help you get started with the PIC10F322 microcontroller. The Major difference between the PIC10F320 and PIC10F322 The major...