From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-11-2017 01:20 AM - edited 04-11-2017 01:22 AM
Hello ,
i am doing image processing by using Myrio and USB camera in real time .
in the program i acquire image and do some filtering and skeleton to find the straight lines
but the result appear after long time
how can i make it faster?
04-11-2017 08:36 AM
Welcome to the world of Video Processing, where the data set is often large, complex, and thus requiring significant CPU power and speed to "do rapidly".
Note that your images are almost 4MB in size (each, and you are using Grab, implying that you are taking multiple images at some frame rate). One thing you could do that would help is to acquire the images as 8-bit Greyscale, and maybe use a lower resolution, say 640 x 400 (which would give you a factor of 8 smaller image size-in-bytes).
The myRIO does have an FPGA -- I don't know if any of the Image-processing algorithms can run in there, but since the algorithms you need to use are parallel in nature, if they've been developed for the FPGA, they should be significantly faster. Otherwise, you've bitten off a computationally-intensive problem ...
Bob Schor
04-12-2017 10:35 AM - edited 04-12-2017 10:37 AM
@Bob_Schor wrote:
Welcome to the world of Video Processing, where the data set is often large, complex, and thus requiring significant CPU power and speed to "do rapidly".
Note that your images are almost 4MB in size (each, and you are using Grab, implying that you are taking multiple images at some frame rate). One thing you could do that would help is to acquire the images as 8-bit Greyscale, and maybe use a lower resolution, say 640 x 400 (which would give you a factor of 8 smaller image size-in-bytes).
The myRIO does have an FPGA -- I don't know if any of the Image-processing algorithms can run in there, but since the algorithms you need to use are parallel in nature, if they've been developed for the FPGA, they should be significantly faster. Otherwise, you've bitten off a computationally-intensive problem ...
Bob Schor
thank you for replying
but can you help me how to acquire the video without Grab ?
also how to acquire the images as 8-bit Grayscale?
04-12-2017 10:36 AM
thank you for replying
but can you help me how to acquire the video without Grab ?
also how to acquire the images as 8-bit Grayscale?
04-12-2017 11:13 AM
If you want to acquire a video (meaning successive images at a frame rate that might, or might not, be settable on your Camera), Grab is a good choice. If you need only an Image, use Snap.
Did you notice that the Grab and Snap functions require an "Image In", which you create using IMAQ Create Image? Create Image has an Image Type parameter, an Enum whose first element is "Grayscale (U8)".
If none of this makes sense to you, you need to learn a lot more about NI Vision. I recommend finding a colleague or mentor and asking for guidance.
Bob Schor