问题标签 [shutter]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
avfoundation - AVFoundation:使用 AVCaptureMovieFileOutput 和 AVCaptureStillImageOutput 捕获会话具有滞后的快门声音
我的应用程序中有一个相机视图,用户可以在其中拍摄静止图像或视频录制。在我的 viewDidLoad 中,我将 AVCaptureMovieFileOutput 和 AVCaptureStillImageOutput 添加到单个捕获会话中。
该功能工作正常,但是当您使用 AVCaptureStillImageOutput.captureStillImageAsynchronouslyFromConnection 拍摄静止图像时,快门声音非常缓慢且滞后(似乎分成两个单独的声音)。我试过删除moviefileoutput,没有它也能正常工作。问题是,AVFoundation 的 Apple 开发人员文档表明,将这两个输出添加到单个会话中很好:( https://developer.apple.com/library/ios/documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/04_MediaCapture。 html )
我尝试仅在单击拍摄照片/视频按钮时添加相应的输出,但似乎曝光和焦点没有时间调整,因为图像非常暗,并且视频有第二个或所以一开始你会看到相机在调整。
我尝试过 captureSession.addOutputWithoutConnections,但是在按下记录按钮时很难添加连接。
我想知道是否有人有任何解决方案?同样,问题只是声音,而不是功能。我看过这篇关于关闭声音的帖子:AVFoundation,如何在 captureStillImageAsynchronouslyFromConnection 时关闭快门声音?
ios - How do I implement a volume shutter in iOS 11?
I want to implement a volume shutter in my camera app. When the user presses the volume button, I should get an event to take a photo.
I'm looking for an implementation that meets the following requirements:
- It should work even if the volume is currently at the maximum, and the user presses the volume up button.
- There should be no on-screen UI showing that the volume changed.
- There should be no known cases of Apple rejecting an app that used this technique.
Other questions and answers exist on this topic, but for older versions of iOS, so I wanted to find one that works on iOS 11.
Camera apps like ProCamera, ProCam and Camera+ have the volume shutter that satisfies all these conditions, so it's clearly possible.
android - 快门声停止
拍摄大约 10 到 15 张照片后,快门噪音停止工作,并且在您重新启动应用程序之前不会回来。这个错误在 android studio 中:
这是代码:
concurrency - 冲突的并发 Arduino 设备:相机和望远镜驱动器
我在这里有一个基于 Kevin Ferrare 设备的 Arduino 驱动望远镜支架:
https://hackaday.io/project/4386-arduino-st4-telescope-control
这似乎工作得很好。
我添加了一个使用类似光耦合器设计的 DSLR 遥控快门控制,它本身也可以很好地工作。
但是,当我将它们一起运行时,当快门打开时安装电机的任何运动都会关闭快门。
我已将代码完全剥离为:
结果只有三个引脚点亮 2、4 和 5。否则没关系。
我需要知道关于并发引脚的一些事情,还是我有接线问题?
感谢您的任何意见。
史蒂夫
android - Android Camera2 API 中的等效 canDisableShutterSound 方法
Camera2 API 中是否有等效的canDisableShutterSound方法?
我找不到任何关于它的细节,所以我假设 Camera2 API 允许在没有快门声的情况下拍照,但这只是我的假设,因为一些国家通过法律强制智能手机中的快门声,例如日本,其中无论应用程序是否播放其他快门声音,都会在拍照时播放设备默认快门声音。至少旧版 Camera API 是这种情况。
用例是如果检测到设备也将播放自己的音频,则能够忽略应用程序自定义快门声音,这在旧相机 API 中已通过使用canDisableShutterSound方法解决。
android - 如何在某些 Android 手机中使用相机 API 控制曝光时间
我camera.getParameters()
用来获取智能手机的所有相机参数,并camera.getParameters.set(key, value)
控制目标参数。
当我选择MX4作为我的测试手机时,参数中包含两个参数,分别是毫秒shutter-value = 0
和shutter-value-supported = 0, 125, 250, 500, 1000, ... , 10000000
毫秒。然后我设置shutter-value = 125
并拍照,我发现它有效。
我们继续。然后我选择MI6作为我的下一部文字手机,和MX4不一样,参数包含曝光时间三个参数,分别是:manual-exposure-modes = off, exp-time-priority, iso-priority, user-seting
、、、。没有像. 我自己设置了“曝光时间 = 100 或 0.1”,相机可以工作,但我没有观察到差异。然后,我设置'exposure-time = 0.01',小于0.019681,相机不工作,看起来这个参数确实有效。但是这个参数'exposure-time'是我自己设置的。max-exposure-time = 459.592350
min-exposure-time = 0.019681
exposure-time-value
那么,你能给我一个答案,如何用相机 API 而不是相机 2 API 控制曝光时间。
非常感谢。
android - 如何在android中手动控制快门。相机2
我想使用相机 2 控制快门。但我不知道如何在相机预览中手动控制快门。
android-camera2 - camera2 API 可以告诉我当前曝光和理想曝光之间的区别吗?
我们正在构建一个相机应用程序,我们想使用手动曝光。我们不希望曝光算法设置 ISO 和曝光持续时间;相反,我们希望它告诉我们我们设置的手动曝光和根据算法正确曝光之间的区别。这样,我们可以在计算中考虑到这一点。
iOS 有这样一个 API exposureTargetOffset。Android camera2有这样的API吗?