MattsProjects / barcode_reader

zxing-based barcode reader using Basler cameras
Apache License 2.0
1 stars 0 forks source link

call barcode reader class from ptyhon #1

Open sulaimansiddiqi233 opened 2 years ago

sulaimansiddiqi233 commented 2 years ago

hello dear Sir

We just trying to use your basler barcode_reader prject but we do not have basler camera and we want to try it by sending img . The img will be sent from python code to c++ (class BarcodeReader) and c++ will return the result. so could you help us to make this done.

thank you.

MattsProjects commented 2 years ago

Hi there, The normal Pylon SDK should have a sample showing the CImagepersistence class for loading an image from disk into a CPylonImage image. In theory it should be possible to then pass this image to the rest of the code like the one grabbed from the camera.