VideoCapture.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="en">
  4. <head>
  5. <!-- Generated by javadoc (1.8.0_65) on Fri Dec 18 18:19:52 MSK 2015 -->
  6. <title>VideoCapture</title>
  7. <meta name="date" content="2015-12-18">
  8. <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
  9. <script type="text/javascript" src="../../../script.js"></script>
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. try {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="VideoCapture";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10};
  22. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
  23. var altColor = "altColor";
  24. var rowColor = "rowColor";
  25. var tableTab = "tableTab";
  26. var activeTableTab = "activeTableTab";
  27. </script>
  28. <noscript>
  29. <div>JavaScript is disabled on your browser.</div>
  30. </noscript>
  31. <!-- ========= START OF TOP NAVBAR ======= -->
  32. <div class="topNav"><a name="navbar.top">
  33. <!-- -->
  34. </a>
  35. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  36. <a name="navbar.top.firstrow">
  37. <!-- -->
  38. </a>
  39. <ul class="navList" title="Navigation">
  40. <li><a href="../../../overview-summary.html">Overview</a></li>
  41. <li><a href="package-summary.html">Package</a></li>
  42. <li class="navBarCell1Rev">Class</li>
  43. <li><a href="package-tree.html">Tree</a></li>
  44. <li><a href="../../../index-all.html">Index</a></li>
  45. <li><a href="../../../help-doc.html">Help</a></li>
  46. </ul>
  47. <div class="aboutLanguage">OpenCV 3.1.0</div>
  48. </div>
  49. <div class="subNav">
  50. <ul class="navList">
  51. <li>Prev&nbsp;Class</li>
  52. <li><a href="../../../org/opencv/videoio/Videoio.html" title="class in org.opencv.videoio"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  53. </ul>
  54. <ul class="navList">
  55. <li><a href="../../../index.html?org/opencv/videoio/VideoCapture.html" target="_top">Frames</a></li>
  56. <li><a href="VideoCapture.html" target="_top">No&nbsp;Frames</a></li>
  57. </ul>
  58. <ul class="navList" id="allclasses_navbar_top">
  59. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  60. </ul>
  61. <div>
  62. <script type="text/javascript"><!--
  63. allClassesLink = document.getElementById("allclasses_navbar_top");
  64. if(window==top) {
  65. allClassesLink.style.display = "block";
  66. }
  67. else {
  68. allClassesLink.style.display = "none";
  69. }
  70. //-->
  71. </script>
  72. </div>
  73. <div>
  74. <ul class="subNavList">
  75. <li>Summary:&nbsp;</li>
  76. <li>Nested&nbsp;|&nbsp;</li>
  77. <li>Field&nbsp;|&nbsp;</li>
  78. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  79. <li><a href="#method.summary">Method</a></li>
  80. </ul>
  81. <ul class="subNavList">
  82. <li>Detail:&nbsp;</li>
  83. <li>Field&nbsp;|&nbsp;</li>
  84. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  85. <li><a href="#method.detail">Method</a></li>
  86. </ul>
  87. </div>
  88. <a name="skip.navbar.top">
  89. <!-- -->
  90. </a></div>
  91. <!-- ========= END OF TOP NAVBAR ========= -->
  92. <!-- ======== START OF CLASS DATA ======== -->
  93. <div class="header">
  94. <div class="subTitle">org.opencv.videoio</div>
  95. <h2 title="Class VideoCapture" class="title">Class VideoCapture</h2>
  96. </div>
  97. <div class="contentContainer">
  98. <ul class="inheritance">
  99. <li>java.lang.Object</li>
  100. <li>
  101. <ul class="inheritance">
  102. <li>org.opencv.videoio.VideoCapture</li>
  103. </ul>
  104. </li>
  105. </ul>
  106. <div class="description">
  107. <ul class="blockList">
  108. <li class="blockList">
  109. <hr>
  110. <br>
  111. <pre>public class <span class="typeNameLabel">VideoCapture</span>
  112. extends java.lang.Object</pre>
  113. </li>
  114. </ul>
  115. </div>
  116. <div class="summary">
  117. <ul class="blockList">
  118. <li class="blockList">
  119. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  120. <ul class="blockList">
  121. <li class="blockList"><a name="constructor.summary">
  122. <!-- -->
  123. </a>
  124. <h3>Constructor Summary</h3>
  125. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  126. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  127. <tr>
  128. <th class="colOne" scope="col">Constructor and Description</th>
  129. </tr>
  130. <tr class="altColor">
  131. <td class="colOne"><code><span class="memberNameLink"><a href="../../../org/opencv/videoio/VideoCapture.html#VideoCapture--">VideoCapture</a></span>()</code>&nbsp;</td>
  132. </tr>
  133. <tr class="rowColor">
  134. <td class="colOne"><code><span class="memberNameLink"><a href="../../../org/opencv/videoio/VideoCapture.html#VideoCapture-int-">VideoCapture</a></span>(int&nbsp;index)</code>&nbsp;</td>
  135. </tr>
  136. <tr class="altColor">
  137. <td class="colOne"><code><span class="memberNameLink"><a href="../../../org/opencv/videoio/VideoCapture.html#VideoCapture-java.lang.String-">VideoCapture</a></span>(java.lang.String&nbsp;filename)</code>&nbsp;</td>
  138. </tr>
  139. <tr class="rowColor">
  140. <td class="colOne"><code><span class="memberNameLink"><a href="../../../org/opencv/videoio/VideoCapture.html#VideoCapture-java.lang.String-int-">VideoCapture</a></span>(java.lang.String&nbsp;filename,
  141. int&nbsp;apiPreference)</code>&nbsp;</td>
  142. </tr>
  143. </table>
  144. </li>
  145. </ul>
  146. <!-- ========== METHOD SUMMARY =========== -->
  147. <ul class="blockList">
  148. <li class="blockList"><a name="method.summary">
  149. <!-- -->
  150. </a>
  151. <h3>Method Summary</h3>
  152. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  153. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  154. <tr>
  155. <th class="colFirst" scope="col">Modifier and Type</th>
  156. <th class="colLast" scope="col">Method and Description</th>
  157. </tr>
  158. <tr id="i0" class="altColor">
  159. <td class="colFirst"><code>double</code></td>
  160. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/videoio/VideoCapture.html#get-int-">get</a></span>(int&nbsp;propId)</code>&nbsp;</td>
  161. </tr>
  162. <tr id="i1" class="rowColor">
  163. <td class="colFirst"><code>boolean</code></td>
  164. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/videoio/VideoCapture.html#grab--">grab</a></span>()</code>&nbsp;</td>
  165. </tr>
  166. <tr id="i2" class="altColor">
  167. <td class="colFirst"><code>boolean</code></td>
  168. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/videoio/VideoCapture.html#isOpened--">isOpened</a></span>()</code>&nbsp;</td>
  169. </tr>
  170. <tr id="i3" class="rowColor">
  171. <td class="colFirst"><code>boolean</code></td>
  172. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/videoio/VideoCapture.html#open-int-">open</a></span>(int&nbsp;index)</code>&nbsp;</td>
  173. </tr>
  174. <tr id="i4" class="altColor">
  175. <td class="colFirst"><code>boolean</code></td>
  176. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/videoio/VideoCapture.html#open-java.lang.String-">open</a></span>(java.lang.String&nbsp;filename)</code>&nbsp;</td>
  177. </tr>
  178. <tr id="i5" class="rowColor">
  179. <td class="colFirst"><code>boolean</code></td>
  180. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/videoio/VideoCapture.html#open-java.lang.String-int-">open</a></span>(java.lang.String&nbsp;filename,
  181. int&nbsp;apiPreference)</code>&nbsp;</td>
  182. </tr>
  183. <tr id="i6" class="altColor">
  184. <td class="colFirst"><code>boolean</code></td>
  185. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/videoio/VideoCapture.html#read-org.opencv.core.Mat-">read</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;image)</code>&nbsp;</td>
  186. </tr>
  187. <tr id="i7" class="rowColor">
  188. <td class="colFirst"><code>void</code></td>
  189. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/videoio/VideoCapture.html#release--">release</a></span>()</code>&nbsp;</td>
  190. </tr>
  191. <tr id="i8" class="altColor">
  192. <td class="colFirst"><code>boolean</code></td>
  193. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/videoio/VideoCapture.html#retrieve-org.opencv.core.Mat-">retrieve</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;image)</code>&nbsp;</td>
  194. </tr>
  195. <tr id="i9" class="rowColor">
  196. <td class="colFirst"><code>boolean</code></td>
  197. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/videoio/VideoCapture.html#retrieve-org.opencv.core.Mat-int-">retrieve</a></span>(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;image,
  198. int&nbsp;flag)</code>&nbsp;</td>
  199. </tr>
  200. <tr id="i10" class="altColor">
  201. <td class="colFirst"><code>boolean</code></td>
  202. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/opencv/videoio/VideoCapture.html#set-int-double-">set</a></span>(int&nbsp;propId,
  203. double&nbsp;value)</code>&nbsp;</td>
  204. </tr>
  205. </table>
  206. <ul class="blockList">
  207. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  208. <!-- -->
  209. </a>
  210. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  211. <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  212. </ul>
  213. </li>
  214. </ul>
  215. </li>
  216. </ul>
  217. </div>
  218. <div class="details">
  219. <ul class="blockList">
  220. <li class="blockList">
  221. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  222. <ul class="blockList">
  223. <li class="blockList"><a name="constructor.detail">
  224. <!-- -->
  225. </a>
  226. <h3>Constructor Detail</h3>
  227. <a name="VideoCapture--">
  228. <!-- -->
  229. </a>
  230. <ul class="blockList">
  231. <li class="blockList">
  232. <h4>VideoCapture</h4>
  233. <pre>public&nbsp;VideoCapture()</pre>
  234. </li>
  235. </ul>
  236. <a name="VideoCapture-int-">
  237. <!-- -->
  238. </a>
  239. <ul class="blockList">
  240. <li class="blockList">
  241. <h4>VideoCapture</h4>
  242. <pre>public&nbsp;VideoCapture(int&nbsp;index)</pre>
  243. </li>
  244. </ul>
  245. <a name="VideoCapture-java.lang.String-">
  246. <!-- -->
  247. </a>
  248. <ul class="blockList">
  249. <li class="blockList">
  250. <h4>VideoCapture</h4>
  251. <pre>public&nbsp;VideoCapture(java.lang.String&nbsp;filename)</pre>
  252. </li>
  253. </ul>
  254. <a name="VideoCapture-java.lang.String-int-">
  255. <!-- -->
  256. </a>
  257. <ul class="blockListLast">
  258. <li class="blockList">
  259. <h4>VideoCapture</h4>
  260. <pre>public&nbsp;VideoCapture(java.lang.String&nbsp;filename,
  261. int&nbsp;apiPreference)</pre>
  262. </li>
  263. </ul>
  264. </li>
  265. </ul>
  266. <!-- ============ METHOD DETAIL ========== -->
  267. <ul class="blockList">
  268. <li class="blockList"><a name="method.detail">
  269. <!-- -->
  270. </a>
  271. <h3>Method Detail</h3>
  272. <a name="get-int-">
  273. <!-- -->
  274. </a>
  275. <ul class="blockList">
  276. <li class="blockList">
  277. <h4>get</h4>
  278. <pre>public&nbsp;double&nbsp;get(int&nbsp;propId)</pre>
  279. </li>
  280. </ul>
  281. <a name="grab--">
  282. <!-- -->
  283. </a>
  284. <ul class="blockList">
  285. <li class="blockList">
  286. <h4>grab</h4>
  287. <pre>public&nbsp;boolean&nbsp;grab()</pre>
  288. </li>
  289. </ul>
  290. <a name="isOpened--">
  291. <!-- -->
  292. </a>
  293. <ul class="blockList">
  294. <li class="blockList">
  295. <h4>isOpened</h4>
  296. <pre>public&nbsp;boolean&nbsp;isOpened()</pre>
  297. </li>
  298. </ul>
  299. <a name="open-int-">
  300. <!-- -->
  301. </a>
  302. <ul class="blockList">
  303. <li class="blockList">
  304. <h4>open</h4>
  305. <pre>public&nbsp;boolean&nbsp;open(int&nbsp;index)</pre>
  306. </li>
  307. </ul>
  308. <a name="open-java.lang.String-">
  309. <!-- -->
  310. </a>
  311. <ul class="blockList">
  312. <li class="blockList">
  313. <h4>open</h4>
  314. <pre>public&nbsp;boolean&nbsp;open(java.lang.String&nbsp;filename)</pre>
  315. </li>
  316. </ul>
  317. <a name="open-java.lang.String-int-">
  318. <!-- -->
  319. </a>
  320. <ul class="blockList">
  321. <li class="blockList">
  322. <h4>open</h4>
  323. <pre>public&nbsp;boolean&nbsp;open(java.lang.String&nbsp;filename,
  324. int&nbsp;apiPreference)</pre>
  325. </li>
  326. </ul>
  327. <a name="read-org.opencv.core.Mat-">
  328. <!-- -->
  329. </a>
  330. <ul class="blockList">
  331. <li class="blockList">
  332. <h4>read</h4>
  333. <pre>public&nbsp;boolean&nbsp;read(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;image)</pre>
  334. </li>
  335. </ul>
  336. <a name="release--">
  337. <!-- -->
  338. </a>
  339. <ul class="blockList">
  340. <li class="blockList">
  341. <h4>release</h4>
  342. <pre>public&nbsp;void&nbsp;release()</pre>
  343. </li>
  344. </ul>
  345. <a name="retrieve-org.opencv.core.Mat-">
  346. <!-- -->
  347. </a>
  348. <ul class="blockList">
  349. <li class="blockList">
  350. <h4>retrieve</h4>
  351. <pre>public&nbsp;boolean&nbsp;retrieve(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;image)</pre>
  352. </li>
  353. </ul>
  354. <a name="retrieve-org.opencv.core.Mat-int-">
  355. <!-- -->
  356. </a>
  357. <ul class="blockList">
  358. <li class="blockList">
  359. <h4>retrieve</h4>
  360. <pre>public&nbsp;boolean&nbsp;retrieve(<a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a>&nbsp;image,
  361. int&nbsp;flag)</pre>
  362. </li>
  363. </ul>
  364. <a name="set-int-double-">
  365. <!-- -->
  366. </a>
  367. <ul class="blockListLast">
  368. <li class="blockList">
  369. <h4>set</h4>
  370. <pre>public&nbsp;boolean&nbsp;set(int&nbsp;propId,
  371. double&nbsp;value)</pre>
  372. </li>
  373. </ul>
  374. </li>
  375. </ul>
  376. </li>
  377. </ul>
  378. </div>
  379. </div>
  380. <!-- ========= END OF CLASS DATA ========= -->
  381. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  382. <div class="bottomNav"><a name="navbar.bottom">
  383. <!-- -->
  384. </a>
  385. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  386. <a name="navbar.bottom.firstrow">
  387. <!-- -->
  388. </a>
  389. <ul class="navList" title="Navigation">
  390. <li><a href="../../../overview-summary.html">Overview</a></li>
  391. <li><a href="package-summary.html">Package</a></li>
  392. <li class="navBarCell1Rev">Class</li>
  393. <li><a href="package-tree.html">Tree</a></li>
  394. <li><a href="../../../index-all.html">Index</a></li>
  395. <li><a href="../../../help-doc.html">Help</a></li>
  396. </ul>
  397. <div class="aboutLanguage"><a href="http://docs.opencv.org">OpenCV 3.1.0 Documentation</a></div>
  398. </div>
  399. <div class="subNav">
  400. <ul class="navList">
  401. <li>Prev&nbsp;Class</li>
  402. <li><a href="../../../org/opencv/videoio/Videoio.html" title="class in org.opencv.videoio"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  403. </ul>
  404. <ul class="navList">
  405. <li><a href="../../../index.html?org/opencv/videoio/VideoCapture.html" target="_top">Frames</a></li>
  406. <li><a href="VideoCapture.html" target="_top">No&nbsp;Frames</a></li>
  407. </ul>
  408. <ul class="navList" id="allclasses_navbar_bottom">
  409. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  410. </ul>
  411. <div>
  412. <script type="text/javascript"><!--
  413. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  414. if(window==top) {
  415. allClassesLink.style.display = "block";
  416. }
  417. else {
  418. allClassesLink.style.display = "none";
  419. }
  420. //-->
  421. </script>
  422. </div>
  423. <div>
  424. <ul class="subNavList">
  425. <li>Summary:&nbsp;</li>
  426. <li>Nested&nbsp;|&nbsp;</li>
  427. <li>Field&nbsp;|&nbsp;</li>
  428. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  429. <li><a href="#method.summary">Method</a></li>
  430. </ul>
  431. <ul class="subNavList">
  432. <li>Detail:&nbsp;</li>
  433. <li>Field&nbsp;|&nbsp;</li>
  434. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  435. <li><a href="#method.detail">Method</a></li>
  436. </ul>
  437. </div>
  438. <a name="skip.navbar.bottom">
  439. <!-- -->
  440. </a></div>
  441. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  442. </body>
  443. </html>