Hi all,
I'm looking for somebody could help me. I'm developing camera system which make generic data(raw data). Because it was first time developing this kind of camera system, I have a difficult in completing. So, my question is could I know HOW to convert camera generic data to RGB data? My purpose is getting bitmap file from generic data..
Thank you!
Hi,
I suppose by raw you mean Bayer RGB, right?
Unfortunately i.MX6 doesn't convert Bayer format by hardware, so you will need to convert it using SW. If you already has the Bayer content into memory, I suggest you to use some SW like gstreamer or ffmpeg to make this conversion.
If you need to capture the Bayer data from a sensor, you can read the following threads:
https://community.nxp.com/thread/302769
https://community.nxp.com/thread/320618
https://community.nxp.com/thread/355469
https://community.nxp.com/thread/319780
If possible, I recommend to use a camera that sends a known format for i.MX like RGB or YUV. So you can leverage the i.MX IPU to process the image and let the CPU free.
Best regards,
Rogerio
Thank you!
Could I ask you an one more simple question? Actually, I don't have confidence in what the data format is.. My camera consists of CCD sensor and 12 bit ADC. I thought it would make bayer pattern and generic mode. Is it right??
Best regards.
JongHyun
Please provide your camera's documentation to make me able to figure out what the output data format really is.
Best Regards,
Artur
Hi JongHyun,
The best way to discover is to read your camera datasheet or reference manual. There are cameras that only send Raw bayer RGB. There are some others that can convert it to any other format like RGB888, YUV422 and etc. Try to check on its documentation.
Best regards,
Rogerio
BTW, I would suggest you to use a camera that already sends the converted image like RGB888 or YUV422 (e.g. Ominivision OV5640, OV5642 and so on...). This way the processor won't spend time to process image conversion by SW.