Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

How I can read video frame in niosII for image processing

Hi All,

How I can read video frame in niosII for image processing?

I use the following IP & VIP:

cpu

sram

altpll

timer

sysid

jtag_uart

sdram

Clocked Video Input

Color Plane Sequencer

Frame Buffer

Color Plane Sequencer

two Clocked Video Outup, one for the 800x600 and the other for the VGA

The SopC on DE2-115 works well wit this IP cores.

After frame reads, I would make any simple image processing equal color to gray, resave it and send over ethernet to another Freescale Eval Board.

Could you also explain me how I can transmit this over ethernet?

Thanks a lot...

Antonio

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    It depend on the kind of processing but for full image transformation with simple operations, a streaming module would be more efficient.

    Yet for NiosII access to frame:

    You should know when the image buffer is located in memory.

    Link the AvalonMM data bus of NiosII to that memory.

    Use IORD and IOWR to change the content.

    To send it over the ethernet, you can use sockets base on the InterNiche stack for example, you need to look to samples using it.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    thanks you for the answer.

    Could I set in the Frame Buffer VIP follows

    - Run-time control for the reader thread

    for read video frame and make any image processing?

    When yes, could you give me any Nios II C-examples for the Frame Buffer

    to init,start and restore in sdram again?

    Thanks you alot.

    Antonio