pypylon
pypylon copied to clipboard
How to add pylon viewer vtool recipe file in to python.
hello sir. we just testing the pylon viewer vtools for barcode reading from basler camera . we just add the the vtools objects and configurate them. we can get the result in pylon viewer application. so how we can export the result or how can we integrate the vtools in python code.
thank you.
@sulaimansiddiqi233 Hi, to use the pylon vTools you have to use the pylon C++ Data Processing API now. There will be a Python API for using the vTools in future, too, but this is nothing we can provide you now. Of course, you may build your final app with C++ and simply run the executable from python - this could be a workaround for the moment. Regards
thank you sir . so could me send a simple code of C++ that I can load recipe file of vtools and save the result in a file.
@sulaimansiddiqi233 Hi, well, you have to either order a free evaluation license to be able to run vTools in API (with limitted execution time and for limitted period), or buy a runtime license (no limitations) for the vTool(s) you want to use. Then I recommend creating your own recipe for your camera and your use case and refer to e.g. the barcode SDK sample part of the pylon C++ Data Processing SDK - it should be a piece of cake to get things running then. For ordering an evaluation license, check out that page: https://www.baslerweb.com/en/products/basler-pylon-vtools/pylon-vtools-inquiry/
hello. yes I add the demo license and it works and I also create my recipe file . now i want a code for c++ that i can run the recipe file and get the results.
@sulaimansiddiqi233 Hi, you cannot run the vTools/recipes in the API with a demo license. The demo license is only for testing the pylon Viewer/Workbench. Please refer to my previous posting. Cheers
ok thank. we can not afford the license for now. we will wait for the python connection API then we can try it. could you send us updates if the python recipe API activated. thank you.
@sulaimansiddiqi233 ok, I'm glad I could help. As said, you can request a free evaluation license for 180 days. Cheers.
@sulaimansiddiqi233 : you dodnt need to wait until pypylon version that supports natively vTools. if you wanted use pylon vTools in pypylon right now, you can write a small wrapper to convert np::ndarray to pyloyn image and pass the pylon image to vTools/recipes. After purchasing a valid license, turn to Basler support team, to get sample code for the wrapper.
hello sir.
we just buy the pylon barcode reader basic with the USB dongle. so now how I can run it with c++ code and make wrapper to send the data from c++ to python.
OK, fine. Send me your email ID via private message, I will write the wrapper
OK, fine. Send me your email ID via private message, I will write the wrapper @SMA2016a thank you for your replay. Email Id : [email protected] best regards
@SMA2016a thank you for your replay. Email Id : [email protected] best regards
Thanks for sending your email. I am working on writing the wrapper. Get back to you soon.
@SMA2016a hello Sir/Madam . Is there any updates about wrapper.
best regards
@SMA2016a I have a similar project that needs a sample wrapper to be written from C++ to show on python, and it uses the measurement vtool. I have an evaluation license that allows the vtool to be used for the application code. can I get a sample code sent to me as well. Thanks.
sure, it is near to finish. Will you also send me an PN, please.
@SMA2016a Hello , PN? do you mean phone number ?
@SMA2016a my email is [email protected] thanks. look forward to your response.
I meant private message. No problem.
@SMA2016a hello . I could not find your email. so can you send an email to me. then we can continue from there. email id .: [email protected] best regards
@SMA2016a thank you for your support we just got the code but we could not run it with MinWG or visual . so could we arrange an online meeting to check the problem and solve it . thank you.