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
| ## reference: http://ronny.rest/tutorials/module/pointclouds_01/point_cloud_birdseye/ | |
| ## https://blog.csdn.net/weixin_39999955/article/details/83819313 | |
| import os | |
| import sys | |
| import numpy as np | |
| import pypcd | |
| from PIL import Image | |
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
| #!/usr/bin/env python3 | |
| import requests | |
| from datetime import datetime | |
| TICKER_API_URL = 'https://api.coinmarketcap.com/v1/ticker/' | |
| def get_latest_crypto_price(crypto='bitcoin'): | |
| return float(requests.get(TICKER_API_URL+crypto).json()[0]['price_usd']) |
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 matplotlib import pyplot as plt | |
| %matplotlib inline | |
| from skimage.color import hsv2rgb | |
| from skimage.color import rgb2gray | |
| from skimage.data import stereo_motorcycle | |
| from skimage.registration import optical_flow_tvl1 | |
| import numpy as np | |
| image0, image1, disp = stereo_motorcycle() |
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
| # -*- coding: utf-8 -*- | |
| # @Author: insaneyilin | |
| # Python version 2.7 | |
| # Adapted from | |
| # https://github.com/AtsushiSakai/PythonRobotics/tree/master/Localization/histogram_filter | |
| import copy | |
| import math | |
| import matplotlib.pyplot as plt |
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
| # -*- coding: utf-8 -*- | |
| # @Author: insaneyilin | |
| # Python version 2.7 | |
| import os | |
| import sys | |
| import time | |
| import argparse | |
| import multiprocessing | |
| from PIL import Image |
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
| // Copyright (c) 2019 Yilin Gui. All rights reserved. | |
| // | |
| // filename: register_factory.cpp | |
| #include "./register_factory.h" | |
| namespace register_factory { | |
| BaseClassFactoryMap& GlobalBaseClassFactoryMap() { | |
| static BaseClassFactoryMap base_factory_map; |
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
| (define (average x y) | |
| (* (+ x y) 0.5)) | |
| (define (good_enough? guess x) | |
| (< (abs (- x (* guess guess))) 0.001)) | |
| (define (improve guess x) | |
| (average guess (/ x guess))) | |
| (define (sqrt_itr guess x) |
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
| struct Student { | |
| int stu_id; | |
| int age; | |
| float grade; | |
| }; | |
| std::vector<Student> students; | |
| // fill students vector | |
| // ... |
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
| # -*- coding: utf-8 -*- | |
| # @Author: insaneyilin | |
| # Python version 2.7 | |
| # Reference: https://www.cnblogs.com/li1992/p/10675769.html | |
| import os | |
| import sys | |
| import argparse | |
| import glob |