I am currently developing a Camera Library for Com...
# feed
k
I am currently developing a Camera Library for Compose Multiplatform, utilizing CameraX on Android and AVCamera on iOS through UIKit Kotlin Interop. It’s still in the early stages trying to figure out what should be the ideal structure, but I invite you to check it out. Please feel free to share your suggestions, submit feature requests by adding issues, and show your support. https://github.com/Kashif-E/CameraK
👍 8
b
Not calling this project "Kamera" feels like a missed opportunity. But I guess there's already a Kotlin-based project with that name. Oh well! 😄
4
s
Doesn’t feel really like Multiplatform with only iOS and Android targets. 👀 Utilizing the camera on JVM can be done with OpenCV for example. I guess with OpenCV it could also be made targeting all the native targets.
k
Nice idea, but for now i am trying to get the design right once that’s done then i will add more targets @Stefan Oltmann
a
How will you know if it is the right design if you don’t know the targets?
2
k
@Arjan van Wieringen i dont know but it will eventually
Its better to start small and grow eventually instead of trying to to do everything at once and not being able to do anything at all
👍 2
s
I don't think that applies here, because your design could be tailored specific to iOS & Android and it may eventually turn out that it does not fit Camera handling in general.
k
@Stefan Oltmann thats a valid point, what would you suggest ? I am fairly new to designing libraries
s
I would look at all platforms I want to support, figure out how the camera libraries work and see if I can find a common interface. Upon that I would lay out the design of my lib.
k
@Stefan Oltmann thanks for the suggestion i would look into it today, can i ask you for guidance if need be?
s
Of course you can ask in public here. I'm not really experienced with camera libs. Years ago I managed to get OpenCV camera capture to work on an old project - but I don't have the source (switched employer).
k
No issue, i have seen the ashampoo libs you have been working with
🙂 1