"The camera did not return a frame for this resolution"

12 ビュー (過去 30 日間)
Madhavendra Bhatnagar
Madhavendra Bhatnagar 2018 年 5 月 11 日
コメント済み: royed 2020 年 9 月 6 日
Folks, Following is my configuration: Matlab : R2018a Windows Edition : 8.1 Camera : Inbuilt webcam unit on HP laptop : (Application goes by the name : CyberLink YouCam) I am running following string camera = webcam ------------------------------------ It echoes following message:
camera =
webcam with properties:
Name: 'HP Truevision HD'
AvailableResolutions: {'640x480' '160x120' '176x144' '320x240' '352x288' '640x360' '1280x720'}
Resolution: '640x480'
BacklightCompensation: 0
Exposure: -6
Saturation: 64
Contrast: 32
Gamma: 100
Brightness: 0
ExposureMode: 'auto'
Hue: 0
WhiteBalance: 4600
Sharpness: 2
Gain: 4
WhiteBalanceMode: 'auto'
Error using asyncio.MessageHandler/onError (line 31)
The camera did not return a frame for this resolution.
------------------------------------------------------
I tried all the supported resolutions(from "AvailableResolutions" parameter) through following command string
camera.Resolution = '160x120'; % Error persists
camera.Resolution = '176x144'; % Error persists
camera.Resolution = '320x240' % Error persists
camera.Resolution = '352x288' % Error persists
camera.Resolution = '640x360' % Error persists
camera.Resolution = '1280x720' % Error persists
Please guide on fixing the issue. Regards Shaan
  1 件のコメント
Jan
Jan 2018 年 5 月 11 日
Please post the command you use to obtain one image.

サインインしてコメントする。

回答 (1 件)

Madhavendra Bhatnagar
Madhavendra Bhatnagar 2018 年 5 月 11 日
Finally, I could fix the issue as follows: The reason, Matlab was not getting frame from the camera was due to 2 applications colliding while accessing the same camera (webcam unit). I did n't realize that I had enabled GUI (Application 1) for webcam as well, which is a different application altogether and is blocking frames to Matlab (Application 2). Matlab did n't report any frame errors after I have exited WebCam GUI tool (CyberLink YouCam 5) on my HP laptop. I wish Matlab could print meaningful error message. Meaningful messages would significantly save on wasteful debug exercise.
  2 件のコメント
Tony Kaywood
Tony Kaywood 2020 年 9 月 6 日
Hi, I know it's too far to comment here but, can I know how you noticed two webcams are colliding? I'm using my webcam via Matlab it hasn't made any error but couple of days ago, it started making an error "The camera did not return a frame for this resolution."
I don't use any other webcam using program or other things, so I'm really confused. Thanks for any reply!
royed
royed 2020 年 9 月 6 日
I think in Madhavendra's case the GUI tool was working in the background. Can you check if the camera is detected by any pre develoved GUI?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Support Package for IP Cameras についてさらに検索

タグ

製品


リリース

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by