-
OpenCV Custom Colormap
Colormap provided by OpenCV is limited and might suffice for most of the users but there be will senarios where the custom colormap is crucial for the intended visual representation. Now we will see how we can create our own colormap using ‘Lookup Table’. Creating LUT Let’s create a function to handle RGB mappping from the dictionary. def cv... Read More
-
Downgrade the gcc version to version 5.5 on Ubuntu 18.04
First check existing gcc version, the default is 7.3 on Ubuntu 18.04 $ gcc --version gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0 Download gcc/g++ 5 sudo apt-get install -y gcc-5 sudo apt-get install -y g++-5 Link gcc/g++ to downgrade cd /usr/bin sudo rm gcc sudo ln -s gcc-5 gcc sudo rm g++ sudo ln -s g++-5 g++ Chec... Read More
-
Image Center Crop and Scaling using OpenCV in Python
TL;DR a. Center Crop X-Y Coordinate System Center crop is cropping an image from center which gives an equal padding on both sides vertically and horizontally. It is useful when dealing with many images with different resolutions, say for the computer vision or machine learning applications. I was working on a webcam and pi camera that had di... Read More
-
How to set ARM-DISARM Switch in Mission Planner and RC Transmitter for Pixhawk
I got into making an autonomous quadcopter for a project with no prior knowledge of what goes into building one. As a beginner myself, I was overwhelmed with the number of parameter settings in Mission Planner. The default method to ARM is provided here is recommended for beginners. Caution: Accidentally disarming while in mid-air could crash ... Read More
-
Pixhawk: Getting started with initial setup
Pixhawk is the most sought out flight controller for numerous applications among hobbyists and professionals. By pairing with a companion computer more advanced tasks can be performed like live object tracking, real time 3D image reconstruction, streaming data to the cloud and much more. Ardupilot and Px4 are the most popular open source firm... Read More