Software a'la CHDK for Android smartphones - Non-CANON cameras development - CHDK Forum

Software a'la CHDK for Android smartphones

  • 2 Replies
  • 96 Views
Software a'la CHDK for Android smartphones
« on: 06 / November / 2022, 06:23:22 »
Advertisements
Hello guys!


It's been a few years since my last contribution to this forum and to the CHDK but I still keep it in my best memories.


Since my old sx130is and my even older s2is are broken I moved to using only smartphone camera for everyday use. However, I still miss the broad spectrum of functions the CHDK provide. Thus – I started to wonder whether anything close to CHDK exists for smartphones?


The key functionalities I would like to have are:


- scripting (in Lua would be the best <3)
- long exposure


That being said, I haven't found anything that acheives these two goals.


I am on my way to write some program to get the (pseudo) long exposure possible on Android. I develop it in Processing framework based on Java. This part seems to be easy.


However, my question is – what do you guys think about Lua? I know there are a few Lua interpreters written in Java thus they possibly could be used with Processing. Given this adding additional Lua functions for shooting and so on could make basig camera automation on Android possible.


Regards and glad to talk with you again,


Pawel
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

*

Offline December172

  • *
  • 33
  • A student interested in the Canon P&S hack
Re: Software a'la CHDK for Android smartphones
« Reply #1 on: 06 / November / 2022, 07:56:29 »
- scripting (in Lua would be the best <3)
- long exposure
To support scripting,you can see this: luajava(https://github.com/jasonsantos/luajava) lib,and write some code to convert lua functions to java type.Just add some CHDK provided function into java code,other lua language's things are in the luajava lib.
For long exposure supporting,I've heard some type of phone can support it in native(~64s),maybe in newer Android have some functions to control it.But it's not convenient like in CHDK.
Canon PowerShot ELPH 180 (IXUS 175).

*

Offline reyalp

  • ******
  • 13792
Re: Software a'la CHDK for Android smartphones
« Reply #2 on: 06 / November / 2022, 14:53:00 »
However, my question is – what do you guys think about Lua? I know there are a few Lua interpreters written in Java thus they possibly could be used with Processing. Given this adding additional Lua functions for shooting and so on could make basig camera automation on Android possible.
Lua is not terribly popular these days, if you are writing something from scratch for a wide audience, you might consider JavaScript (possibly including things that compile to JS like typescript) instead. I personally prefer Lua as a language, but millions of people write node apps etc. these days, and embedding JS interpreters in mobile apps is rather common (a quick google suggests some options)

Of course, if you're doing this as a fun project for yourself, you should user whatever you want  :D
Don't forget what the H stands for.

 

Related Topics