zbar sdk not working on iphone simulator by using camera simulator

后端 未结 4 1430
轮回少年
轮回少年 2021-01-15 13:03

I have to support barcode scanning on my project. I\'m using zbar sdk for that.I have integrated the code and run using iphone simulator. I\'m using camera simulator for sca

相关标签:
4条回答
  • 2021-01-15 13:18

    Fixed It. It was the problem of barcode images. I tried few small barcode images and one worked.So try multiple small barcodes,and at last one will work. More Important the orientation of image should be like this. enter image description here

    0 讨论(0)
  • 2021-01-15 13:21

    Just as additional information :

    I drop the image on the simulator and use the two-fingers long tap to open them (as has been pointed out already) , but in my experience it seems that you need to have enough space around the images before zbar can identify them.

    So add enough white space around the image and it will probably start to work.

    0 讨论(0)
  • 2021-01-15 13:28

    Unless you are testing code paths for when a camera is unavailable, you will need an actual device to test code that uses the zbar sdk.

    0 讨论(0)
  • 2021-01-15 13:34

    you can test bar code on iPhone Simulator,

    1 - save the bar code to you simulator, open safari and drag drop the barcode image into safari and then long tap the image, I'll ask you to save the image.

    2 - run simulator and when on barcode scan screen press "optons+threefingres long tap" it'll open the gallery where you can select the saved barcode image, then It'll scan that image.

    0 讨论(0)
提交回复
热议问题