Skip to content

Instantly share code, notes, and snippets.

View cognitiveRobot's full-sized avatar

Zulfikar Hossain cognitiveRobot

  • New Zealand Forest Research Institute Limited
  • New Zealand
View GitHub Profile
@ruffsl
ruffsl / Dockerfile
Last active October 12, 2021 09:00
Nvidia docker with rviz
FROM osrf/ros:melodic-desktop-bionic
# setup catkin workspace
ENV CATKIN_WS=/root/catkin_ws
RUN mkdir -p $CATKIN_WS/src
WORKDIR $CATKIN_WS/src
# clone source code
RUN git clone -b melodic-devel https://github.com/ros-visualization/rviz
@davesnowdon
davesnowdon / image-downloader2.py
Created January 27, 2018 14:15
Rewrite of the python image downloading code from https://www.pyimagesearch.com/2017/12/04/how-to-create-a-deep-learning-dataset-using-google-images/ which does not leave gaps in the numbering, allows arbitrary starting numbers and uses generators to make the code a bit more readable
from imutils import paths
import argparse
import requests
import cv2
import os
import numpy as np
# Adapted from https://www.pyimagesearch.com/2017/12/04/how-to-create-a-deep-learning-dataset-using-google-images/
# fixes the following issues with the original:
# 1 - files are always saved as .jpg even if they are not in JPEG format