almalence / opencamera Goto Github PK
View Code? Open in Web Editor NEWOpen camera project - multi-functional camera application for android.
License: Other
Open camera project - multi-functional camera application for android.
License: Other
Dear developers.
There are some Android phones (such as my Samsung xCover 3) that are "lazy" in updating the GPS information when taking photos, i.e. the phone doesn't refresh the new location information every time a new photo is taken, but instead will use the previous location the phone fetched, say, maybe ~15 minutes ago.
It may be a method to save battery life, but the result is that if user is moving (walking, cycling, driving) and taking photos frequently the coordinates are not updated and all the photos will end up having the same GPS location with huge error in the location.
Is it possible to program OpenCamera to force GPS location update every time the app is opened or with some preset time interval while the app is running?
On Nexus 5 it's possible to record video with resolution higher than 1920x1080 but in 4:3 ratio (2592x1944). I'd love to be able to record in 2592x1458 (16:9) or other aspect ratios.
Similarly for photos (e.g. crop to 3:2, 16:9, 1:1, etc.).
Seems like the master repository is updated for Android L. I want to get source that I can use for JellyBean or KitKat devices. Can you please help me to get that.
Can you Tell me How to Compile the source code... What all libraries to be Added And Please Tell me why the Application stiops in the Bluestacks Emulator
I have migrated this project from Eclipse to Android Studio.
I am getting this error with
ndk {
moduleName "bento4"
}
Error:(12, 0) Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin. For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental. Set "android.useDeprecatedNdk=true" in gradle.properties to continue using the current NDK integration.
I have also set android.useDeprecatedNdk=true in my gradle.properties
Kindly help me solve this issue at the earliest. Thank you :)
Unable to compile the code
I set the storage to extend card ,
when i wanna take photos by 3rd app like weixin
it can't load the photos have taked
Hello, when i click to open OpenCamera, i will get main screen on my Sony Xperia Z Phone. How can i fix this problem? I'm using 4.4.4 Kitkat stock rom and my device not rooted
This is cm camera source code.
CyanogenMod/android_packages_apps_Camera2@07c1b42
They make navigation bar transparent.
Hope can add to a better camera :)
Would it be possible to add some audio level indicators on the GUI? It doesn't seem like something too difficult to do.
Hello all,
Just wanted to inform you of a possible bug? It appears the screen wakelock might not always be released when using the timer function in the app. Please let me know if you can confirm this?
Thanks
I am trying to add the android-support-v7-appcompat library as a reference to the OpenCamera project but when I do, I get the following errors displayed on the console:
[2015-10-10 00:30:30 - OpenCamera] /Users/angel/Documents/Code/Android/SelfieCam/OpenCamera/res/values/attrs_plugin_capture_night.xml:3: error: Attribute "switchStyle" has already been defined
[2015-10-10 00:30:30 - OpenCamera]
[2015-10-10 00:30:30 - OpenCamera] /Users/angel/Documents/Code/Android/SelfieCam/OpenCamera/res/values/attrs_plugin_capture_night.xml:6: error: Attribute "track" has already been defined
[2015-10-10 00:30:30 - OpenCamera]
[2015-10-10 00:30:30 - OpenCamera] /Users/angel/Documents/Code/Android/SelfieCam/OpenCamera/res/values/attrs_plugin_capture_night.xml:9: error: Attribute "thumbTextPadding" has already been defined
[2015-10-10 00:30:30 - OpenCamera]
[2015-10-10 00:30:30 - OpenCamera] /Users/angel/Documents/Code/Android/SelfieCam/OpenCamera/res/values/attrs_plugin_capture_night.xml:10: error: Attribute "switchTextAppearance" has already been defined
[2015-10-10 00:30:30 - OpenCamera]
[2015-10-10 00:30:30 - OpenCamera] /Users/angel/Documents/Code/Android/SelfieCam/OpenCamera/res/values/attrs_plugin_capture_night.xml:11: error: Attribute "switchMinWidth" has already been defined
[2015-10-10 00:30:30 - OpenCamera]
[2015-10-10 00:30:30 - OpenCamera] /Users/angel/Documents/Code/Android/SelfieCam/OpenCamera/res/values/attrs_plugin_capture_night.xml:13: error: Attribute "switchPadding" has already been defined
[2015-10-10 00:30:30 - OpenCamera]
[2015-10-10 00:30:30 - OpenCamera] /Users/angel/Documents/Code/Android/SelfieCam/OpenCamera/res/values/attrs_plugin_capture_night.xml:26: error: Attribute "textAllCaps" has already been defined
[2015-10-10 00:30:30 - OpenCamera]
It seems both projects are colliding. I tried to rename all the attributes on the OpenCamera project appending a sw_XXX (sw_track for example) but after it something else breaks. I am not sure if that a real solution. Any clue?
Android studio says - Must have one-pixel frame that is either transparent or white
I wonder if it is possible to append the possibility to have the filenames of photos named using a counter. By "counter" I mean that the photos will get names like: IMG_0001, IMG_0002 ... IMG_9999. Also if is possible to have the name of the next photo displayed on screen during shutting.
Such feature appears to me to be useful when one want to take photos and then make records in a notebook connected to the name of taken photos.
Please excuse me if this request is inappropriate for the "issues" section - I'm really not sure.
Hi sir,
First, thanks who provide OpenCamera.
I want to move OpenCamera into my Android Source Tree. But failed. Yes, it need a Android.mk in the root subdirectory. But I don't know what is the correct one.
Could help me? Thank you very much, anyway.
Hello Developers,
There's something strange going on, I got a Zenfone 2 ZE551ML, the asus pixelmaster camera has manual mode that I can change the iso values. But for some reason, the OpenCamera and the Android API 21, return null to SENSOR_INFO_SENSITIVITY_RANGE.
Anyone know why this occurs?
I'm using Open Camera with my LG G4 and Cyanogenmod 13. Several of the taken pictures have the size of 0kb when I tried to move them to my pc. But if I upload them to my owncloud they have a real size. Someone an idea how I can move my taken pictures with more than 0kb to my pc?
Hello i have problem, when i export project for .apk i get this error in eclipse;
11:11:15 **** Build of configuration Default for project OpenCamera ****
"C:\Users\Yasin\workspace2\android-ndk-r9d\ndk-build" NDK_DEBUG=0
Cannot run program "C:\Users\Yasin\workspace2\android-ndk-r9d\ndk-build": Launching failed
Error: Program "C:\Users\Yasin\workspace2\android-ndk-r9d\ndk-build" not found in PATH
PATH=[C:\Users\Yasin\workspace2]
11:11:15 Build Finished (took 18ms)
someone can help me? I'm using latest ADT Eclipse
Hi,
I know there is a license file in this repo but as english is not my native language and my english is rather bad I have trouble understanding that is it possible to convert this app into library module and use in commercial app without providing source code of the whole app?
I have created an android studio Gradle based project.. what will it have to do for you guys to support this file system?
How easy implementing it would be?
All wise ones at almalence:
What I really need to find out is the trick you all used to get the torch to illuminate on the Galaxy S5 from your source code. So, I cloned your project to my desktop and imported the code into Eclipse. I created a Debug Configuration and tried to run the OpenCamera project in debug mode. But then I receive this error: Could not find OpenCamera.apk! Probably a noob question! Can somebody tell me what I need to do to get OpenCamera running in either Eclipse or AndroidStudio?
Thank you.
As stated in title, app constantly crashes on SGS6E+.
Crashes occur about 2-3 seconds after start of the app.
Issue occurs on latest release from Play Store.
I use the external SD card for storing photos/videos. When using ABC, very often new photos are not automatically detected by the media scanner - and thus, they don't appear in the Gallery app, until either a reboot, or running an app such as SD Scanner.
I'm not an Android developer, but as far as I understand, since Android 4.4, you must manually notify the media scanner about new files. The easiest way to do this should be [android.media.MediaScannerConnection.scanFile()](http://developer.android.com/reference/android/media/MediaScannerConnection.html#scanFile%28java.lang.String, java.lang.String%29).
Dear developers,
I have some questions about implementation of manual white balance. As I understood, manual white balance is only enabled on Nexus 5 device, is that right ?
As far I seen in the code, there are some constants specific to Nexus 5 device. I believe colorTransformMatrix is one of them. I have two questions about colorTransformMatrix:
a) As I seen from the andorid documents, android.colorCorrection.transform = [ I0 I1 I2 I3 I4 I5 I6 I7 I8 ]) this array has supposed to have 9 elements, however colorTransformMatrix has 18 elements. What is the reason for that ?
b) my second question is, if I want to to get colorTransformMatrix for another device, for example nexus6, how can I get these numbers ?
My other question is abour rggbVector, in the function where this vector is constructed, there are many constant numbers are used to calculate RGGB values, I believe these numbers are specific to nexus 5 device, is that right ?
My last question is: how difficult is it to add MWB feature for another devices (nexus 6 or 6P) ? I can consider to add this capabiltity to opencamera/better camera.
Thank you,
All the bests,
Like material-camera is there any chance, you can do this OpenCamera as library so that anyone can use it very easy....
When i launch app i got this.
03-21 12:55:11.064: E/AndroidRuntime(7334): FATAL EXCEPTION: main
03-21 12:55:11.064: E/AndroidRuntime(7334): java.lang.UnsatisfiedLinkError: Couldn't load utils-image from loader dalvik.system.PathClassLoader[dexPath=/data/app/com.almalence.opencam-1.apk,libraryPath=/data/app-lib/com.almalence.opencam-1]: findLibrary returned null
03-21 12:55:11.064: E/AndroidRuntime(7334): at java.lang.Runtime.loadLibrary(Runtime.java:355)
03-21 12:55:11.064: E/AndroidRuntime(7334): at java.lang.System.loadLibrary(System.java:525)
03-21 12:55:11.064: E/AndroidRuntime(7334): at com.almalence.util.Util.(Util.java:752)
03-21 12:55:11.064: E/AndroidRuntime(7334): at com.almalence.plugins.capture.panoramaaugmented.PanoramaAugmentedCapturePlugin.getAmountOfMemoryToFitFrames(PanoramaAugmentedCapturePlugin.java:884)
03-21 12:55:11.064: E/AndroidRuntime(7334): at com.almalence.plugins.capture.panoramaaugmented.PanoramaAugmentedCapturePlugin.onDefaultsSelect(PanoramaAugmentedCapturePlugin.java:263)
03-21 12:55:11.064: E/AndroidRuntime(7334): at com.almalence.opencam.PluginManager.SelectDefaults(PluginManager.java:1273)
03-21 12:55:11.064: E/AndroidRuntime(7334): at com.almalence.opencam.MainScreen.setupCamera(MainScreen.java:879)
03-21 12:55:11.064: E/AndroidRuntime(7334): at com.almalence.opencam.MainScreen$8.onFinish(MainScreen.java:676)
03-21 12:55:11.064: E/AndroidRuntime(7334): at android.os.CountDownTimer$1.handleMessage(CountDownTimer.java:118)
03-21 12:55:11.064: E/AndroidRuntime(7334): at android.os.Handler.dispatchMessage(Handler.java:99)
03-21 12:55:11.064: E/AndroidRuntime(7334): at android.os.Looper.loop(Looper.java:176)
03-21 12:55:11.064: E/AndroidRuntime(7334): at android.app.ActivityThread.main(ActivityThread.java:5419)
03-21 12:55:11.064: E/AndroidRuntime(7334): at java.lang.reflect.Method.invokeNative(Native Method)
03-21 12:55:11.064: E/AndroidRuntime(7334): at java.lang.reflect.Method.invoke(Method.java:525)
03-21 12:55:11.064: E/AndroidRuntime(7334): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
03-21 12:55:11.064: E/AndroidRuntime(7334): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
03-21 12:55:11.064: E/AndroidRuntime(7334): at dalvik.system.NativeStart.main(Native Method)
It would be nice if the icons can auto rotate depending on orientation.
Your app is free software. Can you please include it into the F-Droid repos?
When I take photos into computer, the photos will be flipped over. Is it bug?
I think you should separate the project here to main project and plugins, it would make my life as developer more easy.
due to the fact that I only need to take photos, and scan QRs with the app, there is a lot of bundled stuff in the project that I don't really need monitor change of
P.S
what about android studio :/
When I'm try to shot photos of pieces of paper or similar things I have a problem: With image stabilisation this always "corrects" the image, but in this case it of course has bass results.
So it (it an option) would be nice to automatically skip image stabilisation when the phone is turned down.
The G4 supports the new API but LG itself is using the old API on their own Camera App.
Instead of Camera.open() use Camera.openLegacy(camId, android.hardware.Camera.CAMERA_HAL_API_VERSION_1_0)
Then set parameter "lge-camera" to "1".
After that you can control the lg iso modes with parameter "lg-iso". This parameter has much more values than the default "iso" parameter.
And to get the laser focus working you should set "focus-mode" to "continuous-video".
In short:
Camera.open() -> Camera2 -> QCom Hardware HAL3 (untouched by LG, very basic)
Camera.openLegacy() -> Legacy Camera -> QCom Hardware HAL2 (extended by LG, a lot of stuff to play with)
Issue connects with #50 - when user is able to take photo in 2-3 second interval of app working, photo has green tint.
Issue occurs on latest release from Play Store.
I love the functionality of this camera application, but the UI could use some improvement. Why not have a good UI for a great application? Are there any devs out there who would like to help me update the UI?
Excuse me, I could not get the correct LICENSE information. Could you please specify more about that? Thanks in advance.
Hi,
I used open camera at adroid 7.1.1 slim bacon.
The Gallery detail infomation action for selected photos by open camera always crashes.
Other photos' information can be showed right.
Is some tag wrong?
Some log captured:
8545 E AndroidRuntime: java.lang.AssertionError: 鍒堕€犲晢's value is Null
01-16 18:33:57.550 8545 8545 E AndroidRuntime: at com.android.gallery3d.common.Utils.fail(Utils.java:59)
01-16 18:33:57.550 8545 8545 E AndroidRuntime: at com.android.gallery3d.ui.DialogDetailsView$DetailsAdapter.setDetails(DialogDetailsView.java:228)
01-16 18:33:57.550 8545 8545 E AndroidRuntime: at com.android.gallery3d.ui.DialogDetailsView$DetailsAdapter.(DialogDetailsView.java:131)
01-16 18:33:57.550 8545 8545 E AndroidRuntime: at com.android.gallery3d.ui.DialogDetailsView.setDetails(DialogDetailsView.java:89)
01-16 18:33:57.550 8545 8545 E AndroidRuntime: at com.android.gallery3d.ui.DialogDetailsView.reloadDetails(DialogDetailsView.java:84)
01-16 18:33:57.550 8545 8545 E AndroidRuntime: at com.android.gallery3d.ui.DialogDetailsView.show(DialogDetailsView.java:66)
01-16 18:33:57.550 8545 8545 E AndroidRuntime: at com.android.gallery3d.ui.DetailsHelper.show(DetailsHelper.java:95)
01-16 18:33:57.550 8545 8545 E AndroidRuntime: at com.android.gallery3d.app.PhotoPage.showDetails(PhotoPage.java:1122)
01-16 18:33:57.550 8545 8545 E AndroidRuntime: at com.android.gallery3d.app.PhotoPage.onItemSelected(PhotoPage.java:1082)
01-16 18:33:57.550 8545 8545 E AndroidRuntime: at com.android.gallery3d.app.StateManager.itemSelected(StateManager.java:148)
the bad code "鍒堕€犲晢" is Chinish "制造商", = English: manufacturer
void setDetails(Context context, MediaDetails details) {.... default: { Object valueObj = detail.getValue(); // This shouldn't happen, log its key to help us diagnose the problem. if (valueObj == null) { Utils.fail("%s's value is Null", DetailsHelper.getDetailsName(context, detail.getKey())); } value = valueObj.toString();
Regards
Lyra
It would be really great if open camera can take HDR photos.
Hello, A Better Camera!
My Device IM-A870 does not start A Better Camera Open Source.
What is major problem for below Error Log?
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.almalence.opencam.MainScreen}: java.lang.SecurityException: Lacking privileges to access camera service
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2202)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2252)
at android.app.ActivityThread.access$800(ActivityThread.java:142)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1203)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5068)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.SecurityException: Lacking privileges to access camera service
at android.hardware.camera2.utils.CameraBinderDecorator$CameraBinderDecoratorListener.onAfterInvocation(CameraBinderDecorator.java:72)
at android.hardware.camera2.utils.Decorator.invoke(Decorator.java:81)
at $Proxy0.addListener(Native Method)
at android.hardware.camera2.CameraManager.(CameraManager.java:83)
at android.app.ContextImpl$44.createService(ContextImpl.java:614)
at android.app.ContextImpl$ServiceFetcher.getService(ContextImpl.java:271)
at android.app.ContextImpl.getSystemService(ContextImpl.java:1678)
at android.view.ContextThemeWrapper.getSystemService(ContextThemeWrapper.java:117)
at android.app.Activity.getSystemService(Activity.java:4542)
at com.almalence.opencam.cameracontroller.CameraController.onCreate(CameraController.java:555)
at com.almalence.opencam.MainScreen.loadingData(MainScreen.java:2946)
at com.almalence.opencam.MainScreen.onCreate(MainScreen.java:334)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1092)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2166)
... 11 more
Please add an option for HJR automatic ISO selection. Many camera apps have a similar option, but I couldn't find an equivalent in ABC.
A brief explanation of HJR
, courtesy of dpreview.com:
HJR is Google's "Hand Jitter Reduction." It's pretty simple: it's an auto-ISO mode that puts its priority on faster shutter speed rather than lower ISO.
Returns Error for bestshot.cpp
Cannot find these files
When I open the application , it will crash
the following is its error message
[2015-01-14 13:56:33 - ddms] Can't bind to local 8617 for debugger
[2015-01-14 13:56:33 - ddmlib] Broken pipe
java.io.IOException: Broken pipe
at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:65)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:470)
at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213)
at com.android.ddmlib.Client.sendAndConsume(Client.java:642)
at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:348)
at com.android.ddmlib.Client.requestAllocationStatus(Client.java:488)
at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:831)
at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:799)
at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:759)
at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:648)
at com.android.ddmlib.DeviceMonitor.access$100(DeviceMonitor.java:44)
at com.android.ddmlib.DeviceMonitor$3.run(DeviceMonitor.java:576)
Please fix it,thank you!
Video stabilization (anti-shake) would be a great addition to ABC. The stock Samsung camcorder app on my SGS4 had this function, so it's possible to achieve it in real-time (no idea how exactly they do it though).
ABC is excellent, thank you.
Hi,
I'm having some problems with the panorama mode of the app. If I take second photo in the mode after the initial one, the app just hangs and becomes unresponsive. I'm using Galaxy S4 Active (Android 4.4.2).
Let me know if you need more info.
Hey OpenCamera/ABC team
I'm the developer for http://novaphotos.com. It's an off-camera BluetoothLE flash. We primarily market it for iPhone and I'd like to improve our Android offerings and integrate with an awesome camera app (we currently have a basic app ourselves, but it would make sense to join forces with a team building a high-end product).
Some details:
I think this would make an excellent plugin for your app and I'd be interested in collaborating with you to help make it happen. If you're interested, please let me know what a good plan of attack would be.
While using the app in Samsung S3 and the camera is in vertical mode the image is a bit stretched vertically.
When the device is horizontal the image is Squashed..
I compiled the apk and with libs and android. Mk i put it my android source which gets copied to the system/app... Now if i buy the premium it adds another icon and another spp... Kindly can make an unlocker like poweramp player has... Which unlocks the app and then hides itself from the launcher window.
After compiling the jni lib(which is successful) I get only the next lib =>
I don't get
Am I missing something?
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.