首页 \ 问答 \ AVCaptureTorchModeAuto不会持续更新割炬模式(AVCaptureTorchModeAuto does not continuously update torch mode)

AVCaptureTorchModeAuto不会持续更新割炬模式(AVCaptureTorchModeAuto does not continuously update torch mode)

我正在编写一个应用程序,根据照明条件自动打开iOS设备背面的手电筒。 该应用程序呈现实时摄像机视图,但不记录视频。

我尝试过使用AVCaptureTorchModeAuto ,但它似乎只是在捕获会话开始时测量图像的亮度,并相应地设置割炬。 无论相机图像的亮度如何,之后设置都不会改变。

系统可以连续调整割炬,如文档所述

捕获设备持续监控光照水平,并在必要时使用割炬。

适用于iOS 4.0及更高版本。


I am writing an app that automatically turns on the torch on the back of an iOS device depending on lighting conditions. The app renders a live camera view, and does not record the video.

I have tried using AVCaptureTorchModeAuto, but it only seems to measure the brightness of the image at the start of the capture session, and set the torch accordingly. The setting then does not change afterwards, regardless of the brightness of the camera image.

It is possible to have the system adjust the torch continuously, like stated in the documentation?

The capture device continuously monitors light levels and uses the torch when necessary.

Available in iOS 4.0 and later.


原文:https://stackoverflow.com/questions/22998471
更新时间:2022-02-02 21:02

最满意答案

当快照涉及多个表和/或视图时,Venkataramesh的答案(dba_snapshots)仅提供部分答案 - 要获取所涉及对象的完整列表,您可以使用USER_DEPENDENCIES视图:

select name, type, referenced_name, referenced_type
from user_dependencies
where type = 'MATERIALIZED VIEW'
order by name

Venkataramesh's answer (dba_snapshots) only provides part of the answer when the snapshots involve multiple tables and/or views - to get the full list of objects involved you can use the USER_DEPENDENCIES view:

select name, type, referenced_name, referenced_type
from user_dependencies
where type = 'MATERIALIZED VIEW'
order by name

相关问答

更多
  • 当快照涉及多个表和/或视图时,Venkataramesh的答案(dba_snapshots)仅提供部分答案 - 要获取所涉及对象的完整列表,您可以使用USER_DEPENDENCIES视图: select name, type, referenced_name, referenced_type from user_dependencies where type = 'MATERIALIZED VIEW' order by name Venkataramesh's answer (dba_snapshots ...
  • 查询返回的sql_id可能与实际获取锁的查询有关,也可能与之无关。 例如,在SID 669中,如果我更新ITEMST然后运行查询但我没有提交update ,您会看到669正在运行SELECT语句并且它持有锁。 这是会话实际上获得锁定的早期UPDATE (或INSERT或其他)。 只是没有一种简单的方法可以看到会话已经完成的早期查询获得了其他会话正在等待的锁定。 The sql_id that your query returns may or may not be related to the query ...
  • Oracle需要UNDO信息来回滚事务中的DML。 正如加里在他的评论中所说: “如果UNDO中途失败,则需要回滚单个语句的效果。还需要提供ROLLBACK TO SAVEPOINT或ROLLBACK(尽管对于GLOBAL TEMPORARY TABLES,后者只与会话持续时间GTT有关) “。 这个UNDO信息本身产生了REDO。 对于这种情况,你无能为力:临时表需要UNDO,而这就是结束。 减少UNDO的数量非常简单:只需插入记录并选择记录即可。 INSERT生成最小量的UNDO,因为回滚INSERT只 ...
  • 在DBMS_UTILITY中有FORMAT_CALL_STACK函数,它在任何pl / sql过程或触发器中调用时返回已调用的所有过程的堆栈以到达您的代码(它列出了调用者,调用者的调用者等等)。 你可以写这样的触发器: create or replace trigger TRG_LOG_MYTABLE_EDITS after insert or delete or update on MYTABLE for each row -- see following n ...
  • SQL%BULK_EXCEPTIONS(i).error_code仅保存Oracle错误号。 然后,您使用sqlerrm函数来查找错误消息文本。 该函数无法知道什么约束被破坏。 您可以调用sqlerrm函数,而不会抛出异常来复制结果。 begin dbms_output.put_Line(sqlerrm(-1400)); dbms_output.put_Line(sqlerrm(-2290)); dbms_output.put_Line(sqlerrm(-1)); end; 哪个输出 O ...
  • 您可以在DML语句中使用LOG ERRORS INTO,这样您就可以将错误和错误数据转储到表中,以便以后查看它们。 请参阅: http : //www.oracle-developer.net/display.php?id = 329 并且: http : //download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9014.htm#BGBDIGAH you could use LOG ERRORS INTO in your DM ...
  • 直到您提交之前,事务才会在会话之外看到。 如果另一个用户登录,那么他们将看到该表以其最后提交状态存储在数据库中的表。 这就是撤消空间,重做日志等的原因。在你的场景中,即使B已经提交了他的事务,用户B也不会看到A的事务,因为A没有提交他们的更改。 Transactions are not seen outside of your session until you commit. If another user logs in, then they will see the table as it was s ...
  • 您可以使用monitoring功能和dba_tab_modifications表来获取该信息。 例如,请参见此处或此处 。 You can use the monitoring feature and the dba_tab_modifications table to get that information. See for example here or here.
  • ALTER技术上讲, ALTER将是DDL(数据定义语言),因为它会更改基础表/结构。 DML(数据操作语言)将类似于: UPDATE comics SET originalPriceDollars=6.99 WHERE title='Star Wars: Darth Maul' AND issueNumber=1; 基本上UPDATE和INSERT更改数据, ALTER更改基础表/结构。 ALTER would technically be DDL (Data Definition Langu ...
  • 在Oracle中,如果您在同一会话中连续两次运行该更新,并且显示了您所显示的数据,我相信您应该得到您期望的结果。 我想你一定是偏离了某个地方。 (例如,如果您执行了一次更新,那么在未提交的情况下,您再次打开第二个会话并再次执行相同的更新,那么您的结果将是有意义的。) 从概念上讲,我认为你的问题的答案是肯定的(特别是关于Oracle的说法)。 在语句开始执行的时间点,SQL语句有效地对表的快照进行操作。 Oracle中适当的术语是读一致性。 但是,它的机制不涉及在进行更改之前拍摄整个表的快照。 反过来 - 更 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)