locked
Auto focus and auto capture feature for bar code and QR code scanning app on windows tablet 8.1

    Question

  • Hi,

    We are making an bar code and QR code scanner app for windows surface tablets 8.1. We have used ZXing library and implemented by keeping "Scan Code" button on UI.

    But we want auto focus and auto capture feature. Also, before implementing auto focus, we must implement image recognition of bar code and QR code automatically. 

    Is such feature available in .net framework for winRT apps on tablets?

    Thursday, November 27, 2014 7:09 AM

Answers

All replies

  • Hi,

    We are making an bar code and QR code scanner app for windows surface tablets 8.1. We have used ZXing library and implemented by keeping "Scan Code" button on UI.

    But we want auto focus and auto capture feature. Also, before implementing auto focus, we must implement image recognition of bar code and QR code automatically.

    Is such feature available in .net framework for winRT apps on tablets?



    • Edited by Vaibhav Matle Wednesday, November 26, 2014 7:13 AM
    • Merged by Kristin Xie Thursday, November 27, 2014 9:26 AM the same issue
    Wednesday, November 26, 2014 6:34 AM
  • I think this thread should be in the windows store apps forum.


    Hope that helps
    Please don't forget to upvote posts which you like and mark those which answer your question.

    Wednesday, November 26, 2014 9:39 AM
  • Assuming the device supports it, autofocus and capture control can be done with the MediaCapture API see Capturing or rendering audio, video, and images

    To filter the image recognition you'll need to write a Media Foundation Transform (MFT) calling your ZXing code.

    See the Media extensions sample for examples of writing and using MFTs.

    --Rob

    Tuesday, December 2, 2014 6:20 AM
    Owner
  • Hi Rob,

    Thanks for your timely reply. We will start recording video using media capture element once application launches. So Our requirement is, to process every captured  video frame to scan QR code and bar code automatically.

    Is it possible to do this by using MFT which is suggested by you? Also it will be appreciable if you can give code sample which tells us about integrating MFT with Zxing code.

    Tuesday, December 23, 2014 12:42 PM
  • Yes, a media extension MFT can filter each frame. See the example I linked. You'll have to initiate zxing yourself. I'm not familiar with that library and don't have code which uses it .
    Tuesday, December 23, 2014 2:01 PM
    Owner