Is there a way to get the cvblobslib python interface working on windows? I have the opencv interface working after a lot of hassles. Any help would be appreciated.
Well, you can use pyblob. It is swig generated python wrapper for cvbloblib. Check below link:
code.google.com/p/pyblobs/
There is another library, cvBlob. It is also similar to cvbloblib.
code.google.com/p/cvblob/
It also has got a python wrapper.
https://github.com/oostendo/cvblob-python
Try whichever best suit you.
Related
I've read a lot of articles on PyObjC and Python.framework. Most of them seem to be outdated, so I'm really confused and still looking for a GOOD solution. Here is my question:
There is an Xcode iOS project written in ObjC and e.g. .py file. How should I call python methods from ObjC? E.g. execute python code, get the result and show it in UILabel.
Moreover I'm not sure PyObjC is what I'm looking for. If you know a good approach or a good article, please share it. Thanks
PyObjC is not going to do this for you. It's a wrapper library, where Python code wraps Objective C code, meaning that you can use Objective C objects in a Python script, not the other way around. As far as I know, there is not an Objective C library that wraps python code. The only resource I was able to find that discusses what you want to do is here, but it doesn't exactly seem like a reputable source.
I'm trying to write some code using OpenCV. My sensor is from Point Grey Systems, and it uses the FlyCapture API to grab images. I'd like to grab those images and do some stuff in OpenCV to them, using Python. FlyCapture is all C/C++, so I'm firing up SWIG to create the bindings. Am I reinventing the wheel? Do python bindings for FlyCapture already exist somewhere that I don't know about?
As of FlyCapture 2.11 there are official Point Grey / FLIR python wrappers. I've used the python 2.7 so far.
the pyflycapture2 is still available as well...
just started using this wrapper last week pyflycapture2
working well so far with my FireFly MV USB
Here's a new Cython wrapper I started for the FlyCapture V1 API:
https://github.com/kbrafford/pyfly1
It also has some wx.Python demos showing it working and allowing you to assess performance.
If the Python language is your only restriction, you may use the wrappers for FlyCapture from the JavaCPP Presets by calling the appropriate functions via Jython.
I'm currently looking at python because I really like the text parsing capabilities and the nltk library, but traditionally I am a .Net/C# programmer. I don't think IronPython is an integration point for me because I am using NLTK and presumably would need a port of that library to the CLR. I've looked a little at Python for .NET and was wondering if this was a good place to start. Is there a way to marshal a python class into C#? Also, is this solution still being used? Better yet, has anyone done this? One thing I am considering is just using a persistence medium as a go-between (parse in Python, store in MongoDB, and run site in .NET).
NLTK is pure-python and thus can be made to run on IronPython easily. A search turned up this ticket - all one has to do is install a couple of extra Python libraries that don't come by default with IronPython.
This is probably the easiest way for you to integrate. Otherwise, you'll have to either run Python as a subprocess, which sounds complex, or run Python as a server that answers your requests. This is probably the most scalable, though complex, approach. If you go this way, consider Twisted to simplify the server code.
But do try IronPython first...
I don't know why you have a problem with IronPython. you can still use any and all nltk calls there.
To answer your question about porting a Python class into C#: try compiling your python code into an EXE. This creates a DLL with all your python classes in it. This is something that has been around for a while and it has worked like a charm for me in the past
Just an Idea
How about running Python behind as a server, and connect it from .NET with socket?
Since NLTK loading take time and better load it in advance anyway.
Recently I asked about scripting FruityLoops or Reason from Python, which didn't turn up much.
Today I found LMMS, a free-software FruityLoops clone. So, similarly. Has anyone tried scripting this from Python (or similar)? Is there an API or wrapper for accessing its resources from outside?
If not, what would be the right approach to try writing one?
It seems you can write plugins for LMMS using C++. By embedding Python in the C++ plugin you can effectively script the program in Python.
Look at http://www.csounds.com/ for an approach to scripting music synth programs in Python.
You can connect pretty much everything in LMMS to a MIDI input. Try that?
As per the title. I am trying to create a simple scater plot, but haven't found any Python 3.0 libraries that can do it. Note, this isn't for a website, so the web ones are a bit useless.
Maybe you can use Python Imaging Library (PIL).
Also have a look at PyX, but this library is meant to output to PDF, ...
The GChartWrapper (http://pypi.python.org/pypi/GChartWrapper/0.7) does work for py3k
Have you looked at the Google Chart Wrapper?
http://pypi.python.org/pypi/GChartWrapper/0.7
I would call Gnuplot from Python. No need to reinvent the wheel in Python, Gnuplot is already there and already has a Python interface.
The current development version of matplotlib should work on Python 3.