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
最满意答案
当快照涉及多个表和/或视图时,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
相关问答
更多-
是否存在Oracle DML table_reference的任何解析器?(Do any parsers exist for the Oracle DML table_reference?)[2023-01-18]
当快照涉及多个表和/或视图时,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 ... -
Oracle SQL - SELECT查询锁定索引并阻止DML会话(Oracle SQL - SELECT query locks index & blocks DML sessions)[2024-03-26]
查询返回的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临时表上使用DML而不生成多少撤销日志(How to use DML on Oracle temporary table without generating much undo log)[2022-01-18]
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 ...
-
DML统计,oracle(DML statistics, oracle)[2022-09-08]
您可以使用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中适当的术语是读一致性。 但是,它的机制不涉及在进行更改之前拍摄整个表的快照。 反过来 - 更 ...