Skip to content

Instantly share code, notes, and snippets.

View enjoylife's full-sized avatar
📖

Matthew Clemens enjoylife

📖
View GitHub Profile
@enjoylife
enjoylife / triangulation.py
Created June 10, 2020 22:59 — forked from davegreenwood/triangulation.py
Triangulate image points to world points comparing openCV to pure python.
from __future__ import print_function
import numpy as np
import cv2
import time
np.set_printoptions(formatter={'float': '{: 0.3f}'.format})
def triangulate_nviews(P, ip):
"""
@enjoylife
enjoylife / quickdemo.py
Created June 9, 2020 05:00 — forked from horverno/quickdemo.py
Aruco marker-based OpenCV distance measurement
from picamera.array import PiRGBArray
from picamera import PiCamera
import time
import sys
import numpy as np
sys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages')
import cv2
import cv2.aruco as aruco
import numpy as np
import rectangleArea as ra
@enjoylife
enjoylife / simple_triangulation.cc
Created June 9, 2020 04:59 — forked from cashiwamochi/simple_triangulation.cc
This code is used for simple triangulation. It uses findEssentialMat, recoverPose, triangulatePoints in OpenCV. For viewer, PCL is used. You can watch 3D points and 2 camera poses. I checked alcatraz2.jpg and alcatraz1.jpg in pcv_data.zip (https://www.oreilly.co.jp/pub/9784873116075/). Perhaps there is something wrong ( actually it looks working…
#include <opencv2/opencv.hpp>
#include <pcl/common/common_headers.h>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <Eigen/Core>
#include <Eigen/LU>
@enjoylife
enjoylife / .block
Created September 18, 2019 12:46 — forked from kerryrodden/.block
Sequences sunburst (d3 v4)
license: apache-2.0
@enjoylife
enjoylife / nested.example.js
Created March 21, 2019 16:04 — forked from tim-field/useRouter.js
Hooks Router & Nested relative Routes
function Parent(props) {
return (
<>
<Link to='/child'>Child</Link>
<Route path='/child' component={Child}/>
</>
);
}
function Child({match}) {
@enjoylife
enjoylife / sighup.go
Created December 22, 2017 18:48 — forked from andelf/sighup.go
golang process SIGHUP, HUP signal to reload configuration
// program
package main
import "os/signal"
import "os"
import "fmt"
import "syscall"
import "time"
@enjoylife
enjoylife / index.html
Created August 29, 2017 14:06 — forked from anonymous/index.html
Rectangular Spiral
<article>
<h1>Rectangular Spiral</h1>
<p>In this exercise, you will write a Javascript function to draw a rectangular spiral through points arranged on a square grid like this:
</p>
<figure>
<svg class="board" height="201" width="251">
<path d="M25 25L225 25L225 75L225 175L175 175L25 175L25 125L25 75L75 75L175 75L175 125L75 125"/>
@enjoylife
enjoylife / .block
Last active June 20, 2017 22:22 — forked from mbostock/.block
Letter Frequency
license: gpl-3.0
@enjoylife
enjoylife / README.md
Created March 14, 2017 21:49 — forked from brattonc/README.md
D3 Liquid Fill Gauge

Liquid Fill Gauge v1.1 - 7/14/2015

Changes:

  • Added support for updating the gauge value after loading is complete. The loadLiquidFillGauge method now returns an object with an update method which allows the gauge value to be changed. Click any of the gauges above to randomly update their value.

Configurable features include:

  • Changeable min/max values.
  • All colors.
@enjoylife
enjoylife / .block
Created November 5, 2016 19:14 — forked from mbostock/.block
Population Pyramid
license: gpl-3.0