Coder Social home page Coder Social logo

Comments (7)

Zekiah-A avatar Zekiah-A commented on August 20, 2024 1

Having installed the opencv dependencies beforehand, and commenting out most of the logging code, I have managed to get it working without any special privileges, so it seems to be possible.
image

More investigation will be needed in order to find a way to do this without having to go into blender superuser at all

from blendarmocap.

cgtinker avatar cgtinker commented on August 20, 2024

As blenders plist file doesn't include camera permissions, blender has to be started with enhanced privileges.

On windows it's only required to right click the application and to run it as admin.
On mac and also on linux, once you started blender using the terminal and aslong the terminal has camera permissions, starting it with sudo isn't required. I'd like to see a proper option for every system swell, but so far I haven't been focussing on that.

If blender would include opencv by default, all of this wouldn't be an issue. If you know a way to get camera permissions by default - let me know.

from blendarmocap.

gabrielmontagne avatar gabrielmontagne commented on August 20, 2024

@cgtinker , makes sense. And, tbh, thanks for focusing first on the real features. I wanted to raise the issue here to have it acknowledged. I wish I had deeper knowledge about best practices around this to propose something myself.

from blendarmocap.

cgtinker avatar cgtinker commented on August 20, 2024

Having installed the opencv dependencies beforehand, and commenting out most of the logging code, I have managed to get it working without any special privileges, so it seems to be possible.
image

More investigation will be needed in order to find a way to do this without having to go into blender superuser at all

interesting - did you run blender via the terminal (without sudo) or actually just opened the application via the inspector?
looks like linux that's why I'm asking.

from blendarmocap.

Zekiah-A avatar Zekiah-A commented on August 20, 2024

Having installed the opencv dependencies beforehand, and commenting out most of the logging code, I have managed to get it working without any special privileges, so it seems to be possible.
image

More investigation will be needed in order to find a way to do this without having to go into blender superuser at all

interesting - did you run blender via the terminal (without sudo) or actually just opened the application via the inspector? looks like linux that's why I'm asking.

Opened it with the system start menu, but my small trick still works if I have no sudo, and run with the terminal.
Screenshot from 2022-02-09 23-07-54

Without my small patch to remove logging, this doesn't work though, so maybe that's the issue??

from blendarmocap.

cgtinker avatar cgtinker commented on August 20, 2024

At the moment I'm reworking my import system entirely - mainly to fix other bugs. While doing so, I actually stumpled across the fact that elevated privileges aren't required in all cases.
Actually, I think it may be possible to run BlendArMocap without enhanced privileges on Linux and Windows. (Also for installing dependencies but I'm still facing some bugs.)

On Mac camera privileges from the system are required - so it's already enough to start it from the terminal with ./Blender

from blendarmocap.

cgtinker avatar cgtinker commented on August 20, 2024

Try the updated version from the main branch. Installing dependencies still requires admin privileges, on MacOS blender has to be started using the console.

Admin requirements shouldn't be necessary for tracking / transfering on any os.

from blendarmocap.

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.