Opencv: VideoCapture ์ถœ์‹œ / ์›น์บ ์ด ์ž‘๋™ํ•˜์ง€ ์•Š์Œ

์— ๋งŒ๋“  2015๋…„ 07์›” 27์ผ  ยท  3์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: opencv/opencv

http://code.opencv.org/issues/3672 ์—์„œ ์ด์ „๋จ

|| Martijn van der Veen on 2014-05-02 21:02
|| Priority: Normal
|| Affected: branch 'master' (3.0-dev)
|| Category: python bindings
|| Tracker: Bug
|| Difficulty: Medium
|| PR: 
|| Platform: x64 / Linux

VideoCapture ์ถœ์‹œ / ์›น์บ ์ด ์ž‘๋™ํ•˜์ง€ ์•Š์Œ

Using python (3.4) bindings on Ubuntu 14.04 with build-in webcam using v4l4, master branch:

In [2]: cap = cv2.VideoCapture(0)
HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP

In [3]: a,b = cap.read() # although error, reading frame works (a=True, b=np.array)

In [4]: cap.release()

In [5]: cap.isOpened()
Out[5]: False

In [6]: cap = cv2.VideoCapture(0)
HIGHGUI ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV

In [7]: a,b = cap.read()
VIDIOC_STREAMON: Bad file descriptor


After calling .release(), webcam light stays on and webcam stays unreachable for other programs (e.g., Cheese).

์—ญ์‚ฌ

Martijn van der Veen ์ž‘์„ฑ์ผ: 2014-05-02 21:24
(Btw, the webcam _is_ released when python exits, but in some cases that's not enough - e.g., for running programs that need to release the webcam now and then.)
Alexander Smorkalov on 2014-05-04 15:58
-   Category set to python bindings
์•ค๋“œ๋ฅ˜ ์„ธ๋‹Œ on 2014-05-06 14:21
Hello Martijn, 

Since our resources are limited please consider investigating this issue and creating a fixing pull request (http://code.opencv.org/projects/opencv/wiki/How_to_contribute). All help to the project is highly appreciated!
-   Difficulty set to Medium
-   Assignee set to Martijn van der Veen
-   Status changed from New to Open
๋ง‰์‹ฌ ์ƒค๋ถ€๋‹Œ 2015-04-27 09:12
-   Target version changed from 3.0-beta to 3.0
๋ง‰์‹ฌ ์ƒค๋ถ€๋‹Œ 2015-04-28 13:42
Can not reproduce with the 3.0-rc1 release. Webcam is successfully released and reopened.

Can you, please, try to reproduce it with the latest version? Probably it has been fixed already.
-   Assignee changed from Martijn van der Veen to Maksim Shabunin
๋ง‰์‹ฌ ์ƒค๋ถ€๋‹Œ 2015-04-28 13:42
-   Status changed from Open to Incomplete
3.4 auto-transferred bug python bindings normal

๋ชจ๋“  3 ๋Œ“๊ธ€

์•„๋ฌด๋„ ์ด๊ฒƒ์„ ์ง‘์–ด ๋“ค์ง€ ์•Š์•˜๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๊นŒ? ์ด ๋ฒ„๊ทธ๋Š” Java์šฉ OpenCV์—๋„ ์˜ํ–ฅ์„ ๋ฏธ์นฉ๋‹ˆ๋‹ค. ๊ธฐํ•œ์ด ์ด‰๋ฐ•ํ•˜์ง€๋งŒ ์ด ๋ฒ„๊ทธ๋ฅผ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์—์„œ ๋‚ด ์ž‘์—…์„ ์™„๋ฃŒํ•œ ํ›„ ์ด๋ฅผ ์กฐ์‚ฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ฐ€๋Šฅํ•˜๋ฉด 3๊ฐœ์›” ์•ˆ์— ๋ฐ›์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

@brianmichalk1 Pullrequest ๋ฅผ ํ†ตํ•ด ์ˆ˜์ • ์‚ฌํ•ญ์„ ์ œ๊ณตํ•  ์ˆ˜ ์žˆ๋‹ค๋ฉด ์ž์œ ๋กญ๊ฒŒ ์„ ํƒํ•˜์„ธ์š”.

C++์—์„œ ์ด ๋ฒ„๊ทธ๋Š” OpenCV 2.4์— ์˜์กดํ•˜๋Š” OpenBR ์‚ฌ์šฉ์— ์˜ํ–ฅ์„ ๋ฏธ์นฉ๋‹ˆ๋‹ค .์ด ๋ฒ„๊ทธ๊ฐ€ OpenCV 3 ์—์„œ ํ•ด๊ฒฐ๋˜๋ฉด OpenCV 2.4.*์—์„œ ์ด ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋ฉ๋‹ˆ๊นŒ?
์˜คํ”ˆBR: v 1.1.0
๋ ™ํ† ๋‹ˆ์นด: v 1.74.1
OpenCV: v. 2.4

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰