pkmx / lcamera Goto Github PK
View Code? Open in Web Editor NEWA camera app using the new camera2 API in Android Lollipop
A camera app using the new camera2 API in Android Lollipop
If I try to start the app from the app it crashes on my Nexus 10 manta.
Android Version: 5.0
Build number: LRX21M
Kernel version: 3.4.67-gf299445
L Camera version: 1.0
[---------------------------------------------------- LOGCAT ------------------------------------------------------------]
--------- beginning of main
W/PropertyValuesHolder( 935): Method setBrightness() with type int not found on target class class us
W/PropertyValuesHolder( 935): Method getBrightness() with type null not found on target class class us
W/AudioTrack( 401): AUDIO_OUTPUT_FLAG_FAST denied by client
--------- beginning of system
I/ActivityManager( 401): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=pkmx.lcamera/.MainActivity (has extras)} from uid 10056 on display 0
W/art ( 401): Long monitor contention event with owner method=boolean com.android.server.am.ActivityManagerService.finishActivity(android.os.IBinder, int, android.content.Intent, boolean) from ActivityManagerService.java:4465 waiters=0 for 138ms
W/InputMethodManagerService( 401): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@37303c1b attribute=null, token = android.os.BinderProxy@325ea745
W/LocationOracleImpl(16537): Best location was null
Make it optional to save DNG of every capture, be it normal or burst.
A jpeg (manual selection of quality of compression would be a welcome) should be the default.
Looking in your code I saw this request.set(JPEG_QUALITY, 95.toByte)
The photo size (in jpeg) is smaller than the size of the same photo captured with stock Camera, did you find some problems to rise up quality as request.set(JPEG_QUALITY, 100.toByte)?
Investigate ways to support 60fps video recording on the Nexus 5.
I asked a user running the Moto g soak test to try the app and it also crashed.
Maybe it would be helpful for you to release an apk that just dumps the camera data so you could build a database.
Or even another very simple apk without raw support and other bells and whistles, just jpeg with manual shutter and iso to test other devices. This way you could find if there are phones with limited support for some of the functions
When focus is manually selected and the image is captured, the focus resets resulting in a blurred image.
To replicate the problem easily, select a short focal length and shoot some small object, the object will be clear in the viewfinder but when you tap the click button it will blur and the image will also come out to be blurred.
When Installing a Parse error appears.
Double check that the downloaded apk is not corrupted. I've downloaded many times with different browsers.
I've got many reports that L Camera currently does not work on Nexus 7 (2013) running Lollipop preview. If you have a Nexus 7 running LPX13D, please post the relevant output from adb logcat
with verbose logging (Make sure you set adb shell setprop log.tag.lcamera VERBOSE
in advance) so I can see if this is a problem with the app or that the Nexus 7 simply doesn't support the new API yet.
I have no idea whether this is the 'standard' error for an unsupported device, but as I didn't see an issue about this, hereby reporting it:
java.lang.RuntimeException: Unable to start activity ComponentInfo{pkmx.lcamera/pkmx.lcamera.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'float java.lang.Float.floatValue()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2305)
[...]
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'float java.lang.Float.floatValue()' on a null object reference
at scala.Predef$.Float2float(Predef.scala:359)
at pkmx.lcamera.MainActivity$$anon$9$$anon$10.<init>(MainActivity.scala:418)
[...]
In build lrx21o 65Mb bit rate video cause instant app crash
Option to disable saving DNG files
Prevent the device from going to sleep mode
It would be good to have 6 mpx option because most people prefer 16:9 images.Tnx
Now that we have 30fps 8MP video, 8MP jpeg or other format burst would be very useful.
Number of shots can be dependent upon a pre-specified number or click the capture button to start and stop.
I use iso fixed (100) and I take a bracketing: the photos are -3ev,-2ev,-1ev,0ev,0ev,+1ev,+2ev
So +3 EV missing and +0ev is repeated. This happens with any shutter speed option.
I'm really not sure that 0 is repeated, maybe it is +1 repeated, but I'm sure that with this version +3ev is missing (the more overexposed photo). With 4 days ago apk version I remember it was ok
Can you add simple torch toggle?
4K is very cool!
But I want to record 1080p video too (of course using this app for manual focus)
Thanks!
Would be great if burst could run for longer than 7 shots, eg press shutter to start burst mode and shutter again to stop.
Thanks, Barry
Entering settings and touching the very bottom of the settings bar at the same place where burst should be changes to burst
Sometimes when i start the app the screen is completly black or white and i need to take a shot to make it normal
Far away objects can, however, be properly focused on using auto-focus mode.
if it possible could make easyer to use manula controles on go, when recording. similar to lumia camera interface
Add an option to shoot with flash, and if possible, flash bracketing.
Tapping the ISO value in exposure menu switches between photo and video capture.
With moving objects , the manual mode does not allow you to take pictures .
An example are the trees blowing in the wind in a photo at night.
Magic Lantern (http://www.magiclantern.fm) provides cool features to DSLRs, and its open source, they have source code (https://bitbucket.org/hudson/magic-lantern). So I guess you can borrow some features from them.
Like:
-Zebras for under/over exposed areas.
-Focus peaking for quickly checking focus.
-Trap focus.
-Follow focus.
-Rack focus.
I'm looking for the documentation on the camera API, but I can't seem to find it though. Is it possible to change the compression methods of the sensor data before saving it as jpeg or h.264? Using these formats is great for a small sd card size, but in order to retain the detail in the highlights/shadows, logarithmic compression is needed.
Is it possible?
If possible 25 fps option for video and a histogram for the live view would be great.
Would be nice to have a 16:9 recording at 3264x1836.
Is it possible to add custom white balance settings (not just presets, but real one like set from gray card)?
I know that with dng I don't need that but for quick jpg output it will be awesome :)
https://www.youtube.com/watch?v=W6zI5CAciHM saw this guy on youtube. He managed to enable 60 fps and 120 fps recording. Something you can work with?
Hoping you are able to incorporate slo mo into this camera app.
Hello,
I was thinking, it is relatively simple to add Dash - Cam support / Security Cam support:
1.) Add option: Dash Cam
----Enables recording to videos broken by 1GB size or 2GB each. When video hits 1GB size, it creates a new file and continues recording to next file (seamlessly)
----When device is detected near full (or select-able file # limit) app will automatically overwrite oldest file and continue recording until shut off or some external signal (such as unplug from charger)
2.) BONUS for security cam: allow for selectable file save location. Then a network drive can be mounted with good quality Wifi and video is saved remotely on NAS with large storage.
3.) BONUS auto start up upon detection of "dock mode" of power plug. This will allow for reset if power is lost and auto recording.
A comparable 4K quality security camera is like 1000's of dollars, this app would put them out of business!
And there are no such high resolution dash cameras.
Love L Camera. Video quality is amazing and it's actually easier to use then the Google camera!
Hello pkmx,
I wanted to achieve 60 fps video usiung your guide. i replaced the camera lib to _60hz.so. G camera crashed. But the lcamera crashed at startup too, even after rebooting phone. So, i replaced the lib to original and all cam apps are working now as normal. I'm using the lpx21o build, so it may be caused by build number.
I know the photos are saved (somewhere) in the lcamera(or something like that) folder, which I cannot find using my Cabinet(Beta) Explorer. Could you do something about saving the photos somewhere easier to find? Also, being able to rotate the camera would be nice.
I know it's pretty early but I made a video yesterday which was perfect, the only thing missing was a snap button so I could take some moments during the video.
Tried installing the prebuild apk and it throws parse error.
Please fix, really anxious to try this out.
Nexus 5
Can you add simple camera rotation?
I tried to install new version. However i got a "Parse error."
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.