pypylon icon indicating copy to clipboard operation
pypylon copied to clipboard

How to add pylon viewer vtool recipe file in to python.

Open sulaimansiddiqi233 opened this issue 2 years ago • 25 comments

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. image thank you.

sulaimansiddiqi233 avatar Jul 12 '22 11:07 sulaimansiddiqi233

@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

m-binev avatar Jul 13 '22 12:07 m-binev

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 avatar Jul 13 '22 12:07 sulaimansiddiqi233

@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/

m-binev avatar Jul 13 '22 13:07 m-binev

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 avatar Jul 13 '22 14:07 sulaimansiddiqi233

@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

m-binev avatar Jul 13 '22 14:07 m-binev

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 avatar Jul 13 '22 14:07 sulaimansiddiqi233

@sulaimansiddiqi233 ok, I'm glad I could help. As said, you can request a free evaluation license for 180 days. Cheers.

m-binev avatar Jul 13 '22 14:07 m-binev

@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.

SMA2016a avatar Aug 22 '22 07:08 SMA2016a

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.

sulaimansiddiqi233 avatar Nov 03 '22 08:11 sulaimansiddiqi233

OK, fine. Send me your email ID via private message, I will write the wrapper

SMA2016a avatar Nov 04 '22 00:11 SMA2016a

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

sulaimansiddiqi233 avatar Nov 04 '22 06:11 sulaimansiddiqi233

@SMA2016a thank you for your replay. Email Id : [email protected] best regards

sulaimansiddiqi233 avatar Nov 07 '22 11:11 sulaimansiddiqi233

Thanks for sending your email. I am working on writing the wrapper. Get back to you soon.

SMA2016a avatar Nov 07 '22 19:11 SMA2016a

@SMA2016a hello Sir/Madam . Is there any updates about wrapper.

best regards

sulaimansiddiqi233 avatar Nov 14 '22 09:11 sulaimansiddiqi233

@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.

Mechamon avatar Nov 15 '22 15:11 Mechamon

sure, it is near to finish. Will you also send me an PN, please.

SMA2016a avatar Nov 15 '22 17:11 SMA2016a

@SMA2016a Hello , PN? do you mean phone number ?

sulaimansiddiqi233 avatar Nov 15 '22 18:11 sulaimansiddiqi233

@SMA2016a my email is [email protected] thanks. look forward to your response.

Mechamon avatar Nov 16 '22 08:11 Mechamon

I meant private message. No problem.

SMA2016a avatar Nov 16 '22 17:11 SMA2016a

@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

sulaimansiddiqi233 avatar Nov 16 '22 18:11 sulaimansiddiqi233

@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.

sulaimansiddiqi233 avatar Nov 20 '22 09:11 sulaimansiddiqi233