Deinterleave for rasperry pi in Simulink

HI all I'm doing the barcode reader using Rasperry Pi and Simulink. I'm stucking in separate the image into RGB like Deinterleave that can be used for Texas Instrument C6000. Is there any similar thing like that for Raspberry Pi? Thank you very much for any help

 Respuesta aceptada

Murat Belge
Murat Belge el 15 de Abr. de 2014

0 votos

Raspberry Pi V4L2 Video Capture block can output images in planar RGB or YCbCr 4:2:2 formats. For barcode scanning, I would think that you want to use a YCbCr output and perform barcode detection on the Y component. Since data is in planar format, you should not need to de-interleave the image at all.
Are you getting the image data from somewhere else where it is interleaved? What is the format of the input?

3 comentarios

cao lan
cao lan el 18 de Abr. de 2014
Thank Murat for the answer. My input is an image of a barcode. I just finish by using user defined fucntion to seperate signals. Now i'm trying to input from camera with V4L2 Video capture block, and it will be in YCbCr form. I have another problem that how can the program working without matlab and computer as standalone application. I means if i plug out the Raspberry from the computer, is it working? and if I connect the board with a monitor, is it work? Thank you so much :)
DELHI GANESH
DELHI GANESH el 1 de Dic. de 2014
Mr.cao lan please tell me how to convert Ycbcr seperate signal from RPI video capture block into One multidimentional output, since am doing the same bar code reading block... Thanks in advance..
Hamza Idris
Hamza Idris el 8 de En. de 2017
DELHI GANESH did you solved your problem? i am have same issue..

Iniciar sesión para comentar.

Más respuestas (1)

Murat Belge
Murat Belge el 21 de Abr. de 2014
The support package for Raspberry Pi converts a Simulink model targeted for Raspberry Pi to a Linux application and saves it on the SD card of the Raspberry Pi board. You can find the d in application in the following folder on your Raspberry Pi:
/home/<user name>/<model name>_rtt/MW/<model name>
For example, if you have a model called "barcode.slx" and your user name is 'pi', Simulink generates the following executable:
/home/pi/barcode_rtt/MW/barcode
You can run this application anytime. Your Raspberry Pi does not have to be connected to your host computer.
You can also auto-start your application on boot by placing the following line of code at the end of /etc/rc.local file:
/home/pi/barcode_rtt/MW/barcode &> /dev/null &

2 comentarios

cao lan
cao lan el 22 de Abr. de 2014
Thank Murat, It's very helpful to me. I'll try this :)
cao lan
cao lan el 23 de Abr. de 2014
Hi Murat I got an error that "Error occurred getting packet header"" Error occurred in rtPKtserverwork, Disconnecting from host" when I run the executable file. Could you please help me with that? Thanks

Iniciar sesión para comentar.

Categorías

Más información sobre Raspberry Pi Hardware en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 15 de Abr. de 2014

Comentada:

el 8 de En. de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by