
Python
visionfans
研究方向:计算机视觉,模式识别,机器学习
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Numpy
creation slicing : is view fancy indexing : is copy原创 2015-04-10 20:47:47 · 647 阅读 · 0 评论 -
multiprocessing with ugly pickle
Parallelism and Serialization : how poor pickling breaks multiprocessing Python Pickling and multiprocessing What can multiprocessing and dill do together?原创 2015-09-21 21:05:20 · 779 阅读 · 0 评论 -
mincepie
launcher modulelaunch_local() start server and client processes.def launch_local(): """ launches both the server and the clients on the local machine. The number of clients is defined in FLAGS.n原创 2015-09-23 16:41:37 · 652 阅读 · 0 评论 -
python gflags
DEFINE_* creates a Flag object and registers it with a FlagValues object (typically the global FlagValues FLAGS).The FlagValues object can scan the command line arguments and pass flag arguments to the原创 2015-09-23 13:39:58 · 1330 阅读 · 0 评论 -
boost python object creation process
Test codes and pipelinefoo.cpp:#include <boost/python.hpp> #include <iostream>namespace bp = boost::python; using namespace std;class Foo { public: Foo(int n) { cout << "in Foo::Foo()" <<原创 2015-09-17 19:45:22 · 563 阅读 · 0 评论 -
Python C++ interoperability
Python C++ interoperability Bernhard Kaplan’s slides Building Hybrid Systems with Boost.Python Bridging Python to C++ - and vice-versa How does Boost.Python hold C++ class?原创 2015-09-17 15:58:16 · 530 阅读 · 0 评论 -
[-]boost python notes
I’ve known the basics under the hood, next step: Call Policies Polymophism原创 2015-09-17 22:13:41 · 533 阅读 · 0 评论 -
Python string format
Python String Format Cookbook原创 2015-09-15 01:35:32 · 924 阅读 · 0 评论 -
convert between PIL Image and ndarray
arr = imread(‘a.jpg’) img = Image.fromarray(arr) arr = np.asarray(img) References: 1. http://effbot.org/zone/pil-changes-116.htm 2. http://stackoverflow.com/questions/384759/pil-and-numpy原创 2015-04-27 16:50:41 · 2069 阅读 · 0 评论 -
IPython extra space issue
IPython extra space issue https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/oRV1Yc-H3IY/discussion Extra space with tab completion in ipython #42 How to stop ipython autocompletion to gen原创 2015-04-25 12:53:17 · 686 阅读 · 0 评论 -
Matplotlib notes
In pylab mode, not all commands that change a figure would triger the figure update. Only pyplot commands would. Directly change the property of an figure object e.g. ax.text(...) wouldn’t redraw the f原创 2015-04-15 17:16:49 · 556 阅读 · 0 评论 -
Python random
Notes: - random.randint(a, b) : generate a close range [a, b] - np.random.randint(low, higt): generate a open range [low, high) - np.random.random_integers(low, high): generate close range [low, hi原创 2015-04-11 16:10:07 · 570 阅读 · 0 评论 -
[-]image undistortion
http://dimitri-christodoulou.blogspot.com/2014/04/mixing-opencv-and-scikit-image.html http://mathematica.stackexchange.com/questions/5676/how-to-peel-the-labels-from-marmalade-jars-using-mathematica原创 2015-04-11 15:20:13 · 699 阅读 · 0 评论 -
python dict
LPTHW - Exercise 39: Dictionaries, Oh Lovely Dictionaries PyCon 2010: The Mighty Dictionary原创 2015-12-15 10:02:27 · 365 阅读 · 0 评论