18gray / procamera Goto Github PK
View Code? Open in Web Editor NEWProCamera是一款基于Camera2 API的相机,实现了相机的常用功能,力求不断挖掘Camera2的巨大潜力,锻造一款在功能和设计上完美的相机产品。
ProCamera是一款基于Camera2 API的相机,实现了相机的常用功能,力求不断挖掘Camera2的巨大潜力,锻造一款在功能和设计上完美的相机产品。
图片处理功能没法用,看到你代码里面将相关按钮点击事件注释掉了,我重新开启后,会有空指针
如题,不知道camera2在L以下设备是否支持.预览相机画面部分机型会有问题. = = 很强大的学习资源.虽然代码乱了点,(捂脸表情),不过很好的.
错误: 找不到符号
符号: 类 DaggerAlbumComponent
位置: 程序包 com.eighteengray.procamera.component
IllegalArgumentException while invoking public void android.hardware.camera2.CameraCaptureSession$CaptureCallback.onCaptureCompleted(android.hardware.camera2.CameraCaptureSession,android.hardware.camera2.CaptureRequest,android.hardware.camera2.TotalCaptureResult)
java.lang.IllegalArgumentException: submitRequestList:221: Request targets Surface that is not part of current capture session
at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:651)
at android.hardware.camera2.impl.ICameraDeviceUserWrapper.submitRequestList(ICameraDeviceUserWrapper.java:86)
at android.hardware.camera2.impl.CameraDeviceImpl.submitCaptureRequest(CameraDeviceImpl.java:935)
at android.hardware.camera2.impl.CameraDeviceImpl.capture(CameraDeviceImpl.java:824)
at android.hardware.camera2.impl.CameraCaptureSessionImpl.capture(CameraCaptureSessionImpl.java:181)
at com.eighteengray.procameralibrary.camera.Camera2TextureView.doStillCapture(Camera2TextureView.java:405)
at com.eighteengray.procameralibrary.camera.Camera2TextureView.access$300(Camera2TextureView.java:41)
at com.eighteengray.procameralibrary.camera.Camera2TextureView$3.checkState(Camera2TextureView.java:124)
at com.eighteengray.procameralibrary.camera.Camera2TextureView$3.onCaptureCompleted(Camera2TextureView.java:93)
at java.lang.reflect.Method.invoke(Native Method)
at android.hardware.camera2.dispatch.InvokeDispatcher.dispatch(InvokeDispatcher.java:39)
at android.hardware.camera2.dispatch.HandlerDispatcher$1.run(HandlerDispatcher.java:65)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:166)
at android.os.HandlerThread.run(HandlerThread.java:65)
Caused by: android.os.ServiceSpecificException: submitRequestList:221: Request targets Surface that is not part of current capture session (code 3)
at android.os.Parcel.readException(Parcel.java:1959)
at android.os.Parcel.readException(Parcel.java:1891)
at android.hardware.camera2.ICameraDeviceUser$Stub$Proxy.submitRequestList(ICameraDeviceUser.java:334)
at android.hardware.camera2.impl.ICameraDeviceUserWrapper.submitRequestList(ICameraDeviceUserWrapper.java:84)
at android.hardware.camera2.impl.CameraDeviceImpl.submitCaptureRequest(CameraDeviceImpl.java:935)
at android.hardware.camera2.impl.CameraDeviceImpl.capture(CameraDeviceImpl.java:824)
at android.hardware.camera2.impl.CameraCaptureSessionImpl.capture(CameraCaptureSessionImpl.java:181)
at com.eighteengray.procameralibrary.camera.Camera2TextureView.doStillCapture(Camera2TextureView.java:405)
at com.eighteengray.procameralibrary.camera.Camera2TextureView.access$300(Camera2TextureView.java:41)
at com.eighteengray.procameralibrary.camera.Camera2TextureView$3.checkState(Camera2TextureView.java:124)
at com.eighteengray.procameralibrary.camera.Camera2TextureView$3.onCaptureCompleted(Camera2TextureView.java:93)
at java.lang.reflect.Method.invoke(Native Method)
at android.hardware.camera2.dispatch.InvokeDispatcher.dispatch(InvokeDispatcher.java:39)
at android.hardware.camera2.dispatch.HandlerDispatcher$1.run(HandlerDispatcher.java:65)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:166)
at android.os.HandlerThread.run(HandlerThread.java:65) >
如题,求指导谢谢哈
05-16 09:46:52.906 20661-20661/com.eighteengray.procamera E/art: Unable to open trace file '/sdcard/ProCamera.trace': Permission denied
05-16 09:46:52.910 20661-20661/com.eighteengray.procamera E/CrashHandler: dump crash info failed
05-16 09:46:52.912 20661-20661/com.eighteengray.procamera E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.eighteengray.procamera, PID: 20661
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.eighteengray.procamera/com.eighteengray.procamera.MainActivity}: java.lang.RuntimeException: Unable to open trace file '/sdcard/ProCamera.trace'
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2517)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2577)
at android.app.ActivityThread.access$1100(ActivityThread.java:156)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1428)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5696)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
Caused by: java.lang.RuntimeException: Unable to open trace file '/sdcard/ProCamera.trace'
at dalvik.system.VMDebug.startMethodTracingFilename(Native Method)
at dalvik.system.VMDebug.startMethodTracing(VMDebug.java:167)
at android.os.Debug.startMethodTracing(Debug.java:963)
at android.os.Debug.startMethodTracing(Debug.java:916)
at com.eighteengray.procamera.MainActivity.onCreate(MainActivity.java:31)
at android.app.Activity.performCreate(Activity.java:6362)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2470)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2577)
at android.app.ActivityThread.access$1100(ActivityThread.java:156)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1428)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5696)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
请问 Error:error: unknown argument: '-nostdlib++' 运行时出现异常, 怎么解?
华为9.0手机预览的时候,看人脸感觉有点变形,像是压缩了的感觉
需求实现每秒20帧以上的拍摄,视频录制的方式有压缩比较严重,需要连续清晰的拍摄图片。
再次感谢无私奉献。
非常感谢大家的使用和提问,关于图像处理的功能请统一在此提问,我方便给大家统一回复。
运行软件有点慢,进去还是黑屏的,手机型号华为畅享7
ProCamera/app/src/main/java/com/eighteengray/procamera/business/AlbumBusiness.java
看了这个我就不懂了?到底哪个rxjava在哪个call中进行耗时操作呢?据我的理解,subcribe() new Action1<Cursor>()
是在Obseveron()
调度器中执行的?如果确实如此,这里为何用rxjava呢?请指教一下,谢谢
针对图像处理相关的功能,最近在做大规模重构,会采用SnapSeed这款我一直在使用的图像处理软件相似的交互,如果您已经更新了代码,那可能需要等一段时间才能用上可用版本。因为Github也是我的代码管理工具,会在工作之余和家里同时开发,所以提交的代码不保证一定可用。
请问下,如果添加对4k录像的支持?
你好麻烦问下。相机防手抖功能如何实现能帮忙给一个思路吗?
错误1、
import com.yanzhenjie.permission.SettingService;
Cannot resolve symbol 'SettingService'
错误2、
错误: 方法不会覆盖或实现超类型的方法
AndPermission.with(context)
.permission
.onDenied(new Action() {
@Override
错误3、
错误: DefaultRationale不是抽象的, 并且未覆盖Rationale中的抽象方法showRationale(Context,Object,RequestExecutor)
引入报错ABIs [armeabi] are not supported for platform. Supported ABIs are [armeabi-v7a, arm64-v8a, x86, x86_64].
Build failed:
Android resource linking failed
.../ProCamera/app/build/intermediates/merged_manifests/debug/AndroidManifest.xml:93: error: unexpected element <permission> found in <manifest><application>.
为什么下载下来运行之后和截图不一样呢
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.