How to convert camera generic data to RGB data

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to convert camera generic data to RGB data

4,239件の閲覧回数
jose0225
Contributor II

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!

ラベル(2)
タグ(3)
5 返答(返信)

2,755件の閲覧回数
rogerio_silva
NXP Employee
NXP Employee

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

2,755件の閲覧回数
jose0225
Contributor II

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

0 件の賞賛
返信

2,755件の閲覧回数
art
NXP Employee
NXP Employee

Please provide your camera's documentation to make me able to figure out what the output data format really is.

Best Regards,

Artur

0 件の賞賛
返信

2,755件の閲覧回数
rogerio_silva
NXP Employee
NXP Employee

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

0 件の賞賛
返信

2,755件の閲覧回数
rogerio_silva
NXP Employee
NXP Employee

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.

0 件の賞賛
返信