Accessing device camera?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
TypicalHB
Prole
Posts: 8
Joined: Sat Nov 23, 2019 4:20 am

Accessing device camera?

Post by TypicalHB »

Is it possible to access a devices camera using Love? If not, is there any libraries that allow me to access the camera that will work with love?
MrFariator
Party member
Posts: 512
Joined: Wed Oct 05, 2016 11:53 am

Re: Accessing device camera?

Post by MrFariator »

I don't think love has any built-in way to access device camera, but you could load a C library via luajit FFI. With some googling there are libraries like OpenCV that'd do the job, but might not hurt to search around a bit more if that's a bit too large of library for you.
User avatar
AuahDark
Party member
Posts: 107
Joined: Mon Oct 23, 2017 2:34 pm
Location: Indonesia
Contact:

Re: Accessing device camera?

Post by AuahDark »

These kind of thing entriely depends on platform. In mobile, if user didn't grant you Camera permission then there's nothing you can do.
Profile. Do you encounter crashes in LÖVE Android and wanna send me logcats? Please hit me up in LÖVE Discord and send the full logcat file!
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 99 guests