High speed camera compatible with Matlab

Hello I want you to help choose a camera that I can connect with the Matlab and is characterized by fast and high accuracy and that is for use in the project   The sorting of objects exists in a fast moving motion

댓글 수: 2

What framerate do you require?
Does it have to be USB or could it be gigabit ethernet?
said kiram
said kiram 2017년 12월 10일
Better USB

댓글을 달려면 로그인하십시오.

답변 (2개)

ABHILASH SINGH
ABHILASH SINGH 2018년 4월 3일

1 개 추천

댓글 수: 3

However, these would not typically be "characterized by fast and high accuracy" as required by the Question.
It depend upon the quality of the camera that is available in your phone.
You missed the "fast" part of the question.
See for example https://www.speedguide.net/faq/what-is-the-actual-real-life-speed-of-wireless-374 which says that for 802.11g that typical transfer rates are only about 20 Mbps.
On my smartphone, the default image size is 9.6 megapixels, and each of those pixels is 3 bytes (RGB). If that were uncompressed that would give you 9.6E6*3*8/1024/1024 = 219.7 megabits, which would be about 1 frame every 10 seconds. With compression of course there is the potential for considerably more frames per second. Typical PNG lossless compression ratio is about 2.7:1, which would get you down to about 1 frame every 4 seconds.
Since "fast" was required, suppose we say that 20 fps is the requirement (because 10 fps is decidedly not fast -- typical video rates are 24 to 30 fps but for the sake of argument suppose we are willing to tolerate a bit low of a meaning of "fast".
Okay, so to go from 1 frame every 4 seconds to 20 frames per second, we would need to be transferring 1/80th of the data. But that's into lossy compression now. So we go back to the original data rate. 20 fps in 20 Mbps requires an average of 1 megabits per frame, which would about 220:1 lossy compression ratio.
"I decided to check compression ratios for JPEG values in range [55..100], because lower values are not looking acceptable for the most of the users (too strong artifacts)."
and for QI=55, Andrew found an average compression of 43.27:1 . So to get 220:1 would require 5 times more compression than the value reported as unacceptable.
What might it look like? Well it would be compression to 1/2 of 1% so it would be worse quality than the following example from wikimedia:
I find it difficult to believe that anyone would accept this as being both "fast and high accuracy"

댓글을 달려면 로그인하십시오.

Walter Roberson
Walter Roberson 2017년 12월 10일

0 개 추천

If you are using Simulink then see https://www.mathworks.com/matlabcentral/answers/5433-image-acquisition-in-simulink-framerate-problem#answer_34598 for a 30 fps method; without it you probably cannot get nearly the same rate in Simulink.
For MATLAB use, sometimes 15 fps can be reached, but not always https://www.mathworks.com/matlabcentral/answers/196731-using-a-webcam-with-matlab
Much higher framerates can be reached using Mex files and very small frames (such as 32 x 32 pixels); see https://www.mathworks.com/matlabcentral/answers/63046-image-acquisition-camera-high-speed-fast-capture

댓글 수: 8

said kiram
said kiram 2017년 12월 10일
I mean a model for a camera like Canon or Nikon or Sony
Most Canon, Nikon, and Sony consumer cameras cannot be used for webcam work over USB: they generally either cannot do live work at all or are limited to streaming a copy of their viewfinder (at its resolution, not full camera resolution) over HDMI and you would need an HDMI capture board to capture that.
Some of the newer Canon can handle live streaming over WiFi; Rebel X1 is the model that comes to mind, but I would need to check that. I have posted before listing the webcam support for Canon cameras. Except for those high end prosumer models, about the best you can do on Canon is streaming the viewfinder, or wireless remote control to trigger individual frames and then later connect the camera to USB to transfer the frames.
I have also posted before listing the webcam support for Nikon and for Sony. One of the two (and I do not remember which at the moment) had no webcam support in their consumer camera lines the last time I checked -- I think it might have been Nikon, as I seem to recall that Sony has created a "Go Pro" equivalent line (and is otherwise pretty weak on webcam support.)
Sony makes industrial USB cameras with webcam support. The higher speed models are, I seem to remember, mostly greyscale.
Note: I do not deliberately keep up with the model offerings from those three manufacturers, but from time to time I answer questions about their support of webcam, so from time to time I go through their lines to see what they can do. The manufacturers might have created new models since I last looked at their offerings.
If you want high speed color, then you are going to need to either go with Sony Industrial, or with some other manufacturer other than those three -- though the Sony action cameras might perhaps have high enough frame rate for you. But if you are thinking of one of the Nikon consumer cameras, or are thinking even as high as a Canon D800, then forget it: you need higher end than that in the Canon line.
said kiram
said kiram 2017년 12월 10일
What do you think of the GoPro ?
I do not have experience with GoPro. I see that some of the models are rated up to 240 frames per second of NTSC at 1920 x 1280.
A method of live streaming of some GoPro cameras is shown at https://www.mathworks.com/matlabcentral/answers/171275-how-to-access-gopro-live-streaming-using-image-acquisition-tool-through-wifi and see https://www.mathworks.com/matlabcentral/answers/295471-is-matlab-function-videoinput-or-other-functions-able-to-real-time-process-with-gopro-video-data . I see some people mentioning Hero3 as being usable for direct webcam streaming to MATLAB but I see doubts about models after Hero3. I have not read through the product manuals.
If someone were to send me a GoPro, I could experiment ;-)
said kiram
said kiram 2017년 12월 10일
I experimented with connecting my smartphone camera using the DroidCam application with Wi-Fi computer But as a phone vendor do not support the sport style
Image Analyst
Image Analyst 2017년 12월 10일
What is "high speed" to you? Usually in industry it means like 1000 frames per second or more, up to a million frames per second. See Phantom Cameras.
said kiram
said kiram 2017년 12월 10일
편집: said kiram 2017년 12월 10일
I mean the words * speed * When I give the order to take a picture and the walk moves the picture is clear. And look for available market sizes for a university project

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 MATLAB Support Package for IP Cameras에 대해 자세히 알아보기

질문:

2017년 12월 10일

댓글:

2018년 4월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by