GithubHelp home page GithubHelp logo

Comments (4)

pataxis avatar pataxis commented on June 23, 2024

Hi @whittenator , thank you for your feature request!

Today there is no PTZ API in ACAP Native SDK and the one found in ACAP 3 SDK, axptz, will most likely not be migrated.

It's really good to have your use case and I will forward it as input to future APIs.

from acap-native-sdk.

whittenator avatar whittenator commented on June 23, 2024

Thanks for the info! Does the ACAP3 axptz allow you to control or listen to focus?

from acap-native-sdk.

pataxis avatar pataxis commented on June 23, 2024

It's handling pan-tilt-zoom operations and in that sense it could control focus by adjusting zoom.

I can mention that in the latest AXIS OS it's possible to call VAPIX from an ACAP application.

I think you posted in another thread that there might be latency problems calling VAPIX, but maybe that was from handling it from a server?

from acap-native-sdk.

whittenator avatar whittenator commented on June 23, 2024

@pataxis Yeah, we are using the VAPIX API to adjust focus on the Axis Q6215-LE in a Native SDK plugin we developed but we are noticing that it takes ~500-700ms for the focus to settle "close" to the value we are sending it. Our recursive algorithm is similar to this:

  1. void setFocus(int focus)
  2. bool pollForFocusUntilSetteled()
  3. contrastEnhance(cv::Mat Img)
  4. measureSharpness(cv::Mat Img)
    Repeat until sharpness is at the optimal value.

In step 2, we have timed it multiple times with various sleeps() between polls and it still takes ~500-700ms to settle on the focus value we have set. With such a delay, it makes our autofocus algorithm really slow as we are missing a lot of frames in those 500-700ms. Not sure if this is how long it takes the PTZ camera's focus feedback system to really achieve the value or if the VAPIX is delayed?

It would be fantastic if the images themselves had metadata of the zoom/focus they were captured at. Is there a possibility to enable this?

Thanks

from acap-native-sdk.

Related Issues (10)

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.