02-20-2009 02:59 AM
Hi, I'm using the JPEG decode VI to decode an image string i'm receiving from a Blackfin Camera. This works fine when i run VI itself but when i use it as a sub-vi the program crashes .Anybody have any advice??
This is an image of my program
this is how the file is returned from the camera
'I' | '##IMJxs0s1s2s3....' | grab JPEG compressed video frame x = frame size in pixels: 1 = 80x64, 3 = 160x120, 5 = 320x240, 7 = 640x480, 9 = 1280x1024 s0s1s2s3=frame size in bytes (s0 * 256^0 + s1 * 256^1 + s2 * 256^2 + s3 * 256^3) .... = full JPEG frame Note that sometimes the 'I' command returns nothing if the robot camera is busy, so the 'I' command should be called as many times as needed until a frame is returned |
I modified the JPEG decode VI by switching the red and blue colour planes. I dont know whether this caused the problem though.
Solved! Go to Solution.
02-20-2009 04:32 AM
Hi,
This may be helpful for you:
http://forums.ni.com/ni/board/message?board.id=200&message.id=21845#M21845
Andrey.
03-03-2009 01:16 AM
04-04-2010 08:01 PM
I posted an idea request for a function to convert strings back to images. Please vote for it at:
Thanks,
Bruce