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
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).
(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.)
- Category set to python bindings
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
- Target version changed from 3.0-beta to 3.0
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
- Status changed from Open to Incomplete
์๋ฌด๋ ์ด๊ฒ์ ์ง์ด ๋ค์ง ์์๋ค๊ณ ์๊ฐํฉ๋๊น? ์ด ๋ฒ๊ทธ๋ 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