Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
#! -*- encoding: utf-8 -*-
# This file is part of OpenMVG (Open Multiple View Geometry) C++ library.
# Python script to launch OpenMVG SfM tools on an image dataset
#
# usage : python tutorial_demo.py
#
import training # 自前の学習器
import chainer.serializers
import chainer.functions as F
import argparse
import numpy as np
from PIL import Image
import os
from bottle import route, run
# アプリケーションのプライバシーポリシー
このアプリケーションは、個人情報を収集したり公開しません。
--------------------------------------------------------------------------
# Application privacy policy
This application does not collect or publish any personal information.
@javoren
javoren / OpenCV LinkScript Generate
Last active December 29, 2016 12:26
OpenCV for VisualStudio
# ライブラリ名をもとにVisualStudioのDEBUG/RELEASEで自動的に参照ライブラリが切り替わるようなファイルを生成する
# たとえばこんなの
# #ifdef _DEBUG
# #pragma comment(lib, "opencv_core310d.lib")
# #else
# #pragma comment(lib, "opencv_core310.lib")
# #endif
#
# 実行するにはSet-ExecutionPolicy RemoteSigned でスクリプトを有効化しておくことを忘れずに
# python3ではcPickleがなくなったので、pickleを使う
import pickle;
#coding: utf-8
import numpy as np
import chainer
from chainer import cuda
import chainer.functions as F
import chainer.computational_graph as cg