Forum Discussion

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

How to obtain images from SD-RAM?

I am working on a final year project to detect human figure in an image from cameras using verilog code. The platform used in the project is a DE2 board(Cyclone EP2C35F672C6N) and D5M(camera).

I have succeeded in converting the colored image into gray scale images and display it in a monitor. Now, i would like to read the images from the SD-RAM and apply image processing steps for image analysis.

I am encountering a few problems as below:

1.The images stored in the SD-RAM is constantly changing, meaning that the pixel stored in it will be replaced by new pixel that the camera capture. The camera functions in real time. The camera will obtain images and display them in a monitor in real time. Since i have converted the images to gray scale, the images stored in the SD-RAM is also gray scale. Since R = G= B, I need to read out either one to carry out image processing. How to read out the R or G or B from the SD-RAM?

2. Is it possible to do image processing using verilog coding?

Can anyone please give me some advice or offer some reference for me? I have attached a zip file file for the current project in the post.

16 Replies

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

    Hi,

    I am using DE2-70 board with TRDB-D5M camera and TRDM-LTM (touch module) to display the image captured by the camera. I have used the reference design for the image dispaly.

    How can i do image processing? How do i use SDRAM for the image enhancement. Any algorithm or idea is appreciated.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    i am using Terasic 5MP Camera with LCD touch panel and DE2-70 board. I am able to capture the image and display it on LCD. Now i need to retrieve that image from the SDRAM and do edge detection. How do i know the memory location for that image (RGB). How can i save it to another register?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Vachi,

    I am also trying to do edge detection using de2. would you mind sharing your code or resources.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have a question, is your project reading an image and displaying it using the VGA? thanks.

    --- Quote Start ---

    I am working on a final year project to detect human figure in an image from cameras using verilog code. The platform used in the project is a DE2 board(Cyclone EP2C35F672C6N) and D5M(camera).

    I have succeeded in converting the colored image into gray scale images and display it in a monitor. Now, i would like to read the images from the SD-RAM and apply image processing steps for image analysis.

    I am encountering a few problems as below:

    1.The images stored in the SD-RAM is constantly changing, meaning that the pixel stored in it will be replaced by new pixel that the camera capture. The camera functions in real time. The camera will obtain images and display them in a monitor in real time. Since i have converted the images to gray scale, the images stored in the SD-RAM is also gray scale. Since R = G= B, I need to read out either one to carry out image processing. How to read out the R or G or B from the SD-RAM?

    2. Is it possible to do image processing using verilog coding?

    Can anyone please give me some advice or offer some reference for me? I have attached a zip file file for the current project in the post.

    --- Quote End ---

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

    --- Quote Start ---

    hi lgsl88,

    i have a edge detection project that is implemented in DE2 board and it uses 1.3MP camera module......

    Will it b useful to you???

    --- Quote End ---

    Hi.. I am currently doing the similar project in Verilog HDL for Number plate recognition. I feel that your project is helpful to start in many possible ways. Would it be possible for you to mail me your code? It would be of great help.. Many thanks in advance. :)