问题标签 [exposure]

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.

0 投票
1 回答
124 浏览

android - 如何设置 altbeacon 以防止在 Android 打瞌睡时停止扫描

我有一个实现前台服务的 Android 应用程序,使用部分唤醒锁并有权使用REQUEST_IGNORE_BATTERY_OPTIMIZATIONS此处说明的方法清空电池:https ://developer.android.com/training/monitoring-device-state/doze-standby

一切正常,服务永远运行而不会打瞌睡。

我的服务使用一系列信标并永久报告距离。使用 altbeacon 效果很好。但是,当屏幕关闭时,大约 1 分钟后。1 到 5 分钟,Android 电源管理以某种方式启动,并且 altbeacon 库始终使用空信标列表调用“RangeNotifier”回调。一旦发生这种情况,即使我再次唤醒手机,信标列表也始终为空。

这是我配置它的方式:

不知何故,我为我的服务成功逃避 DOZE 所采取的手段似乎并没有扩展到 Altbeacon 服务。我怎样才能改变这一点,让 altbeacon 永远扫描?

编辑:Manifest.xml 中的相关部分

我正在使用 Android 10 Samsung S10 进行测试。如果有帮助,我可以提供一个 Android 日志 BeaconManager.setDebug(true)(它又长又吵)

非常感谢您的帮助!

0 投票
2 回答
472 浏览

offset - catboost 回归器的 base_margin 或 init_score

我想将 CatBoost 回归器用于保险应用(泊松目标)。由于需要修复曝光,如何设置 log_exposure 的偏移量?使用 xgboost 时,我使用“base_margin”,而对于 lightgbm,我使用“init_score”参数。CatBoost 中是否有等价物?

0 投票
0 回答
129 浏览

ios - setExposureModeLocked does not work for iPhone 11 and above

So, I have an application where I am streaming images and need consistent results across all images even when exposed to bright light(NO AUTO ADJUSTMENTS).

For this I used a AVFoundation as follows: [device setExposureMode:AVCaptureExposureModeLocked];

This works great for any model below iPhone 11. It seems like the newer camera modules do not react the same to the functions called in AVFoundation as the older ones. In these images the first 2 has the flash on and after the flash is turned off.Here is an example of any iPhone below the 11. enter image description here

Here is an example of any iPhone 11 and above. enter image description here

As you can see they do not lock the same way. If anyone has a similar issue please share your experience or comment what you think may help. Thanks in advance.

0 投票
0 回答
16 浏览

object-detection - 可以在yolov4算法中应用曝光融合技术吗?

可以在yolov4中应用曝光融合技术吗?我正在使用 RGB 图像进行训练。更改配置文件中的曝光是否有帮助?

0 投票
1 回答
57 浏览

android - Camera X 的 AE 锁无法正常工作

我使用 Camera X 并尝试使用 锁定 AF 和 AE FocusMeteringAction,AF 锁定正常但 AE 没有锁定。可能是什么原因?

camerax_version = "1.1.0-alpha02"

代码片段很简单,ListenableFuturefromstartFocusAndMetering()返回一个成功的结果,但是AE仍然是动态的并且没有被锁定。

我期待的结果:然后将应用程序指向明亮的东西(例如太阳或强光),然后锁定曝光。然后将相机远离光线,一切都会变得非常黑暗。这表明相机没有自动调整曝光(因为它被锁定)。

我的实际结果是:曝光调整,图片亮/正常。

将不胜感激任何想法!提前致谢!

0 投票
0 回答
12 浏览

ios - iPhone 曝光时间 ISO 和曝光补偿

众所周知,光圈、曝光时间和ISO是控制相机照片亮度的三种方式。在移动设备中,光圈是固定的,因此控制相机照片亮度的唯一方法是曝光时间和ISO,但是,同时修改曝光时间和ISO或直接修改曝光补偿有什么区别。

0 投票
1 回答
42 浏览

r - 使用两个日期列作为参考计算每个日历月的人时

我在 R 中有一个如下所示的数据框:

我想要做的是从 1968-01 到(包括 1969-05)的每个日历月,每个日历月创建两个新列,总结每个人(ID)提供的未暴露和暴露的人时天数, 分别。例如,这些列可以称为 1968_01_Unexposed、1968_01_Exposed 等。

暴露日期可在暴露列中找到。因此,我最终想要的是一个具有 41 列的数据框(原始数据框中的 4 列加上 34 列(1968-01 和 1969-05 之间的每 17 个日历月 2 个))。例如,ID 1 在 1968-01 有 31 天未暴露,0 天在 1968-01 等到 1968-07,其中 ID 1 有 10 天未暴露和 21 天暴露。

任何人都知道如何以方便的方式做到这一点?

0 投票
1 回答
66 浏览

r - 执行匹配的风险集抽样(发病密度抽样)而不对两个变量进行替换匹配

我有一个如下例所示的数据框:

如您所见,有:

  1. 1000000 个唯一个人 (Person_IDs),共同开始日期为 2020-01-01(即所有个人的 Start_Date 列设置为 2020-01-01),共同结束日期 (End_Date) 为“2021-05-01” ”。

  2. 可以获得有关性别和年龄的信息,这些信息将用于将 Outcome == 1 的 ID 与控件“匹配”。

  3. 所有个人都有一个结果的日期(结果 == 0 或结果 == 1)。

**我现在想要执行的是被称为风险集抽样(或发病密度抽样)的东西。数据框按结果的时间戳排列,现在:

  1. 每次“算法”遇到 Outcome == 1 的行时,随机选择三 (3) 个具有相同性别、相同年龄和更晚时间戳的 Person_ID(即 Timestamp_Outcome 至少晚一天,无论如果 Outcome == 0 或 Outcome == 1) 应该执行。

  2. 这 4 个个体(1 个暴露个体和 3 个未暴露个体)应从数据框中删除(即替换 = FALSE),因此不能再次选择(称为无替换抽样)。**

为了在需要时更清楚,请考虑以下示例:

如您所见,Person_ID 1030、1269、3180、4245 等都在 2020-02-15 经历了结果。以 Person_ID 1030 为例,这是一位 86 岁的女性。因此,她应该与三名 2020 年 2 月 15 日未暴露的 86 岁女性相匹配(她们可以在 2020 年 2 月 16 日、2020 年 2 月 20 日或以后的任何时间暴露)。如果这不可能,则应选择尽可能多的匹配个体(范围从 0 到 3 个匹配个体)。

知道如何执行此操作吗?

0 投票
0 回答
80 浏览

javascript - 可以在网络应用程序中更改相机曝光吗?

嗨,我想问一下是否有办法改变曝光(我只需要改变亮度)设置抛出 javascript。使用亮度投射像素没有帮助,因为我想用它来获得光谱仪的波长,它可以正常工作。问题是当我获得比那个地方的所有 rgb 获得最大 rgb 值的强光时。

感谢您的任何帮助和回答。

我正在使用正确的库: https ://webrtc.github.io/adapter/adapter-latest.js

0 投票
0 回答
33 浏览

android - Images getting corrupted while capturing in manual exposure

I want to capture image with a given value of exposure time.

I start with opening the camera through the method below:

This is the definition of setupCameraOutputs()

The state callback passed to manager.openCamera()

After this point , I have the preview configured and running with auto-exposure enabled.

Now, when I want to capture an image with a given value of exposure time.

I first change the preview via the below method:

After this, the preview is changed with the given value of exposure time.

Now, I want to capture an image with the same value of exposure time. For that I call this method.

When the image is available on the imageReader , this callback is called, as configured in the setupCameraOutputs():

And I get the bitmap.

Coming to the problem.

I am able to capture images at different exposure times. But, in some instances I get images which are horizontally shifted and have some random color layer on top of them.

For example, the below image. shifted image

For clarity, this is the image of the same scene with lower exposure time than the shifted one. lower exposure time image This is the image of the same scene with higher exposure time than the shifted one. higher exposure time image In some images, along with the image shift there some changes in the color as well, as shown in this image. shifted image with red tint What I have tried doing.

By looking at the reddish image above, I changed the auto white balance from auto mode to a preset value, but it didn't work out.

Next, I put a time gap between the change in preview and capturing of image. I varied this time gap from 200 milli seconds to 5000 milli seconds but I was still getting these erroneous images.

I am unable to figure out, what is causing the image to shift and the change in color.