This file contains hidden or 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
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 |
This file contains hidden or 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
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 |