Skip to content

Instantly share code, notes, and snippets.

@gfranxman
gfranxman / simple_triangulation.cc
Created January 5, 2019 17:11 — 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>
#!/usr/bin/env python
"""
Bundle the site-packages of the current python environment into a zip file
If you have any wheels at `$(pwd)/wheels`, those will be used instead of
of the locally installed packages. For instance, if my pwd looked like
wheels/
|-- numpy-1.11.2-cp27-cp27mu-manylinux1_x86_64.whl
# source this code in a Bash shell
# and run like django-post-payload '{"a": "b"}'
# you can set the credentials by exporting DJANGO_USER and DJANGO_PASSWORD
django-post-payload() {
local TARGET=http://ws.somesite.com/some/service/endpoint/
local PAYLOAD=$1
#"{\"asd\": \"asd\"}"
local LOGIN=http://ws.somesite.com/login/
#
*.pyc