This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
def func(t): | |
if (t > 0.008856): | |
return np.power(t, 1/3.0); | |
else: | |
return 7.787 * t + 16 / 116.0; | |
#Conversion Matrix | |
matrix = [[0.412453, 0.357580, 0.180423], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This python script demonstrates how we can use a 3D | |
# histogram in OpenCV to sort the colors and find the | |
# max color in a image | |
import cv2 | |
import numpy as np | |
# Read the image | |
image = cv2.imread("/home/bikz05/Desktop/dataset/0.png"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo $"Script Written by $(tput setaf 5)Bikram Hanzra$(tput sgr 0) (bikz.05@gmail.com)"$ | |
if [ "$#" == 0 ] ; then | |
echo "$(tput setaf 1)We need at least 2 arguments" | |
echo "SYNTAX ./remove <file-name> <text-to-be-removed>" | |
echo "<text-to-be-removed> by default = www.it-ebooks.info$(tput sgr 0)" | |
exit | |
fi | |
if [ "$#" == 1 ] ; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import argparse | |
# Download the image used for this tutorial from here. | |
# http://goo.gl/jsYXl8 | |
# Read the image | |
ap = argparse.ArgumentParser(); | |
ap.add_argument("-i", "--image", required = True, help = "path to the image file"); | |
args = vars(ap.parse_args()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### colormath is needed to run the script | |
### Ubuntu users can get it by typing the 2 command below - | |
### `sudo apt-get install python-pip` | |
### `sudo pip install colormath` | |
from colormath.color_objects import sRGBColor, LabColor | |
from colormath.color_conversions import convert_color | |
from colormath.color_diff import delta_e_cie2000 | |
# Red Color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get upgrade | |
# Added by me | |
sudo apt-get install freeglut3 freeglut3-dev libtbb-dev libqt4-dev | |
# Copied from pyimagesearch.com | |
sudo apt-get install build-essential cmake git pkg-config | |
sudo apt-get install libjpeg8-dev libtiff4-dev libjasper-dev libpng12-dev | |
sudo apt-get install libgtk2.0-dev | |
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable mouse support | |
set -g mouse on | |
# Enable Ctrl + left/right arrow. | |
set-window-option -g xterm-keys on | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder