Git Product home page Git Product logo

Comments (4)

kefniark avatar kefniark commented on May 31, 2024

As far as I know it is not possible in pure Unity. The auto focus is supposed to work by default.

You can try to add those kind of xcode, java plugins to add device specific operation, but it's up to your implementation and be careful about other device compatibility and later maintainability.

from unitybarcodescanner.

dyoxyne avatar dyoxyne commented on May 31, 2024

I tested it and the auto focus was not working by default with a S7.
I also compared with the old qr code scanner plugin with the same phone, the auto focus was working.

I will do more research / test on it today.

from unitybarcodescanner.

dyoxyne avatar dyoxyne commented on May 31, 2024

By the way, I found this: https://forum.unity3d.com/threads/webcamtexture-on-android-focus-mode-fix.327956/ and https://feedback.unity3d.com/suggestions/better-webcamtexture

It seems that it is IMPOSSIBLE without any hack to set some parameters for the camera only by using WebcamTexture / Unity C#.

from unitybarcodescanner.

HertWili avatar HertWili commented on May 31, 2024

it is impossible to set autofocus by unity's webcamtexture component, especially on Samsung device and Nexus device.but maybe this plugin( https://www.assetstore.unity3d.com/en/#!/content/56083 )on assetstore can help us ,it supports autofocus by publisher's native camera tool.

from unitybarcodescanner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.