×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Nov 2013
    Posts
    3

    Need to implement auto image capture in windows phone 8

    Requirement - Develop QR Reader app
    • When the app launches camera should be initialized.
      If the phone is kept still for few seconds, the camera should auto click without user doing anything (no button click or tap)
      The captured image should be shown on the app as well as available for decoding it


    Thanks

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2011
    Location
    la bouexiere, france
    Posts
    474

    Re: Need to implement auto image capture in windows phone 8

    ?? the question is???
    Windows 8, Windows phone 8 or Nokia Asha developer? Go to DVLUP

  3. #3
    Registered User
    Join Date
    Nov 2013
    Posts
    3

    Re: Need to implement auto image capture in windows phone 8

    Question is whether auto image capture is possible or not (If the phone is kept still for few seconds, the camera should auto click without user doing anything)? If yes what are the APIs to be used for it?
    Thanks

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2011
    Location
    la bouexiere, france
    Posts
    474

    Re: Need to implement auto image capture in windows phone 8

    Yes.
    You have just to use a timer or a dispatcherTimer( if you need acces UI elements).
    Windows 8, Windows phone 8 or Nokia Asha developer? Go to DVLUP

  5. #5
    Registered User
    Join Date
    Nov 2013
    Posts
    1

    Re: Need to implement auto image capture in windows phone 8

    If you really want to determine is the phone kept still you could use sensors API to watch acceleration and/or gyroscope data. And the do the decision according to some thresholds is the phone _enough_ still.

  6. #6
    Registered User
    Join Date
    Nov 2013
    Posts
    3

    Re: Need to implement auto image capture in windows phone 8

    Thanks for your reply. I am very new to phone programming. If possible can you please give me a link from where I can get more idea on :
    1) sensor APIs that u mentioned
    2) if camera gets view of QR Code image then only auto clicks.

    Thanks in advance

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2011
    Location
    Portugal
    Posts
    948

    Re: Need to implement auto image capture in windows phone 8

    Quote Originally Posted by sk20 View Post
    2) if camera gets view of QR Code image then only auto clicks.
    What you are looking for is to scan barcodes and QR codes right? That isn something that the phone does for it self. Just press the search button, and then select the option on the bottom that resembles an eye. It will activate the scan for qr codes.

    If you want to integrate that with your apps, its not possible. You will have to implement everything by yourself including the scan of the image for codes and decode it. I suggest that you take a look at third party or Opensource libraries for that. For example this one: http://zxingnet.codeplex.com/

  8. #8
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    511

    Re: Need to implement auto image capture in windows phone 8

    Basically what you would do is register to the PreviewImageAvailable Event of the AudioVideoCaptureDevice and feed that Preview Image to ZXing.net for Analysis.

Similar Threads

  1. Replies: 1
    Last Post: 2013-02-14, 17:47
  2. Replies: 2
    Last Post: 2013-02-07, 10:58
  3. Replies: 9
    Last Post: 2012-08-16, 07:52
  4. how to capture screen on windows phone
    By csu_nj in forum Windows Phone General
    Replies: 7
    Last Post: 2012-02-09, 13:40
  5. HOW TO CAPTURE AN IMAGE ON PHONE AND PUT INTO A BUFFER.....
    By srinivasreddy501 in forum Mobile Java General
    Replies: 2
    Last Post: 2009-12-12, 07:13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×