-
Notifications
You must be signed in to change notification settings - Fork 1
Rust binding vs python #1
Comments
I would say the bindings are stable and pretty much finished by this point; only I've not tested it on OS X but it will look for |
Ok, that part worked- sorry for the simple question but in the other languages I've tried (python, VS C++) it look locally. Question two: When I build the program you have on the main rust-touptek page, it gives me the result:
Ok, so remove the "," and:
I looked for obvious errors in the rust-touptek source but didn't find them. Can you assist? |
I forgot to update README after some API changes--should be fixed now. |
Ok, this solved the compiling and running but when I run it there is no output- by putting in println! statements, it seems the Match event... line is never reached. Short of learning Rust and figuring out how to debug this (which I don't have the time for) do you have any suggestions? It seems the event it is looking for isn't appearing. Is there a simple way to figure out what events (if any) are being |
I'm really sorry--I should have tested it before committing. I've now verified that the example works with a real camera. Otherwise, you can replace the |
The code appears to be working now, but I can't be sure because I can't see On Fri, Nov 6, 2015 at 7:58 PM, whitequark notifications@github.com wrote:
Michael Lefsky If I were creating the world I wouldn't mess about with butterflies and |
That's reasonable. See the updated README. |
Mr. Quark, Thanks for updating the program- it seems to be working (although I need to Based on what I've seen on your website, it seems you are heavily involved I have a modest sized project that could use your rust interface to control The project involves the building of a scanner for aerial photography. I am I have been using a set of python bindings to the touptek library that Jake I can think of two ways that your rust program could be integrated with my
But honestly, I don't have the background to evaluate these ideas properly. Is this something you would consider participating in? In any case, thanks Michael On Wed, Nov 11, 2015 at 3:37 AM, whitequark notifications@github.com
Michael Lefsky If I were creating the world I wouldn't mess about with butterflies and |
On 2015-11-11 20:23, lefsky wrote:
I've tested the very example code with my camera and it correctly
True. In fact I am currently working on software and firmware
This is to be expected. In fact the Rust bindings used to run about as The application that I am using these bindings for can stream imagery
This is possible, but fragile and fairly contrived, as well as
This would be much simpler, and the time required to implement and whitequark |
Thank you for your offer. Before we proceed, I verified that your program M On Wed, Nov 11, 2015 at 10:42 AM, whitequark notifications@github.com
Michael Lefsky If I were creating the world I wouldn't mess about with butterflies and |
Sure |
I think I can make do with just a few changes and specified parameters.
toupcam_ports(HToupCam) Toupcam_OpenByIndex(unsigned index);
So I'd like to pass a text file with the following fields: camera_index, ExpoTime, ExpoAGain, Filename and return an uncompressed image. I hope this is enough information. M On Wed, Nov 11, 2015 at 5:07 PM, whitequark notifications@github.com
Michael Lefsky If I were creating the world I wouldn't mess about with butterflies and |
Yeah that would be enough. I'll do it once I have time. |
Ok, I will do this today for you. |
Done: https://github.com/whitequark/touptek-acquire. Please file any remaining issues at that repository. Note that I've moved and no longer have access to a Touptek camera, so I could not run the program to verify that it works (but it should). |
The program does work and appears to be robust. Unfortunately, it is taking about 2 seconds per image rather than the 1 33.34% touptek-acquire touptek-acquire [.] 1/3 of the time is in libtoupcam.so (which isn't under your control) and Is there some obvious way to accelerate the program? If not, then what Thanks. M On Thu, Nov 26, 2015 at 7:34 PM, whitequark notifications@github.com
Michael Lefsky If I were creating the world I wouldn't mess about with butterflies and |
Are you sure you've built it with optimizations ( |
Ah, of course not, since that's what I wrote in README. I have updated that. |
Mr. Quark, Just cut the time in half, and 78% of the time is spend in the Thanks so much for all your help M On Wed, Dec 9, 2015 at 7:24 PM, whitequark notifications@github.com wrote:
Michael Lefsky If I were creating the world I wouldn't mess about with butterflies and |
@lefsky Did you ever use this code for something interesting? I am curious. |
I adapted your code to run multiple cameras with the ability to read in a I'll let you judge if that's interesting. M On Tue, Jul 12, 2016 at 8:52 AM, whitequark notifications@github.com
Michael Lefsky If I were creating the world I wouldn't mess about with butterflies and |
I am a scientist who needs access to the touptek library but would prefer not to work through C++. I am working with a set of bindings through python but its behavior is unpredictable, possibly because the callback mechanism isn't working very well.
How stable is your set of bindings in Rust? I don't know anything about Rust but I was able to get it installed under OSX and was able to build the touptek library but when I tested it, it was unable to link to the touptek sdk library. Does it need to be in a specific directory?
The text was updated successfully, but these errors were encountered: