Skip to content

Instantly share code, notes, and snippets.

Uzzal Podder uzl

Block or report user

Report or block uzl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@uzl
uzl / Binary_search.ipynb
Last active Sep 20, 2016
Documents/research/Algorithm/Untitled.ipynb
View Binary_search.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@uzl
uzl / RSA-notebook.ipynb
Created Nov 5, 2016
Documents/research/cryptography/Untitled.ipynb
View RSA-notebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@uzl
uzl / create_current_logdir.py
Last active Feb 21, 2019
Runtime Directory Creation for Log
View create_current_logdir.py
out_dir = 'out'
if not os.path.isdir(out_dir):
os.mkdir(out_dir)
current_out_dir = os.path.join( out_dir, strftime("%Y-%m-%d__%H_%M_%S", gmtime()) )
os.mkdir(current_out_dir)
print('Output will be saved in', current_out_dir)
@uzl
uzl / keras_generator_for_multi_input.ipynb
Last active Feb 22, 2019
Keras Generator for Multi-input (pair wise) input
View keras_generator_for_multi_input.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@uzl
uzl / docker_tf.md
Last active Mar 15, 2019
Docker run command for tensorflow
View docker_tf.md
docker run --runtime=nvidia -it \
  -v /home/uzzal/tmp_data:/tmp \
  -v /share/personal/uzzal:/home  \
  -w /tmp \
  -p 8998:8888 \
  -p 5008:5000   \
  tensorflow/tensorflow:latest-gpu-py3 bash
@uzl
uzl / label_box_coordinate_rotation.ipynb
Last active Mar 15, 2019
rotate 4 points(x,y) of a polygon with respect to a center coordinate
View label_box_coordinate_rotation.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@uzl
uzl / directory_scanning.ipynb
Created Mar 15, 2019
scanning directory and sub directory
View directory_scanning.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@uzl
uzl / installing_aravis.txt
Created Apr 9, 2019
Compiling and Installing Aravis with USB support
View installing_aravis.txt
# download source from http://ftp.gnome.org/pub/GNOME/sources/aravis.
# Note: I found problem for USB support in github source
./configure --enable-viewer --enable-usb --enable-gst-plugin --enable-introspection=yes
make
sudo make install
@uzl
uzl / create_labimg_xml.py
Created Apr 10, 2019
Quadrilateral bounding box to LabelImg xml generation
View create_labimg_xml.py
import numpy as np
from pathlib import Path
import xml.etree.cElementTree as ET
from PIL import Image
def create_labimg_xml(image_path, annotation_list):
image_path = Path(image_path)
img = np.array(Image.open(image_path).convert('RGB'))
@uzl
uzl / jai_usb3.py
Created Apr 11, 2019
Capturing Usb Industrial Camera
View jai_usb3.py
from harvesters.core import Harvester
import numpy as np
import matplotlib.pyplot as plt
import cv2
import time
from harvesters.util.pfnc import mono_location_formats, \
rgb_formats, bgr_formats, bayer_location_formats, \
rgba_formats, bgra_formats
You can’t perform that action at this time.