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 requests | |
from bs4 import BeautifulSoup | |
import re | |
import numpy as np | |
def preprocess_raw_text(raw_text): | |
raw_text = raw_text.replace('-', ' ') | |
raw_text = raw_text.replace('\n', ' ') | |
raw_text = raw_text.replace('...', ' ') | |
raw_text = raw_text.replace(' ', ' ').encode('ascii', 'ignore') |
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 rospy, rosbag | |
import numpy as np | |
import cv2 | |
import pickle | |
import argparse | |
def image_to_numpy(msg): | |
""" | |
Convert a sensor_msgs/CompressedImage to numpy array |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.